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
This topic is locked: you cannot edit posts or make replies. Full Time COBOL Software Development ... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:24 am
This topic is locked: you cannot edit posts or make replies. COBOL Software Development Lead at Fi... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:21 am
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm


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