Have you tried this?
x=msg('off')
"CALL 'LMG.TEST.LOAD(NDVREMER)' '"ndvparm"'"
x=msg(x)
This will turn messages off for this call.
Or you could use outtrap if you need to process the message.
x=OUTTRAP("mymsg.")
"CALL 'LMG.TEST.LOAD(NDVREMER)' '"ndvparm"'"
x=outtrap(off)
A positive...
OK,
I tried something a little different. I'm building my edit macro on the fly and then calling it. I am storing my macro in the same library as my EXEC (SYSSU.REXX.EXEC). It is coded as follows:
/* REXX */
Say "<<<<<<CMNEDIT REXX EXEC WAS...
It works like a champ in the foregroup. When I run a trace, I get an RC(4).
11 *-* ADDRESS ISPEXEC "EDIT DATASET('"FILENAME"') MACRO("MACRO1")"
>>> "EDIT DATASET('TEST.PDF') MACRO(##CMDS)"
+++ RC(4) +++
12 *-*...
I don't think that is the problem. I have quotes around the dataset name and feeding a variable. (i.e. '"FILENAME"')
I renamed my dataset from TEST.PDF to S743SS.TEST.PDF and reran my job. I got a return code of 990 with the following errror.
* Data set not cataloged -/-'TEST.PDF' was...
I'm trying to run an edit macro from batch. Below is the JCL, edit macro, and REXX. It works online but not in batch. It appears the edit macro is not being called. What am I doing wrong? Also, I'm attaching the output of my JCL.
*******************************************************...
I have a REXX using panels to gather information from the user to build JCL for them. I'm running into a problem. After the user enters their information, they have to press the enter key twice to have it to go on. I've tried to use the following:
"ISPEXEC CONTROL DISPLAY LOCK"
before...
Its been awhile since I've worked in REXX. I'm trying to remeber how to add a message line to a dataset when I'm in edit mode. For example
==MSG> MESSAGE GOES HERE
==MSG> MESSAGE CONTINUES ETC ETC
00001
00002
00003
Anyones help would be appreciated.
I am having issues with outtrap. I am using the following code to trap dsnenq command. Trapping is not working because it lists the DSNENQ command output and if you list var.0 command it is zero. Any ideas?
do i=1 to info.0
dsn=strip(substr(info.i,1,46),t)
x =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.