Generational Management
HULFT can manage generations of receive files. This is useful when the same file is received and saved many times at irregular intervals in one day.
Meanwhile, when managing receive files with generation, set 'Y' (Enabled) for the Generational Management (GENCTL) of the Receive Management Information. Receive file creates a member of the Receive file by adding a generation file number to the member name of the Receive File Name registered in the Receive Management Information. Details of individual Receive file are recorded in the generational management information file.
Maximum generation file count can be set in the Receive Management Information. The number circulates from 1 when the number exceeds this count. You can set up to '9999' at a maximum for Generation File Count.
In the case of archive file, Receive file is created by adding a generation file number to the Receive File Name registered in Receive Management Information.
Receive Files Managed in Generation Files
In the case of Receive files managed in generation files, a generation file number is added to the member name of the Receive File Name registered in Receive Management Information. Generation file number is allocated sequentially from '0001' in the order of receive completion. Further, a generation file number will be added to the member name of the Receive File Name managed in generation file, therefore it cannot be registered if the name exceeds 6 characters.
- <Example 1> In the case of physical file
-
File Name Registered in the Receive Management Information: MYLIB/RCV(RCV)
Table 2.1 Assignment of Generation File Number to Physical File
Circumstances
File Name
When receiving to the specified file completed for the first time
MYLIB/RCV(RCV0001)
When receiving to the specified file completed for the second time
MYLIB/RCV(RCV0002)
- <Example 2> In the case of archive file
-
File Name Registered in the Receive Management Information: MYLIB/RCV
Table 2.2 Assignment of Generation File Number to Archive File
Circumstances
File Name
When receiving to the specified file completed for the first time
MYLIB/RCV0001
When receiving to the specified file completed for the second time
MYLIB/RCV0002
-
The member name of the environment variable for Post-receive Job &MBRNM will become the member name with a generation file number added to it (in the case of archive file, the file name of the environment variable &FILENM will become the one with a generation file number added to it).
-
In the case of a physical file, the generation file function of HULFT for IBMi manages generation files by member in files. The number of members in the Receive file will increase each time generation file receive is carried out. Set MAXMBR value of the Receive file suitable to the Generation File Count.
Generation File Information file
Information about each Receive file managed in generation file can be confirmed with the Generation File Information file.
The Generation File Information file is created in the Installation Library and both the file name and the member name of the library is 'INF.'
- <Example> If the Installation Library of HULFT is 'HULFT,' the Generation File Information file is named as follows:
-
Generation File Information file: HULFT/INF(INF)