<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.webhuis.nl:443/index.php?action=history&amp;feed=atom&amp;title=Pgcobol.cbsql</id>
	<title>Pgcobol.cbsql - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.webhuis.nl:443/index.php?action=history&amp;feed=atom&amp;title=Pgcobol.cbsql"/>
	<link rel="alternate" type="text/html" href="https://wiki.webhuis.nl:443/index.php?title=Pgcobol.cbsql&amp;action=history"/>
	<updated>2026-09-02T20:14:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://wiki.webhuis.nl:443/index.php?title=Pgcobol.cbsql&amp;diff=4629&amp;oldid=prev</id>
		<title>Martin at 21:46, 7 November 2025</title>
		<link rel="alternate" type="text/html" href="https://wiki.webhuis.nl:443/index.php?title=Pgcobol.cbsql&amp;diff=4629&amp;oldid=prev"/>
		<updated>2025-11-07T21:46:12Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:46, 7 November 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 33:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 33:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       01 DATASRC PIC X(64) value&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       01 DATASRC PIC X(64) value&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      *   &quot;pgsql://10.68.171.50:5432&quot;.&lt;/div&gt;&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-added&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      *   &quot;pgsql://10.68.171.50:5432/cobol_gixsql&quot;.&lt;/div&gt;&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-added&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          &quot;pgsql://localhost:5432/cobol_gixsql&quot;.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;          &quot;pgsql://localhost:5432/cobol_gixsql&quot;.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       01 DBUSR     PIC X(64)  value &quot;gix_user&quot;.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       01 DBUSR     PIC X(64)  value &quot;gix_user&quot;.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 542:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 540:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;           MOVE &#039;CONNECT&#039; TO CUR-STEP.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;           MOVE &#039;CONNECT&#039; TO CUR-STEP.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GIXSQL*    EXEC SQL&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GIXSQL*    EXEC SQL&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GIXSQL*       CONNECT :DBUSR IDENTIFIED BY :DBPWD USING :DATASRC&lt;/div&gt;&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-added&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GIXSQL*       CONNECT TO :DATASRC AS cobol_sql USER :DBUSR USING :DBPWD&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GIXSQL*       CONNECT TO :DATASRC AS cobol_sql USER :DBUSR USING :DBPWD&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GIXSQL*       CONNECT TO &quot;pgsql://localhost:5432/cobol_gixsql&quot;&lt;/div&gt;&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-added&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GIXSQL*                USER :DBUSR USING :DBPWD&lt;/div&gt;&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-added&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GIXSQL*    END-EXEC.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GIXSQL*    END-EXEC.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GIXSQL     CALL STATIC &quot;GIXSQLConnect&quot; USING&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GIXSQL     CALL STATIC &quot;GIXSQLConnect&quot; USING&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;!-- diff cache key mediawiki-mediawiki-:diff:wikidiff2:1.12:old-4626:rev-4629:1.13.0 --&gt;
&lt;/table&gt;</summary>
		<author><name>Martin</name></author>
	</entry>
	<entry>
		<id>https://wiki.webhuis.nl:443/index.php?title=Pgcobol.cbsql&amp;diff=4626&amp;oldid=prev</id>
		<title>Martin at 21:37, 7 November 2025</title>
		<link rel="alternate" type="text/html" href="https://wiki.webhuis.nl:443/index.php?title=Pgcobol.cbsql&amp;diff=4626&amp;oldid=prev"/>
		<updated>2025-11-07T21:37:22Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:37, 7 November 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 544:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 544:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GIXSQL*       CONNECT :DBUSR IDENTIFIED BY :DBPWD USING :DATASRC&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GIXSQL*       CONNECT :DBUSR IDENTIFIED BY :DBPWD USING :DATASRC&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GIXSQL*       CONNECT TO :DATASRC AS cobol_sql USER :DBUSR USING :DBPWD&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GIXSQL*       CONNECT TO :DATASRC AS cobol_sql USER :DBUSR USING :DBPWD&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GIXSQL*       CONNECT TO &quot;pgsql://&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;10.68.171.50&lt;/del&gt;:5432/cobol_gixsql&quot;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GIXSQL*       CONNECT TO &quot;pgsql://&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;localhost&lt;/ins&gt;:5432/cobol_gixsql&quot;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GIXSQL*                USER :DBUSR USING :DBPWD&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GIXSQL*                USER :DBUSR USING :DBPWD&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GIXSQL*    END-EXEC.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;GIXSQL*    END-EXEC.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;!-- diff cache key mediawiki-mediawiki-:diff:wikidiff2:1.12:old-4596:rev-4626:1.13.0 --&gt;
