Page 1 of 1

Run JCL for DB2-Online Program

PostPosted: Thu Mar 12, 2009 3:31 pm
by eprasad629
Hi,

I'm able to run a Cobol-DB2 batch program using a Run JCL.

However, while I try to run a online program using the same run JCL, I'm getting SOC1 error.

Please find below the snippet,

DSN SYSTEM (<dsn-name>)
RUN PROG (<prog name>) -
PLAN (<plan name>) -
LIB ('Load Library name')
END

Could you please shed your ideas in this? Also, please let me whether we could run a online program thru RUN Jcl.

Thanks in anticipation.

Re: Run JCL for DB2-Online Program

PostPosted: Thu Mar 12, 2009 11:36 pm
by dick scherrer
Hello and welcome to the forum,

What is your definition of an "online program"?

Online programs depend on interaction with a terminal.

Batch programs are run without a terminal.

Why would you run an online program outside of an online environment?