[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: [sqr-users] Change SQL to SQR
- Subject: Re: [sqr-users] Change SQL to SQR
- From: "Chuyen Do" <cdo@umuc.edu>
- Date: Mon, 13 Dec 2004 17:16:19 -0500
- Delivery-date: Mon, 13 Dec 2004 17:23:06 -0500
- List-id: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." <sqr-users.sqrug.org>
- Organization: University of Maryland University College
- References: <5B18132892A03F489AB45757BBD5C87201EB22C2@cepxmb12.cag.conagrafoods.net>
Thanks.
"Sengupta, Rajib (Contractor)" wrote:
>
> Change the "as Empl_ID_TO_TRANS" to &Empl_ID_TO_TRANS
> and do it for all of them
>
> Rajib Sengupta
> Systems Analyst and Team Lead
> Peoplesoft Financial Consultant
> Conagra Business Systems
> Phone: 402-595-5749
>
> -----Original Message-----
> From: sqr-users-bounces+rajib.sengupta=conagrafoods.com@sqrug.org
> [mailto:sqr-users-bounces+rajib.sengupta=conagrafoods.com@sqrug.org]On
> Behalf Of Chuyen Do
> Sent: Monday, December 13, 2004 2:23 PM
> To: SQR USERS
> Subject: [sqr-users] Change SQL to SQR
>
> Any body can Help me ?
> This select works for SQL Plus:
>
> Select mmis_mirror.mmis_student_master.ssan as Empl_ID_TO_TRANS,
> termmatch.termdt as EffDt_TO_TRANS,
> mmis_mirror.mmis_student_master.Apo_address_3 as Country_First_Logic,
> mmis_mirror.mmis_student_master.apo_address_1 as Address1,
> mmis_mirror.mmis_student_master.apo_address_2 as Address2,
> mmis_mirror.mmis_student_master.Apo_address_3 as Address3
> from mmis_mirror.mmis_student_master,
> (Select distinct(mmis_mirror.mmis_stu_course_regr.ssan) as termssn,
> mmis_mirror.stx_otd.beg_regist_date as termdt
> from mmis_mirror.mmis_stu_course_regr, mmis_mirror.stx_otd,
> (Select mmis_mirror.mmis_stu_course_regr.ssan as maxssn,
> max(mmis_mirror.mmis_stu_course_regr.acad_year_term) as maxtrm
> from mmis_mirror.mmis_stu_course_regr
> group by mmis_mirror.mmis_stu_course_regr.ssan) maxterm
> where mmis_mirror.mmis_stu_course_regr.ssan = maxterm.maxssn
> and mmis_mirror.stx_otd.acad_year_from||mmis_mirror.stx_otd.term_number
> = maxterm.maxtrm) termmatch
> where mmis_mirror.mmis_student_master.ssan = termmatch.termssn
> and mmis_mirror.mmis_student_master.ssan = 538022538;
>
> **********************************************
> Then I bring it into SQR program:
>
> BEGIN-SELECT DISTINCT on-error=db_error
>
> mmis_mirror.mmis_student_master.ssan as Empl_ID_TO_TRANS,
> termmatch.termdt as EffDt_TO_TRANS,
> mmis_mirror.mmis_student_master.Apo_address_3 as Country_First_Logic,
> mmis_mirror.mmis_student_master.apo_address_1 as Address1,
> mmis_mirror.mmis_student_master.apo_address_2 as Address2,
> mmis_mirror.mmis_student_master.Apo_address_3 as Address3
>
> SHOW 'I AM IN SELECT MAIL'
>
> from mmis_mirror.mmis_student_master,
> (Select distinct(mmis_mirror.mmis_stu_course_regr.ssan) as termssn,
> mmis_mirror.stx_otd.beg_regist_date as termdt
> from mmis_mirror.mmis_stu_course_regr, mmis_mirror.stx_otd,
> (Select mmis_mirror.mmis_stu_course_regr.ssan as maxssn,
> max(mmis_mirror.mmis_stu_course_regr.acad_year_term) as maxtrm
> from mmis_mirror.mmis_stu_course_regr
> group by mmis_mirror.mmis_stu_course_regr.ssan) maxterm
> where mmis_mirror.mmis_stu_course_regr.ssan = maxterm.maxssn
> and mmis_mirror.stx_otd.acad_year_from||mmis_mirror.stx_otd.term_number
> = maxterm.maxtrm) termmatch
> where mmis_mirror.mmis_student_master.ssan = termmatch.termssn
> and mmis_mirror.mmis_student_master.ssan = 538022538
>
> **********************************************
> These are error message SQR gave to me:
>
> Error on line 1134:
> (SQR 3729) SQL expression is missing &name or has unbalanced
> parentheses.
> mmis_mirror.mmis_student_master.ssan as Empl_ID_TO_TRANS,
>
> Error on line 1135:
> (SQR 3729) SQL expression is missing &name or has unbalanced
> parentheses.
> termmatch.termdt as EffDt_TO_TRANS,
>
> Error on line 1136:
> (SQR 3729) SQL expression is missing &name or has unbalanced
> parentheses.
> mmis_mirror.mmis_student_master.Apo_address_3 as Country_First_Logic,
>
> Error on line 1137:
> (SQR 3729) SQL expression is missing &name or has unbalanced
> parentheses.
> mmis_mirror.mmis_student_master.apo_address_1 as Address1,
>
> Error on line 1138:
> (SQR 3729) SQL expression is missing &name or has unbalanced
> parentheses.
> mmis_mirror.mmis_student_master.apo_address_2 as Address2,
>
> Error on line 1143:
> (SQR 3728) SQL expression not ended, perhaps missing &name.
> from mmis_mirror.mmis_student_master,
>
> Errors were found in the program file.
>
> SQR for PeopleSoft: Program Aborting.
>
> Thank you in advance.
>
> _______________________________________________
> sqr-users mailing list
> sqr-users@sqrug.org
> http://www.sqrug.org/mailman/listinfo/sqr-users
>
> ------------------------------------------------------------------------
> _______________________________________________
> sqr-users mailing list
> sqr-users@sqrug.org
> http://www.sqrug.org/mailman/listinfo/sqr-users
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users