Home > Ask the AS/400 Experts > iSeries Application Development Questions & Answers > FTP a file that contains exclamation points
Ask The iSeries 400 Expert: Questions & Answers
EMAIL THIS

FTP a file that contains exclamation points

John Blenkinsop EXPERT RESPONSE FROM: John Blenkinsop

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: 23 November 2004
How can I FTP a file that contains exclamation points? Currently I'm in ASCII mode and the company that sponsors the site correctly indicates "!" in the file where necessary (within a gift message typically) but the file FTP'd to the iSeries converts the "!" to "|" . Any help would be much appreciated since it will save me the trouble of scanning and replacing the "|".

>
This sounds like a CCSID (Coded Character Set ID) problem. The current CCSID translates the exclamation point incorrectly -- you need to find a CCSID that will translate it properly without disturbing the other characters. The US-ASCII CCSID is 367, so if you are using another CCSID, you may find that switching to this CCSID could solve the problem. But if you are already using this CCSID, then you may need to use a CCSID that will translate between your keyboard/screen character set and US-ASCII.

However, there are hundreds of CCSIDs! And I am not sure how to find the right one.

Another way of solving this would be to send a test file that contains all the characters and symbols that can be used. Then look at the received file and see where characters differ from the sent file. You can use this information to find or create a translation table that your RPG program can use, or perform your own translation in the code. So if you find that sending "|" gives "!" and sending "!" gives "|" your program can replace "!" with "|" and "|" with "!" in the data before it writes it.

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

The Best Web Links: tips, tutorials and more.

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

Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.


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



RELATED CONTENT
iSeries Application Development
Monitoring escape messages and using RCVMSG for diagnostic messages
Listing contents of multiple FTP directories on AS/400
Chain operation error after converting RPG3 to ILE RPG (RPGIV)
Space offset X'0015FF00' or X'0000000000000000' is outside current limit for object QIGC2424C
Searching fields for values
iSeries application display subfiles with other program windows
Searching part of a name or address in AS/400
Passing parameters in an ILE RPG module
What's happening to my subfile?
What happening to my subfile?

FTP
How to view source files in the library
Simplify the process of converting a spool file from iSeries into an Excel spreadsheet
Generically send a text file from the IFS via FTP
Automate Client Access to find files on Windows scheduler
SAVF by FTP on AS/400 -- error "source file not found"
Use a virtual directory to move a .bmp file from the IFS to a remote server
Transferring binary files to IFS from a PC via FTP
FTP from AS/400 to PC folder
How to FTP without knowing the file name
IFS folder error

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