×
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.
Good point Barbara.
Gary Monnier
IT Software Engineer II
T 425.895.6457
F 425.556.8777
E Gary.Monnier@xxxxxxxxx
Terex Aerial Work Platforms
18465 NE 68th St.
Redmond, WA 98052
www.genielift.com
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Barbara Morris
Sent: Tuesday, June 19, 2012 12:09 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: Help creating file on IFS
On 6/18/2012 2:07 PM, Monnier, Gary wrote:
fd = open(%trimR(fullFileName):openFlags:mode:codepage:37);
Better to use 0 instead of 37, unless you're positive the data will be in CCSID 37 even if the job CCSID is not 37.
0 means "use the job CCSID", so if the job CCSID is 37, coding zero means the same as coding 37. If the job CCSID was not 37 for some reason, then the RPG program would have to manually ensure that the data passed to write() was converted to CCSID 37.
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.