Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Taking the Backups Of chgman packages thru REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
Vijay.S
Warnings : 1

New User


Joined: 09 Jan 2007
Posts: 8
Location: chennai

PostPosted: Thu Jun 05, 2008 6:26 pm    Post subject: Taking the Backups Of chgman packages thru REXX
Reply with quote

Hi,

Could any one suggest me how to create a REXX program to take the backup oF CHANGMAN packages.
Output Of backup dataset is likely below naming convention
<HLQ>.BKP.<PROJECTNAME>.<HLQ>.<PACKAGENUMBER> .<TYPE>.<DATE>
if i have 5 packages, we need to run the below proc every time ( types (&LIB) are SRC ,cpy,etc...)
for this we can achieve but some changeman packages will not have all the librarys that time job will abend ....

i want to create JCL or REXX pgm for taking the backup at onetime run?


some packages SRC may not be available


//BACKUP PROC ENV=,
// ENV1=
//STEP01 EXEC PGM=IEBCOPY
//*
//SYSIN DD DSN=TEST.NONX.VIJAY.PDS2(BKCTL),
// DISP=SHR
//*
//SYSPRINT DD SYSOUT=*
//IN DD DSN=TEST.CHGMAND.&ENV..&PKG..&LIB,DISP=SHR
//*
//OUT DD DSN=&ENV1..BKP.&PROJ..&ENV..&PKG..&LIB..D08&MON.&DATE,
// DISP=(NEW,CATLG,DELETE),
// UNIT=TESTDA,
// SPACE=(CYL,(10,10,40),RLSE),
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=800)
//*
Back to top
View user's profile Send private message

Prajesh_v_p

Active User


Joined: 24 May 2006
Posts: 133
Location: India

PostPosted: Mon Jun 09, 2008 10:37 am    Post subject:
Reply with quote

One solution through REXX and ISPF is :

1) Get the package number and application id through a panel.
2) Build the high level qualifeir for you package datasets.
3) Use LMDINIT and LMDLIST to list the available dataset for ur HLQ
4) use COPY to copy from these datasets to your backup dataset in the designated format.

My Suggestion is to include time also into the backup name so that you can avoid possible duplicate issue for multiple backup attempts in a single day!.

Prajesh V P
Back to top
View user's profile Send private message
Vijay.S
Warnings : 1

New User


Joined: 09 Jan 2007
Posts: 8
Location: chennai

PostPosted: Mon Jun 09, 2008 11:25 pm    Post subject: Reply to: Taking the Backups Of chgman packages thru REXX
Reply with quote

Hi Prajesh,

could you please explaim me detail.
am new to REXX. as per reqmnt i have to code it in Rexx

Thanks
Vijay
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Mon Jun 09, 2008 11:39 pm    Post subject: Reply to: Taking the Backups Of chgman packages thru REXX
Reply with quote

Quote:
am new to REXX. as per reqmnt i have to code it in Rexx


do the people who wrote the requirements and assigned the task
realize that You do not have the experience ?
Back to top
View user's profile Send private message
Vijay.S
Warnings : 1

New User


Joined: 09 Jan 2007
Posts: 8
Location: chennai

PostPosted: Wed Jun 18, 2008 9:53 pm    Post subject: Hi Prajesh
Reply with quote

Thanks for your inputs,I have completed the coding and test as well. once it will implement in production i will put the code in forum then every one will come to know how to handle similar kind of rexx programs in future.


Thanks
Vijay.S
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Jun 19, 2008 12:46 pm    Post subject:
Reply with quote

Vijay,

Thx for you feedback, look forward to your solution.
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us