I have a requirement as below in REXX.
Syntax check a JCL and filter out the error messages whose error code
is specified by the user.
In our installation we do a syntax check by typing "JEM" or "JEMCHK".
(I don't know the details of what happens in the background, ie,
whether this command invokes a REXX macro or some other routine. I
would like to know also if there is a way to find this out.)
When this command is run, we get a list of errors inside the JCL. Here,
each error (Eg, GDG base does not exist) has a unique error code, which
I intend to use as input to my program. Will I be able to simulate this
in REXX? I would like as an output, a temporary PDS which lists the
filtered error messages only.
I'm new to the world of REXX. Can anybody help?
JEM is Jobscan.
You can simply run JEM and wite an edit macro to collect the error
messages from the JEM invocation, filter out the ones you don't want
and wite out those which remain.
Mickey
>Syntax check a JCL
Do you mean syntax check the JCL for a job or parse the output of an
existing syntax-check program? If the latter, what program? Have you
consulted its documentation?
>Will I be able to simulate this in REXX?
That depends on your programming skills. There is little specific to
REXX in the task.
--
Shmuel (Seymour J.) Metz, SysProg and JOAT <http://patriot.net/~shmuel>
Unsolicited bulk E-mail subject to legal action. I reserve the
right to publicly post or ridicule any abusive E-mail. Reply to
domain Patriot dot net user shmuel+news to contact me. Do not
reply to spam...@library.lspace.org
By Syntax check the JCL I mean the same thing as Job scan. Most
installations have different tools to achieve this (JJ, JEM etc). In
mine, its "JEM". I do not have any documentation on the same, and thats
why I sought help on how to invoke it. Pls let me know if its possible
to invoke it from my program.
>
> >Will I be able to simulate this in REXX?
>
> That depends on your programming skills. There is little specific to
> REXX in the task.
>
I would want REXX to automate the task of scanning a group of JCLs and
filtering out a specific error (if present) in all of them. I know that
REXX is the answer, but my limited experience with the language is
causing held-ups. Any help on this would be appreciated. This's quite
urgent.
>By Syntax check the JCL I mean the same thing as Job scan. Most
>installations have different tools to achieve this (JJ, JEM etc). In
>mine, its "JEM". I do not have any documentation on the same, and
>thats why I sought help on how to invoke it.
Why ask here? You need to ask in a mailing list, news group, vendor
help line or other forum where your question is on topic and there are
people familiar with the product. I'd suggest IBM-MAIN as a good
starting point. I'd also suggest trying HELP JEM.
Once you know how to call JEM from the command line and what it's
outputs look like, you'll be in a position to ask questions relevant
to this news group. Until then, you're wasting your time here unless
one of the readers happens to be familiar with the product.
My first thought would be to use OUTTRAP, but I have no idea whether
JEM supports it or, if it does, what the output looks like.