Need your help ....compare 2 files using ICETOOL and SPLICE
Posted: Fri Aug 19, 2011 1:46 pm
fgdfg
Mainframe programmer forum
http://www.mainframegurukul.com/ibmmainframeforums/
http://www.mainframegurukul.com/ibmmainframeforums/viewtopic.php?f=4&t=5940
Not with the information you supplied. I suspect JOINKEYS would be a better choice here than SPLICE, but I'd need more information to show you how.Could you please help me to solve this issue?
Code: Select all
//S1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD *
RECORD
//SORTOUT DD DUMMY
//SYSIN DD *
OPTION COPY
/*
Quite inconsiderate. . .You can refer Animesh Prasad's Informatin because I am working on same query. You will get SYSOUT information from his post.
Code: Select all
05/15/2011 KX010 INS 000004 8935201
I have no idea where to find that information, but it would only help if it has examples of input and output, and/or a clearer explanation of what you're trying to do.You can refer Animesh Prasad's Informatin because I am working on same query. You will get SYSOUT information from his post.
Code: Select all
//S1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SYMNAMES DD *
CRDATE,'05/15/2011'
//IN1 DD DSN=... Prior file
//IN2 DD DSN=... Current file
//OUT1 DD DSN=... output file1
//OUT2 DD DSN=... output file2
//OUT3 DD DSN=... output file3
//OUT4 DD DSN=... output file4
//SYSIN DD *
JOINKEYS F1=IN1,FIELDS=(19,12,A),SORTED
JOINKEYS F2=IN2,FIELDS=(19,12,A),SORTED
JOIN UNPAIRED,F1,F2
REFORMAT FIELDS=(F1:1,222,F2:1,222,?)
OPTION COPY
OUTFIL FNAMES=OUT1,INCLUDE=(445,1,CH,EQ,C'2'),
BUILD=(CRDATE,223,11,C'INS',SEQNUM,6,ZD,253,192)
OUTFIL FNAMES=OUT2,INCLUDE=(445,1,CH,EQ,C'1'),
BUILD=(CRDATE,1,11,C'DEL',SEQNUM,6,ZD,31,192)
OUTFIL FNAMES=OUT3,INCLUDE=(445,1,CH,EQ,C'B',AND,
(31,192,BI,NE,253,192,BI)),
BUILD=(CRDATE,1,11,C'UPD',SEQNUM,6,ZD,253,192)
OUTFIL FNAMES=OUT4,INCLUDE=(445,1,CH,EQ,C'B',AND,
(31,192,BI,EQ,253,192,BI)),
BUILD=(CRDATE,1,11,25:SEQNUM,6,ZD,31,192)
/*
You can use:The system shoud take the date automatically on which comparison has happened.
For example, if comparison is done on 08/24/2011 then in output file, it should take the date as 08/24/2011 automatically. We should not hard code the value as below.
//SYMNAMES DD *
CRDATE,'05/15/2011'
Code: Select all
//SYMNAMES DD *
CRDATE,S'&LMON./&LDAY./&LYR4'
Yes.Will it support if Both the input files have close to 1 million records each ?
I've answered the date question above.Your code is working properly to create these 3 files.
Only I have a question for OUTput file1 to 4 as described in previous post. And date issue.