View previous topic :: View next topic |
Author |
Message |
javedsk12 Beginner

Joined: 14 Dec 2007 Posts: 66 Topics: 36 Location: pune
|
Posted: Thu Jun 05, 2008 8:14 am Post subject: How to pass the Data to subprogram through JCL |
|
|
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 |
|
 |
Terry_Heinze Supermod
Joined: 31 May 2004 Posts: 391 Topics: 4 Location: Richfield, MN, USA
|
Posted: Thu Jun 05, 2008 8:31 am Post subject: |
|
|
The Language Reference and Programming Guide manuals cover that pretty well. Have you looked there? _________________ ....Terry |
|
Back to top |
|
 |
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Thu Jun 05, 2008 8:33 am Post subject: |
|
|
//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 |
|
 |
CraigG Intermediate
Joined: 02 May 2007 Posts: 202 Topics: 0 Location: Viginia, USA
|
Posted: Thu Jun 05, 2008 8:45 am Post subject: |
|
|
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 |
|
 |
javedsk12 Beginner

Joined: 14 Dec 2007 Posts: 66 Topics: 36 Location: pune
|
Posted: Fri Jun 06, 2008 12:22 am Post subject: |
|
|
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 |
|
 |
Ram Beginner

Joined: 12 Jan 2004 Posts: 53 Topics: 12
|
Posted: Fri Jun 06, 2008 6:46 am Post subject: |
|
|
Craig has already answered your query. Are you still looking for the code to pass data thru Linkage section ? |
|
Back to top |
|
 |
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Fri Jun 06, 2008 7:42 am Post subject: |
|
|
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 |
|
 |
|
|