[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
[sqr-users] PeopleSoft SQR, Calling PLSQL dynamically
- Subject: [sqr-users] PeopleSoft SQR, Calling PLSQL dynamically
- From: Joe Massian <jmassian@yahoo.com>
- Date: Fri, 29 Apr 2005 13:49:33 -0700 (PDT)
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- Delivery-date: Fri, 29 Apr 2005 15:50:38 -0500
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com;b=zhN67m3VKe4ZGxG1Vo5b82yUjxx9x3MuDUMlH2BfbPr/HHCaaHJh908qqCn1Ib25P0JafKhPtkBpU0KbuAjs66xJIgtaIvFS/lonFjwhrddv5LF8JsxAfEeCcq45FQbmBF6YCSpirvloQQ/ttjAFnTKnymF/4ogsnBxm2Osge2Q=;
- List-id: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." <sqr-users.sqrug.org>
My question is, do you know how I can call a PL SQL
package dynamically from a PeopleSoft run control
table?
I am entering the following into the RC table:
LOAD_FS_ZZ_JRNL_LN3_TO_EPM.LOAD_JRNL_LN3
These are my return variables: ($ERROR, $MESSAGE,
#SOURCE_COUNT, #TARGET_BEFORE_LOAD_COUNT,
#TARGET_AFTER_LOAD_COUNT)
My dynamic section looks like this so far..
Begin-SQL
!
Begin
!
[$EXECUTE_PACKAGE] ;;
!
End;;
!
End-SQL
I build the $EXECUTE_PACKAGE using the following:
Begin-Procedure Get-Input-Filename
!
! #ifdef debug
Display 'Entered Get-Input-Filename Procedure.'
! #endif
!
Begin-Select
!
REPORT_NAME &REPORT_NAME
FIELD2 &FIELD2
!
Let $Source_File = LTRIM(RTRIM(&REPORT_NAME, ' '),'
')
!
Let $Source_File = LTRIM(RTRIM(&FIELD2, ' '),' ')
Show '- Oracle PL/SQL package requested: ' &FIELD2
!
! Build PL/SQL package call for Oracle...
Let $EXECUTE_PACKAGE = &FIELD2 || '($ERROR,
$MESSAGE, #SOURCE_COUNT, #TARGET_BEFORE_LOAD_COUNT,
#TARGET_AFTER_LOAD_COUNT)'
Show '- Oracle PL/SQL Package built: '
$EXECUTE_PACKAGE
!
FROM PS_ZZ_PLSQL_RC_TBL
!
WHERE OPRID = $PRCS_OPRID
AND RUN_CNTL_ID = $PRCS_RUN_CNTL_ID
!
End-Select
!
! #ifdef debug
Display 'Exiting Get-Input-Filename Procedure.'
! endif
!
End-Procedure Get-Input-Filename
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users