View previous topic :: View next topic
|
Author |
Message |
genesis786
Active User
Joined: 28 Sep 2005 Posts: 210 Location: St Katherine's Dock London
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
I've not tested, but why the trailing period?
Code: |
MODEL (P&CC..&KSDS.))- |
|
|
Back to top |
|
|
genesis786
Active User
Joined: 28 Sep 2005 Posts: 210 Location: St Katherine's Dock London
|
|
|
|
hi.. sorry .. that should be &ksds..ksds (not &ksds.)
I corrected it in my jcl but still no luck. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 ), 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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
genesis786
Active User
Joined: 28 Sep 2005 Posts: 210 Location: St Katherine's Dock London
|
|
|
|
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 |
|
|
genesis786
Active User
Joined: 28 Sep 2005 Posts: 210 Location: St Katherine's Dock London
|
|
|
|
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. |
|
Back to top |
|
|
|