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

Split input into multiple records


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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
Reply with quote

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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Aug 10, 2012 2:50 am
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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Fri Aug 10, 2012 3:53 pm
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
Reply with quote

Check this out


ibmmainframes.com/about55540.html
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: Sat Aug 11, 2012 1:35 am
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

Superior Member


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

PostPosted: Mon Aug 13, 2012 4:16 pm
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
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

Moderator Emeritus


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

PostPosted: Mon Aug 13, 2012 11:36 pm
Reply with quote

Hello,

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

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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 7
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
Search our Forums:

Back to Top