If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
However the code keeps abending and i get the following error:
DSNT490I SAMPLE DATA UNLOAD PROGRAM
DSNT505I DSNTIAUL OPTIONS USED: SQL
DSNT503I UNLOAD DATA SET SYSPUNCH RECORD LENGTH SET TO 80
DSNT504I UNLOAD DATA SET SYSPUNCH BLOCK SIZE SET TO 27920
DSNT506I INPUT STATEMENT WAS NOT A FULL SELECT ON A SINGLE TABLE. LOAD STATEMENT WILL NEED MODIFICATION.
DSNT503I UNLOAD DATA SET SYSREC00 RECORD LENGTH SET TO 4076
DSNT504I UNLOAD DATA SET SYSREC00 BLOCK SIZE SET TO 24456
Despite getting this error, some data is being loaded into JD1234.UNLOAD, however this is only 100 lines. when i try to update PARMS('SQL') to PARMS('SQL,500'), it abends with a S322 error.
We'll assume you understand that the S322 completion code indicates that your job exceeded the CPU time allocated for the Job Class that is was run in. So a reasonable action would be to submit the job in a Job Class that allows more CPU time.
The number following the SQL parm specifies the number of rows that will be returned by a Multi-Row Fetch in the DSNTIAUL program. The default is 100. The fact that your output dataset contained 100 records following the first failure makes sense because your job timed out after DB2 completed the first Multi-Row Fetch operation for 100 rows. You increased the Multi-Row Fetch number to 500, and now your job timed out before DB2 completed the first Multi-Row Fetch operation for 500 rows.
The problem is most likely a poorly tuned query, but you didn't provide anything useful for anybody to assist with tuning.