Search found 16 matches

by vhamberg
Fri Jul 19, 2024 2:44 pm
Forum: General
Topic: How to get job details which is there in QSYSOPR
Replies: 16
Views: 7167

Re: How to get job details which is there in QSYSOPR

Welcome to the IBM i. It seems you might be new to the system. I am not sure what you mean when you say a job is "...in QSYSOPR...". QSYSOPR is a user profile or it is a message queue. I will assume you mean the message queue. And you must mean there is a message about a job in the QSYSOPR...
by vhamberg
Fri Jun 21, 2024 3:45 pm
Forum: General
Topic: PL/i to RPG or Java ?
Replies: 2
Views: 2362

Re: PL/i to RPG or Java ?

Hello I think it depends on the kind of applications you have in PL/I, as well as which database you are using. Is this on IBM i? Are they business applications? If that is the case, I suggest RPG is better, since it is native on IBM i, and it is designed to work directly with the relational databas...
by vhamberg
Fri May 03, 2024 10:28 pm
Forum: CL
Topic: Prototype CL subprocedure in a service program
Replies: 2
Views: 10839

Re: Prototype CL subprocedure in a service program

Every CLLE module has exactly one procedure, named the same as the module name. I have never done this but have to think that dcl-pr would include EXTPROC with the name of the module (same as its procedure) in it. When you create a CLLE module, do a DSPMOD and look at what its procedure exports are ...
by vhamberg
Sun Apr 21, 2024 11:34 am
Forum: RPG IV
Topic: MCH3601 unmonitored by HTTPAPIR4
Replies: 7
Views: 12884

Re: MCH3601 unmonitored by HTTPAPIR4

What is the message text? And if you have the job log, it would help to see the messages that come before the MCH3601.
by vhamberg
Tue Jan 23, 2024 4:38 pm
Forum: General
Topic: copy file txt
Replies: 3
Views: 7500

Re: copy file txt

We need to know more about what you want to do. Where is the txt file you want to copy? On the IBM i or on a Windows computer? (I assume you are using Windows.) What is the character encoding (a number on IBM i called CCSID) of the txt file? Is it Unicode (UTF-8)? Or is it ASCII? If it is ASCII, whi...
by vhamberg
Tue Oct 10, 2023 11:09 am
Forum: General
Topic: QUSRJOBI Returns Invalid Internal Job ID
Replies: 1
Views: 11595

Re: QUSRJOBI Returns Invalid Internal Job ID

Hi Mike

Please send in more details - what are you getting, and what do you expect it to be? Internal job ID is a 16-character value, not the same as the job/user/number we see externally.

Cheers
Vern
by vhamberg
Tue Jul 18, 2023 11:14 am
Forum: FTPAPI
Topic: 550 The semaphore timeout period has expired
Replies: 7
Views: 30710

Re: 550 The semaphore timeout period has expired

Correction to my post - the ftp variable is the connection - but you can get the error message if the result of calling ftp_get is less than 0.
by vhamberg
Tue Jul 18, 2023 11:11 am
Forum: FTPAPI
Topic: 550 The semaphore timeout period has expired
Replies: 7
Views: 30710

Re: 550 The semaphore timeout period has expired

As I recall, functions in FTP_API return error information - ftp_get certainly does. This is an example from EX3GET - if ftp_get(ftp: 'fips.exe': '/fips.exe') < 0 The parameter ftp has the code, and you can get the message. So I would use that parameter to catch the error. Hope this helps with your ...
by vhamberg
Thu Apr 13, 2023 6:22 pm
Forum: General
Topic: Printing from IBM i with Images
Replies: 3
Views: 9663

Re: Printing from IBM i with Images

One way of printing images is to use the AFPRSC keyword in the PRTF - your PRTF has to be *AFPDS type. You should be able to find documentation and examples for it pretty easily.
by vhamberg
Wed Mar 29, 2023 4:29 pm
Forum: HTTPAPI
Topic: Cant get HTTPAPI to work
Replies: 5
Views: 5601

Re: Cant get HTTPAPI to work

This sounds like a library list problem - you need to find how to set the library list in MIWorkplace for compilations. We don't use it here, so I don't know where to look.

Anyhow, welcome to the wonderful world of RPGLE!

Vern