View previous topic :: View next topic
|
Author |
Message |
prafull
New User
Joined: 08 Dec 2006 Posts: 48
|
|
|
|
see the card below:
I am putting ';' as first char of output file.
Actual requirement is to use Apostrophe (') there,is it possible here?
Code: |
//STST00S EXEC PGM=SORT
//SORTIN DD DSN=...
//SORTOUT DD DSN=...
//SYSIN DD *
SORT FIELDS=(1,5,CH,A)
OUTREC FIELDS=(1:C';',1,5)
/*
|
1:C''' won't work.
How can it be done ?
Please ignore if the topic's already discussed,but send me the link . |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
Back to top |
|
|
prafull
New User
Joined: 08 Dec 2006 Posts: 48
|
|
|
|
hmm ..poor practice..I apologize. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
You can use
Code: |
OUTREC FIELDS=(1:C'''',1,5)
|
or
Code: |
OUTREC FIELDS=(1:X'7D',1,5)
|
|
|
Back to top |
|
|
prafull
New User
Joined: 08 Dec 2006 Posts: 48
|
|
|
|
thanks more more updates Frank |
|
Back to top |
|
|
|