IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Taking the Backups Of chgman packages thru REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Mon Jun 09, 2008 11:39 pm
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
Search our Forums:

Back to Top