&lt;/table&gt;</summary>
		<author><name>Martin</name></author>
	</entry>
	<entry>
		<id>https://wiki.webhuis.nl:443/index.php?title=Pgcobol.cbsql&amp;diff=4596&amp;oldid=prev</id>
		<title>Martin at 16:22, 7 November 2025</title>
		<link rel="alternate" type="text/html" href="https://wiki.webhuis.nl:443/index.php?title=Pgcobol.cbsql&amp;diff=4596&amp;oldid=prev"/>
		<updated>2025-11-07T16:22:34Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:22, 7 November 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 34:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 34:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       01 DATASRC PIC X(64) value&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       01 DATASRC PIC X(64) value&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      *   &quot;pgsql://10.68.171.50:5432&quot;.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      *   &quot;pgsql://10.68.171.50:5432&quot;.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/del&gt;   &quot;pgsql://10.68.171.50:5432/cobol_gixsql&quot;.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;*&lt;/ins&gt;   &quot;pgsql://10.68.171.50:5432/cobol_gixsql&quot;.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;*&lt;/del&gt;   &quot;pgsql://localhost:5432/cobol_gixsql&quot;.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/ins&gt;   &quot;pgsql://localhost:5432/cobol_gixsql&quot;.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       01 DBUSR     PIC X(64)  value &quot;gix_user&quot;.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       01 DBUSR     PIC X(64)  value &quot;gix_user&quot;.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       01 DBPWD     PIC X(64)  value &quot;gix_user&quot;.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       01 DBPWD     PIC X(64)  value &quot;gix_user&quot;.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Martin</name></author>
	</entry>
	<entry>
		<id>https://wiki.webhuis.nl:443/index.php?title=Pgcobol.cbsql&amp;diff=4591&amp;oldid=prev</id>
		<title>Martin at 16:12, 7 November 2025</title>
		<link rel="alternate" type="text/html" href="https://wiki.webhuis.nl:443/index.php?title=Pgcobol.cbsql&amp;diff=4591&amp;oldid=prev"/>
		<updated>2025-11-07T16:12:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:12, 7 November 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= GixSQL precompilation =&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The gixsql precompiler precesses the raw cobol file containing the high level SQL statements and translates them into cobol calls.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       IDENTIFICATION DIVISION.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       IDENTIFICATION DIVISION.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Martin</name></author>
	</entry>
	<entry>
		<id>https://wiki.webhuis.nl:443/index.php?title=Pgcobol.cbsql&amp;diff=4590&amp;oldid=prev</id>
		<title>Martin: Created page with &quot;&lt;pre&gt;        IDENTIFICATION DIVISION.         PROGRAM-ID. pgcobol.          ENVIRONMENT DIVISION.         CONFIGURATION SECTION.        source-computer. Linux-laptop.        o...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.webhuis.nl:443/index.php?title=Pgcobol.cbsql&amp;diff=4590&amp;oldid=prev"/>
		<updated>2025-11-07T16:11:02Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt;        IDENTIFICATION DIVISION.         PROGRAM-ID. pgcobol.          ENVIRONMENT DIVISION.         CONFIGURATION SECTION.        source-computer. Linux-laptop.        o...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
       IDENTIFICATION DIVISION.&lt;br /&gt;
&lt;br /&gt;
       PROGRAM-ID. pgcobol.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
       ENVIRONMENT DIVISION.&lt;br /&gt;
&lt;br /&gt;
       CONFIGURATION SECTION.&lt;br /&gt;
       source-computer. Linux-laptop.&lt;br /&gt;
       object-computer. Linux-laptop.&lt;br /&gt;
       special-names.&lt;br /&gt;
           console is scherm.&lt;br /&gt;
&lt;br /&gt;
       SOURCE-COMPUTER. IBM-AT.&lt;br /&gt;
       OBJECT-COMPUTER. IBM-AT.&lt;br /&gt;
&lt;br /&gt;
       INPUT-OUTPUT SECTION.&lt;br /&gt;
       FILE-CONTROL.&lt;br /&gt;
         select fprinter assign to &amp;quot;pgcobol.prt&amp;quot;;&lt;br /&gt;
         ORGANIZATION LINE SEQUENTIAL.&lt;br /&gt;
       DATA DIVISION.&lt;br /&gt;
&lt;br /&gt;
       FILE SECTION.&lt;br /&gt;
       FD fprinter.&lt;br /&gt;
       01 file-buffer PIC X(242).&lt;br /&gt;
       WORKING-STORAGE SECTION.&lt;br /&gt;
&lt;br /&gt;
      *   copy &amp;#039;SQLCA.cpy&amp;#039;.&lt;br /&gt;
      *   copy &amp;#039;EMPREC.cpy&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
       01 DATASRC PIC X(64) value&lt;br /&gt;
      *   &amp;quot;pgsql://10.68.171.50:5432&amp;quot;.&lt;br /&gt;
          &amp;quot;pgsql://10.68.171.50:5432/cobol_gixsql&amp;quot;.&lt;br /&gt;
      *   &amp;quot;pgsql://localhost:5432/cobol_gixsql&amp;quot;.&lt;br /&gt;
       01 DBUSR     PIC X(64)  value &amp;quot;gix_user&amp;quot;.&lt;br /&gt;
       01 DBPWD     PIC X(64)  value &amp;quot;gix_user&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
       01 CUR-STEP    PIC X(16).&lt;br /&gt;
       01 empcount    PIC 9(5).&lt;br /&gt;
       01 employee-record.&lt;br /&gt;
           03 r-ENO PIC S9(4) COMP.&lt;br /&gt;
           03 r-LNAME PIC X(10).&lt;br /&gt;
           03 r-FNAME PIC X(10).&lt;br /&gt;
           03 r-STREET PIC X(20).&lt;br /&gt;
           03 r-CITY PIC X(15).&lt;br /&gt;
           03 r-ST PIC XX.&lt;br /&gt;
           03 r-ZIP PIC X(5).&lt;br /&gt;
           03 r-DEPT PIC X(4).&lt;br /&gt;
      *    03 a-PAYRATE PIC S9(13)V99 COMP-3 VALUE 0.&lt;br /&gt;
           03 r-PAYRATE PIC S9(13)V99 COMP-3 VALUE 0.&lt;br /&gt;
           03 r-COM PIC S9V99 COMP-3.&lt;br /&gt;
           03 r-MISCDATA PIC X(132).&lt;br /&gt;
           03 r-DNUM1 PIC S99V99 COMP-3.&lt;br /&gt;
           03 r-DNUM2 PIC S99V99 COMP-3.&lt;br /&gt;
           03 r-DNUM3 PIC S99V99 COMP-3.&lt;br /&gt;
