z390 Portable Mainframe Assembler and Emulator

z390 COBOL Portable Assembler
Support v1.4.01b

Automated Software Tools Corporation
z390 COBOL Portable Assembler Support provides open source utilities and support modules required to generate z390 assembler source programs from mainframe COBOL compiler assembler list output option.  The generated z390 assembler source programs can then be assembled, linked, and executed along with other mainframe assembler programs on any z390 supported platform including Windows and Linux.  This capability can be used as an educational aide for those interested in learning how the assembler code generated from COBOL code works, plus it can be used for unit testing and benchmarking alternative coding methods.  There is an option to select a range of COBOL lines to be executed.  See specific COBOL version support below for details:
z390 COBOL Portable Assembler Support by type: COBOL References:

z390 Enterprise COBOL Portable Assembler Support

The z390 Enterprise COBOL portable assembler support consists for the following components:

  1. cobol\PAECGEN.MLC - z390 utility to read COBOL generated assembler list txt file via DDNAME=SYSUT1 and  produced z390 assembler source program MLC file via DDNAME=SYSUT2.

  2. cobol\PAECGEN.BAT - command to generate, assemble, link, and execute portable assembler program with optional SYSPARM(nn:mm) to specify starting COBOL line number nn and ending line number mm.

  3. cobol\PAECINT.MLC/OBJ - statically linked interface module included with each generated program.

  4. cobol\PAECLINT.CPY - copybook with shared DSECT's

  5. cobol\PAECLIB.MLC/390 - dynamically loaded support module used by all generated programs.  Currently the following COBOL verb generated library call functions are supported::

    1. DISPLAY

    2. STOP RUN

    3. (Sample programs with requests for additional support welcome)

  6. cobol\paec - subdirectory with sample program and command files

    1. ECDEMO1.TXT - sample hello world program txt file (waiting for permission from user to include)

    2. ECDEMO1.BAT - command with SYSPARM(51:52) to execute just the DISPLAY and STOP RUN lines.

    3. ECDEMO1.LOG - sample output from generated "Hello World" demo program.

z390 COBOL for OS/390 and VM Portable Assembler Support

The z390 COBOL for OS/390 and VM portable assembler support consists for the following components:

  1. cobol\PAOSGEN.MLC - z390 utility to read COBOL generated assembler list txt file via DDNAME=SYSUT1 and  produced z390 assembler source program MLC file via DDNAME=SYSUT2.

  2. cobol\PAOSGEN.BAT - command to generate, assemble, link, and execute portable assembler program with optional SYSPARM(nn:mm) to specify starting COBOL line number nn and ending line number mm.

  3. cobol\PAOSINT.MLC/OBJ - statically linked interface module included with each generated program.

  4. cobol\PAOSLINT.CPY - copybook with shared DSECT's

  5. cobol\PAOSLIB.MLC/390 - dynamically loaded support module used by all generated programs.  Currently the following COBOL verb generated library call functions are supported in addition to inline code::

    1. DISPLAY

    2. STOP RUN

    3. (Sample programs with requests for additional library function support welcome)

  6. cobol\paos - subdirectory with sample program and command files

    1. OSDEMO1.TXT - sample program found on the Internet

    2. OSDEMO1.BAT - command with SYSPARM(510:515) to execute just the DISPLAY "What to do now" and STOP RUN lines.

The command cobol\paos\OSDEMO1 will read cobol\paos\OSDEMO1.TXT file and generate the following output files:

  1. cobol\paos\OSDEMO1.MLC - generated assembler source program

  2. cobol\paos\OSDEMO1.PRN - assembler listing with any translation errors

  3. cobol\paos\OSDEMO1.OBJ - mainframe compatible assembler object module

  4. cobol\paos\OSDEMO1.LST - linker listing with any unresolved reference errors

  5. cobol\paos\OSDEMO1.390 - z390 executable load module (only if no errors above)

  6. cobol\paos\OSDEMO1.LOG - z390 execution log with any execution errors

  7. cobol\paos\OSDEMO1.TRE - optional detail instruction trace if you add option TRACE to command

 

IBM, CICS, ESA, MQ Series, MQM, MVS, OS/390, VSAM, z9, z10, and z/OS are registered trademarks
 of International Business Machines Corporation

This page last updated Saturday April 26, 2008.   Webmaster  Sitemap
Copyright 2005 Automated Software Tools Corporation