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
 

 

Is it possible by JCL Sort

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

New User


Joined: 11 Mar 2005
Posts: 4

PostPosted: Mon Jun 20, 2005 6:53 pm    Post subject: Is it possible by JCL Sort
Reply with quote

Hi All,

I have an doubt in JCl.

I have two Input file which have same record length, but some records in input file 1 is not similar to the input file 2.
the out put should be 3 files (OP1, OP2 & OP3).

Code:

File Name:     IP1   IP2  OP1  OP2   OP3
Records          1     1    1    3     7
                 2     2    2    4     8
                 3     6         5
                 4     7
                 5     8


Here 1 to 8 are the records. Is it possible by JCL? IF yes pls let me know.


Regards,
Venkata
Back to top
View user's profile Send private message

priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1452
Location: Chicago, IL

PostPosted: Mon Jun 20, 2005 6:59 pm    Post subject: Re: JCL: Sort
Reply with quote

Do you have any specifc requirement on this....

On what basis you want to move records in output files.

Need to be more clear...

Regards,

Priyesh.
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: Mon Jun 20, 2005 8:42 pm    Post subject:
Reply with quote

Venkata,

You can do this kind of matching using the SPLICE operator of DFSORT's ICETOOL, as discussed in this Smart DFSORT Trick:

http://www.ibm.com/servers/storage/support/software/sort/mvs/tricks/srtmst02.html#t05
Back to top
View user's profile Send private message
venkata.bellala

New User


Joined: 11 Mar 2005
Posts: 4

PostPosted: Tue Jun 21, 2005 6:58 pm    Post subject: Thanks For The Solution.........
Reply with quote

Hi all,

Thank you for the solution.

Regards,
Venkata Bellala.
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 How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. SORT trick needed bshkris SYNCSORT 6 Tue May 02, 2017 4:35 am
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm
No new posts Sort Large record length cmsmoon DFSORT/ICETOOL 14 Tue Apr 11, 2017 5:49 pm


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