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



Guy,

I think someone referred you to 
http://faq.midrange.com/data/cache/67.html

There's a section, right in the middle, that addresses your concern:

II)  Automated, or scripting, method
  A)  Scripted ftp from the pc to the 400.
      First create a .BAT file.  Let's call ours FTPSCRIPT.BAT.  In it 
we'll
      have one line:
      ftp -n -s:ftpscript.txt>ftpout.txt
      The -n says not to open a system until we say so.
      The -s says to used a script file and this is the name of the script 
file.
      The >ftpout.txt will pipe the output to a text file.  You can check 
this
      file for transmission errors.
      Now create another text file called FTPSCRIPT.TXT.  In this place:
      open myas400
      user myuserid mypassword
      cd mylib
      quote rcmd crtpf mylib/myfile rcdlen(80)
      put myfile.txt myfile
      quote rcmd runpost
      quit
      Now when you type ftpscript it will run the ftpscript.bat file, 
which
      will use the ftpscript.txt file.  You can use notepad or some other
      utility to check the ftpout.txt file for the status of the 
transmission.
      An important thing to remember is that the command we used, runpost, 
will
      have to set up the library list.  It will not use any library list
      defined by your user profile's job description.


Rob Berendt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.