Job Conversion
Job Conversion
Job Conversion
SECTION:HCBNW50
UPDATE PS_JOB
SET BENEFIT_SYSTEM='OT'
WHERE NOT EXISTS (
SELECT 'X'
FROM PS_EMPLOYMENT A
, PS_BEN_PROG_PARTIC B
WHERE A.EMPLID=PS_JOB.EMPLID
AND A.EMPL_RCD=PS_JOB.EMPL_RCD
AND B.EMPLID=A.EMPLID
AND B.EMPL_RCD=A.BENEFIT_RCD_NBR
AND B.EFFDT <= PS_JOB.EFFDT)
AE: UPG_HR88
STEP01 PEOPLECODE
UPG_HR_AET.ACTION = "SF2";
UPG_HR_AET.ACTION_DATA_ENTRY = "BON";
SECTION:HCHRI90
STEP 38 SQL
UPDATE PS_JOB
SET ACTION = %Bind(ACTION_DATA_ENTRY)
WHERE ACTION = %Bind(ACTION)
AE: UPG_HC81
SECTION:HCHCG08
STEP01 SQL
UPDATE PS_JOB
SET CURRENCY_CD1 = CURRENCY_CD
STEP02 SQL
UPDATE PS_JOB
SET SETID_LBR_AGRMNT = (
SELECT DISTINCT A.SETID
FROM PS_SET_CNTRL_GROUP A
WHERE A.REC_GROUP_ID = (
SELECT B.REC_GROUP_ID
FROM PS_REC_GROUP_REC B
WHERE B.RECNAME = 'EMPL_CTG')
AND A.SETCNTRLVALUE = PS_JOB.REG_REGION)
WHERE PS_JOB.LABOR_AGREEMENT <> ' '
AND PS_JOB.REG_REGION <> ' '
AND EXISTS (
SELECT 'X'
FROM PS_SET_CNTRL_GROUP C
,PS_REC_GROUP_REC D
WHERE C.SETCNTRLVALUE = PS_JOB.REG_REGION
AND C.REC_GROUP_ID = D.REC_GROUP_ID
AND D.RECNAME = 'EMPL_CTG')
SECTION:HCHCG09
STEP01 Do Select
%Select(UPG_HC_AET.REG_REGION)
SELECT DISTINCT A.REG_REGION FROM PS_JOB A , PS_REG_REGION_TBL B
WHERE B.COUNTRY = 'NLD' AND A.REG_REGION = B.REG_REGION
SECTION:HCHCG091
UPDATE PS_JOB
SET EMPL_CLASS = 'T'
WHERE REG_REGION = %Bind(REG_REGION)
AND EMPL_CLASS IN ('I','P')
SECTION:HCHCG091
UPDATE PS_JOB
SET EMPL_CLASS = 'R'
WHERE REG_REGION = %Bind(REG_REGION)
AND EMPL_CLASS = 'C'
SECTION:HCHCG091
SECTION:HCHCG10a
STEP03 SQL
UPDATE PS_JOB
SET LDW_OVR = (
SELECT LDW_OVR
FROM PS_UPG_JOB_DT_TMP TMP7
WHERE PS_JOB.EMPLID = TMP7.EMPLID
AND PS_JOB.EMPL_RCD = TMP7.EMPL_RCD
AND PS_JOB.EFFDT = TMP7.EFFDT
AND PS_JOB.EFFSEQ = TMP7.EFFSEQ
AND TMP7.LDW_OVR = 'Y')
WHERE EXISTS(
SELECT 'X'
FROM PS_UPG_JOB_DT_TMP TMP8
WHERE PS_JOB.EMPLID = TMP8.EMPLID
AND PS_JOB.EMPL_RCD = TMP8.EMPL_RCD
AND PS_JOB.EFFDT = TMP8.EFFDT
AND PS_JOB.EFFSEQ = TMP8.EFFSEQ
AND TMP8.LDW_OVR = 'Y')
SECTION:HCHCG52A
STEP03 SQL
UPDATE PS_JOB
SET SUPERVISOR_ID = (
SELECT GJ.REPORTS_TO
FROM PS_GVT_JOB GJ
WHERE GJ.EMPLID = PS_JOB.EMPLID
AND GJ.EMPL_RCD = PS_JOB.EMPL_RCD
AND GJ.EFFDT = PS_JOB.EFFDT
AND GJ.EFFSEQ = PS_JOB.EFFSEQ)
WHERE EXISTS (
SELECT GJ1.SUPERVISOR_ID
FROM PS_GVT_JOB GJ1
WHERE GJ1.EMPLID = PS_JOB.EMPLID
AND GJ1.EMPL_RCD = PS_JOB.EMPL_RCD
AND GJ1.EFFDT = PS_JOB.EFFDT
AND GJ1.EFFSEQ = PS_JOB.EFFSEQ)
SECTION:HCHCG52A
STEP04 SQL
UPDATE PS_JOB
SET REPORTS_TO = (
SELECT GJ.REPORTS_TO
FROM PS_GVT_JOB GJ
WHERE GJ.EMPLID = PS_JOB.EMPLID
AND GJ.EMPL_RCD = PS_JOB.EMPL_RCD
AND GJ.EFFDT = PS_JOB.EFFDT
AND GJ.EFFSEQ = PS_JOB.EFFSEQ)
WHERE EXISTS (
SELECT GJ1.REPORTS_TO
FROM PS_GVT_JOB GJ1
WHERE GJ1.EMPLID = PS_JOB.EMPLID
AND GJ1.EMPL_RCD = PS_JOB.EMPL_RCD
AND GJ1.EFFDT = PS_JOB.EFFDT
AND GJ1.EFFSEQ = PS_JOB.EFFSEQ)
SECTION:HCHCG57
STEP01 SQL
UPDATE PS_JOB
SET MAIN_APPT_NUM_JPN=EMPL_RCD
WHERE APPT_TYPE IN ('0','2')
SECTION:HCPYG10A
STEP01 SQL
%TruncateTable(PS_UPG801JOBTMP)
SECTION:HCPYG10A
STEP01a SQL
%TruncateTable(PS_ALTOT_JOBKEYS)
SECTION:HCPYG10A
STEP02 SQL
%Select(UPG_ALTOT_AET.UPG_ALTOT_EFFDT)
SELECT %DateOut(UPG_ALTOT_EFFDT) FROM PS_UPG_PY_ALTOT_DT
SECTION:HCPYG10B
STEP01 Do Select
%Select(UPG_ALTOT_AET.STATE)
SELECT STATE FROM PS_UPG_PY_ALTOT_ST
Peoplecode
SECTION:HCPYG10B
STEP02 Peoplesoft
STEP03 SQL
SECTION:HCPYG10C
STEP01 SQL
SECTION:HCPYG10C
STEP02 SQL
SECTION:HCPYG10C
STEP03 SQL
UPDATE PS_JOB
SET FLSA_STATUS = 'V', LASTUPDDTTM = %CurrentDateTimeIn, LASTUPDOPRID = 'PPLSOFT'
AE: UPG_HC88
SECTION: HCHCI11
UPDATE PS_JOB
SET APPT_TYPE = '2'
WHERE EXISTS (
SELECT 'X'
FROM PS_FPAEEPOST_TBL
WHERE PS_JOB.EMPLID = PS_FPAEEPOST_TBL.EMPLID
AND PS_JOB.EMPL_RCD = PS_FPAEEPOST_TBL.EMPL_RCD)
SECTION: HCHCI13
UPDATE PS_JOB
SET EXPECTED_END_DATE = (
SELECT JR1.EXPECTED_END_DATE
FROM PS_JOB_JR JR1
WHERE PS_JOB.EMPLID = JR1.EMPLID
AND PS_JOB.EMPL_RCD = JR1.EMPL_RCD
AND PS_JOB.EFFDT = JR1.EFFDT
AND PS_JOB.EFFSEQ = JR1.EFFSEQ)
SECTION: HCHCI13
UPDATE PS_JOB
SET AUTO_END_FLG = (
SELECT JR2.AUTO_END_FLG
FROM PS_JOB_JR JR2
WHERE PS_JOB.EMPLID = JR2.EMPLID
AND PS_JOB.EMPL_RCD = JR2.EMPL_RCD
AND PS_JOB.EFFDT = JR2.EFFDT
AND PS_JOB.EFFSEQ = JR2.EFFSEQ
AND JR2.AUTO_END_FLG = 'Y')
WHERE EXISTS(
SELECT 'X'
FROM PS_JOB_JR JR3
WHERE PS_JOB.EMPLID = JR3.EMPLID
AND PS_JOB.EMPL_RCD = JR3.EMPL_RCD
AND PS_JOB.EFFDT = JR3.EFFDT
AND PS_JOB.EFFSEQ = JR3.EFFSEQ
AND JR3.AUTO_END_FLG = 'Y')
SECTION: HCHCI13
UPDATE PS_JOB
SET LDW_OVR = (
SELECT LDW_OVR
FROM PS_UPG_JOB_DT_TMP TMP7
WHERE PS_JOB.EMPLID = TMP7.EMPLID
AND PS_JOB.EMPL_RCD = TMP7.EMPL_RCD
AND PS_JOB.EFFDT = TMP7.EFFDT
AND PS_JOB.EFFSEQ = TMP7.EFFSEQ
AND TMP7.LDW_OVR = 'Y')
WHERE EXISTS(
SELECT 'X'
FROM PS_UPG_JOB_DT_TMP TMP8
WHERE PS_JOB.EMPLID = TMP8.EMPLID
AND PS_JOB.EMPL_RCD = TMP8.EMPL_RCD
AND PS_JOB.EFFDT = TMP8.EFFDT
AND PS_JOB.EFFSEQ = TMP8.EFFSEQ
AND TMP8.LDW_OVR = 'Y')
SECTION: HCHCI14
UPDATE PS_JOB
SET SUPV_LVL_ID = (
SELECT JR.SUPV_LVL_ID
FROM PS_JOB_JR JR
WHERE PS_JOB.EMPLID = JR.EMPLID
AND PS_JOB.EMPL_RCD = JR.EMPL_RCD
AND PS_JOB.EFFDT = JR.EFFDT
AND PS_JOB.EFFSEQ = JR.EFFSEQ)
WHERE EXISTS (
SELECT 'X'
FROM PS_JOB_JR C
WHERE C.EMPLID = PS_JOB.EMPLID
AND C.EMPL_RCD = PS_JOB.EMPL_RCD
AND C.EFFDT = PS_JOB.EFFDT
AND C.EFFSEQ = PS_JOB.EFFSEQ )
SECTION: HCHCW03
UPDATE PS_JOB
SET ESTABID = (
SELECT A.ESTABID
FROM PS_LOCATION_TBL A
WHERE A.SETID = PS_JOB.SETID_LOCATION
AND A.LOCATION = PS_JOB.LOCATION
AND A.LOCATION IN (
SELECT B.LOCATION
FROM PS_LOCATION_TBL B
WHERE B.COUNTRY = 'USA')
AND A.EFFDT = (
SELECT MAX(C.EFFDT)
FROM PS_LOCATION_TBL C
WHERE C.SETID = A.SETID
AND C.LOCATION = A.LOCATION
AND C.EFFDT <= PS_JOB.EFFDT))
WHERE ESTABID = ' '
AND EXISTS (
SELECT 'X'
FROM PS_LOCATION_TBL D
WHERE D.COUNTRY = 'USA'
AND PS_JOB.SETID_LOCATION = D.SETID
AND PS_JOB.LOCATION = D.LOCATION
AND D.EFFDT <= PS_JOB.EFFDT)
SECTION: HCHCW04
UPDATE PS_JOB
SET BENEFIT_SYSTEM = 'OT'
WHERE PAY_SYSTEM_FLG = 'GP'
AND GP_PAYGROUP NOT IN (
SELECT GP.GP_PAYGROUP
FROM PS_GP_PYGRP GP
, PS_GP_PYENT E
WHERE E.PAY_ENTITY=GP.PAY_ENTITY
AND E.COUNTRY='USA')
SECTION: HCHCW16
UPDATE PS_JOB
SET HIRE_DT = (
SELECT A.HIRE_DT
FROM PS_UPG_JOB_DT_TMP A
WHERE A.EMPLID =PS_JOB.EMPLID
AND A.EMPL_RCD =PS_JOB.EMPL_RCD
AND A.EFFDT =PS_JOB.EFFDT
AND A.EFFSEQ =PS_JOB.EFFSEQ), LAST_HIRE_DT = (
SELECT A.LAST_HIRE_DT
FROM PS_UPG_JOB_DT_TMP A
WHERE A.EMPLID =PS_JOB.EMPLID
AND A.EMPL_RCD =PS_JOB.EMPL_RCD
AND A.EFFDT =PS_JOB.EFFDT
AND A.EFFSEQ =PS_JOB.EFFSEQ), ASGN_START_DT = (
SELECT A.ASGN_START_DT
FROM PS_UPG_JOB_DT_TMP A
WHERE A.EMPLID =PS_JOB.EMPLID
AND A.EMPL_RCD =PS_JOB.EMPL_RCD
AND A.EFFDT =PS_JOB.EFFDT
AND A.EFFSEQ =PS_JOB.EFFSEQ), LST_ASGN_START_DT = (
SELECT A.LST_ASGN_START_DT
FROM PS_UPG_JOB_DT_TMP A
WHERE A.EMPLID =PS_JOB.EMPLID
AND A.EMPL_RCD =PS_JOB.EMPL_RCD
AND A.EFFDT =PS_JOB.EFFDT
AND A.EFFSEQ =PS_JOB.EFFSEQ), TERMINATION_DT = (
SELECT A.TERMINATION_DT
FROM PS_UPG_JOB_DT_TMP A
WHERE A.EMPLID =PS_JOB.EMPLID
AND A.EMPL_RCD =PS_JOB.EMPL_RCD
AND A.EFFDT =PS_JOB.EFFDT
AND A.EFFSEQ =PS_JOB.EFFSEQ), ASGN_END_DT = (
SELECT A.ASGN_END_DT
FROM PS_UPG_JOB_DT_TMP A
WHERE A.EMPLID =PS_JOB.EMPLID
AND A.EMPL_RCD =PS_JOB.EMPL_RCD
AND A.EFFDT =PS_JOB.EFFDT
AND A.EFFSEQ =PS_JOB.EFFSEQ), LAST_DATE_WORKED = (
SELECT A.LAST_DATE_WORKED
FROM PS_UPG_JOB_DT_TMP A
WHERE A.EMPLID =PS_JOB.EMPLID
AND A.EMPL_RCD =PS_JOB.EMPL_RCD
AND A.EFFDT =PS_JOB.EFFDT
AND A.EFFSEQ =PS_JOB.EFFSEQ)
SECTION: HCHCW16
UPDATE PS_JOB
SET EXPECTED_RETURN_DT = (
SELECT A.EXPECTED_RETURN_DT
FROM PS_EMPLOYMENT A
WHERE A.EMPLID = PS_JOB.EMPLID
AND A.EMPL_RCD = PS_JOB.EMPL_RCD
AND A.EXPECTED_RETURN_DT IS NOT NULL)
WHERE EFFDT = (
SELECT DISTINCT MAX(B.EFFDT)
FROM PS_UPG_JOB_DT_TMP B
WHERE B.EMPLID = PS_JOB.EMPLID
AND B.EMPL_RCD = PS_JOB.EMPL_RCD
AND B.ACTION IN ('LOA' ,'LOF' ,'LTD' ,'LTO' ,'PLA' ,'STD' ,'STO' ,'SUB' ,'SUS')
AND EFFDT < (
SELECT A1.EXPECTED_RETURN_DT
FROM PS_EMPLOYMENT A1
WHERE A1.EMPLID = PS_JOB.EMPLID
AND A1.EMPL_RCD = PS_JOB.EMPL_RCD
AND A1.EXPECTED_RETURN_DT IS NOT NULL))
SECTION: HCHCW16
UPDATE PS_JOB
SET TERMINATION_DT = (
SELECT B.TERMINATION_DT
FROM PS_UPG_JOB_DT_TMP B
WHERE PS_JOB.EMPLID = B.EMPLID
AND PS_JOB.EMPL_RCD = B.EMPL_RCD
AND B.EFFDT = (
SELECT MAX(C.EFFDT)
FROM PS_UPG_JOB_DT_TMP C
WHERE C.EMPLID = B.EMPLID
AND C.EMPL_RCD = B.EMPL_RCD
AND C.EFFDT <= PS_JOB.EFFDT
AND C.TERMINATION_DT IS NOT NULL)
AND (B.EFFSEQ = (
SELECT MAX(D.EFFSEQ)
FROM PS_UPG_JOB_DT_TMP D
WHERE D.EMPLID = B.EMPLID
AND D.EMPL_RCD = B.EMPL_RCD
AND D.EFFDT = B.EFFDT
AND D.EFFDT = PS_JOB.EFFDT
AND D.EFFSEQ < PS_JOB.EFFSEQ
AND D.TERMINATION_DT IS NOT NULL)
OR B.EFFSEQ = (
SELECT MAX(E.EFFSEQ)
FROM PS_UPG_JOB_DT_TMP E
WHERE E.EMPLID = B.EMPLID
AND E.EMPL_RCD = B.EMPL_RCD
AND E.EFFDT = B.EFFDT
AND E.EFFDT <> PS_JOB.EFFDT
AND E.TERMINATION_DT IS NOT NULL)))
WHERE TERMINATION_DT IS NULL
AND EMPL_STATUS NOT IN ('A','L','S','P','W')
SECTION: HCHCW16
UPDATE PS_JOB
SET LAST_DATE_WORKED = (
SELECT B.LAST_DATE_WORKED
FROM PS_UPG_JOB_DT_TMP B
WHERE PS_JOB.EMPLID = B.EMPLID
AND PS_JOB.EMPL_RCD = B.EMPL_RCD
AND B.EFFDT = (
SELECT MAX(C.EFFDT)
FROM PS_UPG_JOB_DT_TMP C
WHERE C.EMPLID = B.EMPLID
AND C.EMPL_RCD = B.EMPL_RCD
AND C.EFFDT <= PS_JOB.EFFDT
AND C.LAST_DATE_WORKED IS NOT NULL)
AND (B.EFFSEQ = (
SELECT MAX(D.EFFSEQ)
FROM PS_UPG_JOB_DT_TMP D
WHERE D.EMPLID = B.EMPLID
AND D.EMPL_RCD = B.EMPL_RCD
AND D.EFFDT = B.EFFDT
AND D.EFFDT = PS_JOB.EFFDT
AND D.EFFSEQ < PS_JOB.EFFSEQ
AND D.LAST_DATE_WORKED IS NOT NULL)
OR B.EFFSEQ = (
SELECT MAX(E.EFFSEQ)
FROM PS_UPG_JOB_DT_TMP E
WHERE E.EMPLID = B.EMPLID
AND E.EMPL_RCD = B.EMPL_RCD
AND E.EFFDT = B.EFFDT
AND E.EFFDT <> PS_JOB.EFFDT
AND E.LAST_DATE_WORKED IS NOT NULL)))
WHERE LAST_DATE_WORKED IS NULL
AND EMPL_STATUS NOT IN ('A','L','S','P','W')
SECTION: HCHCW16
UPDATE PS_JOB
SET LAST_DATE_WORKED = %Bind(LAST_DATE_WORKED) , TERMINATION_DT =
%Bind(MAR_STATUS_DT) , ASGN_END_DT = %Bind(BEGIN_DT)
WHERE EMPLID = %Bind(EMPLID)
AND EMPL_RCD = %Bind(EMPL_RCD)
AND EFFDT = %Bind(EFFDT)
AND EFFSEQ = %Bind(EFFSEQ)
AND ACTION IN
('ASC' ,'COM' ,'LOF' ,'PRE' ,'RET' ,'RTS' ,'RWP' ,'SFN' ,'TER' ,'TWB' ,'TWP')
SECTION: HCHCW16
UPDATE PS_JOB
SET LDW_OVR = (
SELECT LDW_OVR
FROM PS_UPG_JOB_DT_TMP B
WHERE PS_JOB.EMPLID = B.EMPLID
AND PS_JOB.EMPL_RCD = B.EMPL_RCD
AND B.EFFDT = (
SELECT MAX(EFFDT)
FROM PS_UPG_JOB_DT_TMP C
WHERE C.EMPLID = B.EMPLID
AND C.EMPL_RCD = B.EMPL_RCD
AND C.EFFDT <= PS_JOB.EFFDT
AND C.LDW_OVR = 'Y')
AND ( B.EFFSEQ = (
SELECT MAX(EFFSEQ)
FROM PS_UPG_JOB_DT_TMP D
WHERE D.EMPLID = B.EMPLID
AND D.EMPL_RCD = B.EMPL_RCD
AND D.EFFDT = B.EFFDT
AND D.EFFDT = PS_JOB.EFFDT
AND D.EFFSEQ < PS_JOB.EFFSEQ
AND D.LDW_OVR = 'Y')
OR B.EFFSEQ = (
SELECT MAX(EFFSEQ)
FROM PS_UPG_JOB_DT_TMP E
WHERE E.EMPLID = B.EMPLID
AND E.EMPL_RCD = B.EMPL_RCD
AND E.EFFDT = B.EFFDT
AND E.EFFDT <> PS_JOB.EFFDT
AND E.LDW_OVR = 'Y') ) )
WHERE EMPL_STATUS NOT IN ('A','L','S','P','W')
AND EXISTS(
SELECT 'X'
FROM PS_UPG_JOB_DT_TMP B1
WHERE PS_JOB.EMPLID = B1.EMPLID
AND PS_JOB.EMPL_RCD = B1.EMPL_RCD
AND B1.EFFDT = (
SELECT MAX(EFFDT)
FROM PS_UPG_JOB_DT_TMP C1
WHERE C1.EMPLID = B1.EMPLID
AND C1.EMPL_RCD = B1.EMPL_RCD
AND C1.EFFDT <= PS_JOB.EFFDT
AND C1.LDW_OVR = 'Y')
AND ( B1.EFFSEQ = (
SELECT MAX(EFFSEQ)
FROM PS_UPG_JOB_DT_TMP D1
WHERE D1.EMPLID = B1.EMPLID
AND D1.EMPL_RCD = B1.EMPL_RCD
AND D1.EFFDT = B1.EFFDT
AND D1.EFFDT = PS_JOB.EFFDT
AND D1.EFFSEQ < PS_JOB.EFFSEQ
AND D1.LDW_OVR = 'Y')
OR B1.EFFSEQ = (
SELECT MAX(EFFSEQ)
FROM PS_UPG_JOB_DT_TMP E1
WHERE E1.EMPLID = B1.EMPLID
AND E1.EMPL_RCD = B1.EMPL_RCD
AND E1.EFFDT = B1.EFFDT
AND E1.EFFDT <> PS_JOB.EFFDT
AND E1.LDW_OVR = 'Y' ) ))
SECTION: HCHCW16
UPDATE PS_JOB
SET POI_TYPE = (
SELECT W.POI_TYPE
FROM PS_PER_ORG_ASGN W
WHERE PS_JOB.EMPLID = W.EMPLID
AND PS_JOB.EMPL_RCD = W.EMPL_RCD )
WHERE EMPL_RCD IN (
SELECT B.EMPL_RCD
FROM PS_PER_ORG_ASGN B
WHERE PS_JOB.EMPLID = B.EMPLID)
SECTION: HCHCW16
UPDATE PS_JOB
SET PER_ORG = (
SELECT W.PER_ORG
FROM PS_PER_ORG_ASGN W
WHERE PS_JOB.EMPLID = W.EMPLID
AND PS_JOB.EMPL_RCD = W.EMPL_RCD )
WHERE EXISTS (
SELECT 'X'
FROM PS_PER_ORG_ASGN B
WHERE PS_JOB.EMPLID = B.EMPLID
AND PS_JOB.EMPL_RCD = B.EMPL_RCD)
SECTION: HCHCW16
UPDATE PS_JOB
SET ACTION = 'POI'
WHERE PER_ORG = 'POI'
AND ACTION = 'ADD'
SECTION: HCHCW16
UPDATE PS_JOB
SET HR_STATUS = 'I'
WHERE EMPL_STATUS IN ('T','U','V','X','R','D','Q')
SECTION: HCHCW16
UPDATE PS_JOB
SET SETID_SUPV_LVL = (
SELECT A.SETID
FROM PS_SET_CNTRL_REC A
WHERE A.RECNAME = 'SUPVSR_LVL_TBL'
AND A.SETCNTRLVALUE = PS_JOB.BUSINESS_UNIT )
WHERE EXISTS (
SELECT 'X'
FROM PS_SET_CNTRL_REC B
WHERE B.RECNAME = 'SUPVSR_LVL_TBL'
AND B.SETCNTRLVALUE = PS_JOB.BUSINESS_UNIT )
SECTION: HCHCW16
UPDATE PS_JOB
SET STD_HOURS = 0
WHERE EXISTS (
SELECT 'X'
FROM PS_REG_REGION_TBL A
WHERE A.REG_REGION = PS_JOB.REG_REGION
AND A.COUNTRY IN ('AUS', 'NZL') )
AND STD_HOURS < 1
AND FULL_PART_TIME = 'P'
AND COMP_FREQUENCY = 'H'
AND NOT EXISTS (
SELECT 'X'
FROM PS_COMPENSATION B
WHERE B.EMPLID = PS_JOB.EMPLID
AND B.EMPL_RCD = PS_JOB.EMPL_RCD
AND B.EFFDT = PS_JOB.EFFDT
AND B.EFFSEQ = PS_JOB.EFFSEQ
AND B.COMP_FREQUENCY <> 'H')
SECTION: HCPYI10A
%Select(UPG_ALTOT_AET.UPG_ALTOT_EFFDT)
SELECT %DateOut(UPG_ALTOT_EFFDT)
FROM PS_UPG_PY_ALTOT_DT
SECTION: HCPYI10B
Peoplecode
SECTION: HCPYI10B
SECTION: HCPYI10B
SECTION: HCPYI10C
SECTION: HCPYI10C
SECTION: HCPYW10K
%SelectInit(UPG_HC_AET.EMPLID, UPG_HC_AET.POSITION_NBR)
SELECT A.EMPLID
, B.POSITION_NBR
FROM PS_JOB A
,PS_POSITION_DATA B
WHERE A.POSITION_NBR = B.POSITION_NBR
AND A.FLSA_STATUS = 'V'
AND A.EFFDT = %Bind(UPG_ALTOT_AET.UPG_ALTOT_EFFDT)
SECTION: HCPYW10M
%SelectInit(UPG_HC_AET.AE_TEST_FLAG)
SELECT 'X'
FROM PS_INSTALLATION
WHERE POSITION_MGMT = 'F'
SECTION: HCPYW10M
UPDATE PS_JOB
SET ACTION = 'POS', ACTION_REASON = 'UPD'
WHERE EMPLID = %Bind(UPG_HC_AET.EMPLID)
AND POSITION_NBR = %Bind(UPG_HC_AET.POSITION_NBR)
AND EFFDT = %Bind(UPG_ALTOT_AET.UPG_ALTOT_EFFDT)
AND FLSA_STATUS = 'V'
SECTION: HCPYW10M
%SelectInit(UPG_HC_AET.AE_TEST_FLAG)
SELECT 'X'
FROM PS_INSTALLATION
WHERE POSITION_MGMT = 'P'
STEP 020 ACTION Peoplecode
UPG_HC_AET.SEQ_NBR = UPG_HC_AET.SEQ_NBR + 1;
UPDATE PS_JOB
SET POSITION_OVERRIDE = 'Y'
WHERE EMPLID = %Bind(UPG_HC_AET.EMPLID)
AND POSITION_NBR = %Bind(UPG_HC_AET.POSITION_NBR)
AND EFFDT >= %Bind(UPG_ALTOT_AET.UPG_ALTOT_EFFDT)
AND FLSA_STATUS = 'V'