gives a 'Dataset Name is Invalid' message on the IDCAMS DELETE command.
I'd like the dataset name to have a variable qualifier.
Is there a work arround?
Thank you for your consideration.
Regards,
Dave
[/quote] _________________ ===========================
David Briars
Sr. Applications Programmer
Northern Trust Company
Chicago, IL
David_Briars@ntrs.com
===========================
Joined: 03 Dec 2002 Posts: 114 Topics: 0 Location: Sydney, Australia
Posted: Thu Jul 03, 2003 6:58 pm Post subject:
If your requirement is only to resolve the situation you have shown, whereby the job will fail with a JCL error if the dataset exists, then using DISP=(MOD,CATLG,DELETE) would solve your problem, without the need for the IDCAMS step.
Basically, without either modifying the JCL as most schedulers allow or utilising a program to change data according to the resolved symbolic, you cannot resolve symbolics within instream data. Such programs, that are around, basically have the symbolic passed to the program via the parm field and then change pre-defined string(s) to the resolved value of the symbolic.
Personally, if you're simply deteing a dataset, and then re-creating it, to effectively ensure that it is empty, I'd use a program that opens the dataset for output and then closes the dataset, without writing any data. IEBGENER can do this, as can IDCAMS. _________________ Regards,
Mike.
Joined: 04 Dec 2002 Posts: 71 Topics: 0 Location: Little Falls, NJ
Posted: Mon Jul 07, 2003 11:42 am Post subject:
Quote:
Could my IDCAMS DELETE command use a Symbolic Paramater? - the answer is yes. You can use symbolics within IDCAMS.
If you are saying that IDCAMS can use symbolics, I don't think so. There is nothing in the IDCAMS manual that implies you can and I just ran a quick test and it got a syntax error.
DELETE XYZ.&VERSION
IDC3203I ITEM 'XYZ.&VERSION' DOES NOT ADHERE TO RESTRICTIONS
IDC3202I ABOVE TEXT BYPASSED UNTIL NEXT COMMAND. CONDITION CODE IS 12
_________________ Bruce A. Black
Senior Software Developer
Innovation Data Processing
As a followup: Could I delete more than one dataset using this technique?
As I read the TSO/E manual, it looks like I can only pass one DELETE command to TSO/E via PARM=. Often, I need to delete several datasets at one time (in one step).
Thank you again.
Regards,
Dave _________________ ===========================
David Briars
Sr. Applications Programmer
Northern Trust Company
Chicago, IL
David_Briars@ntrs.com
===========================
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum