About this task
You might want to create a macro library in
a UNIX directory
to copy code from UNIX systems to z/OS or to copy MVS data sets to
UNIX files.
Before you begin: For more information
on utilities for copying files, see z/OS DFSMSdfp Utilities.
Perform
the following steps to create a macro library in a UNIX directory:
- Use IEBGENER to copy from a PDS or PDSE member to
a UNIX
file. (You also can use TSO/E commands and other copying utilities
such as ICEGENER or BPXCOPY to copy a PDS or PDSE member to a UNIX
file.) In this example, the data set in SYSUT1 is a PDS or PDSE member
and the data set in SYSUT2 is a UNIX file. This job creates a macro
library in the UNIX directory.
// EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=PROJ.BIGPROG.MACLIB(MAC1),DISP=SHR
//SYSUT2 DD PATH='/u/BIGPROG/macros/special/MAC1',PATHOPTS=OCREAT,
// PATHDISP=(KEEP,DELETE), Normal and abnormal dispositions
// PATHMODE=(SIRUSR,SIWUSR, Owner can read and write file
// SIRGRP,SIROTH) Everyone else can read file
// FILEDATA=TEXT Remove trailing blanks
//SYSIN DD DUMMY
Tip: The assembler requires
the macro file name to be all capitals. Other programs such as a compiler
might not require the filename to be all capitals.
_______________________________________________________________
- Code other DD statements to copy additional
PDS or PDSE
members to UNIX files. You also can copy an entire PDS, PDSE, or UNIX
directory to a new UNIX directory.
_______________________________________________________________
- Use the macro library to browse
or copy additional files.
In the following example, the system macro library, SYS1.MACLIB,
is concatenated with a UNIX directory that contains macros that were
copied from elsewhere.
// EXEC PGM=ASMA90 High-level assembler
//SYSPRINT DD SYSOUT=*
//SYSLIB DD DSN=SYS1.MACLIB,DISP=SHR
// DD PATH='/u/BIGPROG/macros/special',PATHOPTS=ORDONLY,
// FILEDATA=TEXT Recognize line delimiters
. . . (other DD statements)
_______________________________________________________________