EXEC with or without PGM=?
Posted: Wed Jun 07, 2017 8:17 am
I've seen two EXEC syntax variations, one with PGM=, like:
//PLUPDAT EXEC PGM=KUPDATE
(with and without PARM=), and recently also saw:
//ALLOC0 EXEC ALCPS,LLQ=SYSOUT.ACT,RF=FBA,RL=121
This form appears to pass arguments without using PARM and also doesn't specify the PGM= part of the statement.
When would one form of this EXEC syntax be used vs the other. In the second, is everything after the command an implicit PARM value?
//PLUPDAT EXEC PGM=KUPDATE
(with and without PARM=), and recently also saw:
//ALLOC0 EXEC ALCPS,LLQ=SYSOUT.ACT,RF=FBA,RL=121
This form appears to pass arguments without using PARM and also doesn't specify the PGM= part of the statement.
When would one form of this EXEC syntax be used vs the other. In the second, is everything after the command an implicit PARM value?