We need to set up an agent to look at an e-mail and if it contains a URL, follow that link and download the file from the URL as a text file. We are having problems with the download of the text function. Any suggestions? We are running Domino 5.0 on an AS/400 for this particular mail server.
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
Since you didn't include any of your code, its somewhat difficult to help diagnose the problem. One of the most common issues with dealing with AS/400 text files is the assumption that text is storeed as ASCII text. All LotusScript statements that write to a file (such as Print #, Put, and Write # ) will convert the characters to the platform-specific code page. The AS/400 platform uses EBCDIC code pages.
The Domino for AS/400 release notes http://doc.notes.net/as400/5.0.7/readas4.nsf/db69c81afd0e71cf852561b700752f5e/fed9cbf1013a6420862569fa007d45b1?OpenDocument&Highlight=0,del,objlnk show how you can use the copy object command to convert the file formats.
Lotus's example: Shell ("CPY OBJ('/acme1/notes/ebcdicfile.txt') TOOBJ('/acme1/notes/asciifile1.txt') FROMCODEPAGE(37) TOCODEPAGE(819)")
You can also use *TEXT and *PCASCII in lieu of 37 ND 819
Dig Deeper on Domino Resources - Part 4
Related Q&A from Brian Mahoney
Find out what types of calculations can be computed for a column in a Lotus Notes view and the best way to go about it with this expert response.continue reading
Find out why you can't use Formula language to include a doclink to a specific Lotus Notes view or database and need to use LotusScript instead.continue reading
Discover the reasons behind a Notes/Domino admistrator having trouble with disabled options in the "customize this view" section of his Lotus Notes ...continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.