Can anybody show me examples on how to pass to a c program the parameters from SYSIN DD * in JCL.
I used to have my JCL program pass the parameter to a c program using the PARM option, but the PARM option has a 100 character limit, thus, requiring me to use the SYSIN DD * option in JCL instead. However, my old c program uses the argv paramater passing style and I don't know if this would still apply when using SYSIN DD *.
This is what my old JCL code looks like:
/ SET P1='RBR1 FIRBS.AIC_REHBFG_FDG.BM '
// SET P2='BGM.LOL_FDSG '
// SET P3='"" '
// SET P4='X F GMHKD'
//ST01 EXEC PGM=VCMBGJF,
//PARM='&P1.&P2.&P3.&P4'
This is what my new JCL code looks like:
//ST01 EXEC PGM=VCMBGJF
//SYSIN DD *
RBR1 FIRBS.AIC_REHBFG_FDG.BM
BGM.LOL_FDSG
""
X F GMHKD
/*