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

Joined: 03 Dec 2002 Posts: 90 Topics: 31
|
Posted: Sat Dec 09, 2006 12:00 am Post subject: Ways of passing parameters (values) to JCL ? |
|
|
How can parameters or values be passed from COBOL program to JCL ? I am not talking about writing records with help of COOBOL in files used in JCL. |
|
Back to top |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Sat Dec 09, 2006 6:05 am Post subject: |
|
|
You can pass the value in the RETURN-CODE register from the program back to the calling JCL. |
|
Back to top |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Sat Dec 09, 2006 10:41 am Post subject: |
|
|
As is often repeated here, JCL is not a programming language. All values are interpreted before any programs are started. Your only options are using return codes or some shared resource (files or data base entries usually) that all steps read and write, but that has nothing to do with JCL per se. |
|
Back to top |
|
 |
|
|