Search found 29 matches

by peder udesen
Mon Oct 20, 2025 6:50 am
Forum: General
Topic: Reorganize spool file numbers in a job
Replies: 2
Views: 16694

Re: Reorganize spool file numbers in a job

Originally the program was part of an application that was run interactively.
Then it was changed to also be run in batch.
At that time the batch job was shut down every saturday when the backup was taken.

And now the backup process has changed so nothing is shut down any more but runs 24x7.
The ...
by peder udesen
Fri Oct 17, 2025 9:14 am
Forum: General
Topic: Reorganize spool file numbers in a job
Replies: 2
Views: 16694

Reorganize spool file numbers in a job

I have an interesting little problem.

A job is running 24x7 and is generating spool files -- a lot of spool files.
The spool files are deleted after some time but the entry is still reserved.

That means that the spool file number increases over time and in about 3 months it will reach 9999 entries ...
by peder udesen
Mon Sep 29, 2025 7:05 am
Forum: RPG IV
Topic: Detect CLRPFM action from other job
Replies: 2
Views: 47437

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: 56632

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: 41283

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: 41283

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: 56632

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: 106120

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: 106120

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: 106120

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