From sqr-users-bounces@sqrug.org Sat Jul 01 00:02:11 2006 Date: Sat, 1 Jul 2006 00:00:02 -0400 From: Nathan Stratton Treadway Subject: [sqr-users] Monthly sqr-users Hints Posting sqr-users Mailing List Hints and Guidelines Nathan Stratton Treadway, Ray Ontko & Co. (nathanst@ontko.com) $Revision: 1.22 $ $Date: 2005/08/19 05:12:40 $ This document gathers in one location information about the sqr-users mail list. It includes instructions for changing your subscription settings (including unsubscribing), as well are guidelines for using the list. ______________________________________________________________________ Table of Contents 1. Changes Since Previous Version 2. Introduction 2.1 sqr-users Mailing List 2.2 sqr-users Hints and Guidelines Document 2.3 Related Mailing Lists 3. Interacting with the list server 3.1 Subscribing to the list 3.2 Unsubscribing from the list 3.3 When your email address changes 3.4 Digests 3.5 Obtaining your password 3.6 Problems 4. Posting to the sqr-users List 4.1 General Guidelines 4.2 Posting a Message 4.3 Replying to a Message 5. Job Announcements ______________________________________________________________________ 1. Changes Since Previous Version Changes since the version dated 2004/03/04: o New name and URL for "HyperionSQR" mailing list. 2. Introduction 2.1. sqr-users Mailing List The sqr-users mailing list was created to enable discussion related to the SQR database language from Hyperion (and to other products in the SQR product suite). Note: SQR used to be published by SQRIBE Technologies, which was merged into Brio Technology on August 3, 1999. Brio Technology changed its name to Brio Software in October 2001. On October 16, 2003, Hyperion acquired Brio Software. SQR and related applications have also been called "Brio.Report" and "Brio Reports". The mailing list is provided as a service of Ray Ontko & Co. A searchable archive of past postings to the mailing list is available from the SQR Users Group web site . 2.2. sqr-users Hints and Guidelines Document This document gives various hints and guidelines about the sqr-users mailing list. It will be posted approximately monthly to the mailing list so that new users can see it (and existing users can find it easily). An HTML version of the document is always available at http://www.sqrug.org/sqr-users/sqr-users-hints.html. If you have comments or suggestions about this document, please contact me directly at the address listed in the title section. This document is Copyright (C) 1999-2004 by Ray Ontko & Co. It may be freely copied and distributed provided it is not modified in any way and it retains the original copyright notice. 2.3. Related Mailing Lists Here are some mailing lists that cover topics relating to SQR in some way. sqr-jobs : SQR Jobs This list may be used for posting SQR-related resumes, recruitments, job announcements, project announcments, help- wanted, work-wanted ads, etc. To join, follow the link above, or send any message to "sqr-jobs-subscribe@yahoogroups.com". peoplesoft-fans : PeopleSoft Fans Moderated list covering technical and functional aspects of PeopleSoft. To join, follow the link above, or send any message to "peoplesoft-fans-subscribe@yahoogroups.com". psusers : PeopleSoft Users For questions related to any aspect of PeopleSoft (including PeopleSoft-specific SQR issues). This list has merged with the Peoplesoft Fans mailing list and is no longer active, but the message achive can still be found at the link above. HyperionSQR : Hyperion- SQR List for discussion of SQR, SQR Developer (formerly called Brio.Report and Report Builder), and SQR iServer. To join, follow the link above, or send any message to "HyperionSQR- subscribe@yahoogroups.com". rm-users : Report- Mart Users List for discussion of Brio Portal (previously called ReportMart). To join, follow the link above, or send a message containing the word "subscribe" in the body to "rm-users- request@sqrug.org". brioportalusersgroup : Brio Portal Users Group list List for discussion of Brio Portal. To join, follow the link above, or send any message to "brioportalusersgroup- subscribe@yahoogroups.com". brio-l : OpenITx Brio List List for technical and functional discussion of all Brio products (but most messages are currently about Brio Intelligence). To join, follow the link above. briousers : Brio.Enter- prise Users List for discussion of the Brio.Enterprise (now called Intelligence) product. To join, follow the link above, or send any message to "briousers-subscribe@yahoogroups.com". briolist : Brio List List for discussion of Brio Intelligence. To join, follow the link above, or send any message to "briolist- subscribe@yahoogroups.com". 3. Interacting with the list server The sqr-users mailing list is hosted using the Mailman list server package. All of the Mailman functions described below are accessed from the sqr-users List Info page, "http://www.sqrug.org/mailman/listinfo/sqr-users". 3.1. Subscribing to the list To subscribe to the mailing list, enter your e-mail address in the box at the top of the "Subscribing to sqr-users" section on the sqr-users List Info page, then choose a password to assign to your subscription and enter it in both "Password" boxes. This password is used to allow you to securely make changes to your subscription over the web. This password will be e-mailed back to you at varous times, so you should not use the same password as you are using elsewhere. Once you have filled in the password, click the "Subscribe" button. You should soon receive an e-mail message from the list server requesting confirmation of your subscription request. Once you have replied to this message and your subscription has been processed, you will receive a "welcome" message giving you more information on the list server, and as well as a reminder of the subscription password you chose. 3.2. Unsubscribing from the list To unsubscribe from the list, go to the sqr-users List Info page, enter your e-mail address in the "sqr-users Subscribers" section near the bottom of the page, and click the "Unsubscribe or edit options" button. You will then see the "member options" page; fill in your password at the top of the page and click "Log in". (If you have forgotton your password, see the ``Obtaining your Password'' section, below). This will take you to the "membership configuration" page. In the middle of that page, there will be an "Unsubscribing from sqr- users" section; simply turn on the "Yes, I really want to unsubscribe" checkbox and click the "Unsubscribe" button. You should get a page back saying that the removal was successful (as well as a confirmation email message). The removal will take effect immediately; there is no need to send in a confirmation e-mail message. If you don't know your password, you can choose to unsubscribe using e-mail confirmation. Instead of entering the password on the "member options" page, just click the "Unsubscribe" button found just below the "Log In" button. You will then see a page noting that a confirmation e-mail has been sent; once you follow the confirmation instructions in that e-mail your removal will be complete. 3.3. When your email address changes If your e-mail address changes -- for example, if your company changes names, or if your mail administrator changes the way your name is spelled out or abbreviated -- you will need to update your subscription to match your new address before you can post to the list (see the ``Posting'' section, below). To do this, simply log in to your "membership configuration" page (see the directions for logging in to this page in the ``Unsubscribing'' section, above). At the top of that page you'll see a "Changing your membership information" section. Fill out the text boxes and click the "Change My Address and Name" button. You will be sent a confirmation e-mail, and once you have responded to that e-mail your subscription will be updated and you can begin posting from your new address. 3.4. Digests You can request to get your messages in digest form (one large message containing all of the posts made each day). To do this, log in to your "membership configuration" page (see the directions on doing this in the ``Unsubscribing'' section, above). At the bottom of the page, you will see a section titled "Your sqr-users Subscription Options". Change the "Set Digest Mode" option (the second option in the list) to "On" and click the "Submit My Changes" button at the bottom of the page. You actually have a choice of two different digest formats, "MIME" or "Plain Text". The MIME format sends each individual list message as a separate MIME attachment to the digest; the plain text format consists of one large text message, with all of the individual messages run together. Which format you will want to use depends on your mail- reading software (and personal preference). If you are not sure which format will work best, you can just leave the default setting of "MIME" and see if the next morning's digest is easy to read in your mail reader -- you can change to the other format at any time using that same web page. If you use digests, you should not just "reply" to the digest mailing. Instead, be sure your message's subject header matches the subject in the original posting to which you are replying, and that you don't include a quoted copy of the entire digest in your post. To restore normal distribution, simply follow the above instructions choosing the "Off" setting for the Digest option. 3.5. Obtaining your password You will not be able to change your subscription options without your password. If you have forgotten your password, simply click the "Email My Password to Me" button on the "member options" page and your password will be emailed to you. You will also be e-mailed a copy of your password at the beginning of each month, as part of a "mailing list memberships reminder" message from the Mailman software. 3.6. Problems If the above instructions do not work, please contact the list manager at "sqr-users-manager@sqrug.org". (Do not send a message to the list itself -- no one there can help you with your problem!) Please include a description of what you were trying to do and what exactly happened when you made the attempt. 4. Posting to the sqr-users List In order to post to the mailing list, you must be subscribed to it (see directions above). More specifically, in order for Mailman to recognize that this message was sent by a subscriber, the return address on your message much exactly match the addresss you used to subscribe -- if you have more than one address you will need to be sure that you are sending from the correct one. (See the ``When you email address changes'' section, above, if your e-mail address has changed since you subscribed.) 4.1. General Guidelines For any message you send to the list, please: o make sure your mail software is not requesting a "Return Receipt". (If a "Return Receipt Requested" message is sent to the list, several dozen receipt messages will be sent out to the mailing list as other subscribers' mail systems repond....) o do not send messages in HTML or other special formats. (These are not usable by many subscribers, especially those who receive their messages in digest format.) The list server will delete these special attachments from your message and send you a warning notice. Also, if you are trying to send (for example) SQR source code files, make sure your mail-reader software is assigning proper MIME types to your attachments or they may not be distributed. o keep in mind that over 500 people will receive your message, and that it will appear in the list archives. Try to keep your messages on-topic and relatively short. Consider sending your message directly to particular people if it won't interest many of the list's subscribers. o ignore abusive and inappropriate messages that get sent to the list, rather than getting drawn into a debate. The very nature of these messages will cause most subscribers to automatically discredit them -- no "response" is necessary. To the contrary, any response will only "add fuel to the fire," prolonging the controversy and further interupting the normal conversation on the list. 4.2. Posting a Message Once you are subscribed, you can post to the list by sending a message to "sqr-users@sqrug.org". Be sure your subject heading describes your specific problem or question (i.e. don't just use "SQR Question"). In the body of your message, please include the following information: o SQR product name and version number (see notes below) o Operating system name and version number o Database name and version number o Application name (i.e. PeopleSoft) and a version number, if any Also, include a short code sample whenever possible. It's much easier for other people to understand what you are trying to do when they can see the actual code. (At the same time, be careful not to post confidential or proprietary code, since the posting will be placed in a public web archive.) Note that your question should relate to SQR or other Brio Report product in some way. Don't ask questions about PeopleSoft, for example, unless you are having SQR-related issues. (For PeopleSoft- specific questions, see other lists mentioned in the ``Related Mailing Lists'' section.) In 2001, PeopleSoft purchased from Brio the rights to the source code for SQR and began releasing its own line of SQR. PeopleSoft's SQR version numbering is different from Brio/Hyperion's, so it's very important to mention whether you are using Hyperion's "SQR" or "SQR for PeopleSoft". (This info is included automatically if you include the full SQR version-id string as described below.) To get the version-id string for your copy of SQR, you can run the following program: begin-program show $sqr-ver end-program This will produce a line that looks something like this: SQR/3.0.15/Intel/SCO Unix R3.2 V5.0/Oracle 7.2.2.3/Sep 25 1996 Include the full line of output in your message. Note that the oper- ating system and database version numbers listed here are the ones under which this copy of SQR was compiled, so you'll still need to include this information for your own environment. In a command-line environment (Unix, etc.), you can also get this version-id string by saying sqr -id 4.3. Replying to a Message Messages sent out on the list have a Reply-To header pointing to the list. This means that you should be able to simply use your mail reader's "reply" function to send a reply to the list. Generally, all answers to questions sent out on the list should be public replies, so that other subscribers can benefit. In those cases where a private reply is appropriate, be sure to over-ride the default Reply-To address. If your message is not actually a reply to the earlier message, please do not use the "reply" function. Instead, address a new e-mail message to the list as described in the previous section. (This is because the list archives will incorrectly show the new message in the original thread if you use "reply".) You should quote enough lines from the original message that later readers can understand your answer even if they missed the original question. At the same time, you should remove any unnecessary lines from the quote in order to make your message shorter and easier to understand. (Remember that some people read the mailing list in digest form, and the digests become much larger if unnecessary lines are quoted.) 5. Job Announcements Please do not post job announcements on the sqr-users list, but use the sqr-jobs list instead. (See ``Related Mailing Lists'' for more information on this list.) A large number of sqr-users subscribers do not want to receive job announcements (for various reasons) and such posts tend to cause a lot of disruption of the discussion on the list. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 07 14:55:45 2006 Date: Fri, 7 Jul 2006 12:53:18 -0600 From: "Ackerson, Glenn" Subject: [sqr-users] Easy way to find count of delimiters in unstring? Hi all, Any suggestions on finding a count of the number of comma delimiters on a variable length, comma-separated (.csv) file I'm processing? I'm able to successfully parse values in each record no problem, using the unstring command. But, the situation I'm trying to determine options on is to find out how many comma delimiters exist on each record. Unfortunately, the vendor who created this file didn't consistently use commas in every case where a value doesn't exist. Any ideas anyone? If so, since I subscribe in digest mode, would you kindly respond to me directly? Thanks much. Cheers, Glenn ************************************************** Glenn Ackerson Phone: (970) 351-1460 Information Technology Professional III Fax: (970) 351-1650 Internet Address: Glenn.Ackerson@Unco.edu University of Northern Colorado Information Technology=20=20 Carter Hall Greeley, CO 80639 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 07 15:03:22 2006 Subject: RE: [sqr-users] Easy way to find count of delimiters in unstring? Date: Fri, 7 Jul 2006 14:01:22 -0500 From: "Knapp, Richard" Create a function to count 'em using pos and instr. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Ackerson, Glenn Sent: Friday, July 07, 2006 1:53 PM To: sqr-users@sqrug.org Subject: [sqr-users] Easy way to find count of delimiters in unstring? Hi all, Any suggestions on finding a count of the number of comma delimiters on a variable length, comma-separated (.csv) file I'm processing? I'm able to successfully parse values in each record no problem, using the unstring command. But, the situation I'm trying to determine options on is to find out how many comma delimiters exist on each record. Unfortunately, the vendor who created this file didn't consistently use commas in every case where a value doesn't exist. Any ideas anyone? If so, since I subscribe in digest mode, would you kindly respond to me directly? Thanks much. Cheers, Glenn ************************************************** Glenn Ackerson Phone: (970) 351-1460 Information Technology Professional III Fax: (970) 351-1650 Internet Address: Glenn.Ackerson@Unco.edu University of Northern Colorado Information Technology=20=20 Carter Hall Greeley, CO 80639 _______________________________________________ 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 From sqr-users-bounces@sqrug.org Fri Jul 07 15:14:32 2006 From: "Alexander, Steven" Subject: RE: [sqr-users] Easy way to find count of delimiters in unstring? Date: Fri, 7 Jul 2006 12:08:58 -0700 Use translate to replace all the commas with null, then subtract the length of the new string from the length of the original string. -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu] Sent: Friday, July 07, 2006 12:01 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Easy way to find count of delimiters in unstring? Create a function to count 'em using pos and instr. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Ackerson, Glenn Sent: Friday, July 07, 2006 1:53 PM To: sqr-users@sqrug.org Subject: [sqr-users] Easy way to find count of delimiters in unstring? Hi all, Any suggestions on finding a count of the number of comma delimiters on a variable length, comma-separated (.csv) file I'm processing? I'm able to successfully parse values in each record no problem, using the unstring command. But, the situation I'm trying to determine options on is to find out how many comma delimiters exist on each record. Unfortunately, the vendor who created this file didn't consistently use commas in every case where a value doesn't exist. Any ideas anyone? If so, since I subscribe in digest mode, would you kindly respond to me directly? Thanks much. Cheers, Glenn ************************************************** Glenn Ackerson Phone: (970) 351-1460 Information Technology Professional III Fax: (970) 351-1650 Internet Address: Glenn.Ackerson@Unco.edu University of Northern Colorado Information Technology Carter Hall Greeley, CO 80639 _______________________________________________ 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 From sqr-users-bounces@sqrug.org Fri Jul 07 15:11:19 2006 Date: Fri, 07 Jul 2006 12:09:17 -0700 From: kevin.reschenberg@sparkpath.com Subject: RE: [sqr-users] Easy way to find count of delimiters in unstring? let #CommaCount = length($MyString) - length(replace($MyString, ',', '')) Kevin Reschenberg SparkPath Technologies, Inc. sparkpath.com | sqr-info.com -------- Original Message -------- Subject: [sqr-users] Easy way to find count of delimiters in unstring? From: "Ackerson, Glenn" Date: Fri, July 07, 2006 11:53 am To: Hi all, Any suggestions on finding a count of the number of comma delimiters on a variable length, comma-separated (.csv) file I'm processing? I'm able to successfully parse values in each record no problem, using the unstring command. But, the situation I'm trying to determine options on is to find out how many comma delimiters exist on each record. Unfortunately, the vendor who created this file didn't consistently use commas in every case where a value doesn't exist. Any ideas anyone? If so, since I subscribe in digest mode, would you kindly respond to me directly? Thanks much. Cheers, Glenn ************************************************** Glenn Ackerson Phone: (970) 351-1460 Information Technology Professional III Fax: (970) 351-1650 Internet Address: Glenn.Ackerson@Unco.edu University of Northern Colorado Information Technology Carter Hall Greeley, CO 80639 _______________________________________________ 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 From sqr-users-bounces@sqrug.org Thu Jul 13 10:08:08 2006 Date: Thu, 13 Jul 2006 10:05:55 -0400 From: "Laura Mayer" Subject: [sqr-users] Stuck in array He!! Morning, I inherited this code from a prior employee and from what I can discern it = creates an infinite loop that keeps iterating through all the records in a = text file over and over again. I can't seem to fix it. I've even made it so= there are only 9 records in the text file. Be advised it is the crudest code I have ever come across. What its suppose= d to do is read a text file into an array and process the data. It never se= ems to finish. Is there a better way to write this mess? Thanks for any and all help you can offer Laura !************************************************************************ Begin-Procedure Select_Records !************************************************************************ ! Reads input file. Selects Roommate data from Preference file ! Searches Roommate1 Array and Roommate2 Array for Roommate Matches ! Decides if the record needs to be printed=20 ! Decides which report the record should be placed in ! Write data to Array (Prefer) ! For each inputID, if it is not in proccessing id array, put it in array. ! Then find its roommates. If found (Match), put its roommate's id into arr= ay. !************************************************************************ Read 1 into $Input_Str:8 let #index=3D0 While not #End-File=09 let $InputEmplid =3D substr($Input_Str, 1, 8) let $EMPLID =3D $InputEmplid=20 =09 Do Check_If_ID_Printed !if input Id has been proceed if $ID_Printed=3D'N' ! not processed let IDPrinted.emplid(#Index) =3D $EMPLID !add id to array. ID proce= ssed add 1 to #index let $PrintFlag =3D 'Y' let $period =3D $parm_proc_cd ! only run period Do Get_Roommate ! find input id's pref record (building if $Preference_Found=3D'Y' ! found row in perf table if $RoomMateFound=3D'N' ! but both rm1 and rm2 empty let $prType =3D 'S' else !Has rmts let $InputIdRM1=3D &A.UMH_PREF_ROOMMATE1 let $InputIdRM2=3D &A.UMH_PREF_ROOMMATE2 let $EMPLID=3D &A.UMH_PREF_ROOMMATE1 ! input id' roommate1 Do Get_Roommate !find rmt1'rmts for run period if $Preference_Found=3D'Y'=20 Do Get_Mutual_Type=20=20 else !no perf in run period, may try another period !show 'not perf rmt1=3D ' $EMPLID=20 if $RunPeriod=3D'2' or $RunPeriod=3D'3' !105720 or 105730 Do Look_Next_Period=09=09=09=20=20=20=20=20=20=20 else ! run period is not 20 or 30 let $prType =3D 'N' let $PrintFlag =3D'Y'=20 end-if=20=20=20=20=20=09=09=09=09=09 end-if end-if Do Fill_Array end-if end-if !end of no processed Read 1 into $Input_Str:8 end-while =20=20=20=20=20=20=20=09 Do Show_Array=20=20 =09 End-Procedure !**************************************************************************= *** ! Check arry to find if this id already processed. Begin-Procedure Check_If_ID_Printed !**************************************************************************= *** let $ID_Printed =3D'N' Let #Start =3D 0 While (#Start <=3D #Index) and $ID_Printed =3D 'N' If IDPrinted.emplid(#Start) =3D $EMPLID let $ID_Printed =3D 'Y' add 1 to #Start end-if end-while=20=20 =20 End-Procedure=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jul 13 10:17:15 2006 Subject: RE: [sqr-users] Stuck in array He!! Date: Thu, 13 Jul 2006 09:14:47 -0500 From: "Knapp, Richard" Off the of me head -=20 The read needs to be inside the loop, no? Didn't go any farther with it. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Laura Mayer Sent: Thursday, July 13, 2006 9:06 AM To: sqr-users@sqrug.org Subject: [sqr-users] Stuck in array He!! Morning, I inherited this code from a prior employee and from what I can discern it creates an infinite loop that keeps iterating through all the records in a text file over and over again. I can't seem to fix it. I've even made it so there are only 9 records in the text file. Be advised it is the crudest code I have ever come across. What its supposed to do is read a text file into an array and process the data. It never seems to finish. Is there a better way to write this mess? Thanks for any and all help you can offer Laura !*********************************************************************** * Begin-Procedure Select_Records !*********************************************************************** * ! Reads input file. Selects Roommate data from Preference file ! Searches Roommate1 Array and Roommate2 Array for Roommate Matches ! Decides if the record needs to be printed=20 ! Decides which report the record should be placed in ! Write data to Array (Prefer) ! For each inputID, if it is not in proccessing id array, put it in array. ! Then find its roommates. If found (Match), put its roommate's id into array. !*********************************************************************** * Read 1 into $Input_Str:8 let #index=3D0 While not #End-File=09 let $InputEmplid =3D substr($Input_Str, 1, 8) let $EMPLID =3D $InputEmplid=20 =09 Do Check_If_ID_Printed !if input Id has been proceed if $ID_Printed=3D'N' ! not processed let IDPrinted.emplid(#Index) =3D $EMPLID !add id to array. ID processed add 1 to #index let $PrintFlag =3D 'Y' let $period =3D $parm_proc_cd ! only run period Do Get_Roommate ! find input id's pref record (building if $Preference_Found=3D'Y' ! found row in perf table if $RoomMateFound=3D'N' ! but both rm1 and rm2 empty let $prType =3D 'S' else !Has rmts let $InputIdRM1=3D &A.UMH_PREF_ROOMMATE1 let $InputIdRM2=3D &A.UMH_PREF_ROOMMATE2 let $EMPLID=3D &A.UMH_PREF_ROOMMATE1 ! input id' roommate1 Do Get_Roommate !find rmt1'rmts for run period if $Preference_Found=3D'Y'=20 Do Get_Mutual_Type=20=20 else !no perf in run period, may try another period !show 'not perf rmt1=3D ' $EMPLID=20 if $RunPeriod=3D'2' or $RunPeriod=3D'3' !105720 or 105730 Do Look_Next_Period=09=09=09=20=20=20=20=20=20=20 else ! run period is not 20 or 30 let $prType =3D 'N' let $PrintFlag =3D'Y'=20 end-if=20=20=20=20=20=09=09=09=09=09 end-if end-if Do Fill_Array end-if end-if !end of no processed Read 1 into $Input_Str:8 end-while =20=20=20=20=20=20=20=09 Do Show_Array=20=20 =09 End-Procedure !*********************************************************************** ****** ! Check arry to find if this id already processed. Begin-Procedure Check_If_ID_Printed !*********************************************************************** ****** let $ID_Printed =3D'N' Let #Start =3D 0 While (#Start <=3D #Index) and $ID_Printed =3D 'N' If IDPrinted.emplid(#Start) =3D $EMPLID let $ID_Printed =3D 'Y' add 1 to #Start end-if end-while=20=20 =20 End-Procedure=20 _______________________________________________ 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 From sqr-users-bounces@sqrug.org Thu Jul 13 10:30:48 2006 Subject: RE: [sqr-users] Stuck in array He!! Date: Thu, 13 Jul 2006 19:58:06 +0530 From: "Karunakaran Perumbrayoor" Laura... =20 I guess, you should have the "Read" inside the while loop. So it is just iterating in the first line of the file. There would be an infinite loop if more than one record is present in a file. =20 Just try making the change!!! =20 Regards... Karun =20 -----Original Message----- From: Laura Mayer [mailto:lmayer@gw.housing.umass.edu]=20 Sent: Thursday, July 13, 2006 7:36 PM To: sqr-users@sqrug.org Subject: [sqr-users] Stuck in array He!! =20 Morning, =20 I inherited this code from a prior employee and from what I can discern it creates an infinite loop that keeps iterating through all the records in a text file over and over again. I can't seem to fix it. I've even made it so there are only 9 records in the text file. =20 Be advised it is the crudest code I have ever come across. What its supposed to do is read a text file into an array and process the data. It never seems to finish. =20 Is there a better way to write this mess? =20 Thanks for any and all help you can offer =20 Laura =20 !*********************************************************************** * Begin-Procedure Select_Records !*********************************************************************** * ! Reads input file. Selects Roommate data from Preference file ! Searches Roommate1 Array and Roommate2 Array for Roommate Matches ! Decides if the record needs to be printed=20 ! Decides which report the record should be placed in ! Write data to Array (Prefer) ! For each inputID, if it is not in proccessing id array, put it in array. ! Then find its roommates. If found (Match), put its roommate's id into array. !*********************************************************************** * Read 1 into $Input_Str:8 let #index=3D0 While not #End-File=20=20=20=20=20 let $InputEmplid =3D substr($Input_Str, 1, 8) let $EMPLID =3D $InputEmplid=20 =20=20=20=20=20=20 Do Check_If_ID_Printed !if input Id has been proceed if $ID_Printed=3D'N' ! not processed let IDPrinted.emplid(#Index) =3D $EMPLID !add id to array. ID processed add 1 to #index let $PrintFlag =3D 'Y' let $period =3D $parm_proc_cd ! only run period Do Get_Roommate ! find input id's pref record (building if $Preference_Found=3D'Y' ! found row in perf table if $RoomMateFound=3D'N' ! but both rm1 and rm2 empty let $prType =3D 'S' else !Has rmts let $InputIdRM1=3D &A.UMH_PREF_ROOMMATE1 let $InputIdRM2=3D &A.UMH_PREF_ROOMMATE2 let $EMPLID=3D &A.UMH_PREF_ROOMMATE1 ! input id' roommate1 Do Get_Roommate !find rmt1'rmts for run period if $Preference_Found=3D'Y'=20 Do Get_Mutual_Type=20=20 else !no perf in run period, may try another period !show 'not perf rmt1=3D ' $EMPLID=20 if $RunPeriod=3D'2' or $RunPeriod=3D'3' !105720 or 105730 Do Look_Next_Period=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 else ! run period is not 20 or 30 let $prType =3D 'N' let $PrintFlag =3D'Y'=20 end-if=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 end-if end-if Do Fill_Array end-if end-if !end of no processed Read 1 into $Input_Str:8 end-while =20=20=20=20=20=20=20=20=20=20=20=20 Do Show_Array=20=20 =20=20=20=20=20=20 End-Procedure =20 =20 !*********************************************************************** ****** ! Check arry to find if this id already processed. Begin-Procedure Check_If_ID_Printed !*********************************************************************** ****** let $ID_Printed =3D'N' Let #Start =3D 0 =20 While (#Start <=3D #Index) and $ID_Printed =3D 'N' If IDPrinted.emplid(#Start) =3D $EMPLID let $ID_Printed =3D 'Y' add 1 to #Start end-if end-while=20=20 =20 End-Procedure=20 =20 =20 =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users =20 ***************************************************************************= ************************************************ This e-mail communication and any attachments may be privileged and confide= ntial to Hexaware and are intended only for the=20 use of the recipients named above. If you are not the intended recipient, p= lease do not review, disclose, disseminate,=20 distribute or copy this e-mail and attachments. If you have received this e= mail in error, please delete the same alongwith=20 all attachments thereto and notify us immediately at mailadmin@hexaware.com= . ***************************************************************************= ************************************************ =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jul 13 10:34:30 2006 Date: Thu, 13 Jul 2006 10:31:30 -0400 From: "Laura Mayer" Subject: RE: [sqr-users] Stuck in array He!! Thanks I'll try that. >>> karunp@hexaware.com 7/13/2006 10:28 AM >>> Laura... =20 I guess, you should have the "Read" inside the while loop. So it is just iterating in the first line of the file. There would be an infinite loop if more than one record is present in a file. =20 Just try making the change!!! =20 Regards... Karun =20 -----Original Message----- From: Laura Mayer [mailto:lmayer@gw.housing.umass.edu]=20 Sent: Thursday, July 13, 2006 7:36 PM To: sqr-users@sqrug.org=20 Subject: [sqr-users] Stuck in array He!! =20 Morning, =20 I inherited this code from a prior employee and from what I can discern it creates an infinite loop that keeps iterating through all the records in a text file over and over again. I can't seem to fix it. I've even made it so there are only 9 records in the text file. =20 Be advised it is the crudest code I have ever come across. What its supposed to do is read a text file into an array and process the data. It never seems to finish. =20 Is there a better way to write this mess? =20 Thanks for any and all help you can offer =20 Laura =20 !*********************************************************************** * Begin-Procedure Select_Records !*********************************************************************** * ! Reads input file. Selects Roommate data from Preference file ! Searches Roommate1 Array and Roommate2 Array for Roommate Matches ! Decides if the record needs to be printed=20 ! Decides which report the record should be placed in ! Write data to Array (Prefer) ! For each inputID, if it is not in proccessing id array, put it in array. ! Then find its roommates. If found (Match), put its roommate's id into array. !*********************************************************************** * Read 1 into $Input_Str:8 let #index=3D0 While not #End-File=20=20=20=20=20 let $InputEmplid =3D substr($Input_Str, 1, 8) let $EMPLID =3D $InputEmplid=20 =20=20=20=20=20=20 Do Check_If_ID_Printed !if input Id has been proceed if $ID_Printed=3D'N' ! not processed let IDPrinted.emplid(#Index) =3D $EMPLID !add id to array. ID processed add 1 to #index let $PrintFlag =3D 'Y' let $period =3D $parm_proc_cd ! only run period Do Get_Roommate ! find input id's pref record (building if $Preference_Found=3D'Y' ! found row in perf table if $RoomMateFound=3D'N' ! but both rm1 and rm2 empty let $prType =3D 'S' else !Has rmts let $InputIdRM1=3D &A.UMH_PREF_ROOMMATE1 let $InputIdRM2=3D &A.UMH_PREF_ROOMMATE2 let $EMPLID=3D &A.UMH_PREF_ROOMMATE1 ! input id' roommate1 Do Get_Roommate !find rmt1'rmts for run period if $Preference_Found=3D'Y'=20 Do Get_Mutual_Type=20=20 else !no perf in run period, may try another period !show 'not perf rmt1=3D ' $EMPLID=20 if $RunPeriod=3D'2' or $RunPeriod=3D'3' !105720 or 105730 Do Look_Next_Period=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 else ! run period is not 20 or 30 let $prType =3D 'N' let $PrintFlag =3D'Y'=20 end-if=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 end-if end-if Do Fill_Array end-if end-if !end of no processed Read 1 into $Input_Str:8 end-while =20=20=20=20=20=20=20=20=20=20=20=20 Do Show_Array=20=20 =20=20=20=20=20=20 End-Procedure =20 =20 !*********************************************************************** ****** ! Check arry to find if this id already processed. Begin-Procedure Check_If_ID_Printed !*********************************************************************** ****** let $ID_Printed =3D'N' Let #Start =3D 0 =20 While (#Start <=3D #Index) and $ID_Printed =3D 'N' If IDPrinted.emplid(#Start) =3D $EMPLID let $ID_Printed =3D 'Y' add 1 to #Start end-if end-while=20=20 =20 End-Procedure=20 =20 =20 =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 =20 ***************************************************************************= ************************************************ This e-mail communication and any attachments may be privileged and confide= ntial to Hexaware and are intended only for the=20 use of the recipients named above. If you are not the intended recipient, p= lease do not review, disclose, disseminate,=20 distribute or copy this e-mail and attachments. If you have received this e= mail in error, please delete the same alongwith=20 all attachments thereto and notify us immediately at mailadmin@hexaware.com= . ***************************************************************************= ************************************************ =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jul 13 10:37:58 2006 From: "Don Duwe" Subject: RE: [sqr-users] Stuck in array He!! Date: Thu, 13 Jul 2006 10:33:29 -0400 WHILE 1 READ 1 into $DATA:? IF #END-FILE BREAK END-IF CODE------------------- END-WHILE -----Original Message----- From: sqr-users-bounces+dduwe=nookind.com@sqrug.org [mailto:sqr-users-bounces+dduwe=nookind.com@sqrug.org]On Behalf Of Laura Mayer Sent: Thursday, July 13, 2006 10:06 AM To: sqr-users@sqrug.org Subject: [sqr-users] Stuck in array He!! Morning, I inherited this code from a prior employee and from what I can discern it creates an infinite loop that keeps iterating through all the records in a text file over and over again. I can't seem to fix it. I've even made it so there are only 9 records in the text file. Be advised it is the crudest code I have ever come across. What its supposed to do is read a text file into an array and process the data. It never seems to finish. Is there a better way to write this mess? Thanks for any and all help you can offer Laura !************************************************************************ Begin-Procedure Select_Records !************************************************************************ ! Reads input file. Selects Roommate data from Preference file ! Searches Roommate1 Array and Roommate2 Array for Roommate Matches ! Decides if the record needs to be printed ! Decides which report the record should be placed in ! Write data to Array (Prefer) ! For each inputID, if it is not in proccessing id array, put it in array. ! Then find its roommates. If found (Match), put its roommate's id into array. !************************************************************************ Read 1 into $Input_Str:8 let #index=0 While not #End-File let $InputEmplid = substr($Input_Str, 1, 8) let $EMPLID = $InputEmplid Do Check_If_ID_Printed !if input Id has been proceed if $ID_Printed='N' ! not processed let IDPrinted.emplid(#Index) = $EMPLID !add id to array. ID processed add 1 to #index let $PrintFlag = 'Y' let $period = $parm_proc_cd ! only run period Do Get_Roommate ! find input id's pref record (building if $Preference_Found='Y' ! found row in perf table if $RoomMateFound='N' ! but both rm1 and rm2 empty let $prType = 'S' else !Has rmts let $InputIdRM1= &A.UMH_PREF_ROOMMATE1 let $InputIdRM2= &A.UMH_PREF_ROOMMATE2 let $EMPLID= &A.UMH_PREF_ROOMMATE1 ! input id' roommate1 Do Get_Roommate !find rmt1'rmts for run period if $Preference_Found='Y' Do Get_Mutual_Type else !no perf in run period, may try another period !show 'not perf rmt1= ' $EMPLID if $RunPeriod='2' or $RunPeriod='3' !105720 or 105730 Do Look_Next_Period else ! run period is not 20 or 30 let $prType = 'N' let $PrintFlag ='Y' end-if end-if end-if Do Fill_Array end-if end-if !end of no processed Read 1 into $Input_Str:8 end-while Do Show_Array End-Procedure !*************************************************************************** ** ! Check arry to find if this id already processed. Begin-Procedure Check_If_ID_Printed !*************************************************************************** ** let $ID_Printed ='N' Let #Start = 0 While (#Start <= #Index) and $ID_Printed = 'N' If IDPrinted.emplid(#Start) = $EMPLID let $ID_Printed = 'Y' add 1 to #Start end-if end-while End-Procedure _______________________________________________ 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 From sqr-users-bounces@sqrug.org Thu Jul 13 10:45:39 2006 Subject: RE: [sqr-users] Stuck in array He!! From: Roger.Harris@certegy.com Date: Thu, 13 Jul 2006 10:42:01 -0400 There is a read at the end of the While. I think that the problem is in While loop in the procedure Check_If_ID_Printed. The index in this loop, #Start, will only get incremented if the first time that If IDPrinted.emplid(#Start) = $EMPLID is test yields true so you keep testing the same value over and over in an endless loop. Try moving add 1 to #Start to after the end-if in that loop. Roger L. Harris Programmer Analyst Sr Product Development Certegy Check Services Fidelity National Information Services, Inc 11601 N. Roosevelt Blvd St Petersburg, FL 33716 (727) 227-5850 direct (800) 215-6280 x75850 toll free (727) 570-4917 Fax |---------+----------------------------------------------------> | | "Laura Mayer" | | | | | | Sent by: | | | sqr-users-bounces+roger.harris=certegy.co| | | m@sqrug.org | | | | | | | | | 07/13/2006 10:31 AM | | | Please respond to "This list is for | | | discussion about the SQR database | | | reporting language from Hyperion | | | Solutions." | | | | |---------+----------------------------------------------------> >---------------------------------------------------------------------------------------------| | | | To: karunp@hexaware.com, sqr-users@sqrug.org | | cc: | | Subject: RE: [sqr-users] Stuck in array He!! | >---------------------------------------------------------------------------------------------| Thanks I'll try that. >>> karunp@hexaware.com 7/13/2006 10:28 AM >>> Laura... I guess, you should have the "Read" inside the while loop. So it is just iterating in the first line of the file. There would be an infinite loop if more than one record is present in a file. Just try making the change!!! Regards... Karun -----Original Message----- From: Laura Mayer [mailto:lmayer@gw.housing.umass.edu] Sent: Thursday, July 13, 2006 7:36 PM To: sqr-users@sqrug.org Subject: [sqr-users] Stuck in array He!! Morning, I inherited this code from a prior employee and from what I can discern it creates an infinite loop that keeps iterating through all the records in a text file over and over again. I can't seem to fix it. I've even made it so there are only 9 records in the text file. Be advised it is the crudest code I have ever come across. What its supposed to do is read a text file into an array and process the data. It never seems to finish. Is there a better way to write this mess? Thanks for any and all help you can offer Laura !*********************************************************************** * Begin-Procedure Select_Records !*********************************************************************** * ! Reads input file. Selects Roommate data from Preference file ! Searches Roommate1 Array and Roommate2 Array for Roommate Matches ! Decides if the record needs to be printed ! Decides which report the record should be placed in ! Write data to Array (Prefer) ! For each inputID, if it is not in proccessing id array, put it in array. ! Then find its roommates. If found (Match), put its roommate's id into array. !*********************************************************************** * Read 1 into $Input_Str:8 let #index=0 While not #End-File let $InputEmplid = substr($Input_Str, 1, 8) let $EMPLID = $InputEmplid Do Check_If_ID_Printed !if input Id has been proceed if $ID_Printed='N' ! not processed let IDPrinted.emplid(#Index) = $EMPLID !add id to array. ID processed add 1 to #index let $PrintFlag = 'Y' let $period = $parm_proc_cd ! only run period Do Get_Roommate ! find input id's pref record (building if $Preference_Found='Y' ! found row in perf table if $RoomMateFound='N' ! but both rm1 and rm2 empty let $prType = 'S' else !Has rmts let $InputIdRM1= &A.UMH_PREF_ROOMMATE1 let $InputIdRM2= &A.UMH_PREF_ROOMMATE2 let $EMPLID= &A.UMH_PREF_ROOMMATE1 ! input id' roommate1 Do Get_Roommate !find rmt1'rmts for run period if $Preference_Found='Y' Do Get_Mutual_Type else !no perf in run period, may try another period !show 'not perf rmt1= ' $EMPLID if $RunPeriod='2' or $RunPeriod='3' !105720 or 105730 Do Look_Next_Period else ! run period is not 20 or 30 let $prType = 'N' let $PrintFlag ='Y' end-if end-if end-if Do Fill_Array end-if end-if !end of no processed Read 1 into $Input_Str:8 end-while Do Show_Array End-Procedure !*********************************************************************** ****** ! Check arry to find if this id already processed. Begin-Procedure Check_If_ID_Printed !*********************************************************************** ****** let $ID_Printed ='N' Let #Start = 0 While (#Start <= #Index) and $ID_Printed = 'N' If IDPrinted.emplid(#Start) = $EMPLID let $ID_Printed = 'Y' add 1 to #Start end-if end-while End-Procedure _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users *************************************************************************************************************************** This e-mail communication and any attachments may be privileged and confidential to Hexaware and are intended only for the use of the recipients named above. If you are not the intended recipient, please do not review, disclose, disseminate, distribute or copy this e-mail and attachments. If you have received this email in error, please delete the same alongwith all attachments thereto and notify us immediately at mailadmin@hexaware.com . *************************************************************************************************************************** _______________________________________________ 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 ------------------------------------------------------------------------------ This message contains information from Certegy, Inc which may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e:mail postmaster@certegy.com. ============================================================================== _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jul 13 11:26:28 2006 Date: Thu, 13 Jul 2006 11:23:55 -0400 From: "Laura Mayer" Subject: RE: [sqr-users] Stuck in array He!! Thanks for the help.=20 >>> Roger.Harris@certegy.com 7/13/2006 10:42:01 AM >>> There is a read at the end of the While. I think that the problem is in While loop in the procedure Check_If_ID_Printed. The index in this loop, #Start, will only get incremented if the first time that If IDPrinted.emplid(#Start) =3D $EMPLID is test yields true so you keep testing the same value over and over in an endless loop. Try moving add 1 to #Start to after the end-if in that loop. Roger L. Harris Programmer Analyst Sr Product Development Certegy Check Services Fidelity National Information Services, Inc 11601 N. Roosevelt Blvd St Petersburg, FL 33716 (727) 227-5850 direct (800) 215-6280 x75850 toll free (727) 570-4917 Fax |---------+----------------------------------------------------> | | "Laura Mayer" | | | | | | Sent by: | | | sqr-users-bounces+roger.harris=3Dcertegy.co| | | m@sqrug.org | | | | | | | | | 07/13/2006 10:31 AM | | | Please respond to "This list is for | | | discussion about the SQR database | | | reporting language from Hyperion | | | Solutions." | | | | |---------+----------------------------------------------------> >------------------------------------------------------------------------= ---------------------| | = | | To: karunp@hexaware.com, sqr-users@sqrug.org = | | cc: = | | Subject: RE: [sqr-users] Stuck in array He!! = | >------------------------------------------------------------------------= ---------------------| Thanks I'll try that. >>> karunp@hexaware.com 7/13/2006 10:28 AM >>> Laura... I guess, you should have the "Read" inside the while loop. So it is just iterating in the first line of the file. There would be an infinite loop if more than one record is present in a file. Just try making the change!!! Regards... Karun -----Original Message----- From: Laura Mayer [mailto:lmayer@gw.housing.umass.edu]=20 Sent: Thursday, July 13, 2006 7:36 PM To: sqr-users@sqrug.org=20 Subject: [sqr-users] Stuck in array He!! Morning, I inherited this code from a prior employee and from what I can discern it creates an infinite loop that keeps iterating through all the records in a text file over and over again. I can't seem to fix it. I've even made it so there are only 9 records in the text file. Be advised it is the crudest code I have ever come across. What its supposed to do is read a text file into an array and process the data. It never seems to finish. Is there a better way to write this mess? Thanks for any and all help you can offer Laura !*********************************************************************** * Begin-Procedure Select_Records !*********************************************************************** * ! Reads input file. Selects Roommate data from Preference file ! Searches Roommate1 Array and Roommate2 Array for Roommate Matches ! Decides if the record needs to be printed ! Decides which report the record should be placed in ! Write data to Array (Prefer) ! For each inputID, if it is not in proccessing id array, put it in array. ! Then find its roommates. If found (Match), put its roommate's id into array. !*********************************************************************** * Read 1 into $Input_Str:8 let #index=3D0 While not #End-File let $InputEmplid =3D substr($Input_Str, 1, 8) let $EMPLID =3D $InputEmplid Do Check_If_ID_Printed !if input Id has been proceed if $ID_Printed=3D'N' ! not processed let IDPrinted.emplid(#Index) =3D $EMPLID !add id to array. ID processed add 1 to #index let $PrintFlag =3D 'Y' let $period =3D $parm_proc_cd ! only run period Do Get_Roommate ! find input id's pref record (building if $Preference_Found=3D'Y' ! found row in perf table if $RoomMateFound=3D'N' ! but both rm1 and rm2 empty let $prType =3D 'S' else !Has rmts let $InputIdRM1=3D &A.UMH_PREF_ROOMMATE1 let $InputIdRM2=3D &A.UMH_PREF_ROOMMATE2 let $EMPLID=3D &A.UMH_PREF_ROOMMATE1 ! input id' roommate1 Do Get_Roommate !find rmt1'rmts for run period if $Preference_Found=3D'Y' Do Get_Mutual_Type else !no perf in run period, may try another period !show 'not perf rmt1=3D ' $EMPLID if $RunPeriod=3D'2' or $RunPeriod=3D'3' !105720 or 105730 Do Look_Next_Period else ! run period is not 20 or 30 let $prType =3D 'N' let $PrintFlag =3D'Y' end-if end-if end-if Do Fill_Array end-if end-if !end of no processed Read 1 into $Input_Str:8 end-while Do Show_Array End-Procedure !*********************************************************************** ****** ! Check arry to find if this id already processed. Begin-Procedure Check_If_ID_Printed !*********************************************************************** ****** let $ID_Printed =3D'N' Let #Start =3D 0 While (#Start <=3D #Index) and $ID_Printed =3D 'N' If IDPrinted.emplid(#Start) =3D $EMPLID let $ID_Printed =3D 'Y' add 1 to #Start end-if end-while End-Procedure _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 ***************************************************************************= ************************************************ This e-mail communication and any attachments may be privileged and confidential to Hexaware and are intended only for the use of the recipients named above. If you are not the intended recipient, please do not review, disclose, disseminate, distribute or copy this e-mail and attachments. If you have received this email in error, please delete the same alongwith all attachments thereto and notify us immediately at mailadmin@hexaware.com= =20 =2E ***************************************************************************= ************************************************ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 ---------------------------------------------------------------------------= --- This message contains information from Certegy, Inc which may be confidenti= al and privileged. If you are not an intended recipient, please refrain fr= om any disclosure, copying, distribution or use of this information and not= e that such actions are prohibited. If you have received this transmission= in error, please notify by e:mail postmaster@certegy.com. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 14 14:30:05 2006 Date: Fri, 14 Jul 2006 14:27:55 -0400 From: "Laura Mayer" Subject: [sqr-users] trying to create an array Afternoon, I cant seem to get this. Every time I run this it says:=20 Error on line 49: (SQR 3514) PUT and GET variables must match array field types.=20 I checked and they are the right types. I used the code from the manual but= no matter what I do I cant make this work. I cant find any good tutorials = out there either. Any help anyone can offer would be great. Thanks in advance=20 Laura !******************************************************** begin-setup !******************************************************** create-array=20 name=3Dpreference_array=20 size=3D16500 field=3DEMPLID:char=20=20=20 field=3DTOTAL:number field=3DUMH_PRIORITY_ORDER:number=20 end-setup !******************************************************** begin-program !******************************************************** do select_data do print_array end-program !******************************************************** begin-procedure select_data !******************************************************** let #counter =3D 0=20 begin-select C.EMPLID (,1)=20 (C.UMH_TRMS_IN_HS_PTS + C.UMH_OTHER_PTS) &TOTAL (,10) C.UMH_PRIORITY_ORDER (,16)=20 position (+1) put &C.EMPLID &TOTAL &C.UMH_PRIORITY_ORDER into preference_array(#counter) add 1 to #counter FROM PS_UM_H_SNRTY C, PS_UM_H_PRC_PD_TBL A=20 WHERE C.STRM =3D '1067'=20 AND C.STRM =3D A.STRM=20 AND A.EFFDT =3D=20 (SELECT MAX(A_ED.EFFDT)=20 FROM PS_UM_H_PRC_PD_TBL A_ED=20 WHERE A.UMH_PROC_PD =3D A_ED.UMH_PROC_PD=20 AND A_ED.EFFDT <=3D SYSDATE)=20 AND A.UMH_PROC_PD =3D '106730'=20 ORDER BY C.UMH_TRMS_IN_HS_PTS DESC, C.UMH_PRIORITY_ORDER DESC end-select end-procedure ! select_data !******************************************************** begin-procedure print_array !******************************************************** let #i =3D 0 while #i < #counter get $C.EMPLID $TOTAL $C.UMH_PRIORITY_ORDER from preference_array(#i) print $C.EMPLID (,1) print $TOTAL (,7) print $C.UMH_PRIORITY_ORDER (,24) position (+1) add 1 to #i end-while end-procedure _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 14 14:36:12 2006 Subject: RE: [sqr-users] trying to create an array Date: Fri, 14 Jul 2006 12:33:34 -0600 From: "Lance Munger" Check the datatypes on the the table, my guess would be that EMPLID is actually a number or UMH_PRIORITY_ORDER is actually a char. -----Original Message----- From: sqr-users-bounces+lance.munger=3Dtq3navigant.com@sqrug.org [mailto:sqr-users-bounces+lance.munger=3Dtq3navigant.com@sqrug.org] On Behalf Of Laura Mayer Sent: Friday, July 14, 2006 12:28 PM To: sqr-users@sqrug.org Subject: [sqr-users] trying to create an array Afternoon, I cant seem to get this. Every time I run this it says:=20 Error on line 49: (SQR 3514) PUT and GET variables must match array field types.=20 I checked and they are the right types. I used the code from the manual but no matter what I do I cant make this work. I cant find any good tutorials out there either. Any help anyone can offer would be great. Thanks in advance=20 Laura !******************************************************** begin-setup !******************************************************** create-array=20 name=3Dpreference_array=20 size=3D16500 field=3DEMPLID:char=20=20=20 field=3DTOTAL:number field=3DUMH_PRIORITY_ORDER:number=20 end-setup !******************************************************** begin-program !******************************************************** do select_data do print_array end-program !******************************************************** begin-procedure select_data !******************************************************** let #counter =3D 0=20 begin-select C.EMPLID (,1)=20 (C.UMH_TRMS_IN_HS_PTS + C.UMH_OTHER_PTS) &TOTAL (,10) C.UMH_PRIORITY_ORDER (,16)=20 position (+1) put &C.EMPLID &TOTAL &C.UMH_PRIORITY_ORDER into preference_array(#counter) add 1 to #counter FROM PS_UM_H_SNRTY C, PS_UM_H_PRC_PD_TBL A=20 WHERE C.STRM =3D '1067'=20 AND C.STRM =3D A.STRM=20 AND A.EFFDT =3D=20 (SELECT MAX(A_ED.EFFDT)=20 FROM PS_UM_H_PRC_PD_TBL A_ED=20 WHERE A.UMH_PROC_PD =3D A_ED.UMH_PROC_PD=20 AND A_ED.EFFDT <=3D SYSDATE)=20 AND A.UMH_PROC_PD =3D '106730'=20 ORDER BY C.UMH_TRMS_IN_HS_PTS DESC, C.UMH_PRIORITY_ORDER DESC end-select end-procedure ! select_data !******************************************************** begin-procedure print_array !******************************************************** let #i =3D 0 while #i < #counter get $C.EMPLID $TOTAL $C.UMH_PRIORITY_ORDER from preference_array(#i) print $C.EMPLID (,1) print $TOTAL (,7) print $C.UMH_PRIORITY_ORDER (,24) position (+1) add 1 to #i end-while end-procedure _______________________________________________ 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 From sqr-users-bounces@sqrug.org Fri Jul 14 14:39:37 2006 Subject: RE: [sqr-users] trying to create an array Date: Fri, 14 Jul 2006 11:34:53 -0700 From: "Amit Kedia" Hi, Have you tried just putting and getting one element at a time to see which one is causing the error? amit -----Original Message----- From: sqr-users-bounces+a.kedia=3Dsurewest.com@sqrug.org [mailto:sqr-users-bounces+a.kedia=3Dsurewest.com@sqrug.org] On Behalf Of Laura Mayer Sent: Friday, July 14, 2006 11:28 AM To: sqr-users@sqrug.org Subject: [sqr-users] trying to create an array Afternoon, I cant seem to get this. Every time I run this it says:=20 Error on line 49: (SQR 3514) PUT and GET variables must match array field types.=20 I checked and they are the right types. I used the code from the manual but no matter what I do I cant make this work. I cant find any good tutorials out there either. Any help anyone can offer would be great. Thanks in advance=20 Laura !******************************************************** begin-setup !******************************************************** create-array=20 name=3Dpreference_array=20 size=3D16500 field=3DEMPLID:char=20=20=20 field=3DTOTAL:number field=3DUMH_PRIORITY_ORDER:number=20 end-setup !******************************************************** begin-program !******************************************************** do select_data do print_array end-program !******************************************************** begin-procedure select_data !******************************************************** let #counter =3D 0=20 begin-select C.EMPLID (,1)=20 (C.UMH_TRMS_IN_HS_PTS + C.UMH_OTHER_PTS) &TOTAL (,10) C.UMH_PRIORITY_ORDER (,16)=20 position (+1) put &C.EMPLID &TOTAL &C.UMH_PRIORITY_ORDER into preference_array(#counter) add 1 to #counter FROM PS_UM_H_SNRTY C, PS_UM_H_PRC_PD_TBL A=20 WHERE C.STRM =3D '1067'=20 AND C.STRM =3D A.STRM=20 AND A.EFFDT =3D=20 (SELECT MAX(A_ED.EFFDT)=20 FROM PS_UM_H_PRC_PD_TBL A_ED=20 WHERE A.UMH_PROC_PD =3D A_ED.UMH_PROC_PD=20 AND A_ED.EFFDT <=3D SYSDATE)=20 AND A.UMH_PROC_PD =3D '106730'=20 ORDER BY C.UMH_TRMS_IN_HS_PTS DESC, C.UMH_PRIORITY_ORDER DESC end-select end-procedure ! select_data !******************************************************** begin-procedure print_array !******************************************************** let #i =3D 0 while #i < #counter get $C.EMPLID $TOTAL $C.UMH_PRIORITY_ORDER from preference_array(#i) print $C.EMPLID (,1) print $TOTAL (,7) print $C.UMH_PRIORITY_ORDER (,24) position (+1) add 1 to #i end-while end-procedure _______________________________________________ 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 From sqr-users-bounces@sqrug.org Fri Jul 14 14:47:27 2006 Subject: Re: [sqr-users] trying to create an array From: Roger.Harris@certegy.com Date: Fri, 14 Jul 2006 14:42:36 -0400 You are trying to GET number array fields into $String variables. get $C.EMPLID $TOTAL $C.UMH_PRIORITY_ORDER from preference_array(#i) Also, probably is not good form to use the same names as column aliases. Roger L. Harris Programmer Analyst Sr Product Development Certegy Check Services Fidelity National Information Services, Inc 11601 N. Roosevelt Blvd St Petersburg, FL 33716 (727) 227-5850 direct (800) 215-6280 x75850 toll free (727) 570-4917 Fax |---------+----------------------------------------------------> | | "Laura Mayer" | | | | | | Sent by: | | | sqr-users-bounces+roger.harris=certegy.co| | | m@sqrug.org | | | | | | | | | 07/14/2006 02:27 PM | | | Please respond to "This list is for | | | discussion about the SQR database | | | reporting language from Hyperion | | | Solutions." | | | | |---------+----------------------------------------------------> >---------------------------------------------------------------------------------------------| | | | To: sqr-users@sqrug.org | | cc: | | Subject: [sqr-users] trying to create an array | >---------------------------------------------------------------------------------------------| Afternoon, I cant seem to get this. Every time I run this it says: Error on line 49: (SQR 3514) PUT and GET variables must match array field types. I checked and they are the right types. I used the code from the manual but no matter what I do I cant make this work. I cant find any good tutorials out there either. Any help anyone can offer would be great. Thanks in advance Laura !******************************************************** begin-setup !******************************************************** create-array name=preference_array size=16500 field=EMPLID:char field=TOTAL:number field=UMH_PRIORITY_ORDER:number end-setup !******************************************************** begin-program !******************************************************** do select_data do print_array end-program !******************************************************** begin-procedure select_data !******************************************************** let #counter = 0 begin-select C.EMPLID (,1) (C.UMH_TRMS_IN_HS_PTS + C.UMH_OTHER_PTS) &TOTAL (,10) C.UMH_PRIORITY_ORDER (,16) position (+1) put &C.EMPLID &TOTAL &C.UMH_PRIORITY_ORDER into preference_array(#counter) add 1 to #counter FROM PS_UM_H_SNRTY C, PS_UM_H_PRC_PD_TBL A WHERE C.STRM = '1067' AND C.STRM = A.STRM AND A.EFFDT = (SELECT MAX(A_ED.EFFDT) FROM PS_UM_H_PRC_PD_TBL A_ED WHERE A.UMH_PROC_PD = A_ED.UMH_PROC_PD AND A_ED.EFFDT <= SYSDATE) AND A.UMH_PROC_PD = '106730' ORDER BY C.UMH_TRMS_IN_HS_PTS DESC, C.UMH_PRIORITY_ORDER DESC end-select end-procedure ! select_data !******************************************************** begin-procedure print_array !******************************************************** let #i = 0 while #i < #counter get $C.EMPLID $TOTAL $C.UMH_PRIORITY_ORDER from preference_array(#i) print $C.EMPLID (,1) print $TOTAL (,7) print $C.UMH_PRIORITY_ORDER (,24) position (+1) add 1 to #i end-while end-procedure _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------------ This message contains information from Certegy, Inc which may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e:mail postmaster@certegy.com. ============================================================================== _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 14 14:52:40 2006 From: "the dragon" Subject: RE: [sqr-users] trying to create an array Date: Fri, 14 Jul 2006 13:43:54 -0500 It's been a while since I messed around with arrays... or sqr for that matter... sigh. I miss the good olde days./ In any case, you're definin the array as follows: name=preference_array size=16500 field=EMPLID:char field=TOTAL:number field=UMH_PRIORITY_ORDER:number yet, in the get, they are all character variables... (line 49??) get $C.EMPLID $TOTAL $C.UMH_PRIORITY_ORDER from preference_array(#i) I am not certain sqr allows implicit data conversion in that manner. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Afternoon, I cant seem to get this. Every time I run this it says: Error on line 49: (SQR 3514) PUT and GET variables must match array field types. I checked and they are the right types. I used the code from the manual but no matter what I do I cant make this work. I cant find any good tutorials out there either. Any help anyone can offer would be great. Thanks in advance Laura !******************************************************** begin-setup !******************************************************** create-array name=preference_array size=16500 field=EMPLID:char field=TOTAL:number field=UMH_PRIORITY_ORDER:number end-setup !******************************************************** begin-program !******************************************************** do select_data do print_array end-program !******************************************************** begin-procedure select_data !******************************************************** let #counter = 0 begin-select C.EMPLID (,1) (C.UMH_TRMS_IN_HS_PTS + C.UMH_OTHER_PTS) &TOTAL (,10) C.UMH_PRIORITY_ORDER (,16) position (+1) put &C.EMPLID &TOTAL &C.UMH_PRIORITY_ORDER into preference_array(#counter) add 1 to #counter FROM PS_UM_H_SNRTY C, PS_UM_H_PRC_PD_TBL A WHERE C.STRM = '1067' AND C.STRM = A.STRM AND A.EFFDT = (SELECT MAX(A_ED.EFFDT) FROM PS_UM_H_PRC_PD_TBL A_ED WHERE A.UMH_PROC_PD = A_ED.UMH_PROC_PD AND A_ED.EFFDT <= SYSDATE) AND A.UMH_PROC_PD = '106730' ORDER BY C.UMH_TRMS_IN_HS_PTS DESC, C.UMH_PRIORITY_ORDER DESC end-select end-procedure ! select_data !******************************************************** begin-procedure print_array !******************************************************** let #i = 0 while #i < #counter get $C.EMPLID $TOTAL $C.UMH_PRIORITY_ORDER from preference_array(#i) print $C.EMPLID (,1) print $TOTAL (,7) print $C.UMH_PRIORITY_ORDER (,24) position (+1) add 1 to #i end-while end-procedure _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 14 14:56:48 2006 From: "Wright, David L. II" Subject: RE: [sqr-users] trying to create an array Date: Fri, 14 Jul 2006 11:46:11 -0700 TOTAL is a variable and should be preceeded with either $ or # depending on the type of variable you want to use. In your SELECT statement, you've defined the total variable using an &. In the get array you are reading$total - not the same as &total. Dave -----Original Message----- From: sqr-users-bounces+david.l.wright.ii=saic.com@sqrug.org [mailto:sqr-users-bounces+david.l.wright.ii=saic.com@sqrug.org] On Behalf Of Laura Mayer Sent: Friday, July 14, 2006 11:28 AM To: sqr-users@sqrug.org Subject: [sqr-users] trying to create an array Afternoon, I cant seem to get this. Every time I run this it says: Error on line 49: (SQR 3514) PUT and GET variables must match array field types. I checked and they are the right types. I used the code from the manual but no matter what I do I cant make this work. I cant find any good tutorials out there either. Any help anyone can offer would be great. Thanks in advance Laura !******************************************************** begin-setup !******************************************************** create-array name=preference_array size=16500 field=EMPLID:char field=TOTAL:number field=UMH_PRIORITY_ORDER:number end-setup !******************************************************** begin-program !******************************************************** do select_data do print_array end-program !******************************************************** begin-procedure select_data !******************************************************** let #counter = 0 begin-select C.EMPLID (,1) (C.UMH_TRMS_IN_HS_PTS + C.UMH_OTHER_PTS) &TOTAL (,10) C.UMH_PRIORITY_ORDER (,16) position (+1) put &C.EMPLID &TOTAL &C.UMH_PRIORITY_ORDER into preference_array(#counter) add 1 to #counter FROM PS_UM_H_SNRTY C, PS_UM_H_PRC_PD_TBL A WHERE C.STRM = '1067' AND C.STRM = A.STRM AND A.EFFDT = (SELECT MAX(A_ED.EFFDT) FROM PS_UM_H_PRC_PD_TBL A_ED WHERE A.UMH_PROC_PD = A_ED.UMH_PROC_PD AND A_ED.EFFDT <= SYSDATE) AND A.UMH_PROC_PD = '106730' ORDER BY C.UMH_TRMS_IN_HS_PTS DESC, C.UMH_PRIORITY_ORDER DESC end-select end-procedure ! select_data !******************************************************** begin-procedure print_array !******************************************************** let #i = 0 while #i < #counter get $C.EMPLID $TOTAL $C.UMH_PRIORITY_ORDER from preference_array(#i) print $C.EMPLID (,1) print $TOTAL (,7) print $C.UMH_PRIORITY_ORDER (,24) position (+1) add 1 to #i end-while end-procedure _______________________________________________ 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 From sqr-users-bounces@sqrug.org Fri Jul 14 15:05:58 2006 Date: Fri, 14 Jul 2006 14:56:44 -0400 From: "Laura Mayer" Subject: Re: Fwd: [sqr-users] trying to create an array Thanks to all for the great help and suggestions. That did it.=20 Thanks again. >>> Amy Eldridge 7/14/2006 2:40 PM >>> If total and priority are numbers per your array, why are you feeding them= =20 into character variables ($TOTAL and $C.UMH_PRIORITY_ORDER)? Shouldn't that be #TOTAL and #C.UMH_PRIORITY_ORDER? A. >X-Mailer: Novell GroupWise Internet Agent 6.5.4 >Date: Fri, 14 Jul 2006 14:27:55 -0400 >From: "Laura Mayer" >To: >Subject: [sqr-users] trying to create an array >X-BeenThere: sqr-users@sqrug.org=20 >X-Mailman-Version: 2.1.5 >Reply-To: "This list is for discussion about the SQR database reporting > language from Hyperion Solutions." >List-Id: "This list is for discussion about the SQR database reporting > language from Hyperion Solutions." >List-Unsubscribe: , > >List-Post: >List-Help: >List-Subscribe: , > >Sender: sqr-users-bounces+emgeac=3Dmuohio.edu@sqrug.org=20 >X-Real-ConnectIP: 199.164.165.113 >X-Scanned-By: MIMEDefang 2.45 >X-Scanned-By: MIMEDefang 2.52 on 134.53.6.11 > >Afternoon, > >I cant seem to get this. Every time I run this it says: >Error on line 49: > (SQR 3514) PUT and GET variables must match array field types. > >I checked and they are the right types. I used the code from the manual=20 >but no matter what I do I cant make this work. I cant find any good=20 >tutorials out there either. Any help anyone can offer would be great. > >Thanks in advance > >Laura > >!******************************************************** >begin-setup >!******************************************************** > create-array >name=3Dpreference_array >size=3D16500 > field=3DEMPLID:char > field=3DTOTAL:number > field=3DUMH_PRIORITY_ORDER:number > >end-setup > >!******************************************************** >begin-program >!******************************************************** > do select_data > do print_array >end-program > >!******************************************************** >begin-procedure select_data >!******************************************************** >let #counter =3D 0 >begin-select >C.EMPLID (,1) >(C.UMH_TRMS_IN_HS_PTS + C.UMH_OTHER_PTS) &TOTAL (,10) >C.UMH_PRIORITY_ORDER (,16) >position (+1) > put &C.EMPLID &TOTAL &C.UMH_PRIORITY_ORDER into preference_array(#count= er) > add 1 to #counter >FROM PS_UM_H_SNRTY C, PS_UM_H_PRC_PD_TBL A >WHERE C.STRM =3D '1067' >AND C.STRM =3D A.STRM >AND A.EFFDT =3D > (SELECT MAX(A_ED.EFFDT) > FROM PS_UM_H_PRC_PD_TBL A_ED > WHERE A.UMH_PROC_PD =3D A_ED.UMH_PROC_PD > AND A_ED.EFFDT <=3D SYSDATE) >AND A.UMH_PROC_PD =3D '106730' >ORDER BY C.UMH_TRMS_IN_HS_PTS DESC, C.UMH_PRIORITY_ORDER DESC >end-select >end-procedure ! select_data > >!******************************************************** >begin-procedure print_array >!******************************************************** >let #i =3D 0 >while #i < #counter > get $C.EMPLID $TOTAL $C.UMH_PRIORITY_ORDER from preference_array(#i) > print $C.EMPLID (,1) > print $TOTAL (,7) > print $C.UMH_PRIORITY_ORDER (,24) > position (+1) > add 1 to #i >end-while > >end-procedure > > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org=20 >http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 14 16:35:04 2006 Date: Fri, 14 Jul 2006 16:32:15 -0400 From: "Vaidyanathan, Ramakrishnan \(GE, Corporate, consultant\)" Subject: [sqr-users] SQR Executed thru Process Scheduler Hi, When a sqr is kicked off from a process scheduler, i see that its getti= ng executed as SYSADM user with SYSADM user privilege. If thats the case, t= hen any inserts/updates/deletes to the table should be possible. So If any = user (with only SELECT privilege) logs into the PIA page and kicks of the s= qr thru process scheduler, then will the SQR be able to perform the same in= serts/updates/deletes to the table? How will the OPRID come into picture? Thanks Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 14 17:17:55 2006 From: "the dragon" Subject: RE: [sqr-users] SQR Executed thru Process Scheduler Date: Fri, 14 Jul 2006 15:43:19 -0500 If the sqr is executed through the process scheduler, regardless of who is executing it, it will run with the privs of sysadm. OPRID is a security construct of PeopleSoft which is used for access. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hi, When a sqr is kicked off from a process scheduler, i see that its getting executed as SYSADM user with SYSADM user privilege. If thats the case, then any inserts/updates/deletes to the table should be possible. So If any user (with only SELECT privilege) logs into the PIA page and kicks of the sqr thru process scheduler, then will the SQR be able to perform the same inserts/updates/deletes to the table? How will the OPRID come into picture? Thanks Ram _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 14 17:58:26 2006 Date: Fri, 14 Jul 2006 16:56:32 -0500 From: "ViJaYaNaNd gMaiL" Subject: [sqr-users] Reading file into SQR Hi I have a text file that I am reading in through sqr. Now the format of the text file has changed and the file is not reading properly and not updating the tables. Do i need to modify the program. Any pointers would be of much helpful to me. Here is the piece of code: while 1 = 1 read 1 into $recorddata:1000 let $recorddata = upper($recorddata) EVALUATE $recorddata when = 'SSN:' read 1 into $recorddata:1000 LET $N_SSN = upper($recorddata) BREAK My text file previous was looking like this for SSN: SSN: 999-99-9999 But now my text file looks like this 999-99-9999 SSN: Similarly someother fields got rearranged like these. Need advice thnx cvijay _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sat Jul 15 15:44:13 2006 Subject: RE: [sqr-users] trying to create an array Date: Sun, 16 Jul 2006 01:11:28 +0530 From: "Karunakaran Perumbrayoor" Dave, You are perfectly right. SQR doesnt allow implicit data conversion an= d this error is surely due to the column variable being a number type and t= he other variable being a string. =20 Regards... Karun -----Original Message-----=20 From: Wright, David L. II [mailto:DAVID.L.WRIGHT.II@saic.com]=20 Sent: Sat 15-Jul-2006 12:16 AM=20 To: 'This list is for discussion about the SQR database reporting language= from Hyperion Solutions.'=20 Cc:=20 Subject: RE: [sqr-users] trying to create an array =09 =09 TOTAL is a variable and should be preceeded with either $ or # depending on the type of variable you want to use. In your SELECT statement, you've defined the total variable using an &. In the get array you are reading$total - not the same as &total. =09 Dave =09 =09 =09 -----Original Message----- From: sqr-users-bounces+david.l.wright.ii=3Dsaic.com@sqrug.org [mailto:sqr-users-bounces+david.l.wright.ii=3Dsaic.com@sqrug.org] On Behal= f Of Laura Mayer Sent: Friday, July 14, 2006 11:28 AM To: sqr-users@sqrug.org Subject: [sqr-users] trying to create an array =09 =09 Afternoon, =09 I cant seem to get this. Every time I run this it says: Error on line 49: (SQR 3514) PUT and GET variables must match array field types. =09 I checked and they are the right types. I used the code from the manual but no matter what I do I cant make this work. I cant find any good tutorials out there either. Any help anyone can offer would be great. =09 Thanks in advance =09 Laura =09 !******************************************************** begin-setup !******************************************************** create-array name=3Dpreference_array size=3D16500 field=3DEMPLID:char=20=20 field=3DTOTAL:number field=3DUMH_PRIORITY_ORDER:number =09 end-setup =09 !******************************************************** begin-program !******************************************************** do select_data do print_array end-program =09 !******************************************************** begin-procedure select_data !******************************************************** let #counter =3D 0 begin-select C.EMPLID (,1) (C.UMH_TRMS_IN_HS_PTS + C.UMH_OTHER_PTS) &TOTAL (,10) C.UMH_PRIORITY_ORDER (,16) position (+1) put &C.EMPLID &TOTAL &C.UMH_PRIORITY_ORDER into preference_array(#counte= r) add 1 to #counter FROM PS_UM_H_SNRTY C, PS_UM_H_PRC_PD_TBL A WHERE C.STRM =3D '1067' AND C.STRM =3D A.STRM AND A.EFFDT =3D (SELECT MAX(A_ED.EFFDT) FROM PS_UM_H_PRC_PD_TBL A_ED WHERE A.UMH_PROC_PD =3D A_ED.UMH_PROC_PD AND A_ED.EFFDT <=3D SYSDATE) AND A.UMH_PROC_PD =3D '106730' ORDER BY C.UMH_TRMS_IN_HS_PTS DESC, C.UMH_PRIORITY_ORDER DESC end-select end-procedure ! select_data =09 !******************************************************** begin-procedure print_array !******************************************************** let #i =3D 0 while #i < #counter get $C.EMPLID $TOTAL $C.UMH_PRIORITY_ORDER from preference_array(#i) print $C.EMPLID (,1) print $TOTAL (,7) print $C.UMH_PRIORITY_ORDER (,24) position (+1) add 1 to #i end-while =09 end-procedure =09 =09 =09 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users =09 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users =09 ***************************************************************************= ************************************************ This e-mail communication and any attachments may be privileged and confide= ntial to Hexaware and are intended only for the=20 use of the recipients named above. If you are not the intended recipient, p= lease do not review, disclose, disseminate,=20 distribute or copy this e-mail and attachments. If you have received this e= mail in error, please delete the same alongwith=20 all attachments thereto and notify us immediately at mailadmin@hexaware.com= . ***************************************************************************= ************************************************ =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 17 09:18:51 2006 Date: Mon, 17 Jul 2006 09:16:43 -0400 From: "White . Denise" Subject: [sqr-users] RE: Reading file into SQR I would say that you will have to do something like this: while 1 =3D 1 read 1 into $recorddata1:1000 read 1 into $recorddata2:1000 let $recorddata2 =3D upper($recorddata2) EVALUATE $recorddata2 when =3D 'SSN:' LET $N_SSN =3D upper($recorddata1) BREAK HTH, Denise M. White EBS Programmer/Analyst III Dynamics Research Corporation ------------------------------ Message: 10 Date: Fri, 14 Jul 2006 16:56:32 -0500 From: "ViJaYaNaNd gMaiL" Subject: [sqr-users] Reading file into SQR To: sqr-users@sqrug.org Message-ID: Content-Type: text/plain; charset=3DISO-8859-1; format=3Dflowed Hi I have a text file that I am reading in through sqr. Now the format of the text file has changed and the file is not reading properly and not updating the tables. Do i need to modify the program. Any pointers would be of much helpful to me. Here is the piece of code: while 1 =3D 1 read 1 into $recorddata:1000 let $recorddata =3D upper($recorddata) EVALUATE $recorddata when =3D 'SSN:' read 1 into $recorddata:1000 LET $N_SSN =3D upper($recorddata) BREAK My text file previous was looking like this for SSN: SSN: 999-99-9999 But now my text file looks like this 999-99-9999 SSN: Similarly someother fields got rearranged like these. Need advice thnx cvijay _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 17 09:46:12 2006 Date: Mon, 17 Jul 2006 09:44:03 -0400 From: "Savage, David M" Subject: [sqr-users] SQR Tutorials Hi, I am a beginner to SQR and was wondering if anyone knew of any tutorials I could access via the internet. Thanks Dave S =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 17 09:53:05 2006 Subject: RE: [sqr-users] SQR Tutorials Date: Mon, 17 Jul 2006 09:50:27 -0400 From: "Eric Miller" Hi Dave, Here is where I started: http://dev.hyperion.com/resource_library/technical_documentation/sqr/sqr _8.cfm This page has a couple documents that will explain the basic syntax. Getting Started with SQR and SQR Language Reference were the most helpful to me. - Eric -----Original Message----- From: sqr-users-bounces+eric.miller=3Dcgifederal.com@sqrug.org [mailto:sqr-users-bounces+eric.miller=3Dcgifederal.com@sqrug.org] On Behalf Of Savage, David M Sent: Monday, July 17, 2006 9:44 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] SQR Tutorials Hi, I am a beginner to SQR and was wondering if anyone knew of any tutorials I could access via the internet. Thanks Dave S =20 _______________________________________________ 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 From sqr-users-bounces@sqrug.org Mon Jul 17 09:56:57 2006 Date: Mon, 17 Jul 2006 09:53:30 -0400 From: "Moss, Mike " Subject: [sqr-users] Question about printing paychecks/advices I need to print some "mock" paychecks/advices. We would like to accomplish a few things * Suppress any signatures * Print "void", or "non-negotiable" on the checks/advices in the appropriate places Has anyone done this before? If so, can you point me in the right direction? Maybe send a copy of the modified SQR's? Thanks.=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D This email/fax message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of this email/fax is prohibited. If you are not the intended recipient, please destroy all paper and electronic copies of the original message. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 17 10:27:05 2006 From: "Joe" Subject: RE: [sqr-users] SQR Tutorials Date: Mon, 17 Jul 2006 08:24:25 -0600 This group is the best source of education - excellent threads on just about every topic related to SQR. Also, get the eBook 'SQR in Peoplesoft and Other Applications' by Galina and Vlad Landres (Manning Publication) as an online reference to supplement the SQR help files. HTH, Joe J -----Original Message----- From: sqr-users-bounces+jej1216=hotmail.com@sqrug.org [mailto:sqr-users-bounces+jej1216=hotmail.com@sqrug.org] On Behalf Of Savage, David M Sent: Monday, July 17, 2006 7:44 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] SQR Tutorials Hi, I am a beginner to SQR and was wondering if anyone knew of any tutorials I could access via the internet. Thanks Dave S _______________________________________________ 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 From sqr-users-bounces@sqrug.org Mon Jul 17 10:43:27 2006 From: JOHN_HARRIS@qvc.com Date: Mon, 17 Jul 2006 10:41:02 -0400 Subject: [sqr-users] Unstring into an array I would like to UNSTRING $ATS_RECORDS into an array. I do not know how many records will be in the $ATS_RECORDS variable. There may be zero (0) or many. UNSTRING $ATS_RECORDS BY '^' INTO $FILLER $ATS1 $ATS2 $ATS3 $ATS4 $ATS5 $ATS6 $ATS7 $ATS8 $ATS9 $ATS10 AND SO ON..... Thank you. Regards, John John Harris Programmer/Analyst Application Development - Internal QVC Inc., 1200 Wilson Drive, MC 220, West Chester, PA 19380-4262 Telephone 484-701-3303 Fax 484-701-8689 e-mail jharris@qvc.com This message may contain information that is privileged or confidential. This message may contain information that is privileged or confidential. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 17 10:48:12 2006 From: "the dragon" Subject: RE: [sqr-users] SQR Tutorials Date: Mon, 17 Jul 2006 09:45:43 -0500 Joe, On the one hand I agree with your statement, but on the other hand I think there is an expectation that people will perform due dilligence in getting training elsewhere, as well as reviewing resources such as the book you referenced, or the SQR Language Reference manual from SQRibe/Brio/Hyperion before they come here and start asking "simple" questions that have solutions which are readily available elsewhere. Just my "humble" opinion. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- This group is the best source of education - excellent threads on just about every topic related to SQR. Also, get the eBook 'SQR in Peoplesoft and Other Applications' by Galina and Vlad Landres (Manning Publication) as an online reference to supplement the SQR help files. HTH, Joe J -----Original Message----- Hi, I am a beginner to SQR and was wondering if anyone knew of any tutorials I could access via the internet. Thanks Dave S _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar – get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 17 11:23:46 2006 Date: Mon, 17 Jul 2006 09:20:44 -0600 From: Joe Johnson Subject: Re: [sqr-users] SQR Tutorials This is a multi-part message in MIME format... --------------010401090308050409040606 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I agree - newbies should do whatever they can to read up and get up to nominal speed on SQR. As far as tutorials/training, I have never found any worthwhile tutorial or training offerings - the PeopleSoft SQR classes are pretty lame. JEJ the dragon wrote: > Joe, > > On the one hand I agree with your statement, but on the other hand I > think there is an expectation that people will perform due dilligence > in getting training elsewhere, as well as reviewing resources such as > the book you referenced, or the SQR Language Reference manual from > SQRibe/Brio/Hyperion before they come here and start asking "simple" > questions that have solutions which are readily available elsewhere. > > Just my "humble" opinion. > > peace, > clark 'the dragon' willis > > > > PSA: Salary <> Slavery. If you earn a salary, your employer is renting > your services for 40 hours a week, not purchasing your soul. Your time > is the only real finite asset that you have, and once used it can > never be recovered, so don't waste it by giving it away. > > I work to live; I don't live to work. > > "Time is the coin of your life. It is the only coin you have, and only > you can determine how it will be spent. Be careful lest you let other > people spend it for you." > > Carl Sandburg > (1878 - 1967) > > ----Original Message Follows---- > > This group is the best source of education - excellent threads on just > about > every topic related to SQR. > > Also, get the eBook 'SQR in Peoplesoft and Other Applications' by > Galina and > Vlad Landres (Manning Publication) as an online reference to > supplement the > SQR help files. > > HTH, > > Joe J > > -----Original Message----- > > Hi, > > I am a beginner to SQR and was wondering if anyone knew of any > tutorials I > could access via the internet. > > Thanks > Dave S > > _________________________________________________________________ > FREE pop-up blocking with the new MSN Toolbar -- get it now! > http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > -- *----------------------------------------------* *Joe Johnson* Software Developer *Ernest Health, Inc.** * Office: (505) 798-6480 Ext: 206 *email: joejohnson@ernesthealth.com * --------------010401090308050409040606 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'text/x-vcard' MIME type. It has been automatically discarded before sending the message to the list. --------------010401090308050409040606 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------010401090308050409040606-- From sqr-users-bounces@sqrug.org Mon Jul 17 15:16:36 2006 Date: Mon, 17 Jul 2006 12:14:14 -0700 (PDT) From: John Czekaj Subject: [sqr-users] SQR V6 and SQL Server 2000 I have an SQR that changes the value of EMPLID in all tables where EMLPLID is a column from SSN to a sequentially assigned number. This program runs fine on Oracle, but on SQL Server 2000, it is a dog. It is doing a commit (commit transaction/begin transaction) after each employee is processed, but yet it takes longer and longer to process employees as the SQR runs. Does anyone have any suggestions as to how I can improve the performance of this program? Any assistance would be greatly appreciated. Thanks, John Czekaj, Consultant ADP Professional Services - National Accounts John Czekaj Consultant ADP National Accounts - Professional Services __________________________________________________ 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 From sqr-users-bounces@sqrug.org Mon Jul 17 15:23:16 2006 Subject: RE: [sqr-users] SQR V6 and SQL Server 2000 Date: Mon, 17 Jul 2006 14:21:09 -0500 From: "Knapp, Richard" Do you have some data structure that is increasing in size as the program runs? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of John Czekaj Sent: Monday, July 17, 2006 2:14 PM To: sqr-users@sqrug.org Subject: [sqr-users] SQR V6 and SQL Server 2000 I have an SQR that changes the value of EMPLID in all tables where EMLPLID is a column from SSN to a sequentially assigned number. This program runs fine on Oracle, but on SQL Server 2000, it is a dog. It is doing a commit (commit transaction/begin transaction) after each employee is processed, but yet it takes longer and longer to process employees as the SQR runs. Does anyone have any suggestions as to how I can improve the performance of this program? Any assistance would be greatly appreciated. Thanks, John Czekaj, Consultant ADP Professional Services - National Accounts John Czekaj Consultant ADP National Accounts - Professional Services __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around=20 http://mail.yahoo.com=20 _______________________________________________ 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 From sqr-users-bounces@sqrug.org Mon Jul 17 15:33:39 2006 From: "Jeffrey Newton" Subject: RE: [sqr-users] SQR V6 and SQL Server 2000 Date: Mon, 17 Jul 2006 15:29:45 -0400 I encounterd a similar problem once - the problem turned out to be that the ODBC driver on the server where I ran the SQR was not up to date. When it ran, the initial updates went fairly quickly, but the longer it ran the longer it took to complete an update. >From: John Czekaj >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: sqr-users@sqrug.org >Subject: [sqr-users] SQR V6 and SQL Server 2000 >Date: Mon, 17 Jul 2006 12:14:14 -0700 (PDT) > >I have an SQR that changes the value of EMPLID in all >tables where EMLPLID is a column from SSN to a >sequentially assigned number. This program runs fine >on Oracle, but on SQL Server 2000, it is a dog. It is >doing a commit (commit transaction/begin transaction) >after each employee is processed, but yet it takes >longer and longer to process employees as the SQR >runs. Does anyone have any suggestions as to how I >can improve the performance of this program? Any >assistance would be greatly appreciated. > >Thanks, > >John Czekaj, Consultant >ADP Professional Services - National Accounts > >John Czekaj > Consultant > ADP National Accounts - Professional Services > > >__________________________________________________ >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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 17 16:23:51 2006 Date: Mon, 17 Jul 2006 16:21:07 -0400 From: "Everett Carr" Subject: Re: [sqr-users] Question about printing paychecks/advices easy. modify sqr so that it will only print signature when running on your production environment. ie: encode '<27>(8U<27>(s1p180v0s-7b24623TVOID<27>(3@' into $TroyPrnVoid !............................................................................... begin-procedure hcchk-200-Get-Database-Instance-Name #debugs show $pgm_name '-debugs, hcchk-200-Get-Database-Instance-Name' BEGIN-SELECT ON-ERROR=SQL-Error NAME let $hc_instance_name = rtrim(&NAME, ' ') FROM V$DATABASE END-SELECT if instr($hc_instance_name, 'PROD',1) let $hc_Prod = '1' !true else let $hc_Prod = '0' !false end-if end-procedure Then later on if $hc_Prod = '0' print $TroyPrnVoid (80,15) end-if We let the signature print, but if not on production the above line causes rather LARGE "VOID" to print. Alternately you can use above test to cause sig not to print at all, but sooner or later you'll need to do so for alignment/verification before going to production >>> "Moss, Mike " 7/17/2006 9:53:30 AM >>> I need to print some "mock" paychecks/advices. We would like to accomplish a few things * Suppress any signatures * Print "void", or "non-negotiable" on the checks/advices in the appropriate places Has anyone done this before? If so, can you point me in the right direction? Maybe send a copy of the modified SQR's? Thanks. ==================== This email/fax message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of this email/fax is prohibited. If you are not the intended recipient, please destroy all paper and electronic copies of the original message. _______________________________________________ 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 From sqr-users-bounces@sqrug.org Tue Jul 18 14:44:32 2006 Date: Tue, 18 Jul 2006 14:42:07 -0400 From: "Laura Mayer" Subject: [sqr-users] Question about an array Afternoon, I have an array that loops to many times. It seems that when a student requ= ests one roommate its all happy when they request two roommates it loops th= rough twice for the three people.=20 Any thoughts or advise would be most appreciated. By the way this is code I= 've inherited and trying to make sense of. Thanks=20 Laura !******************************************************** Begin-Procedure Get_Preference !******************************************************** Begin-Select=20 !fields go here let $Emplid=3D$PriEMPLID Do Get_Assign Do Get_RAP Do Get_Name Do Get_Felony Do Get_Priority_Order=20 Do Get_Ferpa Do Get_AcaLevel let $PriName=3D$Name if $Type <> 'No Roommate' Let $PriEMPLID =3D &MA.UMH_PREF_ROOMMATE1 Let $InputIdRM1=3D&MA.UMH_PREF_ROOMMATE1 Do Get_Name if $Period <> $parm_proc_cd let $printPeriod=3D'('|| $Period || ')' else let $printPeriod=3D' ' end-if let $RoommateName1=3D$Name || ' ' || $printPeriod if isBlank(&MA.UMH_PREF_ROOMMATE2) or isnull(&MA.UMH_PREF_ROOMMATE2) else Let $PriEMPLID =3D &MA.UMH_PREF_ROOMMATE2 let $InputIdRM2=3D&MA.UMH_PREF_ROOMMATE2 Do Get_Name let $RoommateName2=3D$Name || ' ' || $printPeriod Do Print_Roommate_Name end-if else=20 Print 'No Roommate' (+1,1) Bold Print '=3D' (+1,1,140) fill end-if Do Print_Data FROM PS_UM_H_PREF MA WHERE MA.STRM =3D $ProcSTRM AND MA.UMH_PROC_PD =3D $parm_proc_cd=20 AND MA.EMPLID =3D $PriEMPLID =20=20=20=20 End-Select End-Procedure _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 19 15:46:09 2006 Date: Wed, 19 Jul 2006 15:43:51 -0400 From: "Laura Mayer" Subject: [sqr-users] Trouble with an array Afternoon, I have an array that I am having a problem with. I only want to see the it = once for each person, what's happening is if the person has two roommates i= t repeats the iteration again so each person with two roommates gets listed= twice.=20 I've posted the if statement that drives it below if someone could offer so= me insight on how to fix this that would be great. Thanks in advance. Laura Do Print_Data if $Type <> 'No Roomate' Let $PriEMPLID =3D &MA.UMH_PREF_ROOMMATE1 let $InputIdRM1=3D&MA.UMH_PREF_ROOMMATE1 Do Get_Name_OfPerson if $Period <> $parm_proc_cd let $printPeriod=3D'('|| $Period || ')' else let $printPeriod=3D' ' end-if let $RoommateName1=3D$Name || ' ' || $printPeriod if isBlank(&MA.UMH_PREF_ROOMMATE2) or isnull(&MA.UMH_PREF_ROOMMATE2) let $InputIdRM2=3D&MA.UMH_PREF_ROOMMATE2 Let $InputIdRM2 =3D '' Let $RoommateName2 =3D '' Do Print_Roommate_Name else=20 Let $PriEMPLID =3D '' Let $InputIdRM2 =3D '' Let $RoommateName2 =3D '' Let $PriEMPLID =3D &MA.UMH_PREF_ROOMMATE2 let $InputIdRM2=3D&MA.UMH_PREF_ROOMMATE2 Do Get_Name_OfPerson let $RoommateName2=3D$Name || ' ' || $printPeriod Do Print_Roommate_Name end-if else=20 Print 'No Roommate' (+1,1) Bold Print '=3D' (+1,1,140) fill end-if _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 19 16:00:25 2006 From: "the dragon" Subject: RE: [sqr-users] Trouble with an array Date: Wed, 19 Jul 2006 14:57:57 -0500 I personally would need to see all your code - additionally, put some show statements inside debugs so you can see what is happening. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Afternoon, I have an array that I am having a problem with. I only want to see the it once for each person, what's happening is if the person has two roommates it repeats the iteration again so each person with two roommates gets listed twice. I've posted the if statement that drives it below if someone could offer some insight on how to fix this that would be great. Thanks in advance. Laura Do Print_Data if $Type <> 'No Roomate' Let $PriEMPLID = &MA.UMH_PREF_ROOMMATE1 let $InputIdRM1=&MA.UMH_PREF_ROOMMATE1 Do Get_Name_OfPerson if $Period <> $parm_proc_cd let $printPeriod='('|| $Period || ')' else let $printPeriod=' ' end-if let $RoommateName1=$Name || ' ' || $printPeriod if isBlank(&MA.UMH_PREF_ROOMMATE2) or isnull(&MA.UMH_PREF_ROOMMATE2) let $InputIdRM2=&MA.UMH_PREF_ROOMMATE2 Let $InputIdRM2 = '' Let $RoommateName2 = '' Do Print_Roommate_Name else Let $PriEMPLID = '' Let $InputIdRM2 = '' Let $RoommateName2 = '' Let $PriEMPLID = &MA.UMH_PREF_ROOMMATE2 let $InputIdRM2=&MA.UMH_PREF_ROOMMATE2 Do Get_Name_OfPerson let $RoommateName2=$Name || ' ' || $printPeriod Do Print_Roommate_Name end-if else Print 'No Roommate' (+1,1) Bold Print '=' (+1,1,140) fill end-if _________________________________________________________________ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 19 16:14:00 2006 Subject: RE: [sqr-users] Trouble with an array Date: Wed, 19 Jul 2006 15:11:41 -0500 From: "Knapp, Richard" Laura, Here's a programming hint: use white space. For example: Do Print_Data if $Type <> 'No Roomate' Let $PriEMPLID =3D &MA.UMH_PREF_ROOMMATE1 let $InputIdRM1=3D&MA.UMH_PREF_ROOMMATE1 Do Get_Name_OfPerson if $Period <> $parm_proc_cd let $printPeriod=3D'('|| $Period || ')' else let $printPeriod=3D' ' end-if let $RoommateName1=3D$Name || ' ' || $printPeriod if isBlank(&MA.UMH_PREF_ROOMMATE2) or isnull(&MA.UMH_PREF_ROOMMATE2) !**ISBLANK includes nulls** let $InputIdRM2=3D&MA.UMH_PREF_ROOMMATE2 Let $InputIdRM2 =3D '' Let $RoommateName2 =3D '' Do Print_Roommate_Name else=20 Let $PriEMPLID =3D '' Let $InputIdRM2 =3D '' Let $RoommateName2 =3D '' Let $PriEMPLID =3D &MA.UMH_PREF_ROOMMATE2 let $InputIdRM2=3D&MA.UMH_PREF_ROOMMATE2 Do Get_Name_OfPerson let $RoommateName2=3D$Name || ' ' || $printPeriod Do Print_Roommate_Name end-if else=20 Print 'No Roommate' (+1,1) Bold Print '=3D' (+1,1,140) fill end-if Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Laura Mayer Sent: Wednesday, July 19, 2006 2:44 PM To: sqr-users@sqrug.org Subject: [sqr-users] Trouble with an array Afternoon, I have an array that I am having a problem with. I only want to see the it once for each person, what's happening is if the person has two roommates it repeats the iteration again so each person with two roommates gets listed twice.=20 I've posted the if statement that drives it below if someone could offer some insight on how to fix this that would be great. Thanks in advance. Laura Do Print_Data if $Type <> 'No Roomate' Let $PriEMPLID =3D &MA.UMH_PREF_ROOMMATE1 let $InputIdRM1=3D&MA.UMH_PREF_ROOMMATE1 Do Get_Name_OfPerson if $Period <> $parm_proc_cd let $printPeriod=3D'('|| $Period || ')' else let $printPeriod=3D' ' end-if let $RoommateName1=3D$Name || ' ' || $printPeriod if isBlank(&MA.UMH_PREF_ROOMMATE2) or isnull(&MA.UMH_PREF_ROOMMATE2) let $InputIdRM2=3D&MA.UMH_PREF_ROOMMATE2 Let $InputIdRM2 =3D '' Let $RoommateName2 =3D '' Do Print_Roommate_Name else=20 Let $PriEMPLID =3D '' Let $InputIdRM2 =3D '' Let $RoommateName2 =3D '' Let $PriEMPLID =3D &MA.UMH_PREF_ROOMMATE2 let $InputIdRM2=3D&MA.UMH_PREF_ROOMMATE2 Do Get_Name_OfPerson let $RoommateName2=3D$Name || ' ' || $printPeriod Do Print_Roommate_Name end-if else=20 Print 'No Roommate' (+1,1) Bold Print '=3D' (+1,1,140) fill end-if _______________________________________________ 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 From sqr-users-bounces@sqrug.org Thu Jul 20 08:07:09 2006 Date: Thu, 20 Jul 2006 17:33:30 +0530 From: "Karunakaran Perumbrayoor" Subject: [sqr-users] SQR 1301: Forward references not permitted in select list bind variables Hi Everybody, =20 GREETINGS!!! I face a small problem while running an SQR report in Sybase. I am getting a compilation error "SQR 1301: Forward references not permitted in select list bind variables".=20 =20 When I have a look at the Peoplebooks, the solution is given as" Within the body of BEGIN-SQL paragraphs, forward references to &column names are not permitted. Move the BEGIN-SQL paragraph after the &column definition". I tried commenting all the Begin -SQL's (All Insert, Deletes which were happening) which I have in the program just for a check, and still I am met with the same error. =20 What could be the problem? Please let me know if you have any suggestions or solutions to offer. =20 Regards... Karun =20 =20 ***************************************************************************= ************************************************ This e-mail communication and any attachments may be privileged and confide= ntial to Hexaware and are intended only for the=20 use of the recipients named above. If you are not the intended recipient, p= lease do not review, disclose, disseminate,=20 distribute or copy this e-mail and attachments. If you have received this e= mail in error, please delete the same alongwith=20 all attachments thereto and notify us immediately at mailadmin@hexaware.com= . ***************************************************************************= ************************************************ =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jul 20 10:20:34 2006 Date: Thu, 20 Jul 2006 10:17:58 -0400 From: "Mingazov, Maya" Subject: [sqr-users] Environment variable SQRDIR Hello everyone, I am getting following error and don't know what that means. Maybe someone had similar error and remembers how to resolve it. Any suggestions will be helpful. ' root@sun04>more LSHAWWedJul1916:33:02EDT2006PLNR470.lis.o14852 Warning: no access to tty; thus no job control in this shell... Sun Microsystems Inc. SunOS 5.9 Generic May 2002 You have new mail. (SQR 14) The required environment variable SQRDIR has not been defined. ' Thank you very much, Maya=20 This message and its attachments may contain legally privileged or confiden= tial information. It is intended solely for the named addressee. If you a= re not the addressee indicated in this message (or responsible for delivery= of the message to the addressee), you may not copy or deliver this message= or its attachments to anyone. Rather, you should permanently delete this = message and its attachments and kindly notify the sender by reply e-mail. = Any content of this message and its attachments that does not relate to the= official business of News America Incorporated or its subsidiaries must be= taken not to have been sent or endorsed by any of them. No warranty is ma= de that the e-mail or attachment(s) are free from computer virus or other d= efect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jul 20 10:25:39 2006 Subject: RE: [sqr-users] Environment variable SQRDIR Date: Thu, 20 Jul 2006 09:23:45 -0500 From: "Knapp, Richard" Your initialization file (where SQRDIR will be defined) is not being run. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Mingazov, Maya Sent: Thursday, July 20, 2006 9:18 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] Environment variable SQRDIR Hello everyone, I am getting following error and don't know what that means. Maybe someone had similar error and remembers how to resolve it. Any suggestions will be helpful. ' root@sun04>more LSHAWWedJul1916:33:02EDT2006PLNR470.lis.o14852 Warning: no access to tty; thus no job control in this shell... Sun Microsystems Inc. SunOS 5.9 Generic May 2002 You have new mail. (SQR 14) The required environment variable SQRDIR has not been defined. ' Thank you very much, Maya=20 This message and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of News America Incorporated or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. _______________________________________________ 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 From sqr-users-bounces@sqrug.org Thu Jul 20 10:39:25 2006 Subject: RE: [sqr-users] Environment variable SQRDIR Date: Thu, 20 Jul 2006 10:36:50 -0400 From: "Mingazov, Maya" Is there anything that has to be changed? How to trigger it? What is the reason for .ini not being called? Thank you, Maya=20 -----Original Message----- From: sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org [mailto:sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Thursday, July 20, 2006 10:24 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Environment variable SQRDIR Your initialization file (where SQRDIR will be defined) is not being run. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Mingazov, Maya Sent: Thursday, July 20, 2006 9:18 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] Environment variable SQRDIR Hello everyone, I am getting following error and don't know what that means. Maybe someone had similar error and remembers how to resolve it. Any suggestions will be helpful. ' root@sun04>more LSHAWWedJul1916:33:02EDT2006PLNR470.lis.o14852 Warning: no access to tty; thus no job control in this shell... Sun Microsystems Inc. SunOS 5.9 Generic May 2002 You have new mail. (SQR 14) The required environment variable SQRDIR has not been defined. ' Thank you very much, Maya=20 This message and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of News America Incorporated or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. _______________________________________________ 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 This message and its attachments may contain legally privileged or confiden= tial information. It is intended solely for the named addressee. If you a= re not the addressee indicated in this message (or responsible for delivery= of the message to the addressee), you may not copy or deliver this message= or its attachments to anyone. Rather, you should permanently delete this = message and its attachments and kindly notify the sender by reply e-mail. = Any content of this message and its attachments that does not relate to the= official business of News America Incorporated or its subsidiaries must be= taken not to have been sent or endorsed by any of them. No warranty is ma= de that the e-mail or attachment(s) are free from computer virus or other d= efect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jul 20 10:44:31 2006 Subject: RE: [sqr-users] Environment variable SQRDIR Date: Thu, 20 Jul 2006 09:42:33 -0500 From: "Knapp, Richard" It's probably not specified in the command line when SQR is fired up. You should see/have a -ZIFfullpathnametoinifile entry on the command line. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Mingazov, Maya Sent: Thursday, July 20, 2006 9:37 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Environment variable SQRDIR Is there anything that has to be changed? How to trigger it? What is the reason for .ini not being called? Thank you, Maya=20 -----Original Message----- From: sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org [mailto:sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Thursday, July 20, 2006 10:24 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Environment variable SQRDIR Your initialization file (where SQRDIR will be defined) is not being run. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Mingazov, Maya Sent: Thursday, July 20, 2006 9:18 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] Environment variable SQRDIR Hello everyone, I am getting following error and don't know what that means. Maybe someone had similar error and remembers how to resolve it. Any suggestions will be helpful. ' root@sun04>more LSHAWWedJul1916:33:02EDT2006PLNR470.lis.o14852 Warning: no access to tty; thus no job control in this shell... Sun Microsystems Inc. SunOS 5.9 Generic May 2002 You have new mail. (SQR 14) The required environment variable SQRDIR has not been defined. ' Thank you very much, Maya=20 This message and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of News America Incorporated or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. _______________________________________________ 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 This message and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of News America Incorporated or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. _______________________________________________ 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 From sqr-users-bounces@sqrug.org Thu Jul 20 15:51:04 2006 Date: Thu, 20 Jul 2006 15:48:37 -0400 From: "Laura Mayer" Subject: [sqr-users] almost got it. I've got it working, sort of. The problem I have now is it wont print the m= atches out together. They all get printed out one at a time, which is good,= but they go in order of the input file not grouped as I would like them.= =20 I have the problem narrowed down to a few lines of code. If you look at lin= e 11 its taking the id set by the roommate and resetting it to next id in t= he array. How I can I say check if the EMPLID is blank if it is blank go a= head and get the next value in the array if not continue processing with th= e roommates ID.... I know the problem is in the first few lines of the code but I've been look= ing at this so long I cant see the forest for the trees... Thanks as always for any help you can offer. Laura let $found=3D'N' let #index=3D0 While 1 Read 1 into $Input_Str:8 if #end-File =3D1 break end-if Let $InputEmplid =3D substr($Input_Str, 1, 8) Let $EMPLID =3D$InputEmplid Do Check_If_ID_Printed !if input Id has been proceed if $found=3D'N' ! not processed let $PrintFlag =3D 'Y' let $period=3D $parm_proc_cd ! only run period Do Get_Roommate ! find input id's Preference record (building if $PreferenceFound=3D'Y' ! found row in Preference table if $RMFound=3D'N' and $RMFound2 =3D'N'! rm1 and rm2 empty Let $prType =3D 'No Roomate' else !Has rmts Let $InputIdRM1 =3D '' Let $InputIdRM2 =3D '' Let $InputIdRM1=3D &A.UMH_PREF_ROOMMATE1 Let $InputIdRM2=3D &A.UMH_PREF_ROOMMATE2 Let $EMPLID=3D &A.UMH_PREF_ROOMMATE1 ! input id' roommate1 Do Get_Roommate !find rmt1'rmts for run period if $PreferenceFound=3D'Y'=20 Do Get_Mutual_Type=20=20 else !no Preference in run period, may try another period if $RunPeriod=3D'2' or $RunPeriod=3D'3' !105720 or 105730 Do Look_Next_Period=09=09=09=20=20=20=20=20=20=20 else ! run period is not 20 or 30 let $prType =3D 'Unmatched' let $PrintFlag =3D'Y'=20 end-if=20=20=20=20=20=09=09=09=09=09 end-if end-if=20=20=20=20=09 Do Fill_Array =20=20=20=20=20=20=20 end-if end-if !end of no processed end-while _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 21 11:59:40 2006 Date: Fri, 21 Jul 2006 08:44:36 -0700 From: "John Wills" Subject: [sqr-users] SQR output on same line I have this code, and it works, except that the grades start a line below t= he other information, whereas I want them in a column starting in the same = line as the other info. if I delete the +1 I get only one grade printed, on= the same line as the other information; if I then uncomment the on-break r= epeated grade values do not appear. What am I doing wrong? begin-select spriden_last_name spriden_first_name spriden_mi spriden_last_name || ', ' || spriden_first_name || ' ' || spriden_mi (,1,30) on-break level =3D 1 print =3D change after =3D get-new-page shrtckn_subj_code (,31,5) on-break level =3D 2 print =3D change skiplines = =3D 1 shrtckn_crse_numb (,36,5) on-break level =3D 3 print =3D change skiplines = =3D 1 shrtckg_grde_code_final (+1,45) !on-break level =3D 4 print =3D always skip= lines =3D 1 FROM...=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 24 12:03:43 2006 Date: Mon, 24 Jul 2006 12:01:24 -0400 From: "Laura Mayer" Subject: [sqr-users] Training question Does anyone know where I would be able to find some kind of training in SQR= coding? I feel like I'm drowning here. I've been working on this one repor= t for almost a month and am still not finished.=20 I've only been able to find one book written on it and no tutorials out the= re.=20 I've looked online and can't seem to find any resources at all. Thanks for any thoughts.=20 Laura _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 24 13:40:02 2006 Subject: RE: [sqr-users] Training question Date: Mon, 24 Jul 2006 13:37:38 -0400 From: "Savage, David M" Hi Laura, I am in a similar situation and have received the following from helpful sqr-users; =20 Eric-=20 http://dev.hyperion.com/resource_library/technical_documentation/sqr/sqr _8.cfm =20 This page has a couple documents that will explain the basic syntax. Getting Started with SQR and SQR Language Reference were the most helpful to me. =20 Joe - This group is the best source of education - excellent threads on just about every topic related to SQR. =20 Also, get the eBook 'SQR in Peoplesoft and Other Applications' by Galina and Vlad Landres (Manning Publication) as an online reference to supplement the SQR help files. =20 =20 Hope it helps, =20 Dave=20 =20 -----Original Message----- From: sqr-users-bounces+dmsavage=3Dstatestreet.com@sqrug.org [mailto:sqr-users-bounces+dmsavage=3Dstatestreet.com@sqrug.org] On Behalf Of Laura Mayer Sent: Monday, July 24, 2006 12:01 PM To: sqr-users@sqrug.org Subject: [sqr-users] Training question =20 Does anyone know where I would be able to find some kind of training in SQR coding? I feel like I'm drowning here. I've been working on this one report for almost a month and am still not finished.=20 =20 I've only been able to find one book written on it and no tutorials out there.=20 =20 I've looked online and can't seem to find any resources at all. =20 Thanks for any thoughts.=20 =20 Laura =20 =20 _______________________________________________ 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 From sqr-users-bounces@sqrug.org Mon Jul 24 13:43:53 2006 From: "the dragon" Subject: RE: [sqr-users] Training question Date: Mon, 24 Jul 2006 12:41:31 -0500 Laura, It has been my experience that the only real training that means anything is OJT... The courses offered by PS or Hyperion won't help you with the stuff you're doing - they are strictly beginner stuff, and a waste of time. What reference are you using?? Just have faith in yourself and keep hacking at it. peace, and good luck, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Does anyone know where I would be able to find some kind of training in SQR coding? I feel like I'm drowning here. I've been working on this one report for almost a month and am still not finished. I've only been able to find one book written on it and no tutorials out there. I've looked online and can't seem to find any resources at all. Thanks for any thoughts. Laura _________________________________________________________________ Is your PC infected? Get a FREE online computer virus scan from McAfee® Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 24 13:50:12 2006 Date: Mon, 24 Jul 2006 09:48:17 -0800 From: Melody Sayles Subject: Re: [sqr-users] Training question Laura, I second the vote for the Landres book, 'SQR in Peoplesoft and Other Applications'. I bought one when I first started and everyone in the department comes and borrows it. There are many examples that are easily understood. Melody Savage, David M wrote: > Hi Laura, > > I am in a similar situation and have received the following from helpful > sqr-users; > > > > Eric- > > http://dev.hyperion.com/resource_library/technical_documentation/sqr/sqr > > _8.cfm > > > > This page has a couple documents that will explain the basic syntax. > > Getting Started with SQR and SQR Language Reference were the most > helpful to me. > > > > Joe - This group is the best source of education - excellent threads on > just about every topic related to SQR. > > > > Also, get the eBook 'SQR in Peoplesoft and Other Applications' by Galina > and Vlad Landres (Manning Publication) as an online reference to > supplement the SQR help files. > > > > > > Hope it helps, > > > > Dave > > > > -----Original Message----- > From: sqr-users-bounces+dmsavage=statestreet.com@sqrug.org > [mailto:sqr-users-bounces+dmsavage=statestreet.com@sqrug.org] On Behalf > Of Laura Mayer > Sent: Monday, July 24, 2006 12:01 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] Training question > > > > Does anyone know where I would be able to find some kind of training in > SQR coding? I feel like I'm drowning here. I've been working on this one > report for almost a month and am still not finished. > > > > I've only been able to find one book written on it and no tutorials out > there. > > > > I've looked online and can't seem to find any resources at all. > > > > Thanks for any thoughts. > > > > Laura > > > > > > _______________________________________________ > > 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 From sqr-users-bounces@sqrug.org Mon Jul 24 14:23:57 2006 Subject: RE: [sqr-users] Environment variable SQRDIR Date: Mon, 24 Jul 2006 14:21:21 -0400 From: "Mingazov, Maya" Thanks, it was resolved. Maya Mingazov Developer, Applications Information Services Ph.: 203-563-6448 Fax: 203-563-6503 mmingazov@newsamerica.com -----Original Message----- From: sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org [mailto:sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Thursday, July 20, 2006 10:43 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Environment variable SQRDIR It's probably not specified in the command line when SQR is fired up. You should see/have a -ZIFfullpathnametoinifile entry on the command line. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Mingazov, Maya Sent: Thursday, July 20, 2006 9:37 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Environment variable SQRDIR Is there anything that has to be changed? How to trigger it? What is the reason for .ini not being called? Thank you, Maya=20 -----Original Message----- From: sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org [mailto:sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Thursday, July 20, 2006 10:24 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Environment variable SQRDIR Your initialization file (where SQRDIR will be defined) is not being run. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Mingazov, Maya Sent: Thursday, July 20, 2006 9:18 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] Environment variable SQRDIR Hello everyone, I am getting following error and don't know what that means. Maybe someone had similar error and remembers how to resolve it. Any suggestions will be helpful. ' root@sun04>more LSHAWWedJul1916:33:02EDT2006PLNR470.lis.o14852 Warning: no access to tty; thus no job control in this shell... Sun Microsystems Inc. SunOS 5.9 Generic May 2002 You have new mail. (SQR 14) The required environment variable SQRDIR has not been defined. ' Thank you very much, Maya=20 This message and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of News America Incorporated or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. _______________________________________________ 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 This message and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of News America Incorporated or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. _______________________________________________ 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 This message and its attachments may contain legally privileged or confiden= tial information. It is intended solely for the named addressee. If you a= re not the addressee indicated in this message (or responsible for delivery= of the message to the addressee), you may not copy or deliver this message= or its attachments to anyone. Rather, you should permanently delete this = message and its attachments and kindly notify the sender by reply e-mail. = Any content of this message and its attachments that does not relate to the= official business of News America Incorporated or its subsidiaries must be= taken not to have been sent or endorsed by any of them. No warranty is ma= de that the e-mail or attachment(s) are free from computer virus or other d= efect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 24 14:51:17 2006 Subject: RE: [sqr-users] Training question Date: Mon, 24 Jul 2006 13:49:24 -0500 From: "Knapp, Richard" If you are an experienced programmer, just find some examples - hopefully of good code. Peoplesoft will not be much help there. SQR is a very simple language but there are a few gotchas. One I can think of is - if your SQL select block does not return any rows, no code in that block will be executed. On the other hand, no new language will be all that easy without some help - either good examples or some experienced person to ask questions of or some text or, best of all, all of those. ("Simple ain't easy." - Duke Ellington) Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Laura Mayer Sent: Monday, July 24, 2006 11:01 AM To: sqr-users@sqrug.org Subject: [sqr-users] Training question Does anyone know where I would be able to find some kind of training in SQR coding? I feel like I'm drowning here. I've been working on this one report for almost a month and am still not finished.=20 I've only been able to find one book written on it and no tutorials out there.=20 I've looked online and can't seem to find any resources at all. Thanks for any thoughts.=20 Laura _______________________________________________ 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 From sqr-users-bounces@sqrug.org Mon Jul 24 14:55:09 2006 Date: Mon, 24 Jul 2006 14:52:19 -0400 From: "Laura Mayer" Subject: RE: [sqr-users] Training question Unfortunately I don't have any "good examples". I've been told that my pred= ecessor wrote bad code and I need to rewrite it. That's my conundrum...find= ing a good resource to find out how to do it right.=20 >>> KnappR@umsystem.edu 7/24/2006 2:49:24 PM >>> If you are an experienced programmer, just find some examples - hopefully of good code. Peoplesoft will not be much help there. SQR is a very simple language but there are a few gotchas. One I can think of is - if your SQL select block does not return any rows, no code in that block will be executed. On the other hand, no new language will be all that easy without some help - either good examples or some experienced person to ask questions of or some text or, best of all, all of those. ("Simple ain't easy." - Duke Ellington) Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu=20 -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org=20 [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Laura Mayer Sent: Monday, July 24, 2006 11:01 AM To: sqr-users@sqrug.org=20 Subject: [sqr-users] Training question Does anyone know where I would be able to find some kind of training in SQR coding? I feel like I'm drowning here. I've been working on this one report for almost a month and am still not finished.=20 I've only been able to find one book written on it and no tutorials out there.=20 I've looked online and can't seem to find any resources at all. Thanks for any thoughts.=20 Laura _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 24 14:59:43 2006 Date: Mon, 24 Jul 2006 11:57:14 -0700 (PDT) From: Sam Spritzer Subject: RE: [sqr-users] Training question Laura, I am not sure what system you are on but if its Peoplesoft, you would probably want to look at their delivered reports and clone based on that. SQRly yours, Sam Laura Mayer wrote: Unfortunately I don't have any "good examples". I've been told that my predecessor wrote bad code and I need to rewrite it. That's my conundrum...finding a good resource to find out how to do it right. >>> KnappR@umsystem.edu 7/24/2006 2:49:24 PM >>> If you are an experienced programmer, just find some examples - hopefully of good code. Peoplesoft will not be much help there. SQR is a very simple language but there are a few gotchas. One I can think of is - if your SQL select block does not return any rows, no code in that block will be executed. On the other hand, no new language will be all that easy without some help - either good examples or some experienced person to ask questions of or some text or, best of all, all of those. ("Simple ain't easy." - Duke Ellington) Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Laura Mayer Sent: Monday, July 24, 2006 11:01 AM To: sqr-users@sqrug.org Subject: [sqr-users] Training question Does anyone know where I would be able to find some kind of training in SQR coding? I feel like I'm drowning here. I've been working on this one report for almost a month and am still not finished. I've only been able to find one book written on it and no tutorials out there. I've looked online and can't seem to find any resources at all. Thanks for any thoughts. Laura _______________________________________________ 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 ************************************************************ "In the beginning, there was something...which exploded yet, they find nothing." --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 24 15:03:08 2006 Subject: RE: [sqr-users] Training question Date: Mon, 24 Jul 2006 14:01:02 -0500 From: "Knapp, Richard" What is the general area you are writing for? Are you a PS shop? I'll see if I can find something to send you when I hear back. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Laura Mayer Sent: Monday, July 24, 2006 1:52 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Training question Unfortunately I don't have any "good examples". I've been told that my predecessor wrote bad code and I need to rewrite it. That's my conundrum...finding a good resource to find out how to do it right.=20 >>> KnappR@umsystem.edu 7/24/2006 2:49:24 PM >>> If you are an experienced programmer, just find some examples - hopefully of good code. Peoplesoft will not be much help there. SQR is a very simple language but there are a few gotchas. One I can think of is - if your SQL select block does not return any rows, no code in that block will be executed. On the other hand, no new language will be all that easy without some help - either good examples or some experienced person to ask questions of or some text or, best of all, all of those. ("Simple ain't easy." - Duke Ellington) Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu=20 -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org=20 [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Laura Mayer Sent: Monday, July 24, 2006 11:01 AM To: sqr-users@sqrug.org=20 Subject: [sqr-users] Training question Does anyone know where I would be able to find some kind of training in SQR coding? I feel like I'm drowning here. I've been working on this one report for almost a month and am still not finished.=20 I've only been able to find one book written on it and no tutorials out there.=20 I've looked online and can't seem to find any resources at all. Thanks for any thoughts.=20 Laura _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 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 From sqr-users-bounces@sqrug.org Mon Jul 24 15:09:38 2006 From: "the dragon" Subject: RE: [sqr-users] Training question Date: Mon, 24 Jul 2006 14:06:50 -0500 Lol... you're funny. Sam, that's the worst possibly advice. PeopleSoft writes the crappiest code I have ever seen and seems to have no internal coding standards or guidelines... peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Laura, I am not sure what system you are on but if its Peoplesoft, you would probably want to look at their delivered reports and clone based on that. SQRly yours, Sam Laura Mayer wrote: Unfortunately I don't have any "good examples". I've been told that my predecessor wrote bad code and I need to rewrite it. That's my conundrum...finding a good resource to find out how to do it right. >>> KnappR@umsystem.edu 7/24/2006 2:49:24 PM >>> If you are an experienced programmer, just find some examples - hopefully of good code. Peoplesoft will not be much help there. SQR is a very simple language but there are a few gotchas. One I can think of is - if your SQL select block does not return any rows, no code in that block will be executed. On the other hand, no new language will be all that easy without some help - either good examples or some experienced person to ask questions of or some text or, best of all, all of those. ("Simple ain't easy." - Duke Ellington) Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 24 15:13:02 2006 Subject: RE: [sqr-users] Training question Date: Mon, 24 Jul 2006 14:07:53 -0500 From: "Knapp, Richard" I'm sorry to contradict, Sam, but for someone who has no experience in SQR,= I think you are recommending a season in hell. I had 5 years of SQR befor= e I encountered the PS reports and still it was hellacious (in the extreme.= ) It is all boilerplate. There is not a breath of fresh air to be had. I= t reads like some long winded legal document whose purpose is not to clarif= y but to wear down the reader. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-b= ounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Sam Spritzer Sent: Monday, July 24, 2006 1:57 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: RE: [sqr-users] Training question Laura, I am not sure what system you are on but if its Peoplesoft, you would pro= bably want to look at their delivered reports and clone based on that.=20= =20 SQRly yours, Sam Laura Mayer wrote: Unfortunately I don't have any "good examples". I've been told that my pr= edecessor wrote bad code and I need to rewrite it. That's my conundrum...fi= nding a good resource to find out how to do it right.=20 >>> KnappR@umsystem.edu 7/24/2006 2:49:24 PM >>> If you are an experienced programmer, just find some examples - hopefully of good code. Peoplesoft will not be much help there. SQR is a very simple language but there are a few gotchas. One I can think of is - if your SQL select block does not return any rows, no code in that block will be executed. On the other hand, no new language will be all that easy without some help - either good examples or some experienced person to ask questions of or some text or, best of all, all of those. ("Simple ain't easy." - Duke Ellington) Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu=20 -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org=20 [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Laura Mayer Sent: Monday, July 24, 2006 11:01 AM To: sqr-users@sqrug.org=20 Subject: [sqr-users] Training question Does anyone know where I would be able to find some kind of training in SQR coding? I feel like I'm drowning here. I've been working on this one report for almost a month and am still not finished.=20 I've only been able to find one book written on it and no tutorials out there.=20 I've looked online and can't seem to find any resources at all. Thanks for any thoughts.=20 Laura _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ************************************************************ "In the beginning, there was something...which exploded yet, they find noth= ing." =20=09=09 --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ coun= tries) for 2=A2/min or less. _______________________________________________ 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 From sqr-users-bounces@sqrug.org Mon Jul 24 15:17:40 2006 Date: Mon, 24 Jul 2006 15:15:00 -0400 From: "Everett Carr" Subject: RE: [sqr-users] Training question but doing that would be in many respects cloning good examples of what not = to do >>> Sam Spritzer 7/24/2006 2:57 PM >>> Laura, I am not sure what system you are on but if its Peoplesoft, you would pro= bably want to look at their delivered reports and clone based on that.=20= =20 SQRly yours, Sam Laura Mayer wrote: Unfortunately I don't have any "good examples". I've been told that my pr= edecessor wrote bad code and I need to rewrite it. That's my conundrum...fi= nding a good resource to find out how to do it right.=20 >>> KnappR@umsystem.edu 7/24/2006 2:49:24 PM >>> If you are an experienced programmer, just find some examples - hopefully of good code. Peoplesoft will not be much help there. SQR is a very simple language but there are a few gotchas. One I can think of is - if your SQL select block does not return any rows, no code in that block will be executed. On the other hand, no new language will be all that easy without some help - either good examples or some experienced person to ask questions of or some text or, best of all, all of those. ("Simple ain't easy." - Duke Ellington) Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu=20 -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org=20 [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Laura Mayer Sent: Monday, July 24, 2006 11:01 AM To: sqr-users@sqrug.org=20 Subject: [sqr-users] Training question Does anyone know where I would be able to find some kind of training in SQR coding? I feel like I'm drowning here. I've been working on this one report for almost a month and am still not finished.=20 I've only been able to find one book written on it and no tutorials out there.=20 I've looked online and can't seem to find any resources at all. Thanks for any thoughts.=20 Laura _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users ************************************************************ "In the beginning, there was something...which exploded yet, they find noth= ing." =20=09=09 --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ coun= tries) for 2=A2/min or less. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 24 15:21:35 2006 Date: Mon, 24 Jul 2006 15:17:10 -0400 From: "Everett Carr" Subject: RE: [sqr-users] Training question and thats for sqr...... they must send their programmers to the College of How to ScrewUp a Wet Dream to teach them how to take a great language, cobol, and turn it into something almost complete unrecognizable >>> "the dragon" 7/24/2006 3:06 PM >>> Lol... you're funny. Sam, that's the worst possibly advice. PeopleSoft writes the crappiest code I have ever seen and seems to have no internal coding standards or guidelines... peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Laura, I am not sure what system you are on but if its Peoplesoft, you would probably want to look at their delivered reports and clone based on that. SQRly yours, Sam Laura Mayer wrote: Unfortunately I don't have any "good examples". I've been told that my predecessor wrote bad code and I need to rewrite it. That's my conundrum...finding a good resource to find out how to do it right. >>> KnappR@umsystem.edu 7/24/2006 2:49:24 PM >>> If you are an experienced programmer, just find some examples - hopefully of good code. Peoplesoft will not be much help there. SQR is a very simple language but there are a few gotchas. One I can think of is - if your SQL select block does not return any rows, no code in that block will be executed. On the other hand, no new language will be all that easy without some help - either good examples or some experienced person to ask questions of or some text or, best of all, all of those. ("Simple ain't easy." - Duke Ellington) Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ 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 From sqr-users-bounces@sqrug.org Mon Jul 24 15:25:17 2006 Date: Mon, 24 Jul 2006 12:20:25 -0700 (PDT) From: Sam Spritzer Subject: RE: [sqr-users] Training question Not if its delivered SQRs. That is, what came bundled with the software. Everett Carr wrote: but doing that would be in many respects cloning good examples of what not to do >>> Sam Spritzer 7/24/2006 2:57 PM >>> Laura, I am not sure what system you are on but if its Peoplesoft, you would probably want to look at their delivered reports and clone based on that. SQRly yours, Sam Laura Mayer wrote: Unfortunately I don't have any "good examples". I've been told that my predecessor wrote bad code and I need to rewrite it. That's my conundrum...finding a good resource to find out how to do it right. >>> KnappR@umsystem.edu 7/24/2006 2:49:24 PM >>> If you are an experienced programmer, just find some examples - hopefully of good code. Peoplesoft will not be much help there. SQR is a very simple language but there are a few gotchas. One I can think of is - if your SQL select block does not return any rows, no code in that block will be executed. On the other hand, no new language will be all that easy without some help - either good examples or some experienced person to ask questions of or some text or, best of all, all of those. ("Simple ain't easy." - Duke Ellington) Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Laura Mayer Sent: Monday, July 24, 2006 11:01 AM To: sqr-users@sqrug.org Subject: [sqr-users] Training question Does anyone know where I would be able to find some kind of training in SQR coding? I feel like I'm drowning here. I've been working on this one report for almost a month and am still not finished. I've only been able to find one book written on it and no tutorials out there. I've looked online and can't seem to find any resources at all. Thanks for any thoughts. Laura _______________________________________________ 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 ************************************************************ "In the beginning, there was something...which exploded yet, they find nothing." --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. _______________________________________________ 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 ************************************************************ "In the beginning, there was something...which exploded yet, they find nothing." --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 24 15:28:31 2006 Date: Mon, 24 Jul 2006 12:22:10 -0700 (PDT) From: Sam Spritzer Subject: RE: [sqr-users] Training question Richard, I might agree although not completely. The PS SQRs are a good basis because they utilize SQLs that are tested and tried. Its a good start in the sense that you know that the data you are looking for is valid. Sam "Knapp, Richard" wrote: I'm sorry to contradict, Sam, but for someone who has no experience in SQR, I think you are recommending a season in hell. I had 5 years of SQR before I encountered the PS reports and still it was hellacious (in the extreme.) It is all boilerplate. There is not a breath of fresh air to be had. It reads like some long winded legal document whose purpose is not to clarify but to wear down the reader. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Sam Spritzer Sent: Monday, July 24, 2006 1:57 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] Training question Laura, I am not sure what system you are on but if its Peoplesoft, you would probably want to look at their delivered reports and clone based on that. SQRly yours, Sam Laura Mayer wrote: Unfortunately I don't have any "good examples". I've been told that my predecessor wrote bad code and I need to rewrite it. That's my conundrum...finding a good resource to find out how to do it right. >>> KnappR@umsystem.edu 7/24/2006 2:49:24 PM >>> If you are an experienced programmer, just find some examples - hopefully of good code. Peoplesoft will not be much help there. SQR is a very simple language but there are a few gotchas. One I can think of is - if your SQL select block does not return any rows, no code in that block will be executed. On the other hand, no new language will be all that easy without some help - either good examples or some experienced person to ask questions of or some text or, best of all, all of those. ("Simple ain't easy." - Duke Ellington) Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Laura Mayer Sent: Monday, July 24, 2006 11:01 AM To: sqr-users@sqrug.org Subject: [sqr-users] Training question Does anyone know where I would be able to find some kind of training in SQR coding? I feel like I'm drowning here. I've been working on this one report for almost a month and am still not finished. I've only been able to find one book written on it and no tutorials out there. I've looked online and can't seem to find any resources at all. Thanks for any thoughts. Laura _______________________________________________ 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 ************************************************************ "In the beginning, there was something...which exploded yet, they find nothing." --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. _______________________________________________ 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 ************************************************************ "In the beginning, there was something...which exploded yet, they find nothing." --------------------------------- How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 24 15:32:19 2006 Date: Mon, 24 Jul 2006 15:28:21 -0400 From: "Everett Carr" Subject: RE: [sqr-users] Training question as you can observe from other replies, more than a few others agree with the observation and experienced view that peoplesoft code ranks=20 with great ease amoung the worst possible examples "as delivered" especiall= y. Simple example: Those so-called programmers always set a process run to suc= cess even when the logic fails for almost every report they deliver. And that just begins the = lousy, inconsistent,=20 and very bad style that code displays. That idiotic action alone in the com= mercial software house I used to work at would get you summarily kicked out= of the door with no explaination under the assumption that individual woul= d be too dumb to ever understand >>> Sam Spritzer 7/24/2006 3:20 PM >>> Not if its delivered SQRs. That is, what came bundled with the software. Everett Carr wrote: but doing that would be in many = respects cloning good examples of what not to do >>> Sam Spritzer 7/24/2006 2:57 PM >>> Laura, I am not sure what system you are on but if its Peoplesoft, you would proba= bly want to look at their delivered reports and clone based on that.=20 SQRly yours, Sam Laura Mayer wrote: Unfortunately I don't have any "good examples". I've been told that my pred= ecessor wrote bad code and I need to rewrite it. That's my conundrum...find= ing a good resource to find out how to do it right.=20 >>> KnappR@umsystem.edu 7/24/2006 2:49:24 PM >>> If you are an experienced programmer, just find some examples - hopefully of good code. Peoplesoft will not be much help there. SQR is a very simple language but there are a few gotchas. One I can think of is - if your SQL select block does not return any rows, no code in that block will be executed. On the other hand, no new language will be all that easy without some help - either good examples or some experienced person to ask questions of or some text or, best of all, all of those. ("Simple ain't easy." - Duke Ellington) Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu=20 -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org=20 [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Laura Mayer Sent: Monday, July 24, 2006 11:01 AM To: sqr-users@sqrug.org=20 Subject: [sqr-users] Training question Does anyone know where I would be able to find some kind of training in SQR coding? I feel like I'm drowning here. I've been working on this one report for almost a month and am still not finished.=20 I've only been able to find one book written on it and no tutorials out there.=20 I've looked online and can't seem to find any resources at all. Thanks for any thoughts.=20 Laura _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 ************************************************************ "In the beginning, there was something...which exploded yet, they find noth= ing." --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ coun= tries) for 2=A2/min or less. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 ************************************************************ "In the beginning, there was something...which exploded yet, they find noth= ing." =20=09=09 --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ coun= tries) for 2=A2/min or less. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 24 15:35:49 2006 Date: Mon, 24 Jul 2006 15:30:16 -0400 From: "Everett Carr" Subject: RE: [sqr-users] Training question Pleasse, you REALLY should have warned me to go to the bathroom and relieve= myself before reading this. Peoplesoft TEST? A company that on multiple occassions that ships source = code that won't even compile due to syntax errors........ I don't need wha= tever it is you've been smoking. >>> Sam Spritzer 7/24/2006 3:22 PM >>> Richard, I might agree although not completely. The PS SQRs are a good basis beca= use they utilize SQLs that are tested and tried. Its a good start in the s= ense that you know that the data you are looking for is valid. Sam "Knapp, Richard" wrote: =20=20 I'm sorry to contradict, Sam, but for someone who has no experience in SQR,= I think you are recommending a season in hell. I had 5 years of SQR before= I encountered the PS reports and still it was hellacious (in the extreme.)= It is all boilerplate. There is not a breath of fresh air to be had. It re= ads like some long winded legal document whose purpose is not to clarify bu= t to wear down the reader. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu=20 -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-b= ounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Sam Spritzer Sent: Monday, July 24, 2006 1:57 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: RE: [sqr-users] Training question Laura, I am not sure what system you are on but if its Peoplesoft, you would proba= bly want to look at their delivered reports and clone based on that.=20 SQRly yours, Sam Laura Mayer wrote: Unfortunately I don't have any "good examples". I've been told that my pred= ecessor wrote bad code and I need to rewrite it. That's my conundrum...find= ing a good resource to find out how to do it right.=20 >>> KnappR@umsystem.edu 7/24/2006 2:49:24 PM >>> If you are an experienced programmer, just find some examples - hopefully of good code. Peoplesoft will not be much help there. SQR is a very simple language but there are a few gotchas. One I can think of is - if your SQL select block does not return any rows, no code in that block will be executed. On the other hand, no new language will be all that easy without some help - either good examples or some experienced person to ask questions of or some text or, best of all, all of those. ("Simple ain't easy." - Duke Ellington) Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu=20 -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org=20 [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Laura Mayer Sent: Monday, July 24, 2006 11:01 AM To: sqr-users@sqrug.org=20 Subject: [sqr-users] Training question Does anyone know where I would be able to find some kind of training in SQR coding? I feel like I'm drowning here. I've been working on this one report for almost a month and am still not finished.=20 I've only been able to find one book written on it and no tutorials out there.=20 I've looked online and can't seem to find any resources at all. Thanks for any thoughts.=20 Laura _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 ************************************************************ "In the beginning, there was something...which exploded yet, they find noth= ing." --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ coun= tries) for 2=A2/min or less. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 ************************************************************ "In the beginning, there was something...which exploded yet, they find noth= ing." =20=09=09 --------------------------------- How low will we go? Check out Yahoo! Messenger=92s low PC-to-Phone call ra= tes. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 24 15:53:16 2006 Subject: RE: [sqr-users] Training question Date: Mon, 24 Jul 2006 14:53:18 -0500 From: "Chris Allo" This is a multi-part message in MIME format... ------_=_NextPart_001_01C6AF5A.CF3016C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Laura Sorry that your request for help has ended up with a lot of useless comment= s (want to go to the bathroom, smoking stuff, etc etc.). If you hate sqr, = peoplesoft, or both, that's fine - All the lady wanted was some help. I'm not sure what version of PS they are familiar with, and while PS's SQRs= might boilerplate or whatever else, they can be a good start if you are ju= st beginning with sqr...then you can go on to the more fancy features (if y= ou even call it fancy) of sqr. There was a time I knew nothing of SQR and = believe it or not, I got going fairly quickly thru exposure to PS's sqrs. = By the way, I am doing a version 8 implementation of PS right now and will = be going live in a month and haven't had to "fix" any of their delivered sq= rs...so they are a decent baseline which you can use. If you are on PS, pi= ck a simple report like OMS1000 or something of that nature to see simple r= eport formatting - make sure the sql you have in your procedure(s) actually= returns data thru whatever sql tool you use. On the other hand, if one of these folks wants to take the time to teach yo= u sqr and help debug your code, then ignore my comments above. Chris -----Original Message----- From: sqr-users-bounces+callo=3Dhinda.com@sqrug.org@HINDACORP On Behalf Of = "Everett Carr" Sent: Monday, July 24, 2006 2:30 PM To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Subject: RE: [sqr-users] Training question Pleasse, you REALLY should have warned me to go to the bathroom and relieve= myself before reading this. Peoplesoft TEST? A company that on multiple occassions that ships source = code that won't even compile due to syntax errors........ I don't need wha= tever it is you've been smoking. >>> Sam Spritzer 7/24/2006 3:22 PM >>> Richard, I might agree although not completely. The PS SQRs are a good basis beca= use they utilize SQLs that are tested and tried. Its a good start in the s= ense that you know that the data you are looking for is valid. Sam "Knapp, Richard" wrote: =20=20 I'm sorry to contradict, Sam, but for someone who has no experience in SQR,= I think you are recommending a season in hell. I had 5 years of SQR before= I encountered the PS reports and still it was hellacious (in the extreme.)= It is all boilerplate. There is not a breath of fresh air to be had. It re= ads like some long winded legal document whose purpose is not to clarify bu= t to wear down the reader. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu=20 -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-b= ounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Sam Spritzer Sent: Monday, July 24, 2006 1:57 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: RE: [sqr-users] Training question Laura, I am not sure what system you are on but if its Peoplesoft, you would proba= bly want to look at their delivered reports and clone based on that.=20 SQRly yours, Sam Laura Mayer wrote: Unfortunately I don't have any "good examples". I've been told that my pred= ecessor wrote bad code and I need to rewrite it. That's my conundrum...find= ing a good resource to find out how to do it right.=20 >>> KnappR@umsystem.edu 7/24/2006 2:49:24 PM >>> If you are an experienced programmer, just find some examples - hopefully o= f good code. Peoplesoft will not be much help there. SQR is a very simple l= anguage but there are a few gotchas. One I can think of is - if your SQL se= lect block does not return any rows, no code in that block will be executed= . On the other hand, no new language will be all that easy without some hel= p - either good examples or some experienced person to ask questions of or = some text or, best of all, all of those. ("Simple ain't easy." - Duke Ellington) Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu=20 -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Lau= ra Mayer Sent: Monday, July 24, 2006 11:01 AM To: sqr-users@sqrug.org Subject: [sqr-users] Training question Does anyone know where I would be able to find some kind of training in SQR= coding? I feel like I'm drowning here. I've been working on this one repor= t for almost a month and am still not finished.=20 I've only been able to find one book written on it and no tutorials out the= re.=20 I've looked online and can't seem to find any resources at all. Thanks for any thoughts.=20 Laura _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 ************************************************************ "In the beginning, there was something...which exploded yet, they find noth= ing." --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ coun= tries) for 2=A2/min or less. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 ************************************************************ "In the beginning, there was something...which exploded yet, they find noth= ing." =20=09=09 --------------------------------- How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call rate= s. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------_=_NextPart_001_01C6AF5A.CF3016C0 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/ms-tnef' MIME type. It has been automatically discarded before sending the message to the list. ------_=_NextPart_001_01C6AF5A.CF3016C0 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------_=_NextPart_001_01C6AF5A.CF3016C0-- From sqr-users-bounces@sqrug.org Mon Jul 24 16:20:13 2006 From: "the dragon" Subject: RE: [sqr-users] Training question Date: Mon, 24 Jul 2006 15:08:19 -0500 I'd be happy to teach her how to code in SQR the right way, if I had the time to do so. Unfortunately, my next vacation isn't until October, and I don't think she wants to wait that long. Having worked with SQR since it's MITI incarnation, and PeopleSoft since v 6.5; if you used PS delivered SQRs to learn, then you may have a basic understanding of SQR, but it is more an example of how not to code in SQR than how to code in SQR. It's certainly not efficient code, and it lacks robustness, as well as being difficult to understand. My guess is that rather than developing code by hand, they use the query tool and then copy in the sql from there. Just my opinion based upon 12 years of SQR, 14 years of SQL and 9 years of PS. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hi Laura Sorry that your request for help has ended up with a lot of useless comments (want to go to the bathroom, smoking stuff, etc etc.). If you hate sqr, peoplesoft, or both, that's fine - All the lady wanted was some help. I'm not sure what version of PS they are familiar with, and while PS's SQRs might boilerplate or whatever else, they can be a good start if you are just beginning with sqr...then you can go on to the more fancy features (if you even call it fancy) of sqr. There was a time I knew nothing of SQR and believe it or not, I got going fairly quickly thru exposure to PS's sqrs. By the way, I am doing a version 8 implementation of PS right now and will be going live in a month and haven't had to "fix" any of their delivered sqrs...so they are a decent baseline which you can use. If you are on PS, pick a simple report like OMS1000 or something of that nature to see simple report formatting - make sure the sql you have in your procedure(s) actually returns data thru whatever sql tool you use. On the other hand, if one of these folks wants to take the time to teach you sqr and help debug your code, then ignore my comments above. Chris -----Original Message----- Pleasse, you REALLY should have warned me to go to the bathroom and relieve myself before reading this. Peoplesoft TEST? A company that on multiple occassions that ships source code that won't even compile due to syntax errors........ I don't need whatever it is you've been smoking. _________________________________________________________________ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 24 16:35:55 2006 Date: Mon, 24 Jul 2006 16:29:18 -0400 From: "Everett Carr" Subject: RE: [sqr-users] Training question I too, have replied privately to Laura. She is located relatively close to = my work location. Moreover we have a few former employees sprinkled over at= UMass. I provided Laura my direct work number and indicated would be happy= to discuss and provide samples of decent sqr code and explain WHY it is de= cent vs. boilerplate peoplesloppy code.=20 >>> "the dragon" 7/24/2006 4:08 PM >>> I'd be happy to teach her how to code in SQR the right way, if I had the=20 time to do so. Unfortunately, my next vacation isn't until October, and I= =20 don't think she wants to wait that long. Having worked with SQR since it's MITI incarnation, and PeopleSoft since v= =20 6.5; if you used PS delivered SQRs to learn, then you may have a basic=20 understanding of SQR, but it is more an example of how not to code in SQR= =20 than how to code in SQR. It's certainly not efficient code, and it lacks= =20 robustness, as well as being difficult to understand. My guess is that=20 rather than developing code by hand, they use the query tool and then copy= =20 in the sql from there. Just my opinion based upon 12 years of SQR, 14 years of SQL and 9 years of= =20 PS. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your= =20 services for 40 hours a week, not purchasing your soul. Your time is the=20 only real finite asset that you have, and once used it can never be=20 recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you= =20 can determine how it will be spent. Be careful lest you let other people=20 spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hi Laura Sorry that your request for help has ended up with a lot of useless comment= s=20 (want to go to the bathroom, smoking stuff, etc etc.). If you hate sqr,=20 peoplesoft, or both, that's fine - All the lady wanted was some help. I'm not sure what version of PS they are familiar with, and while PS's SQRs= =20 might boilerplate or whatever else, they can be a good start if you are jus= t=20 beginning with sqr...then you can go on to the more fancy features (if you= =20 even call it fancy) of sqr. There was a time I knew nothing of SQR and=20 believe it or not, I got going fairly quickly thru exposure to PS's sqrs.= =20=20 By the way, I am doing a version 8 implementation of PS right now and will= =20 be going live in a month and haven't had to "fix" any of their delivered=20 sqrs...so they are a decent baseline which you can use. If you are on PS,= =20 pick a simple report like OMS1000 or something of that nature to see simple= =20 report formatting - make sure the sql you have in your procedure(s) actuall= y=20 returns data thru whatever sql tool you use. On the other hand, if one of these folks wants to take the time to teach yo= u=20 sqr and help debug your code, then ignore my comments above. Chris -----Original Message----- Pleasse, you REALLY should have warned me to go to the bathroom and relieve= =20 myself before reading this. Peoplesoft TEST? A company that on multiple occassions that ships source= =20 code that won't even compile due to syntax errors........ I don't need=20 whatever it is you've been smoking. _________________________________________________________________ Don=92t just search. Find. Check out the new MSN Search!=20 http://search.msn.click-url.com/go/onm00200636ave/direct/01/=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jul 25 09:55:33 2006 Date: Tue, 25 Jul 2006 09:51:03 -0400 From: "White . Denise" Subject: [sqr-users] Training question Hi Laura, You might want to check out the Library for this user group: http://www.sqrug.org/ftp/ There are some utilities there that might be of help, although I haven't tried any of them. Maybe someone else here has, and can comment on them. There is one that will supposedly reformat your code (and, from the examples we have seen, that is badly needed!). There is another that will generate documentation on the flow and a cross-reference for the code. I can tell you that the first thing I do when I have to work with legacy code is to make a pass through it, reformatting it into a style that is easier for me to work with. The code you have shown us is a mess - no standard indentations, multiple lines of code on the same line, etc. Possibly some of these utilities can help you understand the code you have to work with. On my PeopleSoft user group some years back, a group of us came up with a set of coding standards for SQR. They are here: http://groups.yahoo.com/group/peoplesoft-fans/files/SQR/ If you are not a member, you will probably have to create a Yahoo id and join the group. The standards are in SQR_style.zip. This will help you write code that is easier to maintain. There are also some utilities that might be useful, similar to in the SQRUG. The SQR Tree utility is there, which I know has been popular, although I have never used it myself. I have the Landres book, and it can be helpful, especially if you are using SQR with PeopleSoft. I use the standard SQR reference more, however, as now that I can access it on the computer, it is more convenient. I just put a shortcut on my desktop to it. If you are not sure where it is, it should be at bin\sqr\ORA\BINW\cmdhlp.hlp on your PS_HOME (file server). Good luck, Denise M. White EBS Programmer/Analyst III Dynamics Research Corporation ---------------------------------------------------------------------- Message: 1 Date: Mon, 24 Jul 2006 12:01:24 -0400 From: "Laura Mayer" Subject: [sqr-users] Training question To: Message-ID: Content-Type: text/plain; charset=3DUS-ASCII Does anyone know where I would be able to find some kind of training in SQR coding? I feel like I'm drowning here. I've been working on this one report for almost a month and am still not finished.=20 I've only been able to find one book written on it and no tutorials out there.=20 I've looked online and can't seem to find any resources at all. Thanks for any thoughts.=20 Laura _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 26 08:11:27 2006 Date: Tue, 25 Jul 2006 09:55:25 -0400 From: "Laura Mayer" Subject: Re: [sqr-users] Training question Thanks so much Dennis. This should help a lot. Laura >>> DWhite@drc.com 7/25/2006 9:51:03 AM >>> Hi Laura, You might want to check out the Library for this user group: http://www.sqrug.org/ftp/ There are some utilities there that might be of help, although I haven't tried any of them. Maybe someone else here has, and can comment on them. There is one that will supposedly reformat your code (and, from the examples we have seen, that is badly needed!). There is another that will generate documentation on the flow and a cross-reference for the code. I can tell you that the first thing I do when I have to work with legacy code is to make a pass through it, reformatting it into a style that is easier for me to work with. The code you have shown us is a mess - no standard indentations, multiple lines of code on the same line, etc. Possibly some of these utilities can help you understand the code you have to work with. On my PeopleSoft user group some years back, a group of us came up with a set of coding standards for SQR. They are here: http://groups.yahoo.com/group/peoplesoft-fans/files/SQR/ If you are not a member, you will probably have to create a Yahoo id and join the group. The standards are in SQR_style.zip. This will help you write code that is easier to maintain. There are also some utilities that might be useful, similar to in the SQRUG. The SQR Tree utility is there, which I know has been popular, although I have never used it myself. I have the Landres book, and it can be helpful, especially if you are using SQR with PeopleSoft. I use the standard SQR reference more, however, as now that I can access it on the computer, it is more convenient. I just put a shortcut on my desktop to it. If you are not sure where it is, it should be at bin\sqr\ORA\BINW\cmdhlp.hlp on your PS_HOME (file server). Good luck, Denise M. White EBS Programmer/Analyst III Dynamics Research Corporation ---------------------------------------------------------------------- Message: 1 Date: Mon, 24 Jul 2006 12:01:24 -0400 From: "Laura Mayer" Subject: [sqr-users] Training question To: Message-ID: Content-Type: text/plain; charset=3DUS-ASCII Does anyone know where I would be able to find some kind of training in SQR coding? I feel like I'm drowning here. I've been working on this one report for almost a month and am still not finished.=20 I've only been able to find one book written on it and no tutorials out there.=20 I've looked online and can't seem to find any resources at all. Thanks for any thoughts.=20 Laura _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 26 08:16:04 2006 Date: Tue, 25 Jul 2006 10:23:12 -0400 From: "Savage, David M" Subject: [sqr-users] Heading question I have a question regarding headings. I have a summary and detail report (both same report) and need to print a different set of lines of the heading depending on particular circumstances. (Whether or not the summary is already done.) I tried to init a variable to a value and perform the following within the heading section=20 'IF variable =3D 0 do print s.lines Else print d.lines'. It is not working Any help would be appreciated Thanks Dave _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 26 08:20:17 2006 Date: Tue, 25 Jul 2006 10:34:15 -0400 From: "Laura Mayer" Subject: [sqr-users] Thanks so much Thanks to everyone for you suggestions and patience with me. I finally got = the code working as it should. That is the longest slog I have ever dragged myself through! Thanks again for all your help. Laura _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 26 08:25:02 2006 Subject: RE: [sqr-users] Training question Date: Tue, 25 Jul 2006 08:51:33 -0600 From: "Deak, James" The only books I've found are Harnessing SQR by Darrin Miller (ISBN 0-9753065-0-2) and SQR in Peoplesoft and Other Applications (ISBN 1-932394-00-1). Even if you're not working in Peoplesoft, the second book is worth getting, especially since there isn't much else out there. The Peoplesoft book is going out of print, but search Google to find who has some copies left and you can buy it direct from the publisher at www.manning.com/landres2 The pdf documentation that comes with SQR is also worth having available if you haven't been using it already.=20=20=20 -----Original Message----- From: Laura Mayer [mailto:lmayer@gw.housing.umass.edu]=20 Sent: Monday, July 24, 2006 10:01 AM To: sqr-users@sqrug.org Subject: [sqr-users] Training question Does anyone know where I would be able to find some kind of training in SQR coding? I feel like I'm drowning here. I've been working on this one report for almost a month and am still not finished.=20 I've only been able to find one book written on it and no tutorials out there.=20 I've looked online and can't seem to find any resources at all. Thanks for any thoughts.=20 Laura The information contained in this message and any accompanying attachments = may contain privileged, private and/or confidential information protected b= y state and federal law. Penalties may be assessed for unauthorized use and= /or disclosure. This message and any attachments are intended for the desig= nated recipient only. If you have received this information in error, pleas= e notify the sender immediately and return or destroy the information. This e-mail transmission and any attachments are believed to have been sent= free of any virus or other defect that might affect any computer system in= to which it is received and opened. It is, however, the recipient's respons= ibility to ensure that the e-mail transmission and any attachments are viru= s free, and the sender accepts no responsibility for any damage that may in= any way arise from their use. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 26 08:29:18 2006 From: "Alexander, Steven" Date: Tue, 25 Jul 2006 14:03:12 -0700 Subject: [sqr-users] Fetched column value was truncated When we run this program from our desktop (Peoplesoft's sqrw 8.20.06 on Windows XP), it works. When we run it from the Peoplesoft Process Scheduler (Peoplesoft's pssqr 8.20.06 on Solaris), it stops with the following error message: ORA-01406: fetched column value was truncated Previous CDV row: 001-294319-DEPT64-4003 (SQR 5528) ORACLE OCIStmtFetch error 1406 in cursor 6: ORA-01406: fetched column value was truncated Error on line 222: (SQR 3725) Bad return fetching row from database. Here is the select statement that fails: !*************************************************************************** **** begin-procedure read_data_warehouse move 0 to #i begin-select on-error=cdv_error nvl(rtrim(FUND_CODE), ' ') &CDV.FUND_CODE nvl(rtrim(ACCOUNT), ' ') &CDV.ACCOUNT nvl(rtrim(CSJ_DEPT2), ' ') &CDV.CSJ_DEPT2 nvl(rtrim(CLASS_FLD), ' ') &CDV.CLASS_FLD nvl(rtrim(DESCR), ' ') &CDV.DESCR nvl(rtrim(BUDGET_DEPTID), ' ') &CDV.BUDGET_DEPTID nvl(rtrim(SUBDIVISION_LBL), ' ') &CDV.SUBDIVISION_LBL nvl(rtrim(ASSET_NBR), ' ') &CDV.ASSET_NBR let $acct_cd = &CDV.FUND_CODE || '-' || &CDV.ACCOUNT || '-DEPT' || &CDV.CSJ_DEPT2 || '-' || &CDV.CLASS_FLD if &CDV.CSJ_DEPT2 = '57' let $dw_division = cond(instr($divisions, ' ' || &CDV.SUBDIVISION_LBL || ' ', 1) = 0, 'ADMIN', &CDV.SUBDIVISION_LBL) else let $dw_division = ' ' end-if put $acct_cd &CDV.DESCR &CDV.BUDGET_DEPTID $dw_division &CDV.ASSET_NBR into dw(#i) add 1 to #i from PS_CSJ_DWGL001M_VW CDV order by CDV.FUND_CODE, CDV.ACCOUNT, CDV.CSJ_DEPT2, CDV.CLASS_FLD end-select end-procedure read_data_warehouse !*************************************************************************** **** begin-procedure cdv_error add 1 to #num_cdv_errors if #num_cdv_errors <= 10 show $sql-error show 'Previous CDV row: ' $acct_cd show ' ' else stop end-if end-procedure cdv_error I'm curious as to why my on-error routine doesn't keep the program running, but I'm more interested in fixing the error. One hint is that the failed row has text with extended ASCII (value 194), but the successful row before it also has that text. Another possible issue is that I am reading PS_CSJ_DWGL001M_VW, which is a view of a view in a different database instance. I am reading hundreds of rows from that view before the error, though. Here is the script for PS_CSJ_DWGL001M_VW: CREATE OR REPLACE VIEW PS_CSJ_DWGL001M_VW (FUND_CODE, ACCOUNT, CSJ_DEPT2, CLASS_FLD, DESCR, BUDGET_DEPTID, SUBDIVISION_LBL, ASSET_NBR) AS SELECT DISTINCT F_FUND , substr(CHARGE_CODE , 9 ,6) , substr(CHARGE_CODE , 7 ,2) , AC_SUBACCT , TITLE , R_DEPT , DACREF , D_ASSET_NUMBER FROM GL001M07_V@DW02.X1A WHERE AC_SUBACCT IN ('4001','4003','4006','4008','4010','4011','4012','4032','4042','4043','4044 ','4046','4060','4065','4102') AND ACTIVE_FLAG = 'A' AND ALRE_CODE = 'E' And GL001M07_V is a view with the following script: CREATE OR REPLACE VIEW "FMSDATA"."GL001M07_V" ("DEPT_GROUP", "CHARGE_CODE","F_FUND","F_SUBFUND","F_REPORT_CODE","R_DEPT", "R_SUBDEPT","R_DEPTFUNC","A_PROGRAM","A_SUBPROG","A_ACTIVITY", "D_ASSET_TYPE","D_ASSET_NUMBER","D_ASSET_COMP","P_PROJECT", "P_SUBPROJ","AC_ACCOUNT","AC_SUBACCT","AC_DETACCT","S_SOURCE", "ACTUAL_ENTERED","ACTUAL_APPROVED","ACTUAL_PROOFED", "ACTIVE_FLAG","TITLE","COMMIT_ENTERED","COMMIT_APPROVED", "COMMIT_PROOFED","ALRE_CODE","DACREF") AS select dept_group, charge_code, f_fund, f_subfund, f_report_code, r_dept, r_subdept, r_deptfunc, a_program, a_subprog, a_activity, d_asset_type, d_asset_number, d_asset_comp, p_project, p_subproj, ac_account, ac_subacct, ac_detacct, s_source, actual_entered, actual_approved, actual_proofed, active_flag, title, commit_entered, commit_approved, commit_proofed, alre_code, dacref from FMSDATA.gl001m07 WITH READ ONLY _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 26 08:33:39 2006 Date: Wed, 26 Jul 2006 11:56:18 +0530 From: "Karunakaran Perumbrayoor" Subject: [sqr-users] Printing in CSV Format... Hi Folks, I am trying to print a CSV File. I am not using file processing (i.e. write) logic. I am still using 'PRINT' so that I can print in PDF or CSV format whichever chosen by the user. I am now running the SQR Program through SQRW instead of a Process Scheduler. How do I print the file in CSV Format? I tried using EH_CSV in the Command Line, but still nothing happens!!! Please let me know how to proceed. Thanks & Regards... Karun ***************************************************************************= ************************************************ This e-mail communication and any attachments may be privileged and confide= ntial to Hexaware and are intended only for the=20 use of the recipients named above. If you are not the intended recipient, p= lease do not review, disclose, disseminate,=20 distribute or copy this e-mail and attachments. If you have received this e= mail in error, please delete the same alongwith=20 all attachments thereto and notify us immediately at mailadmin@hexaware.com= . ***************************************************************************= ************************************************ =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 26 09:25:23 2006 From: "the dragon" Subject: RE: [sqr-users] Heading question Date: Wed, 26 Jul 2006 08:22:54 -0500 If I remember correctly, you need to keep in mind that the heading is created (but not printed) at the time that the first print statement occurs (as does the footing I believe) so the variables that you're checking may have already changed by that time. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- I have a question regarding headings. I have a summary and detail report (both same report) and need to print a different set of lines of the heading depending on particular circumstances. (Whether or not the summary is already done.) I tried to init a variable to a value and perform the following within the heading section 'IF variable = 0 do print s.lines Else print d.lines'. It is not working Any help would be appreciated Thanks Dave _________________________________________________________________ Is your PC infected? Get a FREE online computer virus scan from McAfee® Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 26 09:37:36 2006 Subject: RE: [sqr-users] Heading question Date: Wed, 26 Jul 2006 19:04:39 +0530 From: "Karunakaran Perumbrayoor" Hi Dave, I think, the variable is not getting set properly. Initialize a variable to 'D' to indicate detail records are getting printed. Once all the detail records get printed, re-initialize the variable back to 'S' to indicate summary records needed to be printed. Before that use 'new-page' to print the summary in a new page. This could also be a reason for the code not working as per your expectations. In the Begin-Heading Section. If $variable =3D 'D' Print 'Detail' Else Print 'Summary' End-If Or otherwise use Multiple Reports (I guess both these reports can use the same layout which will be 'DEFAULT'). In the Begin-Heading Section, Use FOR-REPORTS to link to the report (Summary or Detail). This should work for sure!!! Have a Great Day!!! Regards.. Karun -----Original Message----- From: Savage, David M [mailto:dmsavage@StateStreet.com]=20 Sent: Tuesday, July 25, 2006 7:53 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] Heading question I have a question regarding headings. I have a summary and detail report (both same report) and need to print a different set of lines of the heading depending on particular circumstances. (Whether or not the summary is already done.) I tried to init a variable to a value and perform the following within the heading section=20 'IF variable =3D 0 do print s.lines Else print d.lines'. It is not working Any help would be appreciated Thanks Dave _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ***************************************************************************= ************************************************ This e-mail communication and any attachments may be privileged and confide= ntial to Hexaware and are intended only for the=20 use of the recipients named above. If you are not the intended recipient, p= lease do not review, disclose, disseminate,=20 distribute or copy this e-mail and attachments. If you have received this e= mail in error, please delete the same alongwith=20 all attachments thereto and notify us immediately at mailadmin@hexaware.com= . ***************************************************************************= ************************************************ =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 26 09:47:16 2006 Subject: RE: [sqr-users] Fetched column value was truncated Date: Wed, 26 Jul 2006 09:44:17 -0400 From: "Mingazov, Maya" I had similar problem and Kevin helped me to solve it: ' begin-select > 'short value' &x > ...=20=20 > union select=20=20 > 'a longer value'=20=20=20 > ...=20=20 >=20=20=20=20=20 > Be sure that the fields listed in each part of the union are the same, or if you have constants (like in my example above) be sure to add enough space in the first part so that it is as long as the values in the other parts:=20=20 >=20=20=20=20=20 > begin-select=20=20 > 'short value ' &x >=20=20=20 > Kevin Reschenberg ' Hope this helped, Maya=20 -----Original Message----- From: sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org [mailto:sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org] On Behalf Of Alexander, Steven Sent: Tuesday, July 25, 2006 5:03 PM To: sqr-users@sqrug.org Subject: [sqr-users] Fetched column value was truncated When we run this program from our desktop (Peoplesoft's sqrw 8.20.06 on Windows XP), it works. When we run it from the Peoplesoft Process Scheduler (Peoplesoft's pssqr 8.20.06 on Solaris), it stops with the following error message: =20 ORA-01406: fetched column value was truncated Previous CDV row: 001-294319-DEPT64-4003 =20 (SQR 5528) ORACLE OCIStmtFetch error 1406 in cursor 6: ORA-01406: fetched column value was truncated =20 Error on line 222: (SQR 3725) Bad return fetching row from database. =20 =20 Here is the select statement that fails: =20 =20 !*********************************************************************** **** **** begin-procedure read_data_warehouse move 0 to #i begin-select on-error=3Dcdv_error nvl(rtrim(FUND_CODE), ' ') &CDV.FUND_CODE nvl(rtrim(ACCOUNT), ' ') &CDV.ACCOUNT nvl(rtrim(CSJ_DEPT2), ' ') &CDV.CSJ_DEPT2 nvl(rtrim(CLASS_FLD), ' ') &CDV.CLASS_FLD nvl(rtrim(DESCR), ' ') &CDV.DESCR nvl(rtrim(BUDGET_DEPTID), ' ') &CDV.BUDGET_DEPTID nvl(rtrim(SUBDIVISION_LBL), ' ') &CDV.SUBDIVISION_LBL nvl(rtrim(ASSET_NBR), ' ') &CDV.ASSET_NBR let $acct_cd =3D &CDV.FUND_CODE || '-' || &CDV.ACCOUNT || '-DEPT' || &CDV.CSJ_DEPT2 || '-' || &CDV.CLASS_FLD if &CDV.CSJ_DEPT2 =3D '57' let $dw_division =3D cond(instr($divisions, ' ' || &CDV.SUBDIVISION_LBL || ' ', 1) =3D 0, 'ADMIN', &CDV.SUBDIVISION_LBL) else let $dw_division =3D ' ' end-if put $acct_cd &CDV.DESCR &CDV.BUDGET_DEPTID $dw_division &CDV.ASSET_NBR into dw(#i) add 1 to #i from PS_CSJ_DWGL001M_VW CDV order by CDV.FUND_CODE, CDV.ACCOUNT, CDV.CSJ_DEPT2, CDV.CLASS_FLD end-select end-procedure read_data_warehouse =20 !*********************************************************************** **** **** begin-procedure cdv_error add 1 to #num_cdv_errors if #num_cdv_errors <=3D 10 show $sql-error show 'Previous CDV row: ' $acct_cd show ' ' else stop end-if end-procedure cdv_error =20 I'm curious as to why my on-error routine doesn't keep the program running, but I'm more interested in fixing the error. One hint is that the failed row has text with extended ASCII (value 194), but the successful row before it also has that text. Another possible issue is that I am reading PS_CSJ_DWGL001M_VW, which is a view of a view in a different database instance. I am reading hundreds of rows from that view before the error, though. Here is the script for PS_CSJ_DWGL001M_VW: =20 CREATE OR REPLACE VIEW PS_CSJ_DWGL001M_VW (FUND_CODE, ACCOUNT, CSJ_DEPT2, CLASS_FLD, DESCR,=20 BUDGET_DEPTID, SUBDIVISION_LBL, ASSET_NBR) AS=20 SELECT DISTINCT F_FUND , substr(CHARGE_CODE , 9 ,6) , substr(CHARGE_CODE , 7 ,2) , AC_SUBACCT , TITLE , R_DEPT , DACREF , D_ASSET_NUMBER=20 FROM GL001M07_V@DW02.X1A=20 WHERE AC_SUBACCT IN ('4001','4003','4006','4008','4010','4011','4012','4032','4042','4043',' 4044 ','4046','4060','4065','4102')=20 AND ACTIVE_FLAG =3D 'A'=20 AND ALRE_CODE =3D 'E' =20 And GL001M07_V is a view with the following script: =20 CREATE OR REPLACE VIEW "FMSDATA"."GL001M07_V" ("DEPT_GROUP", "CHARGE_CODE","F_FUND","F_SUBFUND","F_REPORT_CODE","R_DEPT", "R_SUBDEPT","R_DEPTFUNC","A_PROGRAM","A_SUBPROG","A_ACTIVITY", "D_ASSET_TYPE","D_ASSET_NUMBER","D_ASSET_COMP","P_PROJECT", "P_SUBPROJ","AC_ACCOUNT","AC_SUBACCT","AC_DETACCT","S_SOURCE", "ACTUAL_ENTERED","ACTUAL_APPROVED","ACTUAL_PROOFED", "ACTIVE_FLAG","TITLE","COMMIT_ENTERED","COMMIT_APPROVED", "COMMIT_PROOFED","ALRE_CODE","DACREF") AS=20 select dept_group, charge_code, f_fund, f_subfund, f_report_code, r_dept,=20 r_subdept, r_deptfunc, a_program, a_subprog, a_activity, d_asset_type, d_asset_number, d_asset_comp, p_project, p_subproj, ac_account, ac_subacct,=20 ac_detacct, s_source, actual_entered, actual_approved, actual_proofed, active_flag,=20 title, commit_entered, commit_approved, commit_proofed, alre_code, dacref=20 from FMSDATA.gl001m07=20 WITH READ ONLY =20 =20 =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users This message and its attachments may contain legally privileged or confiden= tial information. It is intended solely for the named addressee. If you a= re not the addressee indicated in this message (or responsible for delivery= of the message to the addressee), you may not copy or deliver this message= or its attachments to anyone. Rather, you should permanently delete this = message and its attachments and kindly notify the sender by reply e-mail. = Any content of this message and its attachments that does not relate to the= official business of News America Incorporated or its subsidiaries must be= taken not to have been sent or endorsed by any of them. No warranty is ma= de that the e-mail or attachment(s) are free from computer virus or other d= efect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 26 09:51:06 2006 Subject: RE: [sqr-users] Heading question Date: Wed, 26 Jul 2006 08:44:58 -0500 From: "Jim Womeldorf" Dave, Are you using any local procedures? If you are, remember that you have to reference global variables from within local procedures by inserting an underscore as the second character. ( $_variable in Karun's example) Jim =20 -----Original Message----- From: sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org] On Behalf Of Karunakaran Perumbrayoor Sent: Wednesday, July 26, 2006 8:35 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] Heading question Hi Dave, I think, the variable is not getting set properly. Initialize a variable to 'D' to indicate detail records are getting printed. Once all the detail records get printed, re-initialize the variable back to 'S' to indicate summary records needed to be printed. Before that use 'new-page' to print the summary in a new page. This could also be a reason for the code not working as per your expectations. In the Begin-Heading Section. If $variable =3D 'D' Print 'Detail' Else Print 'Summary' End-If Or otherwise use Multiple Reports (I guess both these reports can use the same layout which will be 'DEFAULT'). In the Begin-Heading Section, Use FOR-REPORTS to link to the report (Summary or Detail). This should work for sure!!! Have a Great Day!!! Regards.. Karun -----Original Message----- From: Savage, David M [mailto:dmsavage@StateStreet.com] Sent: Tuesday, July 25, 2006 7:53 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] Heading question I have a question regarding headings. I have a summary and detail report (both same report) and need to print a different set of lines of the heading depending on particular circumstances. (Whether or not the summary is already done.) I tried to init a variable to a value and perform the following within the heading section=20 'IF variable =3D 0 do print s.lines Else print d.lines'. It is not working Any help would be appreciated Thanks Dave _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ************************************************************************ *************************************************** This e-mail communication and any attachments may be privileged and confidential to Hexaware and are intended only for the use of the recipients named above. If you are not the intended recipient, please do not review, disclose, disseminate, distribute or copy this e-mail and attachments. If you have received this email in error, please delete the same alongwith all attachments thereto and notify us immediately at mailadmin@hexaware.com . ************************************************************************ *************************************************** =20 _______________________________________________ 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 From sqr-users-bounces@sqrug.org Wed Jul 26 09:54:35 2006 Subject: RE: [sqr-users] Heading question Date: Wed, 26 Jul 2006 09:48:43 -0400 From: "Peter Burton" All, SQR prepares a page by performing the body first, then the HEADING and FOOTING sections. Peter -----Original Message----- From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org] On Behalf Of Karunakaran Perumbrayoor Sent: Wednesday, July 26, 2006 9:35 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Heading question Hi Dave, I think, the variable is not getting set properly. Initialize a variable to 'D' to indicate detail records are getting printed. Once all the detail records get printed, re-initialize the variable back to 'S' to indicate summary records needed to be printed. Before that use 'new-page' to print the summary in a new page. This could also be a reason for the code not working as per your expectations. In the Begin-Heading Section. If $variable =3D 'D' Print 'Detail' Else Print 'Summary' End-If Or otherwise use Multiple Reports (I guess both these reports can use the same layout which will be 'DEFAULT'). In the Begin-Heading Section, Use FOR-REPORTS to link to the report (Summary or Detail). This should work for sure!!! Have a Great Day!!! Regards.. Karun -----Original Message----- From: Savage, David M [mailto:dmsavage@StateStreet.com]=20 Sent: Tuesday, July 25, 2006 7:53 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] Heading question I have a question regarding headings. I have a summary and detail report (both same report) and need to print a different set of lines of the heading depending on particular circumstances. (Whether or not the summary is already done.) I tried to init a variable to a value and perform the following within the heading section=20 'IF variable =3D 0 do print s.lines Else print d.lines'. It is not working Any help would be appreciated Thanks Dave _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ************************************************************************ *************************************************** This e-mail communication and any attachments may be privileged and confidential to Hexaware and are intended only for the=20 use of the recipients named above. If you are not the intended recipient, please do not review, disclose, disseminate,=20 distribute or copy this e-mail and attachments. If you have received this email in error, please delete the same alongwith=20 all attachments thereto and notify us immediately at mailadmin@hexaware.com . ************************************************************************ *************************************************** =20 _______________________________________________ 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 From sqr-users-bounces@sqrug.org Wed Jul 26 10:03:06 2006 Date: Wed, 26 Jul 2006 10:00:16 -0400 From: "Mingazov, Maya" Subject: [sqr-users] Param for CALL System or CALL Spawn must be WAIT or NOWAIT Hello, I need help!!!! When users running report they are getting the following: 'Param for CALL System or CALL Spawn must be WAIT or NOWAIT Param for CALL System or CALL Spawn must be WAIT or NOWAIT' But seems like they are still getting report's output. What can I do to prevent it from showing that message and what does that message mean? Do I need to make some changes to SQR code? Thank you, Maya=20 This message and its attachments may contain legally privileged or confiden= tial information. It is intended solely for the named addressee. If you a= re not the addressee indicated in this message (or responsible for delivery= of the message to the addressee), you may not copy or deliver this message= or its attachments to anyone. Rather, you should permanently delete this = message and its attachments and kindly notify the sender by reply e-mail. = Any content of this message and its attachments that does not relate to the= official business of News America Incorporated or its subsidiaries must be= taken not to have been sent or endorsed by any of them. No warranty is ma= de that the e-mail or attachment(s) are free from computer virus or other d= efect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 26 10:06:52 2006 Subject: RE: [sqr-users] Param for CALL System or CALL Spawn must be WAIT orNOWAIT Date: Wed, 26 Jul 2006 09:04:53 -0500 From: "Knapp, Richard" Maybe you could supply the statement that is producing that error? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Mingazov, Maya Sent: Wednesday, July 26, 2006 9:00 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] Param for CALL System or CALL Spawn must be WAIT orNOWAIT Hello, I need help!!!! When users running report they are getting the following: 'Param for CALL System or CALL Spawn must be WAIT or NOWAIT Param for CALL System or CALL Spawn must be WAIT or NOWAIT' But seems like they are still getting report's output. What can I do to prevent it from showing that message and what does that message mean? Do I need to make some changes to SQR code? Thank you, Maya=20 This message and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of News America Incorporated or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. _______________________________________________ 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 From sqr-users-bounces@sqrug.org Wed Jul 26 10:20:24 2006 Subject: RE: [sqr-users] Param for CALL System or CALL Spawn must be WAITorNOWAIT Date: Wed, 26 Jul 2006 10:17:46 -0400 From: "Mingazov, Maya" I am not sure where it comes from, Users ran three different reports and they are not sure after which one they got it. Is there a way to find out where in report could it be if I narrow it down to one specific report? Because when I run it locally I don't see any errors. Thank you, Maya=20 -----Original Message----- From: sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org [mailto:sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Wednesday, July 26, 2006 10:05 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Param for CALL System or CALL Spawn must be WAITorNOWAIT Maybe you could supply the statement that is producing that error? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Mingazov, Maya Sent: Wednesday, July 26, 2006 9:00 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] Param for CALL System or CALL Spawn must be WAIT orNOWAIT Hello, I need help!!!! When users running report they are getting the following: 'Param for CALL System or CALL Spawn must be WAIT or NOWAIT Param for CALL System or CALL Spawn must be WAIT or NOWAIT' But seems like they are still getting report's output. What can I do to prevent it from showing that message and what does that message mean? Do I need to make some changes to SQR code? Thank you, Maya=20 This message and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of News America Incorporated or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. _______________________________________________ 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 This message and its attachments may contain legally privileged or confiden= tial information. It is intended solely for the named addressee. If you a= re not the addressee indicated in this message (or responsible for delivery= of the message to the addressee), you may not copy or deliver this message= or its attachments to anyone. Rather, you should permanently delete this = message and its attachments and kindly notify the sender by reply e-mail. = Any content of this message and its attachments that does not relate to the= official business of News America Incorporated or its subsidiaries must be= taken not to have been sent or endorsed by any of them. No warranty is ma= de that the e-mail or attachment(s) are free from computer virus or other d= efect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 26 10:49:28 2006 Subject: RE: [sqr-users] Param for CALL System or CALL Spawn must beWAITorNOWAIT Date: Wed, 26 Jul 2006 09:47:27 -0500 From: "Knapp, Richard" Hmmm.=20=20 1. Shouldn't SQR be telling you what line number the error appears on? 2. Has the syntax for the call system command changed? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Mingazov, Maya Sent: Wednesday, July 26, 2006 9:18 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Param for CALL System or CALL Spawn must beWAITorNOWAIT I am not sure where it comes from, Users ran three different reports and they are not sure after which one they got it. Is there a way to find out where in report could it be if I narrow it down to one specific report? Because when I run it locally I don't see any errors. Thank you, Maya=20 -----Original Message----- From: sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org [mailto:sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Wednesday, July 26, 2006 10:05 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Param for CALL System or CALL Spawn must be WAITorNOWAIT Maybe you could supply the statement that is producing that error? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Mingazov, Maya Sent: Wednesday, July 26, 2006 9:00 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] Param for CALL System or CALL Spawn must be WAIT orNOWAIT Hello, I need help!!!! When users running report they are getting the following: 'Param for CALL System or CALL Spawn must be WAIT or NOWAIT Param for CALL System or CALL Spawn must be WAIT or NOWAIT' But seems like they are still getting report's output. What can I do to prevent it from showing that message and what does that message mean? Do I need to make some changes to SQR code? Thank you, Maya=20 This message and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of News America Incorporated or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. _______________________________________________ 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 This message and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of News America Incorporated or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. _______________________________________________ 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 From sqr-users-bounces@sqrug.org Wed Jul 26 11:10:59 2006 Subject: RE: [sqr-users] Param for CALL System or CALL Spawn mustbeWAITorNOWAIT Date: Wed, 26 Jul 2006 11:08:19 -0400 From: "Mingazov, Maya" That's what I have in the code: 1st report: ' let $SystemTime =3D 'date' call system using $SystemTime #status1 display $SystemTime ' I see this #status1 but there is no checking of that status within the code. 2d report besides above lines there is the following: ' let $DeleteString =3D ' rm ' || $PerlmutterFile1 call system using $DeleteString #status 1 open $PerlmutterFile1 as 1 record =3D 60 for-writing ' 3d report has 1st report lines and plus the following: ' string 'rm' $ExceptionFile by ' ' into $DelString call system using $DelString #status1 open $ExceptionFile as 2 record=3D46 for-writing ' About error line number, I usually get line number when I run report locally and if there is an error, but users got just two of those lines that I provided. Maya=20 -----Original Message----- From: sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org [mailto:sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Wednesday, July 26, 2006 10:47 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Param for CALL System or CALL Spawn mustbeWAITorNOWAIT Hmmm.=20=20 1. Shouldn't SQR be telling you what line number the error appears on? 2. Has the syntax for the call system command changed? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Mingazov, Maya Sent: Wednesday, July 26, 2006 9:18 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Param for CALL System or CALL Spawn must beWAITorNOWAIT I am not sure where it comes from, Users ran three different reports and they are not sure after which one they got it. Is there a way to find out where in report could it be if I narrow it down to one specific report? Because when I run it locally I don't see any errors. Thank you, Maya=20 -----Original Message----- From: sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org [mailto:sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Wednesday, July 26, 2006 10:05 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Param for CALL System or CALL Spawn must be WAITorNOWAIT Maybe you could supply the statement that is producing that error? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Mingazov, Maya Sent: Wednesday, July 26, 2006 9:00 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] Param for CALL System or CALL Spawn must be WAIT orNOWAIT Hello, I need help!!!! When users running report they are getting the following: 'Param for CALL System or CALL Spawn must be WAIT or NOWAIT Param for CALL System or CALL Spawn must be WAIT or NOWAIT' But seems like they are still getting report's output. What can I do to prevent it from showing that message and what does that message mean? Do I need to make some changes to SQR code? Thank you, Maya=20 This message and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of News America Incorporated or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. _______________________________________________ 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 This message and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of News America Incorporated or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. _______________________________________________ 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 This message and its attachments may contain legally privileged or confiden= tial information. It is intended solely for the named addressee. If you a= re not the addressee indicated in this message (or responsible for delivery= of the message to the addressee), you may not copy or deliver this message= or its attachments to anyone. Rather, you should permanently delete this = message and its attachments and kindly notify the sender by reply e-mail. = Any content of this message and its attachments that does not relate to the= official business of News America Incorporated or its subsidiaries must be= taken not to have been sent or endorsed by any of them. No warranty is ma= de that the e-mail or attachment(s) are free from computer virus or other d= efect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jul 26 11:18:16 2006 Subject: RE: [sqr-users] Param for CALL System or CALL Spawn mustbeWAITorNOWAIT Date: Wed, 26 Jul 2006 10:16:15 -0500 From: "Knapp, Richard" Looks like the 1 in the second call is the culprit. SQR expects either wait or nowait in this position. There is no place in the syntax, of 4.3 anyway, for a number of any sort. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Mingazov, Maya Sent: Wednesday, July 26, 2006 10:08 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Param for CALL System or CALL Spawn mustbeWAITorNOWAIT That's what I have in the code: 1st report: ' let $SystemTime =3D 'date' call system using $SystemTime #status1 display $SystemTime ' I see this #status1 but there is no checking of that status within the code. 2d report besides above lines there is the following: ' let $DeleteString =3D ' rm ' || $PerlmutterFile1 call system using $DeleteString #status 1 open $PerlmutterFile1 as 1 record =3D 60 for-writing ' 3d report has 1st report lines and plus the following: ' string 'rm' $ExceptionFile by ' ' into $DelString call system using $DelString #status1 open $ExceptionFile as 2 record=3D46 for-writing ' About error line number, I usually get line number when I run report locally and if there is an error, but users got just two of those lines that I provided. Maya=20 -----Original Message----- From: sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org [mailto:sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Wednesday, July 26, 2006 10:47 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Param for CALL System or CALL Spawn mustbeWAITorNOWAIT Hmmm.=20=20 1. Shouldn't SQR be telling you what line number the error appears on? 2. Has the syntax for the call system command changed? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Mingazov, Maya Sent: Wednesday, July 26, 2006 9:18 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Param for CALL System or CALL Spawn must beWAITorNOWAIT I am not sure where it comes from, Users ran three different reports and they are not sure after which one they got it. Is there a way to find out where in report could it be if I narrow it down to one specific report? Because when I run it locally I don't see any errors. Thank you, Maya=20 -----Original Message----- From: sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org [mailto:sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Wednesday, July 26, 2006 10:05 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Param for CALL System or CALL Spawn must be WAITorNOWAIT Maybe you could supply the statement that is producing that error? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Mingazov, Maya Sent: Wednesday, July 26, 2006 9:00 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] Param for CALL System or CALL Spawn must be WAIT orNOWAIT Hello, I need help!!!! When users running report they are getting the following: 'Param for CALL System or CALL Spawn must be WAIT or NOWAIT Param for CALL System or CALL Spawn must be WAIT or NOWAIT' But seems like they are still getting report's output. What can I do to prevent it from showing that message and what does that message mean? Do I need to make some changes to SQR code? Thank you, Maya=20 This message and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of News America Incorporated or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. _______________________________________________ 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 This message and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of News America Incorporated or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. _______________________________________________ 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 This message and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of News America Incorporated or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. _______________________________________________ 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 From sqr-users-bounces@sqrug.org Wed Jul 26 13:57:38 2006 Date: Wed, 26 Jul 2006 13:55:03 -0400 From: "Vaidyanathan, Ramakrishnan \(GE, Corporate, consultant\)" Subject: [sqr-users] Opening files dynamically Hi, In sqr, is it possible to open the files dynamically at run time? For eg= . I have 10 files ending with "summary.txt" ,say _summary.txt, <= filename2>_summary.txt and so on..I need to open all these summary.txt file= s for processing. If possible please send me some sample code.. Thanks in Advance Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jul 27 16:32:37 2006 Date: Wed, 26 Jul 2006 11:03:10 -0700 (PDT) Subject: Re: [sqr-users] Opening files dynamically From: thorburn@communityonline.net I suggest getting a good book on SQR. This is a very basic question. File may be opened and closed whenever and wherever you choose. Look for the syntax of opening files in you SQR reference. D. ___________________________________ > Hi, > In sqr, is it possible to open the files dynamically at run time? For > eg. I have 10 files ending with "summary.txt" ,say > _summary.txt, _summary.txt and so on..I need to > open all these summary.txt files for processing. If possible please > send me some sample code.. > Thanks in Advance > Ram > > _______________________________________________ > 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 From sqr-users-bounces@sqrug.org Wed Jul 26 15:28:45 2006 Subject: RE: [sqr-users] Opening files dynamically Date: Wed, 26 Jul 2006 14:26:50 -0500 From: "Knapp, Richard" Each file needs its own file handle, at least in 4.3. You could spawn a command to list all the files of the type you are interested in but how could you capture those complete names to assign them to a channel/file handle? What is the OS? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Wednesday, July 26, 2006 12:55 PM To: sqr-users@sqrug.org Subject: [sqr-users] Opening files dynamically Hi, In sqr, is it possible to open the files dynamically at run time? For eg. I have 10 files ending with "summary.txt" ,say _summary.txt, _summary.txt and so on..I need to open all these summary.txt files for processing. If possible please send me some sample code.. Thanks in Advance Ram _______________________________________________ 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 From sqr-users-bounces@sqrug.org Wed Jul 26 15:34:56 2006 Subject: RE: [sqr-users] Opening files dynamically Date: Wed, 26 Jul 2006 14:32:51 -0500 From: "Knapp, Richard" Direct the output of the directory command to a file with the call system command then open and read that file in the SQR environment. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Knapp, Richard Sent: Wednesday, July 26, 2006 2:27 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Opening files dynamically Each file needs its own file handle, at least in 4.3. You could spawn a command to list all the files of the type you are interested in but how could you capture those complete names to assign them to a channel/file handle? What is the OS? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Wednesday, July 26, 2006 12:55 PM To: sqr-users@sqrug.org Subject: [sqr-users] Opening files dynamically Hi, In sqr, is it possible to open the files dynamically at run time? For eg. I have 10 files ending with "summary.txt" ,say _summary.txt, _summary.txt and so on..I need to open all these summary.txt files for processing. If possible please send me some sample code.. Thanks in Advance Ram _______________________________________________ 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 From sqr-users-bounces@sqrug.org Wed Jul 26 16:44:44 2006 Date: Wed, 26 Jul 2006 16:41:44 -0400 From: "Everett Carr" Subject: Re: [sqr-users] Opening files dynamically to assume is not necessarily a good idea.... but here goes I assume that the number of possible files to process at any given runtime is variable and that you desire to process each file, one at a time, until every file matchining *_summary.txt is processed If so, then below should be of some help: !............................................................................... begin-procedure P500-Main #debugt show '%' $sqr-program '-debugt, P500-Main' !* This is the main loop. We derive a list of input file(s) !* to process and then execute (call) an sqr to process !* each input file found in the derived list file evaluate $hc_interface_type when = 'D' !* it is a dblink process, so no files let #noftpscriptfound = 1 !* to prevent process from being deleted let $Suicide_flag = 'N' !* to prevent process from being deleted do {sqrinclude} break when = 'I' do P9000-Get-Files-to-Process let #In_file_ctr = 0 let $ToDOInput = $In_file1_dir || $ToDOfilename open $ToDOInput as {todo_fileunitnbr} for-reading record={todo_reclen}:vary status=#ToDO_filestat if #ToDO_filestat != 0 display ' ' show $pgm_name '-F-ERROR, cannot open files to process list - ' $ToDOInput show ' file status=' #ToDI_filestat let #ErrorCount = #ErrorCount + 1 display ' ' else do P501-Main end-if when = 'E' do P600-Export when-other show $pgm_name '-F-FATAL, Interface type invalid for {sqrinclude}' let #ErrorCount = #ErrorCount + 1 end-evaluate end-procedure !............................................................................... begin-procedure P501-Main #debugt show '%' $sqr-program '-debugt, P501-Main' read {todo_fileunitnbr} into $ToDO_rcrd:{todo_reclen} let #end-TODOfile = #end-file while #end-ToDOfile = 0 let #In_file_ctr = #In_file_ctr + 1 let $ToDO_rcrd = rtrim($ToDO_rcrd, ' ') let #len = length($ToDO_rcrd) if $ToDOfilename = $ToDO_rcrd show $pgm_name '-I-MSG, skipping file list file: ' $ToDO_rcrd else Evaluate $opsys-platform When = 'DOS' When = 'UNIX' !the unix ls -1 or ls doesn't return a bare output because the ls parm includes !the full path to the files which we must use as where the targets are won't !be the default directory. So we gotta strip the file to its bare name. let #str_beg = #len while substr($ToDO_rcrd, #str_beg, 1) <> '/' or #str_beg <= 1 let #str_beg = #str_beg - 1 end-while let #str_beg = #str_beg + 1 let #str_len = #len - #str_beg + 1 let $ToDO_rcrd = substr($ToDO_rcrd, #str_beg, #str_len) When = 'WINDOWS' End-Evaluate !*show $pgm_name '-I-MSG, Processing file: ' $ToDO_rcrd ' (filename len=' #len edit 999 ')' show $pgm_name '-I-MSG, Processing file: ' $ToDO_rcrd let $In_filename = $In_file1_dir || $ToDO_rcrd let $In_file1 = $ToDO_rcrd let #File_exist = exists($In_filename) if #file_exist = 0 do P9000-FILE-PROT-CLEANUP($In_filename) do P510-process-one-file evaluate #Loaded_flag when = 0 !file processed, so move/rename to subdir let $MV_target = $MV_path || $prcs_process_instance || '-' || $ToDO_rcrd show '%' $pgm_name '-I-MSG, Moving ' $In_filename ' to ' $MV_target display ' ' let $OPSYS_command = $OPSYS_mvcmd || $In_filename || ' ' ||$MV_target Call System Using $OPSYS_command #rtn_status wait if #rtn_status show $pgm_name '-F-FATAL-ERROR, (P501-Main) move of data file failed' let #ErrorCount = #ErrorCount + 1 show ' system command:' show ' ' $OPSYS_command else do Commit-Transaction !* 4/5/2004,egc end-if !* sqr rename would work IF rename in same dir, but t'aint what we want !* let #Rtn_Cd = rename($In_filename, $MV_target) !* if #Rtn_cd <> 0 !* show $pgm_name '-F-ERROR, rename/move failed. ABORTING.' !* rollback !* STOP !* end-if When-Other !errors encountered, so leave input file alone, no data loaded show $pgm_name '-W-Warning, ' $ToDO_rcrd ' not moved/renamed due to errors processing it!!' let #ErrorCount = #ErrorCount + 1 end-evaluate else show '**********' $pgm_name '-W-MSG, File not found or could not be opened **********' show ' file name: ' $In_filename display ' ' end-if end-if read {todo_fileunitnbr} into $ToDO_rcrd:{todo_reclen} let #end-TODOfile = #end-file end-while close {todo_fileunitnbr} let #file_exist = delete($ToDOInput) !cleanup after ourselves; delete the dir list file end-procedure !............................................................................... begin-procedure P510-process-one-file #debugt show '%' $sqr-program '-debugt, P510-process-one-file' #ifdef #debugd !*just display input file data open $In_filename as {localin_fileunitnbr} for-reading record={localin_reclen}:vary status=#Insource_filestat if #Insource_filestat != 0 show $pgm_name '-F-ERROR, could not open ' $In_sourcefile else read {localin_fileunitnbr} into $InSource_rcrd:{localin_reclen} let #end-InSourcefile = #end-file while #end-InSourcefile = 0 let $InSource_rcrd = rtrim($InSource_rcrd, ' ') show $InSource_rcrd read {localin_fileunitnbr} into $InSource_rcrd:{localin_reclen} let #end-InSourcefile = #end-file end-while close {localin_fileunitnbr} show $pgm_name '-I-MSG, >>>>> all done reading ' $In_filename input $crap maxlen=8 'press enter to continue' end-if #else !*show $pgm_name '-I-MSG, stub for the call to: ' $In_sqrtocall !*note: forcing the "call" to be a local var proc is more nuisance than it is !* worth since we really need to share most of the var's. !* So the rule now is, we define var $unit2_filename and that MUST !* be the file name used by the "called"/included sqc's !*do {sqrinclude} ($In_filename, #Loaded_flag) let $In_file2 = $In_filename #debugt show 'P510-just before do {sqrinclude}' do {sqrinclude} #end-if end-procedure and proc in hc9000.sqc custom copy lib: !............................................................................... begin-procedure P9000-Get-Files-to-Process !* performs operating system commands to derive a list !* of files and other file maintenance actions that are needed !* for financial interface processing (hcfsldgl, hcfsldap) #debug9 show '.....%hc9000.sqc-i-msg, P9000-Get-Files-to-Process' Evaluate $opsys-platform When = 'DOS' !*this is not compatible with windows op system cmds let $OPSYS_command = 'dir /-p/b/a-d ' || $In_file1_dir || $In_file1 || ' >' let $OPSYS_command = $OPSYS_command || $in_file1_dir || $ToDOfilename let $OPSYS_command = $OPSYS_cmdstart || $OPSYS_command let $MV_dir = $In_file1_dir || 'a_done' let $MV_path = $MV_dir || '\' When = 'UNIX' !* note: the redir >! fails if redir target not exist, so can't be used let $OPSYS_command = 'ls '|| $In_file1_dir || $In_file1 || ' > ' let $OPSYS_command = $OPSYS_command || $in_file1_dir || $ToDOfilename let $MV_dir = $In_file1_dir || 'a_done' let $MV_path = $MV_dir || '/' When = 'WINDOWS' !*sqr screwsup & doesn't report if nt or 95/98 in $sqr-platform !*dir cmd notes: /-p ensures we turn off pause after each screen !* /b display in bare format; no heading, file size, or summary !* /a-d don't display directory names; they aren't files let $OPSYS_command = 'dir /-p/b/a-d ' || $In_file1_dir || $In_file1 || ' >' let $OPSYS_command = $OPSYS_command || $in_file1_dir || $ToDOfilename let $OPSYS_command = $OPSYS_cmdstart || $OPSYS_command let $MV_dir = $In_file1_dir || 'a_done' let $MV_path = $MV_dir || '\' !* now find or create the subdir to move processed file(s) to When-Other show $pgm_name '-F-ERROR, unsupported operating system' display ' RUN TERMINATED' rollback STOP End-Evaluate !* 6/2003,egc, add check for valid fully qualified file name let $p9000_fname = $in_file1_dir || $In_file1 let #p9000_fnamlen = length($p9000_fname) let $p9000_fnamelastch = substr($p9000_fname,#p9000_fnamlen,1) if $p9000_fnamelastch = '/' or $p9000_fnamelastch = '\' or #p9000_fnamlen < 1 do Rollback-Transaction if $prcs_process_instance <> '' let #prcs_run_status = #prcs_run_status_error let $prcs_message_parm1 = 'Improper run control parm(file)' let #prcs_continuejob = 0 !set to 1 if want next step in a job to run regardless do Update-Prcs-Run-Status end-if show ' ' show ' %hc9000-F-FATAL, Error: Fully qualified filename user parm improperly entered' show ' Program Terminated' stop quiet end-if show $pgm_name '-I-MSG, Op sys command line executed' show ' ' $OPSYS_command display ' ' Call System Using $OPSYS_command #rtn_status wait if #rtn_status show '.....%hc9000.sqc-i-msg, P9000-Get-Files-to-Process-E-ERROR, op system cmd failed' show ' #rtn_status=' #rtn_status show ' cmd: ' $OPSYS_command if $opsys-platform = 'UNIX' do P9000-GetFilestoProcess-UnixErr end-if end-if Evaluate $opsys-platform When = 'DOS' !this is not compatible with windows op system cmds let #Rtn_cd = exists($MV_dir) let $OPSYS_mkdir = $P9000_mkdir || $MV_dir When = 'UNIX' let #Rtn_cd = exists($MV_dir) let $OPSYS_mkdir = $P9000_mkdir || $MV_dir When = 'WINDOWS' !sqr screwsup & doesn't report if nt or 95/98 in $sqr-platform let #Rtn_cd = exists($MV_dir) let $OPSYS_mkdir = $P9000_mkdir || $MV_dir End-Evaluate if #Rtn_cd <> 0 and isnull($Skip_mkdir) show $pgm_name '-I-MSG, creating subdirectory ' $MV_dir ' to store input file(s) processed' Call System Using $OPSYS_mkdir #rtn_status wait if #rtn_status <> 0 show $pgm_name '-F-ERROR, subdir create failed. Input file(s) cannot be processed' show 'cmd= ' $opsys_mkdir show 'rtn_status= ' #rtn_status display ' RUN TERMINATED' rollback STOP end-if end-if end-procedure >>> "Vaidyanathan, Ramakrishnan (GE, Corporate, consultant)" 7/26/2006 1:55:03 PM >>> Hi, In sqr, is it possible to open the files dynamically at run time? For eg. I have 10 files ending with "summary.txt" ,say _summary.txt, _summary.txt and so on..I need to open all these summary.txt files for processing. If possible please send me some sample code.. Thanks in Advance Ram _______________________________________________ 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 From sqr-users-bounces@sqrug.org Wed Jul 26 17:18:02 2006 Date: Wed, 26 Jul 2006 17:15:58 -0400 From: "White . Denise" Subject: [sqr-users] RE: Heading question Well, I don't really understand your syntax, so I can't tell you why it's not working. What is "do print s.lines"? I have never seen "do" and "print" together like that; normally when you use "do", it is with a procedure name. If you are trying to use "print" commands, I don't think that "s.lines" and "d.lines" are valid, either. You need to print either a literal or a variable, and those do not appear to be either; you also need positioning parameters. What you are trying to do is possible; I have done it. Before you print the first report, set your variable to one value. After finishing the first report, and before you start processing for the second report, do a new-page and then set the variable to a different value (you might also want to reset #page-count at this point). Inside the BEGIN-HEADER section, just do the following: If $variable =3D 'S' ... insert your summary header print statements here ... Else ... insert your detail header print statements here ... End-if HTH, Denise M. White EBS Programmer/Analyst III Dynamics Research Corporation ------------------------------ Message: 2 Date: Tue, 25 Jul 2006 10:23:12 -0400 From: "Savage, David M" Subject: [sqr-users] Heading question To: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." Message-ID: =09 Content-Type: text/plain; charset=3D"us-ascii" I have a question regarding headings. I have a summary and detail report (both same report) and need to print a different set of lines of the heading depending on particular circumstances. (Whether or not the summary is already done.) I tried to init a variable to a value and perform the following within the heading section=20 'IF variable =3D 0 do print s.lines Else print d.lines'. It is not working Any help would be appreciated Thanks Dave _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jul 27 09:35:44 2006 Date: Thu, 27 Jul 2006 09:33:09 -0400 From: "Laura Mayer" Subject: [sqr-users] question about font color Morning, I see in the SQR manual that you can change font color in HTML by using: Specifying Text Colors Use the %%Color and %%ResetColor extensions to change the color of text. Th= e following code example demonstrates this capability: If &Salary > 100000 Print-Direct Printer=3Dhtml '%%Color #FF0000' End-If Print &Salary () If &Salary > 100000 Print-Direct Printer=3Dhtml '%%ResetColor' End-If But can I change it if the output is a pdf? I used the code above and it do= esn't seem to do anything.=20 Thanks in advance. Laura _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jul 27 09:39:59 2006 Date: Thu, 27 Jul 2006 23:37:14 +1000 From: "Alka Chauhan" Subject: Re: [sqr-users] question about font color Ill be away from office on 28July - 11thAug,returning to work on 14th Aug. = Please contact Help Desk on ext 6006 for any urgent matters. >>> sqr-users 07/27/06 23:33 >>> Morning, I see in the SQR manual that you can change font color in HTML by using: Specifying Text Colors Use the %%Color and %%ResetColor extensions to change the color of text. Th= e following code example demonstrates this capability: If &Salary > 100000 Print-Direct Printer=3Dhtml '%%Color #FF0000' End-If Print &Salary () If &Salary > 100000 Print-Direct Printer=3Dhtml '%%ResetColor' End-If But can I change it if the output is a pdf? I used the code above and it do= esn't seem to do anything.=20 Thanks in advance. Laura _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --=20 This message from ORIX Australia might contain confidential and/or privileged information. If you are not the intended recipient, any use, disclosure or copying of this message (or of any attachments to it) is not authorised. If you have received this message in error, please notify the sender immediately and delete the message and any attachments from your system. Please inform the sender if you do not wish to receive future communications by email. ORIX handles personal information according to a Privacy Policy that is consistent with the National Privacy Principles. Please let us know if you would like a copy. It is also available at http://www.orix.com.au . _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jul 27 12:30:18 2006 Date: Thu, 27 Jul 2006 10:27:57 -0600 From: "Tracie Roberts" Subject: [sqr-users] Problem with postscript printing I am trying to create .tif images through a 3rd party solution using postscript output created by SQR. However the image is produced on a 32" x 32" background with the image approximately 1" x 1". I have tried playing with the declare-layout section but nothing changes. I have been successful with creating .tif images from plain text files but not from postscript. Any suggestions? Thank you for your help. Tracie _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jul 27 14:22:54 2006 Date: Thu, 27 Jul 2006 12:20:44 -0600 From: jwillson@dssltd.com Subject: Re: [sqr-users] Problem with postscript printing Hi Tracie, have you tried importing/exporting through Ghostview/Aladdin? With straight SQR you can build a declare section that creates a page you manage yourself that will allow you pixel level control upon rendering. I am at a different work site and don't have the code with me or would share. This sounds like a lot to do but it works. With the work you can print to within 1 pixel of the physical edge of a printer (not HP Laser as they need quarter inch for physical transport but Xerox and IBM make such printers for cheque/billing writing). If it is straight images and only images you can also build containers that size the image upon rendering. If it is text you have the problem of proportional sizing/spacing. It has been a couple of years since doing direct postscript but the printer control characters you send when rendering are also important. Hope this helps. John Willson http://www.dssltd.com Quoting Tracie Roberts : > I am trying to create .tif images through a 3rd party solution using > postscript output created by SQR. However the image is produced on a > 32" x 32" background with the image approximately 1" x 1". I have tried > playing with the declare-layout section but nothing changes. I have > been successful with creating .tif images from plain text files but not > from postscript. > > Any suggestions? > > Thank you for your help. > Tracie > > _______________________________________________ > 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 From sqr-users-bounces@sqrug.org Fri Jul 28 10:04:46 2006 Date: Fri, 28 Jul 2006 10:01:58 -0400 From: "Eric Miller" Subject: [sqr-users] Starnge printing problem We are experiencing a strange problem where one of our clients is having problems with a report printing all output on one line. Essentially, writing each line over top of the other.=20 We can run the file fine locally. We are both using Windows machines. Does anyone have any idea what may be causing this. Thanks. Eric _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 28 10:31:44 2006 Subject: RE: [sqr-users] Starnge printing problem Date: Fri, 28 Jul 2006 10:29:24 -0400 From: "Beller, Jay" You mention being on Windows, but not sure if you're running SQR on Windows= or producing the file elsewhere and transferring it from another machine (= e.g., Unix) to your machine for printing. If file transfer is involved, this might be a situation where you're trying= to print a file with Unix end-of-line characters () instead of D= OS end-of-line characters (,) -----Original Message----- From: sqr-users-bounces+jbeller=3Dlbisoftware.com@sqrug.org [mailto:sqr-users-bounces+jbeller=3Dlbisoftware.com@sqrug.org]On Behalf Of Eric Miller Sent: Friday, July 28, 2006 10:02 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] Starnge printing problem We are experiencing a strange problem where one of our clients is having problems with a report printing all output on one line. Essentially, writing each line over top of the other.=20 We can run the file fine locally. We are both using Windows machines. Does anyone have any idea what may be causing this. Thanks. Eric _______________________________________________ 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 From sqr-users-bounces@sqrug.org Fri Jul 28 11:16:40 2006 Subject: [sqr-users] String2Em: String to Decimal Object Conversion Error. Date: Fri, 28 Jul 2006 08:14:03 -0700 From: "Rey Camoras" This is an old issue revisited... We're in the process of migrating our databases from Oracle 8 to 10G. However, we're getting an error message in SQR when selecting a number column that isn't scaled (defined as number, as opposed to number(10), for example). We're using SQR version 6.0 on SunOS, release 5.8. begin-program begin-select employee_id &empId from emp end-select end-program Error on line 3: (SQR 6806) String2Em: String to Decimal Object Conversion Error. SQR: Program Aborting. However, if I add number such as 0 to the selected column, it works fine, but it's not the ideal solution; we would have to change thousands of sqr program to fix this issue. begin-program begin-select 0+employee_id &empId from emp end-select end-program I found this old sqr user group solution for Oracle 9i from 2003. Does anyone know if this works for Oracle 10G? If not, does anyone know any other fixes? alter system set event=3D'10499 trace name context forever,level 1'=20 COMMENT=3D'return 0 for the scale if NUMBER created without specifying the scale' SCOPE=3DSPFILE ---------------------------------------------------------------------------= --------------------------------------------- This transmission, together with any attachments, is intended only for the = use of those to whom it is addressed and may contain information that is pr= ivileged, confidential, and exempt from disclosure under applicable law. I= f you are not the intended recipient, you are hereby notified that any dist= ribution or copying of this transmission is strictly prohibited. If you re= ceived this transmission in error, please notify the original sender immedi= ately and delete this message, along with any attachments, from your comput= er. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jul 28 11:34:32 2006 Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. Date: Fri, 28 Jul 2006 10:32:34 -0500 From: "Knapp, Richard" What happens if you leave the &empId out? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Friday, July 28, 2006 10:14 AM To: sqr-users@sqrug.org Subject: [sqr-users] String2Em: String to Decimal Object Conversion Error. This is an old issue revisited... We're in the process of migrating our databases from Oracle 8 to 10G. However, we're getting an error message in SQR when selecting a number column that isn't scaled (defined as number, as opposed to number(10), for example). We're using SQR version 6.0 on SunOS, release 5.8. begin-program begin-select employee_id &empId from emp end-select end-program Error on line 3: (SQR 6806) String2Em: String to Decimal Object Conversion Error. SQR: Program Aborting. However, if I add number such as 0 to the selected column, it works fine, but it's not the ideal solution; we would have to change thousands of sqr program to fix this issue. begin-program begin-select 0+employee_id &empId from emp end-select end-program I found this old sqr user group solution for Oracle 9i from 2003. Does anyone know if this works for Oracle 10G? If not, does anyone know any other fixes? alter system set event=3D'10499 trace name context forever,level 1'=20 COMMENT=3D'return 0 for the scale if NUMBER created without specifying the scale' SCOPE=3DSPFILE ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your computer. _______________________________________________ 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 From sqr-users-bounces@sqrug.org Fri Jul 28 11:58:13 2006 From: JOHN_HARRIS@qvc.com Date: Fri, 28 Jul 2006 11:55:53 -0400 Subject: [sqr-users] Accessing multiple databases using the -DB option I am trying to connect to multiple databases using the -DB option. I have an oracle table that stores my connect information; ODBC name, username and password for each database. I use the job factory to connect to oracle, select the record that I need from the database, and put the id and pw into $ variables. The trouble is, the -DB option in the select is not working at compile time. Any suggestions would be greatly appreciated. I am getting the following error: (SQR 1803) CONNECT failed. Perhaps username/password incorrect. SQR: Program Aborting. CODE: BEGIN-PROGRAM DO GET_VERTEX_DB_INFO DO GET_DB2_DB_INFO DO GET_THE_DATA_01 END-PROGRAM BEGIN-PROCEDURE GET_VERTEX_DB_INFO BEGIN-SELECT MB_ID &S_VERTQADB_ID MB_TEXT &S_VERTQADB_TEXT LET $VERTQADB_ID = &S_VERTQADB_ID LET $VERTQADB_TEXT = &S_VERTQADB_TEXT LET $VERTQADB = 'VERTQADB' FROM MB_INFO WHERE MB_TYPE_CD = 'VERTQADB' END-SELECT END-PROCEDURE BEGIN-PROCEDURE GET_DB2_DB_INFO BEGIN-SELECT MB_ID &S_LOCDBI0_ID MB_TEXT &S_LOCDBI0_TEXT LET $LOCDBI0_ID = &S_LOCDBI0_ID LET $LOCDBI0_TEXT = &S_LOCDBI0_TEXT LET $LOCDBI0 = 'LOCDBI0' FROM MB_INFO WHERE MB_TYPE_CD = 'LOCDBI0' END-SELECT END-PROCEDURE BEGIN-PROCEDURE GET_THE_DATA_01 BEGIN-SELECT -DB'DSN=$VERTQADB;UID=$VERTEX_DB_ID;PWD=$VERTEX_DB_PW' ON-ERROR=RECORD_SQL_ERROR ($SQL-ERROR, 'MAJOR', '', 'GET_THE_DATA_01') ItemNBR &S_ItemNBR DO GET_ITEM_DESC FROM VERTADM.Rdbitemtype.Useritemidcode END-SELECT END-PROCEDURE BEGIN-PROCEDURE GET_ITEM_DESC BEGIN-SELECT -DB'DSN=$LOCDBI0;UID=$LOCDBI0_ID;PWD=$LOCDBI0_TEXT' DESC &S_ITEM_DESC FROM DESC_TABLE WHERE ITEM_NBR = &S_ItemNBR END-SELECT END-PROCEDURE Thank you, John _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sat Jul 29 02:21:03 2006 Date: Sat, 29 Jul 2006 11:49:04 +0530 From: "jiju vengal" Subject: Re: [sqr-users] RE: Heading question Hi David, I would do it using the ALTER-REPORT function. I am sure that it should solve the problem. That is, define different BEGIN-HEADING sections and use the required ones as per the run time requirement. Cheers, -Jiju. On 7/27/06, White . Denise wrote: > > Well, I don't really understand your syntax, so I can't tell you why > it's not working. What is "do print s.lines"? I have never seen "do" > and "print" together like that; normally when you use "do", it is with a > procedure name. If you are trying to use "print" commands, I don't > think that "s.lines" and "d.lines" are valid, either. You need to print > either a literal or a variable, and those do not appear to be either; > you also need positioning parameters. > > What you are trying to do is possible; I have done it. Before you print > the first report, set your variable to one value. After finishing the > first report, and before you start processing for the second report, do > a new-page and then set the variable to a different value (you might > also want to reset #page-count at this point). Inside the BEGIN-HEADER > section, just do the following: > > If $variable = 'S' > ... insert your summary header print statements here ... > Else > ... insert your detail header print statements here ... > End-if > > HTH, > Denise M. White > EBS Programmer/Analyst III > Dynamics Research Corporation > ------------------------------ > > Message: 2 > Date: Tue, 25 Jul 2006 10:23:12 -0400 > From: "Savage, David M" > Subject: [sqr-users] Heading question > To: "This list is for discussion about the SQR database > reportinglanguage from Hyperion Solutions." > > Message-ID: > > > Content-Type: text/plain; charset="us-ascii" > > I have a question regarding headings. I have a summary and detail report > (both same report) and need to print a different set of lines of the > heading depending on particular circumstances. (Whether or not the > summary is already done.) > > I tried to init a variable to a value and perform the following within > the heading section > > 'IF variable = 0 do print s.lines Else print d.lines'. It is not > working > > Any help would be appreciated > > Thanks > Dave > > > > _______________________________________________ > 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 From sqr-users-bounces@sqrug.org Sun Jul 30 23:55:59 2006 From: David.Martin@dhs.vic.gov.au Date: Mon, 31 Jul 2006 13:53:25 +1000 Subject: [sqr-users] Charts with Non-Numeric Y axis Hello, Has anybody found a way of producing charts with a Y-axis that represent non numeric data. We need to produce workflow charts based on start and end date fields. Any help would be much appreciated. David M _________________________________________________________________________________ This email contains confidential information intended only for the person named above and may be subject to legal privilege. If you are not the intended recipient, any disclosure, copying or use of this information is prohibited. The Department provides no guarantee that this communication is free of virus or that it has not been intercepted or interfered with. If you have received this email in error or have any other concerns regarding its transmission, please notify Postmaster@dhs.vic.gov.au If this document is not required for record keeping purposes please consider the environment before printing. _________________________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 31 11:30:04 2006 Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. Date: Mon, 31 Jul 2006 08:27:15 -0700 From: "Rey Camoras" If I don't select an unscaled number column, the statement works fine. Our best option might be to redefine all of our unscaled numbers in our database. -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu]=20 Sent: Friday, July 28, 2006 8:33 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. What happens if you leave the &empId out? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Friday, July 28, 2006 10:14 AM To: sqr-users@sqrug.org Subject: [sqr-users] String2Em: String to Decimal Object Conversion Error. This is an old issue revisited... We're in the process of migrating our databases from Oracle 8 to 10G. However, we're getting an error message in SQR when selecting a number column that isn't scaled (defined as number, as opposed to number(10), for example). We're using SQR version 6.0 on SunOS, release 5.8. begin-program begin-select employee_id &empId from emp end-select end-program Error on line 3: (SQR 6806) String2Em: String to Decimal Object Conversion Error. SQR: Program Aborting. However, if I add number such as 0 to the selected column, it works fine, but it's not the ideal solution; we would have to change thousands of sqr program to fix this issue. begin-program begin-select 0+employee_id &empId from emp end-select end-program I found this old sqr user group solution for Oracle 9i from 2003. Does anyone know if this works for Oracle 10G? If not, does anyone know any other fixes? alter system set event=3D'10499 trace name context forever,level 1'=20 COMMENT=3D'return 0 for the scale if NUMBER created without specifying the scale' SCOPE=3DSPFILE ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your computer. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------------------= --------------------------------------------- This transmission, together with any attachments, is intended only for the = use of those to whom it is addressed and may contain information that is pr= ivileged, confidential, and exempt from disclosure under applicable law. I= f you are not the intended recipient, you are hereby notified that any dist= ribution or copying of this transmission is strictly prohibited. If you re= ceived this transmission in error, please notify the original sender immedi= ately and delete this message, along with any attachments, from your comput= er. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 31 11:43:17 2006 Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. Date: Mon, 31 Jul 2006 10:41:05 -0500 From: "Knapp, Richard" Ray, If you refer to the column in your select as &employee_id, what happens? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Monday, July 31, 2006 10:27 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. If I don't select an unscaled number column, the statement works fine. Our best option might be to redefine all of our unscaled numbers in our database. -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu]=20 Sent: Friday, July 28, 2006 8:33 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. What happens if you leave the &empId out? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Friday, July 28, 2006 10:14 AM To: sqr-users@sqrug.org Subject: [sqr-users] String2Em: String to Decimal Object Conversion Error. This is an old issue revisited... We're in the process of migrating our databases from Oracle 8 to 10G. However, we're getting an error message in SQR when selecting a number column that isn't scaled (defined as number, as opposed to number(10), for example). We're using SQR version 6.0 on SunOS, release 5.8. begin-program begin-select employee_id &empId from emp end-select end-program Error on line 3: (SQR 6806) String2Em: String to Decimal Object Conversion Error. SQR: Program Aborting. However, if I add number such as 0 to the selected column, it works fine, but it's not the ideal solution; we would have to change thousands of sqr program to fix this issue. begin-program begin-select 0+employee_id &empId from emp end-select end-program I found this old sqr user group solution for Oracle 9i from 2003. Does anyone know if this works for Oracle 10G? If not, does anyone know any other fixes? alter system set event=3D'10499 trace name context forever,level 1'=20 COMMENT=3D'return 0 for the scale if NUMBER created without specifying the scale' SCOPE=3DSPFILE ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your computer. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your computer. _______________________________________________ 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 From sqr-users-bounces@sqrug.org Mon Jul 31 12:30:14 2006 Date: Mon, 31 Jul 2006 09:27:40 -0700 (PDT) From: Jim McKeever Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. The following was offered as a solution several months ago and it worked for us. Of course, this applied to Oracle 9.2 so it may or may not take care of 10g... Have a DBA issue the following command: alter system set event='10499 trace name context forever,level 1' COMMENT='return 0 for the scale if NUMBER created without specifying the scale' SCOPE=SPFILE "Knapp, Richard" wrote: Ray, If you refer to the column in your select as &employee_id, what happens? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Monday, July 31, 2006 10:27 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. If I don't select an unscaled number column, the statement works fine. Our best option might be to redefine all of our unscaled numbers in our database. -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu] Sent: Friday, July 28, 2006 8:33 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. What happens if you leave the &empId out? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Friday, July 28, 2006 10:14 AM To: sqr-users@sqrug.org Subject: [sqr-users] String2Em: String to Decimal Object Conversion Error. This is an old issue revisited... We're in the process of migrating our databases from Oracle 8 to 10G. However, we're getting an error message in SQR when selecting a number column that isn't scaled (defined as number, as opposed to number(10), for example). We're using SQR version 6.0 on SunOS, release 5.8. begin-program begin-select employee_id &empId from emp end-select end-program Error on line 3: (SQR 6806) String2Em: String to Decimal Object Conversion Error. SQR: Program Aborting. However, if I add number such as 0 to the selected column, it works fine, but it's not the ideal solution; we would have to change thousands of sqr program to fix this issue. begin-program begin-select 0+employee_id &empId from emp end-select end-program I found this old sqr user group solution for Oracle 9i from 2003. Does anyone know if this works for Oracle 10G? If not, does anyone know any other fixes? alter system set event='10499 trace name context forever,level 1' COMMENT='return 0 for the scale if NUMBER created without specifying the scale' SCOPE=SPFILE ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your computer. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your computer. _______________________________________________ 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 Jim McKeever Sr. PeopleSoft Analyst "When you were born, you were crying and everyone around you was smiling. Live your life so that when you die, you're the one who is smiling and everyone around you is crying." --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs.Try it free. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 31 12:47:49 2006 Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. Date: Mon, 31 Jul 2006 12:42:47 -0400 From: "Peter Burton" All, This event will not work in Oracle 10g. You should upgrade your version of SQR to at least version 8.3.x (Hyperion not Peoplesoft) Peter -----Original Message----- From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org] On Behalf Of Jim McKeever Sent: Monday, July 31, 2006 12:28 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. The following was offered as a solution several months ago and it worked for us. Of course, this applied to Oracle 9.2 so it may or may not take care of 10g... =20=20=20 Have a DBA issue the following command: alter system set event=3D'10499 trace name context forever,level 1'=20 COMMENT=3D'return 0 for the scale if NUMBER created without specifying the scale' SCOPE=3DSPFILE =20=20 "Knapp, Richard" wrote: =20=20 Ray, If you refer to the column in your select as &employee_id, what happens? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Monday, July 31, 2006 10:27 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. If I don't select an unscaled number column, the statement works fine. Our best option might be to redefine all of our unscaled numbers in our database. -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu]=20 Sent: Friday, July 28, 2006 8:33 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. What happens if you leave the &empId out? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Friday, July 28, 2006 10:14 AM To: sqr-users@sqrug.org Subject: [sqr-users] String2Em: String to Decimal Object Conversion Error. This is an old issue revisited... We're in the process of migrating our databases from Oracle 8 to 10G. However, we're getting an error message in SQR when selecting a number column that isn't scaled (defined as number, as opposed to number(10), for example). We're using SQR version 6.0 on SunOS, release 5.8. begin-program begin-select employee_id &empId from emp end-select end-program Error on line 3: (SQR 6806) String2Em: String to Decimal Object Conversion Error. SQR: Program Aborting. However, if I add number such as 0 to the selected column, it works fine, but it's not the ideal solution; we would have to change thousands of sqr program to fix this issue. begin-program begin-select 0+employee_id &empId from emp end-select end-program I found this old sqr user group solution for Oracle 9i from 2003. Does anyone know if this works for Oracle 10G? If not, does anyone know any other fixes? alter system set event=3D'10499 trace name context forever,level 1'=20 COMMENT=3D'return 0 for the scale if NUMBER created without specifying the scale' SCOPE=3DSPFILE ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your computer. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your computer. _______________________________________________ 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 Jim McKeever=20 Sr. PeopleSoft Analyst=20 "When you were born, you were crying and everyone around you was smiling. Live your life so that when you die, you're the one who is smiling and everyone around you is crying." =20=09=09 --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs.Try it free.=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users If you have received this e-mail in error, please delete it and notify the = sender as soon as possible. The contents of this e-mail may be confidential= and the unauthorized use, copying, or dissemination of it and any attachme= nts to it, is prohibited. Internet communications are not secure and Hyperi= on does not, therefore, accept legal responsibility for the contents of thi= s message nor for any damage caused by viruses. The views expressed here do= not necessarily represent those of Hyperion. For more information about Hy= perion, please visit our Web site at: www.hyperion.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jul 31 14:01:04 2006 Date: Mon, 31 Jul 2006 10:58:21 -0700 (PDT) From: Prasanth Pennepalli Subject: Re: [sqr-users] String2Em: String to Decimal Object Conversion Error. If you are on Oracle 9.2.0.7, try to upgrade the Oracle to the next patch level. It worked for us. ----- Original Message ---- From: Peter Burton To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Sent: Monday, July 31, 2006 9:42:47 AM Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. All, This event will not work in Oracle 10g. You should upgrade your version of SQR to at least version 8.3.x (Hyperion not Peoplesoft) Peter -----Original Message----- From: sqr-users-bounces+peter_burton=hyperion.com@sqrug.org [mailto:sqr-users-bounces+peter_burton=hyperion.com@sqrug.org] On Behalf Of Jim McKeever Sent: Monday, July 31, 2006 12:28 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. The following was offered as a solution several months ago and it worked for us. Of course, this applied to Oracle 9.2 so it may or may not take care of 10g... Have a DBA issue the following command: alter system set event='10499 trace name context forever,level 1' COMMENT='return 0 for the scale if NUMBER created without specifying the scale' SCOPE=SPFILE "Knapp, Richard" wrote: Ray, If you refer to the column in your select as &employee_id, what happens? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Monday, July 31, 2006 10:27 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. If I don't select an unscaled number column, the statement works fine. Our best option might be to redefine all of our unscaled numbers in our database. -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu] Sent: Friday, July 28, 2006 8:33 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. What happens if you leave the &empId out? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Friday, July 28, 2006 10:14 AM To: sqr-users@sqrug.org Subject: [sqr-users] String2Em: String to Decimal Object Conversion Error. This is an old issue revisited... We're in the process of migrating our databases from Oracle 8 to 10G. However, we're getting an error message in SQR when selecting a number column that isn't scaled (defined as number, as opposed to number(10), for example). We're using SQR version 6.0 on SunOS, release 5.8. begin-program begin-select employee_id &empId from emp end-select end-program Error on line 3: (SQR 6806) String2Em: String to Decimal Object Conversion Error. SQR: Program Aborting. However, if I add number such as 0 to the selected column, it works fine, but it's not the ideal solution; we would have to change thousands of sqr program to fix this issue. begin-program begin-select 0+employee_id &empId from emp end-select end-program I found this old sqr user group solution for Oracle 9i from 2003. Does anyone know if this works for Oracle 10G? If not, does anyone know any other fixes? alter system set event='10499 trace name context forever,level 1' COMMENT='return 0 for the scale if NUMBER created without specifying the scale' SCOPE=SPFILE ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your computer. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your computer. _______________________________________________ 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 Jim McKeever Sr. PeopleSoft Analyst "When you were born, you were crying and everyone around you was smiling. Live your life so that when you die, you're the one who is smiling and everyone around you is crying." --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs.Try it free. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users If you have received this e-mail in error, please delete it and notify the sender as soon as possible. The contents of this e-mail may be confidential and the unauthorized use, copying, or dissemination of it and any attachments to it, is prohibited. Internet communications are not secure and Hyperion does not, therefore, accept legal responsibility for the contents of this message nor for any damage caused by viruses. The views expressed here do not necessarily represent those of Hyperion. For more information about Hyperion, please visit our Web site at: www.hyperion.com _______________________________________________ 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 From sqr-users-bounces@sqrug.org Tue Aug 01 00:02:08 2006 Date: Tue, 1 Aug 2006 00:00:02 -0400 From: Nathan Stratton Treadway Subject: [sqr-users] Monthly sqr-users Hints Posting sqr-users Mailing List Hints and Guidelines Nathan Stratton Treadway, Ray Ontko & Co. (nathanst@ontko.com) $Revision: 1.22 $ $Date: 2005/08/19 05:12:40 $ This document gathers in one location information about the sqr-users mail list. It includes instructions for changing your subscription settings (including unsubscribing), as well are guidelines for using the list. ______________________________________________________________________ Table of Contents 1. Changes Since Previous Version 2. Introduction 2.1 sqr-users Mailing List 2.2 sqr-users Hints and Guidelines Document 2.3 Related Mailing Lists 3. Interacting with the list server 3.1 Subscribing to the list 3.2 Unsubscribing from the list 3.3 When your email address changes 3.4 Digests 3.5 Obtaining your password 3.6 Problems 4. Posting to the sqr-users List 4.1 General Guidelines 4.2 Posting a Message 4.3 Replying to a Message 5. Job Announcements ______________________________________________________________________ 1. Changes Since Previous Version Changes since the version dated 2005/08/19: o Added note about spam filtering and sender verification systems blocking subscription confirmation messages. 2. Introduction 2.1. sqr-users Mailing List The sqr-users mailing list was created to enable discussion related to the SQR database language from Hyperion (and to other products in the SQR product suite). Note: SQR used to be published by SQRIBE Technologies, which was merged into Brio Technology on August 3, 1999. Brio Technology changed its name to Brio Software in October 2001. On October 16, 2003, Hyperion acquired Brio Software. SQR and related applications have also been called "Brio.Report" and "Brio Reports". The mailing list is provided as a service of Ray Ontko & Co. A searchable archive of past postings to the mailing list is available from the SQR Users Group web site . 2.2. sqr-users Hints and Guidelines Document This document gives various hints and guidelines about the sqr-users mailing list. It will be posted approximately monthly to the mailing list so that new users can see it (and existing users can find it easily). An HTML version of the document is always available at http://www.sqrug.org/sqr-users/sqr-users-hints.html. If you have comments or suggestions about this document, please contact me directly at the address listed in the title section. This document is Copyright (C) 1999-2004 by Ray Ontko & Co. It may be freely copied and distributed provided it is not modified in any way and it retains the original copyright notice. 2.3. Related Mailing Lists Here are some mailing lists that cover topics relating to SQR in some way. sqr-jobs : SQR Jobs This list may be used for posting SQR-related resumes, recruitments, job announcements, project announcments, help- wanted, work-wanted ads, etc. To join, follow the link above, or send any message to "sqr-jobs-subscribe@yahoogroups.com". peoplesoft-fans : PeopleSoft Fans Moderated list covering technical and functional aspects of PeopleSoft. To join, follow the link above, or send any message to "peoplesoft-fans-subscribe@yahoogroups.com". psusers : PeopleSoft Users For questions related to any aspect of PeopleSoft (including PeopleSoft-specific SQR issues). This list has merged with the Peoplesoft Fans mailing list and is no longer active, but the message achive can still be found at the link above. HyperionSQR : Hyperion- SQR List for discussion of SQR, SQR Developer (formerly called Brio.Report and Report Builder), and SQR iServer. To join, follow the link above, or send any message to "HyperionSQR- subscribe@yahoogroups.com". rm-users : Report- Mart Users List for discussion of Brio Portal (previously called ReportMart). To join, follow the link above, or send a message containing the word "subscribe" in the body to "rm-users- request@sqrug.org". brioportalusersgroup : Brio Portal Users Group list List for discussion of Brio Portal. To join, follow the link above, or send any message to "brioportalusersgroup- subscribe@yahoogroups.com". brio-l : OpenITx Brio List List for technical and functional discussion of all Brio products (but most messages are currently about Brio Intelligence). To join, follow the link above. briousers : Brio.Enter- prise Users List for discussion of the Brio.Enterprise (now called Intelligence) product. To join, follow the link above, or send any message to "briousers-subscribe@yahoogroups.com". briolist : Brio List List for discussion of Brio Intelligence. To join, follow the link above, or send any message to "briolist- subscribe@yahoogroups.com". 3. Interacting with the list server The sqr-users mailing list is hosted using the Mailman list server package. All of the Mailman functions described below are accessed from the sqr-users List Info page, "http://www.sqrug.org/mailman/listinfo/sqr-users". 3.1. Subscribing to the list To subscribe to the mailing list, enter your e-mail address in the box at the top of the "Subscribing to sqr-users" section on the sqr-users List Info page, then choose a password to assign to your subscription and enter it in both "Password" boxes. This password is used to allow you to securely make changes to your subscription over the web. This password will be e-mailed back to you at varous times, so you should not use the same password as you are using elsewhere. Once you have filled in the password, click the "Subscribe" button. You should soon receive an e-mail message from the list server requesting confirmation of your subscription request. Once you have replied to this message and your subscription has been processed, you will receive a "welcome" message giving you more information on the list server, and as well as a reminder of the subscription password you chose. Many sites are now implementing spam filtering and/or sender verification systems, which can prevent your confirmation message from getting delivered to you. You may need check for a message from "sqr- users-request[-AT-]sqrug.org" caught in the filter, or add that address to your list of authorized senders, in order to complete the confirmation process. 3.2. Unsubscribing from the list To unsubscribe from the list, go to the sqr-users List Info page, enter your e-mail address in the "sqr-users Subscribers" section near the bottom of the page, and click the "Unsubscribe or edit options" button. You will then see the "member options" page; fill in your password at the top of the page and click "Log in". (If you have forgotton your password, see the ``Obtaining your Password'' section, below). This will take you to the "membership configuration" page. In the middle of that page, there will be an "Unsubscribing from sqr- users" section; simply turn on the "Yes, I really want to unsubscribe" checkbox and click the "Unsubscribe" button. You should get a page back saying that the removal was successful (as well as a confirmation email message). The removal will take effect immediately; there is no need to send in a confirmation e-mail message. If you don't know your password, you can choose to unsubscribe using e-mail confirmation. Instead of entering the password on the "member options" page, just click the "Unsubscribe" button found just below the "Log In" button. You will then see a page noting that a confirmation e-mail has been sent; once you follow the confirmation instructions in that e-mail your removal will be complete. 3.3. When your email address changes If your e-mail address changes -- for example, if your company changes names, or if your mail administrator changes the way your name is spelled out or abbreviated -- you will need to update your subscription to match your new address before you can post to the list (see the ``Posting'' section, below). To do this, simply log in to your "membership configuration" page (see the directions for logging in to this page in the ``Unsubscribing'' section, above). At the top of that page you'll see a "Changing your membership information" section. Fill out the text boxes and click the "Change My Address and Name" button. You will be sent a confirmation e-mail, and once you have responded to that e-mail your subscription will be updated and you can begin posting from your new address. 3.4. Digests You can request to get your messages in digest form (one large message containing all of the posts made each day). To do this, log in to your "membership configuration" page (see the directions on doing this in the ``Unsubscribing'' section, above). At the bottom of the page, you will see a section titled "Your sqr-users Subscription Options". Change the "Set Digest Mode" option (the second option in the list) to "On" and click the "Submit My Changes" button at the bottom of the page. You actually have a choice of two different digest formats, "MIME" or "Plain Text". The MIME format sends each individual list message as a separate MIME attachment to the digest; the plain text format consists of one large text message, with all of the individual messages run together. Which format you will want to use depends on your mail- reading software (and personal preference). If you are not sure which format will work best, you can just leave the default setting of "MIME" and see if the next morning's digest is easy to read in your mail reader -- you can change to the other format at any time using that same web page. If you use digests, you should not just "reply" to the digest mailing. Instead, be sure your message's subject header matches the subject in the original posting to which you are replying, and that you don't include a quoted copy of the entire digest in your post. To restore normal distribution, simply follow the above instructions choosing the "Off" setting for the Digest option. 3.5. Obtaining your password You will not be able to change your subscription options without your password. If you have forgotten your password, simply click the "Email My Password to Me" button on the "member options" page and your password will be emailed to you. You will also be e-mailed a copy of your password at the beginning of each month, as part of a "mailing list memberships reminder" message from the Mailman software. 3.6. Problems If the above instructions do not work, please contact the list manager at "sqr-users-manager@sqrug.org". (Do not send a message to the list itself -- no one there can help you with your problem!) Please include a description of what you were trying to do and what exactly happened when you made the attempt. 4. Posting to the sqr-users List In order to post to the mailing list, you must be subscribed to it (see directions above). More specifically, in order for Mailman to recognize that this message was sent by a subscriber, the return address on your message much exactly match the addresss you used to subscribe -- if you have more than one address you will need to be sure that you are sending from the correct one. (See the ``When you email address changes'' section, above, if your e-mail address has changed since you subscribed.) 4.1. General Guidelines For any message you send to the list, please: o make sure your mail software is not requesting a "Return Receipt". (If a "Return Receipt Requested" message is sent to the list, several dozen receipt messages will be sent out to the mailing list as other subscribers' mail systems repond....) o do not send messages in HTML or other special formats. (These are not usable by many subscribers, especially those who receive their messages in digest format.) The list server will delete these special attachments from your message and send you a warning notice. Also, if you are trying to send (for example) SQR source code files, make sure your mail-reader software is assigning proper MIME types to your attachments or they may not be distributed. o keep in mind that over 500 people will receive your message, and that it will appear in the list archives. Try to keep your messages on-topic and relatively short. Consider sending your message directly to particular people if it won't interest many of the list's subscribers. o ignore abusive and inappropriate messages that get sent to the list, rather than getting drawn into a debate. The very nature of these messages will cause most subscribers to automatically discredit them -- no "response" is necessary. To the contrary, any response will only "add fuel to the fire," prolonging the controversy and further interupting the normal conversation on the list. 4.2. Posting a Message Once you are subscribed, you can post to the list by sending a message to "sqr-users@sqrug.org". Be sure your subject heading describes your specific problem or question (i.e. don't just use "SQR Question"). In the body of your message, please include the following information: o SQR product name and version number (see notes below) o Operating system name and version number o Database name and version number o Application name (i.e. PeopleSoft) and a version number, if any Also, include a short code sample whenever possible. It's much easier for other people to understand what you are trying to do when they can see the actual code. (At the same time, be careful not to post confidential or proprietary code, since the posting will be placed in a public web archive.) Note that your question should relate to SQR or other Brio Report product in some way. Don't ask questions about PeopleSoft, for example, unless you are having SQR-related issues. (For PeopleSoft- specific questions, see other lists mentioned in the ``Related Mailing Lists'' section.) In 2001, PeopleSoft purchased from Brio the rights to the source code for SQR and began releasing its own line of SQR. PeopleSoft's SQR version numbering is different from Brio/Hyperion's, so it's very important to mention whether you are using Hyperion's "SQR" or "SQR for PeopleSoft". (This info is included automatically if you include the full SQR version-id string as described below.) To get the version-id string for your copy of SQR, you can run the following program: begin-program show $sqr-ver end-program This will produce a line that looks something like this: SQR/3.0.15/Intel/SCO Unix R3.2 V5.0/Oracle 7.2.2.3/Sep 25 1996 Include the full line of output in your message. Note that the oper- ating system and database version numbers listed here are the ones under which this copy of SQR was compiled, so you'll still need to include this information for your own environment. In a command-line environment (Unix, etc.), you can also get this version-id string by saying sqr -id 4.3. Replying to a Message Messages sent out on the list have a Reply-To header pointing to the list. This means that you should be able to simply use your mail reader's "reply" function to send a reply to the list. Generally, all answers to questions sent out on the list should be public replies, so that other subscribers can benefit. In those cases where a private reply is appropriate, be sure to over-ride the default Reply-To address. If your message is not actually a reply to the earlier message, please do not use the "reply" function. Instead, address a new e-mail message to the list as described in the previous section. (This is because the list archives will incorrectly show the new message in the original thread if you use "reply".) You should quote enough lines from the original message that later readers can understand your answer even if they missed the original question. At the same time, you should remove any unnecessary lines from the quote in order to make your message shorter and easier to understand. (Remember that some people read the mailing list in digest form, and the digests become much larger if unnecessary lines are quoted.) 5. Job Announcements Please do not post job announcements on the sqr-users list, but use the sqr-jobs list instead. (See ``Related Mailing Lists'' for more information on this list.) A large number of sqr-users subscribers do not want to receive job announcements (for various reasons) and such posts tend to cause a lot of disruption of the discussion on the list. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 01 11:43:32 2006 Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. Date: Tue, 1 Aug 2006 08:40:44 -0700 From: "Rey Camoras" Same thing happens: (SQR 6806) String2Em: String to Decimal Object Conversion Error. If only we could upgrade to version 8.3.x. We can't because management doesn't deem it necessary.=20 -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu]=20 Sent: Monday, July 31, 2006 8:41 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. Ray, If you refer to the column in your select as &employee_id, what happens? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Monday, July 31, 2006 10:27 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. If I don't select an unscaled number column, the statement works fine. Our best option might be to redefine all of our unscaled numbers in our database. -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu] Sent: Friday, July 28, 2006 8:33 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. What happens if you leave the &empId out? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Friday, July 28, 2006 10:14 AM To: sqr-users@sqrug.org Subject: [sqr-users] String2Em: String to Decimal Object Conversion Error. This is an old issue revisited... We're in the process of migrating our databases from Oracle 8 to 10G. However, we're getting an error message in SQR when selecting a number column that isn't scaled (defined as number, as opposed to number(10), for example). We're using SQR version 6.0 on SunOS, release 5.8. begin-program begin-select employee_id &empId from emp end-select end-program Error on line 3: (SQR 6806) String2Em: String to Decimal Object Conversion Error. SQR: Program Aborting. However, if I add number such as 0 to the selected column, it works fine, but it's not the ideal solution; we would have to change thousands of sqr program to fix this issue. begin-program begin-select 0+employee_id &empId from emp end-select end-program I found this old sqr user group solution for Oracle 9i from 2003. Does anyone know if this works for Oracle 10G? If not, does anyone know any other fixes? alter system set event=3D'10499 trace name context forever,level 1'=20 COMMENT=3D'return 0 for the scale if NUMBER created without specifying the scale' SCOPE=3DSPFILE ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your computer. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your computer. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------------------= --------------------------------------------- This transmission, together with any attachments, is intended only for the = use of those to whom it is addressed and may contain information that is pr= ivileged, confidential, and exempt from disclosure under applicable law. I= f you are not the intended recipient, you are hereby notified that any dist= ribution or copying of this transmission is strictly prohibited. If you re= ceived this transmission in error, please notify the original sender immedi= ately and delete this message, along with any attachments, from your comput= er. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 01 12:27:34 2006 Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. Date: Tue, 1 Aug 2006 11:25:35 -0500 From: "Knapp, Richard" Ray, I'm baffled as to why SQR is attempting a conversion. I think you are right - altering the db columns sounds like the easiest fix. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Tuesday, August 01, 2006 10:41 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. Same thing happens: (SQR 6806) String2Em: String to Decimal Object Conversion Error. If only we could upgrade to version 8.3.x. We can't because management doesn't deem it necessary.=20 -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu]=20 Sent: Monday, July 31, 2006 8:41 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. Ray, If you refer to the column in your select as &employee_id, what happens? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Monday, July 31, 2006 10:27 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. If I don't select an unscaled number column, the statement works fine. Our best option might be to redefine all of our unscaled numbers in our database. -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu] Sent: Friday, July 28, 2006 8:33 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. What happens if you leave the &empId out? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Friday, July 28, 2006 10:14 AM To: sqr-users@sqrug.org Subject: [sqr-users] String2Em: String to Decimal Object Conversion Error. This is an old issue revisited... We're in the process of migrating our databases from Oracle 8 to 10G. However, we're getting an error message in SQR when selecting a number column that isn't scaled (defined as number, as opposed to number(10), for example). We're using SQR version 6.0 on SunOS, release 5.8. begin-program begin-select employee_id &empId from emp end-select end-program Error on line 3: (SQR 6806) String2Em: String to Decimal Object Conversion Error. SQR: Program Aborting. However, if I add number such as 0 to the selected column, it works fine, but it's not the ideal solution; we would have to change thousands of sqr program to fix this issue. begin-program begin-select 0+employee_id &empId from emp end-select end-program I found this old sqr user group solution for Oracle 9i from 2003. Does anyone know if this works for Oracle 10G? If not, does anyone know any other fixes? alter system set event=3D'10499 trace name context forever,level 1'=20 COMMENT=3D'return 0 for the scale if NUMBER created without specifying the scale' SCOPE=3DSPFILE ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your computer. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your computer. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------ ------------------------------------------------ This transmission, together with any attachments, is intended only for the use of those to whom it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any distribution or copying of this transmission is strictly prohibited. If you received this transmission in error, please notify the original sender immediately and delete this message, along with any attachments, from your computer. _______________________________________________ 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 From sqr-users-bounces@sqrug.org Tue Aug 01 12:35:37 2006 Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. Date: Tue, 1 Aug 2006 11:33:05 -0500 From: "Bob Stone" It's not SQR attempting it, it's Oracle. We had the same issue with our 9i upgrade, and I believe it should work for 10g. If it's easier to alter all the tables to specify the columns, that's probably your best bet. The other option is to always call it using "to_number" or "to_char" in the select.=20=20=20 -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Tuesday, August 01, 2006 11:26 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. Ray, I'm baffled as to why SQR is attempting a conversion. I think you are right - altering the db columns sounds like the easiest fix. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Tuesday, August 01, 2006 10:41 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. Same thing happens: (SQR 6806) String2Em: String to Decimal Object Conversion Error. If only we could upgrade to version 8.3.x. We can't because management doesn't deem it necessary.=20 -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu]=20 Sent: Monday, July 31, 2006 8:41 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. Ray, If you refer to the column in your select as &employee_id, what happens? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Monday, July 31, 2006 10:27 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. If I don't select an unscaled number column, the statement works fine. Our best option might be to redefine all of our unscaled numbers in our database. -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu] Sent: Friday, July 28, 2006 8:33 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] String2Em: String to Decimal Object Conversion Error. What happens if you leave the &empId out? Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Rey Camoras Sent: Friday, July 28, 2006 10:14 AM To: sqr-users@sqrug.org Subject: [sqr-users] String2Em: String to Decimal Object Conversion Error. This is an old issue revisited... We're in the process of migrating our databases from Oracle 8 to 10G. However, we're getting an error message in SQR when selecting a number column that isn't scaled (defined as number, as opposed to number(10), for example). We're using SQR version 6.0 on SunOS, release 5.8. begin-program begin-select employee_id &empId from emp end-select end-program Error on line 3: (SQR 6806) String2Em: String to Decimal Object Conversion Error. SQR: Program Aborting. However, if I add number such as 0 to the selected column, it works fine, but it's not the ideal solution; we would have to change thousands of sqr program to fix this issue. begin-program begin-select 0+employee_id &empId from emp end-select end-program I found this old sqr user group solution for Oracle 9i from 2003. Does anyone know if this works for Oracle 10G? If not, does anyone know any other fixes? alter system set event=3D'10499 trace name context forever,level 1'=20 COMMENT=3D'return 0 for the scale if NUMBER created without specifying the scale' SCOPE=3DSPFILE _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 02 02:31:59 2006 Date: Tue, 1 Aug 2006 23:29:36 -0700 (PDT) From: pplsoftnerd Subject: [sqr-users] SQR generates .gotit file Hi, There is custom SQR which generates a .dat files. When run in production the SQR apart from generating .dat file also generates files with extension .gotit. Can anyone come across this? Not all the SQR which generates .dat files does the same only selected does this way. What are these .gotit files. please help. Thanks --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 02 06:45:46 2006 From: "the dragon" Subject: RE: [sqr-users] SQR generates .gotit file Date: Wed, 02 Aug 2006 05:42:27 -0500 Seek the answer in your code. It's a custom sqr, and is doing something extra... peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hi, There is custom SQR which generates a .dat files. When run in production the SQR apart from generating .dat file also generates files with extension .gotit. Can anyone come across this? Not all the SQR which generates .dat files does the same only selected does this way. What are these .gotit files. please help. Thanks _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 02 09:19:33 2006 Subject: RE: [sqr-users] SQR generates .gotit file Date: Wed, 2 Aug 2006 08:17:37 -0500 From: "Knapp, Richard" RTFC. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-b= ounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of pplsoftnerd Sent: Wednesday, August 02, 2006 1:30 AM To: sqr-users@sqrug.org Subject: [sqr-users] SQR generates .gotit file Hi, There is custom SQR which generates a .dat files. When run in production = the SQR apart from generating .dat file also generates files with extension= .gotit. Can anyone come across this? Not all the SQR which generates .dat files does the same only selected does= this way. What are these .gotit files. please help. Thanks =20=09=09 --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ coun= tries) for 2=A2/min or less. _______________________________________________ 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 From sqr-users-bounces@sqrug.org Wed Aug 02 12:30:06 2006 From: "ashish kothary" Date: Wed, 02 Aug 2006 16:27:37 +0000 Subject: [sqr-users] SQL Perfomance monitoring in an SQR Hi All I have a SQR which all of a sudden is taking a long time to run. Jumped from 20 mins to 2 Hr. This SQR has tons of SQL Statement in them. How do I find out which SQL is takinga long time to run. I am running this SQR thru PS Prcoess Schedular. using -S flag gives me some detauils but not the timings. Database is MS-SQL Server. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 02 13:45:27 2006 Date: Wed, 2 Aug 2006 11:43:29 -0600 From: "Robert Goshko" Subject: Re: [sqr-users] SQL Perfomance monitoring in an SQR On 8/2/06, ashish kothary wrote: > Hi All > > I have a SQR which all of a sudden is taking a long time to run. Jumped from > 20 mins to 2 Hr. This SQR has tons of SQL Statement in them. How do I find > out which SQL is takinga long time to run. I am running this SQR thru PS > Prcoess Schedular. using -S flag gives me some detauils but not the timings. > Database is MS-SQL Server. Quickest way is to put some show statements in your program, 1 before each "begin-select' and then one inside with a time stamp, then you can see which is taking the longest to run. Your DBA may be able to tell you which SQL is hitting the database and causing issues. -- ...Rob -- No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. ================================================ Robert Goshko Registered Linux User #260513 Want a Gmail account, 2.6+ GB web mail (for free), just ask me. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sat Aug 05 17:23:37 2006 Date: Sat, 5 Aug 2006 14:21:14 -0700 (PDT) From: razeel zaleel Subject: Re: [sqr-users] .eps file we are on 8.9 and trying to print logo with .eps file when running i am selecting PS Printer option as advised by peoplesoft but its not printing the logo, just prints rectangular box with x on it any idea ? __________________________________________________ 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 From sqr-users-bounces@sqrug.org Mon Aug 07 16:12:24 2006 Date: Mon, 7 Aug 2006 13:09:56 -0700 (PDT) From: Clark Murray Subject: [sqr-users] Can execute Oracle stored procedure only x number of times? Our environment is: SQR server 8.2 on Win 2003 SP1 Oracle 9.2.0.5 The program generates lists of customers. It loops through a list of customer IDs and for each one it calls a stored procedure to get the customer's name, address, etc. It works just fine until it has done 253 records, then it reports an error in executing the procedure. I don't know whether or not this is significant, but the last character of the procedure name is truncated in the error message: Error on line 91: (SQR 3913) Could not EXECUTE stored procedure or function. SQL: EXEC Transcription_Utilities.Get_Transcription_Recor Error on line 91: (SQR 3913) Could not EXECUTE stored procedure or function. SQR: Program Aborting. Is there an issue with the record it's trying to process? No -- it's handled just fine if I change the selection criteria so that that customer is within the first 253. If I rerun it, it processes the remainders just fine (so long as there are less that 254, I assume). The code I believe to be relevant follows. !------------------------------------------------------------ Get_Record begin-procedure Get_Record execute do=write_transcription_record ! on-error=Oracle_Error @#proc_return_status = Transcription_Utilities.Get_Transcription_Record @p_customer_id = #customer_id , @p_output_record = $transcription_record OUTPUT end-procedure Get_Record !-------------------------------------------- Write_Transcription_Record begin-procedure Write_Transcription_Record !display $transcription_record write 1 from $transcription_record add 1 to #record_count end-procedure Write_Transcription_Record Any insight into this issue will be greatly appreciated. Clark Murray _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 09 14:23:36 2006 Date: Wed, 9 Aug 2006 11:21:03 -0700 (PDT) From: Courtney Nelson Subject: [sqr-users] Joining 2 data sources (local results) I am very new to SQR, I am a Hyperion (Brio) user. Does anyone have a sample of how to take 2 data sources and then join them together almost like Brio joining Local Results? I have asked around and no one can tell me that it can be done. Can this be done? If so, any kind of sample would be helpful. Thank You CNelson --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 09 15:32:39 2006 From: "Alexander, Steven" Subject: RE: [sqr-users] Joining 2 data sources (local results) Date: Wed, 9 Aug 2006 12:29:57 -0700 Do you mean two tables within a single database, or two databases, or a database and something else (like a spreadsheet)? -----Original Message----- From: Courtney Nelson [mailto:can76db@yahoo.com] Sent: Wednesday, August 09, 2006 11:21 AM To: sqr-users@sqrug.org Subject: [sqr-users] Joining 2 data sources (local results) I am very new to SQR, I am a Hyperion (Brio) user. Does anyone have a sample of how to take 2 data sources and then join them together almost like Brio joining Local Results? I have asked around and no one can tell me that it can be done. Can this be done? If so, any kind of sample would be helpful. Thank You CNelson --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. _______________________________________________ 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 From sqr-users-bounces@sqrug.org Wed Aug 09 16:08:14 2006 Date: Wed, 9 Aug 2006 13:05:48 -0700 (PDT) From: Courtney Nelson Subject: RE: [sqr-users] Joining 2 data sources (local results) I mean 2 databases. I understand that in SQR you are working within one connection. But I would like to know if you can have 2 connections within the same SQR document. One connects to Teradata and the other connects to DB2. Is this possible to have in the same document? If so, can you provide me the code that adds the other connection within the document? (I am not using the developer wizard) Ultimately, I am wanting to take the Teradata results and the DB2 results and merge them into 1 final result set. I honestly don't know if this is possible, I have heard mixed answers on this. Any info would be great. Thanks for your reply! CNelson "Alexander, Steven" wrote: Do you mean two tables within a single database, or two databases, or a database and something else (like a spreadsheet)? -----Original Message----- From: Courtney Nelson [mailto:can76db@yahoo.com] Sent: Wednesday, August 09, 2006 11:21 AM To: sqr-users@sqrug.org Subject: [sqr-users] Joining 2 data sources (local results) I am very new to SQR, I am a Hyperion (Brio) user. Does anyone have a sample of how to take 2 data sources and then join them together almost like Brio joining Local Results? I have asked around and no one can tell me that it can be done. Can this be done? If so, any kind of sample would be helpful. Thank You CNelson --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. _______________________________________________ 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 --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 09 16:28:47 2006 Subject: RE: [sqr-users] Joining 2 data sources (local results) Date: Wed, 9 Aug 2006 15:26:35 -0500 From: "Knapp, Richard" Courtney, SQR connects to one database at a time. Oracle supports database links which let you refer to a remote database. Here the database provides a connection to the remote database, not SQR. I don't know if Terradata or DB2 have equivalent functions. Since they are different databases, maybe you could exploit ODBC but for this you would need the ODBC version of SQR. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Courtney Nelson Sent: Wednesday, August 09, 2006 3:06 PM To: Steven.Alexander@sanjoseca.gov Cc: sqr-users@sqrug.org Subject: RE: [sqr-users] Joining 2 data sources (local results) I mean 2 databases. I understand that in SQR you are working within one connection. But I would like to know if you can have 2 connections within the same SQR document.=20=20 =20=20=20 One connects to Teradata and the other connects to DB2. Is this possible to have in the same document? If so, can you provide me the code that adds the other connection within the document? (I am not using the developer wizard) =20=20=20 Ultimately, I am wanting to take the Teradata results and the DB2 results and merge them into 1 final result set. I honestly don't know if this is possible, I have heard mixed answers on this.=20=20 =20=20=20 Any info would be great. =20=20=20 Thanks for your reply! =20=20=20 CNelson "Alexander, Steven" wrote: Do you mean two tables within a single database, or two databases, or a database and something else (like a spreadsheet)? -----Original Message----- From: Courtney Nelson [mailto:can76db@yahoo.com]=20 Sent: Wednesday, August 09, 2006 11:21 AM To: sqr-users@sqrug.org Subject: [sqr-users] Joining 2 data sources (local results) I am very new to SQR, I am a Hyperion (Brio) user.=20 Does anyone have a sample of how to take 2 data sources and then join them together almost like Brio joining Local Results?=20 I have asked around and no one can tell me that it can be done. Can this be done?=20 If so, any kind of sample would be helpful. Thank You CNelson --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. _______________________________________________ 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 =20=09=09=09 --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. _______________________________________________ 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 From sqr-users-bounces@sqrug.org Thu Aug 10 16:50:53 2006 Date: Thu, 10 Aug 2006 13:48:26 -0700 (PDT) From: Courtney Nelson Subject: RE: [sqr-users] Joining 2 data sources (local results) Richard - thanks for your reply. I do have ODBC version of SQR - right now I simply need a sample of what the connect code would look like. I have tried several ones but I am not having any luck. Thanks again Courtney "Knapp, Richard" wrote: Courtney, SQR connects to one database at a time. Oracle supports database links which let you refer to a remote database. Here the database provides a connection to the remote database, not SQR. I don't know if Terradata or DB2 have equivalent functions. Since they are different databases, maybe you could exploit ODBC but for this you would need the ODBC version of SQR. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Courtney Nelson Sent: Wednesday, August 09, 2006 3:06 PM To: Steven.Alexander@sanjoseca.gov Cc: sqr-users@sqrug.org Subject: RE: [sqr-users] Joining 2 data sources (local results) I mean 2 databases. I understand that in SQR you are working within one connection. But I would like to know if you can have 2 connections within the same SQR document. One connects to Teradata and the other connects to DB2. Is this possible to have in the same document? If so, can you provide me the code that adds the other connection within the document? (I am not using the developer wizard) Ultimately, I am wanting to take the Teradata results and the DB2 results and merge them into 1 final result set. I honestly don't know if this is possible, I have heard mixed answers on this. Any info would be great. Thanks for your reply! CNelson "Alexander, Steven" wrote: Do you mean two tables within a single database, or two databases, or a database and something else (like a spreadsheet)? -----Original Message----- From: Courtney Nelson [mailto:can76db@yahoo.com] Sent: Wednesday, August 09, 2006 11:21 AM To: sqr-users@sqrug.org Subject: [sqr-users] Joining 2 data sources (local results) I am very new to SQR, I am a Hyperion (Brio) user. Does anyone have a sample of how to take 2 data sources and then join them together almost like Brio joining Local Results? I have asked around and no one can tell me that it can be done. Can this be done? If so, any kind of sample would be helpful. Thank You CNelson --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. _______________________________________________ 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 --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. _______________________________________________ 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 --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 10 17:14:14 2006 Subject: RE: [sqr-users] Joining 2 data sources (local results) Date: Thu, 10 Aug 2006 16:11:56 -0500 From: "Knapp, Richard" Hi Courtney, I think whatever method works, you will have to store the data from one db in a data structure then combine/merge it with the other db's data. The only SQR command that approaches what you want to do is the connect command. I believe I have used it this way: 1. start your SQR logging into the db that makes the most sense as the first db. 2. get the data you need into a file or an array. 3. use the connect command to log into the other db. The connect command wants to assume that you are logging into the same db as a different user but you can fool it if the remote db supports the database name as part of the username/password sequence. In the oracle world that would look like: connect 'user/password@remote_db'. If this won't work, get the data you need from the first db into a flat file with one program then call another to connect to your second db, read that flat file and process accordingly. You may have to chain several programs and flat files. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Courtney Nelson Sent: Thursday, August 10, 2006 3:48 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.; Steven.Alexander@sanjoseca.gov Subject: RE: [sqr-users] Joining 2 data sources (local results) Richard - thanks for your reply.=20=20 =20=20=20 I do have ODBC version of SQR - right now I simply need a sample of what the connect code would look like.=20=20 =20=20=20 I have tried several ones but I am not having any luck. =20=20=20 Thanks again Courtney "Knapp, Richard" wrote: =20=20 Courtney, SQR connects to one database at a time. Oracle supports database links which let you refer to a remote database. Here the database provides a connection to the remote database, not SQR. I don't know if Terradata or DB2 have equivalent functions. Since they are different databases, maybe you could exploit ODBC but for this you would need the ODBC version of SQR. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Courtney Nelson Sent: Wednesday, August 09, 2006 3:06 PM To: Steven.Alexander@sanjoseca.gov Cc: sqr-users@sqrug.org Subject: RE: [sqr-users] Joining 2 data sources (local results) I mean 2 databases. I understand that in SQR you are working within one connection. But I would like to know if you can have 2 connections within the same SQR document.=20 One connects to Teradata and the other connects to DB2. Is this possible to have in the same document? If so, can you provide me the code that adds the other connection within the document? (I am not using the developer wizard) Ultimately, I am wanting to take the Teradata results and the DB2 results and merge them into 1 final result set. I honestly don't know if this is possible, I have heard mixed answers on this.=20 Any info would be great. Thanks for your reply! CNelson "Alexander, Steven" wrote: Do you mean two tables within a single database, or two databases, or a database and something else (like a spreadsheet)? -----Original Message----- From: Courtney Nelson [mailto:can76db@yahoo.com]=20 Sent: Wednesday, August 09, 2006 11:21 AM To: sqr-users@sqrug.org Subject: [sqr-users] Joining 2 data sources (local results) I am very new to SQR, I am a Hyperion (Brio) user.=20 Does anyone have a sample of how to take 2 data sources and then join them together almost like Brio joining Local Results?=20 I have asked around and no one can tell me that it can be done. Can this be done?=20 If so, any kind of sample would be helpful. Thank You CNelson --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. _______________________________________________ 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 --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. _______________________________________________ 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 =20=09=09 --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. _______________________________________________ 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 From sqr-users-bounces@sqrug.org Fri Aug 11 13:45:16 2006 Date: Fri, 11 Aug 2006 13:42:36 -0400 From: "Mingazov, Maya" Subject: [sqr-users] .pdf files from an sqr Hello, Can anybody tell me how .pdf files created in SQR? Is it something SQR supports and no code needed or I have to run a program to create .pdf file? Right now if I run SQR on my local machine I see .pdf files in same directory where all other outputs created. But when users run SQR they do not get any .pdf files. I search the SQR Program that created .pdf file and do not see any coding for that. Any suggestions or example of code if needed will be helpful. Thank you, Maya=20 This message and its attachments may contain legally privileged or confiden= tial information. It is intended solely for the named addressee. If you a= re not the addressee indicated in this message (or responsible for delivery= of the message to the addressee), you may not copy or deliver this message= or its attachments to anyone. Rather, you should permanently delete this = message and its attachments and kindly notify the sender by reply e-mail. = Any content of this message and its attachments that does not relate to the= official business of News America Incorporated or its subsidiaries must be= taken not to have been sent or endorsed by any of them. No warranty is ma= de that the e-mail or attachment(s) are free from computer virus or other d= efect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 11 13:51:24 2006 Date: Fri, 11 Aug 2006 13:49:03 -0400 From: "Larry Roux" Subject: Re: [sqr-users] .pdf files from an sqr sqr supports this by default (it calls another program to create the pdf files) You just need to tell it to produce the PDF output by specifying that output type (a -PRINTER:PD flag in the command line) Larry Roux Information Systems Syracuse University lroux@syr.edu >>> MMingazov@newsamerica.com 8/11/2006 1:42 PM >>> Hello, Can anybody tell me how .pdf files created in SQR? Is it something SQR supports and no code needed or I have to run a program to create .pdf file? Right now if I run SQR on my local machine I see .pdf files in same directory where all other outputs created. But when users run SQR they do not get any .pdf files. I search the SQR Program that created .pdf file and do not see any coding for that. Any suggestions or example of code if needed will be helpful. Thank you, Maya This message and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of News America Incorporated or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. _______________________________________________ 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 From sqr-users-bounces@sqrug.org Fri Aug 11 14:05:55 2006 Subject: RE: [sqr-users] .pdf files from an sqr Date: Fri, 11 Aug 2006 14:03:58 -0400 From: "Wes Williams" Search the messages; I know I have posted examples and so have others. Wes Williams Manager Facilities Mgt. Systems Princeton University 609-258-7027 =20 -----Original Message----- From: sqr-users-bounces+wes=3Dprinceton.edu@sqrug.org [mailto:sqr-users-bounces+wes=3Dprinceton.edu@sqrug.org] On Behalf Of Mingazov, Maya Sent: Friday, August 11, 2006 1:43 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] .pdf files from an sqr Hello, Can anybody tell me how .pdf files created in SQR? Is it something SQR supports and no code needed or I have to run a program to create .pdf file? Right now if I run SQR on my local machine I see .pdf files in same directory where all other outputs created. But when users run SQR they do not get any .pdf files. I search the SQR Program that created .pdf file and do not see any coding for that. Any suggestions or example of code if needed will be helpful. Thank you, Maya=20 This message and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of News America Incorporated or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. _______________________________________________ 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 From sqr-users-bounces@sqrug.org Fri Aug 11 14:19:14 2006 Date: Fri, 11 Aug 2006 14:17:22 -0400 From: "Moss, Mike " Subject: [sqr-users] Question about upgrading from 8.3 to 8.9 We are upgrading from HRMS 8.3 to HRMS 8.9 and we are seeing that the navigation through the web is alot different than before. Is there query or report that can be used to specify the portal navigation path for a given panelgroup name? =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D This email/fax message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of this email/fax is prohibited. If you are not the intended recipient, please destroy all paper and electronic copies of the original message. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 11 14:29:47 2006 From: "Krist Dewilde" Subject: RE: [sqr-users] Question about upgrading from 8.3 to 8.9 Date: Fri, 11 Aug 2006 20:35:25 +0200 Hi, You can retrieve this in PeopleTools > Portal >... There is a component in where you can give your component name and it generates an overview of the navigation path(s). Regards, Krist Dewilde -----Original Message----- From: sqr-users-bounces+krist.dewilde=skynet.be@sqrug.org [mailto:sqr-users-bounces+krist.dewilde=skynet.be@sqrug.org] On Behalf Of Moss, Mike Sent: vrijdag 11 augustus 2006 20:17 To: sqr-users@sqrug.org Subject: [sqr-users] Question about upgrading from 8.3 to 8.9 We are upgrading from HRMS 8.3 to HRMS 8.9 and we are seeing that the navigation through the web is alot different than before. Is there query or report that can be used to specify the portal navigation path for a given panelgroup name? ==================== This email/fax message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of this email/fax is prohibited. If you are not the intended recipient, please destroy all paper and electronic copies of the original message. _______________________________________________ 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 From sqr-users-bounces@sqrug.org Fri Aug 11 14:47:23 2006 Subject: RE: [sqr-users] Question about upgrading from 8.3 to 8.9 Date: Fri, 11 Aug 2006 14:45:05 -0400 From: "Moss, Mike " Yeah, I saw that and used it to help work up the sql I have now, but I'm looking for the whole list. -----Original Message----- From: sqr-users-bounces+mmoss=3Dgeico.com@sqrug.org [mailto:sqr-users-bounces+mmoss=3Dgeico.com@sqrug.org] On Behalf Of Krist Dewilde Sent: Friday, August 11, 2006 2:35 PM To: 'This list is for discussion about the SQR database reportinglanguagefrom Hyperion Solutions.' Subject: RE: [sqr-users] Question about upgrading from 8.3 to 8.9 Hi, You can retrieve this in PeopleTools > Portal >... There is a component in where you can give your component name and it generates an overview of the navigation path(s). Regards, Krist Dewilde -----Original Message----- From: sqr-users-bounces+krist.dewilde=3Dskynet.be@sqrug.org [mailto:sqr-users-bounces+krist.dewilde=3Dskynet.be@sqrug.org] On Behalf Of Moss, Mike=20 Sent: vrijdag 11 augustus 2006 20:17 To: sqr-users@sqrug.org Subject: [sqr-users] Question about upgrading from 8.3 to 8.9 We are upgrading from HRMS 8.3 to HRMS 8.9 and we are seeing that the navigation through the web is alot different than before. Is there query or report that can be used to specify the portal navigation path for a given panelgroup name? =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D This email/fax message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of this email/fax is prohibited. If you are not the intended recipient, please destroy all paper and electronic copies of the original message. _______________________________________________ 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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D This email/fax message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of this email/fax is prohibited. If you are not the intended recipient, please destroy all paper and electronic copies of the original message. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 11 15:01:47 2006 From: "Jeffrey Newton" Subject: RE: [sqr-users] Question about upgrading from 8.3 to 8.9 Date: Fri, 11 Aug 2006 14:59:16 -0400 Mike: There are some SQRs on Customer Connection - they put them out for the change from 8.0 SP1 to 8.9, but they may provide what you need. You might not expect where to find them because they are under the Campus Solutions documentation but they include the whole Campus Solutions / HCM system. To find them on customer connection, go to: Support, Documentation, Documentation Updates, Enterprise, Campus Solutions, All in Selected Product Line, Navigation Menu Mapping for Campus Solutions 8.9. >From: "Moss, Mike " >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "This list is for discussion about the SQR database reportinglanguage >fromHyperion Solutions." >Subject: RE: [sqr-users] Question about upgrading from 8.3 to 8.9 >Date: Fri, 11 Aug 2006 14:45:05 -0400 > >Yeah, I saw that and used it to help work up the sql I have now, but I'm >looking for the whole list. > >-----Original Message----- >From: sqr-users-bounces+mmoss=geico.com@sqrug.org >[mailto:sqr-users-bounces+mmoss=geico.com@sqrug.org] On Behalf Of Krist >Dewilde >Sent: Friday, August 11, 2006 2:35 PM >To: 'This list is for discussion about the SQR database >reportinglanguagefrom Hyperion Solutions.' >Subject: RE: [sqr-users] Question about upgrading from 8.3 to 8.9 > >Hi, > >You can retrieve this in PeopleTools > Portal >... There is a component >in where you can give your component name and it generates an overview >of the navigation path(s). > >Regards, > >Krist Dewilde > >-----Original Message----- >From: sqr-users-bounces+krist.dewilde=skynet.be@sqrug.org >[mailto:sqr-users-bounces+krist.dewilde=skynet.be@sqrug.org] On Behalf >Of Moss, Mike >Sent: vrijdag 11 augustus 2006 20:17 >To: sqr-users@sqrug.org >Subject: [sqr-users] Question about upgrading from 8.3 to 8.9 > >We are upgrading from HRMS 8.3 to HRMS 8.9 and we are seeing that the >navigation through the web is alot different than before. Is there >query or report that can be used to specify the portal navigation path >for a given panelgroup name? >==================== >This email/fax message is for the sole use of the intended >recipient(s) and may contain confidential and privileged information. >Any unauthorized review, use, disclosure or distribution of this >email/fax is prohibited. If you are not the intended recipient, please >destroy all paper and electronic copies of the original message. > >_______________________________________________ >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 >==================== >This email/fax message is for the sole use of the intended >recipient(s) and may contain confidential and privileged information. >Any unauthorized review, use, disclosure or distribution of this >email/fax is prohibited. If you are not the intended recipient, please >destroy all paper and electronic copies of the original message. > >_______________________________________________ >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 From sqr-users-bounces@sqrug.org Fri Aug 11 16:32:56 2006 From: "Alexander, Steven" Subject: RE: [sqr-users] Question about upgrading from 8.3 to 8.9 Date: Fri, 11 Aug 2006 13:30:23 -0700 You could also check out the PSPRSMDEFN table. It contains the tree structure of components and folders. An important field is PORTAL_REFTYPE. If it is "C", it is a component. If it is "F", it is a folder. You may wish to restrict PORTAL_NAME to "EMPLOYEE". PORTAL_OBJNAME is the name of the object, and PORTAL_PRNTOBJNAME is the parent's object name. Objects at the ROOT level have PORTAL_PRNTOBJNAME = "PORTAL_ROOT_OBJECT" -----Original Message----- From: Jeffrey Newton [mailto:jeffrey_d_newton@msn.com] Sent: Friday, August 11, 2006 11:59 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Question about upgrading from 8.3 to 8.9 Mike: There are some SQRs on Customer Connection - they put them out for the change from 8.0 SP1 to 8.9, but they may provide what you need. You might not expect where to find them because they are under the Campus Solutions documentation but they include the whole Campus Solutions / HCM system. To find them on customer connection, go to: Support, Documentation, Documentation Updates, Enterprise, Campus Solutions, All in Selected Product Line, Navigation Menu Mapping for Campus Solutions 8.9. >From: "Moss, Mike " >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "This list is for discussion about the SQR database reportinglanguage >fromHyperion Solutions." >Subject: RE: [sqr-users] Question about upgrading from 8.3 to 8.9 >Date: Fri, 11 Aug 2006 14:45:05 -0400 > >Yeah, I saw that and used it to help work up the sql I have now, but I'm >looking for the whole list. > >-----Original Message----- >From: sqr-users-bounces+mmoss=geico.com@sqrug.org >[mailto:sqr-users-bounces+mmoss=geico.com@sqrug.org] On Behalf Of Krist >Dewilde >Sent: Friday, August 11, 2006 2:35 PM >To: 'This list is for discussion about the SQR database >reportinglanguagefrom Hyperion Solutions.' >Subject: RE: [sqr-users] Question about upgrading from 8.3 to 8.9 > >Hi, > >You can retrieve this in PeopleTools > Portal >... There is a component >in where you can give your component name and it generates an overview >of the navigation path(s). > >Regards, > >Krist Dewilde > >-----Original Message----- >From: sqr-users-bounces+krist.dewilde=skynet.be@sqrug.org >[mailto:sqr-users-bounces+krist.dewilde=skynet.be@sqrug.org] On Behalf >Of Moss, Mike >Sent: vrijdag 11 augustus 2006 20:17 >To: sqr-users@sqrug.org >Subject: [sqr-users] Question about upgrading from 8.3 to 8.9 > >We are upgrading from HRMS 8.3 to HRMS 8.9 and we are seeing that the >navigation through the web is alot different than before. Is there >query or report that can be used to specify the portal navigation path >for a given panelgroup name? >==================== >This email/fax message is for the sole use of the intended >recipient(s) and may contain confidential and privileged information. >Any unauthorized review, use, disclosure or distribution of this >email/fax is prohibited. If you are not the intended recipient, please >destroy all paper and electronic copies of the original message. > >_______________________________________________ >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 >==================== >This email/fax message is for the sole use of the intended >recipient(s) and may contain confidential and privileged information. >Any unauthorized review, use, disclosure or distribution of this >email/fax is prohibited. If you are not the intended recipient, please >destroy all paper and electronic copies of the original message. > >_______________________________________________ >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 From sqr-users-bounces@sqrug.org Sat Aug 12 02:50:37 2006 Date: Sat, 12 Aug 2006 12:17:50 +0530 From: "Ganesh, Muralidhar \(IE10\)" Subject: [sqr-users] SQR for sending email that contains Hyperlink to web page. Hi All, =20 I need to write a SQR which generates the email notification. Body of the email should contain hyper link to web page. Similar to www.google.com this in the email. =20 =20 =20 Regards, Ganesh A.M =20 =20 =20 =20 =20 =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sun Aug 13 08:56:03 2006 Date: Sun, 13 Aug 2006 18:23:16 +0530 From: "Ganesh, Muralidhar \(IE10\)" Subject: [sqr-users] ORACLE OCIStmtFetch error 1406 Bad returned fetching row from database. Hi all. =20 An SQR which execute select query and writes the data in to file which was working fine is not completing to success after a database refresh and PTools Upgrade to 8.22. =20 I am getting following error in the mid of the execution (not all the rows are fetched). =20 ORACLE OCIStmtFetch error 1406 in cursor 25: ORA-01406: fetched column value was truncated. Error on line 159 Bad returned fetching row from database. =20 =20 I am not sure whether it is due to the refresh and Ptools upgrade. =20 Kindly help me in resolving this issue. =20 =20 Regards, Ganesh A.M =20 =20 =20 =20 =20 =20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sun Aug 13 09:47:15 2006 From: "the dragon" Subject: RE: [sqr-users] ORACLE OCIStmtFetch error 1406 Bad returnedfetching row from database. Date: Sun, 13 Aug 2006 08:44:40 -0500 Check you *Data* first. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hi all. An SQR which execute select query and writes the data in to file which was working fine is not completing to success after a database refresh and PTools Upgrade to 8.22. I am getting following error in the mid of the execution (not all the rows are fetched). ORACLE OCIStmtFetch error 1406 in cursor 25: ORA-01406: fetched column value was truncated. Error on line 159 Bad returned fetching row from database. I am not sure whether it is due to the refresh and Ptools upgrade. Kindly help me in resolving this issue. Regards, Ganesh A.M _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sun Aug 13 11:56:42 2006 Subject: RE: [sqr-users] ORACLE OCIStmtFetch error 1406 Bad returnedfetching row from database. Date: Sun, 13 Aug 2006 21:23:47 +0530 From: "Ganesh, Muralidhar \(IE10\)" Hi Clark, What exactly should I check in the data? Table doesn't contain any column with long data type.=20 The same query works fine in the SQL* PLUS and toad but only in the SQR it fails. SQR don't give error while fetching the subset of the rows in the table with some where conditions but, while selecting the whole data it gives an error.=20 Will the values for the following does matter in the PSSQR.ini [Processing-Limits]=20 ; DYNAMICARGS=20=20=20=20=20=20=20 DYNAMICARGS=20=20=20=20=20=20=20=20 EXPRESSIONSPACE=20=20=20=20 FORWARDREFS=20=20=20=20=20=20=20=20 NUMVARIABLES=20=20=20=20=20=20=20 ONBREAKS=20=20=20=20=20=20=20=20=20=20=20 POSITIONS=20=20=20=20=20=20=20=20=20=20 PROGLINEPARS=20=20=20=20=20=20=20 PROGLINES=20=20=20=20=20=20=20=20=20=20 QUERIES=20=20=20=20=20=20=20=20=20=20=20=20 QUERYARGS=20=20=20=20=20=20=20=20=20=20 SQLSIZE=20=20=20=20=20=20=20=20=20=20=20=20 STRINGSPACE=20=20=20=20=20=20=20=20 SUBVARS=20=20=20=20=20=20=20=20=20=20=20=20 VARIABLES=20=20=20=20=20=20=20=20=20=20 WHENS=20=20=20=20=20=20=20=20=20=20=20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ; BREAKS=20=20=20=20=20=20=20=20=20=20=20=20 ; LONGSPACE=20=20=20=20=20=20=20=20=20 Regards, Ganesh A.M ----Original Message----- From: the dragon [mailto:ceprn@hotmail.com] Sent: Sunday, August 13, 2006 7:15 PM To: sqr-users@sqrug.org Cc: Ganesh, Muralidhar (IE10) Subject: RE: [sqr-users] ORACLE OCIStmtFetch error 1406 Bad returnedfetching row from database. Check you *Data* first. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your=20 services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be=20 recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you=20 can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hi all. An SQR which execute select query and writes the data in to file which was working fine is not completing to success after a database refresh and PTools Upgrade to 8.22. I am getting following error in the mid of the execution (not all the rows are fetched). ORACLE OCIStmtFetch error 1406 in cursor 25: ORA-01406: fetched column value was truncated. Error on line 159 Bad returned fetching row from database. I am not sure whether it is due to the refresh and Ptools upgrade. Kindly help me in resolving this issue. Regards, Ganesh A.M _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE!=20 http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sun Aug 13 13:19:55 2006 Date: Sun, 13 Aug 2006 13:17:10 -0400 From: "Larry Roux" Subject: RE: [sqr-users] ORACLE OCIStmtFetch error 1406 Bad returnedfetching row from database. Try this: begin-select {field list} show {keys} from {tablename} end-select it should create a cursor and iterate through the table until it hits the row that is broken. The last display should eb the row before that. You will probably want to do an order-by to ensure you know what row is giving you the issue. Then look at the data in the row to see if there is something odd there (control characters or something) Larry Roux Information Systems Syracuse University lroux@syr.edu >>> Ganesh.Muralidhar@honeywell.com 8/13/2006 11:53:47 AM >>> Hi Clark, What exactly should I check in the data? Table doesn't contain any column with long data type. The same query works fine in the SQL* PLUS and toad but only in the SQR it fails. SQR don't give error while fetching the subset of the rows in the table with some where conditions but, while selecting the whole data it gives an error. Will the values for the following does matter in the PSSQR.ini [Processing-Limits] ; DYNAMICARGS DYNAMICARGS EXPRESSIONSPACE FORWARDREFS NUMVARIABLES ONBREAKS POSITIONS PROGLINEPARS PROGLINES QUERIES QUERYARGS SQLSIZE STRINGSPACE SUBVARS VARIABLES WHENS ; BREAKS ; LONGSPACE Regards, Ganesh A.M ----Original Message----- From: the dragon [mailto:ceprn@hotmail.com] Sent: Sunday, August 13, 2006 7:15 PM To: sqr-users@sqrug.org Cc: Ganesh, Muralidhar (IE10) Subject: RE: [sqr-users] ORACLE OCIStmtFetch error 1406 Bad returnedfetching row from database. Check you *Data* first. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hi all. An SQR which execute select query and writes the data in to file which was working fine is not completing to success after a database refresh and PTools Upgrade to 8.22. I am getting following error in the mid of the execution (not all the rows are fetched). ORACLE OCIStmtFetch error 1406 in cursor 25: ORA-01406: fetched column value was truncated. Error on line 159 Bad returned fetching row from database. I am not sure whether it is due to the refresh and Ptools upgrade. Kindly help me in resolving this issue. Regards, Ganesh A.M _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ 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 From sqr-users-bounces@sqrug.org Sun Aug 13 21:46:49 2006 Date: Sun, 13 Aug 2006 20:44:09 -0500 From: "Bob Helm" Subject: [sqr-users] How can I alter bar-code width? While I can adjust the height of the bar-code, I can't find a way to shrink= the width of the barcode. I've got a report and I change font-size off and on, using alter-printer, b= ut this doesn't seem to affect the bar-code at all. Is it possible to adjust the width of a bar-code? Thanks for any help! Bob Bob Helm Medication Management Division bob.helm@mediware.com 913-307-1045 This message (including any attachments) constitutes a confidential communi= cation and/or contains confidential information intended for a specific ind= ividual and purpose, and is protected by law. If you are not the intended= recipient, please notify the sender by return email and delete this messag= e and any attachments. Any disclosure, copying, or distribution of this me= ssage, or the taking of any action based on it, is strictly prohibited. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sun Aug 13 21:58:37 2006 From: "the dragon" Subject: RE: [sqr-users] How can I alter bar-code width? Date: Sun, 13 Aug 2006 20:55:56 -0500 According to my sqr ref manual, you can't... But it is version 4. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- While I can adjust the height of the bar-code, I can't find a way to shrink the width of the barcode. I've got a report and I change font-size off and on, using alter-printer, but this doesn't seem to affect the bar-code at all. Is it possible to adjust the width of a bar-code? Thanks for any help! Bob Bob Helm Medication Management Division bob.helm@mediware.com 913-307-1045 This message (including any attachments) constitutes a confidential communication and/or contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please notify the sender by return email and delete this message and any attachments. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 14 12:58:12 2006 From: "Alexander, Steven" Subject: RE: [sqr-users] ORACLE OCIStmtFetch error 1406 Badreturnedfetching row from database. Date: Mon, 14 Aug 2006 09:54:38 -0700 I had this problem a few weeks ago. In my case, there were extended ASCII characters (between 128 and 255) in a character field. -----Original Message----- From: Larry Roux [mailto:LRoux@syr.edu] Sent: Sunday, August 13, 2006 10:17 AM To: Ganesh.Muralidhar@honeywell.com; the dragon; sqr-users@sqrug.org Subject: RE: [sqr-users] ORACLE OCIStmtFetch error 1406 Badreturnedfetching row from database. Try this: begin-select {field list} show {keys} from {tablename} end-select it should create a cursor and iterate through the table until it hits the row that is broken. The last display should eb the row before that. You will probably want to do an order-by to ensure you know what row is giving you the issue. Then look at the data in the row to see if there is something odd there (control characters or something) Larry Roux Information Systems Syracuse University lroux@syr.edu >>> Ganesh.Muralidhar@honeywell.com 8/13/2006 11:53:47 AM >>> Hi Clark, What exactly should I check in the data? Table doesn't contain any column with long data type. The same query works fine in the SQL* PLUS and toad but only in the SQR it fails. SQR don't give error while fetching the subset of the rows in the table with some where conditions but, while selecting the whole data it gives an error. Will the values for the following does matter in the PSSQR.ini [Processing-Limits] ; DYNAMICARGS DYNAMICARGS EXPRESSIONSPACE FORWARDREFS NUMVARIABLES ONBREAKS POSITIONS PROGLINEPARS PROGLINES QUERIES QUERYARGS SQLSIZE STRINGSPACE SUBVARS VARIABLES WHENS ; BREAKS ; LONGSPACE Regards, Ganesh A.M ----Original Message----- From: the dragon [mailto:ceprn@hotmail.com] Sent: Sunday, August 13, 2006 7:15 PM To: sqr-users@sqrug.org Cc: Ganesh, Muralidhar (IE10) Subject: RE: [sqr-users] ORACLE OCIStmtFetch error 1406 Bad returnedfetching row from database. Check you *Data* first. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hi all. An SQR which execute select query and writes the data in to file which was working fine is not completing to success after a database refresh and PTools Upgrade to 8.22. I am getting following error in the mid of the execution (not all the rows are fetched). ORACLE OCIStmtFetch error 1406 in cursor 25: ORA-01406: fetched column value was truncated. Error on line 159 Bad returned fetching row from database. I am not sure whether it is due to the refresh and Ptools upgrade. Kindly help me in resolving this issue. Regards, Ganesh A.M _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ 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 From sqr-users-bounces@sqrug.org Mon Aug 14 13:09:21 2006 Date: Mon, 14 Aug 2006 10:06:10 -0700 (PDT) From: Courtney Nelson Subject: RE: [sqr-users] Joining 2 data sources (local results) You helped a lot. I got it working in Teradata. Thanks so much! "Knapp, Richard" wrote: Hi Courtney, I think whatever method works, you will have to store the data from one db in a data structure then combine/merge it with the other db's data. The only SQR command that approaches what you want to do is the connect command. I believe I have used it this way: 1. start your SQR logging into the db that makes the most sense as the first db. 2. get the data you need into a file or an array. 3. use the connect command to log into the other db. The connect command wants to assume that you are logging into the same db as a different user but you can fool it if the remote db supports the database name as part of the username/password sequence. In the oracle world that would look like: connect 'user/password@remote_db'. If this won't work, get the data you need from the first db into a flat file with one program then call another to connect to your second db, read that flat file and process accordingly. You may have to chain several programs and flat files. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Courtney Nelson Sent: Thursday, August 10, 2006 3:48 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.; Steven.Alexander@sanjoseca.gov Subject: RE: [sqr-users] Joining 2 data sources (local results) Richard - thanks for your reply. I do have ODBC version of SQR - right now I simply need a sample of what the connect code would look like. I have tried several ones but I am not having any luck. Thanks again Courtney "Knapp, Richard" wrote: Courtney, SQR connects to one database at a time. Oracle supports database links which let you refer to a remote database. Here the database provides a connection to the remote database, not SQR. I don't know if Terradata or DB2 have equivalent functions. Since they are different databases, maybe you could exploit ODBC but for this you would need the ODBC version of SQR. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Courtney Nelson Sent: Wednesday, August 09, 2006 3:06 PM To: Steven.Alexander@sanjoseca.gov Cc: sqr-users@sqrug.org Subject: RE: [sqr-users] Joining 2 data sources (local results) I mean 2 databases. I understand that in SQR you are working within one connection. But I would like to know if you can have 2 connections within the same SQR document. One connects to Teradata and the other connects to DB2. Is this possible to have in the same document? If so, can you provide me the code that adds the other connection within the document? (I am not using the developer wizard) Ultimately, I am wanting to take the Teradata results and the DB2 results and merge them into 1 final result set. I honestly don't know if this is possible, I have heard mixed answers on this. Any info would be great. Thanks for your reply! CNelson "Alexander, Steven" wrote: Do you mean two tables within a single database, or two databases, or a database and something else (like a spreadsheet)? -----Original Message----- From: Courtney Nelson [mailto:can76db@yahoo.com] Sent: Wednesday, August 09, 2006 11:21 AM To: sqr-users@sqrug.org Subject: [sqr-users] Joining 2 data sources (local results) I am very new to SQR, I am a Hyperion (Brio) user. Does anyone have a sample of how to take 2 data sources and then join them together almost like Brio joining Local Results? I have asked around and no one can tell me that it can be done. Can this be done? If so, any kind of sample would be helpful. Thank You CNelson --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. _______________________________________________ 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 --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail Beta. _______________________________________________ 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 --------------------------------- Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. _______________________________________________ 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 --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 16 09:03:10 2006 Date: Wed, 16 Aug 2006 09:00:21 -0400 From: "Bahney, Barbara J." Subject: [sqr-users] Using OCR B font in an SQR We are a PeopleSoft customer who uses an SQR program to print our paychecks. There is a project currently underway to change the 'Pay to the Order Of' Name and Address, on the paycheck, to print with an OCR B font. Our paychecks will be printing on a Xerox Docuprint N32 printer. If anyone is familiar with using OCR fonts, in an SQR program, could they please let me know what steps I need to take to implement this?=20 Any information you could pass my way would be greatly appreciated. Thanks! Barbara J. Bahney University of Pittsburgh Medical Center Information Services Division Senior PeopleSoft Analyst (HRMS) Forbes Tower - Room 3025-9 Email: rusnakbj@msx.upmc.edu Phone: 412-647-3081 Fax: 412-647-4499 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 18 08:56:35 2006 From: manu.a@tcs.com Date: Fri, 18 Aug 2006 18:23:00 +0530 Subject: [sqr-users] Problem in accesing DB oracle 9i with SQR 6.0 Hi , This is regarding problem accessing the data base problem while running SQR Reports . I am using SQR version 6.0 with oracle8i user . But when i am using SQR 6.0 with oracle9i user , its giving me error . Oracle error which says 'Cannot logon to database' . I have query whether SQR 6.0 is compatible with oracle9i user or not . Thanks in advance . Regards, Manu Agarwal Tata Consultancy Services Limited Mailto: manu.a@tcs.com Website: http://www.tcs.com =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 18 09:30:34 2006 From: "the dragon" Subject: RE: [sqr-users] Problem in accesing DB oracle 9i with SQR 6.0 Date: Fri, 18 Aug 2006 08:27:50 -0500 YES, as long as yu have the right versions. PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hi , This is regarding problem accessing the data base problem while running SQR Reports . I am using SQR version 6.0 with oracle8i user . But when i am using SQR 6.0 with oracle9i user , its giving me error . Oracle error which says 'Cannot logon to database' . I have query whether SQR 6.0 is compatible with oracle9i user or not . Thanks in advance . Regards, Manu Agarwal Tata Consultancy Services Limited Mailto: manu.a@tcs.com Website: http://www.tcs.com =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 18 10:00:05 2006 Date: Fri, 18 Aug 2006 08:57:49 -0500 From: "Knapp, Richard" Subject: [sqr-users] RE: Can you Please help ? Reg: Multiple DB Connection(Sybase) in SQR Do you have the ODBC version of SQR? =20 Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu =20 ________________________________ From: B, Ravishankar (Cognizant) [mailto:Ravishankar.B@cognizant.com]=20 Sent: Friday, August 18, 2006 2:04 AM To: Knapp, Richard; Steven.Alexander@sanjoseca.gov; can76db@yahoo.com; ceprn@hotmail.com; DWhite@drc.com; sqr-users@sqrug.org Subject: Can you Please help ? Reg: Multiple DB Connection(Sybase) in SQR =20 Hi Richard / Steven / All,=20 I got your mail id from 'SQRUG' forum. Could you please provide a solution to the below mentioned problem? =20 I am using SQR and Hyperion 8.3 in UNIX environment. For my reporting purpose, i need to pull data from TWO separate Sybase Databases (say, DEV1 and DEV2). So, I thought I need to use ODBC connection. I tried this using the -DB keyword after BEGIN-SELECT as follows:=20 Let $StrDev1 =3D 'DSN=3D20.104.13.26,6020;UID=3Duid1;PWD=3Dpwd1' Begin-Select -DB$StrDev1 PDPD_ID &PDPD_ID Next-Listing Need =3D 12 SkipLines =3D 10 Print &PDPD_ID (+10,50) Print $StrDev1 (,150) Let Product.PDPD_ID(#i) =3D &PDPD_ID Let #i =3D #i + 1 =46rom fctenv01.dbo.CMC_PDPD_PRODUCT=20 Where=20 PDPD_ID LIKE 'ABRI%' End-Select But, while running. It's throwing error as:=20 "(SQR 3721) Bad param found on 'BEGIN-SELECT' line; Format is: BEGIN-SELECT [DISTINCT] [-Cnn] [-XP] [LOOPS=3Dnnn] [ON-ERROR=3Dprocedure [(arg1[,argi]...)]] Begin-Select -DB$StrDev1"=20 I found in the SQR manual that the -DB keyword can be used for specifying Connection string. But here, it's not recognizing it. Do we need to specify ODBC connection details somewhere else? I am not sure of what the error is?=20=20 It would be great if you could help me to come out of this!!! Note: Is there any other method other than ODBC to implement the functionality of pulling data and comparing it from TWO databases (both are Sybase). What my logic was, to pull the required data (Single field) from db1, put it in an array, connect to 2nd db, and compare the array data with the data fetched from 2nd db using a query. =20 Expecting your reply soon. Thanks in advance, Regards,=20 Ravishankar B, Cognizant, INDIA =20 =20 =20 =20 This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.=20 Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly=20 prohibited and may be unlawful. Visit us at http://www.cognizant.com =09 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 18 11:43:08 2006 Date: Fri, 18 Aug 2006 10:40:50 -0500 From: "Knapp, Richard" Subject: [sqr-users] RE: Can you Please help ? Reg: Multiple DB Connection(Sybase) in SQR Find out what the correct syntax for a Sybase connect string is and use the connect command. =20 Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu =20 ________________________________ From: B, Ravishankar (Cognizant) [mailto:Ravishankar.B@cognizant.com]=20 Sent: Friday, August 18, 2006 9:30 AM To: Knapp, Richard; Steven.Alexander@sanjoseca.gov; can76db@yahoo.com; ceprn@hotmail.com; DWhite@drc.com; sqr-users@sqrug.org Subject: RE: Can you Please help ? Reg: Multiple DB Connection(Sybase) in SQR =20 Hi Richard, =20 This is the version info of our SQR: =20 SQR/8.3.1/IBM RS6000/AIX 5.1/Sybase SDK 12.0/Jan 27 2005 =20 I don't think it is the ODBC Version. =20 Can't we implement the functionality without ODBC version? =20 =20 =20 Thanks, Regards,=20 Ravishankar B=20=20 =20 "The most successful man in life is the man who has the best information" =20 ________________________________ From: Knapp, Richard [mailto:KnappR@umsystem.edu]=20 Sent: Friday, August 18, 2006 7:28 PM To: B, Ravishankar (Cognizant); Steven.Alexander@sanjoseca.gov; can76db@yahoo.com; ceprn@hotmail.com; DWhite@drc.com; sqr-users@sqrug.org Subject: RE: Can you Please help ? Reg: Multiple DB Connection(Sybase) in SQR =20 Do you have the ODBC version of SQR? =20 Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu =20 ________________________________ From: B, Ravishankar (Cognizant) [mailto:Ravishankar.B@cognizant.com]=20 Sent: Friday, August 18, 2006 2:04 AM To: Knapp, Richard; Steven.Alexander@sanjoseca.gov; can76db@yahoo.com; ceprn@hotmail.com; DWhite@drc.com; sqr-users@sqrug.org Subject: Can you Please help ? Reg: Multiple DB Connection(Sybase) in SQR =20 Hi Richard / Steven / All,=20 I got your mail id from 'SQRUG' forum. Could you please provide a solution to the below mentioned problem? =20 I am using SQR and Hyperion 8.3 in UNIX environment. For my reporting purpose, i need to pull data from TWO separate Sybase Databases (say, DEV1 and DEV2). So, I thought I need to use ODBC connection. I tried this using the -DB keyword after BEGIN-SELECT as follows:=20 Let $StrDev1 =3D 'DSN=3D20.104.13.26,6020;UID=3Duid1;PWD=3Dpwd1' Begin-Select -DB$StrDev1 PDPD_ID &PDPD_ID Next-Listing Need =3D 12 SkipLines =3D 10 Print &PDPD_ID (+10,50) Print $StrDev1 (,150) Let Product.PDPD_ID(#i) =3D &PDPD_ID Let #i =3D #i + 1 =46rom fctenv01.dbo.CMC_PDPD_PRODUCT=20 Where=20 PDPD_ID LIKE 'ABRI%' End-Select But, while running. It's throwing error as:=20 "(SQR 3721) Bad param found on 'BEGIN-SELECT' line; Format is: BEGIN-SELECT [DISTINCT] [-Cnn] [-XP] [LOOPS=3Dnnn] [ON-ERROR=3Dprocedure [(arg1[,argi]...)]] Begin-Select -DB$StrDev1"=20 I found in the SQR manual that the -DB keyword can be used for specifying Connection string. But here, it's not recognizing it. Do we need to specify ODBC connection details somewhere else? I am not sure of what the error is?=20=20 It would be great if you could help me to come out of this!!! Note: Is there any other method other than ODBC to implement the functionality of pulling data and comparing it from TWO databases (both are Sybase). What my logic was, to pull the required data (Single field) from db1, put it in an array, connect to 2nd db, and compare the array data with the data fetched from 2nd db using a query. =20 Expecting your reply soon. Thanks in advance, Regards,=20 Ravishankar B, Cognizant, INDIA =20 =20 =20 =20 This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.=20 Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly=20 prohibited and may be unlawful. Visit us at http://www.cognizant.com =09 This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.=20 Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly=20 prohibited and may be unlawful. Visit us at http://www.cognizant.com =09 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 18 12:29:15 2006 From: "Alexander, Steven" Date: Fri, 18 Aug 2006 09:26:33 -0700 Subject: [sqr-users] RE: Help Needed - SQR - Switch database inside SQR - Any Comments will be greatly appreciated Ravishankar, please don't send e-mail to me directly. I prefer that you join the SQR users group list and send your questions there. I'll see them there and try to help, and you'll have hundreds of other programmers who could also help you. As for your question - unless you have the ODBC version of SQR, there is no way for a single SQR program to switch from one database instance to another or from one database server to another. I've faced the same task as you have and I've found only two solutions: 1. Write a program to read the first database and write it to a disk file. Write another program to read the disk file and compare it to the second database. 2. Have the Database Administrator (DBA) create a link within the databases so that you can log into the first database and have access to the tables in the second database. Ask the DBA to show you the way to refer to tables in the second database. Some DBAs won't want to do this - and there are often good reasons not to. If so, you're stuck with option 1. _____ From: B, Ravishankar (Cognizant) [mailto:Ravishankar.B@cognizant.com] Sent: Friday, August 18, 2006 9:15 AM To: sqr-users@sqrug.org; jiju vengal; Steven.Alexander@sanjoseca.gov; DWhite@drc.com; rayo@ontko.com Subject: Help Needed - SQR - Switch database inside SQR - Any Comments will be greatly appreciated Hi all, I've been stuck up with an issue for the last 2-3 days. Any comments on how to proceed will be greatly appreciated. The issue is: I need to switch database server inside the SQR report. This is the version info of SQR we using: SQR/8.3.1/IBM RS6000/AIX 5.1/Sybase SDK 12.0/Jan 27 2005 Functionality: My goal is to fetch data from a table inside one server (dev1), compare it with another table which resides in another server (dev2) and list those matching data in the report. Both servers are SYBASE. We run our SQR report in UNIX environment. I ran the report from one server (dev1) and pulled data into an array. Now I want to switch the server to dev2 and compare the data inside the array. Here only, I got stuck up. I've tried the following stuffs to come out of the situation: 1) used -DB keyword with begin-select to switch the db. It returned error message "Bad param found on 'BEGIN-SELECT' line; ..." 2) used Connect command like: Connect 'usrid/passwd@dev2' It also returned error message "CONNECT failed. Perhaps username/password incorrect." 3) changed environment variables in UNIX from SQR to switch the server: Call system using 'export Server=dev2' #statuscode Call system using 'export Server=user' #statuscode Call system using 'export Server=pwd' #statuscode It returned no error. But, the variables are not changing as specified. It still holds its old value while echoing the value after export. 4) called a shellscript from SQR for exporting the values. It changed the values to dev2 while echoed from the shell script. But, when coming back to SQR and echo, still holds the old value. 5) still to try the db link: CREATE PUBLIC DATABASE LINK MY_LINK CONNECT TO userid IDENTIFIED BY passwd USING 'T: dev1:rptenv01' I think this code need to be run from Sybase - is it? Will it need to be performed by DBA? Anyway, I don't know whether this will work or not? Can anybody suggest any method for implementing the functionality? Can somebody help me to get out of this hell? Any comments on the same will do a world of good. Thanks in advance, Regards, Ravishankar B * Landline: (91)(44) 42284499 * Extn: 4499 * VNET: 444620 This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 18 14:26:36 2006 Date: Fri, 18 Aug 2006 23:53:58 +0530 From: "B, Ravishankar \(Cognizant\)" Subject: [sqr-users] (no subject) Do anybody know about the CONNECT Command Syntax in SQR for Sybase which sw= itches the database along with users. For Oracle ; it is like "connect user/passwd@DBServer". Can somebody suggest the same for SYBASE? Thanks/Regards, Ravi =0D This e-mail and any files transmitted with it are for the sole use of the i= ntended recipient(s) and may contain confidential and privileged informatio= n. If you are not the intended recipient, please contact the sender by reply e= -mail and destroy all copies of the original message.=0D Any unauthorized review, use, disclosure, dissemination, forwarding, printi= ng or copying of this email or any action taken in reliance on this e-mail = is strictly=0D prohibited and may be unlawful. Visit us at http://www.cognizant.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sat Aug 19 02:04:13 2006 Date: Sat, 19 Aug 2006 11:31:21 +0530 From: "B, Ravishankar \(Cognizant\)" Subject: [sqr-users] Invalid Count- Error Message in SQR (Error No: SQR 6) Hi all, =0D I didn't find answer for my previous problem still. Now I got a new one. =0D I am getting the following error message while trying to run an SQR report from my login id(UNIX Environment). =0D (SQR 6) Corrupt message file: Invalid count (Got 1118, Should be 1055) =0D The $SQRDIR variable points to .../SQR/syb/bin directory. =0D But anyway, with the admin's id, report is working fine without any error. All the other users except admin are reporting the same issue as mine. =0D Heard that we need to reload the .../SQR/syb/bin/sqrerr.dat file. Where can we get the new version from? =0D Do any body know some other method to solve this? =0D Thank You, =0D =0D Regards,=0D Ravishankar B =0D =0D "The most successful man in life is the man who has the best information" =0D ________________________________ From: B, Ravishankar (Cognizant)=0D Sent: Friday, August 18, 2006 11:54 PM To: sqr-users@sqrug.org Subject:=0D =0D Do anybody know about the CONNECT Command Syntax in SQR for Sybase which switches the database along with users. For Oracle ; it is like "connect user/passwd@DBServer". Can somebody suggest the same for SYBASE? Thanks/Regards, Ravi =0D This e-mail and any files transmitted with it are for the sole use of the i= ntended recipient(s) and may contain confidential and privileged informatio= n. If you are not the intended recipient, please contact the sender by reply e= -mail and destroy all copies of the original message.=0D Any unauthorized review, use, disclosure, dissemination, forwarding, printi= ng or copying of this email or any action taken in reliance on this e-mail = is strictly=0D prohibited and may be unlawful. Visit us at http://www.cognizant.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 21 17:54:00 2006 Date: Mon, 21 Aug 2006 17:51:13 -0400 From: "Vaidyanathan, Ramakrishnan \(GE, Corporate, consultant\)" Subject: [sqr-users] Running SQR thru Process scheduler as well as command prompt Hi All I got to run a sqr thru process scheduler as well as thru command prompt s= o that sqr executes accordingly. I tried checking for $prc_process_instance= and checking it for null to see whether it has been scheduled via process = scheduler.If its the case, then Iam selecting some flds from run control ta= ble else iam giving set of input statements. When I run the sqr thru cooman= d prompt, it errors out saying table does not exist. Is there any other way= apart from $prc_process_instance to check whether sqr is executed thru p= rocess scheduler or cmd prompt. Thanks Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 21 20:49:32 2006 From: "Alexander, Steven" Subject: RE: [sqr-users] Running SQR thru Process scheduler as well as commandprompt Date: Mon, 21 Aug 2006 17:46:55 -0700 I think something else is happening, because the run control table does exist whether you run from the process scheduler or the command line. Which table doesn't exist? Are you sure you have the right table name? And this may just be a typo in your e-mail, but the variable name is $prcs_process_instance - you're missing the first "s". $prcs_process_instance, $prcs_oprid, and $database_name come from items on the SQR command line that the process scheduler uses to run your program. The variables are set in Peoplesoft-written procedures that you can find by following the stdapi-init call through the sqc files. They will all probably be null if you run it with your own command line. -----Original Message----- From: Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) [mailto:ramakrishnan.vaidyanathan@ge.com] Sent: Monday, August 21, 2006 2:51 PM To: sqr-users@sqrug.org Subject: [sqr-users] Running SQR thru Process scheduler as well as commandprompt Hi All I got to run a sqr thru process scheduler as well as thru command prompt so that sqr executes accordingly. I tried checking for $prc_process_instance and checking it for null to see whether it has been scheduled via process scheduler.If its the case, then Iam selecting some flds from run control table else iam giving set of input statements. When I run the sqr thru coomand prompt, it errors out saying table does not exist. Is there any other way apart from $prc_process_instance to check whether sqr is executed thru process scheduler or cmd prompt. Thanks Ram _______________________________________________ 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 From sqr-users-bounces@sqrug.org Mon Aug 21 21:18:51 2006 From: "the dragon" Subject: RE: [sqr-users] Running SQR thru Process scheduler as well as commandprompt Date: Mon, 21 Aug 2006 20:16:10 -0500 That's because you have to excute it from the command prompt as the table owner (hint sysadm) or have grants and synonyms created for the user you are executing it as. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hi All I got to run a sqr thru process scheduler as well as thru command prompt so that sqr executes accordingly. I tried checking for $prc_process_instance and checking it for null to see whether it has been scheduled via process scheduler.If its the case, then Iam selecting some flds from run control table else iam giving set of input statements. When I run the sqr thru coomand prompt, it errors out saying table does not exist. Is there any other way apart from $prc_process_instance to check whether sqr is executed thru process scheduler or cmd prompt. Thanks Ram _________________________________________________________________ All-in-one security and maintenance for your PC. Get a free 90-day trial! http://www.windowsonecare.com/trial.aspx?sc_cid=msn_hotmail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 22 06:31:48 2006 Date: Tue, 22 Aug 2006 06:28:01 -0400 From: "tgaudioso" Subject: Re: [sqr-users] Running SQR thru Process scheduler as well as commandprompt Try putting "sysadm." in front of your table name i.e sysadm.ps_job Tony ----- Original Message ----- From: "Vaidyanathan, Ramakrishnan (GE, Corporate, consultant)" To: Sent: Monday, August 21, 2006 5:51 PM Subject: [sqr-users] Running SQR thru Process scheduler as well as commandprompt Hi All I got to run a sqr thru process scheduler as well as thru command prompt so that sqr executes accordingly. I tried checking for $prc_process_instance and checking it for null to see whether it has been scheduled via process scheduler.If its the case, then Iam selecting some flds from run control table else iam giving set of input statements. When I run the sqr thru coomand prompt, it errors out saying table does not exist. Is there any other way apart from $prc_process_instance to check whether sqr is executed thru process scheduler or cmd prompt. Thanks Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.11.3/423 - Release Date: 8/18/2006 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 22 15:27:17 2006 From: JOHN_HARRIS@qvc.com Date: Tue, 22 Aug 2006 15:24:25 -0400 Subject: [sqr-users] WITH UR (uncommitted read) This is a multi-part message in MIME format... --0__=0ABBFB41DFF981C28f9e8a93df938690918c0ABBFB41DFF981C2 Content-type: text/plain; charset=US-ASCII Has anyone ever needed to have the WITH UR statement in their SQR. It seems that SQR is locking tables during execution. I am using SQR for ODBC and going against DB2. Thank you. Regards, John (Embedded image moved to John Harris file: pic13985.jpg) Programmer/Analyst Application Development - Internal QVC Inc., 1200 Wilson Drive, MC 220, West Chester, PA 19380-4262 Telephone 484-701-3303 Fax 484-701-8437 e-mail jharris@qvc.com This message may contain information that is privileged or confidential. This message may contain information that is privileged or confidential. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. --0__=0ABBFB41DFF981C28f9e8a93df938690918c0ABBFB41DFF981C2 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'image/jpeg' MIME type. It has been automatically discarded before sending the message to the list. --0__=0ABBFB41DFF981C28f9e8a93df938690918c0ABBFB41DFF981C2 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --0__=0ABBFB41DFF981C28f9e8a93df938690918c0ABBFB41DFF981C2-- From sqr-users-bounces@sqrug.org Tue Aug 22 16:19:23 2006 Date: Tue, 22 Aug 2006 13:16:49 -0700 (PDT) From: kota vijayalakshmi Subject: Re: [sqr-users] WITH UR (uncommitted read) We were using "WITH UR" when running the regular SQL queries against DB2 on the back end, not in the SQRs. If I am correct tables in DB2 will get locked by users if their session is open and they are not using WITH UR. The DBA can check the user ID, by whom the table is locked and then you have to notify that user to log-out the session. Hope that helps. Regards, VJ JOHN_HARRIS@qvc.com wrote: Has anyone ever needed to have the WITH UR statement in their SQR. It seems that SQR is locking tables during execution. I am using SQR for ODBC and going against DB2. Thank you. Regards, John (Embedded image moved to John Harris file: pic13985.jpg) Programmer/Analyst Application Development - Internal QVC Inc., 1200 Wilson Drive, MC 220, West Chester, PA 19380-4262 Telephone 484-701-3303 Fax 484-701-8437 e-mail jharris@qvc.com This message may contain information that is privileged or confidential. This message may contain information that is privileged or confidential. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format.Here was a non admissible message part of 'image/jpeg' MIME type. It has been automatically discarded before sending the message to the list. _______________________________________________ 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 From sqr-users-bounces@sqrug.org Tue Aug 22 17:00:41 2006 Subject: RE: [sqr-users] WITH UR (uncommitted read) Date: Tue, 22 Aug 2006 14:57:49 -0600 From: "Munger, Lance" We use it in absolutely every SQR we build, fixed a lot of issues for us, and yes we are in a DB2 environment using ODBC. I don't know if this would come in handy for you, but another nifty thing we discovered was putting the below statement right before the begin select, helps speed things up a bit. BEGIN-SQL set current query optimization 9; END-SQL=20 Lance D. Munger =20 Report Development Carlson Wagonlit Travel * formerly TQ3Navigant Direct Line: +1 (303) 925-3120 Email: lmunger@carlsonwagonlit.com =20 -----Original Message----- From: sqr-users-bounces+lance.munger=3Dtq3navigant.com@sqrug.org [mailto:sqr-users-bounces+lance.munger=3Dtq3navigant.com@sqrug.org] On Behalf Of JOHN_HARRIS@qvc.com Sent: Tuesday, August 22, 2006 1:24 PM To: sqr-users@sqrug.org Subject: [sqr-users] WITH UR (uncommitted read) Has anyone ever needed to have the WITH UR statement in their SQR. It seems that SQR is locking tables during execution. I am using SQR for ODBC and going against DB2. =20 =20 Thank you. =20 Regards, =20 John =20 =20 =20 (Embedded image moved to John Harris file: pic13985.jpg) Programmer/Analyst Application Development - Internal =20 QVC Inc., 1200 Wilson Drive, MC 220, West Chester, PA 19380-4262 Telephone 484-701-3303 Fax 484-701-8437 e-mail jharris@qvc.com This message may contain information that is privileged or confidential. This message may contain information that is privileged or confidential. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 23 22:47:24 2006 Date: Wed, 23 Aug 2006 19:44:49 -0700 (PDT) From: Aleksandr Slobodyanik Subject: Re: [sqr-users] (no subject) I dobt you can do it if DB is on the other server, because you have to specify server name in SQR.INI. I don't remember correctly syntax, but in .INI should be line for SYBASE something like DSQUERY=server_name "B, Ravishankar (Cognizant)" wrote: Do anybody know about the CONNECT Command Syntax in SQR for Sybase which switches the database along with users. For Oracle ; it is like "connect user/passwd@DBServer". Can somebody suggest the same for SYBASE? Thanks/Regards, Ravi This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Stay in the know. Pulse on the new Yahoo.com. Check it out. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 23 22:58:33 2006 Date: Wed, 23 Aug 2006 19:56:01 -0700 (PDT) From: Aleksandr Slobodyanik Subject: Re: [sqr-users] Invalid Count- Error Message in SQR (Error No: SQR 6) 1. Try to trim columns in SELECT statement. 2. Increase sizes in .ini file. Sorry, I don't remember how I fixed the same problem. "B, Ravishankar (Cognizant)" wrote: Hi all, I didn't find answer for my previous problem still. Now I got a new one. I am getting the following error message while trying to run an SQR report from my login id(UNIX Environment). (SQR 6) Corrupt message file: Invalid count (Got 1118, Should be 1055) The $SQRDIR variable points to .../SQR/syb/bin directory. But anyway, with the admin's id, report is working fine without any error. All the other users except admin are reporting the same issue as mine. Heard that we need to reload the .../SQR/syb/bin/sqrerr.dat file. Where can we get the new version from? Do any body know some other method to solve this? Thank You, Regards, Ravishankar B "The most successful man in life is the man who has the best information" ________________________________ From: B, Ravishankar (Cognizant) Sent: Friday, August 18, 2006 11:54 PM To: sqr-users@sqrug.org Subject: Do anybody know about the CONNECT Command Syntax in SQR for Sybase which switches the database along with users. For Oracle ; it is like "connect user/passwd@DBServer". Can somebody suggest the same for SYBASE? Thanks/Regards, Ravi This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 24 10:58:03 2006 Date: Thu, 24 Aug 2006 07:55:11 -0700 (PDT) From: prashanth reddy Subject: [sqr-users] Print issue Hello, I'm trying to print multiple values from different tables for each userid. Program gets the data accordingly, but when trying to print, its not in proper format. Current format: OprID Name HR Rolename Dept Grade Empcd Emplid ----- ---- ----------- ---- ----- ----- ------ FS007 John D H Payroll H Data Entry H Reports 107D G728292 Expected format: OprID Name HR Rolename Dept Grade Empcd Emplid ----- ----- -- --------- ---- ----- ------ ------ FS007 John D H Payroll 107D F892389 H Data Entry F839303 H Reports G728292 Data in two tables: table1: roleuser rolename ------- -------- FS007 Payroll FS007 Data Entry FS007 Reports table2: oprid emplid deptid ----- ------ ------ FS007 F892389 FS007 F839303 FS007 G728292 FS007 107D program:!*********************************************************************** begin-procEdure get-oprid-data !*********************************************************************** Let $rowsecclass = ' ' Let $classdefndesc = ' ' begin-select distinct OPR.OPRID &opr.oprid OPR.OPRDEFNDESC &opr.oprdefndesc OPR.ROWSECCLASS CLS.CLASSDEFNDESC move &opr.oprid to $oprid move &opr.rowsecclass to $rowsecclass move &cls.classdefndesc to $classdefndesc let $Company = &COMPANY do get-role-count do check-custom-security if #count > 1 do evaluate-HR-User do get-role-data do evaluate-custom-security end-if FROM PSOPRDEFN OPR, PSCLASSDEFN CLS, PSROLEUSER RU, PS_JOB JOB !FSCPR001 Begin change WHERE OPR.ROWSECCLASS = CLS.CLASSID AND OPR.OPRID = RU.ROLEUSER AND OPR.OPRID = JOB.EMPLID AND JOB.EFFDT = (SELECT MAX(EFFDT) FROM PS_JOB WHERE EMPLID = JOB.EMPLID AND EMPL_RCD = JOB.EMPL_RCD AND EFFDT <= SYSDATE) AND JOB.EFFSEQ = (SELECT MAX(EFFSEQ) FROM PS_JOB WHERE EMPLID = JOB.EMPLID AND EMPL_RCD = JOB.EMPL_RCD AND EFFDT = JOB.EFFDT) [$COMPANY-SQL1] [$ROLENAME-SQL1] !FSCPR001 End change ORDER BY OPR.ROWSECCLASS, OPR.OPRID end-select end-procedure !*********************************************************************** begin-procedure get-role-data !*********************************************************************** let $rolename = '' let #Idx = 0 begin-select RU.ROLEUSER RU.ROLENAME let $roleuser = &ru.roleuser let $rolename = &ru.rolename do write-data FROM PSROLEUSER RU WHERE RU.ROLEUSER = $oprid AND RU.ROLENAME NOT IN ('HR User','Business Owner') AND RU.ROLENAME NOT LIKE '%Employee%' ORDER BY RU.ROLEUSER end-select end-procedure !*********************************************************************** begin-procedure get-role-count !*********************************************************************** begin-select COUNT(COUNT.ROLENAME) &count move &count to #count FROM PSROLEUSER COUNT WHERE COUNT.ROLEUSER = $oprid AND COUNT.ROLENAME NOT IN ('HR User','Business Owner') end-select end-procedure !*********************************************************************** begin-procedure evaluate-HR-User !*********************************************************************** let $HRUser = ' ' let $BusOwner = ' ' begin-select HR.ROLENAME Evaluate &hr.ROLENAME When = 'HR User' move 'H' to $HRUser move 'H' to $HR_output When = 'Business Owner' move 'B' to $BusOwner move 'B' to $BO_Output End-evaluate FROM PSROLEUSER HR WHERE HR.ROLEUSER = $oprid AND HR.ROLENAME IN ('HR User','Business Owner') end-select end-procedure !*********************************************************************** begin-procedure evaluate-custom-security !*********************************************************************** Let $deptid = ' ' Let $grade = ' ' Let $empcd = ' ' Let $emplid = ' ' Let $empType = ' ' Let $location = ' ' begin-select SEC.OPRID SEC.DEPTID &sec.Deptid SEC.GRADE &sec.Grade SEC.FSC_EMPLOYER_CODE &sec.Empcd SEC.EMPLID &sec.Emplid SEC.EMPL_TYPE &sec.EmpType SEC.LOCATION &sec.Location Let $deptid = &sec.Deptid Let $grade = &sec.Grade Let $empcd = &sec.Empcd Let $emplid = &sec.Emplid Let $emptype = &sec.EmpType Let $location = &sec.Location do write-data1 FROM PS_CUSTOM_SEC_TBL SEC WHERE SEC.OPRID = $oprid ORDER BY SEC.DEPTID, SEC.GRADE, SEC.FSC_EMPLOYER_CODE, SEC.EMPLID, SEC.EMPL_TYPE, SEC.LOCATION end-select end-procedure begin-procedure write-data1 print $deptid (0,121,10) !&sec.Deptid print $grade (0,132,5) !&sec.Grade print $empcd (0,138,5) !&sec.Empcd print $emplid (0,144,11) !&sec.Emplid print $emptype (0,156,8) !&sec.EmpType print $location (0,165,10) end-procedure !*********************************************************************** begin-procedure write-data !*********************************************************************** print $oprid (+1,1,11) on-break print=change skiplines=1 print &opr.oprdefndesc (0,12,30) on-break print=change print $HR_output (0,43,2) print $$BO_output (0,46,2) print $rowsecclass (0,49,8) on-break print=change print $classdefndesc (0,58,31) on-break print=change print $rolename (0,90,30) print $deptid (0,121,10) !&sec.Deptid print $grade (0,132,5) !&sec.Grade print $empcd (0,138,5) !&sec.Empcd print $emplid (0,144,11) !&sec.Emplid print $emptype (0,156,8) !&sec.EmpType print $location (0,165,10) end-procedure __________________________________________________ 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 From sqr-users-bounces@sqrug.org Thu Aug 24 15:20:58 2006 Subject: RE: [sqr-users] Print issue Date: Thu, 24 Aug 2006 13:18:04 -0600 From: "Munger, Lance" I think the issue is that you make the call to write_data and then you process more data and call write_data1. Try this version. program: !*********************************************************************** begin-procEdure get-oprid-data !*********************************************************************** move '' to $rowsecclass move '' to $classdefndesc begin-select distinct OPR.OPRID &opr.oprid OPR.OPRDEFNDESC &opr.oprdefndesc OPR.ROWSECCLASS CLS.CLASSDEFNDESC move &opr.oprid to $oprid move &opr.rowsecclass to $rowsecclass move &cls.classdefndesc to $classdefndesc let $Company =3D &COMPANY do get-role-count do check-custom-security if #count > 1 do evaluate-HR-User do get-role-data ! do evaluate-custom-security end-if FROM PSOPRDEFN OPR, PSCLASSDEFN CLS, PSROLEUSER RU, PS_JOB JOB !FSCPR001 Begin change WHERE OPR.ROWSECCLASS =3D CLS.CLASSID AND OPR.OPRID =3D RU.ROLEUSER AND OPR.OPRID =3D JOB.EMPLID AND JOB.EFFDT =3D (SELECT MAX(EFFDT) FROM PS_JOB WHERE EMPLID =3D JOB.EMPLID AND EMPL_RCD =3D JOB.EMPL_RCD AND EFFDT <=3D SYSDATE) AND JOB.EFFSEQ =3D (SELECT MAX(EFFSEQ) FROM PS_JOB WHERE EMPLID =3D JOB.EMPLID AND EMPL_RCD =3D JOB.EMPL_RCD AND EFFDT =3D JOB.EFFDT) [$COMPANY-SQL1] [$ROLENAME-SQL1] !FSCPR001 End change ORDER BY OPR.ROWSECCLASS, OPR.OPRID end-select end-procedure !*********************************************************************** begin-procedure get-role-data !*********************************************************************** move '' to $rolename move 0 to #Idx begin-select RU.ROLEUSER RU.ROLENAME let $roleuser =3D &ru.roleuser let $rolename =3D &ru.rolename do evaluate-custom-security FROM PSROLEUSER RU WHERE RU.ROLEUSER =3D $oprid AND RU.ROLENAME NOT IN ('HR User','Business Owner') AND RU.ROLENAME NOT LIKE '%Employee%' ORDER BY RU.ROLEUSER end-select end-procedure !*********************************************************************** begin-procedure get-role-count !*********************************************************************** begin-select COUNT(COUNT.ROLENAME) &count move &count to #count FROM PSROLEUSER COUNT WHERE COUNT.ROLEUSER =3D $oprid AND COUNT.ROLENAME NOT IN ('HR User','Business Owner') end-select end-procedure !*********************************************************************** begin-procedure evaluate-HR-User !*********************************************************************** move '' to $HRUser move '' to $BusOwner =3D ' ' begin-select HR.ROLENAME Evaluate &hr.ROLENAME When =3D 'HR User' move 'H' to $HRUser move 'H' to $HR_output When =3D 'Business Owner' move 'B' to $BusOwner move 'B' to $BO_Output End-evaluate FROM PSROLEUSER HR WHERE HR.ROLEUSER =3D $oprid AND HR.ROLENAME IN ('HR User','Business Owner')=20 end-select=20 end-procedure !*********************************************************************** begin-procedure evaluate-custom-security !*********************************************************************** move '' to $deptid move '' to $grade move '' to $empcd move '' to $emplid move '' to $empType move '' to $location begin-select SEC.OPRID SEC.DEPTID &sec.Deptid SEC.GRADE &sec.Grade SEC.FSC_EMPLOYER_CODE &sec.Empcd SEC.EMPLID &sec.Emplid SEC.EMPL_TYPE &sec.EmpType SEC.LOCATION &sec.Location Let $deptid =3D &sec.Deptid Let $grade =3D &sec.Grade Let $empcd =3D &sec.Empcd Let $emplid =3D &sec.Emplid Let $emptype =3D &sec.EmpType Let $location =3D &sec.Location do write-data1 FROM PS_CUSTOM_SEC_TBL SEC WHERE SEC.OPRID =3D $oprid ORDER BY SEC.DEPTID, SEC.GRADE, SEC.FSC_EMPLOYER_CODE, SEC.EMPLID, SEC.EMPL_TYPE, SEC.LOCATION=20 end-select=20 end-procedure begin-procedure write-data1 print $oprid (+1,1,11) on-break print=3Dchange skiplines=3D1 print &opr.oprdefndesc (0,12,30) on-break print=3Dchange print $HR_output (0,43,2) print $$BO_output (0,46,2) print $rowsecclass (0,49,8) on-break print=3Dchange print $classdefndesc (0,58,31) on-break print=3Dchange print $rolename (0,90,30) print $deptid (0,121,10) !&sec.Deptid print $grade (0,132,5) !&sec.Grade print $empcd (0,138,5) !&sec.Empcd print $emplid (0,144,11) !&sec.Emplid print $emptype (0,156,8) !&sec.EmpType print $location (0,165,10) print $deptid (0,121,10) !&sec.Deptid print $grade (0,132,5) !&sec.Grade print $empcd (0,138,5) !&sec.Empcd print $emplid (0,144,11) !&sec.Emplid print $emptype (0,156,8) !&sec.EmpType print $location (0,165,10) end-procedure Lance D. Munger =20 Report Development Carlson Wagonlit Travel * formerly TQ3Navigant Direct Line: +1 (303) 925-3120 Email: lmunger@carlsonwagonlit.com =20 -----Original Message----- From: sqr-users-bounces+lance.munger=3Dtq3navigant.com@sqrug.org [mailto:sqr-users-bounces+lance.munger=3Dtq3navigant.com@sqrug.org] On Behalf Of prashanth reddy Sent: Thursday, August 24, 2006 8:55 AM To: sqr-users@sqrug.org Subject: [sqr-users] Print issue Hello, I'm trying to print multiple values from different tables for each userid. Program gets the data accordingly, but when trying to print, its not in proper format. Current format: OprID Name HR Rolename Dept Grade Empcd Emplid ----- ---- ----------- ---- ----- ----- ------=20=20 FS007 John D H Payroll H Data Entry H Reports 107D G728292 Expected format: OprID Name HR Rolename Dept Grade Empcd Emplid=20 ----- ----- -- --------- ---- ----- ------ ------ FS007 John D H Payroll 107D F892389 H Data Entry F839303 H Reports G728292 Data in two tables: table1: roleuser rolename ------- --------=20 FS007 Payroll FS007 Data Entry FS007 Reports table2: oprid emplid deptid ----- ------ ------ FS007 F892389 FS007 F839303 FS007 G728292=20 FS007 107D program:!*************************************************************** ******** begin-procEdure get-oprid-data !*********************************************************************** Let $rowsecclass =3D ' ' Let $classdefndesc =3D ' ' begin-select distinct=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 OPR.OPRID &opr.oprid=20=20=20=20=20=20=20=20=20=20=20=20=20 OPR.OPRDEFNDESC &opr.oprdefndesc=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20 OPR.ROWSECCLASS CLS.CLASSDEFNDESC=20 move &opr.oprid to $oprid move &opr.rowsecclass to $rowsecclass move &cls.classdefndesc to $classdefndesc let $Company =3D &COMPANY =20=20=20=20 do get-role-count do check-custom-security =20=20=20=20 if #count > 1 do evaluate-HR-User do get-role-data=20 do evaluate-custom-security=20 end-if =20=20=20 FROM PSOPRDEFN OPR, PSCLASSDEFN CLS, PSROLEUSER RU, PS_JOB JOB !FSCPR001 Begin change WHERE OPR.ROWSECCLASS =3D CLS.CLASSID AND OPR.OPRID =3D RU.ROLEUSER AND OPR.OPRID =3D JOB.EMPLID AND JOB.EFFDT =3D (SELECT MAX(EFFDT) FROM PS_JOB WHERE EMPLID =3D JOB.EMPLID AND EMPL_RCD =3D JOB.EMPL_RCD AND EFFDT <=3D SYSDATE) AND JOB.EFFSEQ =3D (SELECT MAX(EFFSEQ) FROM PS_JOB WHERE EMPLID =3D JOB.EMPLID AND EMPL_RCD =3D JOB.EMPL_RCD AND EFFDT =3D JOB.EFFDT) [$COMPANY-SQL1] [$ROLENAME-SQL1]=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 !FSCPR001 End change ORDER BY OPR.ROWSECCLASS, OPR.OPRID end-select end-procedure !*********************************************************************** begin-procedure get-role-data !*********************************************************************** let $rolename =3D '' let #Idx =3D 0 begin-select=20 RU.ROLEUSER=20=20=20=20=20=20=20=20=20 RU.ROLENAME let $roleuser =3D &ru.roleuser let $rolename =3D &ru.rolename =20 do write-data FROM PSROLEUSER RU WHERE RU.ROLEUSER =3D $oprid AND RU.ROLENAME NOT IN ('HR User','Business Owner') AND RU.ROLENAME NOT LIKE '%Employee%' ORDER BY RU.ROLEUSER end-select end-procedure !*********************************************************************** begin-procedure get-role-count !*********************************************************************** begin-select COUNT(COUNT.ROLENAME) &count move &count to #count FROM PSROLEUSER COUNT WHERE COUNT.ROLEUSER =3D $oprid AND COUNT.ROLENAME NOT IN ('HR User','Business Owner') end-select end-procedure !*********************************************************************** begin-procedure evaluate-HR-User !*********************************************************************** let $HRUser =3D ' ' let $BusOwner =3D ' ' begin-select=20 HR.ROLENAME Evaluate &hr.ROLENAME=20 When =3D 'HR User' move 'H' to $HRUser move 'H' to $HR_output When =3D 'Business Owner' move 'B' to $BusOwner move 'B' to $BO_Output End-evaluate FROM PSROLEUSER HR WHERE HR.ROLEUSER =3D $oprid AND HR.ROLENAME IN ('HR User','Business Owner')=20 end-select end-procedure !*********************************************************************** begin-procedure evaluate-custom-security=20=20=20=20=20=20=20=20=20=20=20= =20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 !*********************************************************************** =20 Let $deptid =3D ' ' Let $grade =3D ' ' Let $empcd =3D ' ' Let $emplid =3D ' ' Let $empType =3D ' ' Let $location =3D ' '=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 =20=20=20 begin-select=20=20=20 SEC.OPRID=20=20 SEC.DEPTID &sec.Deptid=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 SEC.GRADE &sec.Grade SEC.FSC_EMPLOYER_CODE &sec.Empcd SEC.EMPLID &sec.Emplid=20 SEC.EMPL_TYPE &sec.EmpType=20 SEC.LOCATION &sec.Location =20=20=20=20=20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 Let $deptid =3D &sec.Deptid=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 Let $grade =3D &sec.Grade Let $empcd =3D &sec.Empcd Let $emplid =3D &sec.Emplid Let $emptype =3D &sec.EmpType Let $location =3D &sec.Location =20=20 do write-data1 =20=20=20=20 FROM PS_CUSTOM_SEC_TBL SEC=20 WHERE SEC.OPRID =3D $oprid ORDER BY SEC.DEPTID, SEC.GRADE, SEC.FSC_EMPLOYER_CODE, SEC.EMPLID, SEC.EMPL_TYPE, SEC.LOCATION end-select end-procedure=20 begin-procedure write-data1 print $deptid (0,121,10) !&sec.Deptid print $grade (0,132,5) !&sec.Grade=20 print $empcd (0,138,5) !&sec.Empcd print $emplid (0,144,11) !&sec.Emplid print $emptype (0,156,8)=20=20=20=20 !&sec.EmpType print $location (0,165,10)=20 end-procedure=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20 !*********************************************************************** begin-procedure write-data !*********************************************************************** =20=20=20 print $oprid (+1,1,11) on-break print=3Dchange skiplines=3D1=20=20=20=20=20=20=20=20=20=20=20=20 print &opr.oprdefndesc (0,12,30) on-break print=3Dchange=20=20=20=20=20=20=20=20=20=20=20=20=20=20 print $HR_output (0,43,2) print $$BO_output (0,46,2) print $rowsecclass (0,49,8) on-break print=3Dchange print $classdefndesc (0,58,31) on-break print=3Dchange print $rolename (0,90,30) print $deptid (0,121,10) !&sec.Deptid print $grade (0,132,5) !&sec.Grade=20 print $empcd (0,138,5) !&sec.Empcd print $emplid (0,144,11) !&sec.Emplid print $emptype (0,156,8)=20=20=20=20 !&sec.EmpType print $location (0,165,10)=20=20=20=20=20 end-procedure __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around=20 http://mail.yahoo.com=20 _______________________________________________ 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 From sqr-users-bounces@sqrug.org Thu Aug 24 19:43:19 2006 From: "Dwight Schrute" Subject: RE: [sqr-users] Print issue Date: Thu, 24 Aug 2006 18:40:28 -0500 This proposed solution will not work. The problem is with the data relationship of many-to-many. You have four items in one table and three items in another and neither relates to the other except by roleuser/oprid. This will give you twelve rows in a result set. You must divide it into separate pieces in order to conquer this obstacle. You must try something like this... !----------------------------------- get-roleuser begin-procedure get-roleuser begin-select distinct ROLEUSER &roleuser (+2,1) let $roleuser = '''' || &roleuser || '''' let #starting-point = #current-line do get-rolename do get-emplid do get-deptid position (#max-lines) FROM TABLE1 end-select end-procedure !----------------------------------- get-rolename begin-procedure get-rolename begin-select ROLENAME (0,90,30) position (+1) FROM TABLE1 WHERE ROLEUSER = [$roleuser] end-select let #max-lines = #current-line end-procedure !------------------------------------- get-emplid begin-procedure get-emplid position (#starting-point) begin-select EMPLID (0,144,11) position (+1) FROM TABLE2 WHERE OPRID = [$roleuser] end-select if #current-line > #max-lines let #max-lines = #current-line end-if end-procedure !------------------------------------- get-deptid begin-procedure get-deptid position (#starting-point) begin-select DEPTID (0,121,10) position (+1) FROM TABLE2 WHERE OPRID = [$roleuser] end-select if #current-line > #max-lines let #max-lines = #current-line end-if end-procedure This way you can print down and then move back to the starting line. You could also use columns. If this does not do the trick, you can try some nifty arrays. Dwight >From: "Munger, Lance" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "This list is for discussion about the SQR database reportinglanguage >fromHyperion Solutions." >Subject: RE: [sqr-users] Print issue >Date: Thu, 24 Aug 2006 13:18:04 -0600 > >I think the issue is that you make the call to write_data and then you >process more data and call write_data1. Try this version. > >program: >!*********************************************************************** >begin-procEdure get-oprid-data >!*********************************************************************** > move '' to $rowsecclass > move '' to $classdefndesc > >begin-select distinct >OPR.OPRID &opr.oprid >OPR.OPRDEFNDESC &opr.oprdefndesc >OPR.ROWSECCLASS >CLS.CLASSDEFNDESC > > move &opr.oprid to $oprid > move &opr.rowsecclass to $rowsecclass > move &cls.classdefndesc to $classdefndesc > let $Company = &COMPANY > > do get-role-count > do check-custom-security > > if #count > 1 > do evaluate-HR-User > do get-role-data >! do evaluate-custom-security > end-if > >FROM PSOPRDEFN OPR, PSCLASSDEFN CLS, PSROLEUSER RU, >PS_JOB JOB !FSCPR001 Begin change >WHERE OPR.ROWSECCLASS = CLS.CLASSID >AND OPR.OPRID = RU.ROLEUSER >AND OPR.OPRID = JOB.EMPLID >AND JOB.EFFDT = (SELECT MAX(EFFDT) > FROM PS_JOB > WHERE EMPLID = JOB.EMPLID > AND EMPL_RCD = JOB.EMPL_RCD > AND EFFDT <= SYSDATE) >AND JOB.EFFSEQ = (SELECT MAX(EFFSEQ) > FROM PS_JOB > WHERE EMPLID = JOB.EMPLID > AND EMPL_RCD = JOB.EMPL_RCD > AND EFFDT = JOB.EFFDT) >[$COMPANY-SQL1] >[$ROLENAME-SQL1] > !FSCPR001 End change ORDER BY >OPR.ROWSECCLASS, OPR.OPRID end-select end-procedure > >!*********************************************************************** >begin-procedure get-role-data >!*********************************************************************** > > move '' to $rolename > move 0 to #Idx > >begin-select >RU.ROLEUSER >RU.ROLENAME > > let $roleuser = &ru.roleuser > let $rolename = &ru.rolename > > do evaluate-custom-security > >FROM PSROLEUSER RU >WHERE RU.ROLEUSER = $oprid >AND RU.ROLENAME NOT IN ('HR User','Business Owner') AND RU.ROLENAME NOT >LIKE '%Employee%' >ORDER BY RU.ROLEUSER >end-select >end-procedure > >!*********************************************************************** >begin-procedure get-role-count >!*********************************************************************** >begin-select >COUNT(COUNT.ROLENAME) &count > > move &count to #count > >FROM PSROLEUSER COUNT >WHERE COUNT.ROLEUSER = $oprid >AND COUNT.ROLENAME NOT IN ('HR User','Business Owner') end-select >end-procedure > >!*********************************************************************** >begin-procedure evaluate-HR-User >!*********************************************************************** > move '' to $HRUser > move '' to $BusOwner = ' ' > >begin-select >HR.ROLENAME > > Evaluate &hr.ROLENAME > When = 'HR User' > move 'H' to $HRUser > move 'H' to $HR_output > When = 'Business Owner' > move 'B' to $BusOwner > move 'B' to $BO_Output > End-evaluate > >FROM PSROLEUSER HR >WHERE HR.ROLEUSER = $oprid >AND HR.ROLENAME IN ('HR User','Business Owner') >end-select >end-procedure > >!*********************************************************************** >begin-procedure evaluate-custom-security >!*********************************************************************** > > move '' to $deptid > move '' to $grade > move '' to $empcd > move '' to $emplid > move '' to $empType > move '' to $location > >begin-select >SEC.OPRID >SEC.DEPTID &sec.Deptid >SEC.GRADE &sec.Grade >SEC.FSC_EMPLOYER_CODE &sec.Empcd >SEC.EMPLID &sec.Emplid >SEC.EMPL_TYPE &sec.EmpType >SEC.LOCATION &sec.Location > > Let $deptid = &sec.Deptid > Let $grade = &sec.Grade > Let $empcd = &sec.Empcd > Let $emplid = &sec.Emplid > Let $emptype = &sec.EmpType > Let $location = &sec.Location > > do write-data1 > >FROM PS_CUSTOM_SEC_TBL SEC >WHERE SEC.OPRID = $oprid >ORDER BY SEC.DEPTID, SEC.GRADE, SEC.FSC_EMPLOYER_CODE, SEC.EMPLID, >SEC.EMPL_TYPE, SEC.LOCATION >end-select >end-procedure > >begin-procedure write-data1 > > print $oprid (+1,1,11) on-break > print=change skiplines=1 > print &opr.oprdefndesc (0,12,30) on-break > print=change > print $HR_output (0,43,2) > print $$BO_output (0,46,2) > print $rowsecclass (0,49,8) on-break > print=change > print $classdefndesc (0,58,31) on-break > print=change > print $rolename (0,90,30) > print $deptid (0,121,10) !&sec.Deptid > print $grade (0,132,5) !&sec.Grade > print $empcd (0,138,5) !&sec.Empcd > print $emplid (0,144,11) !&sec.Emplid > print $emptype (0,156,8) !&sec.EmpType > print $location (0,165,10) > > print $deptid (0,121,10) !&sec.Deptid > print $grade (0,132,5) !&sec.Grade > print $empcd (0,138,5) !&sec.Empcd > print $emplid (0,144,11) !&sec.Emplid > print $emptype (0,156,8) !&sec.EmpType > print $location (0,165,10) > >end-procedure > > >Lance D. Munger > > > > >Report Development >Carlson Wagonlit Travel * formerly TQ3Navigant >Direct Line: +1 (303) 925-3120 >Email: lmunger@carlsonwagonlit.com > >-----Original Message----- >From: sqr-users-bounces+lance.munger=tq3navigant.com@sqrug.org >[mailto:sqr-users-bounces+lance.munger=tq3navigant.com@sqrug.org] On >Behalf Of prashanth reddy >Sent: Thursday, August 24, 2006 8:55 AM >To: sqr-users@sqrug.org >Subject: [sqr-users] Print issue > >Hello, > > I'm trying to print multiple values from different >tables for each userid. Program gets the data >accordingly, > but when trying to print, its not in proper format. >Current format: >OprID Name HR Rolename Dept Grade Empcd Emplid >----- ---- ----------- ---- ----- ----- ------ >FS007 John D H Payroll > H Data Entry > H Reports > 107D G728292 > >Expected format: >OprID Name HR Rolename Dept Grade Empcd Emplid > >----- ----- -- --------- ---- ----- ------ ------ > >FS007 John D H Payroll 107D F892389 > H Data Entry F839303 > H Reports G728292 > >Data in two tables: > >table1: >roleuser rolename >------- -------- >FS007 Payroll >FS007 Data Entry >FS007 Reports >table2: >oprid emplid deptid >----- ------ ------ >FS007 F892389 >FS007 F839303 >FS007 G728292 >FS007 107D > >program:!*************************************************************** >******** >begin-procEdure get-oprid-data >!*********************************************************************** >Let $rowsecclass = ' ' >Let $classdefndesc = ' ' > >begin-select distinct >OPR.OPRID &opr.oprid >OPR.OPRDEFNDESC &opr.oprdefndesc >OPR.ROWSECCLASS >CLS.CLASSDEFNDESC > move &opr.oprid to $oprid > move &opr.rowsecclass to $rowsecclass > move &cls.classdefndesc to $classdefndesc > let $Company = &COMPANY > > do get-role-count > do check-custom-security > > if #count > 1 > do evaluate-HR-User > do get-role-data > do evaluate-custom-security > end-if > >FROM PSOPRDEFN OPR, PSCLASSDEFN CLS, PSROLEUSER RU, >PS_JOB JOB !FSCPR001 Begin change >WHERE OPR.ROWSECCLASS = CLS.CLASSID >AND OPR.OPRID = RU.ROLEUSER >AND OPR.OPRID = JOB.EMPLID >AND JOB.EFFDT = (SELECT MAX(EFFDT) > FROM PS_JOB > WHERE EMPLID = JOB.EMPLID > AND EMPL_RCD = JOB.EMPL_RCD > AND EFFDT <= SYSDATE) >AND JOB.EFFSEQ = (SELECT MAX(EFFSEQ) > FROM PS_JOB > WHERE EMPLID = JOB.EMPLID > AND EMPL_RCD = JOB.EMPL_RCD > AND EFFDT = JOB.EFFDT) >[$COMPANY-SQL1] >[$ROLENAME-SQL1] > !FSCPR001 End change >ORDER BY OPR.ROWSECCLASS, OPR.OPRID >end-select >end-procedure > >!*********************************************************************** >begin-procedure get-role-data >!*********************************************************************** >let $rolename = '' >let #Idx = 0 >begin-select >RU.ROLEUSER >RU.ROLENAME > let $roleuser = &ru.roleuser > let $rolename = &ru.rolename > > do write-data >FROM PSROLEUSER RU >WHERE RU.ROLEUSER = $oprid >AND RU.ROLENAME NOT IN ('HR User','Business Owner') >AND RU.ROLENAME NOT LIKE '%Employee%' >ORDER BY RU.ROLEUSER >end-select >end-procedure > >!*********************************************************************** >begin-procedure get-role-count >!*********************************************************************** >begin-select >COUNT(COUNT.ROLENAME) &count > > move &count to #count > >FROM PSROLEUSER COUNT >WHERE COUNT.ROLEUSER = $oprid >AND COUNT.ROLENAME NOT IN ('HR User','Business Owner') >end-select >end-procedure > >!*********************************************************************** >begin-procedure evaluate-HR-User >!*********************************************************************** >let $HRUser = ' ' >let $BusOwner = ' ' > >begin-select >HR.ROLENAME > > Evaluate &hr.ROLENAME > When = 'HR User' > move 'H' to $HRUser > move 'H' to $HR_output > When = 'Business Owner' > move 'B' to $BusOwner > move 'B' to $BO_Output > End-evaluate > >FROM PSROLEUSER HR >WHERE HR.ROLEUSER = $oprid >AND HR.ROLENAME IN ('HR User','Business Owner') >end-select >end-procedure > >!*********************************************************************** >begin-procedure evaluate-custom-security > >!*********************************************************************** > >Let $deptid = ' ' >Let $grade = ' ' >Let $empcd = ' ' >Let $emplid = ' ' >Let $empType = ' ' >Let $location = ' ' > >begin-select >SEC.OPRID >SEC.DEPTID &sec.Deptid > >SEC.GRADE &sec.Grade >SEC.FSC_EMPLOYER_CODE &sec.Empcd >SEC.EMPLID &sec.Emplid >SEC.EMPL_TYPE &sec.EmpType >SEC.LOCATION &sec.Location > > > Let $deptid = &sec.Deptid > Let $grade = &sec.Grade > Let $empcd = &sec.Empcd > Let $emplid = &sec.Emplid > Let $emptype = &sec.EmpType > Let $location = &sec.Location > > do write-data1 > >FROM PS_CUSTOM_SEC_TBL SEC >WHERE SEC.OPRID = $oprid >ORDER BY SEC.DEPTID, SEC.GRADE, SEC.FSC_EMPLOYER_CODE, >SEC.EMPLID, SEC.EMPL_TYPE, SEC.LOCATION >end-select >end-procedure > >begin-procedure write-data1 > print $deptid (0,121,10) !&sec.Deptid > print $grade (0,132,5) !&sec.Grade > print $empcd (0,138,5) !&sec.Empcd > print $emplid (0,144,11) !&sec.Emplid > print $emptype (0,156,8) >!&sec.EmpType > print $location (0,165,10) >end-procedure > > > >!*********************************************************************** >begin-procedure write-data >!*********************************************************************** > > print $oprid (+1,1,11) on-break >print=change skiplines=1 > print &opr.oprdefndesc (0,12,30) on-break >print=change > print $HR_output (0,43,2) > print $$BO_output (0,46,2) > print $rowsecclass (0,49,8) on-break >print=change > print $classdefndesc (0,58,31) on-break >print=change > print $rolename (0,90,30) > print $deptid (0,121,10) !&sec.Deptid > print $grade (0,132,5) !&sec.Grade > print $empcd (0,138,5) !&sec.Empcd > print $emplid (0,144,11) !&sec.Emplid > print $emptype (0,156,8) >!&sec.EmpType > print $location (0,165,10) >end-procedure > >__________________________________________________ >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 > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Search from any web page with powerful protection. Get the FREE Windows Live Toolbar Today! http://get.live.com/toolbar/overview _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 25 00:00:16 2006 Date: Thu, 24 Aug 2006 20:57:38 -0700 (PDT) From: Marsha Subject: [sqr-users] PeopleSoft Custom Paycheck SQR I'm trying to modify out custom PeopleSoft paycheck sqr, a clone of pay003, where I pull in a file of employee numbers and match those records to the paycheck number in the sqr. Once I have the paycheck numbers, I'm building a variable to be used in the selection statement for paycheck_nbr. I'm trying to use this: Paycheck_Nbr IN (1234,1356,1465). It's fine if I hardcode this in the sqr, but the file I build is getting an error. I think it's because paycheck_nbr is numeric and my variable is not, but I don't know how to code it. Pieces of the code are below: while 1 = 1 read 1 into $Input_Area:6 if #end-file = 1 break !exit the "while" end-if let $File_Emplid = substr($Input_Area, 1, 6) do Get-Check-Numbers show '$Check_No = ' $Check_No if $First_Check = 'Y' let $First_Check = 'N' let $Check_Range = $Check_No else let $Format_Check_No = ','||$Check_No let $Check_Range = $Check_Range||$Format_Check_No show '$Check_Range = ' $Check_Range end-if end-while begin-SELECT PC.PAYCHECK_NBR show 'Found' show '$File_Emplid = ' $File_Emplid let #Check_No = &PC.PAYCHECK_NBR let $Check_No = To_Char(#Check_No) show '$Check_No = ' $Check_No FROM PS_PAY_CHECK PC WHERE PC.EMPLID = $File_Emplid AND PC.PAY_END_DT = '2006-07-15' AND PC.OFF_CYCLE = 'N' let $Check_Rangex = rtrim($Check_Range, ' ') WHERE [$SlctCalendar] AND B.PAYCHECK_OPTION IN ('C','&') AND A.COMPANY = A1.COMPANY AND A.PAYGROUP = A1.PAYGROUP AND A.PAY_END_DT = A1.PAY_END_DT AND A1.BALANCE_ID = $Calendar_Year_Id AND B.OFF_CYCLE IN ($SlctOffCycleA, $SlctOffCycleB) AND B.PAGE_NUM BETWEEN #SlctPageFrom AND #SlctPageThru AND B.COMPANY = A.COMPANY AND B.PAYGROUP = A.PAYGROUP AND B.PAY_END_DT = A.PAY_END_DT AND B.PAYCHECK_NBR <> 0 ! AND B.PAYCHECK_NBR IN ($Check_Rangex) ! This doesn't work AND B.PAYCHECK_NBR IN (1245,1242,1241) ! This works !AND B.PAYCHECK_NBR <= #ThruPayCheck_Nbr AND B.PAYCHECK_STATUS = 'F' AND G.COMPANY = A.COMPANY Error msg Found $File_Emplid = 003011 $Check_No = 1241 $Check_No = 1241 $Check_Range = 1245,1242,1241 $Check_Rangex = 1245,1242,1241 In Get-Paychecks (SQR 5528) ODBC SQL dbexec: SQLExecute error 8114 in cursor 52: [Microsoft][ODBC SQL Server Driver][SQL Server]Error converting data type varchar to numeric. Error on line 301: (SQR 3723) Problem executing cursor. SQR for PeopleSoft: Program Aborting. P.S. I later tried to create multiple rows of: AND (B.PAYCHECK_NBR = 1241 OR B.PAYCHECK_NBR = 1242 OR B.PAYCHECK_NBR = 1243) etc. but I get an error for that also. I included carriage returns and line feeds at the end of each row. I have "shows" in the sqr and it looks okay. --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 25 02:22:59 2006 Date: Thu, 24 Aug 2006 23:20:54 -0700 From: kevin.reschenberg@sparkpath.com Subject: RE: [sqr-users] PeopleSoft Custom Paycheck SQR When you code this: AND B.PAYCHECK_NBR IN ($Check_Rangex) I believe that SQR is sending something like this: AND B.PAYCHECK_NBR IN ('1245,1242,1241') In other words, it's sending one string instead of a list of numbers. So try a regular text replacement: AND B.PAYCHECK_NBR IN ([$Check_Rangex]) Note the square brackets, which tell SQR to use the exact value of the variable at that place in the SQL. That should result in this: AND B.PAYCHECK_NBR IN (1245,1242,1241) Kevin Reschenberg SparkPath Technologies, Inc. sparkpath.com | sqr-info.com -------- Original Message -------- Subject: [sqr-users] PeopleSoft Custom Paycheck SQR From: Marsha Date: Thu, August 24, 2006 8:57 pm To: sqr-users@sqrug.org I'm trying to modify out custom PeopleSoft paycheck sqr, a clone of pay003, where I pull in a file of employee numbers and match those records to the paycheck number in the sqr. Once I have the paycheck numbers, I'm building a variable to be used in the selection statement for paycheck_nbr. I'm trying to use this: Paycheck_Nbr IN (1234,1356,1465). It's fine if I hardcode this in the sqr, but the file I build is getting an error. I think it's because paycheck_nbr is numeric and my variable is not, but I don't know how to code it. Pieces of the code are below: while 1 = 1 read 1 into $Input_Area:6 if #end-file = 1 break !exit the "while" end-if let $File_Emplid = substr($Input_Area, 1, 6) do Get-Check-Numbers show '$Check_No = ' $Check_No if $First_Check = 'Y' let $First_Check = 'N' let $Check_Range = $Check_No else let $Format_Check_No = ','||$Check_No let $Check_Range = $Check_Range||$Format_Check_No show '$Check_Range = ' $Check_Range end-if end-while begin-SELECT PC.PAYCHECK_NBR show 'Found' show '$File_Emplid = ' $File_Emplid let #Check_No = &PC.PAYCHECK_NBR let $Check_No = To_Char(#Check_No) show '$Check_No = ' $Check_No FROM PS_PAY_CHECK PC WHERE PC.EMPLID = $File_Emplid AND PC.PAY_END_DT = '2006-07-15' AND PC.OFF_CYCLE = 'N' let $Check_Rangex = rtrim($Check_Range, ' ') WHERE [$SlctCalendar] AND B.PAYCHECK_OPTION IN ('C','&') AND A.COMPANY = A1.COMPANY AND A.PAYGROUP = A1.PAYGROUP AND A.PAY_END_DT = A1.PAY_END_DT AND A1.BALANCE_ID = $Calendar_Year_Id AND B.OFF_CYCLE IN ($SlctOffCycleA, $SlctOffCycleB) AND B.PAGE_NUM BETWEEN #SlctPageFrom AND #SlctPageThru AND B.COMPANY = A.COMPANY AND B.PAYGROUP = A.PAYGROUP AND B.PAY_END_DT = A.PAY_END_DT AND B.PAYCHECK_NBR <> 0 ! AND B.PAYCHECK_NBR IN ($Check_Rangex) ! This doesn't work AND B.PAYCHECK_NBR IN (1245,1242,1241) ! This works !AND B.PAYCHECK_NBR <= #ThruPayCheck_Nbr AND B.PAYCHECK_STATUS = 'F' AND G.COMPANY = A.COMPANY Error msg Found $File_Emplid = 003011 $Check_No = 1241 $Check_No = 1241 $Check_Range = 1245,1242,1241 $Check_Rangex = 1245,1242,1241 In Get-Paychecks (SQR 5528) ODBC SQL dbexec: SQLExecute error 8114 in cursor 52: [Microsoft][ODBC SQL Server Driver][SQL Server]Error converting data type varchar to numeric. Error on line 301: (SQR 3723) Problem executing cursor. SQR for PeopleSoft: Program Aborting. P.S. I later tried to create multiple rows of: AND (B.PAYCHECK_NBR = 1241 OR B.PAYCHECK_NBR = 1242 OR B.PAYCHECK_NBR = 1243) etc. but I get an error for that also. I included carriage returns and line feeds at the end of each row. I have "shows" in the sqr and it looks okay. --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail. _______________________________________________ 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 From sqr-users-bounces@sqrug.org Fri Aug 25 12:11:48 2006 Date: Fri, 25 Aug 2006 11:08:21 -0500 From: "Brooke Funk" Subject: [sqr-users] Count of only one instance I am drawing a blank on how to find where only one instance in a table exis= ts. There are some accounts that have multiple rows but I am looking for o= nly those that have only one row in the table. I have tried grouping with = the count (*) =3D 1 but it is returning accounts that have more than 1 row = in it. Can someone help me out? I can say what I want but in writing it i= n SQL it's not working. I have several other columns from different tables= I am pulling but I want only those accounts that have only 1 instance in t= his particular table regardless of multiple rows in other existing tables I= am pulling from. NOTICE: This e-mail is intended solely for the use of the individual to whom it is addressed and may contain information that is privileged, confidential or otherwise exempt from disclosure. If the reader of this e-mail is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify us by replying to the original message at the listed e-mail address. Thank you. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Aug 25 12:17:57 2006 Subject: RE: [sqr-users] Count of only one instance Date: Fri, 25 Aug 2006 09:14:51 -0700 From: "Lynds,Rick" Did you try: .... Group by=20 Having count(*) =3D 1 =20 -----Original Message----- From: sqr-users-bounces+rlynds=3Dmwdh2o.com@sqrug.org [mailto:sqr-users-bounces+rlynds=3Dmwdh2o.com@sqrug.org] On Behalf Of Brooke Funk Sent: Friday, August 25, 2006 9:08 AM To: sqr-users@sqrug.org Subject: [sqr-users] Count of only one instance I am drawing a blank on how to find where only one instance in a table exists. There are some accounts that have multiple rows but I am looking for only those that have only one row in the table. I have tried grouping with the count (*) =3D 1 but it is returning accounts that have more than 1 row in it. Can someone help me out? I can say what I want but in writing it in SQL it's not working. I have several other columns from different tables I am pulling but I want only those accounts that have only 1 instance in this particular table regardless of multiple rows in other existing tables I am pulling from. NOTICE: This e-mail is intended solely for the use of the individual to whom it is addressed and may contain information that is privileged, confidential or otherwise exempt from disclosure. If the reader of this e-mail is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify us by replying to the original message at the listed e-mail address. Thank you. _______________________________________________ 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 From sqr-users-bounces@sqrug.org Fri Aug 25 12:21:21 2006 Subject: RE: [sqr-users] Count of only one instance Date: Fri, 25 Aug 2006 09:15:45 -0700 From: "Woods, Carolyn" Try using 'having'.=20 For example: select emplid from ps_job having count(emplid) =3D 1 group by emplid returns the emplids who have only one row in the job table. Thx, Carolyn Woods MiraCosta College Oceanside, CA -----Original Message----- From: sqr-users-bounces+cwoods=3Dmiracosta.edu@sqrug.org [mailto:sqr-users-bounces+cwoods=3Dmiracosta.edu@sqrug.org] On Behalf Of Brooke Funk Sent: Friday, August 25, 2006 9:08 AM To: sqr-users@sqrug.org Subject: [sqr-users] Count of only one instance I am drawing a blank on how to find where only one instance in a table exists. There are some accounts that have multiple rows but I am looking for only those that have only one row in the table. I have tried grouping with the count (*) =3D 1 but it is returning accounts that have more than 1 row in it. Can someone help me out? I can say what I want but in writing it in SQL it's not working. I have several other columns from different tables I am pulling but I want only those accounts that have only 1 instance in this particular table regardless of multiple rows in other existing tables I am pulling from. NOTICE: This e-mail is intended solely for the use of the individual to whom it is addressed and may contain information that is privileged, confidential or otherwise exempt from disclosure. If the reader of this e-mail is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify us by replying to the original message at the listed e-mail address. Thank you. _______________________________________________ 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 From sqr-users-bounces@sqrug.org Fri Aug 25 12:29:28 2006 Date: Fri, 25 Aug 2006 09:26:46 -0700 From: kevin.reschenberg@sparkpath.com Subject: RE: [sqr-users] Count of only one instance If I'm reading this correctly, you want to pull many columns from multiple tables and so you can't group on only the account field. Maybe this: SELECT ... FROM TABLE1 A, TABLE2 B WHERE B.ACCOUNT = A.ACCOUNT AND A.ACCOUNT IN (SELECT ACCOUNT FROM TABLE1 GROUP BY ACCOUNT HAVING COUNT(*) = 1) Kevin Reschenberg SparkPath Technologies, Inc. sparkpath.com | sqr-info.com -------- Original Message -------- Subject: [sqr-users] Count of only one instance From: "Brooke Funk" Date: Fri, August 25, 2006 9:08 am To: I am drawing a blank on how to find where only one instance in a table exists. There are some accounts that have multiple rows but I am looking for only those that have only one row in the table. I have tried grouping with the count (*) = 1 but it is returning accounts that have more than 1 row in it. Can someone help me out? I can say what I want but in writing it in SQL it's not working. I have several other columns from different tables I am pulling but I want only those accounts that have only 1 instance in this particular table regardless of multiple rows in other existing tables I am pulling from. NOTICE: This e-mail is intended solely for the use of the individual to whom it is addressed and may contain information that is privileged, confidential or otherwise exempt from disclosure. If the reader of this e-mail is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify us by replying to the original message at the listed e-mail address. Thank you. _______________________________________________ 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 From sqr-users-bounces@sqrug.org Fri Aug 25 12:41:27 2006 Subject: RE: [sqr-users] Count of only one instance Date: Fri, 25 Aug 2006 11:38:36 -0500 From: "Bob Stone" I agree - if you don't have that 2nd call to the table your 'group by' statement is grouping too much information, such that the row grouped by is now unique (count(*) =3D 1) but only because another column is unique. select a.col1, b.col2, a.account from table1 a, table2 b where b.account =3D a.account group by a.col1, b.col2, a.account having count(*) =3D 1 This statement doesn't do it, because you're grouping by more than just account.=20 COL1 - COL2 - ACCT a b 123 b d 123 By the group by above each of those 'counts' is singular, even though there are multiple rows with 123 in table A. Kevin's statement should work for you. -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of kevin.reschenberg@sparkpath.com Sent: Friday, August 25, 2006 11:27 AM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] Count of only one instance If I'm reading this correctly, you want to pull many columns from multiple tables and so you can't group on only the account field. Maybe this: =20 SELECT ... FROM TABLE1 A, TABLE2 B WHERE B.ACCOUNT =3D A.ACCOUNT AND A.ACCOUNT IN (SELECT ACCOUNT FROM TABLE1 GROUP BY ACCOUNT HAVING COUNT(*) =3D 1) =20 =20 Kevin Reschenberg SparkPath Technologies, Inc. sparkpath.com | sqr-info.com =20 -------- Original Message -------- Subject: [sqr-users] Count of only one instance From: "Brooke Funk" Date: Fri, August 25, 2006 9:08 am To: I am drawing a blank on how to find where only one instance in a table exists. There are some accounts that have multiple rows but I am looking for only those that have only one row in the table. I have tried grouping with the count (*) =3D 1 but it is returning accounts that have more than 1 row in it. Can someone help me out? I can say what I want but in writing it in SQL it's not working. I have several other columns from different tables I am pulling but I want only those accounts that have only 1 instance in this particular table regardless of multiple rows in other existing tables I am pulling from. NOTICE: This e-mail is intended solely for the use of the individual to whom it is addressed and may contain information that is privileged, confidential or otherwise exempt from disclosure. If the reader of this e-mail is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify us by replying to the original message at the listed e-mail address. Thank you. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ 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 From sqr-users-bounces@sqrug.org Sat Aug 26 21:53:46 2006 Date: Sat, 26 Aug 2006 18:51:00 -0700 (PDT) From: Marsha Subject: RE: [sqr-users] PeopleSoft Custom Paycheck SQR This worked. Thanks! kevin.reschenberg@sparkpath.com wrote: When you code this: AND B.PAYCHECK_NBR IN ($Check_Rangex) I believe that SQR is sending something like this: AND B.PAYCHECK_NBR IN ('1245,1242,1241') In other words, it's sending one string instead of a list of numbers. So try a regular text replacement: AND B.PAYCHECK_NBR IN ([$Check_Rangex]) Note the square brackets, which tell SQR to use the exact value of the variable at that place in the SQL. That should result in this: AND B.PAYCHECK_NBR IN (1245,1242,1241) Kevin Reschenberg SparkPath Technologies, Inc. sparkpath.com | sqr-info.com -------- Original Message -------- Subject: [sqr-users] PeopleSoft Custom Paycheck SQR From: Marsha Date: Thu, August 24, 2006 8:57 pm To: sqr-users@sqrug.org I'm trying to modify out custom PeopleSoft paycheck sqr, a clone of pay003, where I pull in a file of employee numbers and match those records to the paycheck number in the sqr. Once I have the paycheck numbers, I'm building a variable to be used in the selection statement for paycheck_nbr. I'm trying to use this: Paycheck_Nbr IN (1234,1356,1465). It's fine if I hardcode this in the sqr, but the file I build is getting an error. I think it's because paycheck_nbr is numeric and my variable is not, but I don't know how to code it. Pieces of the code are below: while 1 = 1 read 1 into $Input_Area:6 if #end-file = 1 break !exit the "while" end-if let $File_Emplid = substr($Input_Area, 1, 6) do Get-Check-Numbers show '$Check_No = ' $Check_No if $First_Check = 'Y' let $First_Check = 'N' let $Check_Range = $Check_No else let $Format_Check_No = ','||$Check_No let $Check_Range = $Check_Range||$Format_Check_No show '$Check_Range = ' $Check_Range end-if end-while begin-SELECT PC.PAYCHECK_NBR show 'Found' show '$File_Emplid = ' $File_Emplid let #Check_No = &PC.PAYCHECK_NBR let $Check_No = To_Char(#Check_No) show '$Check_No = ' $Check_No FROM PS_PAY_CHECK PC WHERE PC.EMPLID = $File_Emplid AND PC.PAY_END_DT = '2006-07-15' AND PC.OFF_CYCLE = 'N' let $Check_Rangex = rtrim($Check_Range, ' ') WHERE [$SlctCalendar] AND B.PAYCHECK_OPTION IN ('C','&') AND A.COMPANY = A1.COMPANY AND A.PAYGROUP = A1.PAYGROUP AND A.PAY_END_DT = A1.PAY_END_DT AND A1.BALANCE_ID = $Calendar_Year_Id AND B.OFF_CYCLE IN ($SlctOffCycleA, $SlctOffCycleB) AND B.PAGE_NUM BETWEEN #SlctPageFrom AND #SlctPageThru AND B.COMPANY = A.COMPANY AND B.PAYGROUP = A.PAYGROUP AND B.PAY_END_DT = A.PAY_END_DT AND B.PAYCHECK_NBR <> 0 ! AND B.PAYCHECK_NBR IN ($Check_Rangex) ! This doesn't work AND B.PAYCHECK_NBR IN (1245,1242,1241) ! This works !AND B.PAYCHECK_NBR <= #ThruPayCheck_Nbr AND B.PAYCHECK_STATUS = 'F' AND G.COMPANY = A.COMPANY Error msg Found $File_Emplid = 003011 $Check_No = 1241 $Check_No = 1241 $Check_Range = 1245,1242,1241 $Check_Rangex = 1245,1242,1241 In Get-Paychecks (SQR 5528) ODBC SQL dbexec: SQLExecute error 8114 in cursor 52: [Microsoft][ODBC SQL Server Driver][SQL Server]Error converting data type varchar to numeric. Error on line 301: (SQR 3723) Problem executing cursor. SQR for PeopleSoft: Program Aborting. P.S. I later tried to create multiple rows of: AND (B.PAYCHECK_NBR = 1241 OR B.PAYCHECK_NBR = 1242 OR B.PAYCHECK_NBR = 1243) etc. but I get an error for that also. I included carriage returns and line feeds at the end of each row. I have "shows" in the sqr and it looks okay. --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail. _______________________________________________ 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 --------------------------------- All-new Yahoo! Mail - Fire up a more powerful email and get things done faster. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 28 09:18:16 2006 Date: Mon, 28 Aug 2006 09:15:43 -0400 From: "White . Denise" Subject: [sqr-users] RE: Count of only one instance Since this is the SQR user group, I assume you are writing an SQR program. Therefore, it is not necessary to do everything in a single SQL statement. I think that the way I would approach this is to select all of the data I need from the other tables, except for that in the table that you are looking for the single row count from. Then, do a call to a second procedure that will select from that table, keeping a count at the same time, and only print if the count returned is 1. Denise M. White EBS Programmer/Analyst III Dynamics Research Corporation ---------------------------------------------------------------------- Message: 1 Date: Fri, 25 Aug 2006 11:08:21 -0500 From: "Brooke Funk" Subject: [sqr-users] Count of only one instance To: Message-ID: Content-Type: text/plain; charset=3DUS-ASCII I am drawing a blank on how to find where only one instance in a table exists. There are some accounts that have multiple rows but I am looking for only those that have only one row in the table. I have tried grouping with the count (*) =3D 1 but it is returning accounts that have more than 1 row in it. Can someone help me out? I can say what I want but in writing it in SQL it's not working. I have several other columns from different tables I am pulling but I want only those accounts that have only 1 instance in this particular table regardless of multiple rows in other existing tables I am pulling from. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Aug 28 11:05:00 2006 Date: Mon, 28 Aug 2006 20:32:15 +0530 From: "jiju vengal" Subject: Re: [sqr-users] RE: Count of only one instance Well....fundamentally your approach should work out....without the specifics of the tables and the keys that you are using in the query it wont be possible to pinpoint where you are erroring out. I would use a condition much similar to what you have used like - ----and 1<= (select count(*) from table_name b where b.account_cd = a.account_cd ) Hope it helps. Regards, Jiju. On 8/28/06, White . Denise wrote: > > Since this is the SQR user group, I assume you are writing an SQR > program. Therefore, it is not necessary to do everything in a single > SQL statement. I think that the way I would approach this is to select > all of the data I need from the other tables, except for that in the > table that you are looking for the single row count from. Then, do a > call to a second procedure that will select from that table, keeping a > count at the same time, and only print if the count returned is 1. > > Denise M. White > EBS Programmer/Analyst III > Dynamics Research Corporation > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 25 Aug 2006 11:08:21 -0500 > From: "Brooke Funk" > Subject: [sqr-users] Count of only one instance > To: > Message-ID: > > Content-Type: text/plain; charset=US-ASCII > > I am drawing a blank on how to find where only one instance in a table > exists. There are some accounts that have multiple rows but I am > looking for only those that have only one row in the table. I have > tried grouping with the count (*) = 1 but it is returning accounts that > have more than 1 row in it. Can someone help me out? I can say what I > want but in writing it in SQL it's not working. I have several other > columns from different tables I am pulling but I want only those > accounts that have only 1 instance in this particular table regardless > of multiple rows in other existing tables I am pulling from. > > _______________________________________________ > 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 From sqr-users-bounces@sqrug.org Tue Aug 29 10:47:43 2006 Date: Tue, 29 Aug 2006 08:45:29 -0600 From: "Troy Lamoreaux" Subject: [sqr-users] Re: sqr-users Digest, Vol 30, Issue 19 By using the having clause you should be able to identify the data that only has one row in the table with a single sql statement. SELECT A.column_name1, A.column_name2 FROM my_table A group by A.column_name1, A.column_name2 having count(A.column_name1) = 1 this should only return data that has one row in the table. Good Luck! Troy Lamoreaux On 8/29/06, sqr-users-request@sqrug.org wrote: > > Send sqr-users mailing list submissions to > sqr-users@sqrug.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://www.sqrug.org/mailman/listinfo/sqr-users > or, via email, send a message with subject or body 'help' to > sqr-users-request@sqrug.org > > You can reach the person managing the list at > sqr-users-owner@sqrug.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of sqr-users digest..." > > > Today's Topics: > > 1. RE: Count of only one instance (White . Denise) > 2. Re: RE: Count of only one instance (jiju vengal) > > > > ---------- Forwarded message ---------- > From: "White . Denise" > To: > Date: Mon, 28 Aug 2006 09:15:43 -0400 > Subject: [sqr-users] RE: Count of only one instance > Since this is the SQR user group, I assume you are writing an SQR > program. Therefore, it is not necessary to do everything in a single > SQL statement. I think that the way I would approach this is to select > all of the data I need from the other tables, except for that in the > table that you are looking for the single row count from. Then, do a > call to a second procedure that will select from that table, keeping a > count at the same time, and only print if the count returned is 1. > > Denise M. White > EBS Programmer/Analyst III > Dynamics Research Corporation > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 25 Aug 2006 11:08:21 -0500 > From: "Brooke Funk" > Subject: [sqr-users] Count of only one instance > To: > Message-ID: > > Content-Type: text/plain; charset=US-ASCII > > I am drawing a blank on how to find where only one instance in a table > exists. There are some accounts that have multiple rows but I am > looking for only those that have only one row in the table. I have > tried grouping with the count (*) = 1 but it is returning accounts that > have more than 1 row in it. Can someone help me out? I can say what I > want but in writing it in SQL it's not working. I have several other > columns from different tables I am pulling but I want only those > accounts that have only 1 instance in this particular table regardless > of multiple rows in other existing tables I am pulling from. > > > > > > ---------- Forwarded message ---------- > From: "jiju vengal" > To: "This list is for discussion about the SQR database reporting language > from Hyperion Solutions." > Date: Mon, 28 Aug 2006 20:32:15 +0530 > Subject: Re: [sqr-users] RE: Count of only one instance > Well....fundamentally your approach should work out....without the > specifics > of the tables and the keys that you are using in the query it wont be > possible to pinpoint where you are erroring out. > > I would use a condition much similar to what you have used like - > ----and 1<= (select count(*) from table_name b where b.account_cd = > a.account_cd ) > > Hope it helps. > > Regards, > Jiju. > > > On 8/28/06, White . Denise wrote: > > > > Since this is the SQR user group, I assume you are writing an SQR > > program. Therefore, it is not necessary to do everything in a single > > SQL statement. I think that the way I would approach this is to select > > all of the data I need from the other tables, except for that in the > > table that you are looking for the single row count from. Then, do a > > call to a second procedure that will select from that table, keeping a > > count at the same time, and only print if the count returned is 1. > > > > Denise M. White > > EBS Programmer/Analyst III > > Dynamics Research Corporation > > ---------------------------------------------------------------------- > > > > Message: 1 > > Date: Fri, 25 Aug 2006 11:08:21 -0500 > > From: "Brooke Funk" > > Subject: [sqr-users] Count of only one instance > > To: > > Message-ID: > > > > Content-Type: text/plain; charset=US-ASCII > > > > I am drawing a blank on how to find where only one instance in a table > > exists. There are some accounts that have multiple rows but I am > > looking for only those that have only one row in the table. I have > > tried grouping with the count (*) = 1 but it is returning accounts that > > have more than 1 row in it. Can someone help me out? I can say what I > > want but in writing it in SQL it's not working. I have several other > > columns from different tables I am pulling but I want only those > > accounts that have only 1 instance in this particular table regardless > > of multiple rows in other existing tables I am pulling from. > > > > _______________________________________________ > > 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 From sqr-users-bounces@sqrug.org Tue Aug 29 11:16:59 2006 From: Sandeep.Pathak@carey.com Date: Tue, 29 Aug 2006 11:14:23 -0400 Subject: [sqr-users] SQR Report + Java | Help Hi Guys, I got your email id from one of the SQR sites. We are currently using SQR for our reporting requirements. Our requirement is something like this: The user navigates to a reporting screen, puts all the parameters and click on the submit button to show him the report in the format, he wants. The format can be pdf, csv, excel, html. The application should be able to display the report on demand basis and on the browser. We have one application server (web-sphere) which is running on a unix box (BOX:1) and we have a separate unix box (BOX:2) on which the SQR server is running. So what we do is that we run a command script, which resides on the BOX:1, from our java code and it then connects to BOX:2 using "ssh" and the second script runs the SQR command to generate the report. Once the report is generated, the command script can FTP or SAVE the report. This works fine but the problem is with the on-demand report. For an On-Demand Report, we need to show the report back to the user when he clicks on the submit button after providing all the parameters. Now i do not know how to do that in java. The SQR server can generate the report but how will i display that back to the user on the browser? How to do that? How will i get the output stream back so that i can write that on the browser. Or how will i publish the report so that it can be viewed by the user on the browser. Please suggest me. Thanks Sandeep Pathak ______________________________________________________________________ This e-mail has been scanned by MCI Managed Email Content Service, using Skeptic(tm) technology powered by MessageLabs. For more information on MCI's Managed Email Content Service, visit http://www.mci.com. ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Aug 29 17:50:39 2006 Date: Tue, 29 Aug 2006 17:47:46 -0400 From: "George Jansen" Subject: Re: [sqr-users] SQR Report + Java | Help 1. Choose the scripting language of your choice, Perl, Tcl, I suppose Python. 2. Gin up a module that uses the SQR .so to run SQR. 3. Tuck it under the appropriate Apache library directory. 4. Now you can run SQR right out of Apache & blast the output whereever & however you want to. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 30 07:31:35 2006 Subject: RE: [sqr-users] SQR Report + Java | Help Date: Wed, 30 Aug 2006 16:58:14 +0530 From: "Ganesh, Muralidhar \(IE10\)" Hi all, I am not clear about this answer. Kindly give me some more details to under stand this.=20 Regards, Ganesh A.M -----Original Message----- From: sqr-users-bounces+ganesh.muralidhar=3Dhoneywell.com@sqrug.org [mailto:sqr-users-bounces+ganesh.muralidhar=3Dhoneywell.com@sqrug.org] On Behalf Of George Jansen Sent: Wednesday, August 30, 2006 3:18 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] SQR Report + Java | Help 1. Choose the scripting language of your choice, Perl, Tcl, I suppose Python. 2. Gin up a module that uses the SQR .so to run SQR. 3. Tuck it under the appropriate Apache library directory. 4. Now you can run SQR right out of Apache & blast the output whereever & however you want to. _______________________________________________ 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 From sqr-users-bounces@sqrug.org Wed Aug 30 10:30:14 2006 Subject: RE: [sqr-users] SQR Report + Java | Help From: Sandeep.Pathak@carey.com Date: Wed, 30 Aug 2006 10:27:47 -0400 same here, Can you please be a bit more descriptive about the answer, if possible few lines of code. I need an answer to this one as soon as possible. I am in the middle of this use case and need to resolve this quickly. I could understand few things from the answer. Are you talking about running a web-server (Apache) and putting the generated SQR report in the web-server (Apache) directory. Basically publishing the report on a web-server and re-directing the user to that web-server so that he can view the report. Please correct me if I am wrong. Thanks Sandeep -----sqr-users-bounces+sandeep.pathak=carey.com@sqrug.org wrote: ----- To: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." From: "Ganesh, Muralidhar \(IE10\)" Sent by: sqr-users-bounces+sandeep.pathak=carey.com@sqrug.org Date: 08/30/2006 07:28AM Subject: RE: [sqr-users] SQR Report + Java | Help Hi all, I am not clear about this answer. Kindly give me some more details to under stand this. Regards, Ganesh A.M -----Original Message----- From: sqr-users-bounces+ganesh.muralidhar=honeywell.com@sqrug.org [mailto:sqr-users-bounces+ganesh.muralidhar=honeywell.com@sqrug.org] On Behalf Of George Jansen Sent: Wednesday, August 30, 2006 3:18 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] SQR Report + Java | Help 1. Choose the scripting language of your choice, Perl, Tcl, I suppose Python. 2. Gin up a module that uses the SQR .so to run SQR. 3. Tuck it under the appropriate Apache library directory. 4. Now you can run SQR right out of Apache & blast the output whereever & however you want to. _______________________________________________ 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 ______________________________________________________________________ This e-mail has been scanned by MCI Managed Email Content Service, using Skeptic(tm) technology powered by MessageLabs. For more information on MCI's Managed Email Content Service, visit http://www.mci.com. ______________________________________________________________________ ______________________________________________________________________ This e-mail has been scanned by MCI Managed Email Content Service, using Skeptic(tm) technology powered by MessageLabs. For more information on MCI's Managed Email Content Service, visit http://www.mci.com. ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 30 11:05:14 2006 Date: Wed, 30 Aug 2006 11:02:02 -0400 From: "George Jansen" Subject: RE: [sqr-users] SQR Report + Java | Help I have most recently done this using AOLServer + TCL, but years ago have done this with Perl. If you look in the back of the SQR manual you will find instructions for linking SQR into other programs. Have a look at the Perl documentation for Ext::MakeMaker; it takes about a 50-line .xs file, most of which Perl generates for you. From this you would generate a Perl module that will allow you to run SQR from within Perl. You would then invoke a mod_perl (or CGI) script that would a. bash your command line into shape. b. run the sqr c. on successful termination set the MIME type, read the output, and blast it back out to the remote invoker; the latter could be your web server, which could buffer up the output and spit it out again. >>> "Ganesh, Muralidhar (IE10)" 8/30/2006 7:28 AM >>> Hi all, I am not clear about this answer. Kindly give me some more details to under stand this. Regards, Ganesh A.M -----Original Message----- From: sqr-users-bounces+ganesh.muralidhar=honeywell.com@sqrug.org [mailto:sqr-users-bounces+ganesh.muralidhar=honeywell.com@sqrug.org] On Behalf Of George Jansen Sent: Wednesday, August 30, 2006 3:18 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] SQR Report + Java | Help 1. Choose the scripting language of your choice, Perl, Tcl, I suppose Python. 2. Gin up a module that uses the SQR .so to run SQR. 3. Tuck it under the appropriate Apache library directory. 4. Now you can run SQR right out of Apache & blast the output whereever & however you want to. _______________________________________________ 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 From sqr-users-bounces@sqrug.org Wed Aug 30 13:47:56 2006 Date: Wed, 30 Aug 2006 13:45:16 -0400 From: "Vaidyanathan, Ramakrishnan \(GE, Corporate, consultant\)" Subject: [sqr-users] Checking for numeric datatype Hi, Is there any function in sqr to check whether the value retireved from t= he database field is a numeric or not..some thing like is numeric..I am ret= rieving the database field to a variable and I need to check whether that f= ield is a numeric or not. Pls help Thanks Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 30 13:54:57 2006 Subject: RE: [sqr-users] Checking for numeric datatype Date: Wed, 30 Aug 2006 12:52:35 -0500 From: "Knapp, Richard" Describe the source table. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Wednesday, August 30, 2006 12:45 PM To: sqr-users@sqrug.org Subject: [sqr-users] Checking for numeric datatype Hi, Is there any function in sqr to check whether the value retireved from the database field is a numeric or not..some thing like is numeric..I am retrieving the database field to a variable and I need to check whether that field is a numeric or not. Pls help Thanks Ram _______________________________________________ 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 From sqr-users-bounces@sqrug.org Wed Aug 30 13:59:35 2006 Subject: RE: [sqr-users] Checking for numeric datatype Date: Wed, 30 Aug 2006 13:56:53 -0400 From: "Vaidyanathan, Ramakrishnan \(GE, Corporate, consultant\)" the table is a custom table thats built for a specific purpose to hold cert= ain transactions. its not a oracle provided table. -----Original Message----- From: sqr-users-bounces+ramakrishnan.vaidyanathan=3Dge.com@sqrug.org [mailto:sqr-users-bounces+ramakrishnan.vaidyanathan=3Dge.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Wednesday, August 30, 2006 1:53 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Checking for numeric datatype Describe the source table. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Wednesday, August 30, 2006 12:45 PM To: sqr-users@sqrug.org Subject: [sqr-users] Checking for numeric datatype Hi, Is there any function in sqr to check whether the value retireved from the database field is a numeric or not..some thing like is numeric..I am retrieving the database field to a variable and I need to check whether that field is a numeric or not. Pls help Thanks Ram _______________________________________________ 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 From sqr-users-bounces@sqrug.org Wed Aug 30 14:05:37 2006 Subject: RE: [sqr-users] Checking for numeric datatype Date: Wed, 30 Aug 2006 14:03:00 -0400 From: "Kaithi, Murali" Move $var to #var If #var >=3D 0 let $is_numeric =3D 'T' Else let $is_numeric =3D 'F' End-if Murali..=20 -----Original Message----- From: sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org [mailto:sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org] On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Wednesday, August 30, 2006 1:57 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Checking for numeric datatype the table is a custom table thats built for a specific purpose to hold certain transactions. its not a oracle provided table. -----Original Message----- From: sqr-users-bounces+ramakrishnan.vaidyanathan=3Dge.com@sqrug.org [mailto:sqr-users-bounces+ramakrishnan.vaidyanathan=3Dge.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Wednesday, August 30, 2006 1:53 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Checking for numeric datatype Describe the source table. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Wednesday, August 30, 2006 12:45 PM To: sqr-users@sqrug.org Subject: [sqr-users] Checking for numeric datatype Hi, Is there any function in sqr to check whether the value retireved from the database field is a numeric or not..some thing like is numeric..I am retrieving the database field to a variable and I need to check whether that field is a numeric or not. Pls help Thanks Ram _______________________________________________ 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 ________________________________________________________________________ This Email has been scanned for all viruses by PAETEC Email Scanning Servic= es, utilizing MessageLabs proprietary SkyScan infrastructure. For more info= rmation on a proactive anti-virus service working around the clock, around = the globe, visit http://www.paetec.com. ________________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 30 14:44:54 2006 Subject: RE: [sqr-users] SQR Report + Java | Help From: Sandeep.Pathak@carey.com Date: Wed, 30 Aug 2006 14:42:28 -0400 Hi, Can you please send me a sample code for this. That would be great. Thanks alot Sandeep -----sqr-users-bounces+sandeep.pathak=carey.com@sqrug.org wrote: ----- To: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." From: "George Jansen" Sent by: sqr-users-bounces+sandeep.pathak=carey.com@sqrug.org Date: 08/30/2006 11:02AM Subject: RE: [sqr-users] SQR Report + Java | Help I have most recently done this using AOLServer + TCL, but years ago have done this with Perl. If you look in the back of the SQR manual you will find instructions for linking SQR into other programs. Have a look at the Perl documentation for Ext::MakeMaker; it takes about a 50-line .xs file, most of which Perl generates for you. From this you would generate a Perl module that will allow you to run SQR from within Perl. You would then invoke a mod_perl (or CGI) script that would a. bash your command line into shape. b. run the sqr c. on successful termination set the MIME type, read the output, and blast it back out to the remote invoker; the latter could be your web server, which could buffer up the output and spit it out again. >>> "Ganesh, Muralidhar (IE10)" 8/30/2006 7:28 AM >>> Hi all, I am not clear about this answer. Kindly give me some more details to under stand this. Regards, Ganesh A.M -----Original Message----- From: sqr-users-bounces+ganesh.muralidhar=honeywell.com@sqrug.org [mailto:sqr-users-bounces+ganesh.muralidhar=honeywell.com@sqrug.org] On Behalf Of George Jansen Sent: Wednesday, August 30, 2006 3:18 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] SQR Report + Java | Help 1. Choose the scripting language of your choice, Perl, Tcl, I suppose Python. 2. Gin up a module that uses the SQR .so to run SQR. 3. Tuck it under the appropriate Apache library directory. 4. Now you can run SQR right out of Apache & blast the output whereever & however you want to. _______________________________________________ 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 ______________________________________________________________________ This e-mail has been scanned by MCI Managed Email Content Service, using Skeptic(tm) technology powered by MessageLabs. For more information on MCI's Managed Email Content Service, visit http://www.mci.com. ______________________________________________________________________ ______________________________________________________________________ This e-mail has been scanned by MCI Managed Email Content Service, using Skeptic(tm) technology powered by MessageLabs. For more information on MCI's Managed Email Content Service, visit http://www.mci.com. ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 30 16:01:26 2006 From: "Elvis Pressly" Subject: RE: [sqr-users] Checking for numeric datatype Date: Wed, 30 Aug 2006 19:58:48 +0000 You cannot use this function. What if the value is negative? I believe the question should also include how to test for all numeric values. >From: "Kaithi, Murali" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "This list is for discussion about the SQR database reportinglanguage >fromHyperion Solutions." >Subject: RE: [sqr-users] Checking for numeric datatype >Date: Wed, 30 Aug 2006 14:03:00 -0400 > >Move $var to #var >If #var >= 0 > let $is_numeric = 'T' >Else > let $is_numeric = 'F' >End-if > >Murali.. > >-----Original Message----- >From: sqr-users-bounces+murali.kaithi=spencergifts.com@sqrug.org >[mailto:sqr-users-bounces+murali.kaithi=spencergifts.com@sqrug.org] On >Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) >Sent: Wednesday, August 30, 2006 1:57 PM >To: sqr-users@sqrug.org >Subject: RE: [sqr-users] Checking for numeric datatype > >the table is a custom table thats built for a specific purpose to hold >certain transactions. its not a oracle provided table. > >-----Original Message----- >From: sqr-users-bounces+ramakrishnan.vaidyanathan=ge.com@sqrug.org >[mailto:sqr-users-bounces+ramakrishnan.vaidyanathan=ge.com@sqrug.org]On >Behalf Of Knapp, Richard >Sent: Wednesday, August 30, 2006 1:53 PM >To: This list is for discussion about the SQR database reportinglanguage >fromHyperion Solutions. >Subject: RE: [sqr-users] Checking for numeric datatype > > > >Describe the source table. > >Richard Knapp >AITS - Reporting >University of Missouri >Locust Street Building >Columbia, MO 65201 >573-882-8856 >knappr@umsystem.edu > > >-----Original Message----- >From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org >[mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of >Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) >Sent: Wednesday, August 30, 2006 12:45 PM >To: sqr-users@sqrug.org >Subject: [sqr-users] Checking for numeric datatype > >Hi, > Is there any function in sqr to check whether the value retireved >from the database field is a numeric or not..some thing like is >numeric..I am retrieving the database field to a variable and I need to >check whether that field is a numeric or not. Pls help Thanks Ram > >_______________________________________________ >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 > >________________________________________________________________________ >This Email has been scanned for all viruses by PAETEC Email Scanning >Services, utilizing MessageLabs proprietary SkyScan infrastructure. For >more information on a proactive anti-virus service working around the >clock, around the globe, visit http://www.paetec.com. >________________________________________________________________________ > >_______________________________________________ >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 From sqr-users-bounces@sqrug.org Wed Aug 30 17:13:28 2006 Date: Wed, 30 Aug 2006 16:10:32 -0500 From: "Aguirre, Jose" Subject: [sqr-users] Trying to write 3 outputs from the same SQR. Here are my erros: Error on line 168: (SQR 3503) Unknown variable type. write 1 from $SETID_VNDR:5 - Error on line 168: (SQR 3503) Unknown variable type. write 1 from $SETID_VNDR:5 - Error on line 172: (SQR 3702) Command not allowed in this section: begin-procedure Begin-Procedure Process-Vendor-Address Error on line 238: (SQR 3503) Unknown variable type. write 2 from $SETID_VNDR_ADDR:5 - Error on line 238: (SQR 3503) Unknown variable type. write 2 from $SETID_VNDR_ADDR:5 - Error on line 241: (SQR 3702) Command not allowed in this section: begin-procedure Begin-Procedure Process-Vendor-Status Error on line 283: (SQR 3503) Unknown variable type. write 3 from $FIELDVALUE:18 - Error on line 283: (SQR 3503) Unknown variable type. write 3 from $FIELDVALUE:18 - Here is my DQR syntax: !****************************** Begin-Report !****************************** do Init-Report IF $file_open1 =3D 'Y' do Process-Vendor END-IF IF $file_open2 =3D 'Y' do Process-Vendor-Address END-IF IF $file_open3 =3D 'Y' do Process-Vendor-Status END-IF ! display '' ! display 'Process Ended at: ' noline do Get-Current-Datetime display $AsOfNow ! do StdAPI-Term End-Report !****************************** Begin-Procedure Init-Report !****************************** do Init-Datetime do Init-Number do Get-Current-DateTime move 'ZZPO0027.SQR' to $ReportID do Format-DateTime($AsOfToday, $ReportDate, {DEFDATE}, '', '') let $DateStr =3D $ReportDate Let $ReportFile1 =3D 'FOLDER_PATH1\VENDOR' || '.txt' Let $ReportFile2 =3D 'FOLDER_PATH2\VENDOR_ADDRESS' || '.txt' Let $ReportFile3 =3D 'FOLDER_PATH3\VENDOR_STATUS' || '.txt' !DISPLAY $ReportFile1 !DISPLAY $ReportFile2 !DISPLAY $ReportFile3 open $ReportFile1 as 1 for-writing record=3D400 status=3D#status if #filestat !=3D 0 let $error_lit =3D 'error opening file' display $error_lit=20 display $file () else let $file_open1 =3D 'Y' display 'successful opening the file' end-if open $ReportFile2 as 2 for-writing record=3D400 status=3D#status if #filestat !=3D 0 let $error_lit =3D 'error opening file' display $error_lit=20 display $file () else let $file_open2 =3D 'Y' display 'successful opening the file' end-if open $ReportFile3 as 3 for-writing record=3D400 status=3D#status if #filestat !=3D 0 let $error_lit =3D 'error opening file' display $error_lit=20 display $file () else let $file_open3 =3D 'Y' display 'successful opening the file' end-if End-Procedure Init-Report ! ***************************************** Begin-Procedure Process-Vendor ! ***************************************** !write 1 from 'Begin select Vendor' Begin-SELECT A.SETID A.VENDOR_ID A.NAME1 A.NAME2 A.VENDOR_STATUS A.WTHD_SW A.VNDR_TIN B.TIN B.TIN_TYPE B.EFF_STATUS let $SETID_VNDR =3D rtrim(&A.SETID, ' ') let $VENDOR_ID_VNDR =3D rtrim(&A.VENDOR_ID, ' ') let $NAME1 =3D rtrim(&A.NAME1, ' ') let $NAME2 =3D rtrim(&A.NAME2,' ') let $VENDOR_STATUS =3D rtrim(&A.VENDOR_STATUS,' ') let $WTHD_SW =3D rtrim(&A.WTHD_SW,' ') let $VNDR_TIN =3D rtrim(&A.VNDR_TIN,' ') let $TIN =3D rtrim(&B.TIN,' ') let $TIN_TYPE =3D rtrim(&B.TIN_TYPE,' ') let $EFF_STATUS =3D rtrim(&B.EFF_STATUS,' ') do Write-Vendor FROM PS_VENDOR A, PS_VENDOR_WTHD B WHERE A.SETID =3D B.SETID AND A.VENDOR_ID =3D B.VENDOR_ID ORDER BY A.SETID, A.VENDOR_ID, A.NAME1 End-SELECT End-Procedure Process-Vendor ! ******************************************** Begin-Procedure Write-Vendor ! ******************************************** !WRITE 1 FROM 'BEGIN WRITE Vendor' write 1 from $SETID_VNDR:5 - $VENDOR_ID_VNDR:10 - $NAME1:40 - $NAME2:40 - $VENDOR_STATUS:1 - $WTHD_SW:1 - $VNDR_TIN:10 - $TIN:20 - $TIN_TYPE:1 - $EFF_STATUS:1 - !WRITE 1 FROM 'END WRITE Vendor' =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 End-Procedure Write-Vendor ! ***************************************** Begin-Procedure Process-Vendor-Address ! ***************************************** !write 2 from 'Begin Vendor-Address' Begin-SELECT C.SETID C.VENDOR_ID C.EFF_STATUS C.NAME1 C.NAME2 C.ADDRESS1 C.ADDRESS2 C.ADDRESS3 C.ADDRESS4 C.CITY C.STATE C.POSTAL=20 C.COUNTRY let $SETID_VNDR_ADDR =3D rtrim(&C.SETIDR, ' ') let $VENDOR_ID_VNDR_ADDR =3D rtrim(&C.VENDOR_ID, ' ') let $EFF_STATUS_VNDR_ADDR =3D rtrim(&C.EFF_STATUS,' ') let $NAME1_ADDR =3D rtrim(&C.NAME1,' ') let $NAME2_ADDR =3D rtrim(&C.NAME2,' ') let $ADDRESS1 =3D rtrim(&C.ADDRESS1,' ') let $ADDRESS2 =3D rtrim(&C.ADDRESS2,' ') let $ADDRESS3 =3D rtrim(&C.ADDRESS3,' ') let $ADDRESS4 =3D rtrim(&C.ADDRESS4,' ') let $CITY =3D rtrim(&C.CITY,' ') let $COUNTY =3D rtrim(&C.COUNTY,' ') let $STATE =3D rtrim(&C.STATE,' ') let $POSTAL =3D rtrim(&C.POSTAL,' ') do Write-Process-Vendor-Address FROM PS_VENDOR_ADDR C ORDER BY C.SETID, C.VENDOR_ID End-SELECT End-Procedure Process-Vendor-Address ! ******************************************** Begin-Procedure Write-Process-Vendor-Address ! ******************************************** !WRITE 2 FROM 'BEGIN WRITE Vendor-Address' write 2 from $SETID_VNDR_ADDR:5 - $VENDOR_ID_VNDR_ADDR:10 - $EFF_STATUS_VNDR_ADDR:1 - $ADDRESS1:10 - $NAME1_ADDR:40 - $NAME2_ADDR:40 - $ADDRESS1:35 - $ADDRESS2:35 - $ADDRESS3:35 - $ADDRESS4:35 - $CITY:30 - $COUNTY:35 - $STATE:10 - $POSTAL:35 - !WRITE 2 FROM 'END WRITE Vendor-Address' End-Procedure Write-Process-Vendor-Address ! ***************************************** Begin-Procedure Process-Vendor-Status ! ***************************************** !write 3 from 'Begin Vendor-Status' Begin-SELECT D.FIELDVALUE D.EFF_STATUS D.EFFDT D.XLATLONGNAME D.XLATSHORTNAME let $FIELDVALUE =3D rtrim(&D.FIELDVALUE, ' ') let $EFF_STATUS =3D rtrim(&D.EFF_STATUS, ' ') let $EFFDT =3D rtrim(&D.EFFDT,' ') let $XLATLONGNAME =3D rtrim(&D.XLATLONGNAME,' ') let $XLATSHORTNAME =3D rtrim(&D.XLATSHORTNAME,' ') do Write-Process-Vendor-Status FROM XLATTABLE D WHERE D.FIELDNAME =3D'VENDOR_STATUS' End-SELECT End-Procedure Process-Vendor-Address ! ******************************************** Begin-Procedure Write-Process-Vendor-Status ! ******************************************** !WRITE 3 FROM 'BEGIN WRITE Vendor-Address' write 3 from $FIELDVALUE:18 - $EFF_STATUS:1 - $EFFDT:10 - $XLATLONGNAME:30 - $XLATSHORTNAME:10 - !WRITE 3 FROM 'END WRITE Vendor-Status' End-Procedure Write-Process-Vendor-Status ! =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D INCLUDE F= ILES =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D !#include 'askaod.sqc' !Ask As Of Date Procedure !#include 'curdttim.sqc' !Get-Current-DateTime Procedure #include 'datetime.sqc' !Routines for date and time formatting #include 'number.sqc' !Routines for number formatting #include 'stdapi.sqc' !Update Process API ! =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Thanks, Jos=E9 A. Aguirre _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Aug 30 17:16:58 2006 Date: Wed, 30 Aug 2006 17:12:23 -0400 From: "George Jansen" Subject: RE: [sqr-users] Checking for numeric datatype Yep. You have essentially two choices: 1. Craft a regular expression that will cover all possible number formats. Oracle 10g supports REs in SQL now. This can get ugly if you aren't limiting yourself to integer and decimal. 2. Throw it up against the wall and see what sticks, i.e. put together a PL/SQL procedure that will use an EXCEPTION WHEN block to handle it. I suspect that in the long run this would hurt performance. But what the heck: SQL> get /tmp/its_a_number 1 CREATE OR REPLACE FUNCTION its_a_number 2 (p_something IN VARCHAR2) 3 RETURN VARCHAR2 4 AS 5 v_dummy NUMBER; 6 BEGIN 7 v_dummy := p_something; 8 RETURN 'Yes'; 9 EXCEPTION WHEN OTHERS THEN 10 RETURN 'No'; 11* END its_a_number; SQL> / Function created. SQL> select its_a_number('1e25') from dual; ITS_A_NUMBER('1E25') -------------------------------------------------------------------------------- Yes SQL> select its_a_number('notsofast') from dual; ITS_A_NUMBER('NOTSOFAST') -------------------------------------------------------------------------------- No SQL> select its_a_number(Sysdate) from dual; ITS_A_NUMBER(SYSDATE) -------------------------------------------------------------------------------- No >>> "Elvis Pressly" 8/30/2006 3:58 PM >>> You cannot use this function. What if the value is negative? I believe the question should also include how to test for all numeric values. >From: "Kaithi, Murali" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "This list is for discussion about the SQR database reportinglanguage >fromHyperion Solutions." >Subject: RE: [sqr-users] Checking for numeric datatype >Date: Wed, 30 Aug 2006 14:03:00 -0400 > >Move $var to #var >If #var >= 0 > let $is_numeric = 'T' >Else > let $is_numeric = 'F' >End-if > >Murali.. > >-----Original Message----- >From: sqr-users-bounces+murali.kaithi=spencergifts.com@sqrug.org >[mailto:sqr-users-bounces+murali.kaithi=spencergifts.com@sqrug.org] On >Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) >Sent: Wednesday, August 30, 2006 1:57 PM >To: sqr-users@sqrug.org >Subject: RE: [sqr-users] Checking for numeric datatype > >the table is a custom table thats built for a specific purpose to hold >certain transactions. its not a oracle provided table. > >-----Original Message----- >From: sqr-users-bounces+ramakrishnan.vaidyanathan=ge.com@sqrug.org >[mailto:sqr-users-bounces+ramakrishnan.vaidyanathan=ge.com@sqrug.org]On >Behalf Of Knapp, Richard >Sent: Wednesday, August 30, 2006 1:53 PM >To: This list is for discussion about the SQR database reportinglanguage >fromHyperion Solutions. >Subject: RE: [sqr-users] Checking for numeric datatype > > > >Describe the source table. > >Richard Knapp >AITS - Reporting >University of Missouri >Locust Street Building >Columbia, MO 65201 >573-882-8856 >knappr@umsystem.edu > > >-----Original Message----- >From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org >[mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of >Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) >Sent: Wednesday, August 30, 2006 12:45 PM >To: sqr-users@sqrug.org >Subject: [sqr-users] Checking for numeric datatype > >Hi, > Is there any function in sqr to check whether the value retireved >from the database field is a numeric or not..some thing like is >numeric..I am retrieving the database field to a variable and I need to >check whether that field is a numeric or not. Pls help Thanks Ram > >_______________________________________________ >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 > >________________________________________________________________________ >This Email has been scanned for all viruses by PAETEC Email Scanning >Services, utilizing MessageLabs proprietary SkyScan infrastructure. For >more information on a proactive anti-virus service working around the >clock, around the globe, visit http://www.paetec.com. >________________________________________________________________________ > >_______________________________________________ >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 From sqr-users-bounces@sqrug.org Wed Aug 30 19:25:02 2006 Date: Wed, 30 Aug 2006 16:22:23 -0700 (PDT) From: kota vijayalakshmi Subject: Re: [sqr-users] Trying to write 3 outputs from the same SQR. Hi, Here is one mistake I found from the code: Instead of "End-Procedure Process-Vendor-Status" you coded it as "End-Procedure Process-Vendor-Address". Correct it and see. -VJ "Aguirre, Jose" wrote: Here are my erros: Error on line 168: (SQR 3503) Unknown variable type. write 1 from $SETID_VNDR:5 - Error on line 168: (SQR 3503) Unknown variable type. write 1 from $SETID_VNDR:5 - Error on line 172: (SQR 3702) Command not allowed in this section: begin-procedure Begin-Procedure Process-Vendor-Address Error on line 238: (SQR 3503) Unknown variable type. write 2 from $SETID_VNDR_ADDR:5 - Error on line 238: (SQR 3503) Unknown variable type. write 2 from $SETID_VNDR_ADDR:5 - Error on line 241: (SQR 3702) Command not allowed in this section: begin-procedure Begin-Procedure Process-Vendor-Status Error on line 283: (SQR 3503) Unknown variable type. write 3 from $FIELDVALUE:18 - Error on line 283: (SQR 3503) Unknown variable type. write 3 from $FIELDVALUE:18 - Here is my DQR syntax: !****************************** Begin-Report !****************************** do Init-Report IF $file_open1 = 'Y' do Process-Vendor END-IF IF $file_open2 = 'Y' do Process-Vendor-Address END-IF IF $file_open3 = 'Y' do Process-Vendor-Status END-IF ! display '' ! display 'Process Ended at: ' noline do Get-Current-Datetime display $AsOfNow ! do StdAPI-Term End-Report !****************************** Begin-Procedure Init-Report !****************************** do Init-Datetime do Init-Number do Get-Current-DateTime move 'ZZPO0027.SQR' to $ReportID do Format-DateTime($AsOfToday, $ReportDate, {DEFDATE}, '', '') let $DateStr = $ReportDate Let $ReportFile1 = 'FOLDER_PATH1\VENDOR' || '.txt' Let $ReportFile2 = 'FOLDER_PATH2\VENDOR_ADDRESS' || '.txt' Let $ReportFile3 = 'FOLDER_PATH3\VENDOR_STATUS' || '.txt' !DISPLAY $ReportFile1 !DISPLAY $ReportFile2 !DISPLAY $ReportFile3 open $ReportFile1 as 1 for-writing record=400 status=#status if #filestat != 0 let $error_lit = 'error opening file' display $error_lit display $file () else let $file_open1 = 'Y' display 'successful opening the file' end-if open $ReportFile2 as 2 for-writing record=400 status=#status if #filestat != 0 let $error_lit = 'error opening file' display $error_lit display $file () else let $file_open2 = 'Y' display 'successful opening the file' end-if open $ReportFile3 as 3 for-writing record=400 status=#status if #filestat != 0 let $error_lit = 'error opening file' display $error_lit display $file () else let $file_open3 = 'Y' display 'successful opening the file' end-if End-Procedure Init-Report ! ***************************************** Begin-Procedure Process-Vendor ! ***************************************** !write 1 from 'Begin select Vendor' Begin-SELECT A.SETID A.VENDOR_ID A.NAME1 A.NAME2 A.VENDOR_STATUS A.WTHD_SW A.VNDR_TIN B.TIN B.TIN_TYPE B.EFF_STATUS let $SETID_VNDR = rtrim(&A.SETID, ' ') let $VENDOR_ID_VNDR = rtrim(&A.VENDOR_ID, ' ') let $NAME1 = rtrim(&A.NAME1, ' ') let $NAME2 = rtrim(&A.NAME2,' ') let $VENDOR_STATUS = rtrim(&A.VENDOR_STATUS,' ') let $WTHD_SW = rtrim(&A.WTHD_SW,' ') let $VNDR_TIN = rtrim(&A.VNDR_TIN,' ') let $TIN = rtrim(&B.TIN,' ') let $TIN_TYPE = rtrim(&B.TIN_TYPE,' ') let $EFF_STATUS = rtrim(&B.EFF_STATUS,' ') do Write-Vendor FROM PS_VENDOR A, PS_VENDOR_WTHD B WHERE A.SETID = B.SETID AND A.VENDOR_ID = B.VENDOR_ID ORDER BY A.SETID, A.VENDOR_ID, A.NAME1 End-SELECT End-Procedure Process-Vendor ! ******************************************** Begin-Procedure Write-Vendor ! ******************************************** !WRITE 1 FROM 'BEGIN WRITE Vendor' write 1 from $SETID_VNDR:5 - $VENDOR_ID_VNDR:10 - $NAME1:40 - $NAME2:40 - $VENDOR_STATUS:1 - $WTHD_SW:1 - $VNDR_TIN:10 - $TIN:20 - $TIN_TYPE:1 - $EFF_STATUS:1 - !WRITE 1 FROM 'END WRITE Vendor' End-Procedure Write-Vendor ! ***************************************** Begin-Procedure Process-Vendor-Address ! ***************************************** !write 2 from 'Begin Vendor-Address' Begin-SELECT C.SETID C.VENDOR_ID C.EFF_STATUS C.NAME1 C.NAME2 C.ADDRESS1 C.ADDRESS2 C.ADDRESS3 C.ADDRESS4 C.CITY C.STATE C.POSTAL C.COUNTRY let $SETID_VNDR_ADDR = rtrim(&C.SETIDR, ' ') let $VENDOR_ID_VNDR_ADDR = rtrim(&C.VENDOR_ID, ' ') let $EFF_STATUS_VNDR_ADDR = rtrim(&C.EFF_STATUS,' ') let $NAME1_ADDR = rtrim(&C.NAME1,' ') let $NAME2_ADDR = rtrim(&C.NAME2,' ') let $ADDRESS1 = rtrim(&C.ADDRESS1,' ') let $ADDRESS2 = rtrim(&C.ADDRESS2,' ') let $ADDRESS3 = rtrim(&C.ADDRESS3,' ') let $ADDRESS4 = rtrim(&C.ADDRESS4,' ') let $CITY = rtrim(&C.CITY,' ') let $COUNTY = rtrim(&C.COUNTY,' ') let $STATE = rtrim(&C.STATE,' ') let $POSTAL = rtrim(&C.POSTAL,' ') do Write-Process-Vendor-Address FROM PS_VENDOR_ADDR C ORDER BY C.SETID, C.VENDOR_ID End-SELECT End-Procedure Process-Vendor-Address ! ******************************************** Begin-Procedure Write-Process-Vendor-Address ! ******************************************** !WRITE 2 FROM 'BEGIN WRITE Vendor-Address' write 2 from $SETID_VNDR_ADDR:5 - $VENDOR_ID_VNDR_ADDR:10 - $EFF_STATUS_VNDR_ADDR:1 - $ADDRESS1:10 - $NAME1_ADDR:40 - $NAME2_ADDR:40 - $ADDRESS1:35 - $ADDRESS2:35 - $ADDRESS3:35 - $ADDRESS4:35 - $CITY:30 - $COUNTY:35 - $STATE:10 - $POSTAL:35 - !WRITE 2 FROM 'END WRITE Vendor-Address' End-Procedure Write-Process-Vendor-Address ! ***************************************** Begin-Procedure Process-Vendor-Status ! ***************************************** !write 3 from 'Begin Vendor-Status' Begin-SELECT D.FIELDVALUE D.EFF_STATUS D.EFFDT D.XLATLONGNAME D.XLATSHORTNAME let $FIELDVALUE = rtrim(&D.FIELDVALUE, ' ') let $EFF_STATUS = rtrim(&D.EFF_STATUS, ' ') let $EFFDT = rtrim(&D.EFFDT,' ') let $XLATLONGNAME = rtrim(&D.XLATLONGNAME,' ') let $XLATSHORTNAME = rtrim(&D.XLATSHORTNAME,' ') do Write-Process-Vendor-Status FROM XLATTABLE D WHERE D.FIELDNAME ='VENDOR_STATUS' End-SELECT End-Procedure Process-Vendor-Address ! ******************************************** Begin-Procedure Write-Process-Vendor-Status ! ******************************************** !WRITE 3 FROM 'BEGIN WRITE Vendor-Address' write 3 from $FIELDVALUE:18 - $EFF_STATUS:1 - $EFFDT:10 - $XLATLONGNAME:30 - $XLATSHORTNAME:10 - !WRITE 3 FROM 'END WRITE Vendor-Status' End-Procedure Write-Process-Vendor-Status ! ===================== INCLUDE FILES ============================ !#include 'askaod.sqc' !Ask As Of Date Procedure !#include 'curdttim.sqc' !Get-Current-DateTime Procedure #include 'datetime.sqc' !Routines for date and time formatting #include 'number.sqc' !Routines for number formatting #include 'stdapi.sqc' !Update Process API ! =============================================================== Thanks, José A. Aguirre _______________________________________________ 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 From sqr-users-bounces@sqrug.org Thu Aug 31 00:34:47 2006 Subject: RE: [sqr-users] Checking for numeric datatype Date: Thu, 31 Aug 2006 10:01:45 +0530 From: "B, Ravishankar \(Cognizant\)" Hi, Try this code snippet for checking occurrence of numeric values in a variable: =0D While #i < length($Col1) add 1 to #i Let #out =3D ascii(substr($Col1,#i,1)) If not(range(#out,48,57)) Add 1 to #status End-If End-While If #status > 0 Let $NumFlag=3D'F' Else Let $NumFlag=3D'T' End-If =0D CHEERS !!! Ravishankar "Most people are only alive because it is illegal to shoot them" -----Original Message----- From: sqr-users-bounces+ravishankar.b=3Dcognizant.com@sqrug.org [mailto:sqr-users-bounces+ravishankar.b=3Dcognizant.com@sqrug.org] On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Wednesday, August 30, 2006 11:15 PM To: sqr-users@sqrug.org Subject: [sqr-users] Checking for numeric datatype Hi, Is there any function in sqr to check whether the value retireved from the database field is a numeric or not..some thing like is numeric..I am retrieving the database field to a variable and I need to check whether that field is a numeric or not. Pls help Thanks Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users This e-mail and any files transmitted with it are for the sole use of the i= ntended recipient(s) and may contain confidential and privileged informatio= n. If you are not the intended recipient, please contact the sender by reply e= -mail and destroy all copies of the original message.=0D Any unauthorized review, use, disclosure, dissemination, forwarding, printi= ng or copying of this email or any action taken in reliance on this e-mail = is strictly=0D prohibited and may be unlawful. Visit us at http://www.cognizant.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 31 01:48:41 2006 Date: Thu, 31 Aug 2006 11:16:13 +0530 From: Sanjay Sambhe Subject: RE: [sqr-users] Checking for numeric datatype Code is fine...but this will cause surely a performance hindrance !! Any other way for this ? -----Original Message----- From: sqr-users-bounces+ssambhe=cisco.com@sqrug.org [mailto:sqr-users-bounces+ssambhe=cisco.com@sqrug.org] On Behalf Of B, Ravishankar (Cognizant) Sent: Thursday, August 31, 2006 10:02 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] Checking for numeric datatype Hi, Try this code snippet for checking occurrence of numeric values in a variable: While #i < length($Col1) add 1 to #i Let #out = ascii(substr($Col1,#i,1)) If not(range(#out,48,57)) Add 1 to #status End-If End-While If #status > 0 Let $NumFlag='F' Else Let $NumFlag='T' End-If CHEERS !!! Ravishankar "Most people are only alive because it is illegal to shoot them" -----Original Message----- From: sqr-users-bounces+ravishankar.b=cognizant.com@sqrug.org [mailto:sqr-users-bounces+ravishankar.b=cognizant.com@sqrug.org] On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Wednesday, August 30, 2006 11:15 PM To: sqr-users@sqrug.org Subject: [sqr-users] Checking for numeric datatype Hi, Is there any function in sqr to check whether the value retireved from the database field is a numeric or not..some thing like is numeric..I am retrieving the database field to a variable and I need to check whether that field is a numeric or not. Pls help Thanks Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com _______________________________________________ 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 From sqr-users-bounces@sqrug.org Thu Aug 31 02:10:20 2006 Date: Thu, 31 Aug 2006 16:07:17 +1000 From: "Ian Mills" Subject: RE: [sqr-users] Checking for numeric datatype Hi, Try the translate function.....leaving the last argument blank, it will rem= ove any character in the 2nd parameter string from the original string. let $ls_temp =3D translate($ls_string, '1234567890','') if length($ls_temp) > 0 let $as_msg =3D 'Numbers must be entered for day of month. :: ' || $as_= msg else .... Regards, Ian ORIX Australia Corp Ltd >>> ssambhe@cisco.com 31/08/2006 3:46 pm >>> Code is fine...but this will cause surely a performance hindrance !! Any other way for this ?=20 -----Original Message----- From: sqr-users-bounces+ssambhe=3Dcisco.com@sqrug.org=20 [mailto:sqr-users-bounces+ssambhe=3Dcisco.com@sqrug.org] On Behalf Of B, Ravishankar (Cognizant) Sent: Thursday, August 31, 2006 10:02 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] Checking for numeric datatype Hi, Try this code snippet for checking occurrence of numeric values in a variable: =20 While #i < length($Col1) add 1 to #i Let #out =3D ascii(substr($Col1,#i,1)) If not(range(#out,48,57)) Add 1 to #status End-If End-While If #status > 0 Let $NumFlag=3D'F' Else Let $NumFlag=3D'T' End-If CHEERS !!! Ravishankar "Most people are only alive because it is illegal to shoot them" -----Original Message----- From: sqr-users-bounces+ravishankar.b=3Dcognizant.com@sqrug.org=20 [mailto:sqr-users-bounces+ravishankar.b=3Dcognizant.com@sqrug.org] On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Wednesday, August 30, 2006 11:15 PM To: sqr-users@sqrug.org=20 Subject: [sqr-users] Checking for numeric datatype Hi, Is there any function in sqr to check whether the value retireved from the database field is a numeric or not..some thing like is numeric..I am retrieving the database field to a variable and I need to check whether that field is a numeric or not. Pls help Thanks Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 --=20 This message from ORIX Australia might contain confidential and/or privileged information. If you are not the intended recipient, any use, disclosure or copying of this message (or of any attachments to it) is not authorised. If you have received this message in error, please notify the sender immediately and delete the message and any attachments from your system. Please inform the sender if you do not wish to receive future communications by email. ORIX handles personal information according to a Privacy Policy that is consistent with the National Privacy Principles. Please let us know if you would like a copy. It is also available at http://www.orix.com.au . _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 31 08:47:34 2006 Date: Thu, 31 Aug 2006 08:43:36 -0400 From: "Vaidyanathan, Ramakrishnan \(GE, Corporate, consultant\)" Subject: [sqr-users] Reading all files from a path Hi, I have set of text files available in a specific path. I need to merge a= ll those text files into one single file. Those text files all start with a= date indicating when they have been run. Apart from the date the file name= also has some specific naming conventions like it shud start with PY and s= o on. For eg. the file name will be 20060606_PY_A.txt, 20060610_PY_A.txt, 2= 0060606_PY_B.txt, 20060610_PY_B.txt and so on. Is it possible to merge all = those files into one specific file for each category. For the eg mentioned = after merging files, the file names should be PY_A.txt (this is a result of= merging 2 files 20060606_PY_A.txt, 20060610_PY_A.txt), PY_B.txt (as a resu= lt of merging 2 files 20060606_PY_B.txt, 20060610_PY_B.txt ). Pls help Thanks Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 31 09:16:09 2006 Subject: RE: [sqr-users] Checking for numeric datatype Date: Thu, 31 Aug 2006 06:13:14 -0700 From: "Lynds,Rick" Assuming that you do not have decimal or negative numbers: Let $Temp =3D translate($Col1, '0123456789', '') If $Temp =3D '' Let $NumFlag=3D'T' Else Let $NumFlag=3D'F' End-If =20=20=20 -----Original Message----- From: sqr-users-bounces+rlynds=3Dmwdh2o.com@sqrug.org [mailto:sqr-users-bounces+rlynds=3Dmwdh2o.com@sqrug.org] On Behalf Of Sanjay Sambhe Sent: Wednesday, August 30, 2006 10:46 PM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] Checking for numeric datatype Code is fine...but this will cause surely a performance hindrance !! Any other way for this ?=20 -----Original Message----- From: sqr-users-bounces+ssambhe=3Dcisco.com@sqrug.org [mailto:sqr-users-bounces+ssambhe=3Dcisco.com@sqrug.org] On Behalf Of B, Ravishankar (Cognizant) Sent: Thursday, August 31, 2006 10:02 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] Checking for numeric datatype Hi, Try this code snippet for checking occurrence of numeric values in a variable: =20 While #i < length($Col1) add 1 to #i Let #out =3D ascii(substr($Col1,#i,1)) If not(range(#out,48,57)) Add 1 to #status End-If End-While If #status > 0 Let $NumFlag=3D'F' Else Let $NumFlag=3D'T' End-If CHEERS !!! Ravishankar "Most people are only alive because it is illegal to shoot them" -----Original Message----- From: sqr-users-bounces+ravishankar.b=3Dcognizant.com@sqrug.org [mailto:sqr-users-bounces+ravishankar.b=3Dcognizant.com@sqrug.org] On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Wednesday, August 30, 2006 11:15 PM To: sqr-users@sqrug.org Subject: [sqr-users] Checking for numeric datatype Hi, Is there any function in sqr to check whether the value retireved from the database field is a numeric or not..some thing like is numeric..I am retrieving the database field to a variable and I need to check whether that field is a numeric or not. Pls help Thanks Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com _______________________________________________ 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 From sqr-users-bounces@sqrug.org Thu Aug 31 09:26:37 2006 Subject: RE: [sqr-users] Checking for numeric datatype Date: Thu, 31 Aug 2006 18:50:20 +0530 From: "B, Ravishankar \(Cognizant\)" Then, we can check for decimals as well as negative values too as: Let $Temp =3D translate($Col1, '0123456789', '') If $Temp =3D '' or $Temp =3D '-' or $Temp =3D '.' Let $NumFlag=3D'T' Else Let $NumFlag=3D'F' End-If CHEERS !!! Ravishankar "Most people are only alive because it is illegal to shoot them" -----Original Message----- From: sqr-users-bounces+ravishankar.b=3Dcognizant.com@sqrug.org [mailto:sqr-users-bounces+ravishankar.b=3Dcognizant.com@sqrug.org] On Behalf Of Lynds,Rick Sent: Thursday, August 31, 2006 6:43 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Checking for numeric datatype Assuming that you do not have decimal or negative numbers: Let $Temp =3D translate($Col1, '0123456789', '') If $Temp =3D '' Let $NumFlag=3D'T' Else Let $NumFlag=3D'F' End-If =0D -----Original Message----- From: sqr-users-bounces+rlynds=3Dmwdh2o.com@sqrug.org [mailto:sqr-users-bounces+rlynds=3Dmwdh2o.com@sqrug.org] On Behalf Of Sanjay Sambhe Sent: Wednesday, August 30, 2006 10:46 PM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] Checking for numeric datatype Code is fine...but this will cause surely a performance hindrance !! Any other way for this ?=0D -----Original Message----- From: sqr-users-bounces+ssambhe=3Dcisco.com@sqrug.org [mailto:sqr-users-bounces+ssambhe=3Dcisco.com@sqrug.org] On Behalf Of B, Ravishankar (Cognizant) Sent: Thursday, August 31, 2006 10:02 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] Checking for numeric datatype Hi, Try this code snippet for checking occurrence of numeric values in a variable: =0D While #i < length($Col1) add 1 to #i Let #out =3D ascii(substr($Col1,#i,1)) If not(range(#out,48,57)) Add 1 to #status End-If End-While If #status > 0 Let $NumFlag=3D'F' Else Let $NumFlag=3D'T' End-If CHEERS !!! Ravishankar "Most people are only alive because it is illegal to shoot them" -----Original Message----- From: sqr-users-bounces+ravishankar.b=3Dcognizant.com@sqrug.org [mailto:sqr-users-bounces+ravishankar.b=3Dcognizant.com@sqrug.org] On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Wednesday, August 30, 2006 11:15 PM To: sqr-users@sqrug.org Subject: [sqr-users] Checking for numeric datatype Hi, Is there any function in sqr to check whether the value retireved from the database field is a numeric or not..some thing like is numeric..I am retrieving the database field to a variable and I need to check whether that field is a numeric or not. Pls help Thanks Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com _______________________________________________ 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 This e-mail and any files transmitted with it are for the sole use of the i= ntended recipient(s) and may contain confidential and privileged informatio= n. If you are not the intended recipient, please contact the sender by reply e= -mail and destroy all copies of the original message.=0D Any unauthorized review, use, disclosure, dissemination, forwarding, printi= ng or copying of this email or any action taken in reliance on this e-mail = is strictly=0D prohibited and may be unlawful. Visit us at http://www.cognizant.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 31 09:23:16 2006 Date: Thu, 31 Aug 2006 09:20:46 -0400 From: "White . Denise" Subject: [sqr-users] RE: Trying to write 3 outputs from the same SQR. Hi Jos=E9, It doesn't like the hyphens in your WRITE statements; you need to remove th= em. HTH, Denise M. White EBS Programmer/Analyst III Dynamics Research Corporation ------------------------------ Message: 10 Date: Wed, 30 Aug 2006 16:10:32 -0500 From: "Aguirre, Jose" Subject: [sqr-users] Trying to write 3 outputs from the same SQR. To: Message-ID: Content-Type: text/plain; charset=3D"iso-8859-1" Here are my erros: Error on line 168: (SQR 3503) Unknown variable type. write 1 from $SETID_VNDR:5 - Error on line 168: (SQR 3503) Unknown variable type. write 1 from $SETID_VNDR:5 - Error on line 172: (SQR 3702) Command not allowed in this section: begin-procedure Begin-Procedure Process-Vendor-Address Error on line 238: (SQR 3503) Unknown variable type. write 2 from $SETID_VNDR_ADDR:5 - Error on line 238: (SQR 3503) Unknown variable type. write 2 from $SETID_VNDR_ADDR:5 - Error on line 241: (SQR 3702) Command not allowed in this section: begin-procedure Begin-Procedure Process-Vendor-Status Error on line 283: (SQR 3503) Unknown variable type. write 3 from $FIELDVALUE:18 - Error on line 283: (SQR 3503) Unknown variable type. write 3 from $FIELDVALUE:18 - Here is my DQR syntax: !****************************** Begin-Report !****************************** do Init-Report IF $file_open1 =3D 'Y' do Process-Vendor END-IF IF $file_open2 =3D 'Y' do Process-Vendor-Address END-IF IF $file_open3 =3D 'Y' do Process-Vendor-Status END-IF ! display '' ! display 'Process Ended at: ' noline do Get-Current-Datetime display $AsOfNow ! do StdAPI-Term End-Report !****************************** Begin-Procedure Init-Report !****************************** do Init-Datetime do Init-Number do Get-Current-DateTime move 'ZZPO0027.SQR' to $ReportID do Format-DateTime($AsOfToday, $ReportDate, {DEFDATE}, '', '') let $DateStr =3D $ReportDate Let $ReportFile1 =3D 'FOLDER_PATH1\VENDOR' || '.txt' Let $ReportFile2 =3D 'FOLDER_PATH2\VENDOR_ADDRESS' || '.txt' Let $ReportFile3 =3D 'FOLDER_PATH3\VENDOR_STATUS' || '.txt' !DISPLAY $ReportFile1 !DISPLAY $ReportFile2 !DISPLAY $ReportFile3 open $ReportFile1 as 1 for-writing record=3D400 status=3D#status if #filestat !=3D 0 let $error_lit =3D 'error opening file' display $error_lit=20 display $file () else let $file_open1 =3D 'Y' display 'successful opening the file' end-if open $ReportFile2 as 2 for-writing record=3D400 status=3D#status if #filestat !=3D 0 let $error_lit =3D 'error opening file' display $error_lit=20 display $file () else let $file_open2 =3D 'Y' display 'successful opening the file' end-if open $ReportFile3 as 3 for-writing record=3D400 status=3D#status if #filestat !=3D 0 let $error_lit =3D 'error opening file' display $error_lit=20 display $file () else let $file_open3 =3D 'Y' display 'successful opening the file' end-if End-Procedure Init-Report ! ***************************************** Begin-Procedure Process-Vendor ! ***************************************** !write 1 from 'Begin select Vendor' Begin-SELECT A.SETID A.VENDOR_ID A.NAME1 A.NAME2 A.VENDOR_STATUS A.WTHD_SW A.VNDR_TIN B.TIN B.TIN_TYPE B.EFF_STATUS let $SETID_VNDR =3D rtrim(&A.SETID, ' ') let $VENDOR_ID_VNDR =3D rtrim(&A.VENDOR_ID, ' ') let $NAME1 =3D rtrim(&A.NAME1, ' ') let $NAME2 =3D rtrim(&A.NAME2,' ') let $VENDOR_STATUS =3D rtrim(&A.VENDOR_STATUS,' ') let $WTHD_SW =3D rtrim(&A.WTHD_SW,' ') let $VNDR_TIN =3D rtrim(&A.VNDR_TIN,' ') let $TIN =3D rtrim(&B.TIN,' ') let $TIN_TYPE =3D rtrim(&B.TIN_TYPE,' ') let $EFF_STATUS =3D rtrim(&B.EFF_STATUS,' ') do Write-Vendor FROM PS_VENDOR A, PS_VENDOR_WTHD B WHERE A.SETID =3D B.SETID AND A.VENDOR_ID =3D B.VENDOR_ID ORDER BY A.SETID, A.VENDOR_ID, A.NAME1 End-SELECT End-Procedure Process-Vendor ! ******************************************** Begin-Procedure Write-Vendor ! ******************************************** !WRITE 1 FROM 'BEGIN WRITE Vendor' write 1 from $SETID_VNDR:5 - $VENDOR_ID_VNDR:10 - $NAME1:40 - $NAME2:40 - $VENDOR_STATUS:1 - $WTHD_SW:1 - $VNDR_TIN:10 - $TIN:20 - $TIN_TYPE:1 - $EFF_STATUS:1 - !WRITE 1 FROM 'END WRITE Vendor' =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 End-Procedure Write-Vendor ! ***************************************** Begin-Procedure Process-Vendor-Address ! ***************************************** !write 2 from 'Begin Vendor-Address' Begin-SELECT C.SETID C.VENDOR_ID C.EFF_STATUS C.NAME1 C.NAME2 C.ADDRESS1 C.ADDRESS2 C.ADDRESS3 C.ADDRESS4 C.CITY C.STATE C.POSTAL=20 C.COUNTRY let $SETID_VNDR_ADDR =3D rtrim(&C.SETIDR, ' ') let $VENDOR_ID_VNDR_ADDR =3D rtrim(&C.VENDOR_ID, ' ') let $EFF_STATUS_VNDR_ADDR =3D rtrim(&C.EFF_STATUS,' ') let $NAME1_ADDR =3D rtrim(&C.NAME1,' ') let $NAME2_ADDR =3D rtrim(&C.NAME2,' ') let $ADDRESS1 =3D rtrim(&C.ADDRESS1,' ') let $ADDRESS2 =3D rtrim(&C.ADDRESS2,' ') let $ADDRESS3 =3D rtrim(&C.ADDRESS3,' ') let $ADDRESS4 =3D rtrim(&C.ADDRESS4,' ') let $CITY =3D rtrim(&C.CITY,' ') let $COUNTY =3D rtrim(&C.COUNTY,' ') let $STATE =3D rtrim(&C.STATE,' ') let $POSTAL =3D rtrim(&C.POSTAL,' ') do Write-Process-Vendor-Address FROM PS_VENDOR_ADDR C ORDER BY C.SETID, C.VENDOR_ID End-SELECT End-Procedure Process-Vendor-Address ! ******************************************** Begin-Procedure Write-Process-Vendor-Address ! ******************************************** !WRITE 2 FROM 'BEGIN WRITE Vendor-Address' write 2 from $SETID_VNDR_ADDR:5 - $VENDOR_ID_VNDR_ADDR:10 - $EFF_STATUS_VNDR_ADDR:1 - $ADDRESS1:10 - $NAME1_ADDR:40 - $NAME2_ADDR:40 - $ADDRESS1:35 - $ADDRESS2:35 - $ADDRESS3:35 - $ADDRESS4:35 - $CITY:30 - $COUNTY:35 - $STATE:10 - $POSTAL:35 - !WRITE 2 FROM 'END WRITE Vendor-Address' End-Procedure Write-Process-Vendor-Address ! ***************************************** Begin-Procedure Process-Vendor-Status ! ***************************************** !write 3 from 'Begin Vendor-Status' Begin-SELECT D.FIELDVALUE D.EFF_STATUS D.EFFDT D.XLATLONGNAME D.XLATSHORTNAME let $FIELDVALUE =3D rtrim(&D.FIELDVALUE, ' ') let $EFF_STATUS =3D rtrim(&D.EFF_STATUS, ' ') let $EFFDT =3D rtrim(&D.EFFDT,' ') let $XLATLONGNAME =3D rtrim(&D.XLATLONGNAME,' ') let $XLATSHORTNAME =3D rtrim(&D.XLATSHORTNAME,' ') do Write-Process-Vendor-Status FROM XLATTABLE D WHERE D.FIELDNAME =3D'VENDOR_STATUS' End-SELECT End-Procedure Process-Vendor-Address ! ******************************************** Begin-Procedure Write-Process-Vendor-Status ! ******************************************** !WRITE 3 FROM 'BEGIN WRITE Vendor-Address' write 3 from $FIELDVALUE:18 - $EFF_STATUS:1 - $EFFDT:10 - $XLATLONGNAME:30 - $XLATSHORTNAME:10 - !WRITE 3 FROM 'END WRITE Vendor-Status' End-Procedure Write-Process-Vendor-Status ! =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D INCLUDE F= ILES =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D !#include 'askaod.sqc' !Ask As Of Date Procedure !#include 'curdttim.sqc' !Get-Current-DateTime Procedure #include 'datetime.sqc' !Routines for date and time formatting #include 'number.sqc' !Routines for number formatting #include 'stdapi.sqc' !Update Process API ! =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Thanks, Jos=E9 A. Aguirre _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 31 09:43:27 2006 Date: Thu, 31 Aug 2006 09:41:12 -0400 From: don.barclay@srs.gov Subject: RE: [sqr-users] Checking for numeric datatype Or, since you said originally that you are pulling this value from a database table, can you make the field numeric and let the database enforce the numeric check? Just askin' Don _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Aug 31 09:59:54 2006 Subject: RE: [sqr-users] Reading all files from a path Date: Thu, 31 Aug 2006 08:57:39 -0500 From: "Knapp, Richard" I would use an operating system utility to do this. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Thursday, August 31, 2006 7:44 AM To: sqr-users@sqrug.org Subject: [sqr-users] Reading all files from a path Hi, I have set of text files available in a specific path. I need to merge all those text files into one single file. Those text files all start with a date indicating when they have been run. Apart from the date the file name also has some specific naming conventions like it shud start with PY and so on. For eg. the file name will be 20060606_PY_A.txt, 20060610_PY_A.txt, 20060606_PY_B.txt, 20060610_PY_B.txt and so on. Is it possible to merge all those files into one specific file for each category. For the eg mentioned after merging files, the file names should be PY_A.txt (this is a result of merging 2 files 20060606_PY_A.txt, 20060610_PY_A.txt), PY_B.txt (as a result of merging 2 files 20060606_PY_B.txt, 20060610_PY_B.txt ). Pls help Thanks Ram _______________________________________________ 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 From sqr-users-bounces@sqrug.org Thu Aug 31 11:40:12 2006 From: "Elvis Pressly" Subject: RE: [sqr-users] Trying to write 3 outputs from the same SQR. Date: Thu, 31 Aug 2006 15:37:25 +0000 Remove the dash (-) after the last field in every WRITE statements. >From: "Aguirre, Jose" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: >Subject: [sqr-users] Trying to write 3 outputs from the same SQR. >Date: Wed, 30 Aug 2006 16:10:32 -0500 > >Here are my erros: > >Error on line 168: > (SQR 3503) Unknown variable type. > write 1 from $SETID_VNDR:5 - > >Error on line 168: > (SQR 3503) Unknown variable type. > write 1 from $SETID_VNDR:5 - > >Error on line 172: > (SQR 3702) Command not allowed in this section: begin-procedure >Begin-Procedure Process-Vendor-Address > >Error on line 238: > (SQR 3503) Unknown variable type. > write 2 from $SETID_VNDR_ADDR:5 - > >Error on line 238: > (SQR 3503) Unknown variable type. > write 2 from $SETID_VNDR_ADDR:5 - > >Error on line 241: > (SQR 3702) Command not allowed in this section: begin-procedure >Begin-Procedure Process-Vendor-Status > >Error on line 283: > (SQR 3503) Unknown variable type. > write 3 from $FIELDVALUE:18 - > >Error on line 283: > (SQR 3503) Unknown variable type. > write 3 from $FIELDVALUE:18 - > > >Here is my DQR syntax: > >!****************************** >Begin-Report >!****************************** > > do Init-Report > > IF $file_open1 = 'Y' > do Process-Vendor > END-IF > > IF $file_open2 = 'Y' > do Process-Vendor-Address > END-IF > > IF $file_open3 = 'Y' > do Process-Vendor-Status > END-IF > >! display '' >! display 'Process Ended at: ' noline > do Get-Current-Datetime > display $AsOfNow > >! do StdAPI-Term > >End-Report > >!****************************** >Begin-Procedure Init-Report >!****************************** > > do Init-Datetime > do Init-Number > do Get-Current-DateTime > > move 'ZZPO0027.SQR' to $ReportID > > do Format-DateTime($AsOfToday, $ReportDate, {DEFDATE}, '', '') > let $DateStr = $ReportDate > > Let $ReportFile1 = 'FOLDER_PATH1\VENDOR' || '.txt' > Let $ReportFile2 = 'FOLDER_PATH2\VENDOR_ADDRESS' || '.txt' > Let $ReportFile3 = 'FOLDER_PATH3\VENDOR_STATUS' || '.txt' > >!DISPLAY $ReportFile1 >!DISPLAY $ReportFile2 >!DISPLAY $ReportFile3 > > open $ReportFile1 as 1 for-writing record=400 status=#status > > if #filestat != 0 > let $error_lit = 'error opening file' > display $error_lit > display $file () > else > let $file_open1 = 'Y' > display 'successful opening the file' > end-if > > open $ReportFile2 as 2 for-writing record=400 status=#status > > if #filestat != 0 > let $error_lit = 'error opening file' > display $error_lit > display $file () > else > let $file_open2 = 'Y' > display 'successful opening the file' > end-if > > > open $ReportFile3 as 3 for-writing record=400 status=#status > > if #filestat != 0 > let $error_lit = 'error opening file' > display $error_lit > display $file () > else > let $file_open3 = 'Y' > display 'successful opening the file' > end-if > >End-Procedure Init-Report > > >! ***************************************** >Begin-Procedure Process-Vendor >! ***************************************** > >!write 1 from 'Begin select Vendor' > >Begin-SELECT >A.SETID >A.VENDOR_ID >A.NAME1 >A.NAME2 >A.VENDOR_STATUS >A.WTHD_SW >A.VNDR_TIN >B.TIN >B.TIN_TYPE >B.EFF_STATUS > > let $SETID_VNDR = rtrim(&A.SETID, ' ') > let $VENDOR_ID_VNDR = rtrim(&A.VENDOR_ID, ' ') > let $NAME1 = rtrim(&A.NAME1, ' ') > let $NAME2 = rtrim(&A.NAME2,' ') > let $VENDOR_STATUS = rtrim(&A.VENDOR_STATUS,' ') > let $WTHD_SW = rtrim(&A.WTHD_SW,' ') > let $VNDR_TIN = rtrim(&A.VNDR_TIN,' ') > let $TIN = rtrim(&B.TIN,' ') > let $TIN_TYPE = rtrim(&B.TIN_TYPE,' ') > let $EFF_STATUS = rtrim(&B.EFF_STATUS,' ') > > do Write-Vendor > >FROM > PS_VENDOR A, PS_VENDOR_WTHD B >WHERE A.SETID = B.SETID >AND A.VENDOR_ID = B.VENDOR_ID >ORDER BY A.SETID, A.VENDOR_ID, A.NAME1 >End-SELECT > >End-Procedure Process-Vendor > >! ******************************************** >Begin-Procedure Write-Vendor >! ******************************************** > >!WRITE 1 FROM 'BEGIN WRITE Vendor' > > write 1 from $SETID_VNDR:5 - > $VENDOR_ID_VNDR:10 - > $NAME1:40 - > $NAME2:40 - > $VENDOR_STATUS:1 - > $WTHD_SW:1 - > $VNDR_TIN:10 - > $TIN:20 - > $TIN_TYPE:1 - > $EFF_STATUS:1 - > >!WRITE 1 FROM 'END WRITE Vendor' > >End-Procedure Write-Vendor > > >! ***************************************** >Begin-Procedure Process-Vendor-Address >! ***************************************** > >!write 2 from 'Begin Vendor-Address' > >Begin-SELECT >C.SETID >C.VENDOR_ID >C.EFF_STATUS >C.NAME1 >C.NAME2 >C.ADDRESS1 >C.ADDRESS2 >C.ADDRESS3 >C.ADDRESS4 >C.CITY >C.STATE >C.POSTAL >C.COUNTRY > > let $SETID_VNDR_ADDR = rtrim(&C.SETIDR, ' ') > let $VENDOR_ID_VNDR_ADDR = rtrim(&C.VENDOR_ID, ' ') > let $EFF_STATUS_VNDR_ADDR = rtrim(&C.EFF_STATUS,' ') > let $NAME1_ADDR = rtrim(&C.NAME1,' ') > let $NAME2_ADDR = rtrim(&C.NAME2,' ') > let $ADDRESS1 = rtrim(&C.ADDRESS1,' ') > let $ADDRESS2 = rtrim(&C.ADDRESS2,' ') > let $ADDRESS3 = rtrim(&C.ADDRESS3,' ') > let $ADDRESS4 = rtrim(&C.ADDRESS4,' ') > let $CITY = rtrim(&C.CITY,' ') > let $COUNTY = rtrim(&C.COUNTY,' ') > let $STATE = rtrim(&C.STATE,' ') > let $POSTAL = rtrim(&C.POSTAL,' ') > > do Write-Process-Vendor-Address > >FROM PS_VENDOR_ADDR C >ORDER BY C.SETID, C.VENDOR_ID >End-SELECT > >End-Procedure Process-Vendor-Address > >! ******************************************** >Begin-Procedure Write-Process-Vendor-Address >! ******************************************** > >!WRITE 2 FROM 'BEGIN WRITE Vendor-Address' > > > write 2 from $SETID_VNDR_ADDR:5 - > $VENDOR_ID_VNDR_ADDR:10 - > $EFF_STATUS_VNDR_ADDR:1 - > $ADDRESS1:10 - > $NAME1_ADDR:40 - > $NAME2_ADDR:40 - > $ADDRESS1:35 - > $ADDRESS2:35 - > $ADDRESS3:35 - > $ADDRESS4:35 - > $CITY:30 - > $COUNTY:35 - > $STATE:10 - > $POSTAL:35 - > >!WRITE 2 FROM 'END WRITE Vendor-Address' > >End-Procedure Write-Process-Vendor-Address > >! ***************************************** >Begin-Procedure Process-Vendor-Status >! ***************************************** > >!write 3 from 'Begin Vendor-Status' > >Begin-SELECT >D.FIELDVALUE >D.EFF_STATUS >D.EFFDT >D.XLATLONGNAME >D.XLATSHORTNAME > > let $FIELDVALUE = rtrim(&D.FIELDVALUE, ' ') > let $EFF_STATUS = rtrim(&D.EFF_STATUS, ' ') > let $EFFDT = rtrim(&D.EFFDT,' ') > let $XLATLONGNAME = rtrim(&D.XLATLONGNAME,' ') > let $XLATSHORTNAME = rtrim(&D.XLATSHORTNAME,' ') > > do Write-Process-Vendor-Status > >FROM XLATTABLE D >WHERE D.FIELDNAME ='VENDOR_STATUS' >End-SELECT > >End-Procedure Process-Vendor-Address > > >! ******************************************** >Begin-Procedure Write-Process-Vendor-Status >! ******************************************** > >!WRITE 3 FROM 'BEGIN WRITE Vendor-Address' > > > write 3 from $FIELDVALUE:18 - > $EFF_STATUS:1 - > $EFFDT:10 - > $XLATLONGNAME:30 - > $XLATSHORTNAME:10 - > >!WRITE 3 FROM 'END WRITE Vendor-Status' > >End-Procedure Write-Process-Vendor-Status > >! ===================== INCLUDE FILES ============================ >!#include 'askaod.sqc' !Ask As Of Date Procedure >!#include 'curdttim.sqc' !Get-Current-DateTime Procedure >#include 'datetime.sqc' !Routines for date and time formatting >#include 'number.sqc' !Routines for number formatting >#include 'stdapi.sqc' !Update Process API >! =============================================================== > >Thanks, > >José A. Aguirre > >_______________________________________________ >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 From sqr-users-bounces@sqrug.org Thu Aug 31 12:32:00 2006 Subject: RE: [sqr-users] Checking for numeric datatype Date: Thu, 31 Aug 2006 11:29:26 -0500 From: "Jim Womeldorf" Hi Ram, I see lots of suggestions for doing this but I think most of them have flaws in them. I would rather depend upon Oracle's ability to determine if a string is numeric or not. Try the following code and see if it would work for your situation. Jim begin-program let $x =3D '0012' do isnumeric($x,$yn) show $x ' ' $yn let $x =3D '0012-' do isnumeric($x,$yn) show $x ' ' $yn let $x =3D '-0.012' do isnumeric($x,$yn) show $x ' ' $yn let $x =3D '00..12' do isnumeric($x,$yn) show $x ' ' $yn let $x =3D '001-2' do isnumeric($x,$yn) show $x ' ' $yn let $x =3D '001a2' do isnumeric($x,$yn) show $x ' ' $yn let $x =3D '.001.2' do isnumeric($x,$yn) show $x ' ' $yn end-program =20=20=20=20=20=20=20=20=20=20=20=20=20=20 begin-procedure IsNumeric($X, :$Result)=20 begin-select on-error=3DWOOPS($Result) DECODE(to_number($X),NULL,'N','Y') &YN let $Result =3D &YN from dual end-select=20=20=20=20=20=20=20=20=20=20=20=20 end-procedure begin-procedure WOOPS(:$Result)=20=20=20=20=20=20=20=20=20=20 let $Result =3D 'N' end-procedure=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 =20 -----Original Message----- From: sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org] On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate, consultant) Sent: Wednesday, August 30, 2006 12:45 PM To: sqr-users@sqrug.org Subject: [sqr-users] Checking for numeric datatype Hi, Is there any function in sqr to check whether the value retireved from the database field is a numeric or not..some thing like is numeric..I am retrieving the database field to a variable and I need to check whether that field is a numeric or not. Pls help Thanks Ram _______________________________________________ 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 From sqr-users-bounces@sqrug.org Thu Aug 31 13:39:53 2006 Date: Thu, 31 Aug 2006 13:36:47 -0400 From: "George Jansen" Subject: RE: [sqr-users] Reading all files from a path Under the Korn shell: /tmp/demo>for i in `ls *PY*txt`;do > j=${i#*_} > cat $i >> $j > done >>> "Knapp, Richard" 8/31/2006 9:57 AM >>> I would use an operating system utility to do this. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Thursday, August 31, 2006 7:44 AM To: sqr-users@sqrug.org Subject: [sqr-users] Reading all files from a path Hi, I have set of text files available in a specific path. I need to merge all those text files into one single file. Those text files all start with a date indicating when they have been run. Apart from the date the file name also has some specific naming conventions like it shud start with PY and so on. For eg. the file name will be 20060606_PY_A.txt, 20060610_PY_A.txt, 20060606_PY_B.txt, 20060610_PY_B.txt and so on. Is it possible to merge all those files into one specific file for each category. For the eg mentioned after merging files, the file names should be PY_A.txt (this is a result of merging 2 files 20060606_PY_A.txt, 20060610_PY_A.txt), PY_B.txt (as a result of merging 2 files 20060606_PY_B.txt, 20060610_PY_B.txt ). Pls help Thanks Ram _______________________________________________ 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 From sqr-users-bounces@sqrug.org Thu Aug 31 13:54:03 2006 Subject: RE: [sqr-users] Reading all files from a path Date: Thu, 31 Aug 2006 13:51:16 -0400 From: "Vaidyanathan, Ramakrishnan \(GE, Corporate, consultant\)" Hi=20 From the below code, I coulnt follow the 2nd line j=3D${i#*_} Could you p= ls explain? Thanks Ram -----Original Message----- From: sqr-users-bounces+ramakrishnan.vaidyanathan=3Dge.com@sqrug.org [mailto:sqr-users-bounces+ramakrishnan.vaidyanathan=3Dge.com@sqrug.org]On Behalf Of George Jansen Sent: Thursday, August 31, 2006 1:37 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Reading all files from a path Under the Korn shell: /tmp/demo>for i in `ls *PY*txt`;do > j=3D${i#*_}=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 > cat $i >> $j > done >>> "Knapp, Richard" 8/31/2006 9:57 AM >>> I would use an operating system utility to do this. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu=20 -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org=20 [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Thursday, August 31, 2006 7:44 AM To: sqr-users@sqrug.org=20 Subject: [sqr-users] Reading all files from a path Hi, I have set of text files available in a specific path. I need to merge all those text files into one single file. Those text files all start with a date indicating when they have been run. Apart from the date the file name also has some specific naming conventions like it shud start with PY and so on. For eg. the file name will be 20060606_PY_A.txt, 20060610_PY_A.txt, 20060606_PY_B.txt, 20060610_PY_B.txt and so on. Is it possible to merge all those files into one specific file for each category. For the eg mentioned after merging files, the file names should be PY_A.txt (this is a result of merging 2 files 20060606_PY_A.txt, 20060610_PY_A.txt), PY_B.txt (as a result of merging 2 files 20060606_PY_B.txt, 20060610_PY_B.txt ). Pls help Thanks Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 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 From sqr-users-bounces@sqrug.org Thu Aug 31 15:19:26 2006 From: William R Cartmill Date: Thu, 31 Aug 2006 12:17:10 -0700 Subject: [sqr-users] Re: Trying to write 3 outputs from the same SQR. (Aguirre, Jose) SQR treats anything on the same line after an End-Procedure as a=20 comment. The problem is in your write statements. SQR uses a hyphen/dash, "-" as=20 a continuation character. In all of your write-... procedures the last=20 field in the write has a hyphen indicating to SQR that there should be=20 another line after that one with another field but the only thing after=20 those lines is the End-Procedure statement. So it's seeing the=20 End-Procedure as part of the write and not as an end-procedure so it=20 thinks it has two begin-procedure statements without an end-procedure.=20 Hence the "(SQR 3702) Command not allowed in this section:=20 begin-procedure Begin-Procedure Process-Vendor-Address" error and all=20 the others. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D WR Cartmill Technical Consultant, Client Integration Services ADP Financial and Compliance Services Voice: 510/645-1055 FAX: 510/217-6123 email: wrcartmill@earthlink.net On Aug 31, 2006, at 3:04, sqr-users-request@sqrug.org wrote: > > From: kota vijayalakshmi > Date: August 30, 2006 16:22:23 PDT > To: "This list is for discussion about the SQR database reporting=20 > language from Hyperion Solutions." > Subject: Re: [sqr-users] Trying to write 3 outputs from the same SQR. > Reply-To: "This list is for discussion about the SQR database=20 > reporting language from Hyperion Solutions." > > > Hi, > > Here is one mistake I found from the code: > > Instead of "End-Procedure Process-Vendor-Status" you coded it as > "End-Procedure Process-Vendor-Address". > > Correct it and see. > > -VJ > > "Aguirre, Jose" wrote: > Here are my erros: > > Error on line 168: > (SQR 3503) Unknown variable type. > write 1 from $SETID_VNDR:5 - > > Error on line 168: > (SQR 3503) Unknown variable type. > write 1 from $SETID_VNDR:5 - > > Error on line 172: > (SQR 3702) Command not allowed in this section: begin-procedure > Begin-Procedure Process-Vendor-Address > > Error on line 238: > (SQR 3503) Unknown variable type. > write 2 from $SETID_VNDR_ADDR:5 - > > Error on line 238: > (SQR 3503) Unknown variable type. > write 2 from $SETID_VNDR_ADDR:5 - > > Error on line 241: > (SQR 3702) Command not allowed in this section: begin-procedure > Begin-Procedure Process-Vendor-Status > > Error on line 283: > (SQR 3503) Unknown variable type. > write 3 from $FIELDVALUE:18 - > > Error on line 283: > (SQR 3503) Unknown variable type. > write 3 from $FIELDVALUE:18 - > > > Here is my DQR syntax: > > !****************************** > Begin-Report > !****************************** > > do Init-Report > > IF $file_open1 =3D 'Y' > do Process-Vendor > END-IF > > IF $file_open2 =3D 'Y' > do Process-Vendor-Address > END-IF > > IF $file_open3 =3D 'Y' > do Process-Vendor-Status > END-IF > > ! display '' > ! display 'Process Ended at: ' noline > do Get-Current-Datetime > display $AsOfNow > > ! do StdAPI-Term > > End-Report > > !****************************** > Begin-Procedure Init-Report > !****************************** > > do Init-Datetime > do Init-Number > do Get-Current-DateTime > > move 'ZZPO0027.SQR' to $ReportID > > do Format-DateTime($AsOfToday, $ReportDate, {DEFDATE}, '', '') > let $DateStr =3D $ReportDate > > Let $ReportFile1 =3D 'FOLDER_PATH1\VENDOR' || '.txt' > Let $ReportFile2 =3D 'FOLDER_PATH2\VENDOR_ADDRESS' || '.txt' > Let $ReportFile3 =3D 'FOLDER_PATH3\VENDOR_STATUS' || '.txt' > > !DISPLAY $ReportFile1 > !DISPLAY $ReportFile2 > !DISPLAY $ReportFile3 > > open $ReportFile1 as 1 for-writing record=3D400 status=3D#status > > if #filestat !=3D 0 > let $error_lit =3D 'error opening file' > display $error_lit > display $file () > else > let $file_open1 =3D 'Y' > display 'successful opening the file' > end-if > > open $ReportFile2 as 2 for-writing record=3D400 status=3D#status > > if #filestat !=3D 0 > let $error_lit =3D 'error opening file' > display $error_lit > display $file () > else > let $file_open2 =3D 'Y' > display 'successful opening the file' > end-if > > > open $ReportFile3 as 3 for-writing record=3D400 status=3D#status > > if #filestat !=3D 0 > let $error_lit =3D 'error opening file' > display $error_lit > display $file () > else > let $file_open3 =3D 'Y' > display 'successful opening the file' > end-if > > End-Procedure Init-Report > > > ! ***************************************** > Begin-Procedure Process-Vendor > ! ***************************************** > > !write 1 from 'Begin select Vendor' > > Begin-SELECT > A.SETID > A.VENDOR_ID > A.NAME1 > A.NAME2 > A.VENDOR_STATUS > A.WTHD_SW > A.VNDR_TIN > B.TIN > B.TIN_TYPE > B.EFF_STATUS > > let $SETID_VNDR =3D rtrim(&A.SETID, ' ') > let $VENDOR_ID_VNDR =3D rtrim(&A.VENDOR_ID, ' ') > let $NAME1 =3D rtrim(&A.NAME1, ' ') > let $NAME2 =3D rtrim(&A.NAME2,' ') > let $VENDOR_STATUS =3D rtrim(&A.VENDOR_STATUS,' ') > let $WTHD_SW =3D rtrim(&A.WTHD_SW,' ') > let $VNDR_TIN =3D rtrim(&A.VNDR_TIN,' ') > let $TIN =3D rtrim(&B.TIN,' ') > let $TIN_TYPE =3D rtrim(&B.TIN_TYPE,' ') > let $EFF_STATUS =3D rtrim(&B.EFF_STATUS,' ') > > do Write-Vendor > > FROM > PS_VENDOR A, PS_VENDOR_WTHD B > WHERE A.SETID =3D B.SETID > AND A.VENDOR_ID =3D B.VENDOR_ID > ORDER BY A.SETID, A.VENDOR_ID, A.NAME1 > End-SELECT > > End-Procedure Process-Vendor > > ! ******************************************** > Begin-Procedure Write-Vendor > ! ******************************************** > > !WRITE 1 FROM 'BEGIN WRITE Vendor' > > write 1 from $SETID_VNDR:5 - > $VENDOR_ID_VNDR:10 - > $NAME1:40 - > $NAME2:40 - > $VENDOR_STATUS:1 - > $WTHD_SW:1 - > $VNDR_TIN:10 - > $TIN:20 - > $TIN_TYPE:1 - > $EFF_STATUS:1 - > > !WRITE 1 FROM 'END WRITE Vendor' > > End-Procedure Write-Vendor > > > ! ***************************************** > Begin-Procedure Process-Vendor-Address > ! ***************************************** > > !write 2 from 'Begin Vendor-Address' > > Begin-SELECT > C.SETID > C.VENDOR_ID > C.EFF_STATUS > C.NAME1 > C.NAME2 > C.ADDRESS1 > C.ADDRESS2 > C.ADDRESS3 > C.ADDRESS4 > C.CITY > C.STATE > C.POSTAL > C.COUNTRY > > let $SETID_VNDR_ADDR =3D rtrim(&C.SETIDR, ' ') > let $VENDOR_ID_VNDR_ADDR =3D rtrim(&C.VENDOR_ID, ' ') > let $EFF_STATUS_VNDR_ADDR =3D rtrim(&C.EFF_STATUS,' ') > let $NAME1_ADDR =3D rtrim(&C.NAME1,' ') > let $NAME2_ADDR =3D rtrim(&C.NAME2,' ') > let $ADDRESS1 =3D rtrim(&C.ADDRESS1,' ') > let $ADDRESS2 =3D rtrim(&C.ADDRESS2,' ') > let $ADDRESS3 =3D rtrim(&C.ADDRESS3,' ') > let $ADDRESS4 =3D rtrim(&C.ADDRESS4,' ') > let $CITY =3D rtrim(&C.CITY,' ') > let $COUNTY =3D rtrim(&C.COUNTY,' ') > let $STATE =3D rtrim(&C.STATE,' ') > let $POSTAL =3D rtrim(&C.POSTAL,' ') > > do Write-Process-Vendor-Address > > FROM PS_VENDOR_ADDR C > ORDER BY C.SETID, C.VENDOR_ID > End-SELECT > > End-Procedure Process-Vendor-Address > > ! ******************************************** > Begin-Procedure Write-Process-Vendor-Address > ! ******************************************** > > !WRITE 2 FROM 'BEGIN WRITE Vendor-Address' > > > write 2 from $SETID_VNDR_ADDR:5 - > $VENDOR_ID_VNDR_ADDR:10 - > $EFF_STATUS_VNDR_ADDR:1 - > $ADDRESS1:10 - > $NAME1_ADDR:40 - > $NAME2_ADDR:40 - > $ADDRESS1:35 - > $ADDRESS2:35 - > $ADDRESS3:35 - > $ADDRESS4:35 - > $CITY:30 - > $COUNTY:35 - > $STATE:10 - > $POSTAL:35 - > > !WRITE 2 FROM 'END WRITE Vendor-Address' > > End-Procedure Write-Process-Vendor-Address > > ! ***************************************** > Begin-Procedure Process-Vendor-Status > ! ***************************************** > > !write 3 from 'Begin Vendor-Status' > > Begin-SELECT > D.FIELDVALUE > D.EFF_STATUS > D.EFFDT > D.XLATLONGNAME > D.XLATSHORTNAME > > let $FIELDVALUE =3D rtrim(&D.FIELDVALUE, ' ') > let $EFF_STATUS =3D rtrim(&D.EFF_STATUS, ' ') > let $EFFDT =3D rtrim(&D.EFFDT,' ') > let $XLATLONGNAME =3D rtrim(&D.XLATLONGNAME,' ') > let $XLATSHORTNAME =3D rtrim(&D.XLATSHORTNAME,' ') > > do Write-Process-Vendor-Status > > FROM XLATTABLE D > WHERE D.FIELDNAME =3D'VENDOR_STATUS' > End-SELECT > > End-Procedure Process-Vendor-Address > > > ! ******************************************** > Begin-Procedure Write-Process-Vendor-Status > ! ******************************************** > > !WRITE 3 FROM 'BEGIN WRITE Vendor-Address' > > > write 3 from $FIELDVALUE:18 - > $EFF_STATUS:1 - > $EFFDT:10 - > $XLATLONGNAME:30 - > $XLATSHORTNAME:10 - > > !WRITE 3 FROM 'END WRITE Vendor-Status' > > End-Procedure Write-Process-Vendor-Status > > ! =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D INCLUDE= FILES =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D > !#include 'askaod.sqc' !Ask As Of Date Procedure > !#include 'curdttim.sqc' !Get-Current-DateTime Procedure > #include 'datetime.sqc' !Routines for date and time formatting > #include 'number.sqc' !Routines for number formatting > #include 'stdapi.sqc' !Update Process API > ! =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > Thanks, > > Jos=E9 A. Aguirre > > _______________________________________________ > 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 From sqr-users-bounces@sqrug.org Thu Aug 31 16:15:12 2006 Subject: RE: [sqr-users] Re: Trying to write 3 outputs from the same SQR.(Aguirre, Jose) Date: Thu, 31 Aug 2006 15:12:27 -0500 From: "Aguirre, Jose" Thank you all - I got it working. Jos=E9 A. Aguirre -----Original Message----- From: sqr-users-bounces+jaguir=3Dlsuhsc.edu@sqrug.org [mailto:sqr-users-bou= nces+jaguir=3Dlsuhsc.edu@sqrug.org] On Behalf Of William R Cartmill Sent: Thursday, August 31, 2006 2:17 PM To: sqr-users@sqrug.org Subject: [sqr-users] Re: Trying to write 3 outputs from the same SQR.(Aguir= re, Jose) SQR treats anything on the same line after an End-Procedure as a comment. The problem is in your write statements. SQR uses a hyphen/dash, "-" as a c= ontinuation character. In all of your write-... procedures the last field i= n the write has a hyphen indicating to SQR that there should be another lin= e after that one with another field but the only thing after those lines is= the End-Procedure statement. So it's seeing the End-Procedure as part of t= he write and not as an end-procedure so it thinks it has two begin-procedur= e statements without an end-procedure.=20 Hence the "(SQR 3702) Command not allowed in this section:=20 begin-procedure Begin-Procedure Process-Vendor-Address" error and all the o= thers. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D WR Cartmill Technical Consultant, Client Integration Services ADP Financial and Compli= ance Services Voice: 510/645-1055 FAX: 510/217-6123 email: wrcartmill@earthlink.net On Aug 31, 2006, at 3:04, sqr-users-request@sqrug.org wrote: > > From: kota vijayalakshmi > Date: August 30, 2006 16:22:23 PDT > To: "This list is for discussion about the SQR database reporting=20 > language from Hyperion Solutions." > Subject: Re: [sqr-users] Trying to write 3 outputs from the same SQR. > Reply-To: "This list is for discussion about the SQR database=20 > reporting language from Hyperion Solutions." > > > Hi, > > Here is one mistake I found from the code: > > Instead of "End-Procedure Process-Vendor-Status" you coded it as > "End-Procedure Process-Vendor-Address". > > Correct it and see. > > -VJ > > "Aguirre, Jose" wrote: > Here are my erros: > > Error on line 168: > (SQR 3503) Unknown variable type. > write 1 from $SETID_VNDR:5 - > > Error on line 168: > (SQR 3503) Unknown variable type. > write 1 from $SETID_VNDR:5 - > > Error on line 172: > (SQR 3702) Command not allowed in this section: begin-procedure=20 > Begin-Procedure Process-Vendor-Address > > Error on line 238: > (SQR 3503) Unknown variable type. > write 2 from $SETID_VNDR_ADDR:5 - > > Error on line 238: > (SQR 3503) Unknown variable type. > write 2 from $SETID_VNDR_ADDR:5 - > > Error on line 241: > (SQR 3702) Command not allowed in this section: begin-procedure=20 > Begin-Procedure Process-Vendor-Status > > Error on line 283: > (SQR 3503) Unknown variable type. > write 3 from $FIELDVALUE:18 - > > Error on line 283: > (SQR 3503) Unknown variable type. > write 3 from $FIELDVALUE:18 - > > > Here is my DQR syntax: > > !****************************** > Begin-Report > !****************************** > > do Init-Report > > IF $file_open1 =3D 'Y' > do Process-Vendor > END-IF > > IF $file_open2 =3D 'Y' > do Process-Vendor-Address > END-IF > > IF $file_open3 =3D 'Y' > do Process-Vendor-Status > END-IF > > ! display '' > ! display 'Process Ended at: ' noline > do Get-Current-Datetime > display $AsOfNow > > ! do StdAPI-Term > > End-Report > > !****************************** > Begin-Procedure Init-Report > !****************************** > > do Init-Datetime > do Init-Number > do Get-Current-DateTime > > move 'ZZPO0027.SQR' to $ReportID > > do Format-DateTime($AsOfToday, $ReportDate, {DEFDATE}, '', '') let=20 > $DateStr =3D $ReportDate > > Let $ReportFile1 =3D 'FOLDER_PATH1\VENDOR' || '.txt' > Let $ReportFile2 =3D 'FOLDER_PATH2\VENDOR_ADDRESS' || '.txt' > Let $ReportFile3 =3D 'FOLDER_PATH3\VENDOR_STATUS' || '.txt' > > !DISPLAY $ReportFile1 > !DISPLAY $ReportFile2 > !DISPLAY $ReportFile3 > > open $ReportFile1 as 1 for-writing record=3D400 status=3D#status > > if #filestat !=3D 0 > let $error_lit =3D 'error opening file' > display $error_lit > display $file () > else > let $file_open1 =3D 'Y' > display 'successful opening the file' > end-if > > open $ReportFile2 as 2 for-writing record=3D400 status=3D#status > > if #filestat !=3D 0 > let $error_lit =3D 'error opening file' > display $error_lit > display $file () > else > let $file_open2 =3D 'Y' > display 'successful opening the file' > end-if > > > open $ReportFile3 as 3 for-writing record=3D400 status=3D#status > > if #filestat !=3D 0 > let $error_lit =3D 'error opening file' > display $error_lit > display $file () > else > let $file_open3 =3D 'Y' > display 'successful opening the file' > end-if > > End-Procedure Init-Report > > > ! ***************************************** > Begin-Procedure Process-Vendor > ! ***************************************** > > !write 1 from 'Begin select Vendor' > > Begin-SELECT > A.SETID > A.VENDOR_ID > A.NAME1 > A.NAME2 > A.VENDOR_STATUS > A.WTHD_SW > A.VNDR_TIN > B.TIN > B.TIN_TYPE > B.EFF_STATUS > > let $SETID_VNDR =3D rtrim(&A.SETID, ' ') let $VENDOR_ID_VNDR =3D=20 > rtrim(&A.VENDOR_ID, ' ') let $NAME1 =3D rtrim(&A.NAME1, ' ') let $NAME2= =20 > =3D rtrim(&A.NAME2,' ') let $VENDOR_STATUS =3D rtrim(&A.VENDOR_STATUS,' '= )=20 > let $WTHD_SW =3D rtrim(&A.WTHD_SW,' ') let $VNDR_TIN =3D=20 > rtrim(&A.VNDR_TIN,' ') let $TIN =3D rtrim(&B.TIN,' ') let $TIN_TYPE =3D= =20 > rtrim(&B.TIN_TYPE,' ') let $EFF_STATUS =3D rtrim(&B.EFF_STATUS,' ') > > do Write-Vendor > > FROM > PS_VENDOR A, PS_VENDOR_WTHD B > WHERE A.SETID =3D B.SETID > AND A.VENDOR_ID =3D B.VENDOR_ID > ORDER BY A.SETID, A.VENDOR_ID, A.NAME1 End-SELECT > > End-Procedure Process-Vendor > > ! ******************************************** > Begin-Procedure Write-Vendor > ! ******************************************** > > !WRITE 1 FROM 'BEGIN WRITE Vendor' > > write 1 from $SETID_VNDR:5 - > $VENDOR_ID_VNDR:10 - > $NAME1:40 - > $NAME2:40 - > $VENDOR_STATUS:1 - > $WTHD_SW:1 - > $VNDR_TIN:10 - > $TIN:20 - > $TIN_TYPE:1 - > $EFF_STATUS:1 - > > !WRITE 1 FROM 'END WRITE Vendor' > > End-Procedure Write-Vendor > > > ! ***************************************** > Begin-Procedure Process-Vendor-Address !=20 > ***************************************** > > !write 2 from 'Begin Vendor-Address' > > Begin-SELECT > C.SETID > C.VENDOR_ID > C.EFF_STATUS > C.NAME1 > C.NAME2 > C.ADDRESS1 > C.ADDRESS2 > C.ADDRESS3 > C.ADDRESS4 > C.CITY > C.STATE > C.POSTAL > C.COUNTRY > > let $SETID_VNDR_ADDR =3D rtrim(&C.SETIDR, ' ') let $VENDOR_ID_VNDR_ADDR= =20 > =3D rtrim(&C.VENDOR_ID, ' ') let $EFF_STATUS_VNDR_ADDR =3D=20 > rtrim(&C.EFF_STATUS,' ') let $NAME1_ADDR =3D rtrim(&C.NAME1,' ') let=20 > $NAME2_ADDR =3D rtrim(&C.NAME2,' ') let $ADDRESS1 =3D rtrim(&C.ADDRESS1,'= =20 > ') let $ADDRESS2 =3D rtrim(&C.ADDRESS2,' ') let $ADDRESS3 =3D=20 > rtrim(&C.ADDRESS3,' ') let $ADDRESS4 =3D rtrim(&C.ADDRESS4,' ') let=20 > $CITY =3D rtrim(&C.CITY,' ') let $COUNTY =3D rtrim(&C.COUNTY,' ') let=20 > $STATE =3D rtrim(&C.STATE,' ') let $POSTAL =3D rtrim(&C.POSTAL,' ') > > do Write-Process-Vendor-Address > > FROM PS_VENDOR_ADDR C > ORDER BY C.SETID, C.VENDOR_ID > End-SELECT > > End-Procedure Process-Vendor-Address > > ! ******************************************** > Begin-Procedure Write-Process-Vendor-Address !=20 > ******************************************** > > !WRITE 2 FROM 'BEGIN WRITE Vendor-Address' > > > write 2 from $SETID_VNDR_ADDR:5 - > $VENDOR_ID_VNDR_ADDR:10 - > $EFF_STATUS_VNDR_ADDR:1 - > $ADDRESS1:10 - > $NAME1_ADDR:40 - > $NAME2_ADDR:40 - > $ADDRESS1:35 - > $ADDRESS2:35 - > $ADDRESS3:35 - > $ADDRESS4:35 - > $CITY:30 - > $COUNTY:35 - > $STATE:10 - > $POSTAL:35 - > > !WRITE 2 FROM 'END WRITE Vendor-Address' > > End-Procedure Write-Process-Vendor-Address > > ! ***************************************** > Begin-Procedure Process-Vendor-Status > ! ***************************************** > > !write 3 from 'Begin Vendor-Status' > > Begin-SELECT > D.FIELDVALUE > D.EFF_STATUS > D.EFFDT > D.XLATLONGNAME > D.XLATSHORTNAME > > let $FIELDVALUE =3D rtrim(&D.FIELDVALUE, ' ') let $EFF_STATUS =3D=20 > rtrim(&D.EFF_STATUS, ' ') let $EFFDT =3D rtrim(&D.EFFDT,' ') let=20 > $XLATLONGNAME =3D rtrim(&D.XLATLONGNAME,' ') let $XLATSHORTNAME =3D=20 > rtrim(&D.XLATSHORTNAME,' ') > > do Write-Process-Vendor-Status > > FROM XLATTABLE D > WHERE D.FIELDNAME =3D'VENDOR_STATUS' > End-SELECT > > End-Procedure Process-Vendor-Address > > > ! ******************************************** > Begin-Procedure Write-Process-Vendor-Status !=20 > ******************************************** > > !WRITE 3 FROM 'BEGIN WRITE Vendor-Address' > > > write 3 from $FIELDVALUE:18 - > $EFF_STATUS:1 - > $EFFDT:10 - > $XLATLONGNAME:30 - > $XLATSHORTNAME:10 - > > !WRITE 3 FROM 'END WRITE Vendor-Status' > > End-Procedure Write-Process-Vendor-Status > > ! =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D INCLUDE= FILES =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=20 > !#include 'askaod.sqc' !Ask As Of Date Procedure !#include=20 > 'curdttim.sqc' !Get-Current-DateTime Procedure #include 'datetime.sqc'=20 > !Routines for date and time formatting #include 'number.sqc' !Routines=20 > for number formatting #include 'stdapi.sqc' !Update Process API !=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > Thanks, > > Jos=E9 A. Aguirre > > _______________________________________________ > 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 From sqr-users-bounces@sqrug.org Thu Aug 31 16:19:55 2006 Date: Thu, 31 Aug 2006 16:16:38 -0400 From: "George Jansen" Subject: RE: [sqr-users] Reading all files from a path trim off everything up to the first "_". >>> "Vaidyanathan, Ramakrishnan (GE, Corporate, consultant)" 8/31/2006 1:51 PM >>> Hi From the below code, I coulnt follow the 2nd line j=${i#*_} Could you pls explain? Thanks Ram -----Original Message----- From: sqr-users-bounces+ramakrishnan.vaidyanathan=ge.com@sqrug.org [mailto:sqr-users-bounces+ramakrishnan.vaidyanathan=ge.com@sqrug.org]On Behalf Of George Jansen Sent: Thursday, August 31, 2006 1:37 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Reading all files from a path Under the Korn shell: /tmp/demo>for i in `ls *PY*txt`;do > j=${i#*_} > cat $i >> $j > done >>> "Knapp, Richard" 8/31/2006 9:57 AM >>> I would use an operating system utility to do this. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Thursday, August 31, 2006 7:44 AM To: sqr-users@sqrug.org Subject: [sqr-users] Reading all files from a path Hi, I have set of text files available in a specific path. I need to merge all those text files into one single file. Those text files all start with a date indicating when they have been run. Apart from the date the file name also has some specific naming conventions like it shud start with PY and so on. For eg. the file name will be 20060606_PY_A.txt, 20060610_PY_A.txt, 20060606_PY_B.txt, 20060610_PY_B.txt and so on. Is it possible to merge all those files into one specific file for each category. For the eg mentioned after merging files, the file names should be PY_A.txt (this is a result of merging 2 files 20060606_PY_A.txt, 20060610_PY_A.txt), PY_B.txt (as a result of merging 2 files 20060606_PY_B.txt, 20060610_PY_B.txt ). Pls help Thanks Ram _______________________________________________ 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 _______________________________________________ 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 From sqr-users-bounces@sqrug.org Fri Sep 01 00:02:24 2006 Date: Fri, 1 Sep 2006 00:00:03 -0400 From: Nathan Stratton Treadway Subject: [sqr-users] Monthly sqr-users Hints Posting sqr-users Mailing List Hints and Guidelines Nathan Stratton Treadway, Ray Ontko & Co. (nathanst@ontko.com) $Revision: 1.22 $ $Date: 2005/08/19 05:12:40 $ This document gathers in one location information about the sqr-users mail list. It includes instructions for changing your subscription settings (including unsubscribing), as well are guidelines for using the list. ______________________________________________________________________ Table of Contents 1. Changes Since Previous Version 2. Introduction 2.1 sqr-users Mailing List 2.2 sqr-users Hints and Guidelines Document 2.3 Related Mailing Lists 3. Interacting with the list server 3.1 Subscribing to the list 3.2 Unsubscribing from the list 3.3 When your email address changes 3.4 Digests 3.5 Obtaining your password 3.6 Problems 4. Posting to the sqr-users List 4.1 General Guidelines 4.2 Posting a Message 4.3 Replying to a Message 5. Job Announcements ______________________________________________________________________ 1. Changes Since Previous Version Changes since the version dated 2005/08/19: o Added note about spam filtering and sender verification systems blocking subscription confirmation messages. 2. Introduction 2.1. sqr-users Mailing List The sqr-users mailing list was created to enable discussion related to the SQR database language from Hyperion (and to other products in the SQR product suite). Note: SQR used to be published by SQRIBE Technologies, which was merged into Brio Technology on August 3, 1999. Brio Technology changed its name to Brio Software in October 2001. On October 16, 2003, Hyperion acquired Brio Software. SQR and related applications have also been called "Brio.Report" and "Brio Reports". The mailing list is provided as a service of Ray Ontko & Co. A searchable archive of past postings to the mailing list is available from the SQR Users Group web site . 2.2. sqr-users Hints and Guidelines Document This document gives various hints and guidelines about the sqr-users mailing list. It will be posted approximately monthly to the mailing list so that new users can see it (and existing users can find it easily). An HTML version of the document is always available at http://www.sqrug.org/sqr-users/sqr-users-hints.html. If you have comments or suggestions about this document, please contact me directly at the address listed in the title section. This document is Copyright (C) 1999-2004 by Ray Ontko & Co. It may be freely copied and distributed provided it is not modified in any way and it retains the original copyright notice. 2.3. Related Mailing Lists Here are some mailing lists that cover topics relating to SQR in some way. sqr-jobs : SQR Jobs This list may be used for posting SQR-related resumes, recruitments, job announcements, project announcments, help- wanted, work-wanted ads, etc. To join, follow the link above, or send any message to "sqr-jobs-subscribe@yahoogroups.com". peoplesoft-fans : PeopleSoft Fans Moderated list covering technical and functional aspects of PeopleSoft. To join, follow the link above, or send any message to "peoplesoft-fans-subscribe@yahoogroups.com". psusers : PeopleSoft Users For questions related to any aspect of PeopleSoft (including PeopleSoft-specific SQR issues). This list has merged with the Peoplesoft Fans mailing list and is no longer active, but the message achive can still be found at the link above. HyperionSQR : Hyperion- SQR List for discussion of SQR, SQR Developer (formerly called Brio.Report and Report Builder), and SQR iServer. To join, follow the link above, or send any message to "HyperionSQR- subscribe@yahoogroups.com". rm-users : Report- Mart Users List for discussion of Brio Portal (previously called ReportMart). To join, follow the link above, or send a message containing the word "subscribe" in the body to "rm-users- request@sqrug.org". brioportalusersgroup : Brio Portal Users Group list List for discussion of Brio Portal. To join, follow the link above, or send any message to "brioportalusersgroup- subscribe@yahoogroups.com". brio-l : OpenITx Brio List List for technical and functional discussion of all Brio products (but most messages are currently about Brio Intelligence). To join, follow the link above. briousers : Brio.Enter- prise Users List for discussion of the Brio.Enterprise (now called Intelligence) product. To join, follow the link above, or send any message to "briousers-subscribe@yahoogroups.com". briolist : Brio List List for discussion of Brio Intelligence. To join, follow the link above, or send any message to "briolist- subscribe@yahoogroups.com". 3. Interacting with the list server The sqr-users mailing list is hosted using the Mailman list server package. All of the Mailman functions described below are accessed from the sqr-users List Info page, "http://www.sqrug.org/mailman/listinfo/sqr-users". 3.1. Subscribing to the list To subscribe to the mailing list, enter your e-mail address in the box at the top of the "Subscribing to sqr-users" section on the sqr-users List Info page, then choose a password to assign to your subscription and enter it in both "Password" boxes. This password is used to allow you to securely make changes to your subscription over the web. This password will be e-mailed back to you at varous times, so you should not use the same password as you are using elsewhere. Once you have filled in the password, click the "Subscribe" button. You should soon receive an e-mail message from the list server requesting confirmation of your subscription request. Once you have replied to this message and your subscription has been processed, you will receive a "welcome" message giving you more information on the list server, and as well as a reminder of the subscription password you chose. Many sites are now implementing spam filtering and/or sender verification systems, which can prevent your confirmation message from getting delivered to you. You may need check for a message from "sqr- users-request[-AT-]sqrug.org" caught in the filter, or add that address to your list of authorized senders, in order to complete the confirmation process. 3.2. Unsubscribing from the list To unsubscribe from the list, go to the sqr-users List Info page, enter your e-mail address in the "sqr-users Subscribers" section near the bottom of the page, and click the "Unsubscribe or edit options" button. You will then see the "member options" page; fill in your password at the top of the page and click "Log in". (If you have forgotton your password, see the ``Obtaining your Password'' section, below). This will take you to the "membership configuration" page. In the middle of that page, there will be an "Unsubscribing from sqr- users" section; simply turn on the "Yes, I really want to unsubscribe" checkbox and click the "Unsubscribe" button. You should get a page back saying that the removal was successful (as well as a confirmation email message). The removal will take effect immediately; there is no need to send in a confirmation e-mail message. If you don't know your password, you can choose to unsubscribe using e-mail confirmation. Instead of entering the password on the "member options" page, just click the "Unsubscribe" button found just below the "Log In" button. You will then see a page noting that a confirmation e-mail has been sent; once you follow the confirmation instructions in that e-mail your removal will be complete. 3.3. When your email address changes If your e-mail address changes -- for example, if your company changes names, or if your mail administrator changes the way your name is spelled out or abbreviated -- you will need to update your subscription to match your new address before you can post to the list (see the ``Posting'' section, below). To do this, simply log in to your "membership configuration" page (see the directions for logging in to this page in the ``Unsubscribing'' section, above). At the top of that page you'll see a "Changing your membership information" section. Fill out the text boxes and click the "Change My Address and Name" button. You will be sent a confirmation e-mail, and once you have responded to that e-mail your subscription will be updated and you can begin posting from your new address. 3.4. Digests You can request to get your messages in digest form (one large message containing all of the posts made each day). To do this, log in to your "membership configuration" page (see the directions on doing this in the ``Unsubscribing'' section, above). At the bottom of the page, you will see a section titled "Your sqr-users Subscription Options". Change the "Set Digest Mode" option (the second option in the list) to "On" and click the "Submit My Changes" button at the bottom of the page. You actually have a choice of two different digest formats, "MIME" or "Plain Text". The MIME format sends each individual list message as a separate MIME attachment to the digest; the plain text format consists of one large text message, with all of the individual messages run together. Which format you will want to use depends on your mail- reading software (and personal preference). If you are not sure which format will work best, you can just leave the default setting of "MIME" and see if the next morning's digest is easy to read in your mail reader -- you can change to the other format at any time using that same web page. If you use digests, you should not just "reply" to the digest mailing. Instead, be sure your message's subject header matches the subject in the original posting to which you are replying, and that you don't include a quoted copy of the entire digest in your post. To restore normal distribution, simply follow the above instructions choosing the "Off" setting for the Digest option. 3.5. Obtaining your password You will not be able to change your subscription options without your password. If you have forgotten your password, simply click the "Email My Password to Me" button on the "member options" page and your password will be emailed to you. You will also be e-mailed a copy of your password at the beginning of each month, as part of a "mailing list memberships reminder" message from the Mailman software. 3.6. Problems If the above instructions do not work, please contact the list manager at "sqr-users-manager@sqrug.org". (Do not send a message to the list itself -- no one there can help you with your problem!) Please include a description of what you were trying to do and what exactly happened when you made the attempt. 4. Posting to the sqr-users List In order to post to the mailing list, you must be subscribed to it (see directions above). More specifically, in order for Mailman to recognize that this message was sent by a subscriber, the return address on your message much exactly match the addresss you used to subscribe -- if you have more than one address you will need to be sure that you are sending from the correct one. (See the ``When you email address changes'' section, above, if your e-mail address has changed since you subscribed.) 4.1. General Guidelines For any message you send to the list, please: o make sure your mail software is not requesting a "Return Receipt". (If a "Return Receipt Requested" message is sent to the list, several dozen receipt messages will be sent out to the mailing list as other subscribers' mail systems repond....) o do not send messages in HTML or other special formats. (These are not usable by many subscribers, especially those who receive their messages in digest format.) The list server will delete these special attachments from your message and send you a warning notice. Also, if you are trying to send (for example) SQR source code files, make sure your mail-reader software is assigning proper MIME types to your attachments or they may not be distributed. o keep in mind that over 500 people will receive your message, and that it will appear in the list archives. Try to keep your messages on-topic and relatively short. Consider sending your message directly to particular people if it won't interest many of the list's subscribers. o ignore abusive and inappropriate messages that get sent to the list, rather than getting drawn into a debate. The very nature of these messages will cause most subscribers to automatically discredit them -- no "response" is necessary. To the contrary, any response will only "add fuel to the fire," prolonging the controversy and further interupting the normal conversation on the list. 4.2. Posting a Message Once you are subscribed, you can post to the list by sending a message to "sqr-users@sqrug.org". Be sure your subject heading describes your specific problem or question (i.e. don't just use "SQR Question"). In the body of your message, please include the following information: o SQR product name and version number (see notes below) o Operating system name and version number o Database name and version number o Application name (i.e. PeopleSoft) and a version number, if any Also, include a short code sample whenever possible. It's much easier for other people to understand what you are trying to do when they can see the actual code. (At the same time, be careful not to post confidential or proprietary code, since the posting will be placed in a public web archive.) Note that your question should relate to SQR or other Brio Report product in some way. Don't ask questions about PeopleSoft, for example, unless you are having SQR-related issues. (For PeopleSoft- specific questions, see other lists mentioned in the ``Related Mailing Lists'' section.) In 2001, PeopleSoft purchased from Brio the rights to the source code for SQR and began releasing its own line of SQR. PeopleSoft's SQR version numbering is different from Brio/Hyperion's, so it's very important to mention whether you are using Hyperion's "SQR" or "SQR for PeopleSoft". (This info is included automatically if you include the full SQR version-id string as described below.) To get the version-id string for your copy of SQR, you can run the following program: begin-program show $sqr-ver end-program This will produce a line that looks something like this: SQR/3.0.15/Intel/SCO Unix R3.2 V5.0/Oracle 7.2.2.3/Sep 25 1996 Include the full line of output in your message. Note that the oper- ating system and database version numbers listed here are the ones under which this copy of SQR was compiled, so you'll still need to include this information for your own environment. In a command-line environment (Unix, etc.), you can also get this version-id string by saying sqr -id 4.3. Replying to a Message Messages sent out on the list have a Reply-To header pointing to the list. This means that you should be able to simply use your mail reader's "reply" function to send a reply to the list. Generally, all answers to questions sent out on the list should be public replies, so that other subscribers can benefit. In those cases where a private reply is appropriate, be sure to over-ride the default Reply-To address. If your message is not actually a reply to the earlier message, please do not use the "reply" function. Instead, address a new e-mail message to the list as described in the previous section. (This is because the list archives will incorrectly show the new message in the original thread if you use "reply".) You should quote enough lines from the original message that later readers can understand your answer even if they missed the original question. At the same time, you should remove any unnecessary lines from the quote in order to make your message shorter and easier to understand. (Remember that some people read the mailing list in digest form, and the digests become much larger if unnecessary lines are quoted.) 5. Job Announcements Please do not post job announcements on the sqr-users list, but use the sqr-jobs list instead. (See ``Related Mailing Lists'' for more information on this list.) A large number of sqr-users subscribers do not want to receive job announcements (for various reasons) and such posts tend to cause a lot of disruption of the discussion on the list. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 07 12:15:55 2006 Date: Thu, 7 Sep 2006 12:13:42 -0400 From: "Neal Spungen" Subject: [sqr-users] SQR Report Writer Consultant Needed for 3 Month+ Project in the DC Area Hello, My client needs an experienced SQR Report Writer for a 3 month engagement that will probably turn into 6 months or more. The client location is in the greater DC area. The timeframe is immediate, and the compensation is flexible. We are looking for candidates with strong SQR experience, preferably several years. Please send me an email with your resume and contact information if you're interested. Thank you, Neal _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Sep 07 13:23:30 2006 Date: Thu, 07 Sep 2006 13:21:22 -0400 From: Ray Ontko Subject: Re: [sqr-users] SQR Report Writer Consultant Needed for 3 Month+ Project in the DC Area Hi Neal, Thanks for the note. We encourage you to use the sqr-jobs list instead of this one for job-related announcements. Visit: http://tech.groups.yahoo.com/group/sqr-jobs/ Ray Neal Spungen wrote: > Hello, > > My client needs an experienced SQR Report Writer for a 3 month engagement > that will probably turn into 6 months or more. The client location is in > the greater DC area. The timeframe is immediate, and the compensation is > flexible. We are looking for candidates with strong SQR experience, > preferably several years. > > Please send me an email with your resume and contact information if > you're > interested. > > Thank you, > > Neal > > _______________________________________________ > 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 From sqr-users-bounces@sqrug.org Fri Sep 08 15:22:32 2006 Date: Fri, 8 Sep 2006 12:20:19 -0700 From: "Saffiulla Mohamed" Subject: [sqr-users] Passing a Variable Value as an Expression String to DECODE(), is it possible? My apologies in advance - I'm the quintessential SQR newbie. That being said, I was hoping to receive assistance w/ the following: I'm having trouble using a variable value as the expression string in a decode statement. This works perfectly fine when I supply a static expression string, however, when I try to make the code more dynamic, the pattern no longer matches. For example STATIC EXAMPLE: ... max (decode(bl.abbreviation, 'FR','Y',bl.abbreviation,'N')) (,#FIRST_POS) max (decode(bl.abbreviation, 'IT','Y',bl.abbreviation,'N')) (,#POS1) max (decode(bl.abbreviation, 'GE','Y',bl.abbreviation,'N')) (,#POS2) max (decode(bl.abbreviation, 'ES','Y',bl.abbreviation,'N')) (,#POS3) ... That works fine, I'm using a two letter ISO language abbreviation. Now if I try to do this dynamically, my pattern no longer appears as a match, and I always return 'N' DYNAMIC EXAMPLE: I have an array of language data, one element of which contains the ISO abbreviation. I use the a variation of the above but in a loop ... LET $ISO_ABBREVIATION = UPPER(LANG_COL_ARRAY.ABBREVIATION(#PRINT_TRANSLATION_DETAIL_COUNTER)) max (decode(bl.abbreviation, TRIM($ISO_ABBREVIATION),'Y',bl.abbreviation,'N')) (,+5) ... I've tried numerous variations of the immediately above line, but still the pattern fails to match. I'm assuming it must have something to do with char/string types and or conversion variances...but at this point i'm lost and could use some advise! Any direction would be greatly appreciated!! thank you!! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Sep 08 15:35:04 2006 From: "Alexander, Steven" Subject: RE: [sqr-users] Passing a Variable Value as an Expression String toDECODE(), is it possible? Date: Fri, 8 Sep 2006 12:32:23 -0700 In order to use a variable in place of an expression, put square brackets around it: max (decode(bl.abbreviation, TRIM([$ISO_ABBREVIATION]),'Y',bl.abbreviation,'N')) (,+5) -----Original Message----- From: Saffiulla Mohamed [mailto:mohigro@gmail.com] Sent: Friday, September 08, 2006 12:20 PM To: sqr-users@sqrug.org Subject: [sqr-users] Passing a Variable Value as an Expression String toDECODE(), is it possible? My apologies in advance - I'm the quintessential SQR newbie. That being said, I was hoping to receive assistance w/ the following: I'm having trouble using a variable value as the expression string in a decode statement. This works perfectly fine when I supply a static expression string, however, when I try to make the code more dynamic, the pattern no longer matches. For example STATIC EXAMPLE: ... max (decode(bl.abbreviation, 'FR','Y',bl.abbreviation,'N')) (,#FIRST_POS) max (decode(bl.abbreviation, 'IT','Y',bl.abbreviation,'N')) (,#POS1) max (decode(bl.abbreviation, 'GE','Y',bl.abbreviation,'N')) (,#POS2) max (decode(bl.abbreviation, 'ES','Y',bl.abbreviation,'N')) (,#POS3) ... That works fine, I'm using a two letter ISO language abbreviation. Now if I try to do this dynamically, my pattern no longer appears as a match, and I always return 'N' DYNAMIC EXAMPLE: I have an array of language data, one element of which contains the ISO abbreviation. I use the a variation of the above but in a loop ... LET $ISO_ABBREVIATION = UPPER(LANG_COL_ARRAY.ABBREVIATION(#PRINT_TRANSLATION_DETAIL_COUNTER)) max (decode(bl.abbreviation, TRIM($ISO_ABBREVIATION),'Y',bl.abbreviation,'N')) (,+5) ... I've tried numerous variations of the immediately above line, but still the pattern fails to match. I'm assuming it must have something to do with char/string types and or conversion variances...but at this point i'm lost and could use some advise! Any direction would be greatly appreciated!! thank you!! _______________________________________________ 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 From sqr-users-bounces@sqrug.org Fri Sep 08 15:46:23 2006 From: "the dragon" Subject: RE: [sqr-users] Passing a Variable Value as an Expression String toDECODE(), is it possible? Date: Fri, 08 Sep 2006 14:43:43 -0500 put in some show statements so you can actually see what you're working weith and debug it that way. clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- My apologies in advance - I'm the quintessential SQR newbie. That being said, I was hoping to receive assistance w/ the following: I'm having trouble using a variable value as the expression string in a decode statement. This works perfectly fine when I supply a static expression string, however, when I try to make the code more dynamic, the pattern no longer matches. For example STATIC EXAMPLE: ... max (decode(bl.abbreviation, 'FR','Y',bl.abbreviation,'N')) (,#FIRST_POS) max (decode(bl.abbreviation, 'IT','Y',bl.abbreviation,'N')) (,#POS1) max (decode(bl.abbreviation, 'GE','Y',bl.abbreviation,'N')) (,#POS2) max (decode(bl.abbreviation, 'ES','Y',bl.abbreviation,'N')) (,#POS3) ... That works fine, I'm using a two letter ISO language abbreviation. Now if I try to do this dynamically, my pattern no longer appears as a match, and I always return 'N' DYNAMIC EXAMPLE: I have an array of language data, one element of which contains the ISO abbreviation. I use the a variation of the above but in a loop ... LET $ISO_ABBREVIATION = UPPER(LANG_COL_ARRAY.ABBREVIATION(#PRINT_TRANSLATION_DETAIL_COUNTER)) max (decode(bl.abbreviation, TRIM($ISO_ABBREVIATION),'Y',bl.abbreviation,'N')) (,+5) ... I've tried numerous variations of the immediately above line, but still the pattern fails to match. I'm assuming it must have something to do with char/string types and or conversion variances...but at this point i'm lost and could use some advise! Any direction would be greatly appreciated!! thank you!! _________________________________________________________________ Get real-time traffic reports with Windows Live Local Search http://local.live.com/default.aspx?v=2&cp=42.336065~-109.392273&style=r&lvl=4&scene=3712634&trfc=1 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Sep 08 16:47:45 2006 From: "Alexander, Steven" Subject: RE: [sqr-users] Passing a Variable Value as an Expression String toDECODE(), is it possible? Date: Fri, 8 Sep 2006 13:44:56 -0700 Sorry, I missed this: I don't think TRIM is a SQL function or an SQR function. There's LTRIM and RTRIM in SQL and in SQR, but not TRIM. -----Original Message----- From: Alexander, Steven [mailto:Steven.Alexander@sanjoseca.gov] Sent: Friday, September 08, 2006 12:32 PM To: 'This list is for discussion about the SQR database reportinglanguagefrom Hyperion Solutions.' Subject: RE: [sqr-users] Passing a Variable Value as an Expression String toDECODE(), is it possible? In order to use a variable in place of an expression, put square brackets around it: max (decode(bl.abbreviation, TRIM([$ISO_ABBREVIATION]),'Y',bl.abbreviation,'N')) (,+5) -----Original Message----- From: Saffiulla Mohamed [mailto:mohigro@gmail.com] Sent: Friday, September 08, 2006 12:20 PM To: sqr-users@sqrug.org Subject: [sqr-users] Passing a Variable Value as an Expression String toDECODE(), is it possible? My apologies in advance - I'm the quintessential SQR newbie. That being said, I was hoping to receive assistance w/ the following: I'm having trouble using a variable value as the expression string in a decode statement. This works perfectly fine when I supply a static expression string, however, when I try to make the code more dynamic, the pattern no longer matches. For example STATIC EXAMPLE: ... max (decode(bl.abbreviation, 'FR','Y',bl.abbreviation,'N')) (,#FIRST_POS) max (decode(bl.abbreviation, 'IT','Y',bl.abbreviation,'N')) (,#POS1) max (decode(bl.abbreviation, 'GE','Y',bl.abbreviation,'N')) (,#POS2) max (decode(bl.abbreviation, 'ES','Y',bl.abbreviation,'N')) (,#POS3) ... That works fine, I'm using a two letter ISO language abbreviation. Now if I try to do this dynamically, my pattern no longer appears as a match, and I always return 'N' DYNAMIC EXAMPLE: I have an array of language data, one element of which contains the ISO abbreviation. I use the a variation of the above but in a loop ... LET $ISO_ABBREVIATION = UPPER(LANG_COL_ARRAY.ABBREVIATION(#PRINT_TRANSLATION_DETAIL_COUNTER)) max (decode(bl.abbreviation, TRIM($ISO_ABBREVIATION),'Y',bl.abbreviation,'N')) (,+5) ... I've tried numerous variations of the immediately above line, but still the pattern fails to match. I'm assuming it must have something to do with char/string types and or conversion variances...but at this point i'm lost and could use some advise! Any direction would be greatly appreciated!! thank you!! _______________________________________________ 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 From sqr-users-bounces@sqrug.org Fri Sep 08 16:58:34 2006 Subject: RE: [sqr-users] Passing a Variable Value as an Expression String toDECODE(), is it possible? Date: Fri, 8 Sep 2006 15:56:38 -0500 From: "Knapp, Richard" MySQL has a trim function. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Alexander, Steven Sent: Friday, September 08, 2006 3:45 PM To: 'This list is for discussion about the SQR database reportinglanguagefrom Hyperion Solutions.' Subject: RE: [sqr-users] Passing a Variable Value as an Expression String toDECODE(), is it possible? Sorry, I missed this: I don't think TRIM is a SQL function or an SQR function. There's LTRIM and RTRIM in SQL and in SQR, but not TRIM. -----Original Message----- From: Alexander, Steven [mailto:Steven.Alexander@sanjoseca.gov]=20 Sent: Friday, September 08, 2006 12:32 PM To: 'This list is for discussion about the SQR database reportinglanguagefrom Hyperion Solutions.' Subject: RE: [sqr-users] Passing a Variable Value as an Expression String toDECODE(), is it possible? In order to use a variable in place of an expression, put square brackets around it: max (decode(bl.abbreviation, TRIM([$ISO_ABBREVIATION]),'Y',bl.abbreviation,'N')) (,+5) -----Original Message----- From: Saffiulla Mohamed [mailto:mohigro@gmail.com]=20 Sent: Friday, September 08, 2006 12:20 PM To: sqr-users@sqrug.org Subject: [sqr-users] Passing a Variable Value as an Expression String toDECODE(), is it possible? My apologies in advance - I'm the quintessential SQR newbie. That being said, I was hoping to receive assistance w/ the following: I'm having trouble using a variable value as the expression string in a decode statement. This works perfectly fine when I supply a static expression string, however, when I try to make the code more dynamic, the pattern no longer matches. For example STATIC EXAMPLE: ... max (decode(bl.abbreviation, 'FR','Y',bl.abbreviation,'N')) (,#FIRST_POS) max (decode(bl.abbreviation, 'IT','Y',bl.abbreviation,'N')) (,#POS1) max (decode(bl.abbreviation, 'GE','Y',bl.abbreviation,'N')) (,#POS2) max (decode(bl.abbreviation, 'ES','Y',bl.abbreviation,'N')) (,#POS3) ... That works fine, I'm using a two letter ISO language abbreviation. Now if I try to do this dynamically, my pattern no longer appears as a match, and I always return 'N' DYNAMIC EXAMPLE: I have an array of language data, one element of which contains the ISO abbreviation. I use the a variation of the above but in a loop ... LET $ISO_ABBREVIATION =3D UPPER(LANG_COL_ARRAY.ABBREVIATION(#PRINT_TRANSLATION_DETAIL_COUNTER)) max (decode(bl.abbreviation, TRIM($ISO_ABBREVIATION),'Y',bl.abbreviation,'N')) (,+5) ... I've tried numerous variations of the immediately above line, but still the pattern fails to match. I'm assuming it must have something to do with char/string types and or conversion variances...but at this point i'm lost and could use some advise! Any direction would be greatly appreciated!! thank you!! _______________________________________________ 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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Sep 08 17:24:10 2006 Date: Fri, 8 Sep 2006 14:21:47 -0700 From: "Saffiulla Mohamed" Subject: Re: [sqr-users] Passing a Variable Value as an Expression String toDECODE(), is it possible? thanks for all the input so far... I've tried variations of all suggestions so far, still having issues: -- I removed TRIM, as it is an SQL function, not inherently an SQR function (although I thought all left-most lines within a begin/end sql block were run as SQL...meaning any valid SQL commands could be included there...but, I pulled it out anyway) -- I added the brackets around the variable, so it looks like: max (decode(bl.abbreviation, TRIM([$ISO_ABBREVIATION]),'Y',bl.abbreviation,'N')) LANGUAGE (,+5) I get the following Error Message: (SQR 5528) ORACLE OCIStmtExecute error 936 in cursor 7: ORA-00936: missing expression SQL: SELECT PG.PKG_NAME, max (decode(bl.abbreviation, TRIM( GROUP BY PG.PKG_NAME So...still having issues... oh, btw I should probably have mentioned that the database I'm using is Oracle. -- I also tried including some intermediate output statements to be able to "see" what was happening...the variable just shows up as (:1) and I'm wondering if the problem has more to do with when SQR compiles the sql statement. -- I did get a response recommending revising my approach, and possibly considering using CASE statements, which I think would have the same problem when it came to the variable replacement. some background on the approach: the sql statement is being used to create a sort of "activity-report'. When a language specific transaction occurs the business users want to see a 'Y', if there is no language transaction, then a 'N'. The stress is that the list of languages (which will essentially represent the columns) is not static. It can, and will, grow. The purpose behind using the variable in the DECODE statement is to allow for sqr file to adjust to addition of languages, without requiring developer maintenance. On 9/8/06, Alexander, Steven wrote: > Sorry, I missed this: I don't think TRIM is a SQL function or an SQR > function. There's LTRIM and RTRIM in SQL and in SQR, but not TRIM. > > -----Original Message----- > From: Alexander, Steven [mailto:Steven.Alexander@sanjoseca.gov] > Sent: Friday, September 08, 2006 12:32 PM > To: 'This list is for discussion about the SQR database > reportinglanguagefrom Hyperion Solutions.' > Subject: RE: [sqr-users] Passing a Variable Value as an Expression String > toDECODE(), is it possible? > > In order to use a variable in place of an expression, put square brackets > around it: > > max (decode(bl.abbreviation, > TRIM([$ISO_ABBREVIATION]),'Y',bl.abbreviation,'N')) > (,+5) > > -----Original Message----- > From: Saffiulla Mohamed [mailto:mohigro@gmail.com] > Sent: Friday, September 08, 2006 12:20 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] Passing a Variable Value as an Expression String > toDECODE(), is it possible? > > My apologies in advance - I'm the quintessential SQR newbie. > That being said, I was hoping to receive assistance w/ the following: > > I'm having trouble using a variable value as the expression string in a > decode statement. > This works perfectly fine when I supply a static expression string, however, > when I try to make the > code more dynamic, the pattern no longer matches. For example > > STATIC EXAMPLE: > ... > max (decode(bl.abbreviation, 'FR','Y',bl.abbreviation,'N')) (,#FIRST_POS) > max (decode(bl.abbreviation, 'IT','Y',bl.abbreviation,'N')) (,#POS1) > max (decode(bl.abbreviation, 'GE','Y',bl.abbreviation,'N')) (,#POS2) > max (decode(bl.abbreviation, 'ES','Y',bl.abbreviation,'N')) (,#POS3) > ... > > That works fine, I'm using a two letter ISO language abbreviation. > > Now if I try to do this dynamically, my pattern no longer appears as a > match, and I always return 'N' > > DYNAMIC EXAMPLE: > I have an array of language data, one element of which contains the ISO > abbreviation. I use the a variation of the above > but in a loop > ... > LET $ISO_ABBREVIATION = > UPPER(LANG_COL_ARRAY.ABBREVIATION(#PRINT_TRANSLATION_DETAIL_COUNTER)) > > max (decode(bl.abbreviation, > TRIM($ISO_ABBREVIATION),'Y',bl.abbreviation,'N')) > (,+5) > ... > > I've tried numerous variations of the immediately above line, but still the > pattern fails to match. I'm assuming it must have something to do with > char/string types and or conversion variances...but at this point i'm lost > and could use some advise! > > Any direction would be greatly appreciated!! > > thank you!! > > _______________________________________________ > 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 > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sat Sep 09 12:07:38 2006 Date: Sat, 09 Sep 2006 09:04:12 -0700 From: David Donnelly Subject: [sqr-users] Re: Passing a Variable Value as an Expression String to DECODE(), is it possible? Saffiula, First, do put some debugging show statements in to be sure you're getting what you expect in your variable. You shouldn't need to use dynamic SQR (square brackets); simple substitution should work. Remember though, that this substitution is done ONCE, before the select starts. Sometimes newbies try to do this: begin-select abbreviation &code max (decode(bl.abbreviation, TRIM(&code),'Y',bl.abbreviation,'N')) (,+5) from bl etc and this will not work. Maybe you should show us more of the select statement, and the loop if it is outside the select. Also, as usual, if you have any local procedures, make sure you have indicated $_global-variables correctly. Dave _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sun Sep 10 11:24:23 2006 Date: Sun, 10 Sep 2006 08:21:42 -0700 (PDT) From: curiosity5 Subject: [sqr-users] sqr not responding My db is sqlbase 6.1. I moved my databases from winnt server to win2003 server. I was able to log into the application and run small sqr/crystal reports in both servers. Client is winxp. The application allows user to select certain criterias to run an sqr report. It works when one of the criteria is selected or left blank in winnt. When all fields or criterias are left blank, it creates a huge report and takes more than 10 minutes. The sqr creates ~100 log files in the same location as the database. When I tried to run it in win2003 server with the criterias left blank, it created ~50 log files and the sqr stop responding..no error messages...waited for 2 hours. First time I ran it in win2003,it has "bad return fetching row" and I couldn't connect to the database. I tested it again by copying the database and log files from the old server to the new server. This time it didn't give me any error message, sqr stopped responding, ~50 log files created (should be about 100). HELP! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sun Sep 10 12:30:56 2006 Date: Sun, 10 Sep 2006 12:28:11 -0400 From: "Larry Roux" Subject: Re: [sqr-users] sqr not responding Try adding some display statements to see where it is hanging. I suspect it is hitting some SQL that is taking too long to respond and there is a timeout occurring. Larry Roux Information Systems Syracuse University lroux@syr.edu >>> curiosity5@yahoo.com 09/10/06 11:21 AM >>> My db is sqlbase 6.1. I moved my databases from winnt server to win2003 server. I was able to log into the application and run small sqr/crystal reports in both servers. Client is winxp. The application allows user to select certain criterias to run an sqr report. It works when one of the criteria is selected or left blank in winnt. When all fields or criterias are left blank, it creates a huge report and takes more than 10 minutes. The sqr creates ~100 log files in the same location as the database. When I tried to run it in win2003 server with the criterias left blank, it created ~50 log files and the sqr stop responding..no error messages...waited for 2 hours. First time I ran it in win2003,it has "bad return fetching row" and I couldn't connect to the database. I tested it again by copying the database and log files from the old server to the new server. This time it didn't give me any error message, sqr stopped responding, ~50 log files created (should be about 100). HELP! _______________________________________________ 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 From sqr-users-bounces@sqrug.org Sun Sep 10 12:48:17 2006 Date: Sun, 10 Sep 2006 09:45:36 -0700 (PDT) From: curiosity5 Subject: Re: [sqr-users] sqr not responding ...not sure how to do this.. it's an outside vendor application.. what troubles me is that it works in winnt server not in win2003 which has more memory, space, speed etc... I was getting an error message at first because of the sqlcon.ini. After I copied the sqlcon.ini from the old server to the new server, I didn't get any error messages. I was wondering if there is a "timeout" setting in the configuration files. Larry Roux wrote: Try adding some display statements to see where it is hanging. I suspect it is hitting some SQL that is taking too long to respond and there is a timeout occurring. Larry Roux Information Systems Syracuse University lroux@syr.edu >>> curiosity5@yahoo.com 09/10/06 11:21 AM >>> My db is sqlbase 6.1. I moved my databases from winnt server to win2003 server. I was able to log into the application and run small sqr/crystal reports in both servers. Client is winxp. The application allows user to select certain criterias to run an sqr report. It works when one of the criteria is selected or left blank in winnt. When all fields or criterias are left blank, it creates a huge report and takes more than 10 minutes. The sqr creates ~100 log files in the same location as the database. When I tried to run it in win2003 server with the criterias left blank, it created ~50 log files and the sqr stop responding..no error messages...waited for 2 hours. First time I ran it in win2003,it has "bad return fetching row" and I couldn't connect to the database. I tested it again by copying the database and log files from the old server to the new server. This time it didn't give me any error message, sqr stopped responding, ~50 log files created (should be about 100). HELP! _______________________________________________ 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 From sqr-users-bounces@sqrug.org Mon Sep 11 13:17:42 2006 Date: Mon, 11 Sep 2006 10:15:23 -0700 From: "Saffiulla Mohamed" Subject: Re: [sqr-users] Re: Passing a Variable Value as an Expression String to DECODE(), is it possible? Thanks for the input Dave, I've included the procedure in question below. It includes debugging show statements. I have also included the resulting show output. The variable substitution is occurring within a loop, however, it's not based on a &column_var from the same SQL statement. Rather, I'm attempting to execute a loop that replaces a variable in the MAX(DECODE) statement. That variable is being pulled from an array. I guess my issue may have more to do with when SQR compiles the sql statements, and maybe what I'm trying isn't possible with this tool. Here's whole procedure: !-------------------------------------------------------------------------------- !PROCEDURE: PRINT_TRANSLATION_DETAIL !-------------------------------------------------------------------------------- BEGIN-PROCEDURE PRINT_TRANSLATION_DETAIL (#RESORT) LET #PRINT_TRANSLATION_DETAIL_COUNTER = 0 SHOW '---------------------------------------------------------------------' SHOW 'BEGIN SELECT FOR ' #RESORT BEGIN-SELECT ON-ERROR =PROCESS_ERROR POSITION (+1) ! ADVANCE 1 LINE FROM CURRENT POSITION PG.PKG_NAME (,1) WHILE #PRINT_TRANSLATION_DETAIL_COUNTER < #_LANG_COUNT MOVE '' TO $ABB !RESET $ABB LET $ABB = UPPER(LANG_COL_ARRAY.ABBREVIATION(#PRINT_TRANSLATION_DETAIL_COUNTER)) SHOW '>' $abb '<' #PRINT_TRANSLATION_DETAIL_COUNTER max (decode(bl.abbreviation, LTRIM(RTRIM($ABB,''),''),'Y',bl.abbreviation,'N')) LANGUAGE (,+5) ADD 1 TO #PRINT_TRANSLATION_DETAIL_COUNTER END-WHILE MOVE 0 TO #PRINT_TRANSLATION_DETAIL_COUNTER FROM PM_RESORT_TRANSLATION RT, PM_TRANS_LANGUAGE TL, PM_TRANS_BWI_LANGUAGE BL, PM_RESORT_PKG_GENERIC PG WHERE TL.PM_TRANS_BWI_LANGUAGE_ID = BL.PM_TRANS_BWI_LANGUAGE_SEQNO AND RT.PM_TRANS_LANGUAGE_ID = TL.PM_TRANS_LANGUAGE_SEQNO AND RT.CONTENT_IDENTIFIER = PG.PKG_GENERIC_SEQNO AND RT.RESORT = #RESORT GROUP BY PG.PKG_NAME!, RT.RESORT END-SELECT SHOW '---------------------------------------------------------------------' SHOW 'END SELECT FOR ' #RESORT END-PROCEDURE !-------------------------------------------------------------------------------------------------------------------- When I run the above I get the following debugging output: BEGIN PROCESSING AT 09:58:00 --------------------------- BEGIN SELECT FOR 10.000000 >FR<0.000000 >DE<1.000000 >IT<2.000000 >ES<3.000000 >ZH<4.000000 >JA<5.000000 >KO<6.000000 >B7<7.000000 >NL<8.000000 >FI<9.000000 >PT<10.000000 >SV<11.000000 END SELECT FOR 10.000000 --------------------------- According the to output, I am getting the values intended for the variable. I thought about your statement regarding the error in using the loop within the select. So I decided to try a single MAX(DECODE) statement, within which I passed a variable only once. So, instead of having a loop, I simply said: Let $ABB = 'FR' and then used $ABB in a single MAX(DECODE) statement. My thought was, that if my error was attempting the loop, and since I could see that my variables were returning accurate values, that should work. However, when I ran that modified test...the pattern matching still failed!...The only way it worked, was when i replaced the variable all together and just used the literal 'FR' in the statement. That's a major reason why I'm wondering about possible conversion issues when the SQL statement is actually being created. At anyrate, I will keep trying some things, and definitely report back with whatever solution eventually works... keep bringing the suggestions though, I really appreciate everyone's time and consideration!! :) On 9/9/06, David Donnelly wrote: > Saffiula, > > First, do put some debugging show statements in to be sure you're getting > what you expect in your variable. > > You shouldn't need to use dynamic SQR (square brackets); simple > substitution should work. > > Remember though, that this substitution is done ONCE, before the select > starts. Sometimes newbies try to do this: > > begin-select > > abbreviation &code > max (decode(bl.abbreviation, TRIM(&code),'Y',bl.abbreviation,'N')) (,+5) > > from bl > > etc > > and this will not work. > > Maybe you should show us more of the select statement, and the loop if it > is outside the select. > > Also, as usual, if you have any local procedures, make sure you have > indicated $_global-variables correctly. > > Dave > > > _______________________________________________ > 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 From sqr-users-bounces@sqrug.org Mon Sep 11 14:15:29 2006 Date: Mon, 11 Sep 2006 11:12:36 -0700 (PDT) From: curiosity5 Subject: Re: [sqr-users] sqr not responding I tried to run the same sqr report using another database and it stopped responding after creating 10 log files. I also tried to run the same report knowing that there are no records in the database with the same criterias selected except for one and it also stopped responding and no log files have created. How do I view the .sqt, run it and debug it? Larry Roux wrote: Try adding some display statements to see where it is hanging. I suspect it is hitting some SQL that is taking too long to respond and there is a timeout occurring. Larry Roux Information Systems Syracuse University lroux@syr.edu >>> curiosity5@yahoo.com 09/10/06 11:21 AM >>> My db is sqlbase 6.1. I moved my databases from winnt server to win2003 server. I was able to log into the application and run small sqr/crystal reports in both servers. Client is winxp. The application allows user to select certain criterias to run an sqr report. It works when one of the criteria is selected or left blank in winnt. When all fields or criterias are left blank, it creates a huge report and takes more than 10 minutes. The sqr creates ~100 log files in the same location as the database. When I tried to run it in win2003 server with the criterias left blank, it created ~50 log files and the sqr stop responding..no error messages...waited for 2 hours. First time I ran it in win2003,it has "bad return fetching row" and I couldn't connect to the database. I tested it again by copying the database and log files from the old server to the new server. This time it didn't give me any error message, sqr stopped responding, ~50 log files created (should be about 100). HELP! _______________________________________________ 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 From sqr-users-bounces@sqrug.org Mon Sep 11 15:52:37 2006 From: "Alexander, Steven" Subject: RE: [sqr-users] Re: Passing a Variable Value as an Expression Stringto DECODE(), is it possible? Date: Mon, 11 Sep 2006 12:49:43 -0700 The Begin-Select loop forms a SQL statement once, and sends it to your database server once. The loop is for each row that the statement returns. Perhaps you can put the Begin-Select loop inside the #PRINT_TRANSLATION_DETAIL_COUNTER while-loop. -----Original Message----- From: Saffiulla Mohamed [mailto:mohigro@gmail.com] Sent: Monday, September 11, 2006 10:15 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] Re: Passing a Variable Value as an Expression Stringto DECODE(), is it possible? Thanks for the input Dave, I've included the procedure in question below. It includes debugging show statements. I have also included the resulting show output. The variable substitution is occurring within a loop, however, it's not based on a &column_var from the same SQL statement. Rather, I'm attempting to execute a loop that replaces a variable in the MAX(DECODE) statement. That variable is being pulled from an array. I guess my issue may have more to do with when SQR compiles the sql statements, and maybe what I'm trying isn't possible with this tool. Here's whole procedure: !--------------------------------------------------------------------------- ----- !PROCEDURE: PRINT_TRANSLATION_DETAIL !--------------------------------------------------------------------------- ----- BEGIN-PROCEDURE PRINT_TRANSLATION_DETAIL (#RESORT) LET #PRINT_TRANSLATION_DETAIL_COUNTER = 0 SHOW '---------------------------------------------------------------------' SHOW 'BEGIN SELECT FOR ' #RESORT BEGIN-SELECT ON-ERROR =PROCESS_ERROR POSITION (+1) ! ADVANCE 1 LINE FROM CURRENT POSITION PG.PKG_NAME (,1) WHILE #PRINT_TRANSLATION_DETAIL_COUNTER < #_LANG_COUNT MOVE '' TO $ABB !RESET $ABB LET $ABB = UPPER(LANG_COL_ARRAY.ABBREVIATION(#PRINT_TRANSLATION_DETAIL_COUNTER)) SHOW '>' $abb '<' #PRINT_TRANSLATION_DETAIL_COUNTER max (decode(bl.abbreviation, LTRIM(RTRIM($ABB,''),''),'Y',bl.abbreviation,'N')) LANGUAGE (,+5) ADD 1 TO #PRINT_TRANSLATION_DETAIL_COUNTER END-WHILE MOVE 0 TO #PRINT_TRANSLATION_DETAIL_COUNTER FROM PM_RESORT_TRANSLATION RT, PM_TRANS_LANGUAGE TL, PM_TRANS_BWI_LANGUAGE BL, PM_RESORT_PKG_GENERIC PG WHERE TL.PM_TRANS_BWI_LANGUAGE_ID = BL.PM_TRANS_BWI_LANGUAGE_SEQNO AND RT.PM_TRANS_LANGUAGE_ID = TL.PM_TRANS_LANGUAGE_SEQNO AND RT.CONTENT_IDENTIFIER = PG.PKG_GENERIC_SEQNO AND RT.RESORT = #RESORT GROUP BY PG.PKG_NAME!, RT.RESORT END-SELECT SHOW '---------------------------------------------------------------------' SHOW 'END SELECT FOR ' #RESORT END-PROCEDURE !--------------------------------------------------------------------------- ----------------------------------------- When I run the above I get the following debugging output: BEGIN PROCESSING AT 09:58:00 --------------------------- BEGIN SELECT FOR 10.000000 >FR<0.000000 >DE<1.000000 >IT<2.000000 >ES<3.000000 >ZH<4.000000 >JA<5.000000 >KO<6.000000 >B7<7.000000 >NL<8.000000 >FI<9.000000 >PT<10.000000 >SV<11.000000 END SELECT FOR 10.000000 --------------------------- According the to output, I am getting the values intended for the variable. I thought about your statement regarding the error in using the loop within the select. So I decided to try a single MAX(DECODE) statement, within which I passed a variable only once. So, instead of having a loop, I simply said: Let $ABB = 'FR' and then used $ABB in a single MAX(DECODE) statement. My thought was, that if my error was attempting the loop, and since I could see that my variables were returning accurate values, that should work. However, when I ran that modified test...the pattern matching still failed!...The only way it worked, was when i replaced the variable all together and just used the literal 'FR' in the statement. That's a major reason why I'm wondering about possible conversion issues when the SQL statement is actually being created. At anyrate, I will keep trying some things, and definitely report back with whatever solution eventually works... keep bringing the suggestions though, I really appreciate everyone's time and consideration!! :) On 9/9/06, David Donnelly wrote: > Saffiula, > > First, do put some debugging show statements in to be sure you're getting > what you expect in your variable. > > You shouldn't need to use dynamic SQR (square brackets); simple > substitution should work. > > Remember though, that this substitution is done ONCE, before the select > starts. Sometimes newbies try to do this: > > begin-select > > abbreviation &code > max (decode(bl.abbreviation, TRIM(&code),'Y',bl.abbreviation,'N')) (,+5) > > from bl > > etc > > and this will not work. > > Maybe you should show us more of the select statement, and the loop if it > is outside the select. > > Also, as usual, if you have any local procedures, make sure you have > indicated $_global-variables correctly. > > Dave > > > _______________________________________________ > 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 From sqr-users-bounces@sqrug.org Mon Sep 11 16:10:22 2006 From: "the dragon" Subject: Re: [sqr-users] sqr not responding Date: Mon, 11 Sep 2006 15:07:34 -0500 OK, I don't understand this multiple log file creation..... An sqr program will create a single log file. Can you please explain? Maybe provide us with the output from a log file? peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- I tried to run the same sqr report using another database and it stopped responding after creating 10 log files. I also tried to run the same report knowing that there are no records in the database with the same criterias selected except for one and it also stopped responding and no log files have created. How do I view the .sqt, run it and debug it? Larry Roux wrote: Try adding some display statements to see where it is hanging. I suspect it is hitting some SQL that is taking too long to respond and there is a timeout occurring. Larry Roux Information Systems Syracuse University lroux@syr.edu >>> curiosity5@yahoo.com 09/10/06 11:21 AM >>> My db is sqlbase 6.1. I moved my databases from winnt server to win2003 server. I was able to log into the application and run small sqr/crystal reports in both servers. Client is winxp. The application allows user to select certain criterias to run an sqr report. It works when one of the criteria is selected or left blank in winnt. When all fields or criterias are left blank, it creates a huge report and takes more than 10 minutes. The sqr creates ~100 log files in the same location as the database. When I tried to run it in win2003 server with the criterias left blank, it created ~50 log files and the sqr stop responding..no error messages...waited for 2 hours. First time I ran it in win2003,it has "bad return fetching row" and I couldn't connect to the database. I tested it again by copying the database and log files from the old server to the new server. This time it didn't give me any error message, sqr stopped responding, ~50 log files created (should be about 100). HELP! _________________________________________________________________ Get the new Windows Live Messenger! http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 11 17:23:35 2006 Date: Mon, 11 Sep 2006 14:21:16 -0700 From: "Saffiulla Mohamed" Subject: Re: [sqr-users] Re: Passing a Variable Value as an Expression Stringto DECODE(), is it possible? a MILLION thanks Steven! Well, lesson learned. > The Begin-Select loop forms a SQL statement once, and sends it to your > database server once. That was my logical error. I took your advice and encapsulated the MAX(DECODE) section into it's own begin-select procedure block. Then I simply called it from within my original begin-select procedure...so that it ran for each record returned therein, making sure to pass some key params, and viola!...same effect reached!!! in retrospect, that seems like such a simple solution, I guess I was being stubborn and just banging my head against the wall trying to get it to work the way I wanted. In reality, I was just making the problem too compicated thanks again, to you and everyone else who provided input!!! On 9/11/06, Alexander, Steven wrote: > The Begin-Select loop forms a SQL statement once, and sends it to your > database server once. The loop is for each row that the statement returns. > Perhaps you can put the Begin-Select loop inside the > #PRINT_TRANSLATION_DETAIL_COUNTER while-loop. > > -----Original Message----- > From: Saffiulla Mohamed [mailto:mohigro@gmail.com] > Sent: Monday, September 11, 2006 10:15 AM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: Re: [sqr-users] Re: Passing a Variable Value as an Expression > Stringto DECODE(), is it possible? > > Thanks for the input Dave, > > I've included the procedure in question below. It includes debugging > show statements. I have also included the resulting show output. > > The variable substitution is occurring within a loop, however, it's > not based on a &column_var from the same SQL statement. Rather, I'm > attempting to execute a loop that replaces a variable in the > MAX(DECODE) statement. That variable is being pulled from an array. > I guess my issue may have more to do with when SQR compiles the sql > statements, and maybe what I'm trying isn't possible with this tool. > > Here's whole procedure: > > !--------------------------------------------------------------------------- > ----- > !PROCEDURE: PRINT_TRANSLATION_DETAIL > !--------------------------------------------------------------------------- > ----- > BEGIN-PROCEDURE PRINT_TRANSLATION_DETAIL (#RESORT) > > LET #PRINT_TRANSLATION_DETAIL_COUNTER = 0 > > SHOW > '---------------------------------------------------------------------' > SHOW 'BEGIN SELECT FOR ' #RESORT > > BEGIN-SELECT ON-ERROR =PROCESS_ERROR > > POSITION (+1) ! ADVANCE 1 LINE FROM CURRENT POSITION > PG.PKG_NAME > (,1) > > WHILE #PRINT_TRANSLATION_DETAIL_COUNTER < #_LANG_COUNT > MOVE '' TO $ABB !RESET $ABB > > LET $ABB = > UPPER(LANG_COL_ARRAY.ABBREVIATION(#PRINT_TRANSLATION_DETAIL_COUNTER)) > > SHOW '>' $abb '<' #PRINT_TRANSLATION_DETAIL_COUNTER > > max (decode(bl.abbreviation, > LTRIM(RTRIM($ABB,''),''),'Y',bl.abbreviation,'N')) LANGUAGE (,+5) > > ADD 1 TO #PRINT_TRANSLATION_DETAIL_COUNTER > > END-WHILE > > MOVE 0 TO #PRINT_TRANSLATION_DETAIL_COUNTER > > FROM PM_RESORT_TRANSLATION RT, PM_TRANS_LANGUAGE TL, > PM_TRANS_BWI_LANGUAGE BL, PM_RESORT_PKG_GENERIC PG > > WHERE TL.PM_TRANS_BWI_LANGUAGE_ID = BL.PM_TRANS_BWI_LANGUAGE_SEQNO > AND RT.PM_TRANS_LANGUAGE_ID = TL.PM_TRANS_LANGUAGE_SEQNO > AND RT.CONTENT_IDENTIFIER = PG.PKG_GENERIC_SEQNO > AND RT.RESORT = #RESORT > GROUP BY PG.PKG_NAME!, RT.RESORT > > END-SELECT > > SHOW > '---------------------------------------------------------------------' > SHOW 'END SELECT FOR ' #RESORT > > END-PROCEDURE > !--------------------------------------------------------------------------- > ----------------------------------------- > > When I run the above I get the following debugging output: > > BEGIN PROCESSING AT 09:58:00 > --------------------------- > BEGIN SELECT FOR 10.000000 > >FR<0.000000 > >DE<1.000000 > >IT<2.000000 > >ES<3.000000 > >ZH<4.000000 > >JA<5.000000 > >KO<6.000000 > >B7<7.000000 > >NL<8.000000 > >FI<9.000000 > >PT<10.000000 > >SV<11.000000 > END SELECT FOR 10.000000 > --------------------------- > > According the to output, I am getting the values intended for the variable. > > I thought about your statement regarding the error in using the loop > within the select. So I decided to try a single MAX(DECODE) > statement, within which I passed a variable only once. So, instead of > having a loop, I simply said: > Let $ABB = 'FR' > and then used $ABB in a single MAX(DECODE) statement. My thought was, > that if my error was attempting the loop, and since I could see that > my variables were returning accurate values, that should work. > However, when I ran that modified test...the pattern matching still > failed!...The only way it worked, was when i replaced the variable all > together and just used the literal 'FR' in the statement. That's a > major reason why I'm wondering about possible conversion issues when > the SQL statement is actually being created. > > At anyrate, I will keep trying some things, and definitely report back > with whatever solution eventually works... > > keep bringing the suggestions though, I really appreciate everyone's > time and consideration!! :) > > > On 9/9/06, David Donnelly wrote: > > Saffiula, > > > > First, do put some debugging show statements in to be sure you're getting > > what you expect in your variable. > > > > You shouldn't need to use dynamic SQR (square brackets); simple > > substitution should work. > > > > Remember though, that this substitution is done ONCE, before the select > > starts. Sometimes newbies try to do this: > > > > begin-select > > > > abbreviation &code > > max (decode(bl.abbreviation, TRIM(&code),'Y',bl.abbreviation,'N')) (,+5) > > > > from bl > > > > etc > > > > and this will not work. > > > > Maybe you should show us more of the select statement, and the loop if it > > is outside the select. > > > > Also, as usual, if you have any local procedures, make sure you have > > indicated $_global-variables correctly. > > > > Dave > > > > > > _______________________________________________ > > 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 > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Sep 12 09:28:17 2006 From: "Steve Cavill" Subject: RE: [sqr-users] SQR Report + Java | Help Date: Tue, 12 Sep 2006 23:25:24 +1000 It would probably be quicker and cheaper to buy the Hyperion server solution that does all that for you. Steve. -----Original Message----- From: sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org [mailto:sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org] On Behalf Of Sandeep.Pathak@carey.com Sent: Wednesday, 30 August 2006 1:14 AM To: sqr-users@sqrug.org Subject: [sqr-users] SQR Report + Java | Help Hi Guys, I got your email id from one of the SQR sites. We are currently using SQR for our reporting requirements. Our requirement is something like this: The user navigates to a reporting screen, puts all the parameters and click on the submit button to show him the report in the format, he wants. The format can be pdf, csv, excel, html. The application should be able to display the report on demand basis and on the browser. We have one application server (web-sphere) which is running on a unix box (BOX:1) and we have a separate unix box (BOX:2) on which the SQR server is running. So what we do is that we run a command script, which resides on the BOX:1, from our java code and it then connects to BOX:2 using "ssh" and the second script runs the SQR command to generate the report. Once the report is generated, the command script can FTP or SAVE the report. This works fine but the problem is with the on-demand report. For an On-Demand Report, we need to show the report back to the user when he clicks on the submit button after providing all the parameters. Now i do not know how to do that in java. The SQR server can generate the report but how will i display that back to the user on the browser? How to do that? How will i get the output stream back so that i can write that on the browser. Or how will i publish the report so that it can be viewed by the user on the browser. Please suggest me. Thanks Sandeep Pathak ______________________________________________________________________ This e-mail has been scanned by MCI Managed Email Content Service, using Skeptic(tm) technology powered by MessageLabs. For more information on MCI's Managed Email Content Service, visit http://www.mci.com. ______________________________________________________________________ _______________________________________________ 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 From sqr-users-bounces@sqrug.org Tue Sep 12 14:15:20 2006 Date: Tue, 12 Sep 2006 13:12:35 -0500 From: Daniel Vandenberg Subject: Re: [sqr-users] Re: Passing a Variable Value as an Expression Stringto DECODE(), is it possible? Making another begin-select procedure works, but I think something like the following would be simpler and would not require as many calls to the database. BEGIN-SELECT ON-ERROR =PROCESS_ERROR POSITION (+1) ! ADVANCE 1 LINE FROM CURRENT POSITION PG.PKG_NAME (,1) bl.abbreviation WHILE #PRINT_TRANSLATION_DETAIL_COUNTER < #_LANG_COUNT MOVE '' TO $ABB !RESET $ABB LET $ABB = UPPER(LANG_COL_ARRAY.ABBREVIATION(#PRINT_TRANSLATION_DETAIL_COUNTER)) SHOW '>' $abb '<' #PRINT_TRANSLATION_DETAIL_COUNTER LET $ABB = LTRIM(RTRIM($ABB,''),'') IF &bl.abbreviation = $ABB PRINT 'Y' (, +5) ELSE PRINT 'N' (, +5) END-IF ADD 1 TO #PRINT_TRANSLATION_DETAIL_COUNTER END-WHILE MOVE 0 TO #PRINT_TRANSLATION_DETAIL_COUNTER FROM PM_RESORT_TRANSLATION RT, PM_TRANS_LANGUAGE TL, PM_TRANS_BWI_LANGUAGE BL, PM_RESORT_PKG_GENERIC PG WHERE TL.PM_TRANS_BWI_LANGUAGE_ID = BL.PM_TRANS_BWI_LANGUAGE_SEQNO AND RT.PM_TRANS_LANGUAGE_ID = TL.PM_TRANS_LANGUAGE_SEQNO AND RT.CONTENT_IDENTIFIER = PG.PKG_GENERIC_SEQNO AND RT.RESORT = #RESORT GROUP BY PG.PKG_NAME!, RT.RESORT END-SELECT At 04:21 PM 9/11/2006, you wrote: >a MILLION thanks Steven! > >Well, lesson learned. >>The Begin-Select loop forms a SQL statement once, and sends it to your >>database server once. > >That was my logical error. > >I took your advice and encapsulated the MAX(DECODE) section into it's >own begin-select procedure block. >Then I simply called it from within my original begin-select >procedure...so that it ran for each record returned therein, making >sure to pass some key params, and viola!...same effect reached!!! > >in retrospect, that seems like such a simple solution, I guess I was >being stubborn and just banging my head against the wall trying to get >it to work the way I wanted. In reality, I was just making the >problem too compicated > >thanks again, to you and everyone else who provided input!!! > > > >On 9/11/06, Alexander, Steven wrote: >>The Begin-Select loop forms a SQL statement once, and sends it to your >>database server once. The loop is for each row that the statement returns. >>Perhaps you can put the Begin-Select loop inside the >>#PRINT_TRANSLATION_DETAIL_COUNTER while-loop. >> >>-----Original Message----- >>From: Saffiulla Mohamed [mailto:mohigro@gmail.com] >>Sent: Monday, September 11, 2006 10:15 AM >>To: This list is for discussion about the SQR database reporting >>languagefrom Hyperion Solutions. >>Subject: Re: [sqr-users] Re: Passing a Variable Value as an Expression >>Stringto DECODE(), is it possible? >> >>Thanks for the input Dave, >> >>I've included the procedure in question below. It includes debugging >>show statements. I have also included the resulting show output. >> >>The variable substitution is occurring within a loop, however, it's >>not based on a &column_var from the same SQL statement. Rather, I'm >>attempting to execute a loop that replaces a variable in the >>MAX(DECODE) statement. That variable is being pulled from an array. >>I guess my issue may have more to do with when SQR compiles the sql >>statements, and maybe what I'm trying isn't possible with this tool. >> >>Here's whole procedure: >> >>!--------------------------------------------------------------------------- >>----- >>!PROCEDURE: PRINT_TRANSLATION_DETAIL >>!--------------------------------------------------------------------------- >>----- >>BEGIN-PROCEDURE PRINT_TRANSLATION_DETAIL (#RESORT) >> >> LET #PRINT_TRANSLATION_DETAIL_COUNTER = 0 >> >> SHOW >>'---------------------------------------------------------------------' >> SHOW 'BEGIN SELECT FOR ' #RESORT >> >>BEGIN-SELECT ON-ERROR =PROCESS_ERROR >> >> POSITION (+1) ! ADVANCE 1 LINE FROM CURRENT POSITION >>PG.PKG_NAME >>(,1) >> >> WHILE #PRINT_TRANSLATION_DETAIL_COUNTER < #_LANG_COUNT >> MOVE '' TO $ABB !RESET $ABB >> >> LET $ABB = >>UPPER(LANG_COL_ARRAY.ABBREVIATION(#PRINT_TRANSLATION_DETAIL_COUNTER)) >> >> SHOW '>' $abb '<' #PRINT_TRANSLATION_DETAIL_COUNTER >> >>max (decode(bl.abbreviation, >>LTRIM(RTRIM($ABB,''),''),'Y',bl.abbreviation,'N')) LANGUAGE (,+5) >> >> ADD 1 TO #PRINT_TRANSLATION_DETAIL_COUNTER >> >> END-WHILE >> >> MOVE 0 TO #PRINT_TRANSLATION_DETAIL_COUNTER >> >>FROM PM_RESORT_TRANSLATION RT, PM_TRANS_LANGUAGE TL, >>PM_TRANS_BWI_LANGUAGE BL, PM_RESORT_PKG_GENERIC PG >> >>WHERE TL.PM_TRANS_BWI_LANGUAGE_ID = BL.PM_TRANS_BWI_LANGUAGE_SEQNO >>AND RT.PM_TRANS_LANGUAGE_ID = TL.PM_TRANS_LANGUAGE_SEQNO >>AND RT.CONTENT_IDENTIFIER = PG.PKG_GENERIC_SEQNO >>AND RT.RESORT = #RESORT >>GROUP BY PG.PKG_NAME!, RT.RESORT >> >>END-SELECT >> >> SHOW >>'---------------------------------------------------------------------' >> SHOW 'END SELECT FOR ' #RESORT >> >>END-PROCEDURE >>!--------------------------------------------------------------------------- >>----------------------------------------- >> >>When I run the above I get the following debugging output: >> >>BEGIN PROCESSING AT 09:58:00 >>--------------------------- >>BEGIN SELECT FOR 10.000000 >> >FR<0.000000 >> >DE<1.000000 >> >IT<2.000000 >> >ES<3.000000 >> >ZH<4.000000 >> >JA<5.000000 >> >KO<6.000000 >> >B7<7.000000 >> >NL<8.000000 >> >FI<9.000000 >> >PT<10.000000 >> >SV<11.000000 >>END SELECT FOR 10.000000 >>--------------------------- >> >>According the to output, I am getting the values intended for the variable. >> >>I thought about your statement regarding the error in using the loop >>within the select. So I decided to try a single MAX(DECODE) >>statement, within which I passed a variable only once. So, instead of >>having a loop, I simply said: >>Let $ABB = 'FR' >>and then used $ABB in a single MAX(DECODE) statement. My thought was, >>that if my error was attempting the loop, and since I could see that >>my variables were returning accurate values, that should work. >>However, when I ran that modified test...the pattern matching still >>failed!...The only way it worked, was when i replaced the variable all >>together and just used the literal 'FR' in the statement. That's a >>major reason why I'm wondering about possible conversion issues when >>the SQL statement is actually being created. >> >>At anyrate, I will keep trying some things, and definitely report back >>with whatever solution eventually works... >> >>keep bringing the suggestions though, I really appreciate everyone's >>time and consideration!! :) >> >> >>On 9/9/06, David Donnelly wrote: >> > Saffiula, >> > >> > First, do put some debugging show statements in to be sure you're getting >> > what you expect in your variable. >> > >> > You shouldn't need to use dynamic SQR (square brackets); simple >> > substitution should work. >> > >> > Remember though, that this substitution is done ONCE, before the select >> > starts. Sometimes newbies try to do this: >> > >> > begin-select >> > >> > abbreviation &code >> > max (decode(bl.abbreviation, TRIM(&code),'Y',bl.abbreviation,'N')) (,+5) >> > >> > from bl >> > >> > etc >> > >> > and this will not work. >> > >> > Maybe you should show us more of the select statement, and the loop if it >> > is outside the select. >> > >> > Also, as usual, if you have any local procedures, make sure you have >> > indicated $_global-variables correctly. >> > >> > Dave >> > >> > >> > _______________________________________________ >> > 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 > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users Daniel Vandenberg Administrative Computing University of Wisconsin Oshkosh Email : vandberg@uwosh.edu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Sep 15 13:13:12 2006 Date: Fri, 15 Sep 2006 13:10:36 -0400 From: "Kevin Laroche" Subject: [sqr-users] Return a user defined PL/SQL table to Brio? Hi to all I have a query function in PL/SQL which returns a table composed of a series of records of the form (number, text, number, number, text). I have successfully used PL/SQL procedures to return single values to Brio with statements like this BEGIN-SQL BEGIN CMS.WORKLOAD.GET_NEW_ASSIGNMENTS($officer, #v_count_new,#v_SE_report2 , #v_IV_report2 );; END;; END-SQL Can I return the PL/SQL table values into a Brio Array or a list? If that is not possible then I guess I could write the table to a temporary table and then query it from Brio. Comments? Thanks Kevin LaRoche Brio 6, Oracle 8i, Forms 5 Ottawa, Ontario _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Sep 15 13:50:50 2006 From: "Dwight Schrute" Subject: RE: [sqr-users] Return a user defined PL/SQL table to Brio? Date: Fri, 15 Sep 2006 12:48:13 -0500 Question: Are you referring to SQR or Brio? If it is SQR, try using EXECUTE instead of BEGIN-SQL. ~DKS >From: "Kevin Laroche" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: >Subject: [sqr-users] Return a user defined PL/SQL table to Brio? >Date: Fri, 15 Sep 2006 13:10:36 -0400 > >Hi to all >I have a query function in PL/SQL which returns a table composed of a >series of >records of the form (number, text, number, number, text). > >I have successfully used PL/SQL procedures to return single values to Brio >with statements like this > >BEGIN-SQL >BEGIN >CMS.WORKLOAD.GET_NEW_ASSIGNMENTS($officer, #v_count_new,#v_SE_report2 , >#v_IV_report2 );; >END;; >END-SQL > >Can I return the PL/SQL table values into a Brio Array or a list? > >If that is not possible then I guess I could write the table to a temporary >table >and then query it from Brio. > >Comments? > >Thanks > >Kevin LaRoche >Brio 6, Oracle 8i, Forms 5 >Ottawa, Ontario > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Check the weather nationwide with MSN Search: Try it now! http://search.msn.com/results.aspx?q=weather&FORM=WLMTAG _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Sep 15 14:58:13 2006 Date: Fri, 15 Sep 2006 14:55:57 -0400 From: "Kevin Laroche" Subject: RE: [sqr-users] Return a user defined PL/SQL table to Brio? Sorry for not being precise, yes, I want to return a PL/SQL array using SQR 6.0 I looked at the EXECUTE command and it seems to be what is needed only it claims to be for SQL Server and Sybase. Guess I'll have to find out if it works on Oracle. Thanks Kevin LaRoche SQR 6, Oracle 8i, Forms 5 Ottawa, Ontario On Sep 15, "Dwight Schrute" wrote: > > Question: Are you referring to SQR or Brio? > > If it is SQR, try using EXECUTE instead of BEGIN-SQL. > > ~DKS > > > >From: "Kevin Laroche" > >Reply-To: "This list is for discussion about the SQR database > >reportinglanguage from Hyperion Solutions." > >To: > >Subject: [sqr-users] Return a user defined PL/SQL table to Brio? > >Date: Fri, 15 Sep 2006 13:10:36 -0400 > > > >Hi to all > >I have a query function in PL/SQL which returns a table composed of a > >series of > >records of the form (number, text, number, number, text). > > > >I have successfully used PL/SQL procedures to return single values to Brio > >with statements like this > > > >BEGIN-SQL > >BEGIN > >CMS.WORKLOAD.GET_NEW_ASSIGNMENTS($officer, #v_count_new,#v_SE_report2 , > >#v_IV_report2 );; > >END;; > >END-SQL > > > >Can I return the PL/SQL table values into a Brio Array or a list? > > > >If that is not possible then I guess I could write the table to a temporary > >table > >and then query it from Brio. > > > >Comments? > > > >Thanks > > > >Kevin LaRoche > >Brio 6, Oracle 8i, Forms 5 > >Ottawa, Ontario > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Sep 15 15:12:27 2006 Date: Fri, 15 Sep 2006 15:10:05 -0400 From: Ray Ontko Subject: Re: [sqr-users] Return a user defined PL/SQL table to Brio? The only way I have found is to use a PL/SQL block (begin-sql ... end-sql and double-up on the semicolons) and return each array element through a variable. This means that if you want to return 10 rows, you use 10 variables. If you want to do an arbitrary number of rows, you'll need to be clever with your PL/SQL so that you can return it by making multiple PL/SQL calls, one per row. Ray Kevin Laroche wrote: > Sorry for not being precise, yes, I want to return a PL/SQL array using SQR 6.0 > > I looked at the EXECUTE command and it seems to be what is needed only it claims > to be for SQL Server and Sybase. Guess I'll have to find out if it works on Oracle. > > Thanks > > Kevin LaRoche > SQR 6, Oracle 8i, Forms 5 > Ottawa, Ontario > > On Sep 15, "Dwight Schrute" wrote: > >> Question: Are you referring to SQR or Brio? >> >> If it is SQR, try using EXECUTE instead of BEGIN-SQL. >> >> ~DKS >> >> >> >>> From: "Kevin Laroche" >>> Reply-To: "This list is for discussion about the SQR database >>> reportinglanguage from Hyperion Solutions." >>> To: >>> Subject: [sqr-users] Return a user defined PL/SQL table to Brio? >>> Date: Fri, 15 Sep 2006 13:10:36 -0400 >>> >>> Hi to all >>> I have a query function in PL/SQL which returns a table composed of a >>> series of >>> records of the form (number, text, number, number, text). >>> >>> I have successfully used PL/SQL procedures to return single values to Brio >>> with statements like this >>> >>> BEGIN-SQL >>> BEGIN >>> CMS.WORKLOAD.GET_NEW_ASSIGNMENTS($officer, #v_count_new,#v_SE_report2 , >>> #v_IV_report2 );; >>> END;; >>> END-SQL >>> >>> Can I return the PL/SQL table values into a Brio Array or a list? >>> >>> If that is not possible then I guess I could write the table to a temporary >>> table >>> and then query it from Brio. >>> >>> Comments? >>> >>> Thanks >>> >>> Kevin LaRoche >>> Brio 6, Oracle 8i, Forms 5 >>> Ottawa, Ontario >>> > > > > _______________________________________________ > 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 From sqr-users-bounces@sqrug.org Fri Sep 15 15:39:59 2006 From: "Dwight Schrute" Subject: Re: [sqr-users] Return a user defined PL/SQL table to Brio? Date: Fri, 15 Sep 2006 14:37:08 -0500 The Oracle version works like this: EXECUTE ON-ERROR=PROCEDURE-YOU-CREATE-FOR-ERROR DO=PROCEDURE-EXECUTED-FOR-EACH-ROW-RETURNED @$RETURN_VARIABLE=STORED_PROCEDURE_NAME @PARAMETER=$SQR-VARIABLE, @PARAMETER=#SQR-VARIABLE OUTPUT INTO &SQR-COLUMN-VARIABLE INT So, a stored procedure "get_products" with two parameters that selects data into five column variables and calls the SQR procedure "print_products" for each row retrieved would look like this: execute do=print_products !SQR Procedure called for each row @#proc_return_status=get_products !Stored Proc and the return status of the stored proc @prodcode=&code, !Param of stored proc use '@' @max=#maximum !Variables from SQR use '&', '#', '$' INTO &prod_code int, !SQR column variables '&' which the &description char(45), !Oracle values are returned to the column &discount float, !variables but must declare variables like &restock char, !Oracle types (float, int, etc.) &expire_date datetime You can add the ON-ERROR to check and handle errors. If the stored proc returns values (not rows), then you use the OUTPUT flag. For example, I have a stored proc named "SETVERSION" that updates a row with the values passed but it checks to ensure all of the values are passed. If a value is missing, it returns a message stating that a value is missing (not an Oracle Error Message but a user defined one); if it is successful, it returns a message "Update Successful". So if the stored proc requires 'version_nbr' and 'report_desc' and returns 'err_msg', it would be called like this: EXECUTE @#proc_return_status=SETVERSION @version_nbr=#version_number, @report_desc=$report_description, @err_msg=$proc_error_message OUTPUT or to be more condensed it could be like this: EXECUTE SETVERSION #version_number $report_description $proc_error_message OUTPUT ~DWK >From: Ray Ontko >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "This list is for discussion about the SQR database reporting >languagefrom Hyperion Solutions." >Subject: Re: [sqr-users] Return a user defined PL/SQL table to Brio? >Date: Fri, 15 Sep 2006 15:10:05 -0400 > >The only way I have found is to use a PL/SQL block (begin-sql ... end-sql >and double-up on the semicolons) and return each array element through a >variable. This means that if you want to return 10 rows, you use 10 >variables. If you want to do an arbitrary number of rows, you'll need to >be clever with your PL/SQL so that you can return it by making multiple >PL/SQL calls, one per row. > >Ray > >Kevin Laroche wrote: >>Sorry for not being precise, yes, I want to return a PL/SQL array using >>SQR 6.0 >> >>I looked at the EXECUTE command and it seems to be what is needed only it >>claims >>to be for SQL Server and Sybase. Guess I'll have to find out if it works >>on Oracle. >> >>Thanks >> >>Kevin LaRoche >>SQR 6, Oracle 8i, Forms 5 >>Ottawa, Ontario >> >>On Sep 15, "Dwight Schrute" wrote: >> >>>Question: Are you referring to SQR or Brio? >>> >>>If it is SQR, try using EXECUTE instead of BEGIN-SQL. >>> >>>~DKS >>> >>> >>> >>>>From: "Kevin Laroche" >>>>Reply-To: "This list is for discussion about the SQR database >>>>reportinglanguage from Hyperion Solutions." >>>>To: >>>>Subject: [sqr-users] Return a user defined PL/SQL table to Brio? >>>>Date: Fri, 15 Sep 2006 13:10:36 -0400 >>>> >>>>Hi to all >>>>I have a query function in PL/SQL which returns a table composed of a >>>>series of >>>>records of the form (number, text, number, number, text). >>>> >>>>I have successfully used PL/SQL procedures to return single values to >>>>Brio >>>>with statements like this >>>> >>>>BEGIN-SQL >>>>BEGIN >>>>CMS.WORKLOAD.GET_NEW_ASSIGNMENTS($officer, #v_count_new,#v_SE_report2 , >>>>#v_IV_report2 );; >>>>END;; >>>>END-SQL >>>> >>>>Can I return the PL/SQL table values into a Brio Array or a list? >>>> >>>>If that is not possible then I guess I could write the table to a >>>>temporary table >>>>and then query it from Brio. >>>> >>>>Comments? >>>> >>>>Thanks >>>> >>>>Kevin LaRoche >>>>Brio 6, Oracle 8i, Forms 5 >>>>Ottawa, Ontario >>>> >> >> >> >>_______________________________________________ >>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 _________________________________________________________________ Windows Live Spaces is here! It’s easy to create your own personal Web site. http://spaces.live.com/signup.aspx _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Sep 15 16:02:28 2006 Date: Fri, 15 Sep 2006 15:57:02 -0400 From: "Kevin Laroche" Subject: Re: [sqr-users] Return a user defined PL/SQL table to Brio? Wow, Thanks Dwight. I'm going to try that out right....well Monday. Thanks very much and have a good weekend. Kevin LaRoche Ottawa Ontario On Sep 15, "Dwight Schrute" wrote: >=20 > The Oracle version works like this: > EXECUTE ON-ERROR=3DPROCEDURE-YOU-CREATE-FOR-ERROR > DO=3DPROCEDURE-EXECUTED-FOR-EACH-ROW-RETURNED > @$RETURN_VARIABLE=3DSTORED_PROCEDURE_NAME > @PARAMETER=3D$SQR-VARIABLE, @PARAMETER=3D#SQR-VARIABLE OUTPUT > INTO &SQR-COLUMN-VARIABLE INT >=20 > So, a stored procedure "get_products" with two parameters that selects da= ta=20 > into five column variables and calls the SQR procedure "print_products" f= or=20 > each row retrieved would look like this: >=20 > execute > do=3Dprint_products !SQR Procedure calle= d for=20 > each row > @#proc_return_status=3Dget_products !Stored Proc and the return st= atus=20 > of the stored proc > @prodcode=3D&code, !Param of stored proc u= se=20 > '@' > @max=3D#maximum !Variables from SQR use = '&',=20 > '#', '$' > INTO &prod_code int, !SQR column variables '&= '=20 > which the > &description char(45), !Oracle values are=20 > returned to the column > &discount float, !variables but must= =20 > declare variables like > &restock char, !Oracle types (floa= t,=20 > int, etc.) > &expire_date datetime >=20 > You can add the ON-ERROR to check and handle errors. >=20 > If the stored proc returns values (not rows), then you use the OUTPUT fla= g.=20=20 > For example, I have a stored proc named "SETVERSION" that updates a row w= ith=20 > the values passed but it checks to ensure all of the values are passed. = If=20 > a value is missing, it returns a message stating that a value is missing= =20 > (not an Oracle Error Message but a user defined one); if it is successful= ,=20 > it returns a message "Update Successful". So if the stored proc requires= =20 > 'version_nbr' and 'report_desc' and returns 'err_msg', it would be called= =20 > like this: >=20 > EXECUTE > @#proc_return_status=3DSETVERSION > @version_nbr=3D#version_number, > @report_desc=3D$report_description, > @err_msg=3D$proc_error_message OUTPUT >=20 > or to be more condensed it could be like this: >=20 > EXECUTE SETVERSION #version_number $report_description $proc_error_messag= e=20 > OUTPUT >=20 > ~DWK >=20 >=20 > >From: Ray Ontko > >Reply-To: "This list is for discussion about the SQR database=20 > >reportinglanguage from Hyperion Solutions." > >To: "This list is for discussion about the SQR database reporting=20 > >languagefrom Hyperion Solutions." > >Subject: Re: [sqr-users] Return a user defined PL/SQL table to Brio? > >Date: Fri, 15 Sep 2006 15:10:05 -0400 > > > >The only way I have found is to use a PL/SQL block (begin-sql ... end-sq= l=20 > >and double-up on the semicolons) and return each array element through a= =20 > >variable. This means that if you want to return 10 rows, you use 10=20 > >variables. If you want to do an arbitrary number of rows, you'll need t= o=20 > >be clever with your PL/SQL so that you can return it by making multiple= =20 > >PL/SQL calls, one per row. > > > >Ray > > > >Kevin Laroche wrote: > >>Sorry for not being precise, yes, I want to return a PL/SQL array using= =20 > >>SQR 6.0 > >> > >>I looked at the EXECUTE command and it seems to be what is needed only = it=20 > >>claims > >>to be for SQL Server and Sybase. Guess I'll have to find out if it wor= ks=20 > >>on Oracle. > >> > >>Thanks > >> > >>Kevin LaRoche > >>SQR 6, Oracle 8i, Forms 5 > >>Ottawa, Ontario > >> > >>On Sep 15, "Dwight Schrute" wrote: > >> > >>>Question: Are you referring to SQR or Brio? > >>> > >>>If it is SQR, try using EXECUTE instead of BEGIN-SQL. > >>> > >>>~DKS > >>> > >>> > >>> > >>>>From: "Kevin Laroche" > >>>>Reply-To: "This list is for discussion about the SQR database=20 > >>>>reportinglanguage from Hyperion Solutions." > >>>>To: > >>>>Subject: [sqr-users] Return a user defined PL/SQL table to Brio? > >>>>Date: Fri, 15 Sep 2006 13:10:36 -0400 > >>>> > >>>>Hi to all > >>>>I have a query function in PL/SQL which returns a table composed of a= =20 > >>>>series of > >>>>records of the form (number, text, number, number, text). > >>>> > >>>>I have successfully used PL/SQL procedures to return single values to= =20 > >>>>Brio > >>>>with statements like this > >>>> > >>>>BEGIN-SQL > >>>>BEGIN > >>>>CMS.WORKLOAD.GET_NEW_ASSIGNMENTS($officer, #v_count_new,#v_SE_report2= ,=20 > >>>>#v_IV_report2 );; > >>>>END;; > >>>>END-SQL > >>>> > >>>>Can I return the PL/SQL table values into a Brio Array or a list? > >>>> > >>>>If that is not possible then I guess I could write the table to a=20 > >>>>temporary table > >>>>and then query it from Brio. > >>>> > >>>>Comments? > >>>> > >>>>Thanks > >>>> > >>>>Kevin LaRoche > >>>>Brio 6, Oracle 8i, Forms 5 > >>>>Ottawa, Ontario > >>>> > >> > >> > >> > >>_______________________________________________ > >>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 >=20 > _________________________________________________________________ > Windows Live Spaces is here! It=92s easy to create your own personal Web = site.=20 > http://spaces.live.com/s= ignup.aspx >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sat Sep 16 15:17:35 2006 Date: Sat, 16 Sep 2006 15:15:31 -0400 From: Nathan Stratton Treadway Subject: [sqr-users] Re: Return a user defined PL/SQL table to Brio? On Fri, Sep 15, 2006 at 02:55:57PM -0400, Kevin Laroche wrote: > Sorry for not being precise, yes, I want to return a PL/SQL array > using SQR 6.0 > > I looked at the EXECUTE command and it seems to be what is needed only > it claims to be for SQL Server and Sybase. Guess I'll have to find > out if it works on Oracle. Support for the EXECUTE command in the SQR for Oracle port was added in version 8.0. Nathan ---------------------------------------------------------------------------- Nathan Stratton Treadway - nathanst@ontko.com - Mid-Atlantic region Ray Ontko & Co. - Software consulting services - http://www.ontko.com/ GPG Key: http://www.ontko.com/~nathanst/gpg_key.txt ID: 1023D/ECFB6239 Key fingerprint = 6AD8 485E 20B9 5C71 231C 0C32 15F3 ADCD ECFB 6239 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 18 20:47:20 2006 Date: Mon, 18 Sep 2006 20:18:04 -0400 From: "Venkat Maligreddy" Subject: [sqr-users] What is the MAXLEN max value in INPUT command? Hi I want to send large chunk of data as a parameter to the SQR. =20 Input $psMiscParam MAXLEN=3D???? status=3D#istat type=3DTEXT =20 SQR is truncating data at 2047. I am reading the data through a parameter file. How can I increase this value? =20 This data is taken out of a Table Window (grid). =20 Thanks Venkat _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Sep 19 06:34:29 2006 Date: Tue, 19 Sep 2006 06:31:29 -0400 From: Ray Ontko Subject: Re: [sqr-users] What is the MAXLEN max value in INPUT command? Venkat, MAXLEN specifies that an error message should be generated if the input exceeds the length you specify. Since you're reading from a parameter file, it's important to note that if the input line is greater than 2047 in length, you can continue reading on the next line. If you know (in advance) that the input line is not an EXACT multiple of 2047, then you can simply check to see if 2047 is the input length of the piece you just read and, if so, read some more. The program below illustrates the point. If the input line might be a multiple of 2047, you'll have to be more clever and add some special string to terminate the parameter, or indicate the beginning of the next parameter. Hope this helps. Ray begin-program do main end-program begin-procedure main let $p1 = '' input $line 'p1' while length($line)=2047 let $p1 = $p1 || $line input $line 'p1 cont' end-while let $p1 = $p1 || $line let #len = length($p1) show #len edit 99999 input $p2 'p2' let #len = length($p2) show #len edit 99999 end-procedure ! main Venkat Maligreddy wrote: > Hi I want to send large chunk of data as a parameter to the SQR. > > Input $psMiscParam MAXLEN=???? status=#istat type=TEXT > > SQR is truncating data at 2047. I am reading the data through a > parameter file. How can I increase this value? > > This data is taken out of a Table Window (grid). > > Thanks > Venkat > > _______________________________________________ > 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 From sqr-users-bounces@sqrug.org Tue Sep 19 06:49:12 2006 Subject: RE: [sqr-users] What is the MAXLEN max value in INPUT command? Date: Tue, 19 Sep 2006 06:45:37 -0400 From: "Peter Burton" Venkat, The INPUT command is designed for user input (with validation) and not massive amounts of data. Think about it, 2047 characters is more than a full screen of text data (25*80 =3D 2000). For that much data to be passed I would use the OPEN/READ/CLOSE commands. This shouldn't be too much of a problem since you are already writing your data to an external file. You will simply have to make some minor code changes to process it. And you will not have to worry about the 2047 character limitation with the INPUT command. Peter -----Original Message----- From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org] On Behalf Of Ray Ontko Sent: Tuesday, September 19, 2006 6:31 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] What is the MAXLEN max value in INPUT command? Venkat, MAXLEN specifies that an error message should be generated if the input=20 exceeds the length you specify. Since you're reading from a parameter file, it's important to note that=20 if the input line is greater than 2047 in length, you can continue=20 reading on the next line. If you know (in advance) that the input line=20 is not an EXACT multiple of 2047, then you can simply check to see if=20 2047 is the input length of the piece you just read and, if so, read=20 some more. The program below illustrates the point. If the input line might be a multiple of 2047, you'll have to be more=20 clever and add some special string to terminate the parameter, or=20 indicate the beginning of the next parameter. Hope this helps. Ray begin-program do main end-program begin-procedure main let $p1 =3D '' input $line 'p1' while length($line)=3D2047 let $p1 =3D $p1 || $line input $line 'p1 cont' end-while let $p1 =3D $p1 || $line let #len =3D length($p1) show #len edit 99999 input $p2 'p2' let #len =3D length($p2) show #len edit 99999 end-procedure ! main Venkat Maligreddy wrote: > Hi I want to send large chunk of data as a parameter to the SQR. >=20=20 > Input $psMiscParam MAXLEN=3D???? status=3D#istat type=3DTEXT >=20=20 > SQR is truncating data at 2047. I am reading the data through a > parameter file. How can I increase this value? >=20=20 > This data is taken out of a Table Window (grid). >=20=20 > Thanks > Venkat > > _______________________________________________ > 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 If you have received this e-mail in error, please delete it and notify the = sender as soon as possible. The contents of this e-mail may be confidential= and the unauthorized use, copying, or dissemination of it and any attachme= nts to it, is prohibited. Internet communications are not secure and Hyperi= on does not, therefore, accept legal responsibility for the contents of thi= s message nor for any damage caused by viruses. The views expressed here do= not necessarily represent those of Hyperion. For more information about Hy= perion, please visit our Web site at: www.hyperion.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Sep 19 07:02:09 2006 From: "the dragon" Subject: RE: [sqr-users] What is the MAXLEN max value in INPUT command? Date: Tue, 19 Sep 2006 05:58:40 -0500 Peter, Thanks for saying that. I wanted to say something similar, but it would have come across much more acidic, so I decided to keep quiet (just this once). peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Venkat, The INPUT command is designed for user input (with validation) and not massive amounts of data. Think about it, 2047 characters is more than a full screen of text data (25*80 = 2000). For that much data to be passed I would use the OPEN/READ/CLOSE commands. This shouldn't be too much of a problem since you are already writing your data to an external file. You will simply have to make some minor code changes to process it. And you will not have to worry about the 2047 character limitation with the INPUT command. Peter -----Original Message----- Venkat, MAXLEN specifies that an error message should be generated if the input exceeds the length you specify. Since you're reading from a parameter file, it's important to note that if the input line is greater than 2047 in length, you can continue reading on the next line. If you know (in advance) that the input line is not an EXACT multiple of 2047, then you can simply check to see if 2047 is the input length of the piece you just read and, if so, read some more. The program below illustrates the point. If the input line might be a multiple of 2047, you'll have to be more clever and add some special string to terminate the parameter, or indicate the beginning of the next parameter. Hope this helps. Ray _________________________________________________________________ Be seen and heard with Windows Live Messenger and Microsoft LifeCams http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://www.microsoft.com/hardware/digitalcommunication/default.mspx?locale=en-us&source=hmtagline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Sep 19 08:37:32 2006 Subject: RE: [sqr-users] What is the MAXLEN max value in INPUT command? Date: Tue, 19 Sep 2006 08:31:00 -0400 From: "Venkat Maligreddy" All I am looking for 25*80 value. Thank you very much.=20 The only surprise here for me when reading from the parameter file why should it be a device depend. The reports can be run concurrently so the parameter file has to be unique. The process runs across multiple servers and process is disconnected. The interface exposed to client is fixed i.e. fixed parameters. We do not have interface to transport files across the servers yet for SQR engine. The user decides how much data need to be printed this is not generated from a table. Thanks Venkat =20 -----Original Message----- From: sqr-users-bounces+venkat.reddy=3Dharlandfs.com@sqrug.org [mailto:sqr-users-bounces+venkat.reddy=3Dharlandfs.com@sqrug.org] On Behalf Of Peter Burton Sent: Tuesday, September 19, 2006 6:46 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] What is the MAXLEN max value in INPUT command? Venkat, The INPUT command is designed for user input (with validation) and not massive amounts of data. Think about it, 2047 characters is more than a full screen of text data (25*80 =3D 2000). For that much data to be passed I would use the OPEN/READ/CLOSE commands. This shouldn't be too much of a problem since you are already writing your data to an external file. You will simply have to make some minor code changes to process it. And you will not have to worry about the 2047 character limitation with the INPUT command. Peter -----Original Message----- From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org] On Behalf Of Ray Ontko Sent: Tuesday, September 19, 2006 6:31 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] What is the MAXLEN max value in INPUT command? Venkat, MAXLEN specifies that an error message should be generated if the input exceeds the length you specify. Since you're reading from a parameter file, it's important to note that if the input line is greater than 2047 in length, you can continue reading on the next line. If you know (in advance) that the input line is not an EXACT multiple of 2047, then you can simply check to see if 2047 is the input length of the piece you just read and, if so, read some more. The program below illustrates the point. If the input line might be a multiple of 2047, you'll have to be more clever and add some special string to terminate the parameter, or indicate the beginning of the next parameter. Hope this helps. Ray begin-program do main end-program begin-procedure main let $p1 =3D '' input $line 'p1' while length($line)=3D2047 let $p1 =3D $p1 || $line input $line 'p1 cont' end-while let $p1 =3D $p1 || $line let #len =3D length($p1) show #len edit 99999 input $p2 'p2' let #len =3D length($p2) show #len edit 99999 end-procedure ! main Venkat Maligreddy wrote: > Hi I want to send large chunk of data as a parameter to the SQR. >=20=20 > Input $psMiscParam MAXLEN=3D???? status=3D#istat type=3DTEXT >=20=20 > SQR is truncating data at 2047. I am reading the data through a=20 > parameter file. How can I increase this value? >=20=20 > This data is taken out of a Table Window (grid). >=20=20 > Thanks > Venkat > > _______________________________________________ > 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 If you have received this e-mail in error, please delete it and notify the sender as soon as possible. The contents of this e-mail may be confidential and the unauthorized use, copying, or dissemination of it and any attachments to it, is prohibited. Internet communications are not secure and Hyperion does not, therefore, accept legal responsibility for the contents of this message nor for any damage caused by viruses. The views expressed here do not necessarily represent those of Hyperion. For more information about Hyperion, please visit our Web site at: www.hyperion.com _______________________________________________ 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 From sqr-users-bounces@sqrug.org Tue Sep 19 08:58:21 2006 Date: Tue, 19 Sep 2006 08:56:09 -0400 From: Warren Van Wyck Subject: [sqr-users] Maximum size Oracle LONG RAW column Hi, I'm using SQR 8.3.1 on AIX 5.3 with Oracle 9. Other than trial and error, how do I find and/adjust the maximum size of a LONG RAW column that SQR can handle. I'm getting this error: Hyperion SQR Server 8.3.1 Copyright (c) 1994-2005 Hyperion Solutions Corporation. All Rights Reserved. (SQR 5528) ORACLE fOCIStmtFetch error 1406 in cursor 2: ORA-01406: fetched column value was truncated on a Select for the LONG RAW column. This LONG RAW column is 652,170/326,085 bytes -- based on a C program that checks lengths. Seems I might have to write C programs for all the processing. -- Warren Van Wyck University of Vermont _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Sep 19 09:12:16 2006 From: "Giepz, Marius" Date: Tue, 19 Sep 2006 15:09:19 +0200 Subject: [sqr-users] how to print "subtotals" on every page Hi, I am a new SQR-User and currently trying to develope an Invoice-Report. A subquery gives me many records of invoice items needing several pages to be printed. My requirements include, that the subtotal of the items on the preceding pages should be printed at the beginning of the detail section of every new page as a "add carry". Which SQR-Mechanism could be suitable for that task? I cant use on-break print=change/top-page because the this subtotal is independent from group breaks. best regards Marius Giepz _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Sep 19 09:17:35 2006 Subject: RE: [sqr-users] What is the MAXLEN max value in INPUT command? Date: Tue, 19 Sep 2006 09:14:25 -0400 From: "Peter Burton" Venkat, The parameter file has a limit of 2047 characters per line independent of the device. As I said, the INPUT was designed for user based input and not massive amounts of data. The parameter file was added to facilitate that functionality for automated batch processing. Your comment "We do not have interface to transport files across the servers yet for SQR engine." doesn't make sense. If you are using parameter files then you must be transporting files across servers. What is the difference between using a parameter file and a data file? Using the SQR File I/O commands (OPEN/READ/WRITE/CLOSE) doesn't place any real limitation on how long a line can be in the data file or how much is in the data file. You must of course tell SQR how long the maximum line can be in order for SQR to allocate if buffers for file processing. Peter -----Original Message----- From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org] On Behalf Of Venkat Maligreddy Sent: Tuesday, September 19, 2006 8:31 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] What is the MAXLEN max value in INPUT command? All I am looking for 25*80 value. Thank you very much.=20 The only surprise here for me when reading from the parameter file why should it be a device depend. The reports can be run concurrently so the parameter file has to be unique. The process runs across multiple servers and process is disconnected. The interface exposed to client is fixed i.e. fixed parameters. We do not have interface to transport files across the servers yet for SQR engine. The user decides how much data need to be printed this is not generated from a table. Thanks Venkat =20 -----Original Message----- From: sqr-users-bounces+venkat.reddy=3Dharlandfs.com@sqrug.org [mailto:sqr-users-bounces+venkat.reddy=3Dharlandfs.com@sqrug.org] On Behalf Of Peter Burton Sent: Tuesday, September 19, 2006 6:46 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] What is the MAXLEN max value in INPUT command? Venkat, The INPUT command is designed for user input (with validation) and not massive amounts of data. Think about it, 2047 characters is more than a full screen of text data (25*80 =3D 2000). For that much data to be passed I would use the OPEN/READ/CLOSE commands. This shouldn't be too much of a problem since you are already writing your data to an external file. You will simply have to make some minor code changes to process it. And you will not have to worry about the 2047 character limitation with the INPUT command. Peter -----Original Message----- From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org] On Behalf Of Ray Ontko Sent: Tuesday, September 19, 2006 6:31 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] What is the MAXLEN max value in INPUT command? Venkat, MAXLEN specifies that an error message should be generated if the input exceeds the length you specify. Since you're reading from a parameter file, it's important to note that if the input line is greater than 2047 in length, you can continue reading on the next line. If you know (in advance) that the input line is not an EXACT multiple of 2047, then you can simply check to see if 2047 is the input length of the piece you just read and, if so, read some more. The program below illustrates the point. If the input line might be a multiple of 2047, you'll have to be more clever and add some special string to terminate the parameter, or indicate the beginning of the next parameter. Hope this helps. Ray begin-program do main end-program begin-procedure main let $p1 =3D '' input $line 'p1' while length($line)=3D2047 let $p1 =3D $p1 || $line input $line 'p1 cont' end-while let $p1 =3D $p1 || $line let #len =3D length($p1) show #len edit 99999 input $p2 'p2' let #len =3D length($p2) show #len edit 99999 end-procedure ! main Venkat Maligreddy wrote: > Hi I want to send large chunk of data as a parameter to the SQR. >=20=20 > Input $psMiscParam MAXLEN=3D???? status=3D#istat type=3DTEXT >=20=20 > SQR is truncating data at 2047. I am reading the data through a=20 > parameter file. How can I increase this value? >=20=20 > This data is taken out of a Table Window (grid). >=20=20 > Thanks > Venkat > > _______________________________________________ > 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 If you have received this e-mail in error, please delete it and notify the sender as soon as possible. The contents of this e-mail may be confidential and the unauthorized use, copying, or dissemination of it and any attachments to it, is prohibited. Internet communications are not secure and Hyperion does not, therefore, accept legal responsibility for the contents of this message nor for any damage caused by viruses. The views expressed here do not necessarily represent those of Hyperion. For more information about Hyperion, please visit our Web site at: www.hyperion.com _______________________________________________ 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 If you have received this e-mail in error, please delete it and notify the = sender as soon as possible. The contents of this e-mail may be confidential= and the unauthorized use, copying, or dissemination of it and any attachme= nts to it, is prohibited. Internet communications are not secure and Hyperi= on does not, therefore, accept legal responsibility for the contents of thi= s message nor for any damage caused by viruses. The views expressed here do= not necessarily represent those of Hyperion. For more information about Hy= perion, please visit our Web site at: www.hyperion.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Sep 19 10:26:46 2006 Subject: RE: [sqr-users] Maximum size Oracle LONG RAW column Date: Tue, 19 Sep 2006 09:24:40 -0500 From: "Knapp, Richard" Long is a disparaged...denigrated...deprecated (that's it) data type for just the reason you have encountered. If you can possibly convert your database column(s) to blobs or clobs, you will be way ahead.=20 Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Warren Van Wyck Sent: Tuesday, September 19, 2006 7:56 AM To: sqr Subject: [sqr-users] Maximum size Oracle LONG RAW column Hi, I'm using SQR 8.3.1 on AIX 5.3 with Oracle 9. Other than trial and error, how do I find and/adjust the maximum size of a=20 LONG RAW column that SQR can handle. I'm getting this error: Hyperion SQR Server 8.3.1 Copyright (c) 1994-2005 Hyperion Solutions Corporation. All Rights Reserved. (SQR 5528) ORACLE fOCIStmtFetch error 1406 in cursor 2: ORA-01406: fetched column value was truncated on a Select for the LONG RAW column. This LONG RAW column is 652,170/326,085 bytes -- based on a C program that=20 checks lengths. Seems I might have to write C programs for all the processing. -- Warren Van Wyck University of Vermont _______________________________________________ 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 From sqr-users-bounces@sqrug.org Tue Sep 19 10:34:54 2006 Subject: RE: [sqr-users] Maximum size Oracle LONG RAW column Date: Tue, 19 Sep 2006 10:32:05 -0400 From: "Peter Burton" All, Hyperion SQR 9.0.1 (and above) supports LOBs (BLOB, CLOBS, etc.)=20 Peter -----Original Message----- From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Tuesday, September 19, 2006 10:25 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Maximum size Oracle LONG RAW column Long is a disparaged...denigrated...deprecated (that's it) data type for just the reason you have encountered. If you can possibly convert your database column(s) to blobs or clobs, you will be way ahead.=20 Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Warren Van Wyck Sent: Tuesday, September 19, 2006 7:56 AM To: sqr Subject: [sqr-users] Maximum size Oracle LONG RAW column Hi, I'm using SQR 8.3.1 on AIX 5.3 with Oracle 9. Other than trial and error, how do I find and/adjust the maximum size of a=20 LONG RAW column that SQR can handle. I'm getting this error: Hyperion SQR Server 8.3.1 Copyright (c) 1994-2005 Hyperion Solutions Corporation. All Rights Reserved. (SQR 5528) ORACLE fOCIStmtFetch error 1406 in cursor 2: ORA-01406: fetched column value was truncated on a Select for the LONG RAW column. This LONG RAW column is 652,170/326,085 bytes -- based on a C program that=20 checks lengths. Seems I might have to write C programs for all the processing. -- Warren Van Wyck University of Vermont _______________________________________________ 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 If you have received this e-mail in error, please delete it and notify the = sender as soon as possible. The contents of this e-mail may be confidential= and the unauthorized use, copying, or dissemination of it and any attachme= nts to it, is prohibited. Internet communications are not secure and Hyperi= on does not, therefore, accept legal responsibility for the contents of thi= s message nor for any damage caused by viruses. The views expressed here do= not necessarily represent those of Hyperion. For more information about Hy= perion, please visit our Web site at: www.hyperion.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Sep 19 11:04:03 2006 Date: Tue, 19 Sep 2006 11:01:48 -0400 From: Warren Van Wyck Subject: RE: [sqr-users] Maximum size Oracle LONG RAW column Hi Richard, I agree, but I'm reading it from a vendor package turnkey system from Diebold -- NO opportunity to customize code, etc. Upon further analysis, I can say SQR handles 233K, but not 326K -- maybe the limit is 256K. Appears that it is NOT configurable then? -- Warren At 10:24 AM 9/19/2006, Knapp, Richard wrote: >Long is a disparaged...denigrated...deprecated (that's it) data type for >just the reason you have encountered. If you can possibly convert your >database column(s) to blobs or clobs, you will be way ahead. > >Richard Knapp >AITS - Reporting >University of Missouri >Locust Street Building >Columbia, MO 65201 >573-882-8856 >knappr@umsystem.edu > >-----Original Message----- >From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org >[mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of >Warren Van Wyck >Sent: Tuesday, September 19, 2006 7:56 AM >To: sqr >Subject: [sqr-users] Maximum size Oracle LONG RAW column > >Hi, > >I'm using SQR 8.3.1 on AIX 5.3 with Oracle 9. > >Other than trial and error, how do I find and/adjust the maximum size of >a >LONG RAW column that SQR can handle. > >I'm getting this error: > >Hyperion SQR Server 8.3.1 >Copyright (c) 1994-2005 Hyperion Solutions Corporation. All Rights >Reserved. > >(SQR 5528) ORACLE fOCIStmtFetch error 1406 in cursor 2: > ORA-01406: fetched column value was truncated > >on a Select for the LONG RAW column. > >This LONG RAW column is 652,170/326,085 bytes -- based on a C program >that >checks lengths. > >Seems I might have to write C programs for all the processing. > >-- Warren Van Wyck > University of Vermont > > >_______________________________________________ >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 From sqr-users-bounces@sqrug.org Wed Sep 20 02:21:49 2006 Date: Wed, 20 Sep 2006 16:19:38 +1000 From: "=?ISO-2022-JP?B?GyRCQCRFLzIrGyhC?=" Subject: [sqr-users] Dynamic hint error Hi, I am trying to use a dynamic hint in my SQR like this: if ($bill = 'S' or $bill = 'A') let $hint = ' /*+ full(SFL)*/)' else let $hint = '' end-if begin-select on-error=ERROR-DISPLAY [$hint] &hint=char SF.EXT_ORG_ID SF.CONTRACT_NUM SF.EMPLID FROM PS_ITEM_SF SF, PS_ITEM_LINE_SF SFL WHERE SF.BUSINESS_UNIT = $business_unit AND SF.BUSINESS_UNIT = SFL.BUSINESS_UNIT AND SF.ITEM_NBR = SFL.ITEM_NBR AND SFL.BILLING_FLAG <> 'Y' end-select When I set "bill = S or A" and run this SQR, it comes out an error: "DB-Error in C:\SQR\002.sqr at line 322: ORA-00936: missing expression" otherwise, it runs successfully. Does anybody help me out of it? Thanks a lot. Cheers Eric _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 20 02:35:13 2006 Date: Wed, 20 Sep 2006 16:32:22 +1000 From: "Ian Mills" Subject: Re: [sqr-users] Dynamic hint error Eric, Try deleting &hint=3Dchar Having this makes SQR think it is refering to a column named "/*+ full(SFL)= */)" Regards, Ian ORIX Australia Corp Ltd >>> eric.s.huang@gmail.com 20/09/2006 4:19 pm >>> Hi, I am trying to use a dynamic hint in my SQR like this: if ($bill =3D 'S' or $bill =3D 'A') let $hint =3D ' /*+ full(SFL)*/)' else let $hint =3D '' end-if begin-select on-error=3DERROR-DISPLAY [$hint] &hint=3Dchar SF.EXT_ORG_ID SF.CONTRACT_NUM SF.EMPLID FROM PS_ITEM_SF SF, PS_ITEM_LINE_SF SFL WHERE SF.BUSINESS_UNIT =3D $business_unit AND SF.BUSINESS_UNIT =3D SFL.BUSINESS_UNIT AND SF.ITEM_NBR =3D SFL.ITEM_NBR AND SFL.BILLING_FLAG <> 'Y' end-select When I set "bill =3D S or A" and run this SQR, it comes out an error: "DB-Error in C:\SQR\002.sqr at line 322: ORA-00936: missing expression" otherwise, it runs successfully. Does anybody help me out of it? Thanks a lot. Cheers Eric _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 --=20 This message from ORIX Australia might contain confidential and/or privileged information. If you are not the intended recipient, any use, disclosure or copying of this message (or of any attachments to it) is not authorised. If you have received this message in error, please notify the sender immediately and delete the message and any attachments from your system. Please inform the sender if you do not wish to receive future communications by email. ORIX handles personal information according to a Privacy Policy that is consistent with the National Privacy Principles. Please let us know if you would like a copy. It is also available at http://www.orix.com.au . _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 20 02:58:30 2006 Date: Wed, 20 Sep 2006 16:56:20 +1000 From: "=?ISO-2022-JP?B?GyRCQCRFLzIrGyhC?=" Subject: Re: [sqr-users] Dynamic hint error Thanks Ian, but if deleting &hint=char, it will bring another error "(SQR 3743) Dynamic columns must have a &pseudonym." Regards Eric On 9/20/06, Ian Mills wrote: > > Eric, > > Try deleting &hint=char > Having this makes SQR think it is refering to a column named "/*+ > full(SFL)*/)" > > Regards, > Ian > ORIX Australia Corp Ltd > > >>> eric.s.huang@gmail.com 20/09/2006 4:19 pm >>> > Hi, > > I am trying to use a dynamic hint in my SQR like this: > > if ($bill = 'S' or $bill = 'A') > let $hint = ' /*+ full(SFL)*/)' > else > let $hint = '' > end-if > > begin-select on-error=ERROR-DISPLAY > [$hint] &hint=char > SF.EXT_ORG_ID > SF.CONTRACT_NUM > SF.EMPLID > FROM PS_ITEM_SF SF, PS_ITEM_LINE_SF SFL > WHERE SF.BUSINESS_UNIT = $business_unit > AND SF.BUSINESS_UNIT = SFL.BUSINESS_UNIT > AND SF.ITEM_NBR = SFL.ITEM_NBR > AND SFL.BILLING_FLAG <> 'Y' > end-select > > > > When I set "bill = S or A" and run this SQR, it comes out an error: > "DB-Error in C:\SQR\002.sqr at line 322: ORA-00936: missing expression" > otherwise, it runs successfully. > > Does anybody help me out of it? Thanks a lot. > > > Cheers > > Eric > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > -- > > This message from ORIX Australia might contain confidential and/or > privileged information. If you are not the intended recipient, any use, > disclosure or copying of this message (or of any attachments to it) is > not authorised. > > If you have received this message in error, please notify the sender > immediately and delete the message and any attachments from your > system. Please inform the sender if you do not wish to receive future > communications by email. > > ORIX handles personal information according to a Privacy Policy that is > consistent with the National Privacy Principles. Please let us know if > you would like a copy. It is also available at http://www.orix.com.au . > > > > _______________________________________________ > 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 From sqr-users-bounces@sqrug.org Wed Sep 20 03:07:40 2006 Date: Wed, 20 Sep 2006 17:04:46 +1000 From: "Ian Mills" Subject: Re: [sqr-users] Dynamic hint error Eric, Maybe it is not possible to have Dynamic Hints. You could always put a begin-select within the IF statement. One that has t= he Hint included and the other with no hint. I cannot see why you would want to apply a hint on some circumstances and n= ot on others as in your case, $bill has no impact on the query itself so wh= y don't you always include a hint Regards, Ian ORIX Australia Corp Ltd >>> eric.s.huang@gmail.com 20/09/2006 4:56 pm >>> Thanks Ian, but if deleting &hint=3Dchar, it will bring another error "(SQR 3743) Dynamic columns must have a &pseudonym." Regards Eric On 9/20/06, Ian Mills wrote: > > Eric, > > Try deleting &hint=3Dchar > Having this makes SQR think it is refering to a column named "/*+ > full(SFL)*/)" > > Regards, > Ian > ORIX Australia Corp Ltd > > >>> eric.s.huang@gmail.com 20/09/2006 4:19 pm >>> > Hi, > > I am trying to use a dynamic hint in my SQR like this: > > if ($bill =3D 'S' or $bill =3D 'A') > let $hint =3D ' /*+ full(SFL)*/)' > else > let $hint =3D '' > end-if > > begin-select on-error=3DERROR-DISPLAY > [$hint] &hint=3Dchar > SF.EXT_ORG_ID > SF.CONTRACT_NUM > SF.EMPLID > FROM PS_ITEM_SF SF, PS_ITEM_LINE_SF SFL > WHERE SF.BUSINESS_UNIT =3D $business_unit > AND SF.BUSINESS_UNIT =3D SFL.BUSINESS_UNIT > AND SF.ITEM_NBR =3D SFL.ITEM_NBR > AND SFL.BILLING_FLAG <> 'Y' > end-select > > > > When I set "bill =3D S or A" and run this SQR, it comes out an error: > "DB-Error in C:\SQR\002.sqr at line 322: ORA-00936: missing expression" > otherwise, it runs successfully. > > Does anybody help me out of it? Thanks a lot. > > > Cheers > > Eric > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 > > > > -- > > This message from ORIX Australia might contain confidential and/or > privileged information. If you are not the intended recipient, any use, > disclosure or copying of this message (or of any attachments to it) is > not authorised. > > If you have received this message in error, please notify the sender > immediately and delete the message and any attachments from your > system. Please inform the sender if you do not wish to receive future > communications by email. > > ORIX handles personal information according to a Privacy Policy that is > consistent with the National Privacy Principles. Please let us know if > you would like a copy. It is also available at http://www.orix.com.au . > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 20 06:17:10 2006 Subject: RE: [sqr-users] Dynamic hint error Date: Wed, 20 Sep 2006 06:13:28 -0400 From: "Peter Burton" All, Try the following ... if ($bill =3D 'S' or $bill =3D 'A') let $hint =3D '/*+ full(SFL)*/) SF.EXT_ORG_ID' else let $hint =3D 'SF.EXT_ORG_ID' end-if begin-select on-error=3DERROR-DISPLAY [$HINT] &SF.EXT_ORG_ID=3DChar SF.CONTRACT_NUM SF.EMPLID FROM PS_ITEM_SF SF, PS_ITEM_LINE_SF SFL WHERE SF.BUSINESS_UNIT =3D $business_unit AND SF.BUSINESS_UNIT =3D SFL.BUSINESS_UNIT AND SF.ITEM_NBR =3D SFL.ITEM_NBR AND SFL.BILLING_FLAG <> 'Y' end-select=20 Peter -----Original Message----- From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org] On Behalf Of Ian Mills Sent: Wednesday, September 20, 2006 3:05 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Dynamic hint error Eric, Maybe it is not possible to have Dynamic Hints. You could always put a begin-select within the IF statement. One that has the Hint included and the other with no hint. I cannot see why you would want to apply a hint on some circumstances and not on others as in your case, $bill has no impact on the query itself so why don't you always include a hint Regards, Ian ORIX Australia Corp Ltd >>> eric.s.huang@gmail.com 20/09/2006 4:56 pm >>> Thanks Ian, but if deleting &hint=3Dchar, it will bring another error "(SQR 3743) Dynamic columns must have a &pseudonym." Regards Eric On 9/20/06, Ian Mills wrote: > > Eric, > > Try deleting &hint=3Dchar > Having this makes SQR think it is refering to a column named "/*+ > full(SFL)*/)" > > Regards, > Ian > ORIX Australia Corp Ltd > > >>> eric.s.huang@gmail.com 20/09/2006 4:19 pm >>> > Hi, > > I am trying to use a dynamic hint in my SQR like this: > > if ($bill =3D 'S' or $bill =3D 'A') > let $hint =3D ' /*+ full(SFL)*/)' > else > let $hint =3D '' > end-if > > begin-select on-error=3DERROR-DISPLAY > [$hint] &hint=3Dchar > SF.EXT_ORG_ID > SF.CONTRACT_NUM > SF.EMPLID > FROM PS_ITEM_SF SF, PS_ITEM_LINE_SF SFL > WHERE SF.BUSINESS_UNIT =3D $business_unit > AND SF.BUSINESS_UNIT =3D SFL.BUSINESS_UNIT > AND SF.ITEM_NBR =3D SFL.ITEM_NBR > AND SFL.BILLING_FLAG <> 'Y' > end-select > > > > When I set "bill =3D S or A" and run this SQR, it comes out an error: > "DB-Error in C:\SQR\002.sqr at line 322: ORA-00936: missing expression" > otherwise, it runs successfully. > > Does anybody help me out of it? Thanks a lot. > > > Cheers > > Eric > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 > > > > -- > > This message from ORIX Australia might contain confidential and/or > privileged information. If you are not the intended recipient, any use, > disclosure or copying of this message (or of any attachments to it) is > not authorised. > > If you have received this message in error, please notify the sender > immediately and delete the message and any attachments from your > system. Please inform the sender if you do not wish to receive future > communications by email. > > ORIX handles personal information according to a Privacy Policy that is > consistent with the National Privacy Principles. Please let us know if > you would like a copy. It is also available at http://www.orix.com.au =2E > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users If you have received this e-mail in error, please delete it and notify the = sender as soon as possible. The contents of this e-mail may be confidential= and the unauthorized use, copying, or dissemination of it and any attachme= nts to it, is prohibited. Internet communications are not secure and Hyperi= on does not, therefore, accept legal responsibility for the contents of thi= s message nor for any damage caused by viruses. The views expressed here do= not necessarily represent those of Hyperion. For more information about Hy= perion, please visit our Web site at: www.hyperion.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 20 12:04:13 2006 From: "the dragon" Subject: RE: [sqr-users] SQR Report Writer Consultant Needed for 3 Month+Project in the DC Area Date: Wed, 20 Sep 2006 11:00:52 -0500 Neal, Is this something I could do in my off-hours (about 20/wk) and work remotely? peace, clark PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hello, My client needs an experienced SQR Report Writer for a 3 month engagement that will probably turn into 6 months or more. The client location is in the greater DC area. The timeframe is immediate, and the compensation is flexible. We are looking for candidates with strong SQR experience, preferably several years. Please send me an email with your resume and contact information if you're interested. Thank you, Neal _________________________________________________________________ Be seen and heard with Windows Live Messenger and Microsoft LifeCams http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://www.microsoft.com/hardware/digitalcommunication/default.mspx?locale=en-us&source=hmtagline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 20 12:07:33 2006 From: "the dragon" Subject: RE: [sqr-users] SQR Report Writer Consultant Needed for 3 Month+Project in the DC Area Date: Wed, 20 Sep 2006 11:02:23 -0500 CRAP!!!! Sorry about that - didn't see where it was going before I pressed send. Sorry gang. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) _________________________________________________________________ Add fun gadgets and colorful themes to express yourself on Windows Live Spaces http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://www.get.live.com/spaces/features _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 20 20:50:25 2006 Date: Thu, 21 Sep 2006 10:48:10 +1000 From: "=?ISO-2022-JP?B?GyRCQCRFLzIrGyhC?=" Subject: Re: [sqr-users] Dynamic hint error Thanks Peter, I've tried it, but still got this "ORA-00936: missing expression" error. it will work if I put hint this way begin-select on-error=ERROR-DISPLAY /*+ full(SFL)*/ SF.EXT_ORG_ID SF.CONTRACT_NUM .... It seems this dynamic hint can't be recognized. Cheers Eric On 9/20/06, Peter Burton wrote: > > All, > > Try the following ... > > if ($bill = 'S' or $bill = 'A') > let $hint = '/*+ full(SFL)*/) SF.EXT_ORG_ID' > else > let $hint = 'SF.EXT_ORG_ID' > end-if > > begin-select on-error=ERROR-DISPLAY > [$HINT] &SF.EXT_ORG_ID=Char > SF.CONTRACT_NUM > SF.EMPLID > FROM PS_ITEM_SF SF, PS_ITEM_LINE_SF SFL > WHERE SF.BUSINESS_UNIT = $business_unit > AND SF.BUSINESS_UNIT = SFL.BUSINESS_UNIT > AND SF.ITEM_NBR = SFL.ITEM_NBR > AND SFL.BILLING_FLAG <> 'Y' > end-select > > Peter > > -----Original Message----- > From: sqr-users-bounces+peter_burton=hyperion.com@sqrug.org > [mailto:sqr-users-bounces+peter_burton=hyperion.com@sqrug.org] On Behalf > Of Ian Mills > Sent: Wednesday, September 20, 2006 3:05 AM > To: sqr-users@sqrug.org > Subject: Re: [sqr-users] Dynamic hint error > > Eric, > > Maybe it is not possible to have Dynamic Hints. > > You could always put a begin-select within the IF statement. One that > has the Hint included and the other with no hint. > > I cannot see why you would want to apply a hint on some circumstances > and not on others as in your case, $bill has no impact on the query > itself so why don't you always include a hint > > Regards, > Ian > ORIX Australia Corp Ltd > > >>> eric.s.huang@gmail.com 20/09/2006 4:56 pm >>> > Thanks Ian, but if deleting &hint=char, it will bring another error > > "(SQR 3743) Dynamic columns must have a &pseudonym." > > Regards > > Eric > > On 9/20/06, Ian Mills wrote: > > > > Eric, > > > > Try deleting &hint=char > > Having this makes SQR think it is refering to a column named "/*+ > > full(SFL)*/)" > > > > Regards, > > Ian > > ORIX Australia Corp Ltd > > > > >>> eric.s.huang@gmail.com 20/09/2006 4:19 pm >>> > > Hi, > > > > I am trying to use a dynamic hint in my SQR like this: > > > > if ($bill = 'S' or $bill = 'A') > > let $hint = ' /*+ full(SFL)*/)' > > else > > let $hint = '' > > end-if > > > > begin-select on-error=ERROR-DISPLAY > > [$hint] &hint=char > > SF.EXT_ORG_ID > > SF.CONTRACT_NUM > > SF.EMPLID > > FROM PS_ITEM_SF SF, PS_ITEM_LINE_SF SFL > > WHERE SF.BUSINESS_UNIT = $business_unit > > AND SF.BUSINESS_UNIT = SFL.BUSINESS_UNIT > > AND SF.ITEM_NBR = SFL.ITEM_NBR > > AND SFL.BILLING_FLAG <> 'Y' > > end-select > > > > > > > > When I set "bill = S or A" and run this SQR, it comes out an error: > > "DB-Error in C:\SQR\002.sqr at line 322: ORA-00936: missing > expression" > > otherwise, it runs successfully. > > > > Does anybody help me out of it? Thanks a lot. > > > > > > Cheers > > > > Eric > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > -- > > > > This message from ORIX Australia might contain confidential and/or > > privileged information. If you are not the intended recipient, any > use, > > disclosure or copying of this message (or of any attachments to it) is > > not authorised. > > > > If you have received this message in error, please notify the sender > > immediately and delete the message and any attachments from your > > system. Please inform the sender if you do not wish to receive future > > communications by email. > > > > ORIX handles personal information according to a Privacy Policy that > is > > consistent with the National Privacy Principles. Please let us know if > > you would like a copy. It is also available at http://www.orix.com.au > . > > > > > > > > _______________________________________________ > > 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 > > > If you have received this e-mail in error, please delete it and notify the > sender as soon as possible. The contents of this e-mail may be confidential > and the unauthorized use, copying, or dissemination of it and any > attachments to it, is prohibited. Internet communications are not secure and > Hyperion does not, therefore, accept legal responsibility for the contents > of this message nor for any damage caused by viruses. The views expressed > here do not necessarily represent those of Hyperion. For more information > about Hyperion, please visit our Web site at: www.hyperion.com > > > > _______________________________________________ > 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 From sqr-users-bounces@sqrug.org Wed Sep 20 23:11:03 2006 Date: Thu, 21 Sep 2006 13:08:55 +1000 From: "=?ISO-2022-JP?B?GyRCQCRFLzIrGyhC?=" Subject: Re: [sqr-users] Dynamic hint error It works, thanks Peter :) Just change $hint = '/*+ full(SFL)*/) SF.EXT_ORG_ID' to $hint = '/*+ full(SFL)*/ SF.EXT_ORG_ID' cheers Eric On 9/20/06, Peter Burton wrote: > > All, > > Try the following ... > > if ($bill = 'S' or $bill = 'A') > let $hint = '/*+ full(SFL)*/) SF.EXT_ORG_ID' > else > let $hint = 'SF.EXT_ORG_ID' > end-if > > begin-select on-error=ERROR-DISPLAY > [$HINT] &SF.EXT_ORG_ID=Char > SF.CONTRACT_NUM > SF.EMPLID > FROM PS_ITEM_SF SF, PS_ITEM_LINE_SF SFL > WHERE SF.BUSINESS_UNIT = $business_unit > AND SF.BUSINESS_UNIT = SFL.BUSINESS_UNIT > AND SF.ITEM_NBR = SFL.ITEM_NBR > AND SFL.BILLING_FLAG <> 'Y' > end-select > > Peter > > -----Original Message----- > From: sqr-users-bounces+peter_burton=hyperion.com@sqrug.org > [mailto:sqr-users-bounces+peter_burton=hyperion.com@sqrug.org] On Behalf > Of Ian Mills > Sent: Wednesday, September 20, 2006 3:05 AM > To: sqr-users@sqrug.org > Subject: Re: [sqr-users] Dynamic hint error > > Eric, > > Maybe it is not possible to have Dynamic Hints. > > You could always put a begin-select within the IF statement. One that > has the Hint included and the other with no hint. > > I cannot see why you would want to apply a hint on some circumstances > and not on others as in your case, $bill has no impact on the query > itself so why don't you always include a hint > > Regards, > Ian > ORIX Australia Corp Ltd > > >>> eric.s.huang@gmail.com 20/09/2006 4:56 pm >>> > Thanks Ian, but if deleting &hint=char, it will bring another error > > "(SQR 3743) Dynamic columns must have a &pseudonym." > > Regards > > Eric > > On 9/20/06, Ian Mills wrote: > > > > Eric, > > > > Try deleting &hint=char > > Having this makes SQR think it is refering to a column named "/*+ > > full(SFL)*/)" > > > > Regards, > > Ian > > ORIX Australia Corp Ltd > > > > >>> eric.s.huang@gmail.com 20/09/2006 4:19 pm >>> > > Hi, > > > > I am trying to use a dynamic hint in my SQR like this: > > > > if ($bill = 'S' or $bill = 'A') > > let $hint = ' /*+ full(SFL)*/)' > > else > > let $hint = '' > > end-if > > > > begin-select on-error=ERROR-DISPLAY > > [$hint] &hint=char > > SF.EXT_ORG_ID > > SF.CONTRACT_NUM > > SF.EMPLID > > FROM PS_ITEM_SF SF, PS_ITEM_LINE_SF SFL > > WHERE SF.BUSINESS_UNIT = $business_unit > > AND SF.BUSINESS_UNIT = SFL.BUSINESS_UNIT > > AND SF.ITEM_NBR = SFL.ITEM_NBR > > AND SFL.BILLING_FLAG <> 'Y' > > end-select > > > > > > > > When I set "bill = S or A" and run this SQR, it comes out an error: > > "DB-Error in C:\SQR\002.sqr at line 322: ORA-00936: missing > expression" > > otherwise, it runs successfully. > > > > Does anybody help me out of it? Thanks a lot. > > > > > > Cheers > > > > Eric > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > -- > > > > This message from ORIX Australia might contain confidential and/or > > privileged information. If you are not the intended recipient, any > use, > > disclosure or copying of this message (or of any attachments to it) is > > not authorised. > > > > If you have received this message in error, please notify the sender > > immediately and delete the message and any attachments from your > > system. Please inform the sender if you do not wish to receive future > > communications by email. > > > > ORIX handles personal information according to a Privacy Policy that > is > > consistent with the National Privacy Principles. Please let us know if > > you would like a copy. It is also available at http://www.orix.com.au > . > > > > > > > > _______________________________________________ > > 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 > > > If you have received this e-mail in error, please delete it and notify the > sender as soon as possible. The contents of this e-mail may be confidential > and the unauthorized use, copying, or dissemination of it and any > attachments to it, is prohibited. Internet communications are not secure and > Hyperion does not, therefore, accept legal responsibility for the contents > of this message nor for any damage caused by viruses. The views expressed > here do not necessarily represent those of Hyperion. For more information > about Hyperion, please visit our Web site at: www.hyperion.com > > > > _______________________________________________ > 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 From sqr-users-bounces@sqrug.org Thu Sep 21 08:38:47 2006 Date: Thu, 21 Sep 2006 18:04:30 +0530 From: Sanjay Sambhe Subject: RE: [sqr-users] SQR Report Writer Consultant Needed for 3 Month+Project in the DC Area Hi Neal, I AM INTERESTED !!! Give me your email id.. ss -----Original Message----- From: sqr-users-bounces+ssambhe=cisco.com@sqrug.org [mailto:sqr-users-bounces+ssambhe=cisco.com@sqrug.org] On Behalf Of the dragon Sent: Wednesday, September 20, 2006 9:31 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] SQR Report Writer Consultant Needed for 3 Month+Project in the DC Area Neal, Is this something I could do in my off-hours (about 20/wk) and work remotely? peace, clark PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hello, My client needs an experienced SQR Report Writer for a 3 month engagement that will probably turn into 6 months or more. The client location is in the greater DC area. The timeframe is immediate, and the compensation is flexible. We are looking for candidates with strong SQR experience, preferably several years. Please send me an email with your resume and contact information if you're interested. Thank you, Neal _________________________________________________________________ Be seen and heard with Windows Live Messenger and Microsoft LifeCams http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://www microsoft.com/hardware/digitalcommunication/default.mspx?locale=en-us&sourc e=hmtagline _______________________________________________ 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 From sqr-users-bounces@sqrug.org Fri Sep 22 16:08:34 2006 Date: Fri, 22 Sep 2006 16:06:18 -0400 From: "sunny mang" Subject: [sqr-users] hi to all hello friends i m looking for some hard sqrs for practice purpose can any one tell me where i can have those so that i gain more knowledge at them any examples , any samples are welcomed any help is highly appreciated thanku sunny _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sat Sep 23 00:21:37 2006 Date: Sat, 23 Sep 2006 00:19:33 -0400 From: "sunny mang" Subject: [sqr-users] Re: hi to all hi everyone can anyone tell me where i can get the interview questions for peoplesoft hrm module any stuff anyone has or any website any help will be highly appreciated thanks in advance sunny On 9/22/06, sunny mang wrote: > > hello friends > > i m looking for some hard sqrs for practice purpose > can any one tell me where i can have those so that i gain more knowledge > at them > any examples , any samples are welcomed > any help is highly appreciated > thanku > sunny > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 25 10:21:51 2006 From: Date: Mon, 25 Sep 2006 8:20:50 -0400 Subject: [sqr-users] Causes may include SQR configuration and the BRB datasource definition Hi, I've been working with Hyperion SQR developer for about 6 months. I was trying to establish a new connection to a different database and was having trouble setting up the connection. I did not make many modifications to the system. Suddenly I'm getting the error message 'Cannot produce HTML output file. Causes may include SQR configuration and the BRB datasource definition'. I've looked at some of the other threads and do get the error when I'm not connected to the database and do a print preview and type in -cb. I don't have any .err files in my BINW folder. The server is installed on my computer. I did do an uninstall and reinstall. After that my existing db connections were still showing in the list. Can anyone tell me what I might have done? Thanks SQR product name and version number- SQR 8.2.0 Operating system name and version number- Windows XP 2002 Database name and version number - DB2 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 25 12:12:04 2006 Date: Mon, 25 Sep 2006 11:56:06 -0400 From: "Moran, Patrick T." Subject: [sqr-users] SQR Automatic Commit or Rollback I'm trying to verify the cause of data errors that seem to be occurring from running an SQR program that experiences errors at runtime. =20 The Landres SQR book states on p.99 that "When your program finishes without errors, Commit is performed by SQR automatically." I can't seem to find it written anywhere, but can I assume that a rollback is automatically performed by SQR if an error occurs in your program that performs table changes in Begin-SQL paragraphs? If that is indeed the case, it would explain what I am seeing in our data after the errors occurring during the run of a particular SQR program. =20 Thanks in advance for any insight you may give. =20 Pat =20 Patrick T. Moran=20 Applications Specialist, Administrative Systems LITC-B33=20 Trinity College 300 Summit Street Hartford, CT 06106=20 Voice: 860.297.2223 Fax: 860.297.2569=20 Email: patrick.moran@trincoll.edu =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Sep 25 12:54:07 2006 Subject: RE: [sqr-users] SQR Automatic Commit or Rollback Date: Mon, 25 Sep 2006 11:16:25 -0500 From: "Knapp, Richard" Hi Pat, You have described how SQR works. If the program does not complete successfully, any database transactions are rolled back. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Moran, Patrick T. Sent: Monday, September 25, 2006 10:56 AM To: sqr-users@sqrug.org Subject: [sqr-users] SQR Automatic Commit or Rollback I'm trying to verify the cause of data errors that seem to be occurring from running an SQR program that experiences errors at runtime. =20 The Landres SQR book states on p.99 that "When your program finishes without errors, Commit is performed by SQR automatically." I can't seem to find it written anywhere, but can I assume that a rollback is automatically performed by SQR if an error occurs in your program that performs table changes in Begin-SQL paragraphs? If that is indeed the case, it would explain what I am seeing in our data after the errors occurring during the run of a particular SQR program. =20 Thanks in advance for any insight you may give. =20 Pat =20 Patrick T. Moran=20 Applications Specialist, Administrative Systems LITC-B33=20 Trinity College 300 Summit Street Hartford, CT 06106=20 Voice: 860.297.2223 Fax: 860.297.2569=20 Email: patrick.moran@trincoll.edu =20 _______________________________________________ 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 From sqr-users-bounces@sqrug.org Mon Sep 25 12:57:21 2006 Subject: RE: [sqr-users] SQR Automatic Commit or Rollback Date: Mon, 25 Sep 2006 11:18:29 -0500 From: "Bob Stone" yes. If it finishes successfully it commits.=20=20 If you have a BEGIN-SQL paragraph that returns an error from the DB and you aren't handling that error in an ON-ERROR procedure, then the SQR will stop in ERROR status and rollback everything up to the previous explicit commit (and it sounds like you don't have any of those).=20=20 This would mean everything is rolled back if there are no COMMIT statements in the SQR. -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of Moran, Patrick T. Sent: Monday, September 25, 2006 10:56 AM To: sqr-users@sqrug.org Subject: [sqr-users] SQR Automatic Commit or Rollback I'm trying to verify the cause of data errors that seem to be occurring from running an SQR program that experiences errors at runtime. =20 The Landres SQR book states on p.99 that "When your program finishes without errors, Commit is performed by SQR automatically." I can't seem to find it written anywhere, but can I assume that a rollback is automatically performed by SQR if an error occurs in your program that performs table changes in Begin-SQL paragraphs? If that is indeed the case, it would explain what I am seeing in our data after the errors occurring during the run of a particular SQR program. =20 Thanks in advance for any insight you may give. =20 Pat =20 Patrick T. Moran=20 Applications Specialist, Administrative Systems LITC-B33=20 Trinity College 300 Summit Street Hartford, CT 06106=20 Voice: 860.297.2223 Fax: 860.297.2569=20 Email: patrick.moran@trincoll.edu =20 _______________________________________________ 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 From sqr-users-bounces@sqrug.org Mon Sep 25 13:00:50 2006 From: "Alexander, Steven" Subject: RE: [sqr-users] SQR Automatic Commit or Rollback Date: Mon, 25 Sep 2006 09:50:11 -0700 An SQR program that ends in an error will perform a rollback. Of course, if you've executed an explicit commit in your program, those changes will remain in the database. Also, if you truncate a table, that cannot be rolled back. -----Original Message----- From: Moran, Patrick T. [mailto:Patrick.Moran@trincoll.edu] Sent: Monday, September 25, 2006 8:56 AM To: sqr-users@sqrug.org Subject: [sqr-users] SQR Automatic Commit or Rollback I'm trying to verify the cause of data errors that seem to be occurring from running an SQR program that experiences errors at runtime. The Landres SQR book states on p.99 that "When your program finishes without errors, Commit is performed by SQR automatically." I can't seem to find it written anywhere, but can I assume that a rollback is automatically performed by SQR if an error occurs in your program that performs table changes in Begin-SQL paragraphs? If that is indeed the case, it would explain what I am seeing in our data after the errors occurring during the run of a particular SQR program. Thanks in advance for any insight you may give. Pat Patrick T. Moran Applications Specialist, Administrative Systems LITC-B33 Trinity College 300 Summit Street Hartford, CT 06106 Voice: 860.297.2223 Fax: 860.297.2569 Email: patrick.moran@trincoll.edu _______________________________________________ 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 From sqr-users-bounces@sqrug.org Mon Sep 25 13:18:25 2006 Date: Mon, 25 Sep 2006 13:11:46 -0400 From: "Jenny Mckeon" Subject: [sqr-users] Sending EMAIL from an SQR Program Is it possible to send an EMAIL with the "message" in the body of the EMAIL, not in an attachment. The message will have variables. Jenny Mackinnon Shands Healthcare, Info. Svcs. Application Systems Analyst (352) 265-0680, ext. 8-5232 internet:mckeon@shands.ufl.edu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 27 07:18:18 2006 Subject: RE: [sqr-users] Sending EMAIL from an SQR Program Date: Tue, 26 Sep 2006 07:53:49 -0500 From: "Jeff Blaisdell" When I have to send an email, I do it issueing a mailx Unix call. Mailx syntax info can be found: http://www.computerhope.com/unix/umailx.htm Here's an example... BEGIN-SELECT email_address=20 let $emailaddress =3Dltrim( rtrim(&email_address, ' '), ' ') let $command =3D 'mailx -s "' || $emailsubject || '" ' || $emailaddress || ' < ' || $emailfilename show $command call system using $command #unix_status=20=20=20 if #unix_status <> 0 show 'Error sending e-mail to: ' $emailaddress end-if=20 FROM ps_fas_email_tbl WHERE fas_module =3D 'AR'=20 AND fas_prg_name =3D 'FASAR789'=20 AND status =3D 'A' END-SELECT -----Original Message----- From: Jenny Mckeon [mailto:MCKEON@shands.ufl.edu]=20 Sent: Monday, September 25, 2006 12:12 PM To: sqr-users@sqrug.org Subject: [sqr-users] Sending EMAIL from an SQR Program Is it possible to send an EMAIL with the "message" in the body of the EMAIL, not in an attachment. The message will have variables. Jenny Mackinnon Shands Healthcare, Info. Svcs. Application Systems Analyst (352) 265-0680, ext. 8-5232 internet:mckeon@shands.ufl.edu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 27 07:29:25 2006 Date: Tue, 26 Sep 2006 10:17:18 -0400 From: "Overcashier, Patricia" Subject: [sqr-users] removing special characters I have seen in previous posts that there is a delivered sqc from PeopleSoft that removes accents. We do not have that sqc, so I am stuck.=20=20 Since we now have many countries, several of them Latin, there are many special characters. When I am trying to compare names, I want all special characters removed, but can't seem to figure out how to do this.=20=20 Any suggestions would be appreciated. Thanks! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 27 09:06:56 2006 Date: Wed, 27 Sep 2006 10:04:12 -0300 From: "PeterG Clark" Subject: Re: [sqr-users] removing special characters We had a similar requirement since we deal with a lot of French names. We u= se a TRANSLATE to convert accented characters to equivalent unaccented char= acters before doing the compare. example (not all accented french characters included): let $lstname =3D translate($lstname,'=E0=E1=E2=E7=E8=E9=EA','aaaceee') Hope that helps. >>> Patricia.Overcashier@aam.com 2006/09/26 11:17:18 >>> I have seen in previous posts that there is a delivered sqc from PeopleSoft that removes accents. We do not have that sqc, so I am stuck.=20=20 Since we now have many countries, several of them Latin, there are many special characters. When I am trying to compare names, I want all special characters removed, but can't seem to figure out how to do this.=20=20 Any suggestions would be appreciated. Thanks! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 27 09:11:02 2006 Subject: RE: [sqr-users] removing special characters Date: Wed, 27 Sep 2006 09:07:51 -0400 From: "Overcashier, Patricia" That's a good idea. I will give it a try. Thanks! -----Original Message----- From: sqr-users-bounces+patricia.overcashier=3Daam.com@sqrug.org [mailto:sq= r-users-bounces+patricia.overcashier=3Daam.com@sqrug.org] On Behalf Of Pete= rG Clark Sent: Wednesday, September 27, 2006 9:04 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] removing special characters We had a similar requirement since we deal with a lot of French names. We u= se a TRANSLATE to convert accented characters to equivalent unaccented char= acters before doing the compare. example (not all accented french characters included): let $lstname =3D translate($lstname,'=E0=E1=E2=E7=E8=E9=EA','aaaceee') Hope that helps. >>> Patricia.Overcashier@aam.com 2006/09/26 11:17:18 >>> I have seen in previous posts that there is a delivered sqc from PeopleSoft that removes accents. We do not have that sqc, so I am stuck.=20=20 Since we now have many countries, several of them Latin, there are many special characters. When I am trying to compare names, I want all special characters removed, but can't seem to figure out how to do this.=20=20 Any suggestions would be appreciated. Thanks! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 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 From sqr-users-bounces@sqrug.org Wed Sep 27 09:30:09 2006 Date: Wed, 27 Sep 2006 08:27:16 -0500 From: "Sumana.Akella" Subject: [sqr-users] Insert a report in the table Hi, Can some one please help me out in solving the below problem. I have a filename called 'TAX810NE' and it creates 16 files when run through PS ex- T810NE01, T810NE02, T810NE03.....T810NE16 and stores them in the reports directory and I have to copy all these files into a table I have the below code Let #status =3D0 Let #count =3D 0=20=20=20 While #status=3D0 (if the file is found #status will be zero) Add 1 to #count Move #count to $extension 099=20 Evaluate $prcsname When $prcsname =3D 'TAX810NE' =20=20=20=20 Let $filename =3D '{FILEPREFIX}' || T810NE01 || edit(#count , '00') Move '' to $extension end-evaluate if $prcsname <> 'TAX810NE' let $filename =3D '{FILEPREFIX}' || 'TA' || substr($prcsname, 3, 6) ||=20=20=20 '.' || $extension end-if end-while=20 The above code just copies T810NE01 ............ I am not sure how to approach to this problem Thanks Sumana =20=20=20=20=20=20=20=20=20=20=20=20=20 =20=20=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 27 09:33:42 2006 Date: Wed, 27 Sep 2006 08:30:02 -0500 From: "Sumana.Akella" Subject: [sqr-users] Insert a report in the table Oops a small correction in my code .... It's Let $filename =3D '{FILEPREFIX}' || T810NE || edit(#count , '00') Not Let $filename =3D '{FILEPREFIX}' || T810NE01 || edit(#count , '00') Thanks sumana Hi, Can some one please help me out in solving the below problem. I have a filename called 'TAX810NE' and it creates 16 files when run through PS ex- T810NE01, T810NE02, T810NE03.....T810NE16 and stores them in the reports directory and I have to copy all these files into a table I have the below code Let #status =3D0 Let #count =3D 0=20=20=20 While #status=3D0 (if the file is found #status will be zero) Add 1 to #count Move #count to $extension 099=20 Evaluate $prcsname When $prcsname =3D 'TAX810NE' =20=20=20=20 Let $filename =3D '{FILEPREFIX}' || T810NE01 || edit(#count , '00') Move '' to $extension end-evaluate if $prcsname <> 'TAX810NE' let $filename =3D '{FILEPREFIX}' || 'TA' || substr($prcsname, 3, 6) ||=20=20=20 '.' || $extension end-if end-while=20 The above code just copies T810NE01 ............ I am not sure how to approach to this problem Thanks Sumana _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 27 10:20:55 2006 Subject: RE: [sqr-users] removing special characters Date: Wed, 27 Sep 2006 10:18:03 -0400 From: "Overcashier, Patricia" It worked perfect! Thanks! -----Original Message----- From: sqr-users-bounces+patricia.overcashier=3Daam.com@sqrug.org [mailto:sq= r-users-bounces+patricia.overcashier=3Daam.com@sqrug.org] On Behalf Of Pete= rG Clark Sent: Wednesday, September 27, 2006 9:04 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] removing special characters We had a similar requirement since we deal with a lot of French names. We u= se a TRANSLATE to convert accented characters to equivalent unaccented char= acters before doing the compare. example (not all accented french characters included): let $lstname =3D translate($lstname,'=E0=E1=E2=E7=E8=E9=EA','aaaceee') Hope that helps. >>> Patricia.Overcashier@aam.com 2006/09/26 11:17:18 >>> I have seen in previous posts that there is a delivered sqc from PeopleSoft that removes accents. We do not have that sqc, so I am stuck.=20=20 Since we now have many countries, several of them Latin, there are many special characters. When I am trying to compare names, I want all special characters removed, but can't seem to figure out how to do this.=20=20 Any suggestions would be appreciated. Thanks! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 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 From sqr-users-bounces@sqrug.org Wed Sep 27 14:37:23 2006 From: "April Wells" Date: Wed, 27 Sep 2006 15:34:35 -0300 Subject: [sqr-users] DUAL table: String2Em: String to Decimal Object Conversion Error I keep getting the above error ((SQR 6806) String2Em: String to Decimal Object Conversion Error.) when I select from DUAL. We've recently migrated our databases from Oracle 8 to 10G which I know causes this error, and I was able to fix the error in my main SQR programs in a normal select (by putting a TO_CHAR around numeric fields with no scale), but I can't seem to resolve this error when selecting from the DUAL table. ie. .... $seq_type = ID_SEQ.NEXTVAL BEGIN-SELECT ON-ERROR=fatal_error [$seq_type] &new_seq=NUMBER FROM DUAL END-SELECT .... (SQR 6806) String2Em: String to Decimal Object Conversion Error. Any suggestions greatly appreciated! _________________________________________________________________ Don’t waste time standing in line—try shopping online. Visit Sympatico / MSN Shopping today! http://shopping.sympatico.msn.ca _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Sep 27 15:07:06 2006 From: "Alexander, Steven" Subject: RE: [sqr-users] DUAL table: String2Em: String to Decimal ObjectConversion Error Date: Wed, 27 Sep 2006 12:03:53 -0700 This isn't real code, is it? Do you mean: let $seq_type = &ID_SEQ.NEXTVAL or let $seq_type = 'ID_SEQ.NEXTVAL' -----Original Message----- From: April Wells [mailto:x97wxp@hotmail.com] Sent: Wednesday, September 27, 2006 11:35 AM To: sqr-users@sqrug.org Subject: [sqr-users] DUAL table: String2Em: String to Decimal ObjectConversion Error I keep getting the above error ((SQR 6806) String2Em: String to Decimal Object Conversion Error.) when I select from DUAL. We've recently migrated our databases from Oracle 8 to 10G which I know causes this error, and I was able to fix the error in my main SQR programs in a normal select (by putting a TO_CHAR around numeric fields with no scale), but I can't seem to resolve this error when selecting from the DUAL table. ie. .... $seq_type = ID_SEQ.NEXTVAL BEGIN-SELECT ON-ERROR=fatal_error [$seq_type] &new_seq=NUMBER FROM DUAL END-SELECT .... (SQR 6806) String2Em: String to Decimal Object Conversion Error. Any suggestions greatly appreciated! _________________________________________________________________ Don't waste time standing in line-try shopping online. Visit Sympatico / MSN Shopping today! http://shopping.sympatico.msn.ca _______________________________________________ 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 From sqr-users-bounces@sqrug.org Thu Sep 28 08:35:11 2006 Date: Thu, 28 Sep 2006 08:31:17 -0400 From: "George Jansen" Subject: Re: [sqr-users] DUAL table: String2Em: String to Decimal Object Conversion Error Why not wrap id_seq.nextval in the same function? Though in some ways it might cleaner to use a PL/SQL function wrapped around it, and called from within a BEGIN-SQL block. SQL> select to_char(bogo_seq.nextval) from dual; TO_CHAR(BOGO_SEQ.NEXTVAL) ---------------------------------------- 1 SQL> / TO_CHAR(BOGO_SEQ.NEXTVAL) ---------------------------------------- 2 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Sep 29 22:04:35 2006 Date: Fri, 29 Sep 2006 22:02:07 -0400 From: Nathan Stratton Treadway Subject: [sqr-users] Re: DUAL table: String2Em: String to Decimal Object Conversion Error On Wed, Sep 27, 2006 at 03:34:35PM -0300, April Wells wrote: > I keep getting the above error ((SQR 6806) String2Em: String to Decimal > Object Conversion Error.) > when I select from DUAL. We've recently migrated our databases from Oracle > 8 to 10G which I know causes this error, and I was able to fix the error in > my main SQR programs in a normal select (by putting a TO_CHAR around > numeric fields with no scale), but I can't seem to resolve this error when > selecting from the DUAL table. > ie. > > .... > $seq_type = ID_SEQ.NEXTVAL > > BEGIN-SELECT ON-ERROR=fatal_error > [$seq_type] &new_seq=NUMBER > FROM DUAL > END-SELECT > > .... > (SQR 6806) String2Em: String to Decimal Object Conversion Error. > > Any suggestions greatly appreciated! You don't mention exactly what different approaches you tried, or if you really are doing something "fancy" that would require the use of dynamic SQL as you show here... so I'll just stick to the "simple" answer: when I have been using SQR v6.2 against Oracle 9i, I was able to use the following code to read from a sequence: begin-select round(ID_SEQ.NEXTVAL) &new_seq from dual end-select Note in particular that if you use ROUND() instead of TO_CHAR(), the value returned by Oracle will be of a numeric datatype rather than character, so you don't need to say "=NUMBER" in the SQR. (Actually, if you tried to assign the result of a TO_CHAR() into "&new_seq=NUMBER", I assume you got a type-mismatch error from SQR anyway.) If you do actually need to use dynamic SQL for some reason, you should be able to do so by just moving the ROUND() expression into the dynamic portion. In any case, this error is caused by the datatype of the column or expression that's being selected; the fact that you are selection from DUAL instead of some other table shouldn't matter. Hope that helps. Nathan ---------------------------------------------------------------------------- Nathan Stratton Treadway - nathanst@ontko.com - Mid-Atlantic region Ray Ontko & Co. - Software consulting services - http://www.ontko.com/ GPG Key: http://www.ontko.com/~nathanst/gpg_key.txt ID: 1023D/ECFB6239 Key fingerprint = 6AD8 485E 20B9 5C71 231C 0C32 15F3 ADCD ECFB 6239 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users