View previous topic :: View next topic
|
Author |
Message |
bsenthilbalu
New User
Joined: 02 Aug 2007 Posts: 1 Location: India
|
|
|
|
How to Receive the data that is passed from JCL using PARM parameter to COBOL? |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Senthil,
Declare LINKAGE SECTION in the program. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
Back to top |
|
|
jasorn Warnings : 1 Active User
Joined: 12 Jul 2006 Posts: 191 Location: USA
|
|
|
|
The first 2 bytes of your linkage needs to be reserved for the length of the parm.
PIC S9(4) COMP.
Even if I don't plan to call a program from jcl, I add those two bytes just in case I want to at a later date. |
|
Back to top |
|
|
chavenco
New User
Joined: 24 Oct 2006 Posts: 1 Location: Brazil
|
|
|
|
LINKAGE SECTION.
01 LK-PARM.
05 LK-LEN PIC S9(04) COMP.
05 LK-DATE1 PIC 9(08).
05 LK-DATE2 PIC 9(08). |
|
Back to top |
|
|
|