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




I'm trying an example of some code I saw, which writes a message to an IFS
directory. It works great when looking at the file from the i, but if I
open it with a Windows program, such as Notepad, it looks like
garbage...indicating that I have a character set issue. Is there a way to
have this file written in a PC character set? I notice that if I create
the file through windows, in the IFS, that the program replaces the file
with the correct character set, and I can read what it writes in Windows.

H ActGrp(*CALLER) DftActGrp(*NO) ExprOpts(*RESDECPOS) DatFmt(*USA)
H OPTION(*SRCSTMT:*NODEBUGIO) EXTBININT(*YES)
//
D Doc S SQLTYPE(CLOB_FILE)
D CRLF S 2 INZ(X'0D25')
//****************************************************************
// Begin Calculation Specifications
//****************************************************************
/FREE

clear Doc;
Doc_Name='/tmp/TEST.txt';
Doc_NL=%len(%trim(Doc_Name));

Doc_FO=SQFOVR;
exec sql set :Doc='This is test record 1';

*InLR = *On;
Return;


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.