If a C METAL application is compiled with the xlc utility, and then call the
as utility to
assemble the assembler file. How do I pass the associated data file produced by
the
as utility to the DSECT utility?
The SYSADATA file that is required by the DSECT utility can
be either a PDS member, a PDSE member, or a sequential file (hereinafter called
the MVS file), but cannot be a z/OS UNIX System Services file. Therefore, when
you invoke the
as utility with –gadata option, you need to specify an MVS file
name.
To pass the associated data file produced by the
as utility to the DSECT
utility, take the following steps:
1. Compile the C metal program with –S and –qmetal options, the compiler then
generates a.s file.
xlc -S –qmetal a.c
2. Assemble a.s by using the
as utility with –gadata option. You need to
specify an MVS file name for the
as utility to generate associated data file
'HLQ.ADATA'.
as -gadata="//'HLQ.ADATA'" a.s
3. Invoke the DSECT utility using the following sample JCL:
//DSECT EXEC PGM=CCNEDSCT
//SYSADATA DD DSN=HLQ.ADATA,DISP=SHARE
//EDCDSECT DD SYSOUT=*