View previous topic :: View next topic
|
Author |
Message |
harinatha
New User
Joined: 24 Jul 2005 Posts: 28
|
|
|
|
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 |
|
|
Kevin
Active User
Joined: 25 Aug 2005 Posts: 234
|
|
|
|
Yes.
Code: |
//STEP2 EXEC PROC1
//STEP1.SYSIN DD *
REPRO -
INFILE(DDIN) -
OUTFILE(DDOUT) -
FROMKEY(nnnn) -
TOKEY(nnnn)
/*
|
|
|
Back to top |
|
|
David P
Active User
Joined: 11 Apr 2005 Posts: 106 Location: Cincinnati Ohio
|
|
|
|
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 |
|
|
harinatha
New User
Joined: 24 Jul 2005 Posts: 28
|
|
|
|
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 |
|
|
Kevin
Active User
Joined: 25 Aug 2005 Posts: 234
|
|
|
|
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 |
|
|
David P
Active User
Joined: 11 Apr 2005 Posts: 106 Location: Cincinnati Ohio
|
|
|
|
Hi Kevin,
I got it boss.
thanks,
David. |
|
Back to top |
|
|
michaelraj
New User
Joined: 01 Sep 2005 Posts: 43 Location: Bangalore
|
|
|
|
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 |
|
|
ksivapradeep
New User
Joined: 30 Jul 2004 Posts: 95
|
|
|
|
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 |
|
|
suganthyprabha
New User
Joined: 28 Jul 2005 Posts: 58
|
|
|
|
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 |
|
|
|