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
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm
No new posts Submit job from Cobol with input data abdulrafi COBOL Programming 4 Wed Feb 01, 2017 12:41 pm
No new posts Can DFSPARM override SORTKEYS paramet... ashek15 DB2 2 Tue Jan 31, 2017 11:36 pm


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