You are on page 1of 7

TABLE OF CONTENT

SchemaCopy CheckRequiredFiles GetFileVersions AuditTracking StageFiles RunWorkflow Truncate_Table Cleanup Files Script

Script Name: SchemaCopy 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

Script Name: CheckRequiredFiles Script


Functionality: This script checks for required files being present for the run. Referring Documents: FILE NAME XXX_SourceFilesRef .dat Description: 1. The Script checks for the entry of Source file in the SourceFileRef.dat. 2. If the Source file is from MAINFRAME, then it checks for the presence of the specified file in the respective Server. 3. If the source file is a flat file then it checks for the file to be present in inbox directory of the respective UNIX Server. 4. The Script writes a log message stating All required files are present if the source files are present else logs error stating the Required files missing. 5. The log file will be created in temp directory (XXX_CheckRequiredFiles.ksh_Results_????????_??????.tmp). PATH /amex/ platform/envrn /refdata

Back to Top

Script Name: GetFileVersions Script

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

Script Name: Audit Tracking Script


Functionality: It will create two parameter files in the Paramfiles Directory for each source file entry in the XXX_SourceFilesRef.dat. Referring Documents: FILE NAME XXX_SourceFilesRef.dat XXX_TobeProcessed_MF_FileL ist.dat PATH / amex/platform/envrn/ref data /amex/ platform/envrn/tgtfiles

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

DetDataMapNm CtlDataMapNm ParamIniIndicator SameParamFileIndi cator

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

Script Name: Stage Files Script


Functionality: The Script is used for Flat file sources. It moves all the Source files present in inbox directory to stage directory. Referring Documents: FILE NAME XXX_SourceFilesRef .dat Description: 1. The Script checks for the presence of the Source files entry in Sourcefileref.dat 2. Then it moves the source files present in the Inbox directory to the stage directory for processing. 3. It will unzip the file in the stage directory and assigns the required file extension for the source file. 4. The log file will be created in temp directory (XXX_StageFiles.ksh_Results_????????_??????.tmp). Back to Top PATH /amex/ platform/envrn /refdata

Script Name: RunWorkflow Script


Functionality: This script will initiate the workflow to start. Referring Documents: No referring document. Description:

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)

Script Name: Truncate Table Script


Functionality: This script performs truncation of all the tables that are specified in file XXX_Tables_PS.list (transaction and load information of a module). Referring Documents: FILE NAME XXX_Tables_PS.list Description: 1. 2. 3. 4. The script is used for truncate the tables. It checks for the presence of the table entries in XXX_Tables_PS.list file. Then it will truncate the table. The log file will be created in temp directory (XXX_Truncate_table_name_??????????????_Script.log). PATH /amex/ platform/envrn /deployment/util

Script Name: Cleanup Files Script


Functionality: This script performs all post processing file cleanup that are specified in XXX_cleanupDeleteList.dat and XXX_cleanupArchiveList.dat Referring Documents: FILE NAME XXX_cleanupDeleteLis t.dat XXX_cleanupArchiveLi st.dat Description: 1. The script is used to delete the files that are specified in XXX_cleanupDeleteList.dat and to archive the files that are specified in XXX_cleanupArchiveList.dat. PATH /amex/ platform/envrn /temp /amex/ platform/envrn /temp

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)

You might also like