View previous topic :: View next topic
|
Author |
Message |
venkateswara rao.muppa
New User
Joined: 21 May 2007 Posts: 5 Location: hyderabad
|
|
|
|
hi,
could you please tell me the syntax of jcl to pass the value from jcl to cobol program through parm perameter. |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Venkat,
Why did you chose to continue with the old post (also which was not started by you)?
Quote: |
could you please tell me the syntax of jcl to pass the value from jcl to cobol program through parm perameter. |
Did you refer manual. What did the manual say? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
As suggested, please start a new topic when you have a new question.
There is much more in both the COBOL and JCL manuals (linked to via the "Manuals" link at the top of the web page), but basically, you need
Code: |
//STEPNAME EXEC PGM=COBOLPGM,PARM='theparmdata" |
|
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
This may help further,
The parm receiving field and the length needs to be specified in linkage section. Also the procedure division should have the USING in it.
So for example if the JCL had something like this:
Code: |
//STEPNAME EXEC PGM=PGM1,PARM='This is a Parmeter' |
Corresponding COBOL program should have:
Code: |
LINKAGE SECTION.
01 PARM-VAL.
05 PARM-LGTH pic S9(4) comp.
05 PARM-DATA-PASSED pic X(80).
.
.
.
PROCEDURE DIVISION using PARM-VAL. |
|
|
Back to top |
|
|
ug123 Warnings : 1 New User
Joined: 01 Mar 2007 Posts: 39 Location: Chennai
|
|
|
|
Hi all,
I have one problem in this regard..
I have a program which runs in production so i couldnt touch the code..
I need to send the data which is dynamic..
But through parm i can send only 255 characters..
Can anyone tell how to send the data more than 255 characters..
Thanks,
Ugandar |
|
Back to top |
|
|
ug123 Warnings : 1 New User
Joined: 01 Mar 2007 Posts: 39 Location: Chennai
|
|
|
|
Sorry one small correction through parm we can send only 100 characters..
Thanks,
Ugandar |
|
Back to top |
|
|
kgumraj2
New User
Joined: 01 Aug 2007 Posts: 42 Location: Hyderabad
|
|
Back to top |
|
|
|