Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: can a Apostrophe (') be used in sysin card ?
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: 8593
Location: Back in jolly old England

PostPosted: Fri May 04, 2007 1:38 pm    Post subject:
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    Post subject: Re: can a Apostrophe (') be used in sysin card ?
Reply with quote

hmm ..poor practice..I apologize.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Fri May 04, 2007 8:29 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Sort Card to Remove Duplicate records... raj4neo SYNCSORT 2 Wed Jan 25, 2017 4:44 am
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm
This topic is locked: you cannot edit posts or make replies. Sort card to replace text using cross... Susanta SYNCSORT 32 Tue Sep 13, 2016 4:17 pm
No new posts Creating a dynamic sort card in JCL u... ChitraChhabra DFSORT/ICETOOL 4 Wed Aug 03, 2016 6:15 pm
No new posts Need to know what sysin for DFHTU690 ... pkmurali CICS 3 Mon Jul 25, 2016 1:36 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us