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
 

 

Can someone help me in sorting this

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

New User


Joined: 26 Feb 2006
Posts: 1

PostPosted: Tue Apr 25, 2006 8:13 pm    Post subject: Can someone help me in sorting this
Reply with quote

HI,

I have an variable format input file which is to be split into two files based on first five characters of the input record.

But the problem is that the first five characters should not be present in the output file.

Example :
INPUT:

ABCDEyou are here
PQRSTis this the way to do it
.....
.....
OUTPUT :

file 1 contains
you are here

file 2 contains
is this he way to do it

Note : The first five character will either be ABCDE or PQRST
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: Tue Apr 25, 2006 9:37 pm    Post subject:
Reply with quote

santosh,

Here's a DFSORT job that will do what you asked for:

Code:

//S1    EXEC  PGM=ICEMAN
//SYSOUT    DD  SYSOUT=*
//SORTIN DD DSN=...  input file (VB)
//OUT1 DD DSN=...    output file1 (VB)
//OUT2 DD DSN=...    output file2 (VB)
//SYSIN    DD    *
  OPTION COPY
  OUTFIL FNAMES=OUT1,INCLUDE=(5,5,CH,EQ,C'ABCDE'),
    OUTREC=(1,4,10)
  OUTFIL FNAMES=OUT2,INCLUDE=(5,5,CH,EQ,C'PQRST'),
    OUTREC=(1,4,10)
/*
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 Sorting group data rajella DFSORT/ICETOOL 4 Sun Jan 22, 2017 11:32 pm
No new posts Efficient sorting chandracdac DFSORT/ICETOOL 5 Sat Oct 22, 2016 3:23 am
No new posts Stripping and Sorting of VB file G SRINIVASA RAO SYNCSORT 5 Wed Sep 14, 2016 1:34 pm
No new posts DFSORT sorting only specific records akodakka DFSORT/ICETOOL 4 Thu Aug 04, 2016 11:24 am
No new posts VB file sorting V S Amarendra Reddy DFSORT/ICETOOL 2 Fri Feb 26, 2016 8:29 pm


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