Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Compare today's GDG file with that of yesterday's

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
raghavmcs

Active User


Joined: 14 Jul 2005
Posts: 105

PostPosted: Fri May 15, 2009 7:43 pm    Post subject: Compare today's GDG file with that of yesterday's
Reply with quote

I want to compare today's GDG file with that of yesterday's the purpose is to get the only the records which have bene changed as per the batch update. Both of the files are 1000 bytes LRECL. I don't have any keys to compare. I tried to achieve this using the where in1 and in2 are my 1000 lenght files. I'm not satisfied with the results as it doesn't appear correct to me. Both the files are around 1GB in production. Please suggest If I'm doing something wrong or this can be achieved by some other way, thanks

Code:

COPY FROM(IN1) TO(T1) USING(CTL1)                       
COPY FROM(IN2) TO(T1) USING(CTL2)                       
SELECT FROM(T1) TO(OUT) ON(1,1000,CH) - 
  NODUPS USING(CTL3)                                       
/*                                                       
//CTL1CNTL DD *                                         
  INREC OVERLAY=(1000:C'1')                             
/*                                                       
//CTL2CNTL DD *                                         
  INREC OVERLAY=(1000:C'2')                             
/*                                                       
//CTL3CNTL DD *                                         
  OUTFIL FNAMES=OUT,INCLUDE=(1000,1,CH,EQ,C'2'),         
   BUILD=(1,1000)                                       
/*
Back to top
View user's profile Send private message

Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Fri May 15, 2009 9:52 pm    Post subject:
Reply with quote

Since you put a '1' in position 1000 for file1 and a '2' in position 1000 file file2 and then used ON(1,1000,CH) every record from file1 and file2 will be a nonduplicate - they will all differ in position 1000.

Try using 1001 instead of 1000 for the id in the OVERLAY and ON operands.

If that doesn't work, then you need to show an example of the records in each input file (relevant fields only) and the expected output records, and explain what you're trying to do.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 8 Fri Sep 22, 2017 11:35 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm
No new posts editting the file by inserting zeros ... pramodrsingh DFSORT/ICETOOL 9 Mon Aug 21, 2017 5:58 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us