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

JCL error INVALID KEYWORD OR CONTROL STATEMENT SYNTAX


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

New User


Joined: 17 Feb 2007
Posts: 46
Location: mumbai

PostPosted: Thu Mar 22, 2007 4:29 am
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

Moderator Emeritus


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

PostPosted: Thu Mar 22, 2007 6:43 am
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

Global Moderator


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

PostPosted: Thu Mar 22, 2007 7:42 am
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: 3156
Location: Tucson AZ

PostPosted: Thu Mar 22, 2007 7:45 am
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: 8797
Location: Welsh Wales

PostPosted: Thu Mar 22, 2007 1:42 pm
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: 46
Location: mumbai

PostPosted: Thu Mar 22, 2007 11:38 pm
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

Moderator Emeritus


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

PostPosted: Fri Mar 23, 2007 12:23 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
Search our Forums:

Back to Top