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
 

 

Need a way to split record...

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Need a way to split record...
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    Post subject:
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

Site Director


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

PostPosted: Wed May 06, 2009 8:14 am    Post subject:
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    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 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. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm
No new posts Sort Large record length cmsmoon DFSORT/ICETOOL 14 Tue Apr 11, 2017 5:49 pm
No new posts Format record to remove Leading zeroes Learncoholic DFSORT/ICETOOL 14 Wed Apr 05, 2017 2:43 pm


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