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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 3 Tue Jan 17, 2017 4:26 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 0 Mon Jan 02, 2017 11:16 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am


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