MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TSO Command to replace a character in a position

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
suryavenkat_sharma
Beginner


Joined: 06 Jul 2004
Posts: 3
Topics: 2

PostPosted: Thu Sep 16, 2004 6:11 am    Post subject: TSO Command to replace a character in a position Reply with quote

Hi all,
Please let me know " how to replace a column position in a file with a specified character with out using REXX?" . I want to know how to do this using tso commands.

for example: I want to replace the 7 th column of every line in a cobol program with *.

Please help me with this.
Thanks and Regards,
Surya venkat sharma.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Thu Sep 16, 2004 6:25 am    Post subject: Reply with quote

suryavenkat_sharma,

A simple CHANGE command will do.

Code:

C ' '  '*'  7 ALL

_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Thu Sep 16, 2004 7:16 am    Post subject: Reply with quote

Just remember: The CHANGE command is an ISPF EDIT command, not a TSO command.

O.
________
mac game


Last edited by ofer71 on Sat Feb 05, 2011 11:19 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
taltyman
JCL Forum Moderator
JCL Forum Moderator


Joined: 02 Dec 2002
Posts: 310
Topics: 8
Location: Texas

PostPosted: Thu Sep 16, 2004 9:06 am    Post subject: Reply with quote

This is another answer to the specific question...

C All P'=' '*' 7

This assumes a blank in position 7

C ' ' '*' 7 ALL
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group