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

How to use PARM in DB2 RUN JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
chkiran2

New User


Joined: 24 Jun 2004
Posts: 24
Location: Gurgoan

PostPosted: Thu Sep 02, 2004 9:50 am
Reply with quote

Hi
How to code the PARM parameter in a JCL to pass data to program which executes a DB2 program. I can do this using instream data. I want to know how to use PARM.

Thanks
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Sun Sep 05, 2004 7:56 am
Reply with quote

I can find no evidence that it is possible to run a DB2 program directly without first starting the TSO program.

Perhaps you'd care to share why you believe that what you are asking for is possible?
Back to top
View user's profile Send private message
anuradha

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

PostPosted: Tue Oct 12, 2004 6:53 pm
Reply with quote

Hi Kiran,

To pass PARM parameter to JCL which executes DB2 program, In our shop we have one utility program which takes a parm passed to it and create a one record file that can be used as a SYSIN.

We execute that program three times:

1.first time we pass the actual DB2 program name as a PARM
2.Secondly we pass the actual PARM to be passed
3.Thidly we pass the PARM as "end"

And finally we will concatenate all the Above SYSUT2 steps (watever it may be) and execute IKJEFT01.

Hope this helps.

If someone has more effective solution they can provide here ,so that it may help all of us.

Thanks,
Anu
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts JCL EXEC PARM data in C Java & MQSeries 2
No new posts Need to specify PARM='POSIX(ON) Java & MQSeries 4
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts Passing parm from JCL to Assembler, b... PL/I & Assembler 2
No new posts Using PARM=('JPn"&SYMBOL&quo... DFSORT/ICETOOL 2
Search our Forums:

Back to Top