Sometimes, data as input to a program is included in a DCL procedure. This is referred to as “image data”, since it is usually data to be read from SYS$INPUT by an executable image (program).
In the example, a simple text file is CREATEd from the image data provided. “$ EOD” signals end-of-file in a DCL procedure, just as CTRL+Z does from your terminal keyboard. In most cases, any other command beginning with a dollar sign (“$”) will also signal end-of-file and attempt to execute the command.
Some programs do not respond to EOF as expected. EDT in line mode is one example.