Believe you should check the ccsid of the stmf created by the rpg program.
When done nothing special it gets theccsid of the job its created in.
One stmf created from a pc will get a correct ccsid.
So check the ccsid it should be 1208 or 1252. This was working for us.
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Booth Martin
Sent: vrijdag 11 november 2016 06:34
To: Web Enabling the AS400 / iSeries <web400@xxxxxxxxxxxx>
Subject: [WEB400] JSON and the IFS
I believe I am asking myself the wrong questions.
First the scenario: I have a 45 record file in my development library which
I create and maintain with RPG & SQL. Another program reads that data and
creates a JSON file in /www/myweb/htdocs. Also in that folder are the
image, .css, and .html files for a web page to display the 45 records.
Two things are not working right.
First, its telling me the file is badly formed and points to row 1,
column 16. When I look at the file with WRKLNK the file looks
exactly like the file I have on another server and is working just
Second, when I ftp that file to my PC and I look at the file it has
characters that are not a to Z.
The puzzling part to me is that this all works as expected when done on my
local PC and also when I install and run it on pair.com (where my regular
web site is hosted). It would seem to me that it should work, or not work?
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list To post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
As an Amazon Associate we earn from qualifying purchases.