Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 7314

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: 10355
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 Split files upto certain limit based ... bubbu75 DFSORT/ICETOOL 5 Tue Nov 14, 2017 11:11 pm
No new posts Increment number for every group of r... srajendran2 DFSORT/ICETOOL 7 Thu Nov 09, 2017 10:31 pm
No new posts Matching and unmatched records!! Vignesh Sid SYNCSORT 3 Thu Nov 09, 2017 11:22 am
No new posts Formatting multiple records to a sing... Vignesh Sid SYNCSORT 3 Tue Nov 07, 2017 12:22 pm
No new posts JOINKEYS Paired and Unpaired Sort on ... MFwhiz DFSORT/ICETOOL 7 Tue Nov 07, 2017 2:46 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us