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
 
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: 1786
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: 2002
Location: 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: 19270
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 Sort numeric fields with trailing spaces sancraig16 SYNCSORT 7 Tue Apr 03, 2018 1:21 am
No new posts Extract the records with a PD field's... sudhakar84 DFSORT/ICETOOL 11 Mon Apr 02, 2018 7:26 pm
No new posts Find & Replace string in CA-SORT mrgnndhmk CA Products 1 Fri Mar 30, 2018 12:58 am
No new posts Merge 2 records sancraig16 SYNCSORT 19 Tue Mar 27, 2018 8:17 pm
No new posts SORT 3 files,extract specific fields ... Kiransr DFSORT/ICETOOL 13 Fri Mar 23, 2018 10:54 am

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