0% found this document useful (0 votes)
92 views5 pages

Sample ETEXT

The document defines a template for formatting employee data records with comma-delimited fields. It lists each field name, format, and comments. Fields include name, gender, employee ID, SSN, dates of hire, birth, address, phone numbers, department, and termination date. The template will format the employee data for output with commas between each field.

Uploaded by

Yuvaraj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
92 views5 pages

Sample ETEXT

The document defines a template for formatting employee data records with comma-delimited fields. It lists each field name, format, and comments. Fields include name, gender, employee ID, SSN, dates of hire, birth, address, phone numbers, department, and termination date. The template will format the employee data for output with commas between each field.

Uploaded by

Yuvaraj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 5

Format Setup:

Hint: Define formatting options…


<TEMPLATE TYPE> DELIMITER_BASED
<OUTPUT CHARACTER SET> iso-8859-1
<NEW RECORD CHARACTER> Carriage Return

<LEVEL> DATA_DS
<MAXIMUM
<FORMAT> <DATA> <COMMENTS>
LENGTH>
<NEW RECORD> DATA_DS
Alpha ‘First Name’ First Name
Alpha ‘,’ ‘,’
Alpha ‘Last Name’ Last Name
Alpha ‘,’ ‘,’
Alpha ‘Gender’ Gender
Alpha ‘,’ ‘,’
Alpha ‘Employee ID Number’ Employee ID Number
Alpha ‘,’ ‘,’
Alpha ‘SSN’ SSN
Alpha ‘,’ ‘,’
Alpha ‘Date of Hire’ Date of Hire
Alpha ‘,’ ‘,’
Alpha ‘Rehire Date’ Rehire Date
Alpha ‘,’ ‘,’
Alpha ‘Date of Birth’ Date of Birth
Alpha ‘,’ ‘,’
Alpha ‘Address’ ‘Address’
Alpha ‘,’ ‘,’
Alpha ‘City’ City
Alpha ‘,’ ‘,’
Alpha ‘State’ State
Alpha ‘,’ ‘,’
Alpha ‘Zip’ Zip
Alpha ‘,’ ‘,’
Alpha ‘Telephone’ Telephone
Alpha ‘,’ ‘,’
Alpha ‘Alternate Phone’ Alternate Phone
Alpha ‘,’ ‘,’
Alpha ‘Location’ Location
Alpha ‘,’ ‘,’
Alpha ‘Department’ Department
Alpha ‘,’ ‘,’
Alpha ‘Shift’ Shift
Alpha ‘,’ ‘,’
Alpha ‘Contract Group’ Contract Group
Alpha ‘,’ ‘,’
Alpha ‘Time Zone’ Time Zone
Alpha ‘,’ ‘,’
Alpha ‘Key Employee’ Key Employee
Alpha ‘,’ ‘,’
Alpha ‘Termination Date’ Termination Date
Alpha ‘,’ ‘,’
Alpha ‘Alternate Employee ID’ Alternate Employee ID
Alpha ‘,’ ‘,’
Alpha ‘SUI/SDI Tax Code’ SUI/SDI Tax Code
Alpha ‘,’ ‘,’
Alpha ‘Exempt’ Exempt
Alpha ‘,’ ‘,’
Alpha ‘Email’ Email
Alpha ‘,’ ‘,’
Alpha ‘Union’ ‘Union’
Alpha ‘,’ ‘,’
Alpha ‘Category’ ‘Category’
<END LEVEL> DATA_DS

