The abend message is as follows:
CALLER-PROVIDED IDENTIFIER IS "0002"
SYSDIAG= 242063, 844334, 844334, 608677
8,964K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
0 BYTES RESERVE REQUESTED, 3M BYTES USED
IN2 : RECFM=FB ; LRECL= 115; BLKSIZE= 27945
OUTREC FIELD OUTSIDE RANGE
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
I think it may have to do with the 115 byte record. It looks as though your OUTREC may be incorrect.
The code below is coded from memory so may need a little tweak, but this is how I see it-
1,115 = original 115 byte record
385X = 385 spaces to build up to 500 bytes
1,115 = append original record after spaces
In1 - Has key field Purchase order with 9 bytes and not containing item number
In2 - Has key field Purchase order with 9 bytes and Item number with 10 bytes
if I have considered only PO number as key for SPLICE, then we may not get all records from 2nd file
using the above code, gives JCL error as SPLICE always should contain WITH Keyword and after WITHALL keyword, should contain space instead of position mentioned above.
PLease correct me if I am wrong.
I saw in one of the tutor, it says ICETOOL works with matching keys, Hence in my case second file contains both po and Item fields and first File contains only PO. The keys between these two files are not in sync hence we won't get the records mentioned in the output.
Please let me know is there any other best method so that I can use the same.
Output is coming without any abend, data format is not correct. Please let me know where i am making wrong.
Output data is as follows:
1-31 bytes - 2nd file data
32-166 bytes - first file data
1-31 - first file data displaying at the end means after 167th byte
I need the output as follows:
Second file has to display with 31 bytes, then first file should be concatenated and should be displayed from 32nd position till 197 position