Search found 27 matches

by peder udesen
Mon Sep 29, 2025 7:05 am
Forum: RPG IV
Topic: Detect CLRPFM action from other job
Replies: 2
Views: 14711

Re: Detect CLRPFM action from other job

I have had a situation where records in a log file should be transferred to an archive file.

Originally it was done using CPYF and CLRPFM but due to the fact that the system now
is running 24x7 it was no longer possible. The log file could be open at any time.

Instead I made a program that read ...
by peder udesen
Wed Jun 25, 2025 7:12 am
Forum: HTTPAPI
Topic: HTTPAPI 1.51 minor errors
Replies: 2
Views: 39228

Re: HTTPAPI 1.51 minor errors

Well, normally I would have downloaded the SAVF but Google took me to
the FTP-section of your site. It was first after the installation I found the
right place :(

So I had a lot of problems uploading the sources via FTP from my PC due to security settings. [ Lot of nasty words :) ]

I fixed the ...
by peder udesen
Mon Jun 23, 2025 10:01 am
Forum: HTTPAPI
Topic: Object containing the password for the certificate store file not found.
Replies: 1
Views: 31748

Re: Object containing the password for the certificate store file not found.

We have located the cause.

It turned out that the *SYSTEM certificate store was corrupt.
After deleting it and creating it again everything worked like a charm.

Regards
Peder
by peder udesen
Fri Jun 20, 2025 11:40 am
Forum: HTTPAPI
Topic: Object containing the password for the certificate store file not found.
Replies: 1
Views: 31748

Object containing the password for the certificate store file not found.

I have just changed the server from http to https in my program.
It has worked OK as long as I used the http protocol.
Only the constant http://myServer in my program was changed to https://myServer and the program was compiled OK.

myServer is of course changed to use the https protocol.


Now I ...
by peder udesen
Fri Jun 20, 2025 11:26 am
Forum: HTTPAPI
Topic: HTTPAPI 1.51 minor errors
Replies: 2
Views: 39228

HTTPAPI 1.51 minor errors

I have just updated HTTPAPI to version 1.51 and have found some minor errors.

1) The version number is still 1.49.
2) The source EXAMPLE13 is marked as RPGLE -- it should be SQLRPGLE -- a typo in upload.bat
3) And final, not an error - The text describing the members is missing.

Regards
Peder
by peder udesen
Tue Apr 08, 2025 6:32 am
Forum: RPG IV
Topic: XML-SAX failed with error code 6
Replies: 3
Views: 91447

Re: XML-SAX failed with error code 6

Does anybody have a good idea how to handle this?
by peder udesen
Thu Mar 27, 2025 9:44 am
Forum: RPG IV
Topic: XML-SAX failed with error code 6
Replies: 3
Views: 91447

Re: XML-SAX failed with error code 6

In the documentation for XML-SAX it is possible to specify that the data passed to
the XML-handler is in a certain CCSID. So it is possible to specify CCSID=1208 ( UTF-8 )



P xmlHandler B
D xmlHandler PI 10i 0
D ignore 1a
D event 10i 0 value
D string * value
D stringLen 20i 0 value
D ...
by peder udesen
Tue Mar 25, 2025 7:47 am
Forum: RPG IV
Topic: XML-SAX failed with error code 6
Replies: 3
Views: 91447

XML-SAX failed with error code 6

Yesterday I had an RPG-program where the XML-SAX command failed with error code 6.

After googling what this means, I found out that the cause was a character that couldn't
be converted from UTF-8 to EBCDIC. I think it was the "hat" ^
character that somebody had hit accidently.

This program is ...
by peder udesen
Thu Nov 21, 2024 7:32 am
Forum: HTTPAPI
Topic: BOM at start of IFS stream file
Replies: 4
Views: 38072

Re: BOM at start of IFS stream file

Depending on the version of the operating system the problem is that the file has the wrong CCSID.
I assume it is 1252 ( Windows character set )

You have to change it to 1208 ( UTF-8 )
CHGATR OBJ('myFile.xml') ATR(*CCSID) VALUE(1208)
by peder udesen
Fri Nov 08, 2024 8:01 am
Forum: HTTPAPI
Topic: Object is too large to process
Replies: 10
Views: 70180

Re: Object is too large to process

If the file is greater than 2GB then you have to add O_LARGEFILE to the open flags

You can read more about it here:
https://www.ibm.com/docs/en/i/7.2?topic=ssw_ibm_i_72/apis/open.html

In the IFSIO_H copy source it is defined like this:

* 00100000000000000000000000000000 Large file access ...