&lt;br /&gt;
       01 employee-row.&lt;br /&gt;
           03 p-ENO PIC z(3)9.&lt;br /&gt;
           03 filler pic x value space.&lt;br /&gt;
           03 p-LNAME PIC X(10).&lt;br /&gt;
           03 filler pic x value space.&lt;br /&gt;
           03 p-FNAME PIC X(10).&lt;br /&gt;
           03 filler pic x value space.&lt;br /&gt;
           03 p-STREET PIC X(20).&lt;br /&gt;
           03 filler pic x value space.&lt;br /&gt;
           03 p-CITY PIC X(15).&lt;br /&gt;
           03 filler pic x value space.&lt;br /&gt;
           03 p-ST PIC XX.&lt;br /&gt;
           03 filler pic x value space.&lt;br /&gt;
           03 p-ZIP PIC X(5).&lt;br /&gt;
           03 filler pic x value space.&lt;br /&gt;
           03 p-DEPT PIC X(4).&lt;br /&gt;
           03 filler pic x value space.&lt;br /&gt;
           03 p-PAYRATE PIC z(12)9.99.&lt;br /&gt;
           03 filler pic x value space.&lt;br /&gt;
           03 p-COM PIC 9v99.&lt;br /&gt;
           03 filler pic x value space.&lt;br /&gt;
           03 p-DNUM1 PIC z9.99.&lt;br /&gt;
           03 filler pic x value space.&lt;br /&gt;
           03 p-DNUM2 PIC z9.99.&lt;br /&gt;
           03 filler pic x value space.&lt;br /&gt;
           03 p-DNUM3 PIC z9.99.&lt;br /&gt;
           03 filler pic x value space.&lt;br /&gt;
           03 p-miscdata-text pic X(128).&lt;br /&gt;
&lt;br /&gt;
       01 employee-header.&lt;br /&gt;
           03 h-ENO pic x(5) value &amp;#039;Eno&amp;#039;.&lt;br /&gt;
           03 h-LNAME PIC X(11) value &amp;#039;Lname&amp;#039;.&lt;br /&gt;
           03 h-FNAME PIC X(11) value &amp;#039;Fname&amp;#039;.&lt;br /&gt;
           03 h-STREET PIC X(21) value space.&lt;br /&gt;
           03 h-CITY PIC X(16) value &amp;#039;City&amp;#039;.&lt;br /&gt;
           03 h-ST PIC X(3) value &amp;#039;ST&amp;#039;.&lt;br /&gt;
           03 h-ZIP PIC X(6) value &amp;#039;zip&amp;#039;.&lt;br /&gt;
           03 h-DEPT PIC X(5) value &amp;#039;Dept&amp;#039;.&lt;br /&gt;
           03 h-PAYRATE PIC x(17) value &amp;#039;Payrate&amp;#039;.&lt;br /&gt;
           03 h-COM PIC x(4) value &amp;#039;Com&amp;#039;.&lt;br /&gt;
           03 h-DNUM1 PIC x(6) value &amp;#039;Dnum1&amp;#039;.&lt;br /&gt;
           03 h-DNUM2 PIC x(6) value &amp;#039;Dnum1&amp;#039;.&lt;br /&gt;
           03 h-DNUM3 PIC x(6) value &amp;#039;Dnum1&amp;#039;.&lt;br /&gt;
           03 h-miscdata-text pic X(128) value &amp;#039;Misc data&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
       01 employee-page.&lt;br /&gt;
           03 filler pic x(118) value &amp;#039;Employee overview&amp;#039;.&lt;br /&gt;
           03 filler pic x(10) value &amp;#039;page&amp;#039;.&lt;br /&gt;
           03 f-page-number PIC z(3)9.&lt;br /&gt;
&lt;br /&gt;
      *01 MISCDATA PIC X(132).&lt;br /&gt;
&lt;br /&gt;
       01 miscdata-group.&lt;br /&gt;
           49 miscdata-len pic 9(8) comp-5.&lt;br /&gt;
           49 miscdata-text pic X(128).&lt;br /&gt;
&lt;br /&gt;
       01 IDX              PIC 9(2).&lt;br /&gt;
       01 print-buffer     PIC X(242).&lt;br /&gt;
       01 line-number      PIC 99 value 99.&lt;br /&gt;
       01 page-number      PIC 9999 value zero.&lt;br /&gt;
&lt;br /&gt;
       01 TMPNUM          PIC 9(4).&lt;br /&gt;
&lt;br /&gt;
GIXSQL*EXEC SQL&lt;br /&gt;
GIXSQL*    INCLUDE employee-table&lt;br /&gt;
GIXSQL*END-EXEC.&lt;br /&gt;
           COPY employee-table.&lt;br /&gt;
