View previous topic :: View next topic
|
Author |
Message |
Vasanthr
New User
Joined: 24 Jan 2011 Posts: 21 Location: India
|
|
|
|
Hi
I have a dataset with 10000 records as shown below
AAAABCF
BSDB
BGBSDSKDDSD
FSDS
FGSDNKS
DASAS
ASASDASASAS
I want the records in output file to be like below
'AAAABCF'
'BSDB'
'BGBSDSKDDSD'
'FSDS'
'FGSDNKS'
'DASAS'
'ASASDASASAS'
I want the records to be within quotes when the record ends . The length of record is not constant.
Let me know if this could be achieved using Sort |
|
Back to top |
|
|
Guest
|
|
|
|
Hi Vasanthr,
You can use the following step to meet your requirement:
Code: |
//STEP010 EXEC PGM=SORT
//SORTIN DD *
AAAABCF
BSDB
BGBSDSKDDSD
FSDS
FGSDNKS
DASAS
ASASDASASAS
//SORTOUT DD SYSOUT=*
//SYSIN DD *
OPTION COPY
INREC BUILD=(1,13,JFY=(SHIFT=LEFT,LEAD=C'''',
TRAIL=C''''))
/*
|
devil13
There is always a better solution |
|
Back to top |
|
|
Vasanthr
New User
Joined: 24 Jan 2011 Posts: 21 Location: India
|
|
|
|
thanks .. got it |
|
Back to top |
|
|
|