From cd5b91a051b6511e27df097140d56092f1d09518 Mon Sep 17 00:00:00 2001
From: Gundepalli Sravani <88590399+sravani1510@users.noreply.github.com>
Date: Thu, 17 Oct 2024 22:37:23 +0530
Subject: [PATCH 1/2] doc: add xml service for programcall
---
docs/ProgramCall.rst | 96 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 96 insertions(+)
diff --git a/docs/ProgramCall.rst b/docs/ProgramCall.rst
index 1eca1523..8d577e76 100644
--- a/docs/ProgramCall.rst
+++ b/docs/ProgramCall.rst
@@ -28,3 +28,99 @@ Retrieve the Return Value From a Service Program
.. literalinclude:: examples/cosine.js
:language: javascript
+
+Data types XMLSERVICE
+^^^^^^^^^^^^^^^^^^^^^
+
+.. list-table::
+ :header-rows: 1
+ :widths: 15 30 30 15
+
+ * - C types
+ - RPG types
+ - XMLSERVICE types
+ - SQL types
+ * - int8/byte
+ - D myint8 3i 0
+ - ````
+ - TINYINT (unsupported DB2)
+ * - int16/short
+ - D myint16 5i 0 (4b 0)
+ - ````
+ - SMALLINT
+ * - int32/int
+ - D myint32 10i 0 (9b 0)
+ - ````
+ - INTEGER
+ * - int64/longlong
+ - D myint64 20i 0
+ - ````
+ - BIGINT
+ * - uint8/ubyte
+ - D myuint8 3u 0
+ - ````
+ -
+ * - uint16/ushort
+ - D myuint16 5u 0
+ - ````
+ -
+ * - uint32/uint
+ - D myuint32 10u 0
+ - ````
+ -
+ * - uint64/ulonglong
+ - D myuint64 20u 0
+ - ````
+ -
+ * - char
+ - D mychar 32a
+ - ````
+ - CHAR(32)
+ * - varchar2
+ - D myvchar2 32a varying
+ - ````
+ - VARCHAR(32)
+ * - varchar4
+ - D myvchar4 32a varying(4)
+ - ````
+ -
+ * - packed
+ - D mydec 12p 2
+ - ````
+ - DECIMAL(12,2)
+ * - zoned
+ - D myzone 12s 2
+ - ````
+ - NUMERIC(12,2)
+ * - float
+ - D myfloat 4f
+ - ````
+ - FLOAT
+ * - real/double
+ - D myreal 8f
+ - ````
+ - DOUBLE
+ * - binary
+ - D mybin (any)
+ - ``F1F2F3``
+ - BINARY
+ * - hole (no out)
+ - D myhole (any)
+ - ````
+ -
+ * - boolean
+ - D mybool 1n
+ - ````
+ - CHAR(4)
+ * - time
+ - D mytime T timfmt(*iso)
+ - ``09.45.29``
+ - TIME
+ * - timestamp
+ - D mystamp Z
+ - ``2011-12-29-12.45.29.000000``
+ - TIMESTAMP
+ * - date
+ - D mydate D datfmt(*iso)
+ - ``2009-05-11``
+ - DATE
\ No newline at end of file
From 8c1c1904d0d28f1dd305345ea1142897f0f398c6 Mon Sep 17 00:00:00 2001
From: Gundepalli Sravani <88590399+sravani1510@users.noreply.github.com>
Date: Thu, 17 Oct 2024 22:45:07 +0530
Subject: [PATCH 2/2] fixup! doc: add xml service for programcall
---
docs/ProgramCall.rst | 35 ++++++++++++++++++-----------------
1 file changed, 18 insertions(+), 17 deletions(-)
diff --git a/docs/ProgramCall.rst b/docs/ProgramCall.rst
index 8d577e76..b59f972f 100644
--- a/docs/ProgramCall.rst
+++ b/docs/ProgramCall.rst
@@ -13,22 +13,6 @@ ProgramCall API
.. autofunction:: returnConfig
.. autofunction:: data
-Examples
-^^^^^^^^
-
-Call the QUSROBJD Program
-"""""""""""""""""""""""""
-
-.. literalinclude:: examples/qusrobjd.js
- :language: javascript
-
-Retrieve the Return Value From a Service Program
-""""""""""""""""""""""""""""""""""""""""""""""""
-
-.. literalinclude:: examples/cosine.js
- :language: javascript
-
-
Data types XMLSERVICE
^^^^^^^^^^^^^^^^^^^^^
@@ -123,4 +107,21 @@ Data types XMLSERVICE
* - date
- D mydate D datfmt(*iso)
- ``2009-05-11``
- - DATE
\ No newline at end of file
+ - DATE
+
+Examples
+^^^^^^^^
+
+Call the QUSROBJD Program
+"""""""""""""""""""""""""
+
+.. literalinclude:: examples/qusrobjd.js
+ :language: javascript
+
+Retrieve the Return Value From a Service Program
+""""""""""""""""""""""""""""""""""""""""""""""""
+
+.. literalinclude:: examples/cosine.js
+ :language: javascript
+
+