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
 
Skip file from delete

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
pema_yozer

New User


Joined: 16 Feb 2009
Posts: 47
Location: pune

PostPosted: Tue Aug 29, 2017 3:19 pm    Post subject: Skip file from delete
Reply with quote

HI guys,
I have a piece of code deleting files based on naming pattern

Code:
//DMS.SYSIN DD  *
 FIND DSNAME=EHLT.EC.TRAN.!KTEC!FILE         ** !=SELECT VARIABLE
  DELETE
/*


we also have few GDG created whose generations are also deleted by the JCL since it matches the pattern

EHLT.EC.TRAN.KTECBJ00.IFILE1.GDG
any idea on how I can make change the above code to it skips the GDG but continues to delete other file.
Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1922
Location: UK

PostPosted: Tue Aug 29, 2017 4:51 pm    Post subject:
Reply with quote

Remove the JCL statements that reference the generation data sets. (You said that they were being deleted by JCL and not by whatever utility you are running.)
Back to top
View user's profile Send private message
pema_yozer

New User


Joined: 16 Feb 2009
Posts: 47
Location: pune

PostPosted: Tue Aug 29, 2017 6:02 pm    Post subject:
Reply with quote

the below is the input to my delete utility

FIND DSNAME=EHLT.EC.TRAN.!KTEC!FILE ** !=SELECT VARIABLE
DELETE

we have files such as
EHLT.EC.TRAN.KTECBJ00.IFILE1.GDG
EHLT.EC.TRAN.KTECBJ00.IFILE1


the above FIND is picking both the layout, any idea on skipping the GDG one but picking the regular one without the GDG
Back to top
View user's profile Send private message
sergeyken

Active User


Joined: 29 Apr 2008
Posts: 212
Location: Maryland

PostPosted: Tue Aug 29, 2017 7:12 pm    Post subject:
Reply with quote

pema_yozer wrote:
the below is the input to my delete utility

FIND DSNAME=EHLT.EC.TRAN.!KTEC!FILE ** !=SELECT VARIABLE
DELETE

we have files such as
EHLT.EC.TRAN.KTECBJ00.IFILE1.GDG
EHLT.EC.TRAN.KTECBJ00.IFILE1


the above FIND is picking both the layout, any idea on skipping the GDG one but picking the regular one without the GDG

Your question has nothing to do with "JCL & VSAM" topics.
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am
No new posts Updating data from one file to other!!! Vignesh Sid SYNCSORT 1 Mon Nov 06, 2017 2:42 pm
This topic is locked: you cannot edit posts or make replies. Need help how to pass the ESP variabl... Venkichaitu JCL & VSAM 12 Thu Nov 02, 2017 3:53 am
This topic is locked: you cannot edit posts or make replies. Comparing current time with the time ... arunsoods SYNCSORT 1 Mon Oct 30, 2017 4:07 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am

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