View previous topic :: View next topic
|
Author |
Message |
mpawan Warnings : 2 New User
Joined: 03 Nov 2008 Posts: 42 Location: Pune
|
|
|
|
Hi,
In my Proc i have expanded the SYSIN DD parameter and hard coded it like
//SYSIN DD *
DELETE -
(TOLLNA.T.B905000.B905007.C&DATE01.01 -
TOLLNA.T.B905000.B9050071.C&DATE01.01)
SET MAXCC=0
DEFINE CL (NAME(TOLLNA.T.B905000.B905007.C&DATE01.01) -
KEYS(28,0) -
VOLUMES(*) -
RECSZ(36,36) -
.....
....
when i am submitting it i am getting an error
.JCPB JCP0430E DD * AND DD DATA NOT ALLOWED IN PROCEDURES
am i missing anything? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
DD * AND DD DATA NOT ALLOWED IN PROCEDURES |
|
Back to top |
|
|
mpawan Warnings : 2 New User
Joined: 03 Nov 2008 Posts: 42 Location: Pune
|
|
|
|
so how can i code when using procedures. |
|
Back to top |
|
|
deepuvja
New User
Joined: 06 Mar 2008 Posts: 5 Location: chennai
|
|
|
|
As expat mentioned you can't use instream data in a proc.
You have to create a new sysin with the expanded data.
Other wise create a new sysin which contains only added data and concatenate with the original one if you don't want to disturb the original sysin. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
JCL reference book - easily accessed from the "IBM Manuals" button at the top of each page. |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
Quote: |
so how can i code when using procedures.
|
Use dataset instead of giving in instream
or
override dd statement in JCL. |
|
Back to top |
|
|
|