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
 
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 SORT BUT RETAIN HIGHEST VALUE ON NON-... leondan22 DFSORT/ICETOOL 2 Thu Dec 14, 2017 8:13 pm
No new posts Inefficient BUILD - VB records paddin... Daniel Prosser SYNCSORT 6 Thu Dec 14, 2017 3:52 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm

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