IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Copy records based on some Sort condition


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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 Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Fri May 11, 2007 11:05 pm
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:

Use [URL] BBCode for External Links
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts VB to VB copy - Full length reached SYNCSORT 8
Search our Forums:

Back to Top