Hello I have the need to retrieve the sqlcode value from the outfiles that are generated after running sql statements.
The following value of the sqlcode below is obviously 0 and i would need to be able to grab that value from multiple blocks of statements formatted like below.
I cannot use GNU functions - grep/sed/awk may work but i havent been able to grab the sqlcode value using them myself...
Outfile will look like the following:
SQLCA Information
sqlcaid : SQLCA sqlcabc: 136 sqlcode: 0 sqlerrml: 0
sqlerrmc:
sqlerrp : SQLRI01F
sqlerrd : (1) -2147221503 (2) 1 (3) 4
(4) 0 (5) 0 (6) 0
sqlwarn : (1) (2) (3) (4) (5) (6)
(7) (8) (9) (10) (11)
sqlstate: 00000