16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

as<br />

-o objectfile<br />

Specifies the name of the object file. If the name specified is a PDS or<br />

z/<strong>OS</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> directory name, a default file name is created<br />

in the PDS or z/<strong>OS</strong> <strong>UNIX</strong> directory specified as follows:<br />

v If the source file is a sequential data set, the second last part of the data<br />

set name will be used. If the data set name only contains one part after<br />

the high-level qualifier, then the last part will be used.<br />

v If the source file is a PDS member, the member name will be used.<br />

v If the source file is a z/<strong>OS</strong> <strong>UNIX</strong> file, the suffix will be removed if<br />

applicable.<br />

v If the object file is going into a PDS, the first eight characters of the<br />

name will be used. If there is a dot, anything after the first dot will be<br />

removed.<br />

v If the object file is going into a z/<strong>OS</strong> <strong>UNIX</strong> directory, .o will be appended<br />

to the name.<br />

For example:<br />

Source file: //’abc.hello.source’<br />

Ouput file in PDS: HELLO<br />

Output file in <strong>UNIX</strong> directory: hello.o<br />

Source file: //’ABC.HELLO’<br />

Ouput file in PDS: HELLO<br />

Output file in <strong>UNIX</strong> directory: HELLO.o<br />

Source file: //SOURCE(hello)<br />

Ouput file in PDS: HELLO<br />

Output file in <strong>UNIX</strong> directory: hello.o<br />

Source file: /abc/hello.s<br />

Ouput file in PDS: HELLO<br />

Output file in <strong>UNIX</strong> directory: hello.o<br />

Source file: /abc/hellothere.s<br />

Ouput file in PDS: HELLOTHE<br />

Output file in <strong>UNIX</strong> directory: hellothere.o<br />

-v Writes the version of the as command to stderr.<br />

--[no]gdwarf3[=file]<br />

Instructs the assembler to generate debug information conforming to the<br />

DWARF Version 3 format. Debugging tools (for example, dbx) can take<br />

advantage of this debug information. You can optionally specify the name of<br />

the output debug file. The file name of the output debug file must be a PDS<br />

member, a sequential data set or z/<strong>OS</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> file; it cannot<br />

be a PDS directory or z/<strong>OS</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> file system directory<br />

name. If you do not specify a file name, the default name is created as<br />

follows:<br />

20 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference<br />

v If you are compiling a data set, the as command uses the source file<br />

name to form the name of the output data set. The high-level qualifier is<br />

replaced with the userid under which the as command is running, and<br />

.DBG is appended as the low-level qualifier. For example, if TS12345 is<br />

compiling TSMYID.MYSOURCE(src) with the -g option, the produced<br />

debug file name will be TS12345.MYSOURCE.DBG(src).<br />

v If you are compiling a z/<strong>OS</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> file, the as command<br />

stores the debug information in a file that has the name of the source file<br />

with a .dbg extension. For example, if you are compiling src.a with the<br />

-g option, the produced debug file name will be src.dbg.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!