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

How to compare records using sort


IBM Mainframe Forums -> JCL & VSAM
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
srinivasulu.p

New User


Joined: 10 Jul 2012
Posts: 22
Location: india

PostPosted: Tue Jan 21, 2014 5:07 pm
Reply with quote

This is file data, I need to comapre SAA records with other records in CA state IF it matches write in to file pls help me how to acheive using SORT IN JCL
Code:

ENTR-D   WH-TYPE  CUSP-NBR  KEY-C  BKPG-AMT  ST-C

11/02/13 SAA           1233           10      100           CA
11/03/13 WHD          1234           11      400     
11/03/13 WHD          1235           12      200     
11/04/13 WHD          1236           13      900     
11/05/13 WHD          1237           14       10     
11/02/13 WHD          1233           10      100     

11/02/13 SAA      1233      10      100      NJ
11/03/13 WHD      1234      11      400     
11/03/13 WHD      1235      12      200     
11/04/13 WHD      1236      13      900     
11/05/13 WHD      1237      14       10     
11/02/13 WHD      1233      10      100
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Tue Jan 21, 2014 5:23 pm
Reply with quote

JOINKEYS.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Tue Jan 21, 2014 7:08 pm
Reply with quote

One assumes that you are using Syncsort. What are your dataset attributes (LRECL,RECFM). How about showing sample input and sample output?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jan 21, 2014 10:04 pm
Reply with quote

Duplicate topic - locked . . .

d
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts JCL sort card - get first day and las... JCL & VSAM 9
Search our Forums:

Back to Top