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
 

 

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
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
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm


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