can u also post the jcl you are using to input your data ?
DO YOU HAVE ANY RETURN CODES AFTER JOB RUN ?
CAN U POST YOUR vsam ksds DEFINITION ?
and you may want to post this in COBOL related thread as I'm not a cobol expert
your open is I-O meaning that your outfile exists with data in it (data will be updated).
if you change to output your outfile needs be empty (data will be loaded)
also you need to code a special-names sub-section in your configuration section to be able to ACCEPT data from sysin (basically you can only accept from 'system variable' or special-names subsection)
Code:
SPECIAL-NAMES.
SYSIN IS PGM-IN.
also when you ACCEPT DATA you can only accept into one varaible and parse into other variables.
I've modified your pgm to load or update (based on sysin) data from
infile to your outfile.