|
Is this line actually in your file?es
************Principio de datos*************
Brian May
Director
Pre-Sales and Customer Solutions
Profound Logic Software
http://www.profoundlogic.com [1]
937-439-7925 Phone
877-224-7768 Toll Free
More than UI Modernization
Have 10 mins? Take our 2020 survey for a chance to win.
www.profoundlogic.com [1]
-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of raul
Sent: Thursday, April 2, 2020 12:51 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Cc: Jon Paris <jon.paris@xxxxxxxxxxxxxx>
Subject: Re: help with Data-into
the DS is after the data, I used the YAJL, but I changed some sizes and put all in lower case. I just copied the beginning.
The operation is: data-into operation
%DATA('/abc/resp': 'doc=file case=any allowmissing=yes') %PARSER( 'YAJLINTO');
The begining of "/abc/resp" is:
************Principio de datos*************
{ "operation":
{ "token": "b7f3e28f165e5b63e4fa6ea4989a5677",
"shop_process_id": 13563033, "response": "S",
"response_details": "Procesado Satisfactoriamente",
The operation DS is:
dcl-ds operation qualified;
token char(32) inz('');
shop_process_id packed(15) inz(0);
response char(1) inz('');
response_details varchar(60) inz('');
amount packed(15: 2) inz(0); currency char(3) inz('');
The program fails in the first data. What am I doing wrong?
El 02-04-2020 13:42, Jon Paris escribió:
We need to see your DS Raul - can;'t tell a thing without it. Did you use the YAJL utility to generate the DS? On Apr 2, 2020, at 1:09 PM, raul <raul@xxxxxxxxxx> wrote: Trying my first program to receive a "post" from the credit card process. I stored the response in the IFS and tried to parse it, But I get an error: Sorry the spanish ID de mensaje . . . . : RNX0356 Gravedad . . . . . . . : 50 Tipo de mensaje . . . : Escape Fecha envío . . . . . : 02/04/20 Hora envío . . . . . . : 12:57:40 Mensaje . . . . : El documento de la operación DATA-INTO no coincide con la variable RPG; el código de razón es 5. Causa . . . . . : Al analizar un documento para la operación DATA-INTO, el analizador ha descubierto que el documento no se corresponde con la variable RPG "operation" y las opciones no lo permiten. El código de razón es 5. El subcampo exacto para el que se detectó el error es "operation." Las opciones son "doc=file case=any allowmissing=yes". El nombre del documento
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.