Hi,
Hope someone could help me with this one. I am a newbie in terms of JCL that will access DB2 records. I have posted my query in this category as the error I am getting is from database access.
I have created a JCL that will perform a SELECT statement and it will store the result in a dataset. There were no error in the JCL syntax (I think, cause RC=0 whenever I put a TYPRUN=SCAN), but my job will always return a code of 8 because of an SQLCODE = -518 and SQLSTATE = 7003.
I have tried searching the web for its meaning and got the following description -
The statement identified in the EXECUTE statement is a select-statement, or is not in a prepared state.
Can anyone please explain to me this description in Layman's term.
Many thanks.