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

SYSIN in PROCLIB


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 1702
Location: Australia

PostPosted: Wed May 28, 2008 11:02 am
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
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: 1702
Location: Australia

PostPosted: Wed May 28, 2008 11:16 am
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: 1702
Location: Australia

PostPosted: Wed May 28, 2008 11:22 am
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
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: 8797
Location: Welsh Wales

PostPosted: Wed May 28, 2008 11:55 am
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: 1702
Location: Australia

PostPosted: Wed May 28, 2008 11:59 am
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
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
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: 8797
Location: Welsh Wales

PostPosted: Wed May 28, 2008 3:58 pm
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
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

Global Moderator


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

PostPosted: Thu May 29, 2008 12:58 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


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