Expat - I am sorry. I have given my output file format wrongly. Below is the correct one. Basically the I have build the output only with LRECL 16.
Hope I made it clear. Thanks in advance for your valuable comments.
Output file should have the below value:
(Basically the 3333, 4444 and 7777 recs should not get written)
ABCD1111<-the rest rec till LRECL 16>
EFGH1111 <-the rest rec till LRECL 16>
IJKL1111<-the rest rec till LRECL 16>
LMNO2222<-the rest rec till LRECL 16>
JHJU2222<-the rest rec till LRECL 16>
MNJU5555<-the rest rec till LRECL 16>
YUIJ5555<-the rest rec till LRECL 16>
YUKJ7777<-the rest rec till LRECL 16>
FRED7777<-the rest rec till LRECL 16>
Frank - I tried with your previous example but to my dismay, I am running to some or other issue due to the conflict in the position. Would be great if you could send your solution for my request. Your response is greatly appreciated. Thanks in advance!
Hello All- I was trying out couple of times by making correction in my TOOLIN card. To my surprise, though the job went fine with RC=0 but the output file didnt contain any recs. Below is my TOOLIN Card which I used.
I need the solution very badly for this. Frank, could you please throw some light on this?....Please....
Belos is the msg from the spool:
COPY FROM(IN1) USING(CTL1)
DFSORT CALL 0001 FOR COPY FROM IN1 TO OUTFIL USING CTL1CNTL COM
OPERATION RETURN CODE: 00
COPY FROM(IN2) USING(CTL2)
DFSORT CALL 0002 FOR COPY FROM IN2 TO OUTFIL USING CTL2CNTL COM
OPERATION RETURN CODE: 00
SPLICE FROM(T1) TO(FILEC) ON(8,4,CH) WITHALL WITH(01,80) USING(CTL3)
DFSORT CALL 0003 FOR SORT FROM T1 TO FILEC USING CTL3CNTL COM
RECORD COUNT: 000000000327244
NUMBER OF RECORDS RESULTING FROM CRITERIA: 000000000326318
OPERATION RETURN CODE: 00
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
ArunAnbu,
The problem with your splice job is that your key is in pos 5 for 4 bytes and you are splice with key at pos 8 which does not produce any matches. However you really don't need splice. Use the following JCL.
I assumed that file 1 which has key in pos 1 thru 4 has spaces in pos 5.
Thanks for your comments Mazahar! Yeah I tried based on the previous examples but I ran into some or other problem due to the conflict of the position. Still Iam trying to have this corrected. If you find a suitable solution for my question, pls feel free to pass it across.
Thanks a lot!
Giving the solution in board so that every once can know the solution.
we dont need them as We use KEEPNODUPS to keep single records that don't have a match, and KEEPBASE to ensure we keep all duplicate records that don't have a match.
I appreciate your response for my post. Well, I proceded per your suggestion but I was getting RC 16 in the splice part.
Splice error msg:
-------------------
SPLICE FROM(T1) TO(FILEC) ON(5,4,CH) -
WITHALL WITH(01,80) WITH(81,1) USING(CTL3)
DFSORT CALL 0003 FOR SORT FROM T1 TO FILEC
OPERATION RETURN CODE: 16
I thought the second WITH has to be WITH(81,2) as we are dealing with 'BB' or 'BV'. So tried changing as below but, still I was getting RC=16.
WITHALL WITH(01,80) WITH(81,2) USING(CTL3)