Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How do you pass a parameter from jcl to a cobol program apar

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
vbhat

New User


Joined: 29 Apr 2005
Posts: 38

PostPosted: Tue May 17, 2005 11:48 am    Post subject: How do you pass a parameter from jcl to a cobol program apar
Reply with quote

How do you pass a parameter from jcl to a cobol program apart from PARM and SYSIN DD*?
Back to top
View user's profile Send private message

naveensri2005
Currently Banned

New User


Joined: 22 Mar 2005
Posts: 51
Location: chennai

PostPosted: Tue May 17, 2005 12:00 pm    Post subject: Re: How do you pass a parameter from jcl to a cobol program
Reply with quote

HI,

one is ddname. u r using vsam files or ps files.



regards.
naveen
Back to top
View user's profile Send private message
vbhat

New User


Joined: 29 Apr 2005
Posts: 38

PostPosted: Tue May 17, 2005 12:28 pm    Post subject:
Reply with quote

can you give me an example and explain it
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Tue May 17, 2005 2:04 pm    Post subject:
Reply with quote

You can pass parameter from JCL to a Cobol program in Parm or Sysin
Parm must be specify in jcl and Sysin parameter can be passed as instream DD or as sequentia/partitioned file.
i.e.
//STEP010P EXEC PGM=PGMCOBOL,PARM='......'
and
//SYSIN DD *
.....

or
//SYSIN DD DISP=SHR,DSN=MYDATASET.OR.LIBRARY.MEMBER
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us