Tuesday, August 23, 2011

Process first Emplid in XML

<?for-each:EMPLID[position() = 1]?>

Wednesday, March 9, 2011

Set Distribution Status

When the process has run, and cannot post the file(s) (maybe the files are too large) and you can't fix it via the process monitor.
UPDATE PSPRCSRQST
SET DISTSTATUS='4' 
WHERE PRCSINSTANCE=:1 
AND DISTSTATUS='7'
/
UPDATE PSPRCSQUE 
SET DISTSTATUS='4' 
WHERE PRCSINSTANCE=:1 
AND DISTSTATUS='7'
/
DELETE FROM  PS_CDM_TRANSFER
/
-- DISTSTATUS OF 7 = Posting
-- DISTSTATUS OF 4 = Not Posted