|
From: Booth Martin <booth@xxxxxxxxxxxx>
To: Web Enabling the AS400 / iSeries <web400@xxxxxxxxxxxx>
Date: 11/05/2018 10:02 PM
Subject: [WEB400] CNVRTTMP.RPGLE has no xml or json -
Sent by: "WEB400" <web400-bounces@xxxxxxxxxxxx>
All the documentation I find about web services talks about SOAP and
REST and XML & JSON. Yet the IBM-supplied example CNVRTTMP.RPGLE is
just a regular program. What am I not understanding?
*********************************************************************
d ConvertTemp pr
*****************************************
d tempIn 10 const
d tempOut 10
*****************************************
p ConvertTemp b export
*****************************************
d ConvertTemp pi
d tempIn 10 const
d tempOut 10
*****************************************
d tempI s 8P 2
d tempO s 8P 2
d value S 50A
/free
value = %STR(%ADDR(tempIn));
tempI=%DEC(value:7:2);
tempO = (5/9)*(tempI - 32);
value = %CHAR(tempO);
tempOut = value;
%STR(%ADDR(tempOut):10)=tempOut;
/end-free
p ConvertTemp e
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.