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

can a Apostrophe (') be used in sysin card ?


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
prafull

New User


Joined: 08 Dec 2006
Posts: 48

PostPosted: Fri May 04, 2007 1:34 pm
Reply with quote

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 icon_smile.gif.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Fri May 04, 2007 1:38 pm
Reply with quote

I found this in under 20 seconds by using the search facility on this forum.
Why could you not have searched ?

http://ibmmainframes.com/viewtopic.php?t=18370&highlight=apostrophe
Back to top
View user's profile Send private message
prafull

New User


Joined: 08 Dec 2006
Posts: 48

PostPosted: Fri May 04, 2007 1:42 pm
Reply with quote

hmm ..poor practice..I apologize.
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: Fri May 04, 2007 8:29 pm
Reply with quote

You can use

Code:

    OUTREC FIELDS=(1:C'''',1,5) 


or

Code:

   OUTREC FIELDS=(1:X'7D',1,5) 
Back to top
View user's profile Send private message
prafull

New User


Joined: 08 Dec 2006
Posts: 48

PostPosted: Wed May 09, 2007 5:47 pm
Reply with quote

thanks more more updates Frank
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Generate output lines (SYSIN card for... DFSORT/ICETOOL 4
No new posts Need suggestion on a sort card DFSORT/ICETOOL 10
No new posts Want to mask Middle 8 Digits of Debit... COBOL Programming 3
No new posts JCL sort card for file creation condi... DFSORT/ICETOOL 4
Search our Forums:

Back to Top