Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Batch CICS/DB2 Program Parameters

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
Roy Ware

New User


Joined: 19 Sep 2013
Posts: 4
Location: USA

PostPosted: Wed Jun 03, 2015 10:33 pm    Post subject: Batch CICS/DB2 Program Parameters
Reply with quote

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
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7223

PostPosted: Wed Jun 03, 2015 10:44 pm    Post subject: Reply to: Batch CICS/DB2 Program Parameters
Reply with quote

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
View user's profile Send private message
Roy Ware

New User


Joined: 19 Sep 2013
Posts: 4
Location: USA

PostPosted: Fri Jun 12, 2015 5:44 pm    Post subject:
Reply with quote

That did the trick, Bill. Thanks!
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm
This topic is locked: you cannot edit posts or make replies. MIPS reduction for Batch job Virendra Shambharkar All Other Mainframe Topics 8 Mon Nov 07, 2016 4:02 pm
No new posts CICS NEW SIT PARAMETERS CICS BEHAVIOR... Kyle Carroll CICS 0 Fri Nov 04, 2016 11:55 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us