View previous topic :: View next topic
|
Author |
Message |
Vijay.S Warnings : 1 New User
Joined: 09 Jan 2007 Posts: 8 Location: chennai
|
|
|
|
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 |
|
|
Prajesh_v_p
Active User
Joined: 24 May 2006 Posts: 133 Location: India
|
|
|
|
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 |
|
|
Vijay.S Warnings : 1 New User
Joined: 09 Jan 2007 Posts: 8 Location: chennai
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
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 |
|
|
Vijay.S Warnings : 1 New User
Joined: 09 Jan 2007 Posts: 8 Location: chennai
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Vijay,
Thx for you feedback, look forward to your solution. |
|
Back to top |
|
|
|