385 pts.
 Quick and dirt way to backup my greenscreen pgms to my pc
Quick and dirt way to backup my greenscreen as400 pgms to a text file or word file on the C: of my PC.

Software/Hardware used:
ASKED: December 18, 2009  6:34 PM
UPDATED: December 22, 2009  9:01 AM

Answer Wiki:
One way would be copy the source file member to *print. Then using operations navagator copy the spoolfile to your pc (use the drag and drop) and you now have a text file on your pc. If you want multiple members create a cl to copy all the members to print.
Last Wiki Answer Submitted:  December 18, 2009  7:51 pm  by  ToddN2000   3,890 pts.
All Answer Wiki Contributors:  ToddN2000   3,890 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Do you want manual or automatic?

Create a symbolic link in your /home directory that points to one of your source files. Set up a NetServer share for your home directory. In the NetServer share properties, set text conversion for .mbr files to handle EBCDIC/ASCII conversion. When you want a copy, navigate through Windows Explorer to the share, drag the symbolic-link folder icon to a directory on your PC. When the copy finishes, all of the members should be in the directory that was just copied to your PC.

Or, if your PC is a Windows NT (or newer) PC or a Linux PC that’s interacting with Windows networking, issue a CPY command to copy the symbolic-link directory to a share that’s exported from your PC.

Drag/drop would be manual. The CPY command could be automated.

Tom

 107,695 pts.

 

Create a symbolic link in your /home directory that points to one of your source files. How is this done?

 385 pts.

 

If you are planning on restoring to an iSeries, just do a SAVOBJ to a SAVF and FTP the SAVF to your PC. Recover the source with a FTP back to an iSeries and then RSTOBJ.

 880 pts.

 

Create a symbolic link in your /home directory that points to one of your source files.
How do you create a symbolic link?

 385 pts.

 

You can use FTP:
Open a command window on PC and change your PC directory to the location you want your file to be located
FTP iseries-server
login with your ID
change fiel type to ASCII
CD to the library where source files are located
mget source-file.* (to get all the members or some other wild card to get subset)
OR
get source-file.member-name to get specific member
quit to get out of FTP

For example, after logging into FTP:
ASCII
CD myLIB
mget QCBLLESRC.prj*

will retrieve all the member from QCBLLESRC in library myLIB that begin with PRJ*

 880 pts.

 

Create a symbolic link in your home folder to a source file:

ADDLNK OBJ(‘/QSYS.LIB/[my source library].LIB/QCGISRC.FILE’) NEWLNK(‘/home/[my username]/cgisrc’)

 4,990 pts.

 
 2,250 pts.