moving a member from testing to production enviroment of as400

Tags:
AS/400
how can i move a member of object from a library of as/400 testing to production environment? i have tried to used cmd savobj but it didn't work. can u give me an advice? or may be give me command of savobj for saving a member.. thanks 4 ur advice.. -aswin-

Answer Wiki

Thanks. We'll let you know when a new response is added.

Member of object – which type, which atribute?
Have you try copy member (or object) an then delete it in test?
If you talking about source member, you can use PDM (STRPDM command), an then your source copy to production library and compile it.

Dalibor

==================================================

Of course SAVOBJ didn’t work. That’s not what SAVOBJ does. SAVOBJ only puts objects into a container suitable for transferring to another system. Usually, the container is a savefile object.

Once the savefile holds the object, you have to transfer it. And once it’s transferred, you have to restore it. It’s like putting a PC program into a .zip file. That’s just the first step. Then you have to send it somewhere. And then you have to unzip it.

For transfer, you can use FTP, or you can use FTS, or you can use sftp, or you can use /QFileSvr.400, or you can use /QNTC, or you can use DDM…

Technically, if you have the communications set up, FTS is probably the easiest. I invoke it right against the member in PDM and the member goes straight to the target system with all attributes intact including member text. It even creates the source file if one doesn’t exist.

Next easiest is probably the SAVRSTOBJ command. That eliminates the intermediate savefile and also does the transfer for you.

But I’d be a little troubled by someone moving CL members into my production system who doesn’t already know <b>how</b> to transfer between systems…

What exactly is your question? Are you needing to learn communications between systems? Are you trying to learn differences between versions/releases of two systems?

Tom

Discuss This Question: 7  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Dalibor
    Object member, which type, which attribute? Have you try to copy member (or object) and then delete it in test? If you talk about source member, you can use PDM (STRPDM command), and then your source copy to production library and compile it. Dalibor
    10 pointsBadges:
    report
  • Administrator18
    I can used strpdm command if the test and production enviroment at one machine (am i correct??) but the problem is i have two different machine, one for test environment and one for production. :( and of course i can copy and delete the member at test environment. this is the type Member . . . . . . . . : ULREPORT File . . . . . . . . . : QCLSRC Library . . . . . . . : USRINDIV Member type . . . . . . : CLP the test machine have V5R2 version, and the production V5R1 version. is the different of version make a problem for me??? thanks.
    0 pointsBadges:
    report
  • Dalibor
    Yes, correct (for STRPDM command). In that case, you can use SAVOBJ command, but in Target release parameter you must type V5R1M0 if you save object on V5R2M0 system and want restore to V5R1M0 system. With SAVOBJ command you can save object that contain member, not only member. You didn't tell me what type members do you want save. For all I know, iSeries haven't command for saving members, you must save object that contain members
    10 pointsBadges:
    report
  • Administrator18
    the type of the member is CLP. "For all I know, iSeries haven't command for saving members, you must save object that contain members" i agree with u, i have already try command savobj ======================================================= this is the command and the result before i upgrade the test machine. SAVOBJ OBJ(QCLSRC) LIB(USRINDIV) DEV(TAP01) OBJTYPE(*PGM) FILEMBR((QCLRSC (ULREPORT))) OUTPUT(*PRINT) and the results at spool is 5722SS1 V5R1M0 010525 Save Object - Object Information HODEV270 27/07/05 9:30:16 Page 1 Device . . . . . . . . : TAP01 Target release . . . . : V5R1M0 Storage . . . . . . . : *KEEP Save access paths . . : *NO Save file data . . . . : *YES Data compressed . . . : No Data compacted . . . . : Yes Expiration date . . . : *PERM Library . . . . . . . : USRINDIV Save date/time . . . . : 27/07/05 09:30:16 Object Type Attribute Saved Size Owner Text ULREPORT *PGM CLP YES 53248 PAXUS CL - Summary Report Produk Uni Library ------Objects------ File File Library Saved Saved Not saved Volume Label Sequence ASP Owner Size Text USRINDIV YES 1 0 AIGL USRINDIV 1 1 QSECOFR 991232 SSD - Proses P * * * * * E N D O F L I S T I N G * * * * * ========================================================== am i make a mistake command??? i want to moving object including the member but the results after i restore to production is just compile results program. if i can't used savobj, can i used ftp??? if yes, i never used ftp command how can i use that command? thanks
    0 pointsBadges:
    report
  • Dalibor
    Try with this command, source file QCLSRC contains your members and this should work: SAVOBJ OBJ(QCLSRC) LIB(USRINDIV) DEV(TAP01) OBJTYPE(*FILE) SEQNBR(1) TGTRLS(V5R1M0) DTACPR(*YES) OUTPUT(*PRINT) !!! But before saving, you must initialize tape, here is the sample of command: INZTAP DEV(TAP01) NEWVOL(BACKUP) NEWOWNID(QSECOFR) CHECK(*NO) With this SAVOBJ command you do not need specially include members. This can be done also with FTP, but I think that this is simpler. Dalibor
    10 pointsBadges:
    report
  • TomLiotta
    the type of the member is CLP. ... SAVOBJ OBJ(QCLSRC) LIB(USRINDIV) DEV(TAP01) OBJTYPE(*PGM) FILEMBR((QCLRSC (ULREPORT))) OUTPUT(*PRINT) In that example, the object name is QCLSRC, but the object type is *PGM. Further, members are listed. Since QCLSRC is normally a *FILE (not *PGM) and since only files have members, the SAVOBJ command is never going to find anything to save. There will never be a *PGM named QCLSRC that has members. The SAVOBJ must specify OBJTYPE(*FILE) if source members are to be saved. Or it must list the program objects instead of QCLSRC if programs are to be saved. It depends on what is actually needed. Should the source be saved so that the members can be compiled on the production system? Or should the programs be compiled on development and then transferred to production? Tom
    125,585 pointsBadges:
    report
  • Josseline
    You have to specify which member of object you want to move to production environment, or else we might understand that you want to take a smog test to see if your car can still be taken out on the streets. Please provide some additional information, if you can, so the answer to your problem is complete. Good luck!
    80 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following