View previous topic :: View next topic |
Author |
Message |
suryavenkat_sharma Beginner
Joined: 06 Jul 2004 Posts: 3 Topics: 2
|
Posted: Thu Sep 16, 2004 6:11 am Post subject: TSO Command to replace a character in a position |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Thu Sep 16, 2004 6:25 am Post subject: |
|
|
suryavenkat_sharma,
A simple CHANGE command will do.
_________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
ofer71 Intermediate
Joined: 12 Feb 2003 Posts: 358 Topics: 4 Location: Israel
|
Posted: Thu Sep 16, 2004 7:16 am Post subject: |
|
|
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 |
|
|
taltyman JCL Forum Moderator
Joined: 02 Dec 2002 Posts: 310 Topics: 8 Location: Texas
|
Posted: Thu Sep 16, 2004 9:06 am Post subject: |
|
|
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 |
|
|
|
|