View previous topic :: View next topic
|
Author |
Message |
Prabha Warnings : 2 New User
Joined: 05 Dec 2005 Posts: 79
|
|
|
|
Hi,
Using PARM parameter, am passing 2 values to Cobol program.
In linkage section in cobol, how to define these variables to recive more than one PARM values.
Explain me in how to define PARM in JCL as well as corresponding linkage section in COBOL.
Kindly help me out this.. |
|
Back to top |
|
|
radhakrishnan82
Active User
Joined: 31 Mar 2005 Posts: 435 Location: chennai, India
|
|
|
|
Declare parm length and data in linkage section.
Code: |
LINKAGE SECTION.
01 PARM-VALUES.
10 PARM-LENGTH PIC S9(4)
COMPUTATIONAL.
10 PARM-DATA.
15 parm-1 PIC X(01).
15 parm-2 PIX X(10).
PROCEDURE DIVISION USING PARM-VALUES. |
Quote: |
Explain me in how to define PARM in JCL |
Code: |
//AAA05 EXEC PGM=pgm name,
// PARM='B1234567890',
// COND=(0,NE) |
hope this helps. |
|
Back to top |
|
|
Prabha Warnings : 2 New User
Joined: 05 Dec 2005 Posts: 79
|
|
|
|
Thank u! its workin fine.. |
|
Back to top |
|
|
|