Problem copying a node to a stream file
Posted: Tue Jun 14, 2022 12:51 pm
I'm using this code to copy the top node to a stream file:
I'm not getting a stream file. errMsg is blank.
I know it's not null, because this code is working:
It's falling through the rest of the code.
Code: Select all
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
VALUES(CURRENT TIMESTAMP,
'Copy Error',
errMsg);
endif;
I know it's not null, because this code is working:
Code: Select all
nodeq = YAJL_object_find(docNode: 'shipment');
if nodeQ <> *null;