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.

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


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



RELATED CONTENT
iSeries PC/Windows Connectivity
How to print RPG output using iSeries Access
How to view source files in the library
User being locked out by Windows share on iSeries
Blocking AS/400 DB2 users
Trouble accessing IFS path from Win2k3 server
How to use an API for adding users to EIM SSO implemenation
Incorrect CCSID on FTP connection from AS/400 to Windows
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

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



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