&lt;br /&gt;
GIXSQL*EXEC SQL&lt;br /&gt;
GIXSQL*    INCLUDE SQLCA&lt;br /&gt;
GIXSQL*END-EXEC.&lt;br /&gt;
           COPY SQLCA.&lt;br /&gt;
&lt;br /&gt;
GIXSQL*EXEC SQL AT cobol_sql&lt;br /&gt;
GIXSQL*    DECLARE employeecursor CURSOR FOR&lt;br /&gt;
GIXSQL*      SELECT * FROM emptable&lt;br /&gt;
GIXSQL*END-EXEC.&lt;br /&gt;
&lt;br /&gt;
GIXSQL 01  SQ0001.&lt;br /&gt;
GIXSQL     02  FILLER PIC X(0022) VALUE &amp;quot;SELECT * FROM emptable&amp;quot;.&lt;br /&gt;
GIXSQL     02  FILLER PIC X(1) VALUE X&amp;quot;00&amp;quot;.&lt;br /&gt;
GIXSQL 01  SQ0002.&lt;br /&gt;
GIXSQL     02  FILLER PIC X(0031) VALUE &amp;quot;SELECT COUNT( * ) FROM emptab&amp;quot;&lt;br /&gt;
GIXSQL  &amp;amp;  &amp;quot;le&amp;quot;.&lt;br /&gt;
GIXSQL     02  FILLER PIC X(1) VALUE X&amp;quot;00&amp;quot;.&lt;br /&gt;
GIXSQL 01  SQ0003.&lt;br /&gt;
GIXSQL     02  FILLER PIC X(0017) VALUE &amp;quot;START TRANSACTION&amp;quot;.&lt;br /&gt;
GIXSQL     02  FILLER PIC X(1) VALUE X&amp;quot;00&amp;quot;.&lt;br /&gt;
GIXSQL*   ESQL CURSOR INIT FLAGS (START)&lt;br /&gt;
GIXSQL 01  GIXSQL-CI-F-pgcobol-employeecursor PIC X.&lt;br /&gt;
GIXSQL*   ESQL CURSOR INIT FLAGS (END)&lt;br /&gt;
       PROCEDURE DIVISION.&lt;br /&gt;
&lt;br /&gt;
       r00-main.&lt;br /&gt;
&lt;br /&gt;
           perform r90-init.&lt;br /&gt;
           perform r80-verwerk.&lt;br /&gt;
           perform r99-exit.&lt;br /&gt;
&lt;br /&gt;
       r80-verwerk.&lt;br /&gt;
&lt;br /&gt;
GIXSQL*    EXEC SQL AT cobol_sql&lt;br /&gt;
GIXSQL*        SELECT COUNT(*) INTO :empcount FROM emptable&lt;br /&gt;
GIXSQL*    END-EXEC.&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLStartSQL&amp;quot;&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLSetResultParams&amp;quot; USING&lt;br /&gt;
GIXSQL         BY VALUE 1&lt;br /&gt;
GIXSQL         BY VALUE 5&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY REFERENCE empcount&lt;br /&gt;
GIXSQL         BY REFERENCE 0&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLExecSelectIntoOne&amp;quot; USING&lt;br /&gt;
GIXSQL         BY REFERENCE SQLCA&lt;br /&gt;
GIXSQL         BY REFERENCE &amp;quot;cobol_sql&amp;quot; &amp;amp; x&amp;quot;00&amp;quot;&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY REFERENCE SQ0002&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY VALUE 1&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLEndSQL&amp;quot;&lt;br /&gt;
GIXSQL     END-CALL.&lt;br /&gt;
&lt;br /&gt;
           display &amp;quot;Rijen in emptable&amp;quot; upon scherm.&lt;br /&gt;
           display empcount upon scherm.&lt;br /&gt;
&lt;br /&gt;
           perform r81-init-cursor.&lt;br /&gt;
&lt;br /&gt;
           perform r85-verwerk-employee until&lt;br /&gt;
                   SQLCODE &amp;lt; 0 or SQLCODE = 100&lt;br /&gt;
&lt;br /&gt;
           perform r89-close-cursor.&lt;br /&gt;
&lt;br /&gt;
       r81-init-cursor.&lt;br /&gt;
&lt;br /&gt;
GIXSQL*    EXEC SQL AT cobol_sql START TRANSACTION END-EXEC.&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLStartSQL&amp;quot;&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLExec&amp;quot; USING&lt;br /&gt;
GIXSQL         BY REFERENCE SQLCA&lt;br /&gt;
GIXSQL         BY REFERENCE &amp;quot;cobol_sql&amp;quot; &amp;amp; x&amp;quot;00&amp;quot;&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY REFERENCE SQ0003&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLEndSQL&amp;quot;&lt;br /&gt;
GIXSQL     END-CALL.&lt;br /&gt;
           display &amp;quot;start transaction&amp;quot; upon scherm.&lt;br /&gt;
           display SQLCODE upon scherm.&lt;br /&gt;
