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

IDCAMS - Keyword is Improper.


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

Active User


Joined: 28 Sep 2005
Posts: 210
Location: St Katherine's Dock London

PostPosted: Tue Aug 26, 2008 8:52 pm
Reply with quote

Hi,

I am facing a problem with the SPIDCAMS utility while submitting a JCL to redefine the file using symbolic variables. Following is my JCL:

Code:

//SVMORD1 EXEC QIKREF01,           
// CC=CH,                           
// PF=,                             
// SF=WK.,                         
// KSDS=SA.SVMORD1.ORDER.CANCELLN   


QIKREF01 PROC is:

Code:

//QIKREF01 PROC CC=,PF=,SF=,KSDS=                       
//*                                                     
//QIKREF01 EXEC PGM=SPIDCAMS,                           
//        PARM='CC=&CC.,PF=&PF.,SF=&SF.,KSDS=&KSDS.',   
//        COND=(4,LT)                                   
//SYSIN    DD DISP=SHR,DSN=DGE.GENERAL.IDCAMS(QIKREF01)
//SYSPRINT DD  SYSOUT=*                                 
//SYSOUT   DD  SYSOUT=*                                 


QIKREF01 IDCAMS PARM of SYSIN is:

Code:

    DELETE  (D&CC..&PF.&KSDS..&SF.KSDS) CLUSTER PURGE
    IF LASTCC > 8 THEN SET MAXCC = 16                 
       ELSE SET MAXCC = 0                             
    DEFINE  CLUSTER  (            -                   
              NAME   (D&CC..&PF.&KSDS..&SF.KSDS)   - 
              MODEL  (P&CC..&KSDS.))-                 
            DATA     (            -                   
              NAME   (D&CC..&PF.&KSDS..&SF.KSDS.D))- 
            INDEX    (            -                   
              NAME   (D&CC..&PF.&KSDS..&SF.KSDS.I))   
      IF LASTCC > 8 THEN SET MAXCC = 16               
         ELSE SET MAXCC = 0                           


After running the JCL I am getting CC = 16

Code:

IDC3211I KEYWORD '.' IS IMPROPER                                 
IDC3207I REMAINDER OF COMMAND INPUT STREAM IGNORED               
IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 16


Can you please help. I can't figure out what am I going wrong.
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: Tue Aug 26, 2008 9:26 pm
Reply with quote

Hello,

I've not tested, but why the trailing period?
Code:
MODEL  (P&CC..&KSDS.))- 
Back to top
View user's profile Send private message
genesis786

Active User


Joined: 28 Sep 2005
Posts: 210
Location: St Katherine's Dock London

PostPosted: Tue Aug 26, 2008 9:41 pm
Reply with quote

hi.. sorry .. that should be &ksds..ksds (not &ksds.)

I corrected it in my jcl but still no luck.
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: Tue Aug 26, 2008 10:22 pm
Reply with quote

Hello,

Where did the SPIDCAMS utility originate?

Looking more closely at your control statements (i should have done so before, but the "dangling" syntax caught my eye icon_redface.gif ), i question if the utility provides symbolic variable replacement as you've attempted.

Do you have a working example of SPIDCAMS being used as you are attempting? If you do, please post the same info you posted fro the problem execution.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Tue Aug 26, 2008 10:27 pm
Reply with quote

I ran a test with your PARM going into normal IDCAMS and it blew with the same errors, but specified that the PARM statement was not valid. I believe the error messages are telling you that the PARM= values are not valid, whatever SPIDCAMS is.
Back to top
View user's profile Send private message
genesis786

Active User


Joined: 28 Sep 2005
Posts: 210
Location: St Katherine's Dock London

PostPosted: Thu Aug 28, 2008 3:00 pm
Reply with quote

Hi, sorry for late reply.

i tried running the JCL again and found that if I give some value to the parameters i am passing JCL runs properly. in this case i was trying to keep &PF. spaces and &SF. as 'WK.' but if i give some value to &PF. as well the jcl runs fine. i think the msg from SPIDCAMS utility ' *** dOES NOT ADHERE TO THE RESTRICTIONS' means that i cannot pass a space parameter into it.
Back to top
View user's profile Send private message
genesis786

Active User


Joined: 28 Sep 2005
Posts: 210
Location: St Katherine's Dock London

PostPosted: Thu Aug 28, 2008 3:06 pm
Reply with quote

and regarding:

Quote:
Where did the SPIDCAMS utility originate?


I am really not sure. But i have been using SPIDCAMS for as long as i started writing JCL's in our big iron. icon_redface.gif
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 IDCAMS listcat service using cobol JCL & VSAM 1
No new posts a copybook getting improper values in... COBOL Programming 7
No new posts IDCAMS & LISTCAT with ddnames JCL & VSAM 1
No new posts Capture DSN names through SORT / IDCAMS DFSORT/ICETOOL 8
No new posts IDCAMS RENAMING VSAM FILE ALONG WITH ... JCL & VSAM 12
Search our Forums:

Back to Top