IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Parameter passing to DB2 programs


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Vandana S

New User


Joined: 17 Dec 2007
Posts: 20
Location: Mumbai

PostPosted: Tue Jan 29, 2008 2:45 pm
Reply with quote

We run COBOL-DB2 programs using the utility IKJEFT01. Please let me know how to pass PARM to this COBOL-DB2 programs.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Jan 29, 2008 2:58 pm
Reply with quote

Are you using the DSN command or the CAF flavour?

O.
Back to top
View user's profile Send private message
Vandana S

New User


Joined: 17 Dec 2007
Posts: 20
Location: Mumbai

PostPosted: Tue Jan 29, 2008 3:01 pm
Reply with quote

DSN command.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Jan 29, 2008 3:11 pm
Reply with quote

You might find the fine manual very helpful in describing the DSN RUN command.

O.
Back to top
View user's profile Send private message
Vandana S

New User


Joined: 17 Dec 2007
Posts: 20
Location: Mumbai

PostPosted: Tue Jan 29, 2008 3:14 pm
Reply with quote

Thanks a lot!
Back to top
View user's profile Send private message
anv2005

New User


Joined: 14 Jul 2005
Posts: 44
Location: US

PostPosted: Wed Jan 30, 2008 4:52 am
Reply with quote

Code:
PROFILE    PREFIX(ANV)           
DSN SYSTEM(DB2P) RETRY(0) TEST(0)   
RUN PROGRAM(MYPGM) PLAN(MYPLAN) -
  PARMS('0001,/NOSTAE,NOSPIE') -   
  LIB('ANV.PROD.LOAD') -       
                                   
END                                 


This is an example of SYSTSIN file, which contains various directives which directs IKJEFT01 which DB2 subsystem to connect to (DB2P), what DB2 plan to use (MYPLAN), what program to run (MYPGM), and what parameters to pass to this program.

This example shows that my program named MYPGM will receive one parameter 0001, and the IBM LE (Language Environment) will receive two parameters NOSTAE and NOSPIE.

However, ofer71 is right. The best place to look for answers is IBM manual. In this case see: Running a batch DB2 application in TSO
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts USAGE parameter of RACDCERT CONNECT c... All Other Mainframe Topics 2
No new posts Passing containers on START command CICS 4
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Fetch data from programs execute (dat... DB2 3
No new posts Passing Parameters to Programs Invoke... PL/I & Assembler 5
Search our Forums:


Back to Top