Save file in AS/400

335 pts.
Tags:
AS/400
AS/400 administration
AS/400 objects
HI I have one doubt in saving the objects in AS400. I have my programs and files in two differnt library and source PF and i have compiled all the objects in one library. So now i want to save the source code for PF and RPG programs and i want to restore this sources in another AS400 machine. Can anyone please suggest me how this steps can be taken care of.?I need step by step procedure. Thanks Priya

Software/Hardware used:
AS400

Answer Wiki

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

If the source files were the only object in one of the libraries you saved, then you can do a RSTLIB.
If there are multiple objects in the labrary along with the source files, then you can do RSTOBJ

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
  • TomLiotta
    save the source code for PF and RPG programs Do you have the source for PFs in one library and source for programs in a different library? Tom
    125,585 pointsBadges:
    report
  • iiiiiiiiiiiii
    Hi Tom/Charlie My cl and RPG program sources are present in A libraray. and PF and DSPF sources are present in B library. And objects for all PF,CL ,DSPF ,RPG are created in C library. So in this case how can i sav this objects or libraries in a sav file and restore the same as it as in Another AS400 machine. Please provide me the step to step procedure. Thanks Priya
    335 pointsBadges:
    report
  • CharlieBrowne
    If you are using a tape drive: SAVLIB (Do F4 Prompt) For LIB you enter a single library name or multiple libraries DEV (TAP01) or whatever your device name is for your tape drive. Review the rest of the parms to see if you want to use them. Possiblly SAVACT -- After the libraries are save, take it to the 2nd machine and do RSTLIB ++++ You mentioned using *SAVF If the machines are connected, you can do that and FTP the *SAVF to the other machine. CRTSAVF qgpl/yourfile Use the same SAVLIB command except the DEV is *SAVF Next access the other machine with FTP and PUT the file Now use the same RSTLIB command except DEV is *SAVF
    41,380 pointsBadges:
    report
  • deepu9321
    Hi Priya, You can Save the libraries which you wanted to move to another machine to save file. use SAVLIB command and then give F4,
    Library  . . . . . . . . . . . . > A             Name, generic*, *NONSYS... 
                                     > B                                        
                   + for more values > C                                        
    Device . . . . . . . . . . . . . > *SAVF         Name, *SAVF, *MEDDFN       
                   + for more values                                            
    Save file  . . . . . . . . . . .   SAVEFILEIN    Name                       
      Library  . . . . . . . . . . .     QGPL        Name, *LIBL, *CURLIB       
    (A,B,C are the Libraries) and then connect to the Destination server by using FTP '100.100.100.100'(FTP + F4 and give ip Address) You will need to enter the login credentials of the Destination server. Once you login use command 'bin' for converting to binary image. Then, By using PUT you can transfer the data(i.e., Libraries) in SAVF to Destination server. PUT SAVEFILEIN SAVEFILEO (PUT sourceSAVF DestinationSAVF) and by using the RSTLIB command you can restore the Libraries(A,B & C) RSTLIB and F4
    Saved library  . . . . . . . . . > A             Name, generic*, *NONSYS...
                                     > B                                       
                   + for more values > C                                       
    Device . . . . . . . . . . . . . > *SAVF         Name, *SAVF, *MEDDFN      
                   + for more values                                           
    Save file  . . . . . . . . . . .   SAVEFILEO     Name                      
      Library  . . . . . . . . . . .     *LIBL       Name, *LIBL, *CURLIB      
    The Libraries will get Restored in Destination server. Pradeep.
    3,695 pointsBadges:
    report
  • TomLiotta
    how can i sav this objects or libraries in a sav file and restore the same as it as in Another AS400 machine. With objects in Lib A, Lib B and Lib C, one possibility is to create Lib D and create three SAVFs in it. Save the Lib A objects into LibD/SavfA. Save the Lib B objects into LibD/SavfB. Save the Lib C objects into LibD/SavfC. At that point, you will have different objects saved into different savefiles. The three savefiles are all in Lib D. Now, create a new savefile, for example SavfD in library QGPL. You can then save Lib D into QGPL/SavfD with a SAVLIB command. Make sure that your SAVLIB command has SAVFDTA(*YES) specified. You can read the help text for the SAVFDTA() parameter for information. You will end up with your three original savefiles all included inside of SavfD. When you transfer SavfD to the new system, you can restore Lib D and the three savefiles will be in it. You can restore your objects from those savefiles. You could use SAVOBJ to save the three savefile objects into SavfD instead of using SAVLIB for the library. You still need to ensure that SAVFDTA(*YES) is specified. Tom
    125,585 pointsBadges:
    report
  • iiiiiiiiiiiii
    HI Deepu and Tom Thanks for answer i will try this and let u know my feedback. Thanks Priya
    335 pointsBadges:
    report
  • iiiiiiiiiiiii
    [...] 8. CharlieBrowne, TomLiotta, and Deepu9321 share some tips on AS/400 save files. [...]
    0 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