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

Is it possible by JCL Sort


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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: 1448
Location: Chicago, IL

PostPosted: Mon Jun 20, 2005 6:59 pm
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 Developer


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

PostPosted: Mon Jun 20, 2005 8:42 pm
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:

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
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 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 JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts how to calculate SUM value for VB fil... DFSORT/ICETOOL 1
No new posts how to calculate SUM for VB file usin... JCL & VSAM 1
Search our Forums:

Back to Top