Search found 11 matches

by IBMOLIVIER
Thu Sep 12, 2024 1:23 pm
Forum: General
Topic: Call a web page
Replies: 7
Views: 30106

Re: Call a web page

it's work
tks Scott
by IBMOLIVIER
Wed Sep 11, 2024 12:51 pm
Forum: General
Topic: Call a web page
Replies: 7
Views: 30106

Re: Call a web page

With the following command lines, I was able to open a web browser, except that a DOS window opens first. Maybe you have something else to suggest to me. Here is my code:

STRPCO
MONMSG MSGID(CPF0000)
STRPCCMD PCCMD('start https://www.Google.ca/.')
by IBMOLIVIER
Wed Sep 11, 2024 7:03 am
Forum: General
Topic: Call a web page
Replies: 7
Views: 30106

Re: Call a web page

Hello Scott, no, I don't expect the web page to work in the emulator.
I want the emulator to open a web browser.
Yes, it's the IBM 5250 emulator from Client Access, it's on Windows.
by IBMOLIVIER
Tue Sep 10, 2024 3:43 pm
Forum: General
Topic: Call a web page
Replies: 7
Views: 30106

Re: Call a web page

What I mean is opening a web page via the AS400.
For example, I am on the AS400 in a screen, I press F5, and the web page https://www.scottklement.com/forums/pos ... eply&t=528 opens.
by IBMOLIVIER
Tue Sep 10, 2024 3:16 pm
Forum: General
Topic: Call a web page
Replies: 7
Views: 30106

Call a web page

Hello everyone, I don't know where to post my question.
My question is the following: Can I call a web page via an AS400 program, for example when I use a function key like F5? If yes, how? Could you provide an example of code, please?
by IBMOLIVIER
Tue Mar 28, 2023 10:16 am
Forum: HTTPAPI
Topic: Retrieval of log file information
Replies: 1
Views: 6737

Retrieval of log file information

Hello, in the Log file how to retrieve this message in my program ?

{"utilisateurID":["Unexpected character encountered while parsing value: }. Path 'utilisateurID', line 1, position 288.","Unexpected end when deserializing object. Path 'utilisateurID', line 1, position 5000."]}
comm_blockread ...
by IBMOLIVIER
Wed Dec 07, 2022 2:40 pm
Forum: HTTPAPI
Topic: FOPEN(
Replies: 12
Views: 35931

Re: FOPEN(

I used this solution and it works great

data-into putapiwms_err
%DATA(%TRIM(IFSFILE)
:'DOC=FILE case=convert allowmissing=yes +
allowextra=yes trim=none countprefix=num_')
%PARSER('YAJLINTO');

Thank you for your help
it's very much appreciated
by IBMOLIVIER
Wed Dec 07, 2022 8:15 am
Forum: HTTPAPI
Topic: FOPEN(
Replies: 12
Views: 35931

Re: FOPEN(

Thanks jonboy for the advice
So I removed O_CREAT and O_WRONLY
I still have -1 when I come back from the IFSFILE OPEN
You were asking me this question ...
“Why are you not just jetting DATA-INTO read the file for you? “

I must use the OPEN function before making a DATA_INTO ?? right ??
If not ...
by IBMOLIVIER
Tue Dec 06, 2022 9:05 am
Forum: HTTPAPI
Topic: FOPEN(
Replies: 12
Views: 35931

Re: FOPEN(

Hello, I can not recover the contents of this Json file

{"statut":"Error","evenementId":"4b0cfac1-377c-44e8-86f5-e6013725c465","validationResultats":[{"message":"L'evenement de stock ne permet pas de créer un lot car il ne contient pas d'Article","logLevel":"Error"}]}


The code :

dcl-ds ...
by IBMOLIVIER
Mon Dec 05, 2022 9:30 am
Forum: HTTPAPI
Topic: FOPEN(
Replies: 12
Views: 35931

Re: FOPEN(

Hello, first of all my apologies for the confusion

Indeed, it is the Open and Read function
It's a program I copied

Thank you for your reply

I'm going to do a test