Home > Ask the AS/400 Experts > iSeries PC/Windows Connectivity Questions & Answers > FTPing from RPG
Ask The iSeries 400 Expert: Questions & Answers
EMAIL THIS

FTPing from RPG

Shahar Mor EXPERT RESPONSE FROM: Shahar Mor

Pose a Question
Other iSeries 400 Categories
Meet all iSeries 400 Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 26 July 2005
Is there a way to verify that a file exists on an FTP server from within an RPG program? We can run a "DIR" command on the FTP directory and take apart its content but that it's very time consuming. We are looking to simply verify that a file exists or does not, and use that exist state as a trigger.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
iSeries PC/Windows Connectivity
Remove character limits from domain or users on RMTUSER
Generically send a text file from the IFS via FTP
Send parameters correctly to the browser when creating a PHP page
Automate Client Access to find files on Windows scheduler
Setting ILE and C+++ compilers to runtime
Configuring Exchange server to allow mail forwarding from AS/400
Saving multiple sessions on IBM iSeries Client Access when using Vista
Use a virtual directory to move a .bmp file from the IFS to a remote server to run a software package
Displaying an image from the AS/400 on a PC, troubleshooting
Running a job on the iSeries after it has been transferred to a PC

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


My assumption is that the FTP server is not on the iSeries. You will need to connect to this server in order to check existence (or better use QNTC support).

IF FTP is the only "road" to the remote server you should connect via the iSeries FTP client and then issue command ls Filename (*disk - this will create outputfile lsoutput with 1 record (if file found) or zero (if not found).

==================================
MORE INFORMATION ON THIS TOPIC
==================================

Visit the ITKnowledge Exchange and get answers to your connectivity questions fast.

The Best Web Links: Tips, tutorials and more.

PC/Windows connectivity expert Shahar Mor is available to answer your toughest networking questions. Ask Shahar a question or read his previously answered questions here.




Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



iSeries Networking - Printing, Remote Access, TCP/IP
HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts