MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to pass the Data to subprogram through JCL

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
javedsk12
Beginner


Joined: 14 Dec 2007
Posts: 66
Topics: 36
Location: pune

PostPosted: Thu Jun 05, 2008 8:14 am    Post subject: How to pass the Data to subprogram through JCL Reply with quote

hi frnds,

How to How to pass the Data to subprogram through JCL
what we need to code in linkage section for that calling and called program
would please give an sample code for that one.


Regards,

javed
_________________
javed

-----------------------
The Word Impossible it self says i am possible(im possible)
Back to top
View user's profile Send private message
Terry_Heinze
Supermod


Joined: 31 May 2004
Posts: 391
Topics: 4
Location: Richfield, MN, USA

PostPosted: Thu Jun 05, 2008 8:31 am    Post subject: Reply with quote

The Language Reference and Programming Guide manuals cover that pretty well. Have you looked there?
_________________
....Terry
Back to top
View user's profile Send private message Send e-mail
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Thu Jun 05, 2008 8:33 am    Post subject: Reply with quote

//ddname DD DSN=your.dataset,DISP=SHR

That is JCL for providing data to a program. If that is not what you mean then what do you mean? If you mean the JCL for compiling and linking look at the relevant Programming Guide.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
CraigG
Intermediate


Joined: 02 May 2007
Posts: 202
Topics: 0
Location: Viginia, USA

PostPosted: Thu Jun 05, 2008 8:45 am    Post subject: Reply with quote

You can't pass it directly to the subprogram, you would have to pass it to the calling program and then the calling program can pass it to the called program.
Back to top
View user's profile Send private message
javedsk12
Beginner


Joined: 14 Dec 2007
Posts: 66
Topics: 36
Location: pune

PostPosted: Fri Jun 06, 2008 12:22 am    Post subject: Reply with quote

how to pass data to a subprogram from PARM parameter through JCL ?
would show the example code for the linkage section.
_________________
javed

-----------------------
The Word Impossible it self says i am possible(im possible)
Back to top
View user's profile Send private message
Ram
Beginner


Joined: 12 Jan 2004
Posts: 53
Topics: 12

PostPosted: Fri Jun 06, 2008 6:46 am    Post subject: Reply with quote

Craig has already answered your query. Are you still looking for the code to pass data thru Linkage section ?
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Fri Jun 06, 2008 7:42 am    Post subject: Reply with quote

How to code a parm in JCL as per the manuals:

//STEPXX EXEC PGM=MYPGM,PARM=parameter

Use quotes around the parameter if necessary or even if not necessary.

How to pick it up in your program: it is in the manual and on the forums.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group