In CA OPSMVS REXX execution, the SQL inserts fail when any value contains the string 'syst(' or anything that resembles 'system('.
For example, trying to add value 'START ONCASYSTEM(TY)' to user-defined column in SSM table :
/* rexx */
time = '04:00'
pos = 3
name = 'TEST001'
parms = 'testing oncasystem()'
cols = 'START_TIME POS NAME TYPE CURRENT_STATE DESIRED_STATE MODE',
'PREMODE REFMODE ACTMODE PARMS PREREQ'
vals = "'"time"' '"right(pos,3,'0')"' '"name"' 'WTOR' 'DOWN' 'DOWN'",
"'ACTIVE' 'ACTIVE' 'ACTIVE' 'ACTIVE' '"parms"' ''"
Address SQL "Insert into TECHW ("cols") values ("vals")"
say sqlcode
if sqlcode <> 0 then
do queued()
pull line; say line
end
-7812
OPM1942E SYNTAX ERROR NEAR: ' '')
OPM1946E --- MISQUOTED TEXT STRING
OPM7812E SQL SYNTAX ERROR DETECTED IN PARSE
***