Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
deletion of datasets that are already catalogued

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
harry143

New User


Joined: 05 Nov 2007
Posts: 21
Location: hyd

PostPosted: Tue Nov 06, 2007 5:48 pm    Post subject: deletion of datasets that are already catalogued
Reply with quote

Hi,

Can anybody tell me how to capture the datasets that are already catalogued in a job in spool using rexx
I want to delete all the datasets catalogued by developing a rexx tool.
Back to top
View user's profile Send private message

Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1243
Location: Israel

PostPosted: Tue Nov 06, 2007 9:13 pm    Post subject:
Reply with quote

Do you mean that you want to check the job listing:
Code:
IEF142I XXXSCAN STEP01B - STEP WAS EXECUTED - COND CODE 0000         
IEF285I   XXXSCAN.JOB34569.D0000134.?                  SYSOUT         
IEF285I   PROJ.SPF.RESULT                              CATALOGED     
IEF285I   VOL SER NOS= XXXXXX.                                       
IEF285I   PROJ.SPF.LOAD                                KEPT 
IEF285I   VOL SER NOS= XXXXXX.                               

and delete the new file(s) only (in the example, PROJ.SPF.RESULT) ??
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Tue Nov 06, 2007 11:39 pm    Post subject: Reply to: deletion of datasets that are already catalogued
Reply with quote

Harry,

Quote:
I want to delete all the datasets catalogued by developing a rexx tool.


You can use batch SDSF/REXX to get and delete the catalogued datasets.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Tue Nov 06, 2007 11:46 pm    Post subject: Reply to: deletion of datasets that are already catalogued
Reply with quote

Harry,

All datasets that are catalogued by a job will have CATLG specified as the DISP position say DISP=(,CATLG,CATLG).

You can code in REXX to find out the datasets with CATLG (By reading the JCL into a stem) as one of the parameter and then delete it. By following this you dont have to access the spool instead you can get it by reading the lines in the JCL.

We once had a similar kind of requirement.
Back to top
View user's profile Send private message
harry143

New User


Joined: 05 Nov 2007
Posts: 21
Location: hyd

PostPosted: Wed Nov 07, 2007 10:31 am    Post subject: Re: Reply to: deletion of datasets that are already catalogu
Reply with quote

Aaru wrote:
Harry,

All datasets that are catalogued by a job will have CATLG specified as the DISP position say DISP=(,CATLG,CATLG).

You can code in REXX to find out the datasets with CATLG (By reading the JCL into a stem) as one of the parameter and then delete it. By following this you dont have to access the spool instead you can get it by reading the lines in the JCL.

We once had a similar kind of requirement.


How to read all the lines in a jcl to a stem And the DISP paramenter may have different values also other than mentioned in the above.
How exactly we can capture them
Back to top
View user's profile Send private message
harry143

New User


Joined: 05 Nov 2007
Posts: 21
Location: hyd

PostPosted: Wed Nov 07, 2007 10:31 am    Post subject:
Reply with quote

Marso wrote:
Do you mean that you want to check the job listing:
Code:
IEF142I XXXSCAN STEP01B - STEP WAS EXECUTED - COND CODE 0000         
IEF285I   XXXSCAN.JOB34569.D0000134.?                  SYSOUT         
IEF285I   PROJ.SPF.RESULT                              CATALOGED     
IEF285I   VOL SER NOS= XXXXXX.                                       
IEF285I   PROJ.SPF.LOAD                                KEPT 
IEF285I   VOL SER NOS= XXXXXX.                               

and delete the new file(s) only (in the example, PROJ.SPF.RESULT) ??


Yes Marso, do u have any suggestion ??
Back to top
View user's profile Send private message
harry143

New User


Joined: 05 Nov 2007
Posts: 21
Location: hyd

PostPosted: Wed Nov 07, 2007 10:34 am    Post subject: Re: Reply to: deletion of datasets that are already catalogu
Reply with quote

Aaru wrote:
Harry,

Quote:
I want to delete all the datasets catalogued by developing a rexx tool.


You can use batch SDSF/REXX to get and delete the catalogued datasets.


Do u have any jcl for that using rexx??
If yes, can u provide me
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Wed Nov 07, 2007 12:01 pm    Post subject: Reply to: deletion of datasets that are already catalogued
Reply with quote

harry,

Quote:
How to read all the lines in a jcl to a stem


start reading REXX manuals.

Quote:
And the DISP paramenter may have different values also other than mentioned in the above.
How exactly we can capture them


The logic should be coded in such a way that the files that are catalogued are picked.

Quote:
Do u have any jcl for that using rexx??


Search the forum for "SDSF" for working JCL's.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Nov 07, 2007 11:41 pm    Post subject:
Reply with quote

If you ask me, wouldn't it be easier to just change the DISP parameters in the JCL
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Edit large number of datasets (QSAM) zh_lad TSO/ISPF 3 Tue Apr 04, 2017 6:08 pm
No new posts DUMP DATASETS VS TRACE DATASETS! lind sh CICS 4 Tue Dec 06, 2016 11:31 pm
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us