Page 1 of 1

solve SPANINC=RC16

Posted: Fri Sep 09, 2011 2:28 pm
by santhosh kumar
Hi,

Could you please explain what is SPANINC, when i am loading the data from the file to db2 table using LOAD utility in JCL i am getting SPANINC=RC16 in the SYSOUT spool.
I hope with this, i am unable to load the data properly from file to table...
ie., part of the data loading into the table properly..

What will i do for not getting SPANINC=RC16.

Could any one please advise me on this ASAP.

Thanks in advance...

Posted: Fri Sep 09, 2011 9:03 pm
by DikDude
Forums typically do not "do" ASAP.

To get help, you need to post the submitted jobstream and the diagnostic information generated. Do not pick and choose what you think is needed.

Posted: Fri Sep 09, 2011 10:03 pm
by Frank Yaeger
SPANINC only applies to spanned input files, e.g. RECFM=VBS.

From the DFSORT Installation and Customization Guide:

SPANINC

specifies the action to be taken by DFSORT when one or more incomplete spanned records are detected in a variable spanned input data set.

RC0 specifies that DFSORT should issue message ICE197I (once), set a return code of 0, and eliminate all incomplete spanned records it detects. Valid records will be recovered.

RC4 specifies that DFSORT should issue message ICE197I (once), set a return code of 4, and eliminate all incomplete spanned records it detects. Valid records will be recovered.

RC16 specifies that DFSORT should issue message ICE204A, terminate, and give a return code of 16 when an incomplete spanned record is detected.

Default: RC16

Notes:

1. The return code of 0 or 4 set for incomplete spanned records can be overridden by a higher return code set for some other reason.

2. In cases where a spanned record cannot be properly assembled (for example, it has a segment length less than 4 bytes), DFSORT issues message ICE141A and terminates with a return code of 16. The SPANINC value has no effect in these cases.

If you want DFSORT to use SPANINC=RC0, you can add this to your step:

Code: Select all

//DFSPARM DD *
  OPTION SPANINC=RC0
/*

Posted: Mon Sep 12, 2011 1:52 pm
by santhosh kumar
Hi Frank Yaeger,

Thanks for the reply,

I have a doubt, What is the RECFM for the file, when we load the data from file to db2 table using LOAD utility.

Could you please give me the reply, i will look for your reply,,

thanks!

Posted: Mon Sep 12, 2011 10:48 pm
by DikDude
As Frank already posted:
SPANINC only applies to spanned input files, e.g. RECFM=VBS.
This may be an internal use file, not a file you specified containing the data to load. . .