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

Change File Layout using SYNCSORT


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Dingu

New User


Joined: 06 Jul 2007
Posts: 10
Location: Chentrappinni

PostPosted: Mon Oct 01, 2007 8:42 pm
Reply with quote

In the input file format(CustomerID, Value) given below, there will be a maximum of 3 records for a "CustomerID" with three different "Value".
I need to change the layout as

CustomerID Value1 Value2 Value3

The CustomerID that have only one Record in the input file should have the corresponding "Value" in "Value1" field of the output file and Zeroes in "Value2" and "Value3". How can this be done using SORT(SYNCSORT)

Input Record(FB, 10)

CUSTID1 300
CUSTID1 250
CUSTID1 150
CUSTID2 321

Output(FB, 16)
CUSTID1 300 250 150
CUSTID2 321 0 0
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Mon Oct 01, 2007 9:30 pm
Reply with quote

Quote:
How can this be done using SORT(SYNCSORT)


Belongs in Franks forum icon_idea.gif
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Mon Oct 01, 2007 9:36 pm
Reply with quote

Quote:
Belongs in Franks forum


My Forum is for DFSORT questions. This is a a Syncsort question so it belongs here.
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Mon Oct 01, 2007 10:10 pm
Reply with quote

icon_redface.gif Sorry
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 0
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top