Difference between revisions of "Source file"
From MidrangeWiki
MrDolomite (talk | contribs) m (→Record length) |
MrDolomite (talk | contribs) m (→Hints & Tips: added DDS LF src) |
||
Line 14: | Line 14: | ||
==Hints & Tips== | ==Hints & Tips== | ||
QSYS/QADBXREF, the IBM-supplied system cross reference physical file, can be filtered to create a list of just source files. | QSYS/QADBXREF, the IBM-supplied system cross reference physical file, can be filtered to create a list of just source files. | ||
− | + | ===WRKQRY record selection=== | |
<pre> | <pre> | ||
AND/OR Field Test Value | AND/OR Field Test Value | ||
DBXATR EQ 'PF' | DBXATR EQ 'PF' | ||
AND DBXTYP EQ 'S' | AND DBXTYP EQ 'S' | ||
+ | </pre> | ||
+ | |||
+ | ===Logical file=== | ||
+ | <pre> | ||
+ | .....A..........T.Name++++++.Len++TDpB......Functions+++++++++++ | ||
+ | *************** Beginning of data ****************************** | ||
+ | A R SRCFMT PFILE(QSYS/QADBXREF) | ||
+ | A DBXLIB | ||
+ | A DBXFIL | ||
+ | A DBXATR | ||
+ | A DBXTYP | ||
+ | A DBXTXT | ||
+ | A* KEYS | ||
+ | A K DBXLIB | ||
+ | A K DBXFIL | ||
+ | A* | ||
+ | A* RECORD SELECTION | ||
+ | A S DBXATR CMP(EQ 'PF') | ||
+ | A DBXTYP CMP(EQ 'S') | ||
+ | ****************** End of data ********************************* | ||
</pre> | </pre> | ||
{{stub}} | {{stub}} |
Revision as of 19:42, 7 November 2006
Source file is a type of physical file which contains additional fields to contain source code. It is created with the CRTSRCPF command.
Record length
- OPM source is 92 bytes
- Sequence number field is 6 bytes
- Date field is 6 bytes
- Source statement field is 80 bytes
- ILE source is 112 bytes
- Sequence number field is 6 bytes
- Date field is 6 bytes
- Source statement field is 100 bytes
Hints & Tips
QSYS/QADBXREF, the IBM-supplied system cross reference physical file, can be filtered to create a list of just source files.
WRKQRY record selection
AND/OR Field Test Value DBXATR EQ 'PF' AND DBXTYP EQ 'S'
Logical file
.....A..........T.Name++++++.Len++TDpB......Functions+++++++++++ *************** Beginning of data ****************************** A R SRCFMT PFILE(QSYS/QADBXREF) A DBXLIB A DBXFIL A DBXATR A DBXTYP A DBXTXT A* KEYS A K DBXLIB A K DBXFIL A* A* RECORD SELECTION A S DBXATR CMP(EQ 'PF') A DBXTYP CMP(EQ 'S') ****************** End of data *********************************
This article is a stub. You can help by editing it.