Professional Documents
Culture Documents
SchemaCopy CheckRequiredFiles GetFileVersions AuditTracking StageFiles RunWorkflow Truncate_Table Cleanup Files Script
Functionality: This script copies data from one schema to another schema. Referring Documents: FILE NAME XXX_Tables_PS.list Description: 1. The script is used to take backup of old data, before running the current load. 2. The arguments that are to be passed while running the script are XXX_SchemaCopy.ksh XXX_Tables_PS.list Schema_1 Schema_2 NOTE: Schema_1 = Source Schema Schema_2= Destination Schema 3. It will copy the data from schema_1 to schema_2. PATH /amex/ platform/envrn /deployment/util
Back to Top
Functionality: This script checks for required Mainframe Source files Version and loads them into XXX_AllMainframeVersions.tmp. Referring Documents: FILE NAME XXX_SourceFilesRef .dat Description: 1. The script is used for MAINFRAME files. 2. The Script loads the current version of Source files into XXX_AllMainframeVersions.tmp in Temp Directory by referring to SourceFileRef.dat file. 3. The log file will be created in temp directory (XXX_GetFileVersions.ksh_Results_????????_??????.tmp). PATH /amex/ platform/envrn /refdata
Pre requisites: Before running Audit Tracking script we need to ensure that SourceFileref.dat file and/or XXX_TobeProcessed_MF_FileList.dat file (if Source is Mainframe) should be present in the respective path with the corresponding entries. Description: 1. SourceFileref.dat Contains the below mentioned fields: FIELD NAME source file name DESCRIPTION Mainframe File: It will REQUIRED\OPTI ONAL Required
basefile name session name RequiredIndicator FileSize CntlFile Day TimeOrYear SourceSys File Version SourceServer
search in region which is specified in SourceServer field (11th field). Flat file: It will search in the path /amex/ platform/envrn /inbox/ Short representation of the file name. Name of the Session. We mention whether it is required/optional Specify if required else N/A Specify if required else N/A Specify if required else N/A Specify if required else N/A Specifies the source system like MAINFRAME/UNIX etc., Latest Server Name where the source file is present. Specify the Datamap name if required else N/A Specify if required else N/A Specify the Parameter file Indicator Name, if required else N/A Specify if required else N/A
Required Required Required\optional optional optional optional optional Required (MAINFRAME/UNI X) optional Required For MAINFRAME: IPCM/EDEV/WROC Or UNIX N/A, CORE etc., N/A N/A, PAR etc., N/A
2. To_be_processed file: contains the file names that we are processing for the current load. FIELD NAME basefile name DATA Latest source file name REQUIRED\OPTIO NAL Required Required Required Required
3. For each basefile name entry in the To_be_processed file.dat there should be corresponding entry in sourfileref.dat. 4. It will create two parameter files in the paramfiles directory. XXX_param_basefilename.txt XXX_prm_basefilename.dat 5. The log file will be created in temp directory (XXX_AuditTracking.ksh_Results_????????_??????.tmp Back to Top
1. The script is used to start the workflow, which is initiated by pmcmd command. NOTE: The workflow should be checked in before initiating the script. 2. The log file will be created in temp directory (XXX_RunWorkflow.ksh_Results_????????_??????.tmp)
2. The XXX_cleanupDeleteList.dat file contains the parameter file name entries (XXX_param_basefilename.txt, XXX_prm_basefilename.dat). 3. The XXX_cleanupArchiveList.dat file contains the source and target file names. 4. When we are running the Audit Tracking scripts, it checks for the presence of entries in XXX_SourceFilesRef.dat. 5. Based on those entries the source file names and target file names are added to XXX_cleanupArchiveList.dat file. 6. Similarly, based on the base file name it will add the parameter file name entries in XXX_cleanupDeleteList.dat. 7. It will clean up all the files at the end of the load. 8. The log file will be created in temp directory (XXX_CleanupFiles.ksh_Results_????????_??????.tmp).
Back to Top
NOTES:
Acronyms
XXX Platform envrn
Description
Project Name (EKYC,CRC,NINJA,SIRIS..etc.,) Platform Name (ardw,sbdw,rrdw..etc.,) Environment Name (ut/cct,qa,prd)