Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

SYSIN in PROCLIB

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Charles Pillai

New User


Joined: 23 May 2008
Posts: 6
Location: Canberra, Australia

PostPosted: Wed May 28, 2008 10:52 am    Post subject: SYSIN in PROCLIB
Reply with quote

I have the following JCL error when I omit the SYSIN statement in the proclib. (If I include it in, I get a JCL error). However, I get a return code of o00 if I do not use a proclib but code all the statements in the JCL. The error message comes on when I am creating a file.

IDCAMS SYSTEM SERVICES
IDC3300I ERROR OPENING SYSIN
IDC3304I ** JCL STATEMENT MISSING
IDC3207I REMAINDER OF COMMAND INPUT STREAM IGNORED

The JCL statements are:

//SORT1 EXEC UB9INST6,
// TS='EXTRTXP',PT='ID',FUNC='ICP'


The proclib statemsts are:

//ALLOC01 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SP01 DD DISP=(NEW,CATLG,DELETE),
// DSN=UB9IN.&FUNC..&TS..SP01.&PT..DATA,
// LIKE=UB9IN.&FUNC..&TS..&PT..DATA,
// UNIT=(SYSDA,12),SPACE=(TRK,(1,750),RLSE)

I end up with condition code 16. How do I get rid of the errors and the messages.
Back to top
View user's profile Send private message

gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Wed May 28, 2008 11:02 am    Post subject:
Reply with quote

Hi CP,
IDCAMS expects a //SYSIN DD statement

//SYSOUT DD is not requited


Gerry
Back to top
View user's profile Send private message
Charles Pillai

New User


Joined: 23 May 2008
Posts: 6
Location: Canberra, Australia

PostPosted: Wed May 28, 2008 11:12 am    Post subject:
Reply with quote

Yeah - but when I put he sysin statement in the proclib, I get a JCL error.
It works fine if I do not use a proclib.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Wed May 28, 2008 11:16 am    Post subject:
Reply with quote

Hi CP,
what does the SYSIN DD statement look like in the PROC.

You cannot have //SYSIN DD * in a PROC


Gerry
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Wed May 28, 2008 11:22 am    Post subject:
Reply with quote

Hi CP,
instead of IDCAMS, why not use IEFBR14, no other DDNAMES are required.


Gerry
Back to top
View user's profile Send private message
Charles Pillai

New User


Joined: 23 May 2008
Posts: 6
Location: Canberra, Australia

PostPosted: Wed May 28, 2008 11:43 am    Post subject:
Reply with quote

I don't have it in the proc as I get a JCL error. I have it in the JCL after the proclib. This is where I det the error stated above and the condition code 16. The completion of the JCL provides the expected results and the output except for this error message.

//SORT1 EXEC UB9INST5,
// TS='EXTRTXP',PT='ID',FUNC='ICP'
//SYSIN DD *
/*
//*
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed May 28, 2008 11:55 am    Post subject:
Reply with quote

Have you tried .....
Code:

//SORT1 EXEC UB9INST5,
// TS='EXTRTXP',PT='ID',FUNC='ICP'
//ALLOC01.SYSIN DD *
/*
//*
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Wed May 28, 2008 11:59 am    Post subject:
Reply with quote

Hi,
if the proc contained only one step, then the //SYSIN DD * should have worked, I suspect there's more than 1 STEP in the PROC.


Gerry
Back to top
View user's profile Send private message
Charles Pillai

New User


Joined: 23 May 2008
Posts: 6
Location: Canberra, Australia

PostPosted: Wed May 28, 2008 12:38 pm    Post subject:
Reply with quote

I replaced the particular bit of code with the one supplied by you above and it worked wonderfully. Cond Code = 00 . Thanks very much.
Back to top
View user's profile Send private message
unni_nss

New User


Joined: 20 Sep 2005
Posts: 19

PostPosted: Wed May 28, 2008 1:48 pm    Post subject: Hi
Reply with quote

you can code like,

//step1 exec proc_name
//step2 DD DSN=DSN1,DISP=SHR

Where put all your proc statements in the DSN named DSN1.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed May 28, 2008 3:58 pm    Post subject: Re: Hi
Reply with quote

unni_nss wrote:
you can code like,

//step1 exec proc_name
//step2 DD DSN=DSN1,DISP=SHR

Where put all your proc statements in the DSN named DSN1.


Could you kindly explain how this relates to the SYSIN statement ???
Back to top
View user's profile Send private message
silentarya

New User


Joined: 11 Mar 2007
Posts: 35
Location: Chennai

PostPosted: Wed May 28, 2008 9:15 pm    Post subject: Reply to: SYSIN in PROCLIB
Reply with quote

Just tested with following codes ... Worked fine for me without any error...


The proc
----------
//ALLOC01 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SP01 DD DISP=(NEW,CATLG,DELETE),
// DSN=NIST.&FUNC..&TS..&PT..DATA,
// LIKE=NIST.MYID.TEST,
// UNIT=SYSDA,SPACE=(TRK,(1,1),RLSE)

Calling code
--------------

//SORT1 EXEC UB9INST6,TS='CNTL',PT='ID',FUNC='MYID'
//SYSIN DD *
/*


Lemme know in case any comments ......
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2033
Location: Silicon Valley

PostPosted: Thu May 29, 2008 12:58 am    Post subject: Reply to: SYSIN in PROCLIB
Reply with quote

rather than:
Code:

//SORT1 EXEC UB9INST6,TS='CNTL',PT='ID',FUNC='MYID'
//SYSIN DD *
/*

how about
Code:

//SORT1 EXEC UB9INST6,TS='CNTL',PT='ID',FUNC='MYID'
//SYSIN DD DUMMY


In the first, it says: here are the input records, but it will not find any.
In the second, it says: do not even try to find.

The result is probably the same (I did not try), but the second looks cleaner to me.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Need to know what sysin for DFHTU690 ... pkmurali CICS 3 Mon Jul 25, 2016 1:36 pm
No new posts Symbolic Parameters in SYSIN DD state... madishpa DFSORT/ICETOOL 3 Mon Jun 27, 2016 6:23 pm
No new posts SYSIN PDS Library Concatenation Brad McCoy JCL & VSAM 6 Mon Jul 07, 2014 11:49 pm
No new posts Can't specify a dataset to SORT SYSIN? dejunzhu DFSORT/ICETOOL 5 Tue Nov 05, 2013 1:01 pm
No new posts Can SYSIN errors be rectified without... techie09 JCL & VSAM 17 Thu Oct 31, 2013 11:59 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us