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

Need a way to split record...


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ovreddy

Active User


Joined: 06 Dec 2004
Posts: 211
Location: Keane Inc., Minneapolis USA.

PostPosted: Wed May 06, 2009 7:38 am
Reply with quote

Hi,

Once i have a dataset (150 positions), is there an easy way to split the
records, specifying the initial column ?

Like this :
+---5---10----5---20
AAAAAAAAAAAABBBBBBBB
AAAAAAAAAAAABBBBBBBB
AAAAAAAAAAAABBBBBBBB

Generating (Split in column 80)
+---5---10----5---20
AAAAAAAAAAAA
BBBBBBBB
AAAAAAAAAAAA
BBBBBBBB
AAAAAAAAAAAA
BBBBBBBB

Thanks,
Venkat
----------------------------------------------------------------------
Back to top
View user's profile Send private message
ovreddy

Active User


Joined: 06 Dec 2004
Posts: 211
Location: Keane Inc., Minneapolis USA.

PostPosted: Wed May 06, 2009 7:52 am
Reply with quote

Hi,

I got the solution. Looks like this will work.

Code:

//S1    EXEC  PGM=ICEMAN
//SYSOUT    DD  SYSOUT=*
//SORTIN DD DSN=...  input file (FB/80)
//SORTOUT DD DSN=...  output file (FB/80)
//SYSIN    DD    *
   OPTION COPY
   OUTFIL BUILD=(1,12,80:X,/,13,8)
/*


I will try and let you know if it did not.

Thanks,
Reddy
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed May 06, 2009 8:14 am
Reply with quote

Hello,

Is there some reason you that you still did not use the "Code" tag?

Just curious. . . icon_confused.gif

I'd suggest a bit of practice (Preview) as Coding entry greatly improves the readability of data, code, jcl, etc.

d
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 SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Validating record count of a file is ... DFSORT/ICETOOL 13
Search our Forums:

Back to Top