Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to compare records using sort

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to compare records using sort
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: 1789
Location: Bloomington, IL

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

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

Global Moderator


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

PostPosted: Tue Jan 21, 2014 7:08 pm    Post subject: Reply to: How to compare records using sort
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

Site Director


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

PostPosted: Tue Jan 21, 2014 10:04 pm    Post subject:
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.    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Problem while trying to manipulate re... amitc23 DFSORT/ICETOOL 3 Tue Jun 30, 2020 1:19 pm
No new posts Need to select all records belonging ... Q5P418 DB2 2 Mon Jun 22, 2020 11:34 pm
No new posts How to filter out certain records bas... manugeorge2004 JCL & VSAM 5 Wed Jun 17, 2020 10:05 pm
No new posts Need to delete inactive records from ... Sanchayita Sinha DB2 5 Fri May 29, 2020 10:47 pm
No new posts Compare multiple files using JCL/Rexx... tanvi110788 JCL & VSAM 4 Tue May 19, 2020 5:47 pm

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