&lt;br /&gt;
GIXSQL*    EXEC SQL OPEN employeecursor END-EXEC.&lt;br /&gt;
GIXSQL     IF GIXSQL-CI-F-pgcobol-employeecursor = &amp;#039; &amp;#039; THEN&lt;br /&gt;
GIXSQL         PERFORM GIXSQL-CI-P-pgcobol-employeecursor&lt;br /&gt;
GIXSQL         IF SQLCODE = 0&lt;br /&gt;
GIXSQL           MOVE &amp;#039;X&amp;#039; TO GIXSQL-CI-F-pgcobol-employeecursor&lt;br /&gt;
GIXSQL         END-IF&lt;br /&gt;
GIXSQL     END-IF&lt;br /&gt;
GIXSQL     IF GIXSQL-CI-F-pgcobol-employeecursor = &amp;#039;X&amp;#039; THEN&lt;br /&gt;
GIXSQL         CALL STATIC &amp;quot;GIXSQLCursorOpen&amp;quot; USING&lt;br /&gt;
GIXSQL             BY REFERENCE SQLCA&lt;br /&gt;
GIXSQL             BY REFERENCE &amp;quot;pgcobol_employeecursor&amp;quot; &amp;amp; x&amp;quot;00&amp;quot;&lt;br /&gt;
GIXSQL         END-CALL&lt;br /&gt;
GIXSQL     END-IF.&lt;br /&gt;
&lt;br /&gt;
           display &amp;quot;open cursor&amp;quot; upon scherm.&lt;br /&gt;
           display SQLCODE upon scherm.&lt;br /&gt;
&lt;br /&gt;
GIXSQL*    EXEC SQL FETCH employeecursor INTO :employee-table END-EXEC.&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLStartSQL&amp;quot;&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLSetResultParams&amp;quot; USING&lt;br /&gt;
GIXSQL         BY VALUE 23&lt;br /&gt;
GIXSQL         BY VALUE 4&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY VALUE 256&lt;br /&gt;
GIXSQL         BY REFERENCE ENO&lt;br /&gt;
GIXSQL         BY REFERENCE 0&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLSetResultParams&amp;quot; USING&lt;br /&gt;
GIXSQL         BY VALUE 16&lt;br /&gt;
GIXSQL         BY VALUE 10&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY REFERENCE LNAME&lt;br /&gt;
GIXSQL         BY REFERENCE 0&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLSetResultParams&amp;quot; USING&lt;br /&gt;
GIXSQL         BY VALUE 16&lt;br /&gt;
GIXSQL         BY VALUE 10&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY REFERENCE FNAME&lt;br /&gt;
GIXSQL         BY REFERENCE 0&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLSetResultParams&amp;quot; USING&lt;br /&gt;
GIXSQL         BY VALUE 16&lt;br /&gt;
GIXSQL         BY VALUE 20&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY REFERENCE STREET&lt;br /&gt;
GIXSQL         BY REFERENCE 0&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLSetResultParams&amp;quot; USING&lt;br /&gt;
GIXSQL         BY VALUE 16&lt;br /&gt;
GIXSQL         BY VALUE 15&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY REFERENCE CITY&lt;br /&gt;
GIXSQL         BY REFERENCE 0&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLSetResultParams&amp;quot; USING&lt;br /&gt;
GIXSQL         BY VALUE 16&lt;br /&gt;
GIXSQL         BY VALUE 2&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY REFERENCE ST&lt;br /&gt;
GIXSQL         BY REFERENCE 0&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLSetResultParams&amp;quot; USING&lt;br /&gt;
GIXSQL         BY VALUE 16&lt;br /&gt;
GIXSQL         BY VALUE 5&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY REFERENCE ZIP&lt;br /&gt;
GIXSQL         BY REFERENCE 0&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLSetResultParams&amp;quot; USING&lt;br /&gt;
GIXSQL         BY VALUE 16&lt;br /&gt;
GIXSQL         BY VALUE 4&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY REFERENCE DEPT&lt;br /&gt;
GIXSQL         BY REFERENCE 0&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLSetResultParams&amp;quot; USING&lt;br /&gt;
GIXSQL         BY VALUE 9&lt;br /&gt;
GIXSQL         BY VALUE 15&lt;br /&gt;
GIXSQL         BY VALUE -2&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY REFERENCE PAYRATE&lt;br /&gt;
GIXSQL         BY REFERENCE 0&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLSetResultParams&amp;quot; USING&lt;br /&gt;
GIXSQL         BY VALUE 9&lt;br /&gt;
GIXSQL         BY VALUE 3&lt;br /&gt;
GIXSQL         BY VALUE -2&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY REFERENCE COM&lt;br /&gt;
GIXSQL         BY REFERENCE 0&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLSetResultParams&amp;quot; USING&lt;br /&gt;
GIXSQL         BY VALUE 16&lt;br /&gt;
GIXSQL         BY VALUE 132&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY REFERENCE MISCDATA&lt;br /&gt;
GIXSQL         BY REFERENCE 0&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLSetResultParams&amp;quot; USING&lt;br /&gt;
GIXSQL         BY VALUE 9&lt;br /&gt;
GIXSQL         BY VALUE 4&lt;br /&gt;
GIXSQL         BY VALUE -2&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY REFERENCE DNUM1&lt;br /&gt;
GIXSQL         BY REFERENCE 0&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLSetResultParams&amp;quot; USING&lt;br /&gt;
GIXSQL         BY VALUE 9&lt;br /&gt;
GIXSQL         BY VALUE 4&lt;br /&gt;
GIXSQL         BY VALUE -2&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY REFERENCE DNUM2&lt;br /&gt;
GIXSQL         BY REFERENCE 0&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLSetResultParams&amp;quot; USING&lt;br /&gt;
GIXSQL         BY VALUE 9&lt;br /&gt;
GIXSQL         BY VALUE 4&lt;br /&gt;
GIXSQL         BY VALUE -2&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY REFERENCE DNUM3&lt;br /&gt;
GIXSQL         BY REFERENCE 0&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLCursorFetchOne&amp;quot; USING&lt;br /&gt;
GIXSQL         BY REFERENCE SQLCA&lt;br /&gt;
GIXSQL         BY REFERENCE &amp;quot;pgcobol_employeecursor&amp;quot; &amp;amp; x&amp;quot;00&amp;quot;&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLEndSQL&amp;quot;&lt;br /&gt;
GIXSQL     END-CALL.&lt;br /&gt;
&lt;br /&gt;
           display &amp;quot;fetch cursor&amp;quot; upon scherm.&lt;br /&gt;
           display SQLCODE upon scherm.&lt;br /&gt;
