View previous topic :: View next topic
|
Author |
Message |
Roy Ware
New User
Joined: 19 Sep 2013 Posts: 14 Location: USA
|
|
|
|
I got assigned the job of creating a program that reads a CICS queue (MQ series) and writes the messages to DB2.
The program has to be flexible to access the proper queue for each environment. The problem is, the parms aren't passing. Here's what I've tried:
Code: |
DSN SYSTEM(DSNT)
RUN PROGRAM(BOM00150) PLAN(BOMDBAT) -
PARMS('ABCDEFGHIJKLMNOPQRSTUVWXYZ')
END |
and
Code: |
//BOM00150 EXEC PGM=IKJEFT1B,PARM=('ABCDEFGHIJKLMNOPQRSTUVWXYZ') |
Neither work. I've accomplished this before with just a DB2 program, but working with the queue has set me back considerably.
What I get for both attempts is hex zeroes (low values). |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
With the first, unless told otherwise, Language Environment is eating your parameter.
With the second, TSO-in-batch is eating your parameter.
You need to use the first and have a "/" preceding your parameter, or to tell LE that its parameters are second (after the "/"). |
|
Back to top |
|
|
Roy Ware
New User
Joined: 19 Sep 2013 Posts: 14 Location: USA
|
|
|
|
That did the trick, Bill. Thanks! |
|
Back to top |
|
|
|