Data Language Interface: Difference between revisions

Content deleted Content added
m <source lang="cobolfree" inline>
m change source to syntaxhighlight
Line 11:
For all languages except [[PL/I]], the first parameter in a call is the ''Function Code''{{snd}} a four character field, examples being: “<code>GU&nbsp;&nbsp;</code>” (Get Unique), “<code>GN&nbsp;&nbsp;</code>” (Get Next), “<code>REPL</code>” (Replace), and “<code>ISRT</code>” (Insert). With PL/I, due to the way this language does not mark the last parameter with a '1' in bit 0, the first parameter must instead be a fullword (Fixed Bin(31)) containing the number of following parameters.
 
A typical call from a [[COBOL]] program might be <sourcesyntaxhighlight lang="cobolfree" inline>CALL “CBLTDLI” USING GU, Stores-Database-PCB, Stores-Segment-Area, Stores-Root-SSA</sourcesyntaxhighlight>. The program would then automatically wait till the requested data was retrieved and placed in the Segment-Area. The status code contained within the PCB would be updated with either blanks (if all went well) or some informational or error code.
 
A typical call from a PL/I program might be <sourcesyntaxhighlight lang="cobolfree" inline>CALL PLITDLI(FOUR, GU, Stores-Database-PCB, Stores-Segment-Area, Stores-Root-SSA);</sourcesyntaxhighlight>.
 
==References==