Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to replace '*' with * using sort

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
pavanchandana

New User


Joined: 05 Sep 2008
Posts: 15
Location: Hyderabad

PostPosted: Wed Aug 13, 2014 3:52 pm    Post subject: How to replace '*' with * using sort
Reply with quote

Dear All,

I have an requirement to replace all the '*' (single quote*singlequote)in the input file with * using sort card.

Input file: A'*'BBBBB'*'CCCCC'*'DDDD'*''*'EEEE'*'

Output file: A*BBBBB*CCCCC*DDDD**EEEE*

I tried with INREC FINDREP=(IN=C''*'',OUT=C'*') but it is giving syntax error at IN=C''*''. Can you please help us with the syntax

Your quick response is highly appreciable
Back to top
View user's profile Send private message

Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1243
Location: Israel

PostPosted: Wed Aug 13, 2014 4:05 pm    Post subject:
Reply with quote

You need to have 3 quotes on each side: C'''*'''
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Wed Aug 13, 2014 4:06 pm    Post subject: Reply to: How to replace '*' with * using sort
Reply with quote

To get a single quote in a character constant, you need to specify two single quotes. And, of course, a character constant has to be bounded by single quotes.

I could be explicit, but that wouldn't be quick enough for you.
Back to top
View user's profile Send private message
pavanchandana

New User


Joined: 05 Sep 2008
Posts: 15
Location: Hyderabad

PostPosted: Wed Aug 13, 2014 4:44 pm    Post subject: Reply to: How to replace '*' with * using sort
Reply with quote

It worked. Thank you :-)
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 records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts JOINKEYS Paired and Unpaired Sort MFwhiz DFSORT/ICETOOL 4 Fri Sep 29, 2017 1:48 am
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm
No new posts OC4 in SORT Mohan Kothakota DFSORT/ICETOOL 2 Tue Sep 12, 2017 6:30 pm
No new posts SORT Trailer Count - LRECL Output co... amorante DFSORT/ICETOOL 5 Tue Aug 29, 2017 8:57 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us