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

Whether the follwing can be performed in SYNCSORT


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

New User


Joined: 14 Mar 2009
Posts: 5
Location: At Desk

PostPosted: Mon Mar 16, 2009 4:11 pm
Reply with quote

Hi,

I want to know whether the follwing can be performed in SYNCSORT:

My input:

01352,Dalmer 08475 ,53041181AA ,SO9843500
, ,53041189AA ,SO9883300
, ,53041190AA ,SO9883500
, ,53041405AC ,SO9843700
, ,53041408AC ,SO9843900

My output should look like:
01352,Dalmer 08475 ,53041181AA ,SO9843500
01352,Dalmer 08475 ,53041189AA ,SO9883300
01352,Dalmer 08475 ,53041190AA ,SO9883500
01352,Dalmer 08475 ,53041405AC ,SO9843700
01352,Dalmer 08475 ,53041408AC ,SO9843900
Back to top
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 496
Location: USA

PostPosted: Tue Mar 17, 2009 10:38 pm
Reply with quote

Vickey,

This can also be accomplished in a single step using SyncSort for z/OS 1.3.2:
Code:

//STEP1  EXEC PGM=SORT                                 
//SYSOUT   DD SYSOUT=*                             
//SORTIN   DD *                                     
01352,DALMER 08475 ,53041181AA ,SO9843500           
, ,53041189AA ,SO9883300                           
, ,53041190AA ,SO9883500                           
, ,53041405AC ,SO9843700                           
, ,53041408AC ,SO9843900                           
//SORTOUT  DD SYSOUT=*                             
//SYSIN    DD *                                     
  INREC IFTHEN=(WHEN=(1,1,CH,EQ,C','),BUILD=(20X,4,21)) 
  SORT FIELDS=COPY                         
  OUTREC IFTHEN=(WHEN=GROUP,BEGIN=(1,1,CH,EQ,C'0'),PUSH=(1:1,20))     
/*                       
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 only first records of the fil... SYNCSORT 7
No new posts Count Records with a crietaria in a f... DFSORT/ICETOOL 5
No new posts DFSORT/SYNCSORT/ICETOOL JCL & VSAM 8
No new posts Syncsort "Y2C" Function SYNCSORT 1
No new posts Arithmetic division using Syncsort SYNCSORT 6
Search our Forums:

Back to Top