You are on page 1of 1

To clear the SAVF and to Restore it

clrsavf xyogesh/purge (Here purge is the shell or we can say the zip file and xyogesh used as library)
SAVOBJ OBJ(VSB003) LIB(XYOGESH) DEV(*SAVF) SAVF(XYOGESH/PURGE) this is done on the
local system i.e. LTSBDEV1.
RSTOBJ OBJ(VSB003) SAVLIB(XYOGESH) DEV(*SAVF) SAVF(XYOGESH/PURGE)
RSTLIB(Xyogesh) this is done on the remote system i.e., VISADEV(as the shell is already there so
we need to put the code in this).
CPYF
CPYF FROMFILE(VSLDTA/PNMAST) TOFILE(VSLDTACPY/PNMAST) MBROPT(*ADD)
INCCHAR(PANSTS 1 *EQ ' ')
Or
CPYF FROMFILE(VSLDTA/PNMAST) TOFILE(VSLDTACPY/PNMAST) MBROPT(*ADD)
FROMRCD(1) TORCD(7) FMTOPT(*NOCHK)
Note for debug mode:
In order to embed the source code into the object always use the option *LSTDBG and *LIST for the
source.
DEBUG MODE CMDS
STRDBG PGM(XYOGESH/VSB001) UPDPROD(*YES) OPMSRC(*YES)
STRISDB PGM(XYOGESH/VSB003) UPDPROD(*YES) INVPGM(*CMD) CMD(CALL
PGM(XYOGESH/VSB003))
CALL PGM(XYOGESH/VSB001) PARM('20100513')
FTP PROCEDURE:
In this we were logged on to LTSBDEV1 and were trying to FTP the code to VISADEV
FTP VISADEV
LOGIN ID: enter the login id here for LTSBDEV1
PWD: enter the pwd here LTSBDEV1
LCD XYOGESH (this the library that exist on the local system that is the LTSBDEV1)
CD XYOGESH (this the library that exist on the local system that is the VISADEV)
BIN (as the code is FTPed in the binary format)
PUT PURGE PURGE (these are the SAVF) when we move the code to the remote system
GET PURGE PURGE (these are the SAVF) when we move the code to the local system
Quit

Steria Limited / 14 May 2010

Page 1 of 1 / Version 1.0

You might also like