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
 

 

Difference b/w passing parm from jcl to cobol and cobol-db2

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
saurabh7878
Warnings : 1

New User


Joined: 02 Jun 2005
Posts: 16

PostPosted: Thu Jul 14, 2005 1:11 pm    Post subject: Difference b/w passing parm from jcl to cobol and cobol-db2
Reply with quote

Hi all
Is there a difference in passing the parameters from JCL to a cobol program and a cobol-db2 program..........

I know we can pass parameter to a cobol program specifying
PARM ='VALUES' in the JCL...
But not sure about cobol-db2 program

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

somasundaran_k

Active User


Joined: 03 Jun 2003
Posts: 134

PostPosted: Thu Jul 14, 2005 7:42 pm    Post subject:
Reply with quote

Put your PARM in the SYSTSIN card. Something like

Code:

//SYSTSIN  DD  *
   DSN SYSTEM(your db2 sys)                           
   RUN  PROGRAM(your COBOL-DB2 program) PLAN(Plan name) -   
        LIB('Load library') PARM('values')
/*


And access it in your linkage section.

hth
-Som
Back to top
View user's profile Send private message
hikaps14

Active User


Joined: 02 Sep 2005
Posts: 189
Location: Noida

PostPosted: Wed Jun 07, 2006 5:27 pm    Post subject: Re: Difference b/w passing parm from jcl to cobol and cobol-
Reply with quote

Hi ,

I want to keep parm in jcl as variable .

if i keep it in systin inside pds-member then it can't be a variable .

is there any other way to pass parm from jcl (its a cobol-db2 prog.) .

Thanks ,
-Kapil.
Back to top
View user's profile Send private message
prasadvrk

Active User


Joined: 31 May 2006
Posts: 200
Location: Netherlands

PostPosted: Wed Jun 07, 2006 7:30 pm    Post subject:
Reply with quote

supply a parm card instead of hard coding the SYSTSIN details as below:
//SYSTSIN DD DSN=&SUPPLY YOURPARMLIB HERE(MEM)


YOURPARMLIB HERE(MEM) will contain the following details

DSN SYSTEM(DAD0)
RUN PROGRAM(PGM) -
PLAN(PGM) -
PARM(' 2006-02-03')
END
Back to top
View user's profile Send private message
hikaps14

Active User


Joined: 02 Sep 2005
Posts: 189
Location: Noida

PostPosted: Wed Jun 07, 2006 11:07 pm    Post subject: Re: Difference b/w passing parm from jcl to cobol and cobol-
Reply with quote

tat is exactly wat i m saying .

i dont want to pass parm from inside a member .
because i hav to change parm again n again .
i want to control parm from jcl itself .

i hope i am clear now .
1 more thing i can't use 'accept' verb .

Thanks ,
-Kapil.
Back to top
View user's profile Send private message
prasadvrk

Active User


Joined: 31 May 2006
Posts: 200
Location: Netherlands

PostPosted: Thu Jun 08, 2006 11:08 am    Post subject:
Reply with quote

You have to use REXX to do that if your client has any REXX utilities you may go for them
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm


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