&lt;br /&gt;
       r85-verwerk-employee.&lt;br /&gt;
&lt;br /&gt;
           move ENO to r-ENO.&lt;br /&gt;
           move LNAME to r-LNAME.&lt;br /&gt;
           move FNAME to r-FNAME.&lt;br /&gt;
           move STREET to r-STREET.&lt;br /&gt;
           move CITY to r-CITY.&lt;br /&gt;
           move ST to r-ST.&lt;br /&gt;
           move ZIP to r-ZIP.&lt;br /&gt;
           move DEPT to r-DEPT.&lt;br /&gt;
           move PAYRATE to r-PAYRATE.&lt;br /&gt;
           move COM to r-COM.&lt;br /&gt;
           move DNUM1 to r-DNUM1.&lt;br /&gt;
           move DNUM2 to r-DNUM2.&lt;br /&gt;
           move DNUM3 to r-DNUM3.&lt;br /&gt;
           move MISCDATA to miscdata-group.&lt;br /&gt;
      *    move miscdata-len to r-miscdata-len.&lt;br /&gt;
      *    move miscdata-text to r-miscdata-text.&lt;br /&gt;
&lt;br /&gt;
           move r-ENO to p-ENO.&lt;br /&gt;
           move r-LNAME to p-LNAME.&lt;br /&gt;
           move r-FNAME to p-FNAME.&lt;br /&gt;
           move r-STREET to p-STREET.&lt;br /&gt;
           move r-CITY to p-CITY.&lt;br /&gt;
           move r-ST to p-ST.&lt;br /&gt;
           move r-ZIP to p-ZIP.&lt;br /&gt;
           move r-DEPT to p-DEPT.&lt;br /&gt;
           move r-PAYRATE to p-PAYRATE.&lt;br /&gt;
           move r-COM to p-COM.&lt;br /&gt;
           move r-DNUM1 to p-DNUM1.&lt;br /&gt;
           move r-DNUM2 to p-DNUM2.&lt;br /&gt;
           move r-DNUM3 to p-DNUM3.&lt;br /&gt;
           move miscdata-text to p-miscdata-text.&lt;br /&gt;
&lt;br /&gt;
           display employee-row upon scherm.&lt;br /&gt;
           perform p00-print.&lt;br /&gt;
