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 error INVALID KEYWORD OR CONTROL STATEMENT SYNTAX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
ybhavesh
Warnings : 1

New User


Joined: 17 Feb 2007
Posts: 47
Location: mumbai

PostPosted: Thu Mar 22, 2007 4:29 am    Post subject: JCL error INVALID KEYWORD OR CONTROL STATEMENT SYNTAX
Reply with quote

Hi all

Can any one solve this error

Code:
             
//STEP1 EXEC PGM=IEHPROGM                                               
//SYSPRINT DD SYSOUT=*                                                 
//DISK DD UNIT=3390,VOL=SER=WORKY1,DISP=OLD                             
//SYSIN DD *                                                           
   CATLG DSN=OSOP.BCB1O.COMBINE,VOL=3390=WORKY1                         
/*                                                                     


JESYSMSG

********************************* TOP OF DATA ****************
SYSTEM SUPPORT UTILITIES ---- IEHPROGM

CATLG DSN=OSOP.BCB1O.COMBINE,VOL=3390=WORKY1
IEH202I INVALID KEYWORD OR CONTROL STATEMENT SYNTAX

UTILITY END
******************************** BOTTOM OF DATA *************
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Mar 22, 2007 6:43 am    Post subject:
Reply with quote

Hello,

Do you have a space in position 1 of the CATLG control statement?
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Thu Mar 22, 2007 7:42 am    Post subject: Re: JCL error INVALID KEYWORD OR CONTROL STATEMENT SYNTAX
Reply with quote

I don't see in the manual where DSNAME is allowed to be abbreviated to DSN.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Thu Mar 22, 2007 7:45 am    Post subject:
Reply with quote

Code:
//SYSIN DD *                                                           
   CATLG
From what can see, yes
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8657
Location: Back in jolly old England

PostPosted: Thu Mar 22, 2007 1:42 pm    Post subject:
Reply with quote

Why are you using IEHPROGM ?

This should only be used for NONSMS managed datasets.
Back to top
View user's profile Send private message
ybhavesh
Warnings : 1

New User


Joined: 17 Feb 2007
Posts: 47
Location: mumbai

PostPosted: Thu Mar 22, 2007 11:38 pm    Post subject:
Reply with quote

Hi

When I write DSNAME instead of DSN it is running successfully
can anyone comment on it.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Mar 23, 2007 12:23 am    Post subject:
Reply with quote

Hello,

It is just a rule - that program insists on DSNAME rather than the shorter DSN.
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 3270 Data stream error Benchwarmer CICS 4 Tue Apr 17, 2018 12:06 am
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm
No new posts How syntax check at Bind time is diff... Poha Eater DB2 5 Wed Mar 21, 2018 9:16 pm
No new posts Invalid XML character while producing... nikhil.bhole IBM Tools 4 Tue Mar 20, 2018 1:24 am
No new posts How to control Panel Attributes throu... rsshanmugam CLIST & REXX 3 Mon Feb 26, 2018 9:51 pm

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