AR157A OCL
The provided document, AR157A.ocl36.txt, is an Operations Control Language (OCL) program used in IBM midrange systems (e.g., AS/400, iSeries) to perform field adjustments on an EFT (Electronic Funds Transfer) cash receipts batch file before its creation. This program is called by the AR157.ocl36 OCL program, which itself is invoked as part of the EFT cash receipts batch file creation process orchestrated by the main AR157P.ocl36 program. Below is a detailed explanation of the process steps, business rules, tables/files used, and external programs called, based on the OCL code.
Process Steps of the OCL Program (AR157A)¶
The AR157A OCL program is concise and focuses on loading and running a program to adjust fields in a specific file. Here’s a step-by-step breakdown of the process:
- Load the AR157A Program:
- The statement
// LOAD AR157Aloads theAR157Aprogram into memory for execution. -
This indicates that
AR157Ais likely an RPG or CL program designed to perform specific field adjustments on the EFT cash receipts data. -
Open the CRTRAN File:
- The statement
// FILE NAME-CRTRAN,LABEL-?9?E?L'110,6'?,DISP-SHRdefines a file:- Name:
CRTRAN(logical file name within the program). - Label:
?9?E?L'110,6'?– A dynamically constructed physical file name, where: ?9?is a placeholder for a company code or batch identifier (consistent with other programs in the suite, e.g.,CO123).?L'110,6'?refers to a 6-character value stored at location 110 in the program’s local storage, likely the bank upload date (KYUPDTfrom theAR157PRPGLE program, e.g.,202311for November 2023).- Example: The file might resolve to
QS36F/CO123E202311(assumingQS36Fis the library, as seen inAR157.ocl36). - Disposition:
DISP-SHR(shared access), allowing multiple processes to access the file concurrently.
- Name:
-
This file is opened for processing by the
AR157Aprogram. -
Run the Program:
- The statement
// RUNexecutes the loadedAR157Aprogram. - The program processes the
CRTRANfile, performing field adjustments necessary for the EFT cash receipts batch file creation. The exact adjustments (e.g., formatting, calculations, or data transformations) are not specified in the OCL code and would be defined in theAR157Aprogram’s logic (likely an RPG or CL program).
Business Rules¶
The AR157A OCL program enforces the following business rules:
- Dynamic File Access:
- The program operates on a dynamically named file (
?9?E?L'110,6'?), where the name is constructed using:- A company or batch identifier (
?9?), ensuring the program processes data specific to the correct organizational context. - A bank upload date (
?L'110,6'?), aligning the adjustments with the selected date for the cash receipts batch.
- A company or batch identifier (
-
This ensures flexibility to handle multiple companies or batch dates.
-
Shared File Access:
-
The file is opened in shared mode (
DISP-SHR), allowing other processes to access it concurrently, which is critical in a multi-user or multi-process environment to avoid file locks. -
Field Adjustment Preprocessing:
- The program is designed to adjust fields in the
CRTRANfile before the data is copied to the final cash receipts batch file (?9?CRIEGGinAR157.ocl36). -
Adjustments might include formatting EFT transaction data, updating specific fields (e.g., dates, amounts, or status flags), or ensuring compliance with EFT standards (e.g., ACH file formats).
-
Dependency on Prior Validation:
- Since
AR157Ais called byAR157.ocl36, which is invoked after validations inAR157P.rpgle, the program assumes that the company number (KYCO) and bank upload date (KYUPDT) have been validated, and theCRTRANfile exists with relevant data.
Tables/Files Used¶
The program interacts with the following file:
- CRTRAN:
- Logical Name:
CRTRAN - Physical File Label:
?9?E?L'110,6'?(e.g.,QS36F/CO123E202311, where?9?is the company code and?L'110,6'?is the bank upload date). - Library: Likely
QS36F(based on consistency withAR157.ocl36). - Disposition:
DISP-SHR(shared access). - Purpose: Temporary workfile containing EFT individual entry data that requires field adjustments before being copied to the cash receipts batch file.
- Usage: Opened and processed by the
AR157Aprogram for field modifications.
External Programs Called¶
The program directly loads and runs:
- AR157A:
- Purpose: Performs field adjustments on the
CRTRANfile to prepare EFT transaction data for inclusion in the cash receipts batch file. - Note: The OCL program loads
AR157A, but the actual logic (e.g., RPG or CL code) is not provided, so the specific adjustments are unknown. It likely modifies fields such as transaction amounts, dates, or EFT-specific data to ensure compatibility with the target batch file.
No additional external programs are explicitly called in the OCL code.
Notes¶
- Integration with Program Suite: The
AR157AOCL program is a component of the EFT cash receipts batch creation process, called byAR157.ocl36, which is invoked byAR157P.ocl36. The?9?parameter (company/batch identifier) and?L'110,6'?(bank upload date) ensure consistency across the suite. - Jan Beccari Change: The change from
?WS?toGG(noted inAR157.ocl36andAR157P.ocl36) does not directly affectAR157A, but the target file in the subsequentAR157program (?9?CRIEGG) reflects this change, indicatingAR157Aprepares data for that file. - Purpose of Field Adjustments: The adjustments in
AR157Aare likely critical to ensure the EFT data meets specific formatting or business requirements (e.g., aligning with banking standards or internal AR processes) before copying to the final batch file. - Shared Access: The use of
DISP-SHRsupports a multi-user environment, ensuring the file can be accessed without conflicts during processing.
If you have additional details (e.g., the RPG/CL source code for AR157A) or need further analysis of how this program integrates with the others in the suite, please let me know!