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
 

 

IDCAMS - Keyword is Improper.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: IDCAMS - Keyword is Improper.
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

Site Director


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

PostPosted: Tue Aug 26, 2008 9:26 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Tue Aug 26, 2008 10:22 pm    Post subject:
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: 7935
Location: Bellevue, IA

PostPosted: Tue Aug 26, 2008 10:27 pm    Post subject:
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    Post subject:
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    Post subject:
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    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 syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts Illegal use of keyword fetch. Token w... HABBIE DB2 2 Fri Aug 28, 2015 5:20 pm
No new posts IFTHEN & BUILD - If keyword match... Roach_MF DFSORT/ICETOOL 4 Wed Mar 18, 2015 1:21 am
No new posts Mailing PS dataset - Improper Alignme... Anitha Mohan JCL & VSAM 10 Mon Jan 05, 2015 1:28 pm
No new posts IDCAMS ALTER REMOVEVOLS for open CICS... Pete Wilson JCL & VSAM 2 Wed Sep 10, 2014 7:04 pm


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