IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

DFSORT for file balancing


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Amsar

New User


Joined: 26 Sep 2008
Posts: 84
Location: Chennai

PostPosted: Wed Mar 04, 2009 8:57 pm
Reply with quote

Hi,

My requirement is to match the two input files and write the non matching recods into outfile.

Matching key is whole record and its unique.

Both the input files are lrec=80 & recfm=FB I want non matching records from first file.


Thanks,
Amsar
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Wed Mar 04, 2009 9:48 pm
Reply with quote

amsar,

The following DFSORT/ICETOOL JCL will give you the desired results

Code:

//STEP0100 EXEC PGM=ICETOOL                                 
//TOOLMSG  DD SYSOUT=*                                       
//DFSMSG   DD SYSOUT=*                                       
//IN1      DD DSN=Your input file1,DISP=SHR
//IN2      DD DSN=Your input file2,DISP=SHR
//T1       DD DSN=&&T1,DISP=(MOD,PASS),SPACE=(CYL,(X,Y),RLSE)
//OUT      DD SYSOUT=*                                       
//TOOLIN   DD *                                             
  COPY FROM(IN1) USING(CTL1)                                 
  COPY FROM(IN2) USING(CTL2)                                 
  SELECT FROM(T1) TO(OUT) ON(1,80,CH) NODUPS USING(CTL3)     
//CTL1CNTL DD *                                             
  OUTFIL FNAMES=T1,OVERLAY=(81:C'1')                         
//CTL2CNTL DD *                                             
  OUTFIL FNAMES=T1,OVERLAY=(81:C'2')                         
//CTL3CNTL DD *                                             
  OUTFIL FNAMES=OUT,INCLUDE=(81,1,ZD,EQ,1),BUILD=(1,80)   
/*
Back to top
View user's profile Send private message
Amsar

New User


Joined: 26 Sep 2008
Posts: 84
Location: Chennai

PostPosted: Wed Mar 04, 2009 10:12 pm
Reply with quote

Kolusu,

Thanks a lot for your solution.

Regards,
Amsar
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top