Good morning IBM-MAIN,

a new day is dawning on me after one of those o-dark-thirty
nights.

I hope some of you far west are still awake and some of you far
east already  8^)


Am having trouble with OPC. Having no access whatsoever to OPC
and - worse - almost zero knowledge of the product here's what I
wanted to solve:

OPC submits a Job which basically is nothing but a job card,
followed by a JCLLIB statement and ends with an INCLUDE statement.
This had to be modified such that two OPC statements (please no
nitpicking about the correct names here) had to be prepended.
Namely a OPC SCAN statement and a OPC SETFORM statement defining a
variable OCDATE.

As I have never worked with OPC nor setup jobs that were submitted
by OPC I simply added variable &OCDATE at the relevant places in
the INCLUDE member.

When I said that I would like to verify this (as I recall e.g. the
simulation feature of Control-M) I was told that this was either
not possible or that they simply wouldn't know how. (This is a
long-distance non-sysprog consulting situation).

So I got up at three o'clock in the morning just to see the job
fail immediately with an "incorrect use of ampersand" message.

To recap

OPC Job
  //*%OPC SCAN
  //*%OPC SETFORM OCDATE=(CCYYDDD)
  //   job card
  //  JCLLIB ORDER=(several_libs)
  //  INCLUDE MEMBER=inc_mbr

Include Member
  //  EXEC whatsoever
  //DD1 DD DSN=A.B.C.D&OCDATE

This is the syntax I was given (albeit the sample was a job
without INCLUDE).

Hhhmm, after awhile I thought "O.k., since I have to stick to the
INCLUDE (ie. a FETCH member solution is not desirable) why not SET
a JCL variable in the "job" member and use that variable instead
in the INCLUDE member. This should bypass any problems OPC might
have in combination with the INCLUDE technique."

Like:

OPC Job
  //*%OPC SCAN
  //*%OPC SETFORM OCDATE=(CCYYDDD)
  //   job card
  //  SET MYDATE=&OCDATE
  //  JCLLIB ORDER=(several_libs)
  //  INCLUDE MEMBER=

Include Member
  //  EXEC whatsoever
  //DD1 DD DSN=A.B.C.D&MYDATE

I emailed this to the operators. They implemented it and much to
my surprise this also failed with "incorrect use of ampersand".


Now the real (for me) questions are:
(1) How do I run a simulation in OPC?
(2) How do I get the OPC (or SET) variable resolved in the
included JCL?


Any and all suggestions are welcome

Robert Bardos
Ansys AG, Zürich, Switzerland

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to