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