Search found 23 matches

by imaxeman69
Tue Jun 14, 2022 12:56 pm
Forum: YAJL-ILE
Topic: Problem copying a node to a stream file
Replies: 7
Views: 2791

Re: Problem copying a node to a stream file

Sorry, this is where docNode comes from:

Code: Select all

           docNode = yajl_stdin_load_tree(UTF8encoded : errMsg);

by imaxeman69
Tue Jun 14, 2022 12:51 pm
Forum: YAJL-ILE
Topic: Problem copying a node to a stream file
Replies: 7
Views: 2791

Problem copying a node to a stream file

I'm using this code to copy the top node to a stream file: if docNode <> *null; inboundFile = '/P44/Inbound/P44ShipmentUpdate_' + %char(%date():*iso0) + '_' + %char(%time():*hms0) + '.json'; yajl_save_string_stmf(docNode: inboundFile: errMsg); if errMsg <> *blanks; EXEC SQL INSERT INTO Wserlgfl VALU...
by imaxeman69
Thu May 05, 2022 6:33 pm
Forum: YAJL-ILE
Topic: Error on yajl_copyBufStr
Replies: 4
Views: 2427

Re: Error on yajl_copyBufStr

Thanks Scott.
by imaxeman69
Thu May 05, 2022 5:23 pm
Forum: YAJL-ILE
Topic: Error on yajl_copyBufStr
Replies: 4
Views: 2427

Re: Error on yajl_copyBufStr

So I just decided to do a yajl_saveBuf. The system will be single threaded so there is no chance on other processes stomping on this. If I need to, I can always use a temp file. Does yajl_saveBuf hold a lock on the IFS file? Here is the layout: Program A calls a sub-procedure in a service program to...
by imaxeman69
Thu Apr 28, 2022 12:15 pm
Forum: YAJL-ILE
Topic: Error on yajl_copyBufStr
Replies: 4
Views: 2427

Error on yajl_copyBufStr

I'm getting the following error after executing this code: output = yajl_copyBufStr(); Automatic storage overflow. Function check. MCH4429 unmonitored by OWSSRVPGM at statement 0000000638, instruction X'0000'. The output is defined as varchar(2000000); I am getting valid JSON because I'm doing a YAJ...
by imaxeman69
Fri Apr 22, 2022 3:25 pm
Forum: Other ScottKlement.com Tools
Topic: HMAC Hash Code
Replies: 9
Views: 13988

Re: HMAC Hash Code

I believe it could be. Thank you.
by imaxeman69
Fri Apr 22, 2022 11:41 am
Forum: Other ScottKlement.com Tools
Topic: HMAC Hash Code
Replies: 9
Views: 13988

Re: HMAC Hash Code

Ok, the Hash Code is calculating properly, thanks to Jonboy, but, needs to be Base 64 encoded. I'm using Mr. Klement's Base64R4. Postman is using CryptoJS.enc.Base64.stringify() to encode the hash string. The results are different. Is this an EBCDIC vs ASCII thing?
by imaxeman69
Thu Apr 21, 2022 5:38 pm
Forum: Other ScottKlement.com Tools
Topic: HMAC Hash Code
Replies: 9
Views: 13988

Re: HMAC Hash Code

Ah, I see. Ok. Thanks allot. I know what I did wrong.
by imaxeman69
Thu Apr 21, 2022 5:04 pm
Forum: Other ScottKlement.com Tools
Topic: HMAC Hash Code
Replies: 9
Views: 13988

Re: HMAC Hash Code

Which fields in the program did you actually change to the provided values?
by imaxeman69
Thu Apr 21, 2022 3:59 pm
Forum: Other ScottKlement.com Tools
Topic: HMAC Hash Code
Replies: 9
Views: 13988

Re: HMAC Hash Code

Thanks Scott, Here is the URL from which I got the code: https://www.ibm.com/support/pages/qc3calculatehmac-api-example Here is the dataToHash:/feed/catrequest?app_id=3fc84179&TIMESTAMP=2022-04-21T14:29:01Z Here is the secret key (Salt): 6ea4d3eb30a63c11bfe93161411d99ac (this is test, not a prob...