|
View previous topic :: View next topic
|
| Author |
Message |
Amb
New User

Joined: 12 Mar 2010 Posts: 64 Location: India
|
|
|
|
Hi Guys,
Please let me know if I can use a SYSTSIN and a SYSIN in the same IKJEFT01 step for calling a DB2 program.
Also if the above is possible can you please give me an example wherein we will encounter the above scenario? |
|
| Back to top |
|
 |
Ranjithkumar
New User
Joined: 10 Sep 2008 Posts: 93 Location: India
|
|
|
|
The below example is from this link with SYSTSIN and SYSIN in the same IKJEFT01 step , executing a DB2 program.
| Code: |
//DSNACCMB JOB your-job-statement parameters
// // RUN MODIFY RECOVERY //
//MODRCVY EXEC PGM=IKJEFT01,DYNAMNBR=20 //SYSTSPRT DD SYSOUT=
//SYSPRINT DD SYSOUT=
//SYSUDUMP DD SYSOUT=
//SYSTSIN DD DSN SYSTEM(DSN1) RUN PROGRAM(DSNACCMB) PLAN(DSNACCMB) END /
//SYSIN DD DSN=USER.MBMR02,DISP=SHR
// // RUN COPY //
//COPY EXEC PGM=IKJEFT01,DYNAMNBR=20
//SYSTSPRT DD SYSOUT=
//SYSPRINT DD SYSOUT=
//SYSUDUMP DD SYSOUT=
//SYSTSIN DD DSN SYSTEM(DSN1) RUN PROGRAM(DSNACCMB) PLAN(DSNACCMB) END /
//SYSIN DD DSN=USER.MBCP02,DISP=SHR |
|
|
| Back to top |
|
 |
Amb
New User

Joined: 12 Mar 2010 Posts: 64 Location: India
|
|
|
|
I am asuming DSNACCMB that you mentioned is a COBOL DB2 program and not some IBM supplied program.
Please correct me if I am wrong. |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
| Quote: |
| I am asuming DSNACCMB that you mentioned is a COBOL DB2 program and not some IBM supplied program. |
Why would this be a concern. . .?
The posted jcl is what was asked for - a job using both SYSTSIN and SYSIN in the same step. It shouldn't matter which module is being executed. . . |
|
| Back to top |
|
 |
dbzTHEdinosauer
Global Moderator

Joined: 20 Oct 2006 Posts: 6965 Location: porcelain throne
|
|
|
|
AMBy,
modules with the prefix DSN (among others) are reserved by IBM.
you can find others by reading the documentation -
which I suggest that you do, since this and another post by you indicates that
you have read little,
and have decided to ask a lot.
Read and if you have questions, ask and someone here will answer.
otherwise, what Mr. Scherrer said is correct. |
|
| Back to top |
|
 |
Amb
New User

Joined: 12 Mar 2010 Posts: 64 Location: India
|
|
|
|
Thanks for the help  |
|
| Back to top |
|
 |
|
|