Iron Spring PL/I 0.9.10d Sample Programs

This is a brief description of the sample files distributed with Iron Spring PL/I Version 0.9.10d. The samples are distributed free of any licenses or restrictions. Unless otherwise indicated all sample programs will compile and run on Linux and OS/2.

filedump.pliProgram to dump a ENV(VARLS) file in hex and characters.
vfile.datSample input for filedump
hanoi.pli"Towers of Hanoi" batch version.
hexdump.pliCallable procedure to print a hex/character dump of a selected area of memory.
libver.pliProgram to display the current version of the PL/I library.
numwrd.pliCommand-line program to print a number in words.
print_listing.pliSample program to print a PL/I compiler listing on a PCL printer.
readu.pliExample of reading a file declared with ENVIRONMENT(U).
samples.htmlThis file.
sorttest.pliProcedure to test PLISRTD
sort.datTest data for sorttest
task.pliExample of PL/I multitasking. The OS/2 version runs in a VIO window, the Linux version must run in a Linux console, not an xterm.
keysamp.pliSample program to create and read a KEYED file
 
Linux only samples
spawn.pliProcedure to FORK and EXEC a child process.
spawntest.pliTest program for spawn.
loadsamp.pliSample program to load an ISAM file.
Sample creates two files DIREC.I and DIREC.D in the samples directory.
loadsamp.datSample data for loadsamp.
updtsamp.pliSample program to update an ISAM file.
updtsamp.datSample data for updtsamp.
Makefile.isamMakefile to compile and run ISAM sample programs].
Makefile.LinuxMakefile to build all Linux PL/I sample programs.
 
OS/2 only samples
filefind.pliOS/2 program to locate the directory entry for a file.
pmhanoi.pli"Towers of Hanoi" as an OS/2 presentation manager program.
sample.defOS/2 module definition file used for all sample programs except pmhanoi.
pm.defOS/2 module definition file used for the pmhanoi sample program.
bse.incsome PL/I declarations for OS/2 system calls. Additions always welcomed.
 
Makefiles and miscellaneous
LC_make, LCC_make, SA_makeSample makefiles for Linux giving examples of compiling and linking a PL/I program. LC_make links the compiled program with libc, but uses PL/I's malloc and free. LCC_make links with libc and uses libc's malloc and free. SA_make links a PL/I program without libc.
Makefile.OS2DLLMakefile to build all OS/2 PL/I sample programs using the PL/I runtime DLL.
Makefile.OS2StaticMakefile to build all OS/2 PL/I sample programs using the statically-linked PL/I runtime.

Iron Spring PL/I version 0.9.10d, 15 Mar 2021.