Search found 6 matches

by IBMOLIVIER
Tue Mar 28, 2023 10:16 am
Forum: HTTPAPI
Topic: Retrieval of log file information
Replies: 1
Views: 2737

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...
by IBMOLIVIER
Wed Dec 07, 2022 2:40 pm
Forum: HTTPAPI
Topic: FOPEN(
Replies: 12
Views: 11566

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

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, could...
by IBMOLIVIER
Tue Dec 06, 2022 9:05 am
Forum: HTTPAPI
Topic: FOPEN(
Replies: 12
Views: 11566

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 pa...
by IBMOLIVIER
Mon Dec 05, 2022 9:30 am
Forum: HTTPAPI
Topic: FOPEN(
Replies: 12
Views: 11566

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
by IBMOLIVIER
Fri Dec 02, 2022 2:44 pm
Forum: HTTPAPI
Topic: FOPEN(
Replies: 12
Views: 11566

FOPEN(

Hello I would need help FD = FOPEN(%TRIM(IFSFILE) : O_WRONLY + O_CREAT + O_TRUNC + O_TEXTDATA + O_INHERITMODE + O_CCSID : 0 : 1208 : 1208); If (Fd < 0); FClose(Fd); Else; Bytesread = FRead(Fd:%addr(Dataread):%size(DataRead)); Data = %Subst(DataRead:1:Bytesread); Fclose(fd); CdeRetour = *Blanks; Endi...