Generational management
In HULFT, you can manage Receive files in generations. This is called 'generational management.'
Generational management is particularly effective for operations that involve receiving and saving a file with the same name several times at undetermined points throughout the day.
HULFT uses the generation data groups (GDGs) function of the operating system for generational management. Generation data groups (GDGs) used by HULFT are called 'generation files.' For details on generation files, refer to the manual for the operating system.
To manage Receive files in generations, specify the Receive Management Information as follows:
-
'Y' (GDG) for the Catalog Operation (CATALOG)
-
'N' (New Creation) for the Registration Mode (TRANSMODE)
If an error occurs while you are carrying out receiving using the generational management, even if the host on the sending side carries out resending, the resent data will not be output to the file in which the error occurred. Note that a new Receive file be created.
Preparation for Generational Management
To manage the Receive file in generations, you must define the Receive file as a generation file in advance. An example of the JCL for defining the Receive file is shown below.
[Example of JCL]
//GDGAMS JOB CLASS=A,MSGCLASS=B //STEP1 EXEC PGM=IDCAMS,REGION=2048K //SYSPRINT DD SYSOUT=* //SYSIN DD * DEFINE GDG(NAME(HULFT.RCVFILE) LIMIT(5) SCR) /* //
Parameter Name |
Value |
Description |
---|---|---|
NAME |
HULFT.RCVFILE |
Receive file managed in generations |
For details on the JCL, refer to the manual for the operating system.
Generation File Name
The latest generation number for a generation file is specified as '(0).' Generations older than that of (0) are represented as a negative decimal '(-n).'
To use a generation file, append 0 or a negative decimal in parentheses to the file name.
To send a generation file, specify the File Name in the Send Management Information with the generation number in parentheses.
To specify a generation file for the Mainframe DSN (DSNAME) in the Receive Management Information, specify the Receive File Name without specifying the generation number.
[Example] Case where you specify HULFT.RCV for Receive File Name
- Most recent Receive file: file:
-
HULFT.RCV(0)
- Second most recent Receive file:
-
HULFT.RCV(-1)