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 ToddN20003,890 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
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.
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.
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*
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
Create a symbolic link in your /home directory that points to one of your source files. How is this done?
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.
Create a symbolic link in your /home directory that points to one of your source files.
How do you create a symbolic link?
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*
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’)
There is another discussion in this forum going on. Check:
http://itknowledgeexchange.techtarget.com/itanswers/how-to-convert-rpg-to-a-txt-file/