Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Copy records based on some Sort condition

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

New User


Joined: 25 Apr 2007
Posts: 13
Location: INDIA

PostPosted: Fri May 11, 2007 10:18 pm    Post subject: Copy records based on some Sort condition
Reply with quote

I have 820 LRECL file. I want to sort it in the manner if one sort satisfies some records has to be copied to 821 position and if another sort satisfies some records has to be copied to 821.

I will give an example so that it will be clear.

If(120,10,CH,EQ,c'')then copy these records to 821 position or if (120,10,CH,/NE,c'') then copy these records to 821 position.

Can the above be done via sort.
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 11, 2007 11:05 pm    Post subject:
Reply with quote

Quote:
If (120,10,CH,EQ,c'') then copy these records to 821 position or if (120,10,CH,/NE,c'') then copy these records to 821 position.


Huh? There's no difference in the action for the two conditions. Either way, you want to "copy these records to 821 position" whatever that means.

Please explain more clearly what you want to do for the two different types of records. An example of the input records and expected output records would help.

I suspect you'll need to use DFSORT's IFTHEN function to do whatever is it you want to do. You can read all about how to use IFTHEN at:

www.ibm.com/servers/storage/support/software/sort/mvs/pdug/
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 Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts SORT requirement sjiraga COBOL Programming 6 Thu Mar 09, 2017 9:11 pm
No new posts Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us