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: 7225

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: 10202
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 High CPU consumption Job using IAM fi... aswinir JCL & VSAM 8 Thu Dec 01, 2016 8:28 pm
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm


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