Requesting z/OS Datasets
The File-AID Data Editor Request dialog for z/OS data sets captures your options for accessing z/OS data sets. You can provide record layouts and specify selection criteria to limit the records and fields you wish to access. You can also establish other display and run options such as Browse mode or Edit mode.
You can save and re-use your request, making it easy to access your data the same way the next time you access this object. Your recently used requests are listed on the Data Editor menu accessed by clicking the toolbar File-AID icon and selecting Data Editor.
Creating a New or Using a Saved Request
To create a new or use a saved request:
At the top of the File-AID Data Editor Request for z/OS data sets dialog, enter a Request Name to create a new request, or select a request name from the request name pull-down list to use an existing request.
You can optionally reassign the request to a different data set. Either type the new data set name in the Dataset field, click Browse to initiate the Dataset Selection dialog to navigate the catalog to find the desired data set, or select a previously used data set from the Dataset pull-down list. To save the request with the new data set name, enter a new Request Name and click Save.
Using Record Layouts
Record Layout Information
Select whether to use record layouts. The Use record layouts checkbox initial state is controlled by a preference. The default is that it is selected and that you will be using Record Layouts to format your z/OS data. When Use record layouts is selected, by default the Single layout radio button is selected. If you wish to use a layout cross reference (XREF) definition to automate layout presentation for files with multiple record types or multiple segments of data per record (segmented records), click the Record layout cross reference (XREF) radio button and go to step 4.
Single Record Layouts
For a Single layout, enter the Layout data set and member, then click the Get Layout button. Optionally you may use the pull-down control to list and select previously entered layouts, or click Browse to initiate the Data set List dialog to navigate the catalog to find the data set or member containing the layout you wish to use with this file.
- Click Browse. The Data set Selection dialog box appears.
- Enter a partial name in the Datasets Name box. You can use the asterisk wildcard. Click List. A list of all data sets that meet the filter requirements appears.
- Select the desired layout data set. If the data set is a PDS, this populates the list of members for this data set.
To refine the list of data sets, use the Sequential icon () or PDS icon (
) (toggle buttons) to include only those types of data sets in the list. The default is for both to be selected when you first open the Dataset Selection dialog box. Clicking each icon the first time deselects that type of file.
Clicking again, reselects that type of file. This updates the dataset list with only the selected type of data set making it easier to search the list for the desired file. - For a selected PDS, click on the desired member name from the member list. Optionally, use the Member Name box to specify a partial member name to reduce the size of the member list. The list is dynamically refreshed with each character you type.
- To verify that you have chosen the correct data set and member, click View. This displays the file for viewing. Click Close to return to the Dataset Selection dialog box.
- After making your selection, click OK. You will return to the z/OS dataset Request window. To confirm that you have properly provided a layout, the Data Editor retrieves and compiles the layout and displays the metadata for the layout in the Fields tab of the selection criteria.
- If your layout has more than one 01 level name, select one from the list. Get Layout is only enabled if you entered the Layout dataset(member) manually. If you used Browse to make your selection, the layout is retrieved and compiled automatically.
Record Layout Cross Reference (XREF)
If you chose the Record layout cross reference (XREF) radio button, enter the XREF Dataset and member. Optionally you may use the pull-down control to select previously entered XREF dataset (member) names from the list, or click Browse to initiate the Dataset Selection dialog to navigate the catalog to find the data set and member containing the XREF you wish to use with this file. You must also fill in the name of the Record layouts PDS. Optionally you may use the pull-down control to select previously entered Record layout PDS names from the list, or use the Browse button to locate the PDS containing the COBOL or PL/I layouts referenced in your XREF.
Edit z/OS Dataset Selection Criteria
Selection criteria determines what portion of the selected z/OS data set becomes available for viewing or editing. You can choose which fields will be displayed and conditions for selecting records. Only records that match your selection criteria will appear in the editor data display.
To edit z/OS dataset selection criteria
Optionally, click on the Fields tab and select the desired fields. The search box near the top can be used to quickly find the desired fields. The fields you select are the only fields that will be viewable when you navigate to the Layout Formatted tab of the Data Editor. By default, all fields are automatically selected.
Optionally, click on the Conditions tab. Records will be chosen based on the conditions selected. You can add conditions or sets. Sets can contain multiple conditions. If you prefer, you can optionally select Use selection criteria data set (member). In this case, enter or search for the desired selection criteria data set and member.
- Under Field, click on <select field>.
If you have provided a single record layout, the Choose Field Mode dialog box appears. From the Choose Field Mode dialog box, select Formatted or Unformatted fields when defining conditions for this set and click OK.- If you selected Formatted, the Select filter field window appears. Click the field name to select the desired field and click OK. You can select only one field. You will return to the File-AID Data Editor Request window.
- Select an Operator from the list (is equal to is the default). Operators are only available for selection after you have selected a field under Column Name. For more information, see z-OS-Selection-Criteria-Operators.
Type a value in the Value column. Not all operators require a value. For more information, see z-OS-Values.
If you selected Unformatted, or if you have not provided a record layout, or if you selected Record layout cross reference (XREF), the User Defined Field window appears.
- Enter a column Location where this user-defined field begins: A number from 1 to 32,767, as long as it is not larger than the maximum record length permitted for this file. If the specified location is beyond the end of a record, the condition is ignored and not used to select records.
Location can also be specified as a relative number. +0 indicates the current location pointer (byte 1 initially). The location pointer is advanced when a prior condition uses the Contains operator and the data is located in the record. Relative locations can be negative as long as the sum of the relative location and the current location pointer is not 0 or less. If a location is zero or negative, the condition is ignored. - Optionally, enter the field Length: Length is generally not required. The length of the Value you enter is used as a default. For the Contains operator, a length of 0 or blank implies “to the end of the record”. For Data Type B (Binary), you must specify a length of 1, 2, or 4. Length is ignored for data type M (Mask) as only one byte (2 hex digits) of value is allowed for this data type. For P (Packed) data types, length is automatically determined based on finding a valid packed field of any length at the specified location. If specified with data type P (Packed), the condition looks for a packed field of the length you provide.
- Select a Data Type: Choices include:
- Any Case Text (T) (default): The values you enter are used to compare with the data at the specified location and will match any case (upper, lower, or mixed) of the entered strings.
- Exact Case Text (C): The values you enter are used to compare with the data at the specified location and will match only the exact case of the entered strings.
- Hex (X): The value is expected to be one or more even pairs of hex digits 0-9,A-F. The values you enter are used to compare with the data at the specified location and will match the hex values of the data in the record.
- Packed (P): Typically the value you enter is a signed or unsigned decimal integer, it is used to compare with the data at the location in packed format. If the value you enter is unsigned or positive, it will match a positive or an unsigned packed number at the specified location. If negative, it will only match a negative packed number at the specified location.
- Binary (B): Similar to Packed, the value you enter is a signed or unsigned decimal integer. A length (1, 2, or 4) is required with this data type. The value you enter is converted to a binary value and compared to the binary data at the specified location.
- Numeric (N): Also similar to packed, the value you enter is a signed or unsigned decimal integer, it is used to look for zoned numeric data at the specified location (and for the specified length or the length of the value you enter). If the value you enter is unsigned or positive, it will match a positive or an unsigned zoned decimal number at the specified location. If negative, it will only match a negative zoned decimal number at the specified location. Signs are checked in the last digit of the field only. (Unsigned or positive numbers will match F zone or C zone numbers, and negative numbers will match D zone numbers. Example: Numeric -15 matches a data value of Hex F1D5.)
- Bit Mask (M): This data type tests for individual bits in one byte of data at the specified location. The value specified is a pair of hex digits 0-9, A-F. Example: FF is a binary mask equivalent to 11111111. Special operators are provided when using this data type: is equal to (all ones, all 1s in the mask are on in the data), is not equal to (not ones, all 1s in the mask are off in the data), are mixed ones and zeros (some 1s, but not all, in the mask are on in the data), are not ones (not all 1s in the mask are on in the data). The operators are mixed ones and zeros and are not ones are only used when the bit mask contains more than one 1 and have no meaning if there is only 1 bit to test. When the mask has only one bit, the operator is equal to is the same as are mixed ones and zeros, and the operator is not equal to is the same as are not ones.
- Enter an Operator: Operators for user defined fields are the same as those provided for Formatted conditions. In addition, there are some special operators for the Bit Mask (M) data type as described in Data Types. Is equal to is the default. For more information, see z-OS-Selection-Criteria-Operators.
Enter the Value: Values are expected to be consistent with the Data Type you selected. Alphanumeric strings for Any Case Text (T) or Exact Case Text (C), decimal (0-9) signed or unsigned numeric values for Packed (P), Binary (B), and Numeric (N) data types. For Hex (X) you must enter one or more contiguous pairs of hex digits (0-9,A-F). 0000-FFFF. For more information, see z-OS-Values.
- Click OK. You will return to the File-AID Data Editor Request window.
To enter more than one condition, click When entering a value for a Formatted Set condition, the value must match the format of the field layout. You must enter decimal numbers for numeric fields. If you need to specify values more explicitly, use the User Defined Field unformatted condition. There, you can specify your own data type including hex (X). and repeat the previous step for each additional condition.
To enter more than one set, click Add Set.
Options - Starting Point and More
Optionally, click on the Options tab. Options allow you to set a starting point in your file by Key or RBA or by skipping a number of records. You can also set up a random selection interval and limit the number of records searched or selected before returning data. Finally, you can specify read backward for most file types. If you want to use any of the options, you must select the Yes radio button on the Activate these options prompt at the top of the Options tab. Activating options may limit edit functionality. Hover your mouse over the information icon at the beginning of the Activate prompt to view the restrictions.
Query and Display Options
Records to display per page
Enter the Records to display per page. The default is 2000. This value determines page size for large files and allows rapid response to MVS data requests when the number is smaller. Maximum limit of page size varies based on the amount of free memory available to the File-AID Data Editor and the size of the records in the file.
I/O Exit
Optionally, enter the name of a valid File-AID/MVS I/O exit. Your exit must exist in the File-AID/MVS authorized customization load library. I/O exits are used to allow user control for handling record data. Refer to the File-AID Single Install Image Installation and Configuration Guide for details on I/O exits.
Run Mode Settings
Specify whether you want to view your data in Browse or Edit mode. Edit is the default. If you select Edit, specify whether to Enable Auditing. Enabled is the default. Also specify whether you want Exclusive use or shared use. Shared (unchecked) is the default.
Request Actions
- Once you have completed your request, it is a good practice to assign a Request Name and click Save to ensure that you can reuse the request in the future. Saved requests are accessible via the pull-down control in the Request Name field or via the Data Editor menu accessed by clicking the toolbar File-AID icon
and selecting Data Editor.
Click Run. You will navigate to the data display view.
- Click Close to exit the Request dialog.
- To delete a saved request permanently, click Delete.
To return to the last saved state of a request, use the Revert button.