× 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.


  • Subject: Uploading a PC file and printing it to an AS/400 spool file
  • From: "Lehti, Eric" <eric.lehti@xxxxxxxx>
  • Date: Thu, 29 Jun 2000 17:08:36 -0500

Thank you very much, Scott.  Your technique works like a charm!   Eric Lehti

-----Original Message-----
From: Scott Klement [mailto:klemscot@klements.com]
Sent: Thursday, June 29, 2000 1:26 PM
To: 'RPG400-L@midrange.com'
Subject: RE: File PC to a AS/400 spool file????



This will work for printing a file from a PC via FTP:

ftp as400
Name (as400:klemscot): klemscot
331 Enter password.
Password:
230 KLEMSCOT logged on.
ftp> cd qsys
250 Current library changed to QSYS.
ftp> ascii
200 Representation type is ASCII nonprint.
ftp> put myfile.txt qsysprt
local: myfile.txt remote: qsysprt
200 PORT subcommand request successful.
150 Sending file to member QSYSPRT in library QSYS.
250 File transfer completed successfully.
4240 bytes sent in 0.49 seconds (8.49 KB/s)
ftp> quit
221 QUIT subcommand received.

I just tried it, and it worked for me :)




On Thu, 29 Jun 2000, Joel Fritz wrote:

> The simple minded way (the direction I usually choose) is to upload the
file
> to a data base file using ftp, client access, or whatever's available, and
> then doing a CPYF FROMFILE(XXX) TOFILE(*PRINT).  You can also substitute
the
> name of a print file in the tofile parm.  There's probably something a
> little more sophisticated that will do it in one step. 
> 

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator:
david@midrange.com
+---

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.