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
 

 

Split input into multiple records

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
JamesK

New User


Joined: 08 Mar 2007
Posts: 5
Location: St Louis

PostPosted: Fri Aug 10, 2012 1:23 am    Post subject: Split input into multiple records
Reply with quote

Is it possible to split 1 input record into multiple output records, without writing to seperate files?

Input:

key1data1data2data3

Desired output:
key1data1
key1data2
key1data3

Thanks.
Back to top
View user's profile Send private message

Elixir

Active User


Joined: 08 Feb 2009
Posts: 116
Location: CHENNAI/NEW JERSEY - INDIA/USA

PostPosted: Fri Aug 10, 2012 1:58 am    Post subject: Reply to: Split input into multiple records
Reply with quote

can be done by using Cobol
Back to top
View user's profile Send private message
JamesK

New User


Joined: 08 Mar 2007
Posts: 5
Location: St Louis

PostPosted: Fri Aug 10, 2012 2:02 am    Post subject:
Reply with quote

Can it be done with SYNCSORT?
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Fri Aug 10, 2012 2:50 am    Post subject: Reply to: Split input into multiple records
Reply with quote

Check your docs for OUTFIL, BUILD and / (the slash operator). This will achieve what you want in Syncsort.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Fri Aug 10, 2012 3:53 pm    Post subject: Reply to: Split input into multiple records
Reply with quote

from the TS profile ...
Quote:
Mainframe Skills: syncsort
icon_eek.gif
Back to top
View user's profile Send private message
Elixir

Active User


Joined: 08 Feb 2009
Posts: 116
Location: CHENNAI/NEW JERSEY - INDIA/USA

PostPosted: Sat Aug 11, 2012 1:31 am    Post subject:
Reply with quote

Check this out


http://ibmmainframes.com/about55540.html
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: Sat Aug 11, 2012 1:35 am    Post subject:
Reply with quote

Hello,

Is RESIZE now available in Syncsort?

Please do not post "solutions" for products other than the one being asked about. . .
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon Aug 13, 2012 4:16 pm    Post subject:
Reply with quote

JamesK wrote:
Can it be done with SYNCSORT?
For the given example-record, as Bill also indicates, use this:

Code:
//STEP010  EXEC PGM=SORT   
//SYSOUT   DD SYSOUT=*     
//SORTIN   DD *           
KEY1DATA1DATA2DATA3       
//SORTOUT  DD SYSOUT=*     
//SYSIN    DD *           
  OPTION COPY             
  OUTFIL BUILD=(1,4,5,5,/,
                1,4,10,5,/,
                1,4,15,5) 
//*                       

SORTOUT:
Code:
********************************* TOP OF DATA **********************************
KEY1DATA1                                                                       
KEY1DATA2                                                                       
KEY1DATA3                                                                       
******************************** BOTTOM OF DATA ********************************
Back to top
View user's profile Send private message
Elixir

Active User


Joined: 08 Feb 2009
Posts: 116
Location: CHENNAI/NEW JERSEY - INDIA/USA

PostPosted: Mon Aug 13, 2012 11:31 pm    Post subject:
Reply with quote

The Link I posted contains SYNCSORT....and not only ICE...
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: Mon Aug 13, 2012 11:36 pm    Post subject:
Reply with quote

Hello,

Quote:
The Link I posted contains SYNCSORT....and not only ICE...
Suggest you look again. . . .

http://ibmmainframes.com/about55540.html
is a DFSORT topic in the DFSORT part of the forum. . .

I see NoThing about SYNCSORT in that topic icon_confused.gif
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm


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