&lt;br /&gt;
GIXSQL*    EXEC SQL FETCH employeecursor INTO :employee-table END-EXEC.&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLStartSQL&amp;quot;&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLSetResultParams&amp;quot; USING&lt;br /&gt;
GIXSQL         BY VALUE 23&lt;br /&gt;
GIXSQL         BY VALUE 4&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY VALUE 256&lt;br /&gt;
GIXSQL         BY REFERENCE ENO&lt;br /&gt;
GIXSQL         BY REFERENCE 0&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLSetResultParams&amp;quot; USING&lt;br /&gt;
GIXSQL         BY VALUE 16&lt;br /&gt;
GIXSQL         BY VALUE 10&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY REFERENCE LNAME&lt;br /&gt;
GIXSQL         BY REFERENCE 0&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLSetResultParams&amp;quot; USING&lt;br /&gt;
GIXSQL         BY VALUE 16&lt;br /&gt;
GIXSQL         BY VALUE 10&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY REFERENCE FNAME&lt;br /&gt;
GIXSQL         BY REFERENCE 0&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLSetResultParams&amp;quot; USING&lt;br /&gt;
GIXSQL         BY VALUE 16&lt;br /&gt;
GIXSQL         BY VALUE 20&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY REFERENCE STREET&lt;br /&gt;
GIXSQL         BY REFERENCE 0&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLSetResultParams&amp;quot; USING&lt;br /&gt;
GIXSQL         BY VALUE 16&lt;br /&gt;
GIXSQL         BY VALUE 15&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY REFERENCE CITY&lt;br /&gt;
GIXSQL         BY REFERENCE 0&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLSetResultParams&amp;quot; USING&lt;br /&gt;
GIXSQL         BY VALUE 16&lt;br /&gt;
GIXSQL         BY VALUE 2&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY REFERENCE ST&lt;br /&gt;
GIXSQL         BY REFERENCE 0&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLSetResultParams&amp;quot; USING&lt;br /&gt;
GIXSQL         BY VALUE 16&lt;br /&gt;
GIXSQL         BY VALUE 5&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY REFERENCE ZIP&lt;br /&gt;
GIXSQL         BY REFERENCE 0&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLSetResultParams&amp;quot; USING&lt;br /&gt;
GIXSQL         BY VALUE 16&lt;br /&gt;
GIXSQL         BY VALUE 4&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY REFERENCE DEPT&lt;br /&gt;
GIXSQL         BY REFERENCE 0&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLSetResultParams&amp;quot; USING&lt;br /&gt;
GIXSQL         BY VALUE 9&lt;br /&gt;
GIXSQL         BY VALUE 15&lt;br /&gt;
GIXSQL         BY VALUE -2&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY REFERENCE PAYRATE&lt;br /&gt;
GIXSQL         BY REFERENCE 0&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLSetResultParams&amp;quot; USING&lt;br /&gt;
GIXSQL         BY VALUE 9&lt;br /&gt;
GIXSQL         BY VALUE 3&lt;br /&gt;
GIXSQL         BY VALUE -2&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY REFERENCE COM&lt;br /&gt;
GIXSQL         BY REFERENCE 0&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLSetResultParams&amp;quot; USING&lt;br /&gt;
GIXSQL         BY VALUE 16&lt;br /&gt;
GIXSQL         BY VALUE 132&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY REFERENCE MISCDATA&lt;br /&gt;
GIXSQL         BY REFERENCE 0&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLSetResultParams&amp;quot; USING&lt;br /&gt;
GIXSQL         BY VALUE 9&lt;br /&gt;
GIXSQL         BY VALUE 4&lt;br /&gt;
GIXSQL         BY VALUE -2&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY REFERENCE DNUM1&lt;br /&gt;
GIXSQL         BY REFERENCE 0&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLSetResultParams&amp;quot; USING&lt;br /&gt;
GIXSQL         BY VALUE 9&lt;br /&gt;
GIXSQL         BY VALUE 4&lt;br /&gt;
GIXSQL         BY VALUE -2&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY REFERENCE DNUM2&lt;br /&gt;
GIXSQL         BY REFERENCE 0&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLSetResultParams&amp;quot; USING&lt;br /&gt;
GIXSQL         BY VALUE 9&lt;br /&gt;
GIXSQL         BY VALUE 4&lt;br /&gt;
GIXSQL         BY VALUE -2&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY REFERENCE DNUM3&lt;br /&gt;
GIXSQL         BY REFERENCE 0&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLCursorFetchOne&amp;quot; USING&lt;br /&gt;
GIXSQL         BY REFERENCE SQLCA&lt;br /&gt;
GIXSQL         BY REFERENCE &amp;quot;pgcobol_employeecursor&amp;quot; &amp;amp; x&amp;quot;00&amp;quot;&lt;br /&gt;
GIXSQL     END-CALL&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLEndSQL&amp;quot;&lt;br /&gt;
GIXSQL     END-CALL.&lt;br /&gt;
&lt;br /&gt;
           display &amp;quot;fetch cursor&amp;quot; upon scherm.&lt;br /&gt;
           display SQLCODE upon scherm.&lt;br /&gt;
&lt;br /&gt;
       r89-close-cursor.&lt;br /&gt;
&lt;br /&gt;
GIXSQL*    EXEC SQL CLOSE employeecursor END-EXEC.&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLCursorClose&amp;quot; USING&lt;br /&gt;
GIXSQL         BY REFERENCE SQLCA&lt;br /&gt;
GIXSQL         BY REFERENCE &amp;quot;pgcobol_employeecursor&amp;quot; &amp;amp; x&amp;quot;00&amp;quot;&lt;br /&gt;
GIXSQL     END-CALL.&lt;br /&gt;
&lt;br /&gt;
       r90-init.&lt;br /&gt;
           perform s00-connect.&lt;br /&gt;
           open output fprinter.&lt;br /&gt;
&lt;br /&gt;
       r99-exit.&lt;br /&gt;
&lt;br /&gt;
           perform s99-disconnect.&lt;br /&gt;
           close fprinter.&lt;br /&gt;
           perform z99-exit.&lt;br /&gt;
&lt;br /&gt;
       z99-exit.&lt;br /&gt;
&lt;br /&gt;
           stop run.&lt;br /&gt;
&lt;br /&gt;
       s00-connect.&lt;br /&gt;
           display &amp;quot;DATASRC&amp;quot; upon scherm.&lt;br /&gt;
           display &amp;quot;DBUSR&amp;quot; upon scherm.&lt;br /&gt;
           display &amp;quot;DBPWD&amp;quot; upon scherm.&lt;br /&gt;
&lt;br /&gt;
           MOVE &amp;#039;CONNECT&amp;#039; TO CUR-STEP.&lt;br /&gt;
