Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
JCL not working

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: JCL not working
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: 8593
Location: Back in jolly old England

PostPosted: Mon Jun 15, 2009 7:26 pm    Post subject:
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    Post subject: Reply to: JCL not working
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    Post subject: Use a sysin
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: 8593
Location: Back in jolly old England

PostPosted: Mon Jun 15, 2009 7:32 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts LIBDEF not working in called proc packerm CLIST & REXX 0 Fri Sep 15, 2017 7:22 pm
No new posts Working with hex values in Filemanage... Emile Straker IBM Tools 0 Tue Sep 12, 2017 1:42 am
No new posts ISREDIT MACRO NOT WORKING! :cry: kirank889 TSO/ISPF 3 Thu Aug 03, 2017 5:46 pm
No new posts Restart=Step not working ALAK SAHA JCL & VSAM 6 Fri Jun 30, 2017 6:28 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us