vani Beginner
Joined: 28 May 2003 Posts: 51 Topics: 30
|
Posted: Mon Nov 10, 2003 3:02 am Post subject: How to pass parameters to a C program through a JCL |
|
|
Hi,
my problem is as below
Currently in our program the system variable &CREATOR is used as a qualifier of some of the tables.Need to find out how in the C program can we use it dynamically to qualify the tables.either through JCL or any other means?
How to pass parameters to a C program through a JCL. What changes need to be made in C program.
Regards,
Vani |
|
vinay Beginner
Joined: 07 Nov 2003 Posts: 1 Topics: 0 Location: Bangalore, India
|
Posted: Tue Nov 11, 2003 12:57 am Post subject: |
|
|
Hi Vani,
Just pass it using the PARM parameter in the EXEC step.
//STEP1 EXEC PGM=MYCPGM,PARM='&CREATOR'
Well, you could code your main as 'main(creator)' or something like that and make sure you define that variable inside the main routine. I'm not really a 'C' guy but, i remember a few things here and there.
Enjoy,
Vinay |
|