GIXSQL*    EXEC SQL&lt;br /&gt;
GIXSQL*       CONNECT :DBUSR IDENTIFIED BY :DBPWD USING :DATASRC&lt;br /&gt;
GIXSQL*       CONNECT TO :DATASRC AS cobol_sql USER :DBUSR USING :DBPWD&lt;br /&gt;
GIXSQL*       CONNECT TO &amp;quot;pgsql://10.68.171.50:5432/cobol_gixsql&amp;quot;&lt;br /&gt;
GIXSQL*                USER :DBUSR USING :DBPWD&lt;br /&gt;
GIXSQL*    END-EXEC.&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLConnect&amp;quot; USING&lt;br /&gt;
GIXSQL         BY REFERENCE SQLCA&lt;br /&gt;
GIXSQL         BY REFERENCE DATASRC&lt;br /&gt;
GIXSQL         BY VALUE 64&lt;br /&gt;
GIXSQL         BY REFERENCE &amp;quot;cobol_sql&amp;quot; &amp;amp; x&amp;quot;00&amp;quot;&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY REFERENCE x&amp;quot;00&amp;quot;&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY REFERENCE DBUSR&lt;br /&gt;
GIXSQL         BY VALUE 64&lt;br /&gt;
GIXSQL         BY REFERENCE DBPWD&lt;br /&gt;
GIXSQL         BY VALUE 64&lt;br /&gt;
GIXSQL     END-CALL.&lt;br /&gt;
           display &amp;quot;connect to database&amp;quot; upon scherm.&lt;br /&gt;
           display SQLCODE upon scherm.&lt;br /&gt;
&lt;br /&gt;
       s99-disconnect.&lt;br /&gt;
           display &amp;quot;DATASRC&amp;quot; upon scherm.&lt;br /&gt;
           display &amp;quot;DBUSR&amp;quot; upon scherm.&lt;br /&gt;
           display &amp;quot;DBPWD&amp;quot; upon scherm.&lt;br /&gt;
&lt;br /&gt;
           MOVE &amp;#039;DISCONNECT&amp;#039; TO CUR-STEP.&lt;br /&gt;
GIXSQL*    EXEC SQL CONNECT RESET cobol_sql END-EXEC.&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLConnectReset&amp;quot; USING&lt;br /&gt;
GIXSQL         BY REFERENCE SQLCA&lt;br /&gt;
GIXSQL         BY REFERENCE &amp;quot;cobol_sql&amp;quot; &amp;amp; x&amp;quot;00&amp;quot;&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL     END-CALL.&lt;br /&gt;
GIXSQL*    EXEC SQL DISCONNECT cobol_sql END-EXEC.&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLConnectReset&amp;quot; USING&lt;br /&gt;
GIXSQL         BY REFERENCE SQLCA&lt;br /&gt;
GIXSQL         BY REFERENCE &amp;quot;cobol_sql&amp;quot; &amp;amp; x&amp;quot;00&amp;quot;&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL     END-CALL.&lt;br /&gt;
           display &amp;quot;disconnect from database&amp;quot; upon scherm.&lt;br /&gt;
           display SQLCODE upon scherm.&lt;br /&gt;
&lt;br /&gt;
       p00-print.&lt;br /&gt;
           if line-number &amp;gt; 50 then&lt;br /&gt;
             move 1 to line-number &lt;br /&gt;
             add 1 to page-number &lt;br /&gt;
             move page-number to f-page-number&lt;br /&gt;
             move employee-page to print-buffer&lt;br /&gt;
             write file-buffer from print-buffer&lt;br /&gt;
             move employee-header to print-buffer&lt;br /&gt;
             write file-buffer from print-buffer&lt;br /&gt;
             move employee-row to print-buffer&lt;br /&gt;
             write file-buffer from print-buffer&lt;br /&gt;
           else&lt;br /&gt;
             add 1 to page-number &lt;br /&gt;
             move employee-row to print-buffer&lt;br /&gt;
             write file-buffer from print-buffer.&lt;br /&gt;
&lt;br /&gt;
       999-PRG-ERR.&lt;br /&gt;
           display &amp;#039;ERR - &amp;#039; CUR-STEP &amp;#039; : &amp;#039; SQLCODE.&lt;br /&gt;
           display &amp;#039;ERR - &amp;#039; CUR-STEP &amp;#039; : &amp;#039; SQLERRMC(1:SQLERRML).&lt;br /&gt;
           MOVE -1 TO RETURN-CODE.&lt;br /&gt;
GIXSQL*&lt;br /&gt;
GIXSQL*   ESQL CURSOR DECLARATIONS (START)&lt;br /&gt;
GIXSQL     GO TO GIX-SKIP-CRSR-INIT.&lt;br /&gt;
GIXSQL GIXSQL-CI-P-pgcobol-employeecursor.&lt;br /&gt;
GIXSQL     CALL STATIC &amp;quot;GIXSQLCursorDeclare&amp;quot; USING&lt;br /&gt;
GIXSQL         BY REFERENCE SQLCA&lt;br /&gt;
GIXSQL         BY REFERENCE &amp;quot;cobol_sql&amp;quot; &amp;amp; x&amp;quot;00&amp;quot;&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY REFERENCE &amp;quot;pgcobol_employeecursor&amp;quot; &amp;amp; x&amp;quot;00&amp;quot;&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL         BY REFERENCE SQ0001&lt;br /&gt;
GIXSQL         BY VALUE 0&lt;br /&gt;
GIXSQL     END-CALL.&lt;br /&gt;
GIXSQL GIX-SKIP-CRSR-INIT.&lt;br /&gt;
GIXSQL*&lt;br /&gt;
GIXSQL*   ESQL CURSOR DECLARATIONS (END)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;hr/&amp;gt;&lt;br /&gt;
Back to: [[Cobol and PostgreSQL]]&lt;/div&gt;</summary>
		<author><name>Martin</name></author>
	</entry>
</feed>