<LEVEL> Emp_DG
<MAXIMUM
<FORMAT> <DATA> <COMMENTS>
LENGTH>
<NEW RECORD> Emp_Rec
Alpha ‘”’||First_Name||’”’ First Name
Alpha ‘,’ ‘,’
Alpha ‘”’||Last_Name||’”’ Last Name
Alpha ‘,’ ‘,’
Alpha ‘”’||Gender||’”’ Gender
Alpha ‘,’ ‘,’
Alpha IF ../ parameters/ Location = Employee ID Number
‘WMH’ THEN
‘”’||Clock_Number||’”’
ELSE
‘”’||TRIM(Person_Number)||’”’
END IF
Alpha ‘,’ ‘,’
Alpha ‘”’||SUBSTR(SSN,8,4)||’”’ SSN
Alpha ‘,’ ‘,’
Alpha ’”’ Alpha
Date, MM/DD/YYYY Original_Hire_Date Date of Hire
Alpha ’”’ ’”’
Alpha ‘,’ ‘,’
Alpha ’”’ ’”’
Date, MM/DD/YYYY IF Rehire_Date = Rehire Date
Original_Hire_Date
THEN
‘’
ELSE
Rehire_Date
END IF
Alpha ’”’ Alpha
Alpha ‘,’ ‘,’
Alpha ’”’ Alpha
Date, MM/DD/YYYY Birth_Date Date of Birth
Alpha ’”’ ’”’
Alpha ‘,’ ‘,’
Alpha ‘”’||Address_Line1||' '|| Address
Address_Line2||’”’
Alpha ‘,’ ‘,’
Alpha ‘”’||City||’”’ City
Alpha ‘,’ ‘,’
Alpha ‘”’||State||’”’ State
Alpha ‘,’ ‘,’
Alpha ‘”’||Postal_Code||’”’ Zip
Alpha ‘,’ ‘,’
Alpha IF Home_Phone IS NOT NULL THEN Telephone
‘”’||
LPAD(REPLACE(REPLACE(REPLACE(RE
PLACE(REPLACE(Home_Phone,'/'),'
-'),' '),'('),')'),10,'0')||’”’
ELSIF Work_Phone IS NOT NULL
THEN
‘”’||
LPAD(REPLACE(REPLACE(REPLACE(RE
PLACE(REPLACE(Work_Phone,'/'),'
-'),' '),'('),')'),10,'0')||’”’
ELSE
‘”’||
LPAD(REPLACE(REPLACE(REPLACE(RE
PLACE(REPLACE(Mobile_Phone,'/')
,'-'),'
'),'('),')'),10,'0')||’”’
END IF
Alpha ‘,’ ‘,’
Alpha IF Home_Phone IS NOT NULL AND Alternate Phone
Mobile_Phone IS NOT NULL THEN
‘”’||
LPAD(REPLACE(REPLACE(REPLACE(RE
PLACE(REPLACE(Mobile_Phone,'/')
,'-'),'
'),'('),')'),10,'0')||’”’
ELSE
'0000000000'
END IF
Alpha ‘,’ ‘,’
Alpha ‘”’||Location||’”’ Location
Alpha ‘,’ ‘,’
Alpha ‘”’||Department||’”’ Department
Alpha ‘,’ ‘,’
Alpha ’”’||Shift||’”’ Shift
Alpha ‘,’ ‘,’
Alpha ’”’ ’””’
Alpha IF ../ parameters/Location = Contract Group
'WMH' AND HOURLY_SALARIED_CODE
= 'E' THEN
'Whitehall2'
ELSIF ../ parameters/Location =
'WMH' AND HOURLY_SALARIED_CODE
= 'S' THEN
'Whitehall3'
ELSIF ../ parameters/Location =
'WMH' AND
NVL(HOURLY_SALARIED_CODE,'XX')
<> 'E' THEN
'Whitehall1'
ELSIF ../ parameters/Location =
'ATEP' THEN Location
ELSE NULL
END IF
Alpha ’”’ ’””’
Alpha ‘,’ ‘,’
Alpha ’”’||Timezone||’”’ Time Zone
Alpha ‘,’ ‘,’
Alpha ’””’ Key Employee
Alpha ‘,’ ‘,’
Alpha ’”’ ’”’
Date, MM/DD/YYYY IF ../ parameters/Location = Termination Date
‘WMH’ OR ../
parameters/Location = ‘DAV’
THEN
IF
NVL(TO_DATE(SUBSTR(Actual_Term_
Date,1,10),'YYYY-MM-
DD'),TO_DATE('4712-12-
31','YYYY-MM-DD')) <
TO_DATE(../
parameters/effective_date,'YYYY
-MM-DD') THEN
Actual_Term_Date
END IF
ELSE
IF Asg_Status_Code =
'XXHR_LAY_SEP' THEN
Asg_Eff_Start_Date
ELSE
IF
NVL(TO_DATE(SUBSTR(Actual_Term_
Date,1,10),'YYYY-MM-
DD'),TO_DATE('4712-12-
31','YYYY-MM-DD')) <
TO_DATE(../
parameters/effective_date,'YYYY
-MM-DD') THEN
Actual_Term_Date
END IF
END IF
END IF
Alpha ’”’ ’”’
Alpha ‘,’ ‘,’
Alpha ’”’||TRIM(Person_Number)|| ’”’ Alternate Employee
ID
Alpha ‘,’ ‘,’
Alpha IF SDI_Tax_Code_ASG IS NOT NULL SUI/SDI Tax Code
THEN
‘”’|| SDI_Tax_Code_ASG ||’”’
ELSIF SDI_Tax_Code_LOC IS NOT
NULL THEN
‘”’||SDI_Tax_Code_LOC||’”’
ELSIF SDI_TAX_CODE_State IS NOT
NULL THEN
‘”’||SDI_TAX_CODE_State||’”’
END IF
Alpha ‘,’ ‘,’
Alpha ’”’
Alpha IF Exempt=’EXEMPT’ THEN ‘Yes’ Exempt
ELSIF Exempt=’NONEXEMPT’ THEN
‘No’
END IF
Alpha ’”’
Alpha ‘,’ ‘,’
Alpha ‘””’ Email
Alpha ‘,’ ‘,’
Alpha ’”’ ’”’
Alpha IF Union IS NOT NULL THEN Union
‘Yes’
ELSE ‘No’
END IF
Alpha ’”’ ’”’
Alpha ‘,’ ‘,’
Alpha ’”’||Category||’”’ Category
<END LEVEL> Emp_DG

You might also like