Required Parameter Group:
Service Program: QTECRTVS
|
The Add View File (QteAddViewFile) API provides a list of files that can be used when describing text for a previously added view. If a file is read more than once (such as a multiple included file), it should be added multiple times. When this file needs to be identified to other APIs, its file index is given, which is an index into the list of files supplied. The first file supplied has an index of zero.
The first file added to a view must be the root file for that view. For example, if a processor produces a source view, where a root file includes other files, the root file must be specified as the first file for the view. This is true even if the file is not the first file to produce view text (which would happen if an include statement is on the first line of the file).
All files for a view must be added at one time, with one call to this API.
Specifies the input variable containing the list of files that make up the specified view text.
The source debugger support does not validate the existence of this file. This validation is done when text from the file is retrieved.
Specifies the number of files that are provided in the file descriptor buffer parameter.
Many files may be described in a single file descriptor buffer. However, each entry must represent a single file, and this parameter must be a count of the number of files provided.
For format FILA0200, the number specifies the number of format entries, each containing seven fields, that are present before the external file names buffer.
Indicates the content and format of the information supplied by the calling program in the file descriptor buffer. The valid values for format name are:
This is the number assigned by the debug support as an output parameter on the Add View Description API, which must be called prior to this API. If a file is used for more than one view, it must be supplied once for each view in which it is used.
The structure in which to return error information. For the format of the structure, see Error Code Parameter.
| Offset | Type | Field | |
|---|---|---|---|
| Dec | Hex | ||
| 0 | 0 | CHAR(10) | AS/400 file name |
| 10 | A | CHAR(10) | AS/400 file library |
| 20 | 14 | CHAR(10) | AS/400 member name |
| Offset | Type | Field | |
|---|---|---|---|
| Dec | Hex | ||
| Note: The first seven fields repeat the number of times specified in the number of entries parameter. | |||
|
|
| BINARY(4) | Offset of file name |
|
|
| BINARY(4) | Length of file name |
|
|
| BINARY(4) | File flag |
|
|
| BINARY(4) | CCSID of file name |
|
|
| CHAR(2) | Country ID of file name |
|
|
| CHAR(3) | Language ID of file name |
|
|
| CHAR(3) | Reserved |
| Note: The following field occurs after the preceding header fields. | |||
|
|
| CHAR(*) | File names buffer |
AS/400 file library. The name of the library that contains the file being listed. It is an AS/400 object name, left-justified, and padded with blanks.
AS/400 file name. The name of the AS/400 file being listed. It is an AS/400 object name, left-justified, and padded with blanks.
AS/400 member name. The name of the member in the file being listed. It is an AS/400 object name, left-justified, and padded with blanks.
CCSID of file name. The CCSID the file name is in. A value of zero indicates to use the CCSID value of the job. A value of 65 535 causes an error message to be sent and the request to be ended.
Country ID of file name. The country ID of the file name. A value of blanks indicates to use the country ID value of the job.
File flag. Whether the file is an AS/400 integrated file system file or an external file (a workstation file not on an AS/400).
File names buffer. The names of external files or AS/400 integrated file system files being listed. The file names are laid out one after another in this buffer. There is a pair of offset and length fields for each file name in this buffer.
Language ID of file name. The language ID of the file name. A value of blanks indicates to use the language ID value of the job.
Length of file name. This is the length in bytes of the external file name in the external file names buffer.
Offset of file name. This offset from the start of the file descriptor buffer specifies the start of an external file name.
Reserved. Reserved for future use.
|
Top
| Debugger APIs
| Source Debugger APIs Source Debugger APIs and Exit Programs | Create View APIs | APIs by category |
| [Information Center Home Page | Feedback ] | [Legal | AS/400 Glossary] |