Use &SYSIN_DSN in a macro definition to obtain the name of the data set from which the assembler is reading the source module.
The local system variable symbol &SYSIN_DSN is assigned a read-only value each time a macro definition is called.
If concatenated data sets are used to provide the source module, &SYSIN_DSN has a value equal to the data set name of the data set that contains the open code source line of the macro call statement, irrespective of the nesting depth of the macro line containing the &SYSIN_DSN reference.
When the assembler runs on the z/OS operating systems, the value of the character string assigned to &SYSIN_DSN is always the value stored in the JFCB for SYSIN.
When the assembler runs on the CMS component of the z/VM operating systems, the value of the character string assigned to &SYSIN_DSN is determined as follows:
| SYSIN Allocated To: | Contents of &SYSIN_DSN: |
|---|---|
| CMS file | The 8-character filename, the 8-character filetype, and the 2-character filemode of the file, each separated by a space |
| Reader | READER |
| Terminal | TERMINAL |
| Labeled tape file | The data set name of the tape file |
| Unlabeled tape file | TAPn, where n is a value from 0 to 9, or A to F. |
When the assembler runs on the z/VSE operating system, the value of the character string assigned to &SYSIN_DSN is determined as follows:
| SYSIPT Assigned To: | Contents of &SYSIN_DSN: |
|---|---|
| Job stream (SYSIPT) | SYSIPT |
| Disk | The file-id |
| Labeled tape file | The file-id of the tape file |
| Unlabeled tape file | SYSIPT |
Examples:
On z/OS, &SYSIN_DSN might be assigned a value such as:
IBMAPC.ASSEMBLE.SOURCE
On CMS, &SYSIN_DSN might be assigned a value such as:
SAMPLE ASSEMBLE A1
[ Top of Page | Previous Page | Next Page | Contents | Index ]