Language-dependent design considerations

Source modules are provided for the Browse sample in four programming languages.

There are two main differences between the source modules:
  • When testing the parameters passed from the run JCL, the COBOL, PL/I, and assembler-language modules search for the comma character (,). If the JCL passes PARM=(,LOCALQ1), the application attempts to open queue LOCALQ1 on the default queue manager. If there is no name after the comma (or no comma), the application returns an error. The C module does not search for the comma character. If the JCL passes a single parameter (for example, PARM=('LOCALQ1')), the C module uses this as a queue name on the default queue manager.
  • To keep the assembler-language module simple, it uses the date format yy/ddd (for example, 05/116) when it creates the print report. The other modules use the calendar date in mm/dd/yy format.