I'm new here and I need some help(that's the reason I'm here )
I'm trying to write a batch cobol/db2 pgm wich receive in linkage section some paremeters.
I succeeded to pass a static string of characters but what I need is variable parameters.
I tried declaring the parameter in the CA7 job but I have to use them inside a SYSTSIN * like this
DSN SYSTEM(SDIA)
RUN PROGRAM (ZWAC200) PLAN (ZWAC200)-
PARMS('&PAR1,&PAR2,&PAR3,&PAR4,&PAR5,&PAR6,&PAR7,&PAR8')
END
RUN PROGRAM (ZWAC200) PLAN (ZWAC200)-
PARMS('&PAR1,&PAR2,&PAR3,&PAR4,&PAR5,&PAR6,&PAR7,&PAR8')
END
The problem is that when I run the job the JCL returns an error becaues it doesn't see that I'm using the parameters I've declared.
The error is :
3 IEFC657I THE SYMBOL PAR1 WAS NOT USED
Do you think there's a way to do what I'm trying or it's better to think to something else ?