× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 8/28/2013 6:12 PM, Hoteltravelfundotcom wrote:
I am working in a PDM environment. I have a 650 line RPGLE program, I would
like to save this
as in a text file. How does one do this?

The old fashioned way is to use FTP. Many years ago I wrote an FTP
batch script that automates much of this. This version works on Windows 7.

ftprpgle.bat
@rem ftp an RPGLE source member
@echo off
rem
rem make sure we entered 2 parms:
rem 1: Library
rem 2: Member name
rem
if "%1" == "" (
echo First parameter is library name
echo Second parameter is RPGLE source membername
goto end_script
)
if "%2" == "" (
echo First parameter is library name
echo Second parameter is RPGLE source membername
goto end_script
)
echo copying %1/qrpglesrc(%2).
rem
set ftp_path=c:\my_script_path\
set ftp_script=ftpscript.txt
set ftp_trace=ftptrace.txt
set script=%ftp_path%%ftp_script%
set trace=%ftp_path%%ftp_trace%
rem
rem build ftp script
echo user my_IBM_user_id my_IBM_password > %script%
echo quote site namefmt 1 >> %script%
echo get /qsys.lib/%1.lib/qrpglesrc.file/%2.mbr %2.rpgle >> %script%
echo quit >> %script%
rem
rem process ftp script
ftp -n -s:ftpscript.txt my_machine_name > %trace%
rem
rem clean up after ourselves.
rem keep either or both files for debugging purposes
del %script%
del %trace%
codeedit %2.rpgle
:end_script

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.