View previous topic :: View next topic
|
Author |
Message |
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
I recently wanted to find semi colons (;) in ISPF EDIT. I innocently thought
f ';'
would work. ISPF insisted there was an incomplete string in the command. OK, I'll try
f ";"
Same result. After a few minutes of thought I realized ISPF was too stupid to realize that a ; entered in quotes or double quotes was part of a string, not the end of the command. How to get around this problem? Well, finding the hex code for ; should work.
f x'??'
It took a couple of minutes to find the hex code for ; - 5E. I entered
f x'5e'
and sure enough, all the semi colons were high lighted. I found the bad ; and changed it to l, which I originally wanted. |
|
Back to top |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 736 Location: Denmark
|
|
|
|
Hint for finding a hex code: edit something, insert the character in a line then use the line command HX for that line. Note that HX is a toggle, use it once more and the normal display is back. |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2147 Location: USA
|
|
|
|
One more hint.
When searching a single line, or only a few ones in a huge text, with many occurrences of the character under question, the finding process can be simplified while using X ALL;F ALL X'5E'
Also HIDE X can be used to hide completely all unneeded lines from the screen. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2596 Location: Silicon Valley
|
|
|
|
I suppose it depends on how often you use the semicolon...
I changed the command delimiter to be '~' so that I could freely use the semicolon in the primary command line. Change it in the ISPF options panel. In the example Sergey gave, I would do: X ALL~F ALL ';' and it would work as expected.
Yeah, I know changing the delimiter is not for everyone. |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1341 Location: Bamberg, Germany
|
|
|
|
The ISPF variable for the delimiter is ZDEL, just in case somebody want's to have an REXX/CLIST for reading it out. |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3076 Location: NYC,USA
|
|
Back to top |
|
|
|