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
 

 

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: 4648
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: 8593
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 INVALID FIELD OR CONSTANT IN SORTOF ?? Ron Klop DFSORT/ICETOOL 8 Wed Jan 11, 2017 3:44 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm


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