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

do sort utility can do this


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

New User


Joined: 12 Jan 2009
Posts: 9
Location: chennai

PostPosted: Wed May 06, 2009 11:14 am
Reply with quote

Input file
******

Code:

1111111 22222 44444
1111111 22222 333333
1111111 22222 44444
1111111 22222 333333
2222222 777777 999999
3333333 444444 555555


output file
*******

Code:

1111111; 22222; 44444
1111111; 22222; 333333
1111111; 22222; 44444
1111111; 22222; 333333
2222222; 777777; 999999
3333333; 444444; 555555
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed May 06, 2009 11:23 am
Reply with quote

OK, so what exactly is the question here.
Back to top
View user's profile Send private message
shelu280

New User


Joined: 12 Jan 2009
Posts: 9
Location: chennai

PostPosted: Wed May 06, 2009 1:24 pm
Reply with quote

how to put semicolons in it when field length is not same
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: Wed May 06, 2009 9:22 pm
Reply with quote

sachin,

Here's a DFSORT job that will do what I think you asked for:

Code:

//S1    EXEC  PGM=SORT                             
//SYSOUT    DD  SYSOUT=*                           
//SORTIN DD *                                       
1111111 22222 44444                                 
1111111 22222 333333                               
1111111 22222 44444                                 
1111111 22222 333333                               
2222222 777777 999999                               
3333333 444444 555555                               
//SORTOUT DD SYSOUT=*                               
//SYSIN    DD    *                                 
  OPTION COPY                                       
  INREC BUILD=(1,80,SQZ=(SHIFT=LEFT,MID=C'; '))     
/*
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 Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts REASON 00D70014 in load utility DB2 6
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top