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

replacing junk with hyphen


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

New User


Joined: 31 May 2017
Posts: 3
Location: India

PostPosted: Fri Jun 02, 2017 7:47 pm
Reply with quote

I have a input file which has junk values I need to replace that junk value with hyphen(not spaces) using sort.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Jun 02, 2017 7:50 pm
Reply with quote

search the forum, the question has been asked and replied too many times
( ALTSEQ and/or FINDREP are the buzzwords )
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3053
Location: NYC,USA

PostPosted: Fri Jun 02, 2017 9:05 pm
Reply with quote

Quote:
I need to replace junk with hyphen in a file using sort
How could that be anyone's signature ? icon_biggrin.gif
You need to define "junk" to get more help but you have already got the buzzwords.
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2022
Location: USA

PostPosted: Fri Jun 02, 2017 9:27 pm
Reply with quote

Nitin32 wrote:
I have a input file which has junk values I need to replace that junk value with hyphen(not spaces) using sort.


You need to define "junk"

Otherwise
Quote:
From Wikipedia, the free encyclopedia

Junk generally refers to:
    - Scrap, recyclable waste used to build and maintain things

Junk may also refer to:
    - Junk, Melon (cetacean) of the sperm whale
    - Junk, salt-cured meat
    - Junk, a common street slang for heroin
    - Junk (ship), a type of Chinese sailing vessel
    - Junk status, debt credit rating
    - Genitalia

Back to top
View user's profile Send private message
Nitin32

New User


Joined: 31 May 2017
Posts: 3
Location: India

PostPosted: Fri Jun 02, 2017 10:37 pm
Reply with quote

X'CA' is the junk value
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3053
Location: NYC,USA

PostPosted: Fri Jun 02, 2017 11:01 pm
Reply with quote

ALTSEQ control statement
or try SS -string to find and overlay with '-'
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2022
Location: USA

PostPosted: Sat Jun 03, 2017 4:12 am
Reply with quote

Nitin32 wrote:
X'CA' is the junk value


Do you need to replace all X'CA' with dashes?
That's it?
Back to top
View user's profile Send private message
Nitin32

New User


Joined: 31 May 2017
Posts: 3
Location: India

PostPosted: Sat Jun 03, 2017 10:04 am
Reply with quote

Yes
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Sat Jun 03, 2017 7:22 pm
Reply with quote

so replace x'ca' with x'60'
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Jun 03, 2017 8:45 pm
Reply with quote

the TS wants a ready to run solution without doing any effort himself icon_evil.gif
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Sat Jun 03, 2017 9:19 pm
Reply with quote

enrico-sorichetti wrote:
the TS wants a ready to run solution without doing any effort himself icon_evil.gif

But how much will he pay for it? icon_lol.gif
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 Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Finding record and replacing with val... DFSORT/ICETOOL 3
No new posts Replacing character string in file th... JCL & VSAM 9
No new posts Replacing PDSMAN with PDSFAST JCL & VSAM 10
Search our Forums:

Back to Top