Help to delete GDG bases.

Virtual Storage Access method - ESDS, KSDS, RRDS & LDS. Basic direct access method, Basic sequential -, Queued sequential -, Basic partitioned -, Indexed sequential -, Object - access method.
Post Reply
Nitish Kumar
New Member
Posts: 2
Joined: Mon Oct 05, 2015 9:05 am

Help to delete GDG bases.

Post by Nitish Kumar »

Hi,

When I try to use IDCAMS DELETE like the shown below:

Code: Select all

//STEP01 EXEC IDCAMS
//SYSPRINT DD SYSOUT=(,) 
//SYSIN DD * 
  DELETE the.gdg.base.file 
  IF MAXCC = 8 THEN - 
  SET MAXCC = 0 
/*
//*
I get a JCL PREP ERROR:

Code: Select all

1 ERROR MESSAGE(S) 
.JCPA JCP0429E 'FILE NAME' IS AN INVALID VALUE FOR 'DELETE' - LINE: 1  
Can you please suggest why this error comes? Or if you have other sample code that's different than this?
User avatar
Anuj Dhawan
Founder
Posts: 2802
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: Help to delete GDG bases.

Post by Anuj Dhawan »

Hi,

Suggest you submit the job ignoring that message and see what happens?
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
William Collins
Global Moderator
Global Moderator
Posts: 490
Joined: Sun Aug 25, 2013 7:24 pm

Re: Help to delete GDG bases.

Post by William Collins »

Other than being in lower-case (which may just be for posting here) there is nothing wrong with your DELETE ...

If you have the dataset name in lower-case, change it to uppers case. CAPS ON and type over any character on the line (with the same value) or put uc on that line in the line-area to the left of the screen.
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: Help to delete GDG bases.

Post by enrico-sorichetti »

every jcl checker has its own quirks.

nobody on any forum will bother to answer topics dealing with errors from jcl checkers

run the job and post the TRUE ibm signalled errors, and we will be glad to help

and, first and above all read the ibm manuals to see the proper idcams syntax
for deleting a GDG base
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
User avatar
Anuj Dhawan
Founder
Posts: 2802
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:
India

Re: Help to delete GDG bases.

Post by Anuj Dhawan »

enrico-sorichetti wrote:every jcl checker has its own quirks.
Precisely the point. And that's the reason I've requested submit the job.
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “SMS & VSAM and BDAM, BSAM, QSAM, BPAM, ISAM, OAM.”