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
 

 

replacing junk with hyphen

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: replacing junk with hyphen
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10272
Location: italy

PostPosted: Fri Jun 02, 2017 7:50 pm    Post subject: Reply to: replacing junk with hyphen
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

Senior Member


Joined: 21 Sep 2010
Posts: 1720
Location: NY,USA

PostPosted: Fri Jun 02, 2017 9:05 pm    Post subject:
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

New User


Joined: 29 Apr 2008
Posts: 91
Location: Maryland

PostPosted: Fri Jun 02, 2017 9:27 pm    Post subject: Re: replacing junk with hyphen
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    Post subject: Reply to: replacing junk with hyphen
Reply with quote

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

Senior Member


Joined: 21 Sep 2010
Posts: 1720
Location: NY,USA

PostPosted: Fri Jun 02, 2017 11:01 pm    Post subject:
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

New User


Joined: 29 Apr 2008
Posts: 91
Location: Maryland

PostPosted: Sat Jun 03, 2017 4:12 am    Post subject: Re: Reply to: replacing junk with hyphen
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    Post subject: Reply to: replacing junk with hyphen
Reply with quote

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

Global Moderator


Joined: 10 May 2007
Posts: 1800
Location: UK

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

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

Global Moderator


Joined: 14 Mar 2007
Posts: 10272
Location: italy

PostPosted: Sat Jun 03, 2017 8:45 pm    Post subject: Reply to: replacing junk with hyphen
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: 1763
Location: Bloomington, IL

PostPosted: Sat Jun 03, 2017 9:19 pm    Post subject: Re: Reply to: replacing junk with hyphen
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    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 Replacing same string with different ... vickey_dw DFSORT/ICETOOL 6 Wed Feb 22, 2017 10:44 pm
No new posts Remove junk values in a file and rite... KP1125 DFSORT/ICETOOL 2 Wed Jan 25, 2017 9:58 pm
No new posts Replacing Start Transid with LINK pkmurali CICS 12 Tue Apr 19, 2016 8:22 pm
No new posts ADRDSSU Restore - How to prevent repl... Lipi.Prasannan JCL & VSAM 12 Fri Oct 02, 2015 12:13 am
No new posts XML generated from cobol is displayin... vangeti COBOL Programming 2 Wed Aug 19, 2015 5:16 pm


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