Skip to Content
author's profile photo Former Member
Former Member

backup to tape with expiration date...

Hi,

I've changed our backup CLs in order to don't need an INZTAP command, because it only initializes the first tape in the sequence. Also I've added an expiration date in any of the SAVE commands:

SAVSECDTA DEV(&CINTA) SEQNBR(1) EXPDATE(&EDATE) ENDOPT(LEAVE) CLEAR(ALL)

SAVCFG DEV(&CINTA) EXPDATE(&EDATE) ENDOPT(*LEAVE)

SAVOBJ OBJ(QCLSRC) LIB(QGPL) DEV(&CINTA) EXPDATE(&EDATE) ENDOPT(*LEAVE)

SAVLIB LIB(R3S30DATA) DEV(&CINTA) EXPDATE(&EDATE) +

ENDOPT(LEAVE) SAVACT(SYNCLIB) +

SAVACTWAIT(1200) SAVACTMSGQ(BACKUP) ACCPTH(*YES)

SAVLIB LIB(D) DEV(&CINTA) EXPDATE(&EDATE) ENDOPT(LEAVE) ACCPTH(YES)

SAVLIB LIB(DA) DEV(&CINTA) EXPDATE(&EDATE) ENDOPT(LEAVE) ACCPTH(YES)

SAVLIB LIB(DG) DEV(&CINTA) EXPDATE(&EDATE) ENDOPT(LEAVE) ACCPTH(YES)

SAVLIB LIB(DM) DEV(&CINTA) EXPDATE(&EDATE) ENDOPT(LEAVE) ACCPTH(YES)

SAVLIB LIB(DMSAP) DEV(&CINTA) EXPDATE(&EDATE) ENDOPT(LEAVE) ACCPTH(YES)

...

I only use CLEAR(*ALL) for the first command which also has SEQNR(1). What will occur when the second tape will be load ?? If the data in the second tape is expired as I expect, would message CPA4036 will appear ?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 03, 2006 at 01:32 PM

    Hi Joan,

    On our test system we used to use 5 tapes a day to do the backup one of the SAP data library.

    Here are all the save commands that I used, in sequence:

    SAVOBJ OBJ(*ALL) LIB(R3SIMJRNOL) DEV(&TAPD) +

    SEQNBR(1) EXPDATE(&EXPDAT) ENDOPT(*LEAVE)

    SAVOBJ OBJ(*ALL) LIB(R3TSTJRNOL) DEV(&TAPD) +

    EXPDATE(&EXPDAT) ENDOPT(*LEAVE)

    SAVOBJ OBJ(*ALL) LIB(OLDJRNRCV) DEV(&TAPD) +

    EXPDATE(&EXPDAT) ENDOPT(*LEAVE)

    SAVLIB LIB(&LIB) DEV(&TAPD) EXPDATE(&EXPDAT) +

    ENDOPT(LEAVE) PRECHK(YES) +

    SAVACT(*SYNCLIB) SAVACTMSGQ(QGPL/DAILYSAVE)

    SAVLIB LIB(&LIBS) DEV(&TAPS) EXPDATE(&EXPDAT) +

    ENDOPT(LEAVE) PRECHK(YES) +

    SAVACT(*SYNCLIB) SAVACTWAIT(0) +

    SAVACTMSGQ(QGPL/DAILYSAVE)

    SAVSAVFDTA SAVF(SAPPGMS/DAILYSAVE) +

    DEV(&TAPD) EXPDATE(&EXPDAT)

    When one tape was filled the tape drive would rewind, unload, load the next tape and continue on.

    I don’t know if the CPA4036 ever appeared, I have it in the system reply list (command WRKRPYLE) set to I.

    I never remember seeing it in the job messages though.

    Regards

    Bill

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.