IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Regarding SYSTSIN and SYSIN


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Amb

New User


Joined: 12 Mar 2010
Posts: 64
Location: India

PostPosted: Tue Mar 30, 2010 11:35 am
Reply with quote

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
View user's profile Send private message
Ranjithkumar

New User


Joined: 10 Sep 2008
Posts: 93
Location: India

PostPosted: Tue Mar 30, 2010 12:59 pm
Reply with quote

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
View user's profile Send private message
Amb

New User


Joined: 12 Mar 2010
Posts: 64
Location: India

PostPosted: Tue Mar 30, 2010 7:26 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Mar 30, 2010 8:52 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Mar 30, 2010 9:22 pm
Reply with quote

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
View user's profile Send private message
Amb

New User


Joined: 12 Mar 2010
Posts: 64
Location: India

PostPosted: Tue Mar 30, 2010 10:01 pm
Reply with quote

Thanks for the help icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Generate output lines (SYSIN card for... DFSORT/ICETOOL 4
No new posts COBOL reading from SYSIN COBOL Programming 1
No new posts concatenate sysin to dsn JCL & VSAM 7
No new posts "Standard" SYSIN, SYSPRINT ... PL/I & Assembler 0
This topic is locked: you cannot edit posts or make replies. Need help how to pass the ESP variabl... JCL & VSAM 12
Search our Forums:

Back to Top