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

JCL not working


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

New User


Joined: 03 Nov 2008
Posts: 42
Location: Pune

PostPosted: Mon Jun 15, 2009 7:21 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Jun 15, 2009 7:26 pm
Reply with quote

DD * AND DD DATA NOT ALLOWED IN PROCEDURES
Back to top
View user's profile Send private message
mpawan
Warnings : 2

New User


Joined: 03 Nov 2008
Posts: 42
Location: Pune

PostPosted: Mon Jun 15, 2009 7:29 pm
Reply with quote

so how can i code when using procedures.
Back to top
View user's profile Send private message
deepuvja

New User


Joined: 06 Mar 2008
Posts: 5
Location: chennai

PostPosted: Mon Jun 15, 2009 7:32 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Jun 15, 2009 7:32 pm
Reply with quote

JCL reference book - easily accessed from the "IBM Manuals" button at the top of each page.
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Mon Jun 15, 2009 7:58 pm
Reply with quote

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
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 PD not working for unsigned packed JO... DFSORT/ICETOOL 5
No new posts Def PD not working for unsigned packe... JCL & VSAM 3
No new posts ICETOOL with JOINKEY for Big record l... DFSORT/ICETOOL 12
No new posts JCL JOB Cancel/Purge Not Working JCL & VSAM 6
No new posts OMVS Shell Script not working properly. All Other Mainframe Topics 1
Search our Forums:

Back to Top