Customizing File Transfer. Compuware Program Analyzer
Hirdetés
Hirdetés
47
Appendix C.
Customizing File Transfer
Appendix A.
File Transfer copies information stored on the MVS host and transfers the copy to the workstation. It also transfers information from the workstation to the MVS host. You can customize File Transfer to access source code, JCL, and/or copybooks from source management systems.
Using File Transfer With Host Source Management
Systems
You can customize File Transfer to access source code, JCL, or copybooks from source management systems by using a library exit.
Four exits are shipped with Compuware Program Analyzer:
• Endevor
• Panvalet
• Librarian
• PDS
Both the load libraries and the source code for exits are included with Compuware
Program Analyzer.
XPPFTDEF is the dataset that tells File Transfer which library exits to access and the information it needs to use them.
There are two methods for customizing XPPFTDEF: the mainframe method and the workstation method. The mainframe method is preferred when all workstations should use the same default settings. The workstation method is preferred when using replaceable parameters, because brackets ([ ]) display on a workstation (on the mainframe display, these characters are invalid). They can be viewed and updated in HEX mode, where the left bracket ( [ ) displays ‘AD’ and the right bracket ( ] ) displays ‘BD’.
Note:
The source management system with which the exit is interfacing must be
available either by steplib or by link list. For Endevor, link list is the preferred method because the Endevor module runs in an authorized environment.
The exits included with Compuware Program Analyzer serve to illustrate how to construct an exit for each supported source management system. While you are
encouraged to customize the exits for your own purposes, Compuware does not support these exits in any modified forms.
You may need to modify exits functional in a previous release of Compuware
Program Analyzer for use in the current release. Contact Compuware Customer
Support for more information.
The load modules for the exits are shipped with the Compuware Program
Analyzer Loadlib.
48
Compuware Program Analyzer Mainframe Installation and Configuration Guide
Customizing the Defaults Dataset on the Mainframe
Note:
The term “library” is used here to mean “library” or “dataset,” whichever is appropriate to the environment you are using.
1. Open XPPFTDEF, from your Compuware Program Analyzer install dataset,
on the host
.
2. Find the reference to the exit you want to use:
– For Endevor, use one of the following:
• R,ENDEVORX,“ENDEVOR GENERIC”
• R,ENDEVORX,“ENDEVOR XP11-MACRO”
• R,ENDEVORX,“ENDEVOR XP11-CPP”
– For PANVALET, use:
• R,FTXPANEX,“X2.Xpediter.PANV”
– For Librarian, use one of the following:
• R,FTLIBRX,“X2.LIB.MASTER”
• R,FTLIBRX,“X2.PFHABT0.LIB.MASTER”
Note:
XPPFTDEF, as shipped with Compuware Program Analyzer, is set up so you can use multiple exits. If, however, you do not plan to use more than one exit, delete from XPPFTDEF the references to the exits you don’t plan to use.
Figure C-1.
XPPFTDEF
1. Duplicate the R line and all the parameters that follow it (to the blank line) for each library to be accessed with the exit. For XPPFTDEF to function properly, there must be a blank line between the last parameter and the next ‘R,exit module’ statement.
2. Customize the parameters according to the instructions in “Valid Parameters for Each
Exit” on page 56. The following example accesses two CA-PANVALET libraries.
Customizing File Transfer
49
Figure C-2.
XPPFTDEF customized to access two CA-PANVALET libraries
3. Save the changes to XPPFTDEF.
4. Use File Transfer to download XPPFTDEF to each workstation or client’s
ProgramDataPath specified during the installation (which is available in the
About
dialog box).
5. To load the XPPFTDEF parameters onto each workstation after downloading
XPPFTDEF to the Compuware Program Analyzer directory, open File Transfer.
6. From the
Transfer
menu, select
Settings
.
7. Click the
Library exit
tab.
8. Click
Default
. This loads the parameters in the XPPFTDEF file.
Figure C-3.
Library Exit tab of the File Transfer Utility Settings dialog box
50
Compuware Program Analyzer Mainframe Installation and Configuration Guide
9. Click
OK
.
10. To see your changes to XPPFTDEF, select the appropriate exit module on the
Library
Exit
tab and click
Change
. The
Change Library Exit Definition
dialog box shows your XPPFTDEF changes.
Figure C-4.
Change Library Exit Definition dialog box
Note:
The term “library” is used here to mean “library” or “dataset,” whichever is appropriate to the environment you are using.
There are two ways you can customize XPPFTDEF on the workstation:
• Set up one value per parameter: If you always want to use the same value for each parameter, use the Editor to indicate these values by manually modifying XPPFTDEF.
• Set up more than one value per parameter: If you want to set up your parameters so they can easily access more than one library, set up replaceable parameters in File
Transfer.
Allow only one value per parameter
1. Download XPPFTDEF to each workstation using File Transfer. (The default location of
XPPFTDEF is your Compuware Program Analyzer install dataset, and the default download directory is the ProgramDataPath specified during the installation, which is available in the
About
dialog box).
2. Open XPPFTDEF in the Compuware Program Analyzer Editor. The Editor should
not
be in ISPF mode because a blank line is required between each set of parameters. ISPF mode does not support this—CUA emulation is suggested.
3. Find the reference to the exit you want to use:
– For Endevor, use one of the following:
• R,ENDEVORX,“ENDEVOR GENERIC”
• R,ENDEVORX,“ENDEVOR XP11-MACRO”
• R,ENDEVORX,“ENDEVOR XP11-CPP”
– For PANVALET, use:
• R,FTXPANEX,“X2.Xpediter.PANV”
Customizing File Transfer
51
– For Librarian, use one of the following:
• R,FTLIBRX,“X2.LIB.MASTER”
• R,FTLIBRX,“X2.PFHABT0.LIB.MASTER”
Note:
XPPFTDEF, as shipped with Compuware Program Analyzer, is set up so you can use multiple exits. If, however, you do not plan to use more than one exit, delete from XPPFTDEF the references to the exits you don’t plan to use.
Figure C-5.
XPPFTDEF
4. Duplicate the R line and all the parameters that follow it (to the blank line) for each library to be accessed with the exit. For XPPFTDEF to function properly, you must have a blank line between the last parameter and the next ‘R,exit module’ statement.
5. Customize the parameters according to the instructions in “Valid Parameters for Each
Exit” on page 56. The following example accesses two CA-PANVALET libraries.
Figure C-6.
Change Library Exit Definition dialog box
6. Save the changes to XPPFTDEF.
7. To load the NEW XPPFTDEF parameters onto the workstation, open File Transfer.
8. From the
Transfer
menu, select
Settings
.
9. Click the
Library exit
tab.
10. Click
Default
and click
OK
on the warning message. This loads the parameters in the
XPPFTDEF file.
52
Compuware Program Analyzer Mainframe Installation and Configuration Guide
Figure C-7.
Library Exit tab of the File Transfer Utility Settings dialog box
11. Click
OK
.
12. To see your changes to XPPFTDEF, select the appropriate exit module on the
Library
Exit
tab and click
Change
. The
Change Library Exit Definition
dialog box shows your XPPFTDEF changes.
Figure C-8.
Change Library Exit Definition dialog box
Note:
If you want to have workstation-specific settings but still be able to restore the default settings in XPPFTDEF in the future:
- Open File Transfer
- In the
Settings
dialog box -
Library Exit tab
, click
Default
.
- Select the exit and click
Change
.
- Modify the exit as necessary. Refer to “Valid Parameters for Each Exit” on page
- Click
OK
.
To revert to the default settings in XPPFTDEF, click
Default
in the
Settings
dialog
Customizing File Transfer
53
box -
Library Exit
tab. Either of these actions reverts XPPFTDEF to its default settings and loses the custom settings on the workstation.
Allow more than one value per parameter
Using replaceable parameters allows you to access more than one dataset/library with a single library exit by setting up a parameter set that accesses multiple libraries. This enables one parameter list to be used in place of many parameter lists that differ in only a few values. In the future, when you attempt to perform a file transfer where replaceable parameters have been set up, File Transfer will invoke a dialog box so the user can accept or change this value.
For Endevor, replaceable parameters are an alternative to building separate definitions for fields such as Environment, System, Subsystem, Type, or Stage.
For Panvalet, replaceable parameters are an alternative to building separate definitions for Panvalet dataset names.
For Librarian, replaceable parameters are an alternative to building separate definitions for Librarian dataset names.
Note:
If the request to transfer files originated from the Compuware Program Analyzer
Editor or Program Analyzer, the dialog box does not display and the defaults are used.
The title bar of the dialog box indicates the library exit description from the parameter list.
The last value entered for a specific parameter displays when the dialog box appears.
If multiple members are selected from the same dataset list, the user is only presented with the replaceable parameter dialog box one time. All members from the same dataset list have the same parameter settings.
Setting up the Parameter Sets
1. From the
Start
menu, select
Programs>Compuware>Compuware Program
Analyzer>File Transfer
. The File Transfer Utility window appears.
2. If the
Logon List
dialog box appears, select a connection and click
OK
. The
Enter
Password
dialog box appears. Type the required password and click
OK
.
3. From
Transfer
menu, select
Settings
. The
File Transfer Utility Settings
dialog box appears.
4. Select the
Library Exit
tab.
54
Compuware Program Analyzer Mainframe Installation and Configuration Guide
Figure C-9.
Library Exit tab of the File Transfer Utility Settings dialog box
5. Click
Default
to populate the
Library Exit
tab with the default values sent with the product.
Figure C-10.
Library Exit tab of File Transfer Utility Settings dialog box
6. Do one of the following:
– To set up your own exit, refer to “Assembling and Linking the Library Exit” on page 63.
– To modify a sample exit sent with Compuware Program Analyzer, go to the next step.
7. On the
Library Exit
tab, select the exit you want to modify and click
Change
. The
Change Library Exit Definition
dialog box appears.
Figure C-11.
Change Library Exit Definition dialog box
Customizing File Transfer
55
8. In the
Parameters
list box, find the parameters (for example, TYPE) that you want to set up as replaceable.
9. Use the following format to add a prompt (to tell you what action to take (and a value (to give one possible value for the parameter):
[user prompt,value]
For example, change:
X2.Xpediter.PANV
to:
[ENTER DSN, PANVALET.PROD]
where ENTER DSN is a prompt to tell the user what to do and PANVALET.PROD is one possible value for the parameter of DSN.
Refer to “Valid Parameters for Each Exit” on page 56 to find out which parameters
can be changed for the type of exit you are using.
Figure C-12.
Change Library Exit Definition dialog box
10. Click
OK
in the
Change Library Exit Definition
dialog box.
11. Click
OK
in the
File Transfer Utility Settings
dialog box.
56
Compuware Program Analyzer Mainframe Installation and Configuration Guide
Valid Parameters for Each Exit
The valid parameters vary depending on the library exit. An example of replaceable parameters is in XPPFTDEF, in the Compuware Program Analyzer install dataset R,
ENDEVORX, “ENDEVOR GENERIC”. The format of the R command is explained in “R
Endevor
To use the Endevor exit, you must customize the Endevor parameters in XPPFTDEF. The
Endevor parameters shipped in XPPFTDEF (in R, ENDEVORX, “Endevor XP11 Macros”) are as follows.
Table C-1.
Endevor Parameters Shipped in XPPFTDEF
Parameter Explanation
SET OPT CCID ENDEX3
COM“TEST ENDEVOR
EXIT”.
Supplies the default CCID ‘ENDEX3’ and description of ‘TEST ENDEVOR
EXIT’.
Customizing
• Replace ENDEX3 with your CCID.
• Replace the description with a description regarding the addition or retrieval you are now doing with the Endevor exit.
SET FROM ENV
CORPDATA SYS‘XP11’
SUB BASE
Tells Endevor the environment, system, subsystem, type, and stage.
• Replace CORPDATA with your environment name.
TYPE MACRO STAGE 2.
• Replace XP11 with your system name.
• Replace BASE with your subsystem name.
• Replace MACRO with the type or dataset/library you are accessing.
• Replace 2 with the stage of the dataset/library you are accessing.
RET ELE ENDEXIT TO
FILE FTXWORK
LIST ELEMENTS * TO
FILE ENDVRDIR.
Retrieves a dataset from the source management system. The name
ENDEXIT is the name of the element to be retrieved; ENDEXIT is automatically replaced by the element the exit is processing. File
‘FTXWORK’ is the dd name the output is written.
Lists the datasets available from the source management system. “LIST
ELEMENTS” lists the directories to the DD ENDVRDIR.
NO SIGNOUT
ADD ELEMENT
ENDEXIT3
FROM FILE FTXWORK
TO ENV CORPDATA
SYS XP11 SUB BASE
Tells Endevor whether to sign out the member to you.
Delete the NO SIGNOUT parameter if you want to sign out the member.
Adds the element to the Endevor system indicated by the associated environment, system, subsystem, and type. The name ENDEXIT3 is the name of the element to be added;
ENDEXIT3 is automatically replaced by the element the exit is processing.
• Replace CORPDATA with your environment name.
•
•
Replace XP11 with your system name.
Replace BASE with your subsystem name.
TYPE MACRO
OPT UPD.
• Replace MACRO with the type of dataset/library you are accessing.
Note:
The parameters are explained in more detail in the
CA-Endevor SCL Reference
manual.
Customizing File Transfer
57
Panvalet
To use the Panvalet exit, you must customize the Panvalet parameters in XPPFTDEF. The
Panvalet parameters shipped in XPPFTDEF (in R, FTXPANEX, “X2.Xpediter.PANV”) are as follows.
Table C-2.
Panvalet Parameters Shipped in XPPFTDEF
Parameter Explanation
DSN=‘X2.Xpediter.PANV’ DSN points the name of the Panvalet dataset that the host session must use for the Panvalet source.
Customizing
• Replace X2.Xpediter.PANV with the dataset name.
GENPAN=N Means to
not
generate PANVALET
Control Cards on a Get request.
• Replace N with Y if you want to generate PANVALET Control
Cards on a Get request.
Note:
Other valid parameters are listed in the FTPANEX source file.
Librarian
To use the Librarian exit, you must customize the Librarian parameters in XPPFTDEF. The
Librarian parameters shipped in XPPFTDEF (the Assembler version is R, FTLIBRX,
“X2.LIB.MASTER” and the COBOL version is R,FTLIBRA,“X2.LIB.MASTER”) are as follows.
Table C-3.
Librarian Parameters Shipped in XPPFTDEF
Parameter Explanation Customizing
DD=MASTER1,DSN=X2.LIB
.MASTER
Specifies the DD to dynamically allocate and the related dataset name. Be sure, if you have multiple
Librarian exits defined, be sure to use a different
DD name for each (for example, MASTER1 and
MASTER2). The DD= is an exit directive and is not a CA-Librarian command.
Replace
X2.LIB.MASTER with the dataset name.
-ADD, -DEL, -SEL,
-EMOD, -END, and -REP
Information on these is found in the
Command Reference (Batch) Guide
.
CA-Librarian
Customizing this parameter is optional.
-ADD X, SEQ=/81,6,10,10/ -ADD is used if the exit determines that the member sent from the workstation does not exist in the library. SEQ=/81,6,10,10/ avoids line numbers at the end of the source.
Customizing this parameter is optional.
-EMOD
-END
Marks the end of one module’s control statements and data.
Customizing this parameter is optional.
Marks the end of the entire CA-Librarian control stream.
Customizing this parameter is optional.
-SEL X,SEQ=/81,6,10,10/ Selects a module from the master file for processing.
-REP ALL Is used if the exit determines that the member sent from the workstation exists in the library.
Customizing this parameter is optional.
Customizing this parameter is optional.
Note:
Other valid parameters are listed in the FTLIBRX source file.
More information about Librarian commands issued by FTLIBRX is found in the
CA-Librarian Command Reference (Batch) Guide
.
What Happens When you Use File Transfer With Library Exits
File Transfer’s
Host to Workstation
and
Workstation to Host
dialog boxes are used to transfer datasets/libraries between the host and workstation.
58
Compuware Program Analyzer Mainframe Installation and Configuration Guide
Figure C-13.
Host to Workstation File Transfer dialog box
What happens when you double-click an item in the
Dataset/Library List
to use File
Transfer to upload or download members using a library exit depends on whether you set up replaceable parameters for the given dataset member or library.
• If you did not, File Transfer operates “normally”—the same way it does when accessing sequential files or PDSs.
• If you set up replaceable parameters, the replaceable parameters dialog box appears when you double-click—in the
Dataset/Library list—
a dataset/library that has replaceable parameter sets established.
Figure C-14.
Replaceable Parameters dialog box
• When this happens, accept the default values or change them:
– To accept the parameter and value shown in the dialog box, click
OK
.
– To change the parameter and value shown in the dialog box, double-click the value, type the new value, and click
OK
. In Figure C-15, the parameter MACRO
(as in the previous figure) was modified to CPP.
Figure C-15.
Replaceable Parameters dialog box
Customizing File Transfer
59
In this example, the replaceable parameter dialog box receives
‘TYPE [ENTER TYPE, CPP] STAGE [ENTER STAGE, 2]’ from the parameter list. The substitutions are made during the dialog process and the host library exit receives
‘TYPE CPP STAGE 2’
Thus, the parameters sent have the value enclosed in brackets replaced with the default value. The
Member list
in the
Host to Workstation File Transfer
dialog box populates with the members of the exit you chose.
Figure C-16.
Host to Workstation File Transfer dialog box
12. Continue with the host to workstation file transfer according to the instructions in the File Transfer help.
Library Exit Reference Information
The library exit is called from the File Transfer host component with various parameters that specify which of the following functions are performed:
• Get: Gets a member or file and writes it to the FTXWORK file for subsequent downloading.
• Put: Puts a member or file after reading it from the FTXWORK file.
• List: Writes a member list to the FTXWORK file.
• A sample library exit that can be used as a pattern to create a customized exit is located in PA.VvRrMm.DEFAULTS(FTXPDS01). “v” is the version of Compuware
60
Compuware Program Analyzer Mainframe Installation and Configuration Guide
Program Analyzer, “r” is the release number, and “m” is the maintenance number.
Source Code for the Library Exits
The source code for each exit is shipped with Compuware Program Analyzer.
Endevor Exit
The CA-Endevor exit module—ENDEVORX—is linked into the Compuware Program
Analyzer load library. It was written in Assembler. Sample JCL—called JCLFTEXT—is in your Compuware Program Analyzer install dataset and may be used to assemble this source.
XPPFTDEF contains Endevor SCL commands. The parameters are built from commands that are listed in the
CA-Endevor SCL Reference
manual.
Panvalet Exit
The CA-Panvalet exit module—FTXPANEX— is linked into the Compuware Program
Analyzer load library. It was written in Assembler. Sample JCL—called JCLFTEXT—is in your Compuware Program Analyzer install dataset and may be used to assemble this source.
XPPFTDEF contains Panvalet directives for the mainframe module FTXPANEX.
FTXPANEX uses the CA-Panvalet Access Method (PAM) to query and update the Panvalet library. Further information on PAM is found in the
CA-Panvalet System Management Guide
.
Librarian Exit
There are two CA-Librarian exit modules: one written in Assembler and another written in COBOL. Both exit modules are functionally equivalent. XPPFTDEF contains Librarian directives for the mainframe module FTLIBRX. FTLIBRX uses the CA-Librarian File Access
Interface Routines—FAIR—to query and update the Librarian library. Further information on the FAIR routines is found in the
CA-Librarian File Access Interface Routines Guide
.
Assembler Version
The Assembler version of the Librarian exit module—FTLIBRX— is linked into the
Compuware Program Analyzer load library. This is the version used for Librarian by default. It requires CAIMAC in the syslib concatenation if assembled. CAIMAC is part of the Librarian installation libraries and is not available from Compuware.
COBOL Version
The COBOL version of the Librarian exit module—FTLIBRC— may be linked into the
Compuware Program Analyzer load library. It requires CAISRC in the syslib concatenation. CAISRC is part of the Librarian installation libraries and is not available from Compuware.
The dynamic allocation routines required by FTLIBRC are implemented by FTLIBRA. The combination of FTLIBRC and FTLIBRA is functionally equivalent to FTLIBRX (see
“Assembler Version” on page 60). To use the COBOL version, replace FTLIBRX on the “R”
line in XPPFTDEF with FTLIBRC.
Sample JCL—called JCLFTEXT—may be used to assemble the source for FTLIBRA. Sample
JCL—COBEXIT—can be used to compile the source available for FTLIBRC. Both are in your Compuware Program Analyzer install dataset.
Customizing File Transfer
61
PDS Exit – FTXPDS01
This library exit provides the same functionality as File Transfer does when unmodified— that is, it provides access to flat files and partitioned datasets. You can, however, use this exit to customize how PDSs are accessed.
FTXWORK File
While the library exit receives and returns parameters through a short parameter list as
described in “Parameter DSECT” on page 61, the actual files and directory listings are
passed through a temporary work file. The work file is assigned the DDNAME of
FTXWORK. This file is defined for File Transfer in the File Transfer TP JCL.
The FTXWORK file must be defined with RECFM=VB. The BLKSIZE, LRECL, and space allocation need to be large enough to accommodate the largest file you may want to transfer.
Note:
FTXWORK is a temporary file that exists only as long as the File Transfer session is active.
Parameter DSECT
When the library exit is invoked, R1 addresses a parameter list described by the FTXPLIST assembler macro and DSECT of the same name.
The FTXPLIST macro can be found in PA.VvRrMm.DEFAULTS(FTXMACRO). Except as described below, the fields in this DSECT should be considered
reserved and should not be modified
.
FTX_FUNCT
Binary halfword that contains a value of 0 for GET, 1 for PUT, or 2 for LIST specify which function is requested. Any other value is treated as an error.
FTX_PARM_LEN
Binary halfword field that specifies the length of any additional user parameter string specified for this function in the XPPFTDEF file. This is always a multiple of 80 characters to provide support for control statements.
FTX_PARM_ADDR
Address pointer that specifies the address of any additional user parameter string specified for this function in the XPPFTDEF file.
FTX_RET_CODE
Field used to pass a return code back to the File Transfer host component. All non-zero codes mean a failure.
Note:
Codes 1 through 100 are reserved for Compuware’s use. Use codes above 100 for error conditions.
FTX_EXIT_NAME
Eight-byte character field that contains the name of the load module invoked for the library exit.
62
Compuware Program Analyzer Mainframe Installation and Configuration Guide
FTX_MEM_NAME
12-byte character field that contains the name of the member to be GET/PUT/LIST, padded with blanks. For LIST functions, this field may contain a filter suffixed with an asterisk (wildcard) character.
FTX_DESC
44-byte character field that contains the library exit name, padded with blanks.
FTX_ERR_MSG
A field used to pass a 64-byte text message that is displayed by the File Transfer workstation component if an error is detected by the library exit.
Calling and Coding Conventions
On entry to the library exit, R1 addresses the FTXPLIST parameter list; R13 points to a standard save area; R14 contains the return address; and R15 contains the entry point address.
Any storage that is allocated must also be freed because the exit may be called multiple times for each file transfer execution. All registers must be saved and restored.
Following is an overview of the sample library exit.
1. FTXPDS01 is the main entry point name used in the sample program. It performs the following tasks: a. Validates the function code in FTX_FUNCT b. Validates the optional parameters c. Dynamically allocates the source/target dataset d. Branches to the requested function
2. FUNCTION_DIR gets the member list of the specified library and writes it to the work file. The required convention is to write a title record as the first record in the work file. This record should have space-delimited fields for each field in the member list.
In subsequent records, it is assumed that the member name is first and the next field, separated by one or more blanks, is the number of lines in each member. The sample program assumes ISPF-type statistics in the member list. This function performs the following: a. Opens the FTXWORK file for output and the source/target file for input.
b. Writes the title record.
c. Reads each record from the library, compares it to the filter in the
FTX_MEM_NAME field, formats it as needed, and writes selected lines to the work file.
d. Closes the FTXWORK file and the specified source/target file.
e. Dynamically frees the specified source/target file.
f. Returns any error messages and codes.
If the library has no directory structure, the exit should return a code of 100 in the
FTX_RET_CODE field. The file transfer will continue as if it were a sequential file.
3. FUNCTION_GET gets a member from a library so that it can be downloaded. This function performs the following: a. Opens the FTXWORK file for output and the specified source file for input.
b. Reads each record from the source file and writes it to the FTXWORK file.
Customizing File Transfer
63
c. Closes the FTXWORK file and the specified source file.
d. Dynamically frees the specified source file.
e. Returns a text message in FTX_ERR_MSG if any error occurred, and sets a return code in FTX_RET_CODE. This code should be zero if no errors occurred or above
100, which indicates that the download process failed. The error message appears on the workstation.
4. FUNCTION_PUT gets a file from FTXWORK, where it was uploaded, and writes it to the specified target file. This function performs the following: a. Opens the FTXWORK file for input and the target file for output.
b. Reads each record from the work file, and writes it to the specified target file.
c. Closes the FTXWORK file and the specified target file.
d. Dynamically frees the specified target file.
e. Returns any error messages and codes.
Handling Abends
Any abends in your library exit are trapped by a higher level ESTAE exit routine. In the event of an abend, the message, “ Exit Module issued message:Abend:Saaa/Ubbb ” appears where aaa is the system abend code and bbb is the user abend code. Dumps are directed to SYSUDUMP.
Assembling and Linking the Library Exit
The JCL to assemble and link-edit the sample library exit is in member JCLFTEXT of your
Compuware Program Analyzer install dataset. Be sure to change the dataset names to your site’s standards and supply the proper member name for both the assembler SYSIN and link-edit SYSLMOD. No SYSLIB is needed because a standalone module is generated without any external references.
Definition File
The values that appear in the
Dataset/Library name
field on the user’s workstation are specified by the definition file. The definition file is installed during normal mainframe installation but can be refreshed from the host as needed when the host system programmer creates a library exit that necessitates new entries in the definition file.
The definition file resides on the MVS host in DEFAULTS as member XPPFTDEF. The definition file contains multiple groups of parameters, each group separated by a blank line. Lines beginning with an asterisk are treated as comments and are ignored.
The parameter groups can be any one of the following types, as determined by the letter code in column one of the first line.
D Group
This directory parameter group specifies the high-level directory on the workstation that is to contain files downloaded from the host. This command consists of only the D in column 1, followed by a comma, and then the starting directory to be used (for example,
D,C:\Program Files\...\ProgramAnalyzer\FT).
R Group
This group specifies a library exit and parameter combination that can be selected to process members or directories of some file type. The format of the first line consists of the following three parameters separated by a comma:
64
Compuware Program Analyzer Mainframe Installation and Configuration Guide
1. The letter R in column 1.
2. The one- to eight-character name of the library exit load module.
3. A short description of the exit enclosed in double quotation marks. Because this is the description that the programmers will see, name it something that they will understand like the actual name of the source library or some other identifiable description.
The R group can contain one or more other lines of data that specify a parameter string to be passed to the library exit whenever a request is made for a transfer of a member or directory. The case-sensitive parameter string is defined by whoever writes the code for the library exit.
Each parameter record is concatenated to form one long parameter string. The address and length of this string is passed to the library exit in the FTXPLIST parameter DSECT
described in “Parameter DSECT” on page 61.
The R group definition for a sample exit that provides transfer and directory list support for a PDS might look like the following:
R,FTXPDS01,”PDS Download”
DSN=your.pds.dsname
You can have multiple R group definitions. Separate them with a blank line.
Letöltés
Hirdetés