View previous topic :: View next topic
|
Author |
Message |
JamesK
New User
Joined: 08 Mar 2007 Posts: 5 Location: St Louis
|
|
|
|
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 |
|
|
Elixir
Active User
Joined: 08 Feb 2009 Posts: 116 Location: CHENNAI/NEW JERSEY - INDIA/USA
|
|
|
|
can be done by using Cobol |
|
Back to top |
|
|
JamesK
New User
Joined: 08 Mar 2007 Posts: 5 Location: St Louis
|
|
|
|
Can it be done with SYNCSORT? |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Check your docs for OUTFIL, BUILD and / (the slash operator). This will achieve what you want in Syncsort. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
from the TS profile ...
Quote: |
Mainframe Skills: syncsort |
|
|
Back to top |
|
|
Elixir
Active User
Joined: 08 Feb 2009 Posts: 116 Location: CHENNAI/NEW JERSEY - INDIA/USA
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Is RESIZE now available in Syncsort?
Please do not post "solutions" for products other than the one being asked about. . . |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
Elixir
Active User
Joined: 08 Feb 2009 Posts: 116 Location: CHENNAI/NEW JERSEY - INDIA/USA
|
|
|
|
The Link I posted contains SYNCSORT....and not only ICE... |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
Back to top |
|
|
|