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

Want replace all the lines with space insted of *.


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
HARIBHARAT

New User


Joined: 05 Jul 2006
Posts: 65
Location: pune

PostPosted: Wed Nov 29, 2006 2:40 pm
Reply with quote

I have 7th col *(comment) this is avalible no of lines , we dont know exactely.

i want replace all the lines space insted of *.

please advise me below command is not working

delete '*' 7 ' ' ALL
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Wed Nov 29, 2006 3:08 pm
Reply with quote

Hi HARIBHARAT,
I am not able to understand ur query.
Please restate it.
Back to top
View user's profile Send private message
Farooq

New User


Joined: 24 Nov 2006
Posts: 15
Location: Chennai

PostPosted: Wed Nov 29, 2006 3:12 pm
Reply with quote

Open file in EDIT mode Type the below Command at Commad line

C all '*' ' ' 7


Thanks
Farooq
Back to top
View user's profile Send private message
HARIBHARAT

New User


Joined: 05 Jul 2006
Posts: 65
Location: pune

PostPosted: Wed Nov 29, 2006 3:17 pm
Reply with quote

My question is my program total 500 lines is there , every 7th position comment is there near a 130 lines commented, now I want to replace with all the comments to space.
How it is possible?
Back to top
View user's profile Send private message
Farooq

New User


Joined: 24 Nov 2006
Posts: 15
Location: Chennai

PostPosted: Wed Nov 29, 2006 3:19 pm
Reply with quote

Hi Hari

Try the Below

Open file in EDIT mode Type the below Command at Commad line

C all '*' ' ' 7


Thanks
Farooq
Back to top
View user's profile Send private message
HARIBHARAT

New User


Joined: 05 Jul 2006
Posts: 65
Location: pune

PostPosted: Wed Nov 29, 2006 3:20 pm
Reply with quote

thanks farooq
i got Solutions
Back to top
View user's profile Send private message
HARIBHARAT

New User


Joined: 05 Jul 2006
Posts: 65
Location: pune

PostPosted: Wed Nov 29, 2006 3:28 pm
Reply with quote

Is it possible delete all the comment lines(it is 7th postion ) above query extenstion.
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Wed Nov 29, 2006 3:44 pm
Reply with quote

Just give

Code:
X '*' 7 all

Then

Code:
DEL all X
Back to top
View user's profile Send private message
HARIBHARAT

New User


Joined: 05 Jul 2006
Posts: 65
Location: pune

PostPosted: Wed Nov 29, 2006 5:20 pm
Reply with quote

hi ekta.

It is deleted entire line , i need to delete that comment only.
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Wed Nov 29, 2006 7:27 pm
Reply with quote

THen use

Code:
C '*'  ' ' 7 all
Back to top
View user's profile Send private message
main_prem

New User


Joined: 16 Mar 2005
Posts: 8
Location: chennai

PostPosted: Fri Dec 22, 2006 5:05 pm
Reply with quote

Hi Haribharath,

today only i have seen your query..

Just type C ALL '*' ' ' 3

this will make all the command line to active lines..
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Dec 23, 2006 8:40 pm
Reply with quote

Hi Main,

Why "3" and not "7"?
Back to top
View user's profile Send private message
main_prem

New User


Joined: 16 Mar 2005
Posts: 8
Location: chennai

PostPosted: Tue Dec 26, 2006 11:05 am
Reply with quote

Hi mmwife,

for eg the jcl is looks like this

000240 //* MAINTENANCE HISTORY:

if we want to replace the '*' with space we have to give in the cmd line

C ALL '*' ' ' 3

Bcoz the system wont calculate the numberings(000240) , So 3 is the 3 rd column. * lies in 3rd column.
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts replace word 'MONTH' with current mon... SYNCSORT 11
No new posts To replace jobname in a file with ano... SYNCSORT 12
No new posts I need a 4 lines block where substrin... DFSORT/ICETOOL 12
Search our Forums:

Back to Top