Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Invalid Keyword PLAN Error while runnig a Db2 RUn JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
ganna_f16

New User


Joined: 07 Mar 2005
Posts: 17
Location: India

PostPosted: Fri Jan 12, 2007 4:37 pm    Post subject: Invalid Keyword PLAN Error while runnig a Db2 RUn JCL
Reply with quote

Hi,
When I rann the DB2 Run JCL, I am getting bellow error.
READY
DSN SYSTEM(DSN)
READY
run PROGRAM(INQUIRY1) PLAN(CUSTPLAN) LIB('ABCDEF.GHIJKL.LOADLIB')
INVALID KEYWORD, PLAN(CUSTPLAN)
READY
END
READY
END

Can any body help me in this.
Back to top
View user's profile Send private message

kgumraj

Active User


Joined: 01 May 2006
Posts: 151
Location: Hyderabad

PostPosted: Fri Jan 12, 2007 5:17 pm    Post subject: Re: Invalid Keyword PLAN Error while runnig a Db2 RUn JCL
Reply with quote

Hi,

Let look on your dump

Code:

READY
DSN SYSTEM(DSN)
READY
[color=red]run PROGRAM(INQUIRY1) PLAN(CUSTPLAN) LIB[/color]('ABCDEF.GHIJKL.LOADLIB')
INVALID KEYWORD, PLAN(CUSTPLAN)
READY
END
READY
END


The code maked in red is not a TSO command, it is a DSN command and your DSN is not active at the time when RUN is exceuted.
See the READY doesnt have DSN prompt.
Back to top
View user's profile Send private message
ganna_f16

New User


Joined: 07 Mar 2005
Posts: 17
Location: India

PostPosted: Fri Jan 12, 2007 5:26 pm    Post subject: Re: Invalid Keyword PLAN Error while runnig a Db2 RUn JCL
Reply with quote

Hi Kiran,
Thanks for your quick response.

I am trying to execute this from last one week. Still I am getting the same message. Will this mean my DB2 system is down?

Regards,
Kiran
Back to top
View user's profile Send private message
kgumraj

Active User


Joined: 01 May 2006
Posts: 151
Location: Hyderabad

PostPosted: Fri Jan 12, 2007 5:45 pm    Post subject: Re: Invalid Keyword PLAN Error while runnig a Db2 RUn JCL
Reply with quote

Quote:

I am trying to execute this from last one week. Still I am getting the same message. Will this mean my DB2 system is down?


Yes, you are correct. we too had a similar problem. We solved it by giving a JES2 command, I dont know it can help in your installation, but see the jcl of yours
Code:

/*JBS BIND DB2T.DB2                                                 
//JOBLIB DD DSN=M027PDPB.DB2T.DSNLOAD,DISP=SHR                     
//* COMPILE STEP                                                   
//DSNTIAUL EXEC DSNHCOB2,USER=USZ9997,MEM=SCGB39MP,PARM.PC=SOURCE, 
//    PARM.COB=LIB                                                 


Quote:

/*JBS BIND DB2T.DB2


This is the JES2 command that activates or gives priority when the system is not regognised too early by the TSO.
And this command need to come just after the Jobcard.

Also we used the JOBLIB try giving that as in your shop
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 -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Need help with below DB2 error ashek15 DB2 3 Sat Mar 18, 2017 5:56 am
No new posts FINDREP Syntax Error seahawk789 DFSORT/ICETOOL 4 Thu Mar 09, 2017 10:11 pm
No new posts INVOKE WEBSERVICE error danik56 CICS 11 Thu Mar 09, 2017 11:52 am
No new posts Row not found Sql error GaganGarg DB2 7 Tue Mar 07, 2017 6:29 am
No new posts DB2 SQL Error: SQLCODE=-440, SQLSTATE... kishpra DB2 1 Sat Feb 18, 2017 2:31 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us