View previous topic :: View next topic
|
Author |
Message |
shelu280
New User
Joined: 12 Jan 2009 Posts: 9 Location: chennai
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
OK, so what exactly is the question here. |
|
Back to top |
|
|
shelu280
New User
Joined: 12 Jan 2009 Posts: 9 Location: chennai
|
|
|
|
how to put semicolons in it when field length is not same |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
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 |
|
|
|