View previous topic :: View next topic
|
Author |
Message |
hsk
New User
Joined: 28 Nov 2006 Posts: 69 Location: India
|
|
|
|
I am having a rexx exec to find and jump to the para name in cobol pgm.
i am using : "ISREDIT FIND '"||PARA||"' 8 NEXT"
where PARA - is the para name, this command locates the starting of para and takes user to that line.
This works ok !!
But works only when i use 'NUM OFF' / 'NUM ON' ..... not sure why ?
If i try to use "NUM ON STD COB' it's not working !!!
Any thots ... or a work around may be ? |
|
Back to top |
|
|
hsk
New User
Joined: 28 Nov 2006 Posts: 69 Location: India
|
|
|
|
ohhh , I get that ....
Code: |
"ISREDIT FIND '"||PARA||"' 8 NEXT"
IF RC <> 0 THEN
DO
"ISREDIT FIND '"||PARA||"' 2 NEXT"
IF RC <> 0 THEN
DO
ZEDSMSG = 'PARA NOT FOUND - ' PARA
ADDRESS ISPEXEC "SETMSG MSG(ISRZ001)"
END
END
|
Still anybody have better solution ..... |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
You can retrieve the status of the NUM mode using the NUMBER command.
O. |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
With NUM ON STD COBOL, maybe what used to be column position 1 is now column position 7? I remember that certain NUM options shift the ISPF screen to the right 7 positions. |
|
Back to top |
|
|
|