PL/I preprocessor: Difference between revisions

Content deleted Content added
Example: OS/2, not 'doze
Line 68:
 
==Example==
The following example for IBM PL/I for WindowsOS/2 illustrates the use of a preprocessor procedure to implement a C-like write statement for PL/I<ref>{{cite web|last=Sturm|first=Eberhard|title=UIO-Makros für Builtin-Funktionen fileread und filewrite|url=http://www.uni-muenster.de/ZIV.EberhardSturm/uio.cpy|accessdate=January 22, 2012}}</ref> . The procedure would be called by coding the statement <code>uwrite file(''filename'') from(''varying_string'') count(''byte_count'');</code> ''Byte_count'' is optional and defaults to the length of ''varying_string'' if omitted.
<source lang=PLI>
%uwrite: