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

Is it Possible to override SYSIN


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
harinatha

New User


Joined: 24 Jul 2005
Posts: 28

PostPosted: Thu Sep 01, 2005 10:37 am
Reply with quote

Hi,

Iam having one step in a proc

Proc1:

//Step1 Exec pgm=IDCAMS
//SYSPRINT DD SYSOUT=A
//DDIN DD DSN=....
//DDOUT DD DSN=......
//SYSIN DD DSN=R34VSD.PARMLIB(V5442)

The following AMS commands are there in following PARMLIB(V5442)
REPRO -
INFILE(DDIN) -
OUTFILE(DDOUT) -
FROMKEY(1111) -
TOKEY(5555) -

I am calling above proc from my JCL

JCL:

//step2 EXEC PROC1

Instead of hard coding (1111 & 5555) Value in the PARMLIB, can we override it from the JCL ?


Thanks & Regards,
Hari.
Back to top
View user's profile Send private message
Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Thu Sep 01, 2005 12:33 pm
Reply with quote

Yes.

Code:

//STEP2 EXEC PROC1
//STEP1.SYSIN DD *
  REPRO -
  INFILE(DDIN) -
  OUTFILE(DDOUT) -
  FROMKEY(nnnn) -
  TOKEY(nnnn)
/*
Back to top
View user's profile Send private message
David P

Active User


Joined: 11 Apr 2005
Posts: 106
Location: Cincinnati Ohio

PostPosted: Thu Sep 01, 2005 6:47 pm
Reply with quote

Hi Kevin,

I have a doubt on this.

Can we have instream data inside a cataloged procedure?
I believe no and hence this would not work.

correct me if I am wrong.

David.
Back to top
View user's profile Send private message
harinatha

New User


Joined: 24 Jul 2005
Posts: 28

PostPosted: Thu Sep 01, 2005 11:06 pm
Reply with quote

Hi David,

Instream data inside a cataloged procedure is not possible.

But what kevin posted is not instream data inside cataloged procedure, it is in the JCL itself...

David, You check it once again...below

//STEP2 EXEC PROC1
//STEP1.SYSIN DD *
REPRO -
INFILE(DDIN) -
OUTFILE(DDOUT) -
FROMKEY(nnnn) -
TOKEY(nnnn)
/*


Thanks & Regards,
Hari.
Back to top
View user's profile Send private message
Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Thu Sep 01, 2005 11:06 pm
Reply with quote

David P wrote:
Hi Kevin,

I have a doubt on this.

Can we have instream data inside a cataloged procedure?
I believe no and hence this would not work.

correct me if I am wrong.

David.


You are absolutely correct. A procedure cannot contain instream data. Notice, however, that the example I gave is of how to override the SYSIN DD from the procedure with a SYSIN DD containing instream data from the JCL. This is not only the correct method, but is a very widely-used method for those times when this type of process is required.

You may want to review the chapter on Procedures and Symbols in the JCL Reference guide, paying close attention to "Chapter 5.2 Modifying Procedures":

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B660/5.0?DT=20050713232151
Back to top
View user's profile Send private message
David P

Active User


Joined: 11 Apr 2005
Posts: 106
Location: Cincinnati Ohio

PostPosted: Fri Sep 02, 2005 1:13 am
Reply with quote

Hi Kevin,

I got it boss.

thanks,
David.
Back to top
View user's profile Send private message
michaelraj

New User


Joined: 01 Sep 2005
Posts: 43
Location: Bangalore

PostPosted: Fri Sep 02, 2005 5:59 pm
Reply with quote

Hi all,

I did not undestand what kevin said, Please explain clearly how the values from PARM parameter are passed to FROMKEY and TOKEY.

Regards,
mike.
Back to top
View user's profile Send private message
ksivapradeep

New User


Joined: 30 Jul 2004
Posts: 95

PostPosted: Mon Sep 05, 2005 12:24 pm
Reply with quote

Hi Kevin,

what my doubt is, suppose if we want to give the input to the procedure we will go for step-name.sysindd * so what it makes difference with the overriding

thanks,
pradeep
Back to top
View user's profile Send private message
suganthyprabha

New User


Joined: 28 Jul 2005
Posts: 58

PostPosted: Fri Sep 30, 2005 3:21 pm
Reply with quote

Hi hari and Kevin,

I am having doubt on this execution.

I have tried this as foll.

First i have written the Proc1 in a pds.

In this u have included the line as

//sysin dd data=R34VSD.PARMLIB(V5442)

i also created like this as A.B.C(MEM)

In this MEM just i hav coded REPRO stmts.

then i hav submitted that, but i am getting the foll error msg:

.JAAA 8 DSS4610E - PDS DIRECTORY SPACE AMOUNT IS
MISSING
.JAAA 8 DSS5130E - FILE IS ALREADY CATALOGED
.JAAA 0 DSS8900A - DSN = "A.B.C(MEM) "


Thanks and Regards,
Suganthy.
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 AN OVERRIDE MAY NOT TARGET OVERRIDING... JCL & VSAM 1
No new posts concatenate sysin to dsn JCL & VSAM 7
No new posts Compare Two datasets and Override Mat... DFSORT/ICETOOL 7
Search our Forums:

Back to Top