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

Senior Moderator


Joined: 14 Mar 2007
Posts: 10730
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: 2591
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

Active Member


Joined: 29 Apr 2008
Posts: 967
Location: Maryland

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: 2591
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

Active Member


Joined: 29 Apr 2008
Posts: 967
Location: Maryland

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

Senior Moderator


Joined: 14 Mar 2007
Posts: 10730
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 JCL for replacing code in Cobol JCL & VSAM 7
No new posts special characters pipes "|"... COBOL Programming 1
No new posts Replacing same string with different ... DFSORT/ICETOOL 6
No new posts Remove junk values in a file and rite... DFSORT/ICETOOL 2
No new posts Replacing Start Transid with LINK CICS 12
Search our Forums:

Back to Top