MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

want to pass a parameter to an IMS program

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
mkamalahasan
Beginner


Joined: 24 Sep 2004
Posts: 2
Topics: 1
Location: India

PostPosted: Wed May 11, 2005 6:57 am    Post subject: want to pass a parameter to an IMS program Reply with quote

Hi,

I have a COBOL-IMS program. I want to pass a parameter (say a date field) from JCL. The mode of IMS call in JCL is DLI. How do I pass the &date from JCL?

What kind of change I have to make in the application program? Will 'ACCEPT' verb get the parameter?

Thanks in advance for your help.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12380
Topics: 75
Location: San Jose

PostPosted: Wed May 11, 2005 8:36 am    Post subject: Reply with quote

mkamalahasan,

please search before posting . check these links

http://www.mvsforums.com/helpboards/viewtopic.php?t=2456&highlight=accept

http://www.mvsforums.com/helpboards/viewtopic.php?t=1532&highlight=accept

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mkamalahasan
Beginner


Joined: 24 Sep 2004
Posts: 2
Topics: 1
Location: India

PostPosted: Wed May 11, 2005 10:08 pm    Post subject: Reply with quote

Hi Kolusu,

Ofcourse I did a search before I raised the question in this forum. I know how to pass the parameters to a COBOL-DB2 Program. The question here is "how to pass an user parameter thru PARM to a COBOL-IMS program". I am very aware that there is a workaround to achieve the result by using files. In my case it will be very appropriate if I use PARM parameter.

The parm for DFSRRC00 is as below:
Code:

PARM=(DLI,&MBR,&PSB,&BUF,&SPIE&TEST&EXCPVR&RST,&PRLD,&SRCH,
     &CKPTID,&MON,&LOGA,&FMTO,&IMSID,&SWAP,&DBRC,&IRLM,&IRLMNM,
     &BKO,&IOB,&SSM,'&APARM',&LOCKMAX,&GSGNAME,&TMINAME,&RRS)


Here I hope we can use the symbolic APARM to pass the parameters. Is that correct? If so, how to accept or read this parm in the COBOL application program?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12380
Topics: 75
Location: San Jose

PostPosted: Thu May 12, 2005 5:52 am    Post subject: Reply with quote

m. kamalhasan,

*sigh* You cannot pass values to IMS pgm via Parm parameter. So you need to use ACCEPT verb in here. In your JCL code the following.
Code:

//SYSIN  DD *
  your parms here


Now in your pgm use the ACCEPT verb and it will pickup the values passed via sysin.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group