Home      Mainframe Forum      Mainfarme Tutorials      IBM Manuals      Mainframe Interview Questions      Mainframe Books      IT News     SiteMap     Downloads


     
 
MAINFRAME - TIP OF THE DAY : programming pearls - Debug only code - comments can lie.

Google
 
Web mainframegurukul.com


Visit mainframe jobs page to search mainframes jobs on top job websites.


REXX or any other utility to edit all the datasets

 
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> TSO, CLIST & REXX
  View previous topic :: View next topic  
Author Message
zh_lad
Member


Joined: 02 Jun 2009
Posts: 7

PostPosted: Fri Feb 05, 2010 5:33 pm    Post subject: REXX or any other utility to edit all the datasets Reply with quote

Dear all,

The mainframe I work on has a maintenance job which deletes all the datasets if they are not referenced in last 5 days. As a
result we loose all our test data regularly and have to do lot of rework. It only happens with sequential files, PDSs are
unaffected.

Is there any rexx or any other utility which can open all sequential files in edit mode starting with a particular high level
qualifier?

Many thanks in advance,
zh_lad
Back to top
View user's profile Send private message

MrSpock
Active Member


Joined: 27 Jun 2007
Posts: 93

PostPosted: Fri Feb 05, 2010 6:09 pm    Post subject: Reply with quote

There are ISPF Services (LMDLIST & EDIT, for example) that can do what you want. The problem I see is, what happens when the dataset is too large to be edited?

z/OS V1R9.0 ISPF Services Guide.
Back to top
View user's profile Send private message
zh_lad
Member


Joined: 02 Jun 2009
Posts: 7

PostPosted: Fri Feb 05, 2010 8:28 pm    Post subject: Reply with quote

Hi, Thanks for reading my query and replying. I can certainly go through and help myself. However, can you please let know the particular chapter I need to study? Would it done using JCL or executing a command on command line?

Many thanks.
Back to top
View user's profile Send private message
anv2010
Member


Joined: 05 Feb 2010
Posts: 5
Location: New Jersey, US

PostPosted: Sat Feb 06, 2010 2:17 am    Post subject: Reply with quote

Try the following JCL to update the dataset's reference date:

Code:
//JOBNAME  JOB ...                                                     
//*                                                                   
// SET DSNAME=MY.SAMPLE.DATASET                                       
//*____________________________________________________________________
//*        DIRECT IEBGENER TO OPEN AND CLOSE THE TARGET DATA SET         
//*        WITHOUT ANY I/O TO UPDATE THE DATA SET REFERENCE DATE
//*____________________________________________________________________
//TOUCH    EXEC PGM=IEBGENER                                           
//SYSPRINT DD  SYSOUT=*                                               
//SYSUT1   DD  DUMMY,DCB=&DSNAME                                       
//SYSUT2   DD  DISP=MOD,DSN=&DSNAME                                   
//SYSIN    DD  DUMMY                                                   


You can setup JCL PROCs to "touch" as many data sets as you need.

Alternatively, you can invoke IEBGENER from REXX.

I'd stick with JCL PROCs -- it's a more straight forward approach.
Back to top
View user's profile Send private message Visit poster's website
zh_lad
Member


Joined: 02 Jun 2009
Posts: 7

PostPosted: Mon Feb 08, 2010 3:13 pm    Post subject: Reply with quote

Thanks for your reply. I have started using it.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> TSO, CLIST & REXX All times are GMT + 5 Hours
Page 1 of 1



 
Jump to:  
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

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts job from spool area 4 safia_shaheen 5880 Thu Aug 30, 2007 5:54 pm
sudhakar.kataru View latest post
No new posts accessing net via job 2 Tejas 1862 Sat Jun 02, 2007 4:12 pm
Tejas View latest post
No new posts Reg my Job search 1 ursvmg 1782 Sat Apr 21, 2007 4:35 am
Veera View latest post
No new posts Need information regarding job openings in USA on Mainframes 2 rayala_uday 1825 Thu Apr 19, 2007 6:58 am
rayala_uday View latest post
No new posts Sending the user a message when job abends? 2 LRevell 3671 Sat Feb 03, 2007 1:30 am
LRevell View latest post
 



This widget requires Flash Player 9 or better








Go to top of the page
 

Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  DB2 INTERVIEW QUESTIONS ||  COBOL INTERVIEW QUESTIONS  ||  JCL INTERVIEW QUESTIONS ||  JCL2 INTERVIEW QUESTIONS ||  VSAM INTERVIEW QUESTIONS ||  CICS INTERVIEW QUESTIONS  ||  Online tutorials ||  Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  SiteMap  ||  Expeditor Tutorial  ||  FILE-AID Tutorial  ||  Changeman Tutorial  ||  COBOL   ||  DB2   ||  JCL  ||  CICS  ||  VSAM  ||  DB2 Interview Questions ( 110 )   || Simple JCL Tutorials  || JCL Tutorial from MainframeGurukul.com   || Simple JCL Tutorial - Chapter1 ;|| Mainframe Forum - Tutorials  || Mainframe Tutorials

Drona Educational Forums - Mainframe Cobol DB2 CICS Board
Powered by phpBB