View previous topic :: View next topic |
Author |
Message |
MAUIGIRL Beginner
Joined: 04 Dec 2007 Posts: 1 Topics: 1 Location: Hawaii
|
Posted: Wed Dec 05, 2007 8:44 pm Post subject: how do I make a global change in column using hex (in Cobol) |
|
|
In tso there is a way to make a global change using some hex command that I have forgotton how to use. Here is an example of what I am talking about.
EDIT 339C19A.T46F8B0B.SRC Columns
Command ===> c '016' ' ' 1 all Scro
==CHG> 900 05 WS-FROM-CC PIC X(2).
==CHG> 000 05 WS-FROM-YY PIC X(2).
==CHG> 100 05 FILLER PIC X(1) VALUE '-'.
==CHG> 200 05 WS-FROM-MM PIC X(2).
The command that I'm looking for is something like this
c hex(^' ') ' ' 1 all . thats not the correct command, but I thought maybe it would trigger someone's thoughts. It reads like this Change everything in column one that is not equal spaces to spaces.
If anyone could shed some light I would greatly appreciate it.
Thanks,
MauiGirl |
|
Back to top |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Wed Dec 05, 2007 11:06 pm Post subject: |
|
|
for this spcial case, use which changes everything in column 1 to spaces including spaces, but that is OK for your description. Have a look at the help (F1) for information on picture strings. ISPF edit and browse do not have a 'not' operation in the FIND and CHANGE commands, though there is a picture string that uses the 'not' character (which you can also use in your case) that represents non-blank characters.
[code:1:101d7a9454]C P' _________________ New members are encouraged to read the How To Ask Questions The Smart Way FAQ at http://www.catb.org/~esr/faqs/smart-questions.html. |
|
Back to top |
|
 |
prgaj1 Beginner
Joined: 01 Jul 2003 Posts: 6 Topics: 5 Location: Pennsylvania, USA
|
Posted: Wed Jun 04, 2008 3:56 pm Post subject: |
|
|
One use P for special characters but one can also use - "X".... if you would like all space colon to space comma you would have the following code
Code:
C X'405E' X'406B' all
You will first have to set HEX ON to be able to see your hex characters |
|
Back to top |
|
 |
|
|