From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Oct 01 00:02:18 2004 Date: Fri, 1 Oct 2004 00:00:02 -0500 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.21 $ $Date: 2004-03-04 02:47:15-05 $ 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 2003/11/01: o Update subscribe/unsubscribe instructions for new version of list server software. o New URL for "brio-l" 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. BrioSQRReport : Brio SQR Report List for discussion of SQR and SQR Developer (formerly called Brio.Report and Report Builder). To join, follow the link above, or send any message to "BrioSQRReport- 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+sqrusersarch=sqrug.org@sqrug.org Fri Oct 01 11:14:24 2004 Date: Fri, 1 Oct 2004 12:12:19 -0400 (EDT) From: "Kevin Laroche" Subject: Re: [sqr-users] suggestions for best practicewith insertsinto temptable Hi David Alas, we are in the client server groove, with the idea that the users should be able to run a report when they want without our help. Thanks Kevin LaRoche oracle forms and SQR too _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Oct 05 14:45:10 2004 From: Eduardo_Bugarin@hdm.honda.com Date: Tue, 5 Oct 2004 14:44:30 -0500 Subject: [sqr-users] insert sql hello everyone I need to insert data by sql, but I have the next message ORA-00984: COLUMN NOT ALLOWED HERE I know that this is about the fields on the Oracle table could some one tellme if this is correct: begin-procedure INSERT_DAT begin-sql insert into SOME_TABLE values ( {ARHDM}, $GROUP_ID, {ARHDM}, $CLIENTE, $FOLIO_FACT, #CNT_GRP, ' ', IN THIS FIELD I NEED TO INSERT AN EMPTY DATA, BUT THE FIELD DOSEN´T ACCEPT NULLS HOW CAN I INSERT ???????????????????? {FECHA}, {CERO_CD}, ' ' end-sql end-procedure thank you for your help _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Oct 05 14:56:50 2004 Subject: RE: [sqr-users] insert sql Date: Tue, 5 Oct 2004 12:54:16 -0700 From: "Bill Winkfield" Eduardo, It looks like your problem is due to a missing bracket in your SQL. begin-procedure INSERT_DAT begin-sql insert into SOME_TABLE values ( {ARHDM}, $GROUP_ID, {ARHDM}, $CLIENTE, $FOLIO_FACT, #CNT_GRP, ' ', <=3D=3D this is a space, not a null {FECHA}, {CERO_CD}, ' ' ) <=3D=3D you need a closing bracket here end-sql end-procedure -----Original Message----- From: Eduardo_Bugarin@hdm.honda.com [mailto:Eduardo_Bugarin@hdm.honda.com]= =20 Sent: Tuesday, October 05, 2004 12:45 PM To: sqr-users@sqrug.org Subject: [sqr-users] insert sql hello everyone I need to insert data by sql, but I have the next message ORA-00984: COLUMN NOT ALLOWED HERE I know that this is about the fields on the Oracle table could some one tellme if this is correct: begin-procedure INSERT_DAT begin-sql insert into SOME_TABLE values ( {ARHDM}, $GROUP_ID, {ARHDM}, $CLIENTE, $FOLIO_FACT, #CNT_GRP, ' ', IN THIS FIELD I NEED TO INSERT AN EMPTY DATA, BUT THE FIELD DOSEN=B4T ACCEPT NULLS HOW CAN I INSERT ???????????????????? {FECHA}, {CERO_CD}, ' ' end-sql end-procedure thank you for your 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+sqrusersarch=sqrug.org@sqrug.org Tue Oct 05 15:00:36 2004 Date: Tue, 05 Oct 2004 15:58:08 -0400 From: "Larry Roux" Subject: Re: [sqr-users] insert sql It depends on the field type. In Oracle, a date can be NULL (''), for a number insert 0, for a character field put in a space (' ') Larry Roux Syracuse University lroux@syr.edu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Oct 05 15:03:31 2004 From: "Penny Ginn" Subject: RE: [sqr-users] insert sql Date: Tue, 5 Oct 2004 15:58:38 -0400 If the Oracle column is defined as "not null," then there's no way you're going to get a null value in there. It looks like you're inserting a single space - a non-null column should allow that as data. If the column is NOT defined as not null, then you can use the word NULL in your insert; i.e. ... $CLIENTE, $FOLIO_FACT, #CNT_GRP, NULL, {FECHA}, ... Mrs. Penny M. Ginn Associate Director of Information Technology Presbyterian College Clinton, SC 29325 864-833-8212 -----Original Message----- From: sqr-users-bounces+pmginn=presby.edu@sqrug.org [mailto:sqr-users-bounces+pmginn=presby.edu@sqrug.org]On Behalf Of Eduardo_Bugarin@hdm.honda.com Sent: Tuesday, October 05, 2004 2:45 PM To: sqr-users@sqrug.org Subject: [sqr-users] insert sql hello everyone I need to insert data by sql, but I have the next message ORA-00984: COLUMN NOT ALLOWED HERE I know that this is about the fields on the Oracle table could some one tellme if this is correct: begin-procedure INSERT_DAT begin-sql insert into SOME_TABLE values ( {ARHDM}, $GROUP_ID, {ARHDM}, $CLIENTE, $FOLIO_FACT, #CNT_GRP, ' ', IN THIS FIELD I NEED TO INSERT AN EMPTY DATA, BUT THE FIELD DOSEN´T ACCEPT NULLS HOW CAN I INSERT ???????????????????? {FECHA}, {CERO_CD}, ' ' end-sql end-procedure thank you for your 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+sqrusersarch=sqrug.org@sqrug.org Tue Oct 05 15:06:22 2004 From: "Aguirre, Jose" Subject: RE: [sqr-users] insert sql Date: Tue, 5 Oct 2004 14:59:37 -0500 Use this function for all the not nullable fields before your insert: LET $FIELD_NAME =3D NVL($FIELD_NAME, ' ')=20 Good luck, Jos=E9 A. Aguirre -----Original Message----- From: sqr-users-bounces+jaguir=3Dlsuhsc.edu@sqrug.org [mailto:sqr-users-bounces+jaguir=3Dlsuhsc.edu@sqrug.org] On Behalf Of Eduardo_Bugarin@hdm.honda.com Sent: Tuesday, October 05, 2004 2:45 PM To: sqr-users@sqrug.org Subject: [sqr-users] insert sql hello everyone I need to insert data by sql, but I have the next message ORA-00984: COLUMN NOT ALLOWED HERE I know that this is about the fields on the Oracle table could some one tellme if this is correct: begin-procedure INSERT_DAT begin-sql insert into SOME_TABLE values ( {ARHDM}, $GROUP_ID, {ARHDM}, $CLIENTE, $FOLIO_FACT, #CNT_GRP, ' ', IN THIS FIELD I NEED TO INSERT AN EMPTY DATA, BUT THE FIELD DOSEN=B4T ACCEPT NULLS HOW CAN I INSERT ???????????????????? {FECHA}, {CERO_CD}, ' ' end-sql end-procedure thank you for your 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+sqrusersarch=sqrug.org@sqrug.org Tue Oct 05 15:27:32 2004 Date: Tue, 5 Oct 2004 13:26:32 -0700 From: kevin.reschenberg@sparkpath.com Subject: RE: [sqr-users] insert sql It looks like you are asking about two problems--the null column and the error message. I have a suggestion for the error. Check to be sure that the contents of your substitution variables, such as {ARHDM}, contain quotes if necessary. A value without quotes may look like a column name to Oracle. The following example will get the "column not allowed here" error because the second value is not enclosed in quotes: insert into ps_animal_tbl values('CAT',Cat,'Cat') If we use a substitution variable: insert into ps_animal_tbl values('CAT',{Cat},'Cat') it will work as long as {Cat} is defined to include quotes: #define Cat 'Cat' You could also get around the error by simply enclosing the entire substitution variable in quotes: '{ARHDM}' Kevin Reschenberg SparkPath Technologies, Inc. (949) 466-1674 www.sparkpath.com -------- Original Message -------- Subject: [sqr-users] insert sql From: Eduardo_Bugarin@hdm.honda.com Date: Tue, October 05, 2004 12:44 pm To: sqr-users@sqrug.org hello everyone I need to insert data by sql, but I have the next message ORA-00984: COLUMN NOT ALLOWED HERE I know that this is about the fields on the Oracle table could some one tellme if this is correct: begin-procedure INSERT_DAT begin-sql insert into SOME_TABLE values ( {ARHDM}, $GROUP_ID, {ARHDM}, $CLIENTE, $FOLIO_FACT, #CNT_GRP, ' ', IN THIS FIELD I NEED TO INSERT AN EMPTY DATA, BUT THE FIELD DOSEN´T ACCEPT NULLS HOW CAN I INSERT ???????????????????? {FECHA}, {CERO_CD}, ' ' end-sql end-procedure thank you for your 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+sqrusersarch=sqrug.org@sqrug.org Tue Oct 05 15:43:59 2004 Subject: RE: [sqr-users] insert sql From: Eduardo_Bugarin@hdm.honda.com Date: Tue, 5 Oct 2004 15:41:57 -0500 Kevin, you are rigth, I have 2 problems (I have not notice the error about this {ARHDM}) with the suggestions from all, I did resolve my sql insert thank you for your time and support have a nice day |---------+---------------------------------------------------------> | | kevin.reschenberg@sparkpath.com | | | Enviado por: | | | sqr-users-bounces+eduardo_bugarin=hdm.honda.co| | | m@sqrug.org | | | | | | | | | 05/10/2004 03:26 p.m. | | | Por favor, responda a "This list is for | | | discussion about the SQR database reporting | | | language from Hyperion Solutions." | | | | |---------+---------------------------------------------------------> >----------------------------------------------------------------------------------------------| | | | Para: "This list is for discussion about the SQR database reporting language | | from Hyperion Solutions." | | cc: (cco: Eduardo Bugarin/HDM/AM/HONDA) | | Asunto: RE: [sqr-users] insert sql | >----------------------------------------------------------------------------------------------| It looks like you are asking about two problems--the null column and the error message. I have a suggestion for the error. Check to be sure that the contents of your substitution variables, such as {ARHDM}, contain quotes if necessary. A value without quotes may look like a column name to Oracle. The following example will get the "column not allowed here" error because the second value is not enclosed in quotes: insert into ps_animal_tbl values('CAT',Cat,'Cat') If we use a substitution variable: insert into ps_animal_tbl values('CAT',{Cat},'Cat') it will work as long as {Cat} is defined to include quotes: #define Cat 'Cat' You could also get around the error by simply enclosing the entire substitution variable in quotes: '{ARHDM}' Kevin Reschenberg SparkPath Technologies, Inc. (949) 466-1674 www.sparkpath.com -------- Original Message -------- Subject: [sqr-users] insert sql From: Eduardo_Bugarin@hdm.honda.com Date: Tue, October 05, 2004 12:44 pm To: sqr-users@sqrug.org hello everyone I need to insert data by sql, but I have the next message ORA-00984: COLUMN NOT ALLOWED HERE I know that this is about the fields on the Oracle table could some one tellme if this is correct: begin-procedure INSERT_DAT begin-sql insert into SOME_TABLE values ( {ARHDM}, $GROUP_ID, {ARHDM}, $CLIENTE, $FOLIO_FACT, #CNT_GRP, ' ', IN THIS FIELD I NEED TO INSERT AN EMPTY DATA, BUT THE FIELD DOSEN _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Oct 06 11:37:47 2004 Subject: RE: [sqr-users] insert sql From: Eduardo_Bugarin@hdm.honda.com Date: Wed, 6 Oct 2004 11:37:12 -0500 Hi all: other question: when i execute my sqr program, I have the next message error: A NON-NUMERIC CHARACTER WAS FOUND WHERE A NUMERIC WAS EXPECTED some of my code is: #DEFINE QUINCE 15 THIS IS A NUMERIC VALUE #DEFINE ARHDM ARHDM begin-sql insert into PS_SOME_TABLE values ( '{ARHDM}', $GROUP_ID, '{ARHDM}', $CLIENTE, $FOLIO_FACT, '{QUINCE}' IS THIS IS CORRECT TO PUT THE NUMERIC VALUE 15 ??? ) end-sql I will appreciate any suggestion thank you for your time |---------+---------------------------------------------------------> | | kevin.reschenberg@sparkpath.com | | | Enviado por: | | | sqr-users-bounces+eduardo_bugarin=hdm.honda.co| | | m@sqrug.org | | | | | | | | | 05/10/2004 03:26 p.m. | | | Por favor, responda a "This list is for | | | discussion about the SQR database reporting | | | language from Hyperion Solutions." | | | | |---------+---------------------------------------------------------> >----------------------------------------------------------------------------------------------| | | | Para: "This list is for discussion about the SQR database reporting language | | from Hyperion Solutions." | | cc: (cco: Eduardo Bugarin/HDM/AM/HONDA) | | Asunto: RE: [sqr-users] insert sql | >----------------------------------------------------------------------------------------------| It looks like you are asking about two problems--the null column and the error message. I have a suggestion for the error. Check to be sure that the contents of your substitution variables, such as {ARHDM}, contain quotes if necessary. A value without quotes may look like a column name to Oracle. The following example will get the "column not allowed here" error because the second value is not enclosed in quotes: insert into ps_animal_tbl values('CAT',Cat,'Cat') If we use a substitution variable: insert into ps_animal_tbl values('CAT',{Cat},'Cat') it will work as long as {Cat} is defined to include quotes: #define Cat 'Cat' You could also get around the error by simply enclosing the entire substitution variable in quotes: '{ARHDM}' Kevin Reschenberg SparkPath Technologies, Inc. (949) 466-1674 www.sparkpath.com -------- Original Message -------- Subject: [sqr-users] insert sql From: Eduardo_Bugarin@hdm.honda.com Date: Tue, October 05, 2004 12:44 pm To: sqr-users@sqrug.org hello everyone I need to insert data by sql, but I have the next message ORA-00984: COLUMN NOT ALLOWED HERE I know that this is about the fields on the Oracle table could some one tellme if this is correct: begin-procedure INSERT_DAT begin-sql insert into SOME_TABLE values ( {ARHDM}, $GROUP_ID, {ARHDM}, $CLIENTE, $FOLIO_FACT, #CNT_GRP, ' ', IN THIS FIELD I NEED TO INSERT AN EMPTY DATA, BUT THE FIELD DOSEN _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Oct 06 12:07:25 2004 Date: Wed, 6 Oct 2004 10:04:47 -0700 From: kevin.reschenberg@sparkpath.com Subject: RE: [sqr-users] insert sql If the column is defined as numeric, you don't need the quotes. In that case, instead of '{QUINCE}' just use {QUINCE} Also, if your program really says #DEFINE QUINCE 15 THIS IS A NUMERIC VALUE including the "THIS IS A NUMERIC VALUE", be sure to make that a comment: #DEFINE QUINCE 15 ! THIS IS A NUMERIC VALUE Otherwise, {QUINCE} will include both the 15 and the words. Kevin Reschenberg SparkPath Technologies, Inc. (949) 466-1674 www.sparkpath.com -------- Original Message -------- Subject: RE: [sqr-users] insert sql From: Eduardo_Bugarin@hdm.honda.com Date: Wed, October 06, 2004 9:37 am To: sqr-users@sqrug.org Hi all: other question: when i execute my sqr program, I have the next message error: A NON-NUMERIC CHARACTER WAS FOUND WHERE A NUMERIC WAS EXPECTED some of my code is: #DEFINE QUINCE 15 THIS IS A NUMERIC VALUE #DEFINE ARHDM ARHDM begin-sql insert into PS_SOME_TABLE values ( '{ARHDM}', $GROUP_ID, '{ARHDM}', $CLIENTE, $FOLIO_FACT, '{QUINCE}' IS THIS IS CORRECT TO PUT THE NUMERIC VALUE 15 ??? ) end-sql I will appreciate any suggestion thank you for your time |---------+---------------------------------------------------------> | | kevin.reschenberg@sparkpath.com | | | Enviado por: | | | sqr-users-bounces+eduardo_bugarin=hdm.honda.co| | | m@sqrug.org | | | | | | | | | 05/10/2004 03:26 p.m. | | | Por favor, responda a "This list is for | | | discussion about the SQR database reporting | | | language from Hyperion Solutions." | | | | |---------+---------------------------------------------------------> >----------------------------------------------------------------------------------------------| | | | Para: "This list is for discussion about the SQR database reporting language | | from Hyperion Solutions." | | cc: (cco: Eduardo Bugarin/HDM/AM/HONDA) | | Asunto: RE: [sqr-users] insert sql | >----------------------------------------------------------------------------------------------| It looks like you are asking about two problems--the null column and the error message. I have a suggestion for the error. Check to be sure that the contents of your substitution variables, such as , contain quotes if necessary. A value without quotes may look like a column name to Oracle. The following example will get the "column not allowed here" error because the second value is not enclosed in quotes: insert into ps_animal_tbl values('CAT',Cat,'Cat') If we use a substitution variable: insert into ps_animal_tbl values('CAT',,'Cat') it will work as long as is defined to include quotes: #define Cat 'Cat' You could also get around the error by simply enclosing the entire substitution variable in quotes: '' Kevin Reschenberg SparkPath Technologies, Inc. (949) 466-1674 www.sparkpath.com -------- Original Message -------- Subject: [sqr-users] insert sql From: Eduardo_Bugarin@hdm.honda.com Date: Tue, October 05, 2004 12:44 pm To: sqr-users@sqrug.org hello everyone I need to insert data by sql, but I have the next message ORA-00984: COLUMN NOT ALLOWED HERE I know that this is about the fields on the Oracle table could some one tellme if this is correct: begin-procedure INSERT_DAT begin-sql insert into SOME_TABLE values ( , $GROUP_ID, , $CLIENTE, $FOLIO_FACT, #CNT_GRP, ' ', IN THIS FIELD I NEED TO INSERT AN EMPTY DATA, BUT THE FIELD DOSEN _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Wed Oct 06 13:15:59 2004 From: "Aguirre, Jose" Subject: RE: [sqr-users] insert sql Date: Wed, 6 Oct 2004 13:14:44 -0500 Do this instead if you are bringing QUINCE as a string value. You can place it right before the insert: LET #QUINCE =3D to_number($QUINCE) then=20 begin-sql insert into PS_SOME_TABLE values ( '{ARHDM}', $GROUP_ID, '{ARHDM}', $CLIENTE, $FOLIO_FACT, #QUINCE) Thanks, Jos=E9 A. Aguirre 504.568.2455 -----Original Message----- From: sqr-users-bounces+jaguir=3Dlsuhsc.edu@sqrug.org [mailto:sqr-users-bounces+jaguir=3Dlsuhsc.edu@sqrug.org] On Behalf Of Eduardo_Bugarin@hdm.honda.com Sent: Wednesday, October 06, 2004 11:37 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] insert sql Hi all: other question: when i execute my sqr program, I have the next message error: A NON-NUMERIC CHARACTER WAS FOUND WHERE A NUMERIC WAS EXPECTED some of my code is: #DEFINE QUINCE 15 THIS IS A NUMERIC VALUE #DEFINE ARHDM ARHDM begin-sql insert into PS_SOME_TABLE values ( '{ARHDM}', $GROUP_ID, '{ARHDM}', $CLIENTE, $FOLIO_FACT, '{QUINCE}' IS THIS IS CORRECT TO PUT THE NUMERIC VALUE 15 ??? ) end-sql I will appreciate any suggestion thank you for your time |---------+---------------------------------------------------------> | | kevin.reschenberg@sparkpath.com | | | Enviado por: | | | sqr-users-bounces+eduardo_bugarin=3Dhdm.honda.co| | | m@sqrug.org | | | | | | | | | 05/10/2004 03:26 p.m. | | | Por favor, responda a "This list is for | | | discussion about the SQR database reporting | | | language from Hyperion Solutions." | | | | |---------+---------------------------------------------------------> =20 >--------------------------------------------------------------------------- -------------------| | | | Para: "This list is for discussion about the SQR database reporting language | | from Hyperion Solutions." | | cc: (cco: Eduardo Bugarin/HDM/AM/HONDA) | | Asunto: RE: [sqr-users] insert sql | =20 >--------------------------------------------------------------------------- -------------------| It looks like you are asking about two problems--the null column and the error message. I have a suggestion for the error. Check to be sure that the contents of your substitution variables, such as {ARHDM}, contain quotes if necessary. A value without quotes may look like a column name to Oracle. The following example will get the "column not allowed here" error because the second value is not enclosed in quotes: insert into ps_animal_tbl values('CAT',Cat,'Cat') If we use a substitution variable: insert into ps_animal_tbl values('CAT',{Cat},'Cat') it will work as long as {Cat} is defined to include quotes: #define Cat 'Cat' You could also get around the error by simply enclosing the entire substitution variable in quotes: '{ARHDM}' Kevin Reschenberg SparkPath Technologies, Inc. (949) 466-1674 www.sparkpath.com -------- Original Message -------- Subject: [sqr-users] insert sql From: Eduardo_Bugarin@hdm.honda.com Date: Tue, October 05, 2004 12:44 pm To: sqr-users@sqrug.org hello everyone I need to insert data by sql, but I have the next message ORA-00984: COLUMN NOT ALLOWED HERE I know that this is about the fields on the Oracle table could some one tellme if this is correct: begin-procedure INSERT_DAT begin-sql insert into SOME_TABLE values ( {ARHDM}, $GROUP_ID, {ARHDM}, $CLIENTE, $FOLIO_FACT, #CNT_GRP, ' ', IN THIS FIELD I NEED TO INSERT AN EMPTY DATA, BUT THE FIELD DOSEN=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B= =1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B= =1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B =1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B= =1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B= =1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B= =1B =1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B= =1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B= =1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B= =1B =1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B= =1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B= =1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B= =1B =1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B= =1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B= =1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B= =1B =1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B= =1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B= =1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B= =1B =1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B=1B= =1B=1B=1B=1B=1B=1B=1B=1B _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Wed Oct 06 14:16:31 2004 Subject: RE: [sqr-users] insert sql From: Eduardo_Bugarin@hdm.honda.com Date: Wed, 6 Oct 2004 14:14:03 -0500 I did what Kevin said, and everthing is well thank you both |---------+---------------------------------------------------------> | | kevin.reschenberg@sparkpath.com | | | Enviado por: | | | sqr-users-bounces+eduardo_bugarin=hdm.honda.co| | | m@sqrug.org | | | | | | | | | 06/10/2004 12:04 p.m. | | | Por favor, responda a "This list is for | | | discussion about the SQR database reporting | | | language from Hyperion Solutions." | | | | |---------+---------------------------------------------------------> >----------------------------------------------------------------------------------------------| | | | Para: "This list is for discussion about the SQR database reporting language | | from Hyperion Solutions." | | cc: (cco: Eduardo Bugarin/HDM/AM/HONDA) | | Asunto: RE: [sqr-users] insert sql | >----------------------------------------------------------------------------------------------| If the column is defined as numeric, you don't need the quotes. In that case, instead of '{QUINCE}' just use {QUINCE} Also, if your program really says #DEFINE QUINCE 15 THIS IS A NUMERIC VALUE including the "THIS IS A NUMERIC VALUE", be sure to make that a comment: #DEFINE QUINCE 15 ! THIS IS A NUMERIC VALUE Otherwise, {QUINCE} will include both the 15 and the words. Kevin Reschenberg SparkPath Technologies, Inc. (949) 466-1674 www.sparkpath.com -------- Original Message -------- Subject: RE: [sqr-users] insert sql From: Eduardo_Bugarin@hdm.honda.com Date: Wed, October 06, 2004 9:37 am To: sqr-users@sqrug.org Hi all: other question: when i execute my sqr program, I have the next message error: A NON-NUMERIC CHARACTER WAS FOUND WHERE A NUMERIC WAS EXPECTED some of my code is: #DEFINE QUINCE 15 THIS IS A NUMERIC VALUE #DEFINE ARHDM ARHDM begin-sql insert into PS_SOME_TABLE values ( '{ARHDM}', $GROUP_ID, '{ARHDM}', $CLIENTE, $FOLIO_FACT, '{QUINCE}' IS THIS IS CORRECT TO PUT THE NUMERIC VALUE 15 ??? ) end-sql I will appreciate any suggestion thank you for your time |---------+---------------------------------------------------------> | | kevin.reschenberg@sparkpath.com | | | Enviado por: | | | sqr-users-bounces+eduardo_bugarin=hdm.honda.co| | | m@sqrug.org | | | | | | | | | 05/10/2004 03:26 p.m. | | | Por favor, responda a "This list is for | | | discussion about the SQR database reporting | | | language from Hyperion Solutions." | | | | |---------+---------------------------------------------------------> >----------------------------------------------------------------------------------------------| | | | Para: "This list is for discussion about the SQR database reporting language | | from Hyperion Solutions." | | cc: (cco: Eduardo Bugarin/HDM/AM/HONDA) | | Asunto: RE: [sqr-users] insert sql | >----------------------------------------------------------------------------------------------| It looks like you are asking about two problems--the null column and the error message. I have a suggestion for the error. Check to be sure that the contents of your substitution variables, such as , contain quotes if necessary. A value without quotes may look like a column name to Oracle. The following example will get the "column not allowed here" error because the second value is not enclosed in quotes: insert into ps_animal_tbl values('CAT',Cat,'Cat') If we use a substitution variable: insert into ps_animal_tbl values('CAT',,'Cat') it will work as long as is defined to include quotes: #define Cat 'Cat' You could also get around the error by simply enclosing the entire substitution variable in quotes: '' Kevin Reschenberg SparkPath Technologies, Inc. (949) 466-1674 www.sparkpath.com -------- Original Message -------- Subject: [sqr-users] insert sql From: Eduardo_Bugarin@hdm.honda.com Date: Tue, October 05, 2004 12:44 pm To: sqr-users@sqrug.org hello everyone I need to insert data by sql, but I have the next message ORA-00984: COLUMN NOT ALLOWED HERE I know that this is about the fields on the Oracle table could some one tellme if this is correct: begin-procedure INSERT_DAT begin-sql insert into SOME_TABLE values ( , $GROUP_ID, , $CLIENTE, $FOLIO_FACT, #CNT_GRP, ' ', IN THIS FIELD I NEED TO INSERT AN EMPTY DATA, BUT THE FIELD DOSEN _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Oct 06 14:50:41 2004 From: "DICKMAN, ERIC C." Date: Wed, 6 Oct 2004 14:47:57 -0500 Subject: [sqr-users] An SQR Layout Question. Hi, I am attempting to create an SQR report with both a Landscape layout and a Portrait layout. Is this functionality possible in a SQR file? And if yes, are there any examples of this available. Thanks, Eric _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Oct 06 15:22:09 2004 Subject: RE: [sqr-users] An SQR Layout Question. Date: Wed, 6 Oct 2004 15:19:22 -0500 From: "Hins, Thomas D. \(HSC\)" You would have to use a conditional statement of somekind and then know why= you would want the same report to possibly come out both ways and code for= that. Tom Hins Information Technology - Application Solutions University of Oklahoma Health Sciences Center P.O. Box 26901 Oklahoma City, OK 73190 Phone:(405) 271-2262 Ext. 50213 Fax: (405) 271-2352 (The information transmitted is intended only for the person or entity to w= hich it is addressed and may contain confidential and/or privileged materia= l. If you are not the intended recipient of this message you are hereby not= ified that any use, review, retransmission, dissemination, distribution, re= production or any action taken in reliance upon this message is prohibited.= If you received this in error, please contact the sender and delete the ma= terial from any computer. Any views expressed in this message are those of = the individual sender and may not necessarily reflect the views of the comp= any.) -----Original Message----- From: sqr-users-bounces+thomas-hins=3Douhsc.edu@sqrug.org [mailto:sqr-users-bounces+thomas-hins=3Douhsc.edu@sqrug.org]On Behalf Of DICKMAN, ERIC C. Sent: Wednesday, October 06, 2004 2:48 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] An SQR Layout Question. Hi, I am attempting to create an SQR report with both a Landscape layout and a Portrait layout. Is this functionality possible in a SQR file? And if yes, are there any examples of this available. 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+sqrusersarch=sqrug.org@sqrug.org Wed Oct 06 15:49:19 2004 Date: Wed, 06 Oct 2004 16:46:34 -0400 From: "Jessie Dickenson" Subject: RE: [sqr-users] An SQR Layout Question. You could define 2 separate report layouts; In one layout, you could specify portrait mode & in the other, landscape. However, the SPF files that gets generated have the following naming convention: Assume that your SQR program is called TEST.SQR 1. The report with the first layout definition (literally going sequentially) will be generated as TEST.SPF 2. The report with the second layout will be genearted as TEST.S01. Hope this helps. Thanks, Jessie >>> Thomas-Hins@ouhsc.edu 10/6/2004 4:19:22 PM >>> You would have to use a conditional statement of somekind and then know why you would want the same report to possibly come out both ways and code for that. Tom Hins Information Technology - Application Solutions University of Oklahoma Health Sciences Center P.O. Box 26901 Oklahoma City, OK 73190 Phone:(405) 271-2262 Ext. 50213 Fax: (405) 271-2352 (The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you are not the intended recipient of this message you are hereby notified that any use, review, retransmission, dissemination, distribution, reproduction or any action taken in reliance upon this message is prohibited. If you received this in error, please contact the sender and delete the material from any computer. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of the company.) -----Original Message----- From: sqr-users-bounces+thomas-hins=ouhsc.edu@sqrug.org [mailto:sqr-users-bounces+thomas-hins=ouhsc.edu@sqrug.org]On Behalf Of DICKMAN, ERIC C. Sent: Wednesday, October 06, 2004 2:48 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] An SQR Layout Question. Hi, I am attempting to create an SQR report with both a Landscape layout and a Portrait layout. Is this functionality possible in a SQR file? And if yes, are there any examples of this available. 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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Oct 06 15:56:03 2004 From: "Penny Ginn" Date: Wed, 6 Oct 2004 16:54:49 -0400 Subject: [sqr-users] SQR Layout / Output file names Is there a way to override the output file names? I've got a program I'm working on with 2 optional output formats (envelopes or labels), depending on the parameter the user enters. I really need the output to be named the same name, regardless of whether it's labels or envelopes. Suggestions? -----Original Message----- From: sqr-users-bounces+pmginn=presby.edu@sqrug.org [mailto:sqr-users-bounces+pmginn=presby.edu@sqrug.org]On Behalf Of Jessie Dickenson Sent: Wednesday, October 06, 2004 3:47 PM To: Thomas-Hins@ouhsc.edu; sqr-users@sqrug.org Subject: RE: [sqr-users] An SQR Layout Question. You could define 2 separate report layouts; In one layout, you could specify portrait mode & in the other, landscape. However, the SPF files that gets generated have the following naming convention: Assume that your SQR program is called TEST.SQR 1. The report with the first layout definition (literally going sequentially) will be generated as TEST.SPF 2. The report with the second layout will be genearted as TEST.S01. Hope this helps. Thanks, Jessie >>> Thomas-Hins@ouhsc.edu 10/6/2004 4:19:22 PM >>> You would have to use a conditional statement of somekind and then know why you would want the same report to possibly come out both ways and code for that. Tom Hins Information Technology - Application Solutions University of Oklahoma Health Sciences Center P.O. Box 26901 Oklahoma City, OK 73190 Phone:(405) 271-2262 Ext. 50213 Fax: (405) 271-2352 (The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you are not the intended recipient of this message you are hereby notified that any use, review, retransmission, dissemination, distribution, reproduction or any action taken in reliance upon this message is prohibited. If you received this in error, please contact the sender and delete the material from any computer. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of the company.) -----Original Message----- From: sqr-users-bounces+thomas-hins=ouhsc.edu@sqrug.org [mailto:sqr-users-bounces+thomas-hins=ouhsc.edu@sqrug.org]On Behalf Of DICKMAN, ERIC C. Sent: Wednesday, October 06, 2004 2:48 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] An SQR Layout Question. Hi, I am attempting to create an SQR report with both a Landscape layout and a Portrait layout. Is this functionality possible in a SQR file? And if yes, are there any examples of this available. 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 _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Oct 07 04:17:30 2004 Date: 7 Oct 2004 09:15:37 -0000 From: "p satheesh kumar" Subject: [sqr-users] Re: confirm af2203e0d11e018e78b9fbb5e8c5a1e9fffe57b9 Hi, I have recently subscribed in sqrug.org. I need clarification. My problem is excel download option. I am integrating coldfusion with cgi a= nd in cgi I am using sqr to create report. Checked the below things - Checked the parameters from coldfusion. Required parameters are coming fi= ne. - No errors where found in cgi file. - SQR is able to create the report in .csv format. But not displaying fine = (It displays the path of sqr). Attached the sample report.=20 Checked SQRIBE_HOME path it is fine in environment. The below code I have u= sed=20 $sqrcommand1 =3D "sqrt $Rptsqr $UIDPWD -E$ErrorFile -F$FileName -PRINTER:E= P -EH_CSV ". " ". "$ID1" ." ". " ".=20=20=20=20=20=20=20=20=20=20=20 "\'". "$ID2" ."\'". " ".=20=20=20=20=20=20=20=20=20=20=20 " ". "$ID3" ." ". " ". "\'". "$PARAMETER1" ."\'". " ". "\'". "$PARAMETER2" ."\'". " ". "\'". "$PARAMETER3" ."\'". " ". "\'". "$PARAMETER4" ."\'". " ". " 1>/dev/null 2>/dev/null" ;=20 But when I work from the site. It is not showing the output in expected for= mat. But it is able to create .csv file. When I use the same in on the server command prompt by giving required para= meters and save the file in .csv it is working fine. The output is displaye= d fine.=20 I have been searching on the internet for the last two days. I am not able = to find any solutions. Can someone help me out? Thanks in advance, Satheesh. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Oct 07 04:22:34 2004 Date: 7 Oct 2004 09:18:51 -0000 From: "p satheesh kumar" Subject: [sqr-users] Re: confirm af2203e0d11e018e78b9fbb5e8c5a1e9fffe57b9 Hi, I have recently subscribed in sqrug.org. I need clarification. My problem is excel download option. I am integrating coldfusion with cgi a= nd in cgi I am using sqr to create report. Checked the below things - Checked the parameters from coldfusion. Required parameters are coming fi= ne. - No errors where found in cgi file. - SQR is able to create the report in .csv format. But not displaying fine = (It displays the path of sqr). Attached the sample report.=20 Checked SQRIBE_HOME path it is fine in environment. The below code I have u= sed=20 $sqrcommand1 =3D "sqrt $Rptsqr $UIDPWD -E$ErrorFile -F$FileName -PRINTER:E= P -EH_CSV ". " ". "$ID1" ." ". " ".=20=20=20=20=20=20=20=20=20=20=20 "\'". "$ID2" ."\'". " ".=20=20=20=20=20=20=20=20=20=20=20 " ". "$ID3" ." ". " ". "\'". "$PARAMETER1" ."\'". " ". "\'". "$PARAMETER2" ."\'". " ". "\'". "$PARAMETER3" ."\'". " ". "\'". "$PARAMETER4" ."\'". " ". " 1>/dev/null 2>/dev/null" ;=20 But when I work from the site. It is not showing the output in expected for= mat. But it is able to create .csv file. When I use the same in on the server command prompt by giving required para= meters and save the file in .csv it is working fine. The output is displaye= d fine.=20 I have been searching on the internet for the last two days. I am not able = to find any solutions. Can someone help me out? Thanks in advance, Satheesh. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Oct 07 04:34:02 2004 Date: 7 Oct 2004 09:32:06 -0000 From: "p satheesh kumar" Subject: [sqr-users] Output .csv format not working This is a multi-part message in MIME format... --Next_1097141501---0-202.54.124.152-10133 Content-Disposition: inline Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi, I have already sent mail but I didn't include the attachment. Now I attache= d. My problem is excel download option. I am integrating coldfusion with cgi a= nd in cgi I am using sqr to create report. Checked the below things - Checked the parameters from coldfusion. Required parameters are coming fi= ne. - No errors where found in cgi file. - SQR is able to create the report in .csv format. But not displaying fine = (It displays the path of sqr). Attached the sample report.=20 Checked SQRIBE_HOME path it is fine in environment. The below code I have u= sed=20 $sqrcommand1 =3D "sqrt $Rptsqr $UIDPWD -E$ErrorFile -F$FileName -PRINTER:E= P -EH_CSV ". " ". "$ID1" ." ". " ".=20=20=20=20=20=20=20=20=20=20 "\'". "$ID2" ."\'". " ".=20=20=20=20=20=20=20=20=20=20 " ". "$ID3" ." ". " ". "\'". "$PARAMETER1" ."\'". " ". "\'". "$PARAMETER2" ."\'". " ". "\'". "$PARAMETER3" ."\'". " ". "\'". "$PARAMETER4" ."\'". " ". " 1>/dev/null 2>/dev/null" ;=20 But when I work from the site. It is not showing the output in expected for= mat. But it is able to create .csv file. When I use the same in on the server command prompt by giving required para= meters and save the file in .csv it is working fine. The output is displaye= d fine.=20 I have been searching on the internet for the last two days. I am not able = to find any solutions. Can someone help me out? Thanks in advance, Satheesh. =20 --Next_1097141501---0-202.54.124.152-10133 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/pdf' MIME type. It has been automatically discarded before sending the message to the list. --Next_1097141501---0-202.54.124.152-10133 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 --Next_1097141501---0-202.54.124.152-10133-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Oct 07 23:59:10 2004 From: pinak.vashi@blr.hexaware.com Date: Fri, 8 Oct 2004 11:27:59 +0630 Subject: [sqr-users] SQR writing the file without extension Hi All, I am facing one strange problem during writing the file from a sqr, which doesn't have the file extension (no .txt). SQR is creating the files and it is available in PSREPORTS directory. But I am not able to see the output file in 'View Log/Trace' link of precess monitor. When I create the file with .txt or .dat extension, I am able to see these files in 'View Log/Trace' link of precess monitor. I am thinking that it is related to some PeopleCode. Can you please help me out. thanks, Pinak Thanks, Pinak Vashi pinak.vashi@blr.hexaware.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Oct 08 13:43:44 2004 Date: Fri, 08 Oct 2004 13:42:17 -0500 From: "Jennifer Lee" Subject: [sqr-users] Fwd: Puzzling Input Argument File Error >>> Jennifer Lee 10/6/2004 7:47:19 AM >>> Hi, I would like to seek advice from this group about an input argument file error: Q1) If an input argument file is to be up loaded into a Unix environment, does it matter to SQRW whether or not each argument line ends with '\r \n' (return followed by new-line) or simply '\n'? Q2) If an argument line only contains '\n', will SQRW know that it should take that as a 'null' value? Q3) What happens after SQRW reads in a line with '\n'? Will it assume that there is no more input values or will it continue to read in values from the argument file until end of the file? Q4) Are there some watch-outs for using argument files for input command? What are the situations where 'Error getting INPUT' can occur? Some background info: 1) We are using SQR for PeopleSoft/8.20. Sun's Solaris is our Unix OS. 2) I was able to run from my PC an sqr program with all input values in an argument file. The command line looks like this: sqrw.exe ... @c:\csqr\umfac001.parm 3) There are five input statements in the program: input $Parm1 'Enter Parm1 (Optional, Press ENTER to continue)' input $Parm2 'Enter Parm2 (Optional, Press ENTER to continue)' input $Parm3 maxlen=5 'Enter Parm3' input $Parm4 maxlen=30 'Enter Parm4 (Optional, Press ENTER to continue)' input $Parm5 maxlen=10 'Enter Parm5' 4) The argument file used by the program looks like this (from a PC text editor): Line 1:A blank space followed by a catridge return Line 2:A catridge return only Line 3:OSF followed by a catridge return Line 4:A catridge return only Line 5:2005 5) Because we are trying to run this sqr program outside the Process Scheduler but with a Unix script calling SQRW, we up loaded the program and the argument file into our Unix environment. Of course the @ argument has the proper Unix file path and file name. 6) When the same program was executed on Unix with a Unix script, the program died right after 'Enter Parm3' is display in the log file. 7) Here's what it was logged in the .err output file: Error on line 162: (SQR 2500) Error getting INPUT. SQR for PeopleSoft: Program Aborting. Thanks in advance for your help!! This e-mail and its attachments have been scanned for viruses. EAS - Systems Support, OIT, University of Minnesota _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Oct 08 14:15:55 2004 Subject: RE: [sqr-users] Fwd: Puzzling Input Argument File Error Date: Fri, 8 Oct 2004 14:14:39 -0500 From: "Knapp, Richard" SQRW is a windows application so it expects input files to have the standard windows line terminators (CRLF). Why are you trying to use a unix file with unix line terminators (LF)in a windows application? Transfer the file to the windows box with FTP and that will convert to the destination OS line terminator or find some way to preserve the crlfs.=20 Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 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 Jennifer Lee Sent: Friday, October 08, 2004 1:42 PM To: sqr-users@sqrug.org Subject: [sqr-users] Fwd: Puzzling Input Argument File Error >>> Jennifer Lee 10/6/2004 7:47:19 AM >>> Hi, I would like to seek advice from this group about an input argument file error: Q1) If an input argument file is to be up loaded into a Unix environment, does it matter to SQRW whether or not each argument line ends with '\r \n' (return followed by new-line) or simply '\n'? Q2) If an argument line only contains '\n', will SQRW know that it should take that as a 'null' value? Q3) What happens after SQRW reads in a line with '\n'? Will it assume that there is no more input values or will it continue to read in values from the argument file until end of the file? Q4) Are there some watch-outs for using argument files for input command? What are the situations where 'Error getting INPUT' can occur? Some background info: 1) We are using SQR for PeopleSoft/8.20. Sun's Solaris is our Unix OS. 2) I was able to run from my PC an sqr program with all input values in an argument file.=20=20=20 The command line looks like this:=20 sqrw.exe ... @c:\csqr\umfac001.parm 3) There are five input statements in the program: input $Parm1 'Enter Parm1 (Optional, Press ENTER to continue)' input $Parm2 'Enter Parm2 (Optional, Press ENTER to continue)' input $Parm3 maxlen=3D5 'Enter Parm3' input $Parm4 maxlen=3D30 'Enter Parm4 (Optional, Press ENTER to continue)' input $Parm5 maxlen=3D10 'Enter Parm5' 4) The argument file used by the program looks like this (from a PC text editor): Line 1:A blank space followed by a catridge return Line 2:A catridge return only Line 3:OSF followed by a catridge return Line 4:A catridge return only Line 5:2005=20 5) Because we are trying to run this sqr program outside the Process Scheduler but with a Unix script calling SQRW, we up loaded the program and the argument file into our Unix environment. Of course the @ argument has the proper Unix file path and file name. 6) When the same program was executed on Unix with a Unix script, the program died right after 'Enter Parm3' is display in the log file.=20=20 7) Here's what it was logged in the .err output file: Error on line 162: (SQR 2500) Error getting INPUT. SQR for PeopleSoft: Program Aborting. Thanks in advance for your help!! This e-mail and its attachments have been scanned for viruses. EAS - Systems Support, OIT, University of Minnesota _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Fri Oct 08 14:35:46 2004 Subject: Re: [sqr-users] Fwd: Puzzling Input Argument File Error From: Russ Wulfson Date: Fri, 8 Oct 2004 14:34:33 -0500 1)Put some shows surrounded by xx's show 'xxx' $parm 'xxx' in your program and see what sqr is seeing. 2) transfer your parm file to unix using ascci not binary. We move files back and forth all the time from windows to unix without any problems, we always use ascii transfers. Caveat - we don't use parm files, we do use input and output files. Thanks, Russ Wulfson _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Oct 11 13:26:33 2004 Date: Mon, 11 Oct 2004 14:24:09 -0400 From: "Debbie Larney" Subject: [sqr-users] Max effective date evaluation not in sql Everyone, I have a simple issue that I can't seem to work out. I need to determine th= e max effective dated row from the minimum row returned in three different = select statements.=20 Here are my sample select statements select com.effdt from ps_company_tbl com where com.effdt =3D (select=20 min(inner.effdt)=20 from ps_company_tbl inner=20 where inner.company =3D com.company and=20 inner.effdt <=3D sysdate)=20 select pay.effdt from ps_paygroup_tbl pay where pay.effdt =3D (select=20 min(inner.effdt)=20 from ps_paygroup_tbl inner=20 where inner.company =3D pay.company and=20 and inner.paygroup =3D pay.paygroup inner.effdt <=3D sysdate)=20 select loc.effdt from ps_location_tbl loc where loc.effdt =3D (select=20 min(inner.effdt)=20 from ps_location_tbl inner=20 where inner.company =3D loc.company and=20 and inner.location =3D loc.location inner.effdt <=3D sysdate)=20 Now that I have loc.effdt, pay.effdt and com.effdt how do I determine which= is the max effective dated row. Thanks in advance Deb ******************************************************************** CONFIDENTIALITY NOTICE: The information contained in this e-mail is legally privileged and confiden= tial information intended only for the use of the individual or entity to w= hom it is addressed. If the reader of this message is not the intended rec= ipient, you are hereby notified that any viewing, dissemination, distributi= on, or copying of this e-mail message is strictly prohibited. If you have = received and/or are viewing this e-mail in error, please immediately notify= the sender by reply e-mail, and delete this e-mail from your system. Thank you. ******************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Oct 11 13:54:06 2004 Subject: RE: [sqr-users] Max effective date evaluation not in sql Date: Mon, 11 Oct 2004 13:52:59 -0500 From: "Knapp, Richard" A crude bubble sort? If A > B if A > C it's A end-if else if B > C=20 it's B else it's C end-if end-if Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 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 Debbie Larney Sent: Monday, October 11, 2004 1:24 PM To: sqr-users@sqrug.org Subject: [sqr-users] Max effective date evaluation not in sql Everyone, I have a simple issue that I can't seem to work out. I need to determine the max effective dated row from the minimum row returned in three different select statements.=20 Here are my sample select statements select com.effdt from ps_company_tbl com where com.effdt =3D (select=20 min(inner.effdt)=20 from ps_company_tbl inner=20 where inner.company =3D com.company and=20 inner.effdt <=3D sysdate)=20 select pay.effdt from ps_paygroup_tbl pay where pay.effdt =3D (select=20 min(inner.effdt)=20 from ps_paygroup_tbl inner=20 where inner.company =3D pay.company and=20 and inner.paygroup =3D pay.paygroup inner.effdt <=3D sysdate)=20 select loc.effdt from ps_location_tbl loc where loc.effdt =3D (select=20 min(inner.effdt)=20 from ps_location_tbl inner=20 where inner.company =3D loc.company and=20 and inner.location =3D loc.location inner.effdt <=3D sysdate)=20 Now that I have loc.effdt, pay.effdt and com.effdt how do I determine which is the max effective dated row. Thanks in advance Deb ******************************************************************** CONFIDENTIALITY NOTICE: The information contained in this e-mail is legally privileged and confidential information intended only for the use of the individual or entity to whom it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any viewing, dissemination, distribution, or copying of this e-mail message is strictly prohibited. If you have received and/or are viewing this e-mail in error, please immediately notify the sender by reply e-mail, and delete this e-mail from your system. 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+sqrusersarch=sqrug.org@sqrug.org Mon Oct 11 15:08:45 2004 From: Scott Eubank Date: Mon, 11 Oct 2004 16:05:47 -0400 Subject: [sqr-users] ISOLATION LEVEL I need to do a "dirty read", basically an uncommited read for a report so that I do not disrupt processes that are running at nite. How do I "change isolation Level UR" in an SQR for the entire SQR. AIX, DB2 , PSOFT-Tools 7.59 Any help would be greatly appreciated. Scott Ebank =================================================================== NOTICE - CONFIDENTIAL AND PRIVILEGED - This e-mail may contain privileged and confidential information and is intended only for the addressee named above. If you received this message in error, please immediately notify the sender by return e-mail and delete the original message; any distribution, copying or use of this e-mail by you is strictly prohibited and may be unlawful. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Oct 12 08:42:24 2004 Date: Tue, 12 Oct 2004 09:39:55 -0400 From: Neal Patterson Subject: [sqr-users] Re: sqr-users Digest, Vol 8, Issue 7 If Debbie wants an SQL approach to picking the maximum if her 3 dates, maybe something like this would do: select max(MyDate) from (select com.effdt as MyDate from ps_company_tbl com where com.effdt = (select min(inner.effdt) from ps_company_tbl inner where inner.company = com.company and inner.effdt <= sysdate) union select pay.effdt as MyDate from ps_paygroup_tbl pay where pay.effdt = (select min(inner.effdt) from ps_paygroup_tbl inner where inner.company = pay.company and and inner.paygroup = pay.paygroup inner.effdt <= sysdate) union select loc.effdt as MyDate from ps_location_tbl loc where loc.effdt = (select min(inner.effdt) from ps_location_tbl inner where inner.company = loc.company and and inner.location = loc.location inner.effdt <= sysdate)) as T - Neal Patterson ----------------------------------------------------------------------- At 06:03 AM 10/12/2004 -0500, you 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. Max effective date evaluation not in sql (Debbie Larney) > 2. RE: Max effective date evaluation not in sql (Knapp, Richard) > 3. ISOLATION LEVEL (Scott Eubank) > > >---------------------------------------------------------------------- > >Message: 1 >Date: Mon, 11 Oct 2004 14:24:09 -0400 >From: "Debbie Larney" >Subject: [sqr-users] Max effective date evaluation not in sql >To: >Message-ID: > <768DB1A57CCF794A9A6F7288B66D8F6563A8E1@HAMMERHEAD.ltc.com> >Content-Type: text/plain; charset="iso-8859-1" > >Everyone, > >I have a simple issue that I can't seem to work out. I need to determine >the max effective dated row from the minimum row returned in three >different select statements. >Here are my sample select statements > >select com.effdt >from ps_company_tbl com >where com.effdt = (select > min(inner.effdt) > from ps_company_tbl inner > where inner.company = com.company and > inner.effdt <= sysdate) > >select pay.effdt >from ps_paygroup_tbl pay >where pay.effdt = (select > min(inner.effdt) > from ps_paygroup_tbl inner > where inner.company = pay.company and > and inner.paygroup = pay.paygroup > inner.effdt <= sysdate) > >select loc.effdt >from ps_location_tbl loc >where loc.effdt = (select > min(inner.effdt) > from ps_location_tbl inner > where inner.company = loc.company and > and inner.location = loc.location > inner.effdt <= sysdate) > >Now that I have loc.effdt, pay.effdt and com.effdt how do I determine >which is the max effective dated row. > >Thanks in advance > >Deb > > > >******************************************************************** >CONFIDENTIALITY NOTICE: >The information contained in this e-mail is legally privileged and >confidential information intended only for the use of the individual or >entity to whom it is addressed. If the reader of this message is not the >intended recipient, you are hereby notified that any viewing, >dissemination, distribution, or copying of this e-mail message is strictly >prohibited. If you have received and/or are viewing this e-mail in error, >please immediately notify the sender by reply e-mail, and delete this >e-mail from your system. > >Thank you. >******************************************************************** > > > > >------------------------------ > >Message: 2 >Date: Mon, 11 Oct 2004 13:52:59 -0500 >From: "Knapp, Richard" >Subject: RE: [sqr-users] Max effective date evaluation not in sql >To: "This list is for discussion about the SQR database > reportinglanguage from Hyperion Solutions." >Message-ID: > >Content-Type: text/plain; charset="US-ASCII" > > >A crude bubble sort? If A > B > if A > C > it's A > end-if > else > if B > C > it's B > else > it's C > end-if > end-if > >Richard Knapp >Database Programmer/Analyst >Institutional Research and Planning >University of Missouri System >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 >Debbie Larney >Sent: Monday, October 11, 2004 1:24 PM >To: sqr-users@sqrug.org >Subject: [sqr-users] Max effective date evaluation not in sql > >Everyone, > >I have a simple issue that I can't seem to work out. I need to determine >the max effective dated row from the minimum row returned in three >different select statements. >Here are my sample select statements > >select com.effdt >from ps_company_tbl com >where com.effdt = (select > min(inner.effdt) > from ps_company_tbl inner > where inner.company = com.company and > inner.effdt <= sysdate) > >select pay.effdt >from ps_paygroup_tbl pay >where pay.effdt = (select > min(inner.effdt) > from ps_paygroup_tbl inner > where inner.company = pay.company and > and inner.paygroup = pay.paygroup > inner.effdt <= sysdate) > >select loc.effdt >from ps_location_tbl loc >where loc.effdt = (select > min(inner.effdt) > from ps_location_tbl inner > where inner.company = loc.company and > and inner.location = loc.location > inner.effdt <= sysdate) > >Now that I have loc.effdt, pay.effdt and com.effdt how do I determine >which is the max effective dated row. > >Thanks in advance > >Deb > > > >******************************************************************** >CONFIDENTIALITY NOTICE: >The information contained in this e-mail is legally privileged and >confidential information intended only for the use of the individual or >entity to whom it is addressed. If the reader of this message is not >the intended recipient, you are hereby notified that any viewing, >dissemination, distribution, or copying of this e-mail message is >strictly prohibited. If you have received and/or are viewing this >e-mail in error, please immediately notify the sender by reply e-mail, >and delete this e-mail from your system. > >Thank you. >******************************************************************** > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > > > >------------------------------ > >Message: 3 >Date: Mon, 11 Oct 2004 16:05:47 -0400 >From: Scott Eubank >Subject: [sqr-users] ISOLATION LEVEL >To: 'SQRUG' >Message-ID: > ><4B25267A624F0F46AAAF8F42CB62863102A5DF98@exchange2k2.corp.advancestores.com> > >Content-Type: text/plain; charset="iso-8859-1" > > > I need to do a "dirty read", basically an uncommited read for a report so >that I do not disrupt processes that are running at nite. How do I >"change isolation Level UR" in an SQR for the entire SQR. > > AIX, DB2 , PSOFT-Tools 7.59 > >Any help would be greatly appreciated. > > >Scott Ebank > > > >=================================================================== >NOTICE - CONFIDENTIAL AND PRIVILEGED - This e-mail may contain >privileged and confidential information and is intended only for the >addressee named above. If you received this message in error, >please immediately notify the sender by return e-mail and delete the >original message; any distribution, copying or use of this e-mail >by you is strictly prohibited and may be unlawful. > > > >------------------------------ > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > > >End of sqr-users Digest, Vol 8, Issue 7 >*************************************** ------------------------------------------------------------------- Neal Patterson, Sr. Programmer/Analyst College Relations Information Systems Services, Colby College 4333 Mayflower Hill Drive, Waterville, ME 04901-8843 Phone: (207)872-3419 E-mail: rnpatter@colby.edu ------------------------------------------------------------------- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Oct 12 11:05:00 2004 Date: Tue, 12 Oct 2004 17:03:48 +0100 (BST) From: Amber S Subject: [sqr-users] Data truncated during update from flat file Hi folks, I am trying to update a peoplesoft record with inputs from a flat file, the length of the data contained in my variable varies from reord to record and I am coming across an odd situation wherein only part of my variable is inserted in the colum if it follows a row with a shorter length variable. Has anyone encountered this before? any comments? I am checking the values of my variable in my log file and they are perfectly alright, no truncates happening there, it is only during the update that this occurs and the variables do not specify the field length, all are within the 30 chars specified. Any suggestions are much appreciated. Thanks, Amber ___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Oct 12 11:10:25 2004 Subject: RE: [sqr-users] Data truncated during update from flat file Date: Tue, 12 Oct 2004 10:09:11 -0600 From: "Bartlett, Dwain" Are the fields in your input record delimited in any way? If they are then= you can use the unstring command. Dwain Bartlett SABHRS Services Bureau, ITSD HR Systems Analyst (406) 444-0418 dbartlett@state.mt.us -----Original Message----- From: Amber S [mailto:amber_sqr@yahoo.co.uk] Sent: Tuesday, October 12, 2004 10:04 AM To: sqr-users@sqrug.org Subject: [sqr-users] Data truncated during update from flat file Hi folks, I am trying to update a peoplesoft record with inputs from a flat file, the length of the data contained in my variable varies from reord to record and I am coming across an odd situation wherein only part of my variable is inserted in the colum if it follows a row with a shorter length variable. Has anyone encountered this before? any comments? I am checking the values of my variable in my log file and they are perfectly alright, no truncates happening there, it is only during the update that this occurs and the variables do not specify the field length, all are within the 30 chars specified. Any suggestions are much appreciated. Thanks, Amber =09 =09 =09=09 ___________________________________________________________ALL-NEW Yahoo! M= essenger - all new features - even more fun! http://uk.messenger.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+sqrusersarch=sqrug.org@sqrug.org Tue Oct 12 11:16:37 2004 From: James Womeldorf Subject: RE: [sqr-users] Data truncated during update from flat file Date: Tue, 12 Oct 2004 11:15:32 -0500 Are you checking the actual field length in the database or are you checking it in PS? It is possible that they are different. Could there be tabs in you input file? Could you send us a code snippet? Jim -----Original Message----- From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org [mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of Amber S Sent: Tuesday, October 12, 2004 11:04 AM To: sqr-users@sqrug.org Subject: [sqr-users] Data truncated during update from flat file Hi folks, I am trying to update a peoplesoft record with inputs from a flat file, the length of the data contained in my variable varies from reord to record and I am coming across an odd situation wherein only part of my variable is inserted in the colum if it follows a row with a shorter length variable. Has anyone encountered this before? any comments? I am checking the values of my variable in my log file and they are perfectly alright, no truncates happening there, it is only during the update that this occurs and the variables do not specify the field length, all are within the 30 chars specified. Any suggestions are much appreciated. Thanks, Amber ___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.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+sqrusersarch=sqrug.org@sqrug.org Tue Oct 12 11:22:43 2004 Date: Tue, 12 Oct 2004 17:18:35 +0100 (BST) From: Amber S Subject: RE: [sqr-users] Data truncated during update from flat file Yes, I am using a csv file and also assigning to variables using the unstring command, there is nothing in the csv file that should cause this, as I mentioned earlier, the Show command displays the complete variable --- "Bartlett, Dwain" wrote: > Are the fields in your input record delimited in any > way? If they are then you can use the unstring > command. > > Dwain Bartlett > SABHRS Services Bureau, ITSD > HR Systems Analyst > (406) 444-0418 > dbartlett@state.mt.us > > > -----Original Message----- > From: Amber S [mailto:amber_sqr@yahoo.co.uk] > Sent: Tuesday, October 12, 2004 10:04 AM > To: sqr-users@sqrug.org > Subject: [sqr-users] Data truncated during update > from flat file > > > Hi folks, > I am trying to update a peoplesoft record with > inputs > from a flat file, the length of the data contained > in > my variable varies from reord to record and I am > coming across an odd situation wherein only part of > my > variable is inserted in the colum if it follows a > row > with a shorter length variable. > Has anyone encountered this before? any comments? > I am checking the values of my variable in my log > file > and they are perfectly alright, no truncates > happening > there, it is only during the update that this occurs > and the variables do not specify the field length, > all > are within the 30 chars specified. > Any suggestions are much appreciated. > Thanks, > Amber > > > > > > > ___________________________________________________________ALL-NEW > Yahoo! Messenger - all new features - even more fun! > http://uk.messenger.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 > ___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Oct 12 11:26:34 2004 Subject: RE: [sqr-users] Data truncated during update from flat file Date: Tue, 12 Oct 2004 11:10:51 -0500 From: "Knapp, Richard" The first question I answer in any file read is: Am I reading what is in the file?=20 Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 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 Amber S Sent: Tuesday, October 12, 2004 11:04 AM To: sqr-users@sqrug.org Subject: [sqr-users] Data truncated during update from flat file Hi folks, I am trying to update a peoplesoft record with inputs from a flat file, the length of the data contained in my variable varies from reord to record and I am coming across an odd situation wherein only part of my variable is inserted in the colum if it follows a row with a shorter length variable. Has anyone encountered this before? any comments? I am checking the values of my variable in my log file and they are perfectly alright, no truncates happening there, it is only during the update that this occurs and the variables do not specify the field length, all are within the 30 chars specified. Any suggestions are much appreciated. Thanks, Amber =09 =09 =09=09 ___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.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+sqrusersarch=sqrug.org@sqrug.org Tue Oct 12 11:30:45 2004 Subject: RE: [sqr-users] Data truncated during update from flat file Date: Tue, 12 Oct 2004 10:29:37 -0600 From: "Bartlett, Dwain" Here is a sample unstring command. unstring $record by ',' into $product $invoice_id $invoice_dt $vendor $pr= iority $account $amount $descr $bu $due_dt Dwain Bartlett SABHRS Services Bureau, ITSD HR Systems Analyst (406) 444-0418 dbartlett@state.mt.us -----Original Message----- From: Amber S [mailto:amber_sqr@yahoo.co.uk] Sent: Tuesday, October 12, 2004 10:19 AM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] Data truncated during update from flat file Yes, I am using a csv file and also assigning to variables using the unstring command, there is nothing in the csv file that should cause this, as I mentioned earlier, the Show command displays the complete variable --- "Bartlett, Dwain" wrote:=20 > Are the fields in your input record delimited in any > way? If they are then you can use the unstring > command. >=20 > Dwain Bartlett > SABHRS Services Bureau, ITSD > HR Systems Analyst > (406) 444-0418 > dbartlett@state.mt.us >=20 >=20 > -----Original Message----- > From: Amber S [mailto:amber_sqr@yahoo.co.uk] > Sent: Tuesday, October 12, 2004 10:04 AM > To: sqr-users@sqrug.org > Subject: [sqr-users] Data truncated during update > from flat file >=20 >=20 > Hi folks, > I am trying to update a peoplesoft record with > inputs > from a flat file, the length of the data contained > in > my variable varies from reord to record and I am > coming across an odd situation wherein only part of > my > variable is inserted in the colum if it follows a > row > with a shorter length variable. > Has anyone encountered this before? any comments? > I am checking the values of my variable in my log > file > and they are perfectly alright, no truncates > happening > there, it is only during the update that this occurs > and the variables do not specify the field length, > all > are within the 30 chars specified. > Any suggestions are much appreciated. > Thanks, > Amber >=20 >=20 >=20 >=20=09 >=20=09 >=20=09=09 > ___________________________________________________________ALL-NEW > Yahoo! Messenger - all new features - even more fun! > http://uk.messenger.yahoo.com >=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 >=20=20 =09 =09 =09=09 ___________________________________________________________ALL-NEW Yahoo! M= essenger - all new features - even more fun! http://uk.messenger.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+sqrusersarch=sqrug.org@sqrug.org Tue Oct 12 11:33:43 2004 Date: Tue, 12 Oct 2004 17:32:06 +0100 (BST) From: Amber S Subject: RE: [sqr-users] Data truncated during update from flat file I have checked the field length in the database and there arnt any tabs in the input file. Here is the procedure that does the update !************************************************************************ Begin-procedure Update_PS !************************************************************************ Display $Dv_Position_Nbr Display $Job_Effdt Display $DV_Job_Title Show 'Updates' #sql-count Begin-Sql UPDATE PS_POSITION_DATA SET PS_POSITION_DATA.DESCR = $DV_Job_Title WHERE PS_POSITION_DATA.POSITION_NBR = $Dv_Position_Nbr AND PS_POSITION_DATA.EFFDT >= (SELECT MAX(EFFDT) FROM PS_POSITION_DATA PD2 WHERE PS_POSITION_DATA.POSITION_NBR = PD2.POSITION_NBR AND PD2.EFFDT <= $Job_Effdt) End-Sql End-Procedure --- James Womeldorf wrote: > Are you checking the actual field length in the > database or are you checking > it in PS? It is possible that they are different. > Could there be tabs in you input file? > Could you send us a code snippet? > Jim > > -----Original Message----- > From: > sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org > [mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On > Behalf Of > Amber S > Sent: Tuesday, October 12, 2004 11:04 AM > To: sqr-users@sqrug.org > Subject: [sqr-users] Data truncated during update > from flat file > > > Hi folks, > I am trying to update a peoplesoft record with > inputs > from a flat file, the length of the data contained > in > my variable varies from reord to record and I am > coming across an odd situation wherein only part of > my > variable is inserted in the colum if it follows a > row > with a shorter length variable. > Has anyone encountered this before? any comments? > I am checking the values of my variable in my log > file > and they are perfectly alright, no truncates > happening > there, it is only during the update that this occurs > and the variables do not specify the field length, > all > are within the 30 chars specified. > Any suggestions are much appreciated. > Thanks, > Amber > > > > > > > ___________________________________________________________ALL-NEW > Yahoo! > Messenger - all new features - even more fun! > http://uk.messenger.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 > ___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Oct 12 11:38:23 2004 Subject: RE: [sqr-users] Data truncated during update from flat file Date: Tue, 12 Oct 2004 10:37:15 -0600 From: "Bartlett, Dwain" Can you send a sample of the input file? Dwain Bartlett SABHRS Services Bureau, ITSD HR Systems Analyst (406) 444-0418 dbartlett@state.mt.us -----Original Message----- From: Amber S [mailto:amber_sqr@yahoo.co.uk] Sent: Tuesday, October 12, 2004 10:32 AM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] Data truncated during update from flat file I have checked the field length in the database and there arnt any tabs in the input file. Here is the procedure that does the update !************************************************************************ Begin-procedure Update_PS !************************************************************************ Display $Dv_Position_Nbr Display $Job_Effdt Display $DV_Job_Title Show 'Updates' #sql-count Begin-Sql UPDATE PS_POSITION_DATA SET PS_POSITION_DATA.DESCR =3D $DV_Job_Title WHERE PS_POSITION_DATA.POSITION_NBR =3D $Dv_Position_Nbr AND PS_POSITION_DATA.EFFDT >=3D (SELECT MAX(EFFDT) FROM PS_POSITION_DATA PD2 WHERE PS_POSITION_DATA.POSITION_NBR =3D PD2.POSITION_NBR AND PD2.EFFDT <=3D $Job_Effdt) End-Sql End-Procedure --- James Womeldorf wrote:=20 > Are you checking the actual field length in the > database or are you checking > it in PS? It is possible that they are different. > Could there be tabs in you input file? > Could you send us a code snippet? > 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 > Amber S > Sent: Tuesday, October 12, 2004 11:04 AM > To: sqr-users@sqrug.org > Subject: [sqr-users] Data truncated during update > from flat file >=20 >=20 > Hi folks, > I am trying to update a peoplesoft record with > inputs > from a flat file, the length of the data contained > in > my variable varies from reord to record and I am > coming across an odd situation wherein only part of > my > variable is inserted in the colum if it follows a > row > with a shorter length variable. > Has anyone encountered this before? any comments? > I am checking the values of my variable in my log > file > and they are perfectly alright, no truncates > happening > there, it is only during the update that this occurs > and the variables do not specify the field length, > all > are within the 30 chars specified. > Any suggestions are much appreciated. > Thanks, > Amber >=20 >=20 >=20 >=20=09 >=20=09 >=20=09=09 > ___________________________________________________________ALL-NEW > Yahoo! > Messenger - all new features - even more fun!=20 > http://uk.messenger.yahoo.com >=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 >=20=20 =09 =09 =09=09 ___________________________________________________________ALL-NEW Yahoo! M= essenger - all new features - even more fun! http://uk.messenger.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+sqrusersarch=sqrug.org@sqrug.org Tue Oct 12 11:42:06 2004 From: PSFTPROGRAMMER@aol.com Date: Tue, 12 Oct 2004 12:39:21 EDT Subject: Re: [sqr-users] Data truncated during update from flat file Adding to Dwain's suggestion- Also do a show statement on the values coming out of the flat file, and take those values and the SQL from the program and do an insert into the database directly. I ahve found a couple of times that the data may have an extra comma in it (like a comma in a name) or the data is in the wrong order I am expecting it. Doing this helps track down where the issue is. Also, it may not be the entire file you are having trouble with, but maybe just one line? If you put the show statement as part of an on-error command you will see the data that is actually causing the error. Denise _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Oct 12 11:44:57 2004 From: PSFTPROGRAMMER@aol.com Date: Tue, 12 Oct 2004 12:43:03 EDT Subject: Re: [sqr-users] Data truncated during update from flat file What are the values for $Dv_Position_Nbr, $Job_Effdt, & $DV_Job_Title? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Oct 12 11:51:19 2004 From: "Lynds,Rick" Subject: RE: [sqr-users] Data truncated during update from flat file Date: Tue, 12 Oct 2004 09:50:03 -0700 UNSTRING is a very literal command. It will split on the specified delimiter character regardless of where quote marks make occur in the input string. If any of your input fields have the remotest possibility of containing commas, you may want to use a more sophisticated method of parsing your flat-file input data. Rick -----Original Message----- From: sqr-users-bounces+rlynds=mwdh2o.com@sqrug.org [mailto:sqr-users-bounces+rlynds=mwdh2o.com@sqrug.org]On Behalf Of Amber S Sent: Tuesday, October 12, 2004 9:19 AM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] Data truncated during update from flat file Yes, I am using a csv file and also assigning to variables using the unstring command, there is nothing in the csv file that should cause this, as I mentioned earlier, the Show command displays the complete variable _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Oct 12 11:54:57 2004 Date: Tue, 12 Oct 2004 17:51:51 +0100 (BST) From: Amber S Subject: Re: [sqr-users] Data truncated during update from flat file This is a multi-part message in MIME format... --0-1273688325-1097599911=:57672 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Content-Id: Content-Disposition: inline I have attached a sample copy of the csv file. And here I am pasting my unstring code.... begin-procedure read-data-file while not #end-file Read 1 into $Input_Record:3000 Unstring $Input_Record By ',' Into $DV_Emplid $DV_First_Name $DV_Last_Name $DV_Payroll_No $DV_Deptid $DV_Position_Nbr $DV_Job_Title $DV_Reports_To_Nbr let $DV_Emplid = rtrim($Dv_Emplid, ' ') let $Dv_Position_Nbr = lpad($Dv_Position_Nbr, 8, '0') let $Dv_Job_Title = substr($Dv_Job_Title,1,30) let #DV_count = #DV_count +1 do job-title if #end-file break end-if end-while Close 1 end-procedure Also the $Job_Effdt varible holds the value of the current EFFDT of an employees record --- PSFTPROGRAMMER@aol.com wrote: > What are the values for $Dv_Position_Nbr, > $Job_Effdt, & $DV_Job_Title? > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com --0-1273688325-1097599911=:57672 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/octet-stream' MIME type. It has been automatically discarded before sending the message to the list. --0-1273688325-1097599911=:57672 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-1273688325-1097599911=:57672-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Oct 12 11:58:12 2004 Date: Tue, 12 Oct 2004 17:54:51 +0100 (BST) From: Amber S Subject: RE: [sqr-users] Data truncated during update from flat file I have tried the same with '~' as well, still the same problem --- "Lynds,Rick" wrote: > UNSTRING is a very literal command. It will split > on the specified > delimiter character regardless of where quote marks > make occur in the input > string. If any of your input fields have the > remotest possibility of > containing commas, you may want to use a more > sophisticated method of > parsing your flat-file input data. > > Rick > > -----Original Message----- > From: sqr-users-bounces+rlynds=mwdh2o.com@sqrug.org > [mailto:sqr-users-bounces+rlynds=mwdh2o.com@sqrug.org]On > Behalf Of Amber > S > Sent: Tuesday, October 12, 2004 9:19 AM > To: This list is for discussion about the SQR > database reporting > language from Hyperion Solutions. > Subject: RE: [sqr-users] Data truncated during > update from flat file > > > Yes, I am using a csv file and also assigning to > variables using the unstring command, there is > nothing > in the csv file that should cause this, as I > mentioned > earlier, the Show command displays the complete > variable > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Oct 12 12:15:21 2004 Subject: RE: [sqr-users] Data truncated during update from flat file Date: Tue, 12 Oct 2004 11:14:11 -0600 From: "Bartlett, Dwain" I did not get the attachment, rename it to a xxxxx.dat file. Dwain Bartlett SABHRS Services Bureau, ITSD HR Systems Analyst (406) 444-0418 dbartlett@state.mt.us -----Original Message----- From: Amber S [mailto:amber_sqr@yahoo.co.uk] Sent: Tuesday, October 12, 2004 10:52 AM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: Re: [sqr-users] Data truncated during update from flat file I have attached a sample copy of the csv file. And here I am pasting my unstring code.... begin-procedure read-data-file while not #end-file Read 1 into $Input_Record:3000 Unstring $Input_Record By ',' Into $DV_Emplid $DV_First_Name $DV_Last_Name $DV_Payroll_No $DV_Deptid $DV_Position_Nbr $DV_Job_Title $DV_Reports_To_Nbr let $DV_Emplid =3D rtrim($Dv_Emplid, ' ') let $Dv_Position_Nbr =3D lpad($Dv_Position_Nbr, 8, '0') let $Dv_Job_Title =3D substr($Dv_Job_Title,1,30) let #DV_count =3D #DV_count +1 do job-title if #end-file break end-if end-while Close 1 end-procedure Also the $Job_Effdt varible holds the value of the current EFFDT of an employees record --- PSFTPROGRAMMER@aol.com wrote:=20 > What are the values for $Dv_Position_Nbr, > $Job_Effdt, & $DV_Job_Title? >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20=20 =09 =09 =09=09 ___________________________________________________________ALL-NEW Yahoo! M= essenger - all new features - even more fun! http://uk.messenger.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Oct 12 12:18:18 2004 Subject: RE: [sqr-users] Data truncated during update from flat file From: kristy.engelkes@rsmi.com Date: Tue, 12 Oct 2004 12:15:39 -0500 We have had this happen a few times. It was due to the mdac being incorrect, out-of-sync, or some type of problem. After updating the mdac, it then worked correctly. This definitely sounds like the same type of problem. "Amber S" Sent by: sqr-users-bounces+kristy.engelkes=rsmi.com@sqrug.org 10/12/2004 11:54 AM Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." To: "This list is for discussion about the SQR database reporting language from Hyperion Solutions." cc: Subject: RE: [sqr-users] Data truncated during update from flat file I have tried the same with '~' as well, still the same problem --- "Lynds,Rick" wrote: > UNSTRING is a very literal command. It will split > on the specified > delimiter character regardless of where quote marks > make occur in the input > string. If any of your input fields have the > remotest possibility of > containing commas, you may want to use a more > sophisticated method of > parsing your flat-file input data. > > Rick > > -----Original Message----- > From: sqr-users-bounces+rlynds=mwdh2o.com@sqrug.org > [mailto:sqr-users-bounces+rlynds=mwdh2o.com@sqrug.org]On > Behalf Of Amber > S > Sent: Tuesday, October 12, 2004 9:19 AM > To: This list is for discussion about the SQR > database reporting > language from Hyperion Solutions. > Subject: RE: [sqr-users] Data truncated during > update from flat file > > > Yes, I am using a csv file and also assigning to > variables using the unstring command, there is > nothing > in the csv file that should cause this, as I > mentioned > earlier, the Show command displays the complete > variable > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.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+sqrusersarch=sqrug.org@sqrug.org Wed Oct 13 03:58:19 2004 Date: Wed, 13 Oct 2004 09:54:32 +0100 (BST) From: Amber S Subject: RE: [sqr-users] Data truncated during update from flat file This is a multi-part message in MIME format... --0-1056027300-1097657672=:68124 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Content-Id: Content-Disposition: inline Hello Dwain, I have renamed the file to sample.dat and have attached it, hope you receive it this time. thanks! --- "Bartlett, Dwain" wrote: > I did not get the attachment, rename it to a > xxxxx.dat file. > > Dwain Bartlett > SABHRS Services Bureau, ITSD > HR Systems Analyst > (406) 444-0418 > dbartlett@state.mt.us > > > -----Original Message----- > From: Amber S [mailto:amber_sqr@yahoo.co.uk] > Sent: Tuesday, October 12, 2004 10:52 AM > To: This list is for discussion about the SQR > database reporting > language from Hyperion Solutions. > Subject: Re: [sqr-users] Data truncated during > update from flat file > > > I have attached a sample copy of the csv file. > And here I am pasting my unstring code.... > > begin-procedure read-data-file > > while not #end-file > > Read 1 into $Input_Record:3000 > > Unstring $Input_Record By ',' Into > > $DV_Emplid > $DV_First_Name > $DV_Last_Name > $DV_Payroll_No > $DV_Deptid > $DV_Position_Nbr > $DV_Job_Title > $DV_Reports_To_Nbr > > let $DV_Emplid = rtrim($Dv_Emplid, ' ') > let $Dv_Position_Nbr = lpad($Dv_Position_Nbr, 8, > '0') > let $Dv_Job_Title = substr($Dv_Job_Title,1,30) > > let #DV_count = #DV_count +1 > do job-title > > if #end-file > break > end-if > > end-while > > Close 1 > > end-procedure > > Also the $Job_Effdt varible holds the value of the > current EFFDT of an employees record > > > --- PSFTPROGRAMMER@aol.com wrote: > > What are the values for $Dv_Position_Nbr, > > $Job_Effdt, & $DV_Job_Title? > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > ___________________________________________________________ALL-NEW > Yahoo! Messenger - all new features - even more fun! > http://uk.messenger.yahoo.com > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com --0-1056027300-1097657672=:68124 Content-Type: text/plain; name="sample.dat" Content-Description: sample.dat Content-Disposition: inline; filename="sample.dat" 6150,Mary,Poppins,X1077890,DEPTID,00005490,Systems Developer HAI,00003299 5023,Joe,Bloggs,X1070440,DEPTID,00005456,Clerical Officer - BBV,00005485 6233,Homer,Simpson,X2073400,DEPTID,00005609,Personal Secretary,00004980 6209,Miu,Miu,X1022095,DEPTID,00005593,Personal Secretary,00004979 --0-1056027300-1097657672=:68124 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-1056027300-1097657672=:68124-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Oct 13 07:31:24 2004 Subject: RE: [sqr-users] Re: sqr-users Digest, Vol 8, Issue 7 Date: Wed, 13 Oct 2004 08:28:46 -0400 From: "Debbie Larney" Neil, That is a great idea. Thank you so much. I will definitely use it. Deb -----Original Message----- From: Neal Patterson [mailto:rnpatter@colby.edu] Sent: Tuesday, October 12, 2004 9:40 AM To: sqr-users@sqrug.org Subject: [sqr-users] Re: sqr-users Digest, Vol 8, Issue 7 If Debbie wants an SQL approach to picking the maximum if her 3 dates,=20 maybe something like this would do: select max(MyDate) from (select com.effdt as MyDate from ps_company_tbl com where com.effdt =3D (select min(inner.effdt) from ps_company_tbl inner where inner.company =3D com.company and inner.effdt <=3D sysdate) union select pay.effdt as MyDate from ps_paygroup_tbl pay where pay.effdt =3D (select min(inner.effdt) from ps_paygroup_tbl inner where inner.company =3D pay.company and and inner.paygroup =3D pay.paygroup inner.effdt <=3D sysdate) union select loc.effdt as MyDate from ps_location_tbl loc where loc.effdt =3D (select min(inner.effdt) from ps_location_tbl inner where inner.company =3D loc.company and and inner.location =3D loc.location inner.effdt <=3D sysdate)) as T - Neal Patterson ----------------------------------------------------------------------- At 06:03 AM 10/12/2004 -0500, you 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. Max effective date evaluation not in sql (Debbie Larney) > 2. RE: Max effective date evaluation not in sql (Knapp, Richard) > 3. ISOLATION LEVEL (Scott Eubank) > > >---------------------------------------------------------------------- > >Message: 1 >Date: Mon, 11 Oct 2004 14:24:09 -0400 >From: "Debbie Larney" >Subject: [sqr-users] Max effective date evaluation not in sql >To: >Message-ID: > <768DB1A57CCF794A9A6F7288B66D8F6563A8E1@HAMMERHEAD.ltc.com> >Content-Type: text/plain; charset=3D"iso-8859-1" > >Everyone, > >I have a simple issue that I can't seem to work out. I need to determine >= the max effective dated row from the minimum row returned in three=20 >different select statements. >Here are my sample select statements > >select com.effdt >from ps_company_tbl com >where com.effdt =3D (select > min(inner.effdt) > from ps_company_tbl inner > where inner.company =3D com.company and > inner.effdt <=3D sysdate) > >select pay.effdt >from ps_paygroup_tbl pay >where pay.effdt =3D (select > min(inner.effdt) > from ps_paygroup_tbl inner > where inner.company =3D pay.company and > and inner.paygroup =3D pay.paygroup > inner.effdt <=3D sysdate) > >select loc.effdt >from ps_location_tbl loc >where loc.effdt =3D (select > min(inner.effdt) > from ps_location_tbl inner > where inner.company =3D loc.company and > and inner.location =3D loc.location > inner.effdt <=3D sysdate) > >Now that I have loc.effdt, pay.effdt and com.effdt how do I determine=20 >which is the max effective dated row. > >Thanks in advance > >Deb > > > >******************************************************************** >CONFIDENTIALITY NOTICE: >The information contained in this e-mail is legally privileged and=20 >confidential information intended only for the use of the individual or=20 >entity to whom it is addressed. If the reader of this message is not the = >intended recipient, you are hereby notified that any viewing,=20 >dissemination, distribution, or copying of this e-mail message is strictly= >prohibited. If you have received and/or are viewing this e-mail in error= ,=20 >please immediately notify the sender by reply e-mail, and delete this=20 >e-mail from your system. > >Thank you. >******************************************************************** > > > > >------------------------------ > >Message: 2 >Date: Mon, 11 Oct 2004 13:52:59 -0500 >From: "Knapp, Richard" >Subject: RE: [sqr-users] Max effective date evaluation not in sql >To: "This list is for discussion about the SQR database > reportinglanguage from Hyperion Solutions." >Message-ID: > >Content-Type: text/plain; charset=3D"US-ASCII" > > >A crude bubble sort? If A > B > if A > C > it's A > end-if > else > if B > C > it's B > else > it's C > end-if > end-if > >Richard Knapp >Database Programmer/Analyst >Institutional Research and Planning >University of Missouri System >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 >Debbie Larney >Sent: Monday, October 11, 2004 1:24 PM >To: sqr-users@sqrug.org >Subject: [sqr-users] Max effective date evaluation not in sql > >Everyone, > >I have a simple issue that I can't seem to work out. I need to determine >the max effective dated row from the minimum row returned in three >different select statements. >Here are my sample select statements > >select com.effdt >from ps_company_tbl com >where com.effdt =3D (select > min(inner.effdt) > from ps_company_tbl inner > where inner.company =3D com.company and > inner.effdt <=3D sysdate) > >select pay.effdt >from ps_paygroup_tbl pay >where pay.effdt =3D (select > min(inner.effdt) > from ps_paygroup_tbl inner > where inner.company =3D pay.company and > and inner.paygroup =3D pay.paygroup > inner.effdt <=3D sysdate) > >select loc.effdt >from ps_location_tbl loc >where loc.effdt =3D (select > min(inner.effdt) > from ps_location_tbl inner > where inner.company =3D loc.company and > and inner.location =3D loc.location > inner.effdt <=3D sysdate) > >Now that I have loc.effdt, pay.effdt and com.effdt how do I determine >which is the max effective dated row. > >Thanks in advance > >Deb > > > >******************************************************************** >CONFIDENTIALITY NOTICE: >The information contained in this e-mail is legally privileged and >confidential information intended only for the use of the individual or >entity to whom it is addressed. If the reader of this message is not >the intended recipient, you are hereby notified that any viewing, >dissemination, distribution, or copying of this e-mail message is >strictly prohibited. If you have received and/or are viewing this >e-mail in error, please immediately notify the sender by reply e-mail, >and delete this e-mail from your system. > >Thank you. >******************************************************************** > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > > > >------------------------------ > >Message: 3 >Date: Mon, 11 Oct 2004 16:05:47 -0400 >From: Scott Eubank >Subject: [sqr-users] ISOLATION LEVEL >To: 'SQRUG' >Message-ID: >=20 ><4B25267A624F0F46AAAF8F42CB62863102A5DF98@exchange2k2.corp.advancestores.c= om> > >Content-Type: text/plain; charset=3D"iso-8859-1" > > > I need to do a "dirty read", basically an uncommited read for a report = so >that I do not disrupt processes that are running at nite. How do I >"change isolation Level UR" in an SQR for the entire SQR. > > AIX, DB2 , PSOFT-Tools 7.59 > >Any help would be greatly appreciated. > > >Scott Ebank > > > >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >NOTICE - CONFIDENTIAL AND PRIVILEGED - This e-mail may contain >privileged and confidential information and is intended only for the >addressee named above. If you received this message in error, >please immediately notify the sender by return e-mail and delete the >original message; any distribution, copying or use of this e-mail >by you is strictly prohibited and may be unlawful. > > > >------------------------------ > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > > >End of sqr-users Digest, Vol 8, Issue 7 >*************************************** ------------------------------------------------------------------- Neal Patterson, Sr. Programmer/Analyst College Relations Information Systems Services, Colby College 4333 Mayflower Hill Drive, Waterville, ME 04901-8843 Phone: (207)872-3419 E-mail: rnpatter@colby.edu ------------------------------------------------------------------- ******************************************************************** CONFIDENTIALITY NOTICE: The information contained in this e-mail is legally privileged and confiden= tial information intended only for the use of the individual or entity to w= hom it is addressed. If the reader of this message is not the intended rec= ipient, you are hereby notified that any viewing, dissemination, distributi= on, or copying of this e-mail message is strictly prohibited. If you have = received and/or are viewing this e-mail in error, please immediately notify= the sender by reply e-mail, and delete this e-mail from your system. Thank you. ******************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Oct 13 08:37:01 2004 Date: Wed, 13 Oct 2004 09:31:45 -0400 From: "Jamie Harris" Subject: RE: [sqr-users] Data truncated during update from flat file As I suspected, all looks good (to me) with your code.=20 What database platform are you using? I think that Kristy Engelkes is righ= t - your SQR code isn't the problem. We have also had an issue where an SQR wasn't inserting the right data - bu= t the code was correct. We're on SQL Server here and when we updated to th= e latest mdac version the problem went away.=20=20 ----------------------------------------------------- James Harris Junior Systems Programmer/Analyst Information Technology Division Frederick Community College ----------------------------------------------------- >>> amber_sqr@yahoo.co.uk 10/13/2004 4:54:32 AM >>> Hello Dwain, I have renamed the file to sample.dat and have attached it, hope you receive it this time. thanks! --- "Bartlett, Dwain" wrote:=20 > I did not get the attachment, rename it to a > xxxxx.dat file. >=20 > Dwain Bartlett > SABHRS Services Bureau, ITSD > HR Systems Analyst > (406) 444-0418 > dbartlett@state.mt.us=20 >=20 >=20 > -----Original Message----- > From: Amber S [mailto:amber_sqr@yahoo.co.uk]=20 > Sent: Tuesday, October 12, 2004 10:52 AM > To: This list is for discussion about the SQR > database reporting > language from Hyperion Solutions. > Subject: Re: [sqr-users] Data truncated during > update from flat file >=20 >=20 > I have attached a sample copy of the csv file. > And here I am pasting my unstring code.... >=20 > begin-procedure read-data-file >=20 > while not #end-file >=20 > Read 1 into $Input_Record:3000 >=20 > Unstring $Input_Record By ',' Into >=20 > $DV_Emplid > $DV_First_Name > $DV_Last_Name > $DV_Payroll_No > $DV_Deptid > $DV_Position_Nbr > $DV_Job_Title > $DV_Reports_To_Nbr >=20 > let $DV_Emplid =3D rtrim($Dv_Emplid, ' ') > let $Dv_Position_Nbr =3D lpad($Dv_Position_Nbr, 8, > '0') > let $Dv_Job_Title =3D substr($Dv_Job_Title,1,30) >=20 > let #DV_count =3D #DV_count +1 > do job-title >=20 > if #end-file > break > end-if >=20 > end-while >=20 > Close 1 >=20 > end-procedure >=20 > Also the $Job_Effdt varible holds the value of the > current EFFDT of an employees record >=20 >=20 > --- PSFTPROGRAMMER@aol.com wrote:=20 > > What are the values for $Dv_Position_Nbr, > > $Job_Effdt, & $DV_Job_Title? > >=20 > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org=20 > > http://www.sqrug.org/mailman/listinfo/sqr-users=20 > >=20=20 >=20 >=20 >=20=09 >=20=09 >=20=09=09 > ___________________________________________________________ALL-NEW > Yahoo! Messenger - all new features - even more fun! > http://uk.messenger.yahoo.com=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 >=20=20 =09 =09 =09=09 ___________________________________________________________ALL-NEW Yahoo! M= essenger - all new features - even more fun! http://uk.messenger.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Oct 13 08:43:19 2004 Date: Wed, 13 Oct 2004 09:38:30 -0400 From: "George Jansen" Subject: RE: [sqr-users] Re: sqr-users Digest, Vol 8, Issue 7 Just my two cents: Any of the three base queries reduce to SELECT min(effdt) FROM ps_something GROUP BY keyfield1, keyyfield2, ... keyfield_n and, since you're then comparing maximums, you might as well SELECT max(min(effdt) FROM ps_something GROUP BY ... Or, ultimately SELECT Greatest(com.effdt, pay.effdt, loc.effdt) as max_min_effdt FROM (SELECT max(min(effdt)) AS effdt FROM ps_company_tbl com WHERE effdt <= Sysdate GROUP BY company) com, (SELECT max(min(effdt)) AS effdt FROM ps_paygroup_tbl WHERE effdt <= Sysdate GROUP BY company, paygroup) pay, (SELECT max(min(effdt)) AS effdt FROM ps_location_tbl WHERE effdt <= Sysdate GROUP BY location) loc; (My PS_LOCATION_TBL, in a now-abandoned system, has no COMPANY column.) For small tables, the gain in efficiency is negligible, but I at least find the SQL clearer. >>> debbie.larney@thicare.com 10/13/2004 8:28:46 AM >>> Neil, That is a great idea. Thank you so much. I will definitely use it. Deb -----Original Message----- From: Neal Patterson [mailto:rnpatter@colby.edu] Sent: Tuesday, October 12, 2004 9:40 AM To: sqr-users@sqrug.org Subject: [sqr-users] Re: sqr-users Digest, Vol 8, Issue 7 If Debbie wants an SQL approach to picking the maximum if her 3 dates, maybe something like this would do: select max(MyDate) from (select com.effdt as MyDate from ps_company_tbl com where com.effdt = (select min(inner.effdt) from ps_company_tbl inner where inner.company = com.company and inner.effdt <= sysdate) union select pay.effdt as MyDate from ps_paygroup_tbl pay where pay.effdt = (select min(inner.effdt) from ps_paygroup_tbl inner where inner.company = pay.company and and inner.paygroup = pay.paygroup inner.effdt <= sysdate) union select loc.effdt as MyDate from ps_location_tbl loc where loc.effdt = (select min(inner.effdt) from ps_location_tbl inner where inner.company = loc.company and and inner.location = loc.location inner.effdt <= sysdate)) as T - Neal Patterson ----------------------------------------------------------------------- At 06:03 AM 10/12/2004 -0500, you 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. Max effective date evaluation not in sql (Debbie Larney) > 2. RE: Max effective date evaluation not in sql (Knapp, Richard) > 3. ISOLATION LEVEL (Scott Eubank) > > >---------------------------------------------------------------------- > >Message: 1 >Date: Mon, 11 Oct 2004 14:24:09 -0400 >From: "Debbie Larney" >Subject: [sqr-users] Max effective date evaluation not in sql >To: >Message-ID: > <768DB1A57CCF794A9A6F7288B66D8F6563A8E1@HAMMERHEAD.ltc.com> >Content-Type: text/plain; charset="iso-8859-1" > >Everyone, > >I have a simple issue that I can't seem to work out. I need to determine >the max effective dated row from the minimum row returned in three >different select statements. >Here are my sample select statements > >select com.effdt >from ps_company_tbl com >where com.effdt = (select > min(inner.effdt) > from ps_company_tbl inner > where inner.company = com.company and > inner.effdt <= sysdate) > >select pay.effdt >from ps_paygroup_tbl pay >where pay.effdt = (select > min(inner.effdt) > from ps_paygroup_tbl inner > where inner.company = pay.company and > and inner.paygroup = pay.paygroup > inner.effdt <= sysdate) > >select loc.effdt >from ps_location_tbl loc >where loc.effdt = (select > min(inner.effdt) > from ps_location_tbl inner > where inner.company = loc.company and > and inner.location = loc.location > inner.effdt <= sysdate) > >Now that I have loc.effdt, pay.effdt and com.effdt how do I determine >which is the max effective dated row. > >Thanks in advance > >Deb > > > >******************************************************************** >CONFIDENTIALITY NOTICE: >The information contained in this e-mail is legally privileged and >confidential information intended only for the use of the individual or >entity to whom it is addressed. If the reader of this message is not the >intended recipient, you are hereby notified that any viewing, >dissemination, distribution, or copying of this e-mail message is strictly >prohibited. If you have received and/or are viewing this e-mail in error, >please immediately notify the sender by reply e-mail, and delete this >e-mail from your system. > >Thank you. >******************************************************************** > > > > >------------------------------ > >Message: 2 >Date: Mon, 11 Oct 2004 13:52:59 -0500 >From: "Knapp, Richard" >Subject: RE: [sqr-users] Max effective date evaluation not in sql >To: "This list is for discussion about the SQR database > reportinglanguage from Hyperion Solutions." >Message-ID: > >Content-Type: text/plain; charset="US-ASCII" > > >A crude bubble sort? If A > B > if A > C > it's A > end-if > else > if B > C > it's B > else > it's C > end-if > end-if > >Richard Knapp >Database Programmer/Analyst >Institutional Research and Planning >University of Missouri System >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 >Debbie Larney >Sent: Monday, October 11, 2004 1:24 PM >To: sqr-users@sqrug.org >Subject: [sqr-users] Max effective date evaluation not in sql > >Everyone, > >I have a simple issue that I can't seem to work out. I need to determine >the max effective dated row from the minimum row returned in three >different select statements. >Here are my sample select statements > >select com.effdt >from ps_company_tbl com >where com.effdt = (select > min(inner.effdt) > from ps_company_tbl inner > where inner.company = com.company and > inner.effdt <= sysdate) > >select pay.effdt >from ps_paygroup_tbl pay >where pay.effdt = (select > min(inner.effdt) > from ps_paygroup_tbl inner > where inner.company = pay.company and > and inner.paygroup = pay.paygroup > inner.effdt <= sysdate) > >select loc.effdt >from ps_location_tbl loc >where loc.effdt = (select > min(inner.effdt) > from ps_location_tbl inner > where inner.company = loc.company and > and inner.location = loc.location > inner.effdt <= sysdate) > >Now that I have loc.effdt, pay.effdt and com.effdt how do I determine >which is the max effective dated row. > >Thanks in advance > >Deb > > > >******************************************************************** >CONFIDENTIALITY NOTICE: >The information contained in this e-mail is legally privileged and >confidential information intended only for the use of the individual or >entity to whom it is addressed. If the reader of this message is not >the intended recipient, you are hereby notified that any viewing, >dissemination, distribution, or copying of this e-mail message is >strictly prohibited. If you have received and/or are viewing this >e-mail in error, please immediately notify the sender by reply e-mail, >and delete this e-mail from your system. > >Thank you. >******************************************************************** > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > > > >------------------------------ > >Message: 3 >Date: Mon, 11 Oct 2004 16:05:47 -0400 >From: Scott Eubank >Subject: [sqr-users] ISOLATION LEVEL >To: 'SQRUG' >Message-ID: > ><4B25267A624F0F46AAAF8F42CB62863102A5DF98@exchange2k2.corp.advancestores.com> > >Content-Type: text/plain; charset="iso-8859-1" > > > I need to do a "dirty read", basically an uncommited read for a report so >that I do not disrupt processes that are running at nite. How do I >"change isolation Level UR" in an SQR for the entire SQR. > > AIX, DB2 , PSOFT-Tools 7.59 > >Any help would be greatly appreciated. > > >Scott Ebank > > > >=================================================================== >NOTICE - CONFIDENTIAL AND PRIVILEGED - This e-mail may contain >privileged and confidential information and is intended only for the >addressee named above. If you received this message in error, >please immediately notify the sender by return e-mail and delete the >original message; any distribution, copying or use of this e-mail >by you is strictly prohibited and may be unlawful. > > > >------------------------------ > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > > >End of sqr-users Digest, Vol 8, Issue 7 >*************************************** ------------------------------------------------------------------- Neal Patterson, Sr. Programmer/Analyst College Relations Information Systems Services, Colby College 4333 Mayflower Hill Drive, Waterville, ME 04901-8843 Phone: (207)872-3419 E-mail: rnpatter@colby.edu ------------------------------------------------------------------- ******************************************************************** CONFIDENTIALITY NOTICE: The information contained in this e-mail is legally privileged and confidential information intended only for the use of the individual or entity to whom it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any viewing, dissemination, distribution, or copying of this e-mail message is strictly prohibited. If you have received and/or are viewing this e-mail in error, please immediately notify the sender by reply e-mail, and delete this e-mail from your system. 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+sqrusersarch=sqrug.org@sqrug.org Wed Oct 13 09:05:25 2004 Subject: RE: [sqr-users] Data truncated during update from flat file Date: Wed, 13 Oct 2004 08:04:26 -0600 From: "Bartlett, Dwain" Everything looks good, do a display of your data and make sure it is correc= t. Dwain Bartlett SABHRS Services Bureau, ITSD HR Systems Analyst (406) 444-0418 dbartlett@state.mt.us -----Original Message----- From: Amber S [mailto:amber_sqr@yahoo.co.uk] Sent: Wednesday, October 13, 2004 2:55 AM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] Data truncated during update from flat file Hello Dwain, I have renamed the file to sample.dat and have attached it, hope you receive it this time. thanks! --- "Bartlett, Dwain" wrote:=20 > I did not get the attachment, rename it to a > xxxxx.dat file. >=20 > Dwain Bartlett > SABHRS Services Bureau, ITSD > HR Systems Analyst > (406) 444-0418 > dbartlett@state.mt.us >=20 >=20 > -----Original Message----- > From: Amber S [mailto:amber_sqr@yahoo.co.uk] > Sent: Tuesday, October 12, 2004 10:52 AM > To: This list is for discussion about the SQR > database reporting > language from Hyperion Solutions. > Subject: Re: [sqr-users] Data truncated during > update from flat file >=20 >=20 > I have attached a sample copy of the csv file. > And here I am pasting my unstring code.... >=20 > begin-procedure read-data-file >=20 > while not #end-file >=20 > Read 1 into $Input_Record:3000 >=20 > Unstring $Input_Record By ',' Into >=20 > $DV_Emplid > $DV_First_Name > $DV_Last_Name > $DV_Payroll_No > $DV_Deptid > $DV_Position_Nbr > $DV_Job_Title > $DV_Reports_To_Nbr >=20 > let $DV_Emplid =3D rtrim($Dv_Emplid, ' ') > let $Dv_Position_Nbr =3D lpad($Dv_Position_Nbr, 8, > '0') > let $Dv_Job_Title =3D substr($Dv_Job_Title,1,30) >=20 > let #DV_count =3D #DV_count +1 > do job-title >=20 > if #end-file > break > end-if >=20 > end-while >=20 > Close 1 >=20 > end-procedure >=20 > Also the $Job_Effdt varible holds the value of the > current EFFDT of an employees record >=20 >=20 > --- PSFTPROGRAMMER@aol.com wrote:=20 > > What are the values for $Dv_Position_Nbr, > > $Job_Effdt, & $DV_Job_Title? > >=20 > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > >=20=20 >=20 >=20 >=20=09 >=20=09 >=20=09=09 > ___________________________________________________________ALL-NEW > Yahoo! Messenger - all new features - even more fun! > http://uk.messenger.yahoo.com >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20=20 =09 =09 =09=09 ___________________________________________________________ALL-NEW Yahoo! M= essenger - all new features - even more fun! http://uk.messenger.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Oct 14 09:30:24 2004 Date: Wed, 13 Oct 2004 06:38:23 -0700 (PDT) From: Deepu Subject: [sqr-users] Problem in SQL Hi All, I'm having a problem with this sql..which is retreviing around 3 million rows. SELECT a.emplid, a.NAME, pers1.national_id, b.hire_dt, b.rehire_dt, b.termination_dt, c.deptid, c.full_part_time, c.action, c.action_reason, c.action_dt, c.effdt, c.reg_temp, c.empl_status, c.empl_rcd FROM ps_names a, ps_pers_nid pers1, ps_employment b, ps_job c, ps_person person WHERE person.per_status = 'E' AND a.emplid = c.emplid AND a.emplid = pers1.emplid AND pers1.country = 'USA' AND pers1.national_id_type = 'PR' AND b.emplid = c.emplid AND ( c.effdt = (SELECT MAX (effdt), FROM ps_job h WHERE h.emplid = c.emplid AND h.empl_rcd = c.empl_rcd AND h.effdt <= '30-JUN-2001') AND c.effseq = (SELECT MAX (effseq) FROM ps_job i WHERE i.emplid = c.emplid AND i.empl_rcd = c.empl_rcd AND i.effdt = c.effdt)) AND b.barg_unit = '9' AND c.full_part_time != 'D' AND a.name_type = 'PRI' AND a.effdt = (SELECT MAX (effdt) FROM ps_names a1 WHERE a.emplid = a1.emplid AND a.name_type = a1.name_type) ORDER BY C.Reg_Temp,C.Empl_Status,A.Name I was trying to tune this sql...can any one pls suggest me on how to do it...any help is highly appreciated. Thanks, __________________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Oct 14 10:00:01 2004 Date: Thu, 14 Oct 2004 09:58:27 -0500 From: "Jennifer Lee" Subject: [sqr-users] The use of ltrim function Hi, It is true that if one is to trim a character from the left of a string, this function of let command works very well. Why is it that if this function is used to trim a string of characters, the result is unpredictable? Here's the story: Let $string_whole = '/l99/dbexample/PRODUCTION/fa/aidyear2005/umncr/CRAA05IN' let $string_ltrim = '/l99/dbexample/PRODUCTION/fa/aidyear2005/umncr/' let $string_result = ltrim($string_whole, $string_ltrim) In two different instances (or environments) where the same code is executed, the content of $string_result varies: Instance #1: 'CRAA05IN' Instance #2: 'RAA05IN' Does one always have to use a combination of instri, length, and substr to get a substring out of another string? What are the ways folks use often for this type of operation? Thanks in advance, Jennifer This e-mail and its attachments have been scanned for viruses. EAS - Systems Support, OIT, University of Minnesota _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Oct 14 10:44:25 2004 Date: Thu, 14 Oct 2004 11:41:41 -0400 From: "George Jansen" Subject: Re: [sqr-users] The use of ltrim function Because what appears to be a string is a set. ltrim($x, 'bookkeeper') and ltrim($x, 'bekpr') accomplish the same. In SQR, yes, you must use the instr, substr, length functions. But you could always code up a procedure to encapsulate them. >>> j-lee@groupwise.umn.edu 10/14/2004 10:58:27 AM >>> Hi, It is true that if one is to trim a character from the left of a string, this function of let command works very well. Why is it that if this function is used to trim a string of characters, the result is unpredictable? Here's the story: Let $string_whole = '/l99/dbexample/PRODUCTION/fa/aidyear2005/umncr/CRAA05IN' let $string_ltrim = '/l99/dbexample/PRODUCTION/fa/aidyear2005/umncr/' let $string_result = ltrim($string_whole, $string_ltrim) In two different instances (or environments) where the same code is executed, the content of $string_result varies: Instance #1: 'CRAA05IN' Instance #2: 'RAA05IN' Does one always have to use a combination of instri, length, and substr to get a substring out of another string? What are the ways folks use often for this type of operation? Thanks in advance, Jennifer This e-mail and its attachments have been scanned for viruses. EAS - Systems Support, OIT, University of Minnesota _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Oct 14 11:32:04 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] Problem in SQL Date: Thu, 14 Oct 2004 09:30:37 -0700 Do you really need to test person.per_status = 'E' (employee)? If the person has an employment row and job rows, couldn't you assume that he or she is an employee? You could eliminate the join with ps_person. If you must keep it, add a person.emplid = a.emplid. Another small improvement might be to replace the c.full_part_time != 'D' with c.full_part_time in ('F','P', ... ). This helps if full_part_time is indexed (but it probably isn't). -----Original Message----- From: Deepu [mailto:pradeepkanneganti@yahoo.com] Sent: Wednesday, October 13, 2004 6:38 AM To: peoplesoft fans Subject: [sqr-users] Problem in SQL Hi All, I'm having a problem with this sql..which is retrieving around 3 million rows. SELECT a.emplid, a.NAME, pers1.national_id, b.hire_dt, b.rehire_dt, b.termination_dt, c.deptid, c.full_part_time, c.action, c.action_reason, c.action_dt, c.effdt, c.reg_temp, c.empl_status, c.empl_rcd FROM ps_names a, ps_pers_nid pers1, ps_employment b, ps_job c, ps_person person WHERE person.per_status = 'E' AND a.emplid = c.emplid AND a.emplid = pers1.emplid AND pers1.country = 'USA' AND pers1.national_id_type = 'PR' AND b.emplid = c.emplid AND ( c.effdt = (SELECT MAX (effdt), FROM ps_job h WHERE h.emplid = c.emplid AND h.empl_rcd = c.empl_rcd AND h.effdt <= '30-JUN-2001') AND c.effseq = (SELECT MAX (effseq) FROM ps_job i WHERE i.emplid = c.emplid AND i.empl_rcd = c.empl_rcd AND i.effdt = c.effdt)) AND b.barg_unit = '9' AND c.full_part_time != 'D' AND a.name_type = 'PRI' AND a.effdt = (SELECT MAX (effdt) FROM ps_names a1 WHERE a.emplid = a1.emplid AND a.name_type = a1.name_type) ORDER BY C.Reg_Temp,C.Empl_Status,A.Name I was trying to tune this sql...can any one pls suggest me on how to do it...any help is highly appreciated. Thanks, __________________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Oct 14 11:35:13 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] SQR writing the file without extension Date: Thu, 14 Oct 2004 09:31:58 -0700 Are you making sure that the file name has the right directory path? -----Original Message----- From: pinak.vashi@blr.hexaware.com [mailto:pinak.vashi@blr.hexaware.com] Sent: Thursday, October 07, 2004 9:58 PM To: sqr-users@sqrug.org Subject: [sqr-users] SQR writing the file without extension Hi All, I am facing one strange problem during writing the file from a sqr, which doesn't have the file extension (no .txt). SQR is creating the files and it is available in PSREPORTS directory. But I am not able to see the output file in 'View Log/Trace' link of precess monitor. When I create the file with .txt or .dat extension, I am able to see these files in 'View Log/Trace' link of precess monitor. I am thinking that it is related to some PeopleCode. Can you please help me out. thanks, Pinak Thanks, Pinak Vashi pinak.vashi@blr.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 From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Oct 14 12:21:32 2004 Date: Thu, 14 Oct 2004 13:19:14 -0400 From: "Jamie Harris" Subject: Re: [sqr-users] SQR writing the file without extension Pinak, It sounds like the HTML index to the files in the PSREPORTS folder does not= include files with no extension. If you made your SQR also write an .HTML document to this folder which cont= ains a link to the output file, your users could click that and get to the = file. Try using the below line as the contents of the HTML, where "output= file" is whatever filename your SQR writes to (with no path info - let it u= se the default path!) : Click here for the output file I'd be interested to know if that works. :) ----------------------------------------------------- James Harris Junior Systems Programmer/Analyst Information Technology Division Frederick Community College ----------------------------------------------------- >>> pinak.vashi@blr.hexaware.com 10/8/2004 12:57:59 AM >>> Hi All, I am facing one strange problem during writing the file from a sqr, which= =20 doesn't have the file extension (no .txt). SQR is creating the files and=20 it is available in PSREPORTS directory.=20 But I am not able to see the output file in 'View Log/Trace' link of=20 precess monitor. When I create the file with .txt or .dat extension, I am able to see these= =20 files in 'View Log/Trace' link of precess monitor. I am thinking that it is related to some PeopleCode. Can you please help me out. thanks, Pinak Thanks, Pinak Vashi pinak.vashi@blr.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+sqrusersarch=sqrug.org@sqrug.org Thu Oct 14 15:19:39 2004 Date: Thu, 14 Oct 2004 16:16:53 -0400 From: "Tajinder Chahal" Subject: [sqr-users] How to check 'CHAR' field to find out if it contains all Numeric? Hello Everyone, We are on DB2 database. I need to find out if a 'CHAR' field contains all 'Numerics' or not? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Oct 14 15:35:08 2004 Date: Thu, 14 Oct 2004 13:34:04 -0700 From: kevin.reschenberg@sparkpath.com Subject: RE: [sqr-users] How to check 'CHAR' field to find out if it contains all Numeric? if $string <> '' and translate($string, '0123456789', '') = '' ! It contains all numerics else ! It doesn't Kevin Reschenberg SparkPath Technologies, Inc. www.sparkpath.com -------- Original Message -------- Subject: [sqr-users] How to check 'CHAR' field to find out if it contains all Numeric? From: "Tajinder Chahal" Date: Thu, October 14, 2004 1:16 pm To: sqr-users@sqrug.org Hello Everyone, We are on DB2 database. I need to find out if a 'CHAR' field contains all 'Numerics' or not? _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Oct 14 15:39:56 2004 From: "DICKMAN, ERIC C." Date: Thu, 14 Oct 2004 15:36:22 -0500 Subject: [sqr-users] Changing Font Size. Hi, I am attempting to change the font size with in a SQR report in the BEGIN-PROCEDURE section. Listed below is an example, of my code. Does anyone know of an easy way to increase the font size? BEGIN-PROCEDURE GET-ATTACHMENT-2-D print 'ATTACHMENT 2-D' (+2) center END-PROCEDURE GET-ATTACHMENT-2-D Thanks, Eric _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Oct 14 15:49:49 2004 Date: Thu, 14 Oct 2004 16:48:38 -0400 From: "Tajinder Chahal" Subject: RE: [sqr-users] How to check 'CHAR' field to find out if it containsall Numeric? Thanks a lot Kevin. I found out that it is other way around if $string <> '' and translate($string, '','0123456789') =3D '' >>> kevin.reschenberg@sparkpath.com 10/14/04 04:34PM >>> if $string <> '' and translate($string, '0123456789', '') =3D '' ! It contains all numerics else ! It doesn't Kevin Reschenberg SparkPath Technologies, Inc. www.sparkpath.com=20 =20 -------- Original Message -------- Subject: [sqr-users] How to check 'CHAR' field to find out if it contains all Numeric? From: "Tajinder Chahal" Date: Thu, October 14, 2004 1:16 pm To: sqr-users@sqrug.org=20 Hello Everyone, We are on DB2 database. I need to find out if a 'CHAR' field contains all 'Numerics' or not? _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Oct 14 16:15:04 2004 Date: Thu, 14 Oct 2004 17:10:58 -0400 From: "Jamie Harris" Subject: RE: [sqr-users] How to check 'CHAR' field to find out if itcontainsall Numeric? Actually, I think Kevin is right. Kevin's way returns the correct output, = but your way seems to always say the string contains letters. The code below shows this as the output: ------------- Kevin's way ------------- 123124 All numeric ABCDEF Contains non-numeric characters ------------- Tchaha's way ------------- 123124 Contains non-numeric characters ABCDEF Contains non-numeric characters Here is the code: show '-------------' show 'Kevin''s way' show '-------------' let $string =3D '123124' show $string noline if $string <> '' and translate($string, '0123456789', '') =3D '' show ' All numeric' else show ' Contains non-numeric characters' end-if let $string =3D 'ABCDEF' show $string noline if $string <> '' and translate($string, '0123456789', '') =3D '' show ' All numeric' else show ' Contains non-numeric characters' end-if show '-------------' show 'Tchaha''s way' show '-------------' let $string =3D '123124' show $string noline if $string <> '' and translate($string, '','0123456789') =3D '' show ' All numeric' else show ' Contains non-numeric characters' end-if let $string =3D 'ABCDEF' show $string noline if $string <> '' and translate($string, '','0123456789') =3D '' show ' All numeric' else show ' Contains non-numeric characters' end-if ----------------------------------------------------- James Harris Junior Systems Programmer/Analyst Information Technology Division Frederick Community College ----------------------------------------------------- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Oct 14 16:18:00 2004 From: "bruce butterfield" Date: Thu, 14 Oct 2004 14:46:01 -0600 Subject: [sqr-users] (no subject) Hi all We have SQR v6.2 ( will be upgrading to 8.2 within 90 days) but my que= stion is our internal auditors are requiring us to remove the login/passwor= d from the sqr command line. we are running SQR on a UNIX system against a= n Oracle 8I database bruce _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Oct 14 16:23:25 2004 Subject: Re: [sqr-users] (no subject) From: "Richard C Spoth" Date: Thu, 14 Oct 2004 17:22:12 -0400 Put the ID/Password in and @file and refer to it in your command line. You can then secure this file. This also hides the id/password when using ps command. "bruce butterfield" Sent by: sqr-users-bounces+spoth.richard=healthnow.org@sqrug.org 10/14/2004 04:46 PM Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." To: cc: Subject: [sqr-users] (no subject) Hi all We have SQR v6.2 ( will be upgrading to 8.2 within 90 days) but my question is our internal auditors are requiring us to remove the login/password from the sqr command line. we are running SQR on a UNIX system against an Oracle 8I database bruce _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users CONFIDENTIALITY NOTICE: This email message and any attachments are for the sole use of the intended recipient(s) and may contain proprietary, confidential, trade secret or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited and may be a violation of law. If you are not the intended recipient or a person responsible for delivering this message to an intended recipient, please contact the sender by reply email and destroy all 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+sqrusersarch=sqrug.org@sqrug.org Thu Oct 14 16:53:18 2004 From: "Paul Hoyte" Subject: RE: [sqr-users] Changing Font Size. Date: Thu, 14 Oct 2004 17:52:02 -0400 Eric: You can use the alter-printer with the point-size parameter .... Eg - alter-printer font=4 point-size=?? ??=whatever point-size you desire... Paul Hoyte Sharidionne Inc. (248) 752-6970 paul.hoyte@sharidionne.com -----Original Message----- From: sqr-users-bounces+paul.hoyte=sharidionne.com@sqrug.org [mailto:sqr-users-bounces+paul.hoyte=sharidionne.com@sqrug.org] On Behalf Of DICKMAN, ERIC C. Sent: Thursday, October 14, 2004 4:36 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Changing Font Size. Hi, I am attempting to change the font size with in a SQR report in the BEGIN-PROCEDURE section. Listed below is an example, of my code. Does anyone know of an easy way to increase the font size? BEGIN-PROCEDURE GET-ATTACHMENT-2-D print 'ATTACHMENT 2-D' (+2) center END-PROCEDURE GET-ATTACHMENT-2-D 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+sqrusersarch=sqrug.org@sqrug.org Thu Oct 14 20:09:29 2004 From: James Womeldorf Subject: RE: [sqr-users] How to check 'CHAR' field to find out if it conta ins all Numeric? Date: Thu, 14 Oct 2004 20:06:50 -0500 If you are trying to determine if the string contains a legal number (positive or negative, with or without a decimal point) this is a bit more complicated than just checking the digits. I would let the database make the determination. The following code is specific to Oracle but I expect 'decode' and 'to_number' and the table 'dual' have equivalents in DB. It determines whether the string sent in actually represents a legitimate number. The results of the SHOW statements are shown as comments following the SHOW lines. BEGIN-PROGRAM let $X = '' do IsNumeric($X, $Result) SHOW $X ' ' $Result ! N let $X = ' 2 ' do IsNumeric($X, $Result) SHOW $X ' ' $Result ! 2 Y let $X = '1h3214.32' do IsNumeric($X, $Result) SHOW $X ' ' $Result !1h3214.32 N let $X = '-132.14.32' do IsNumeric($X, $Result) SHOW $X ' ' $Result !-132.14.32 N let $X = '-132.1432f' do IsNumeric($X, $Result) SHOW $X ' ' $Result !-132.1432f N let $X = '-132.14' do IsNumeric($X, $Result) SHOW $X ' ' $Result !-132.14 Y let $X = '1.3214.32' do IsNumeric($X, $Result) SHOW $X ' ' $Result !1.3214.32 N END-PROGRAM begin-procedure IsNumeric($X, :$Result) begin-select on-error=WOOPS($Result) DECODE(to_number($X),NULL,'N','Y') &YN let $Result = &YN from dual end-select end-procedure begin-procedure WOOPS(:$Result) let $Result = 'N' end-procedure Jim -----Original Message----- From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org [mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of Tajinder Chahal Sent: Thursday, October 14, 2004 3:17 PM To: sqr-users@sqrug.org Subject: [sqr-users] How to check 'CHAR' field to find out if it contains all Numeric? Hello Everyone, We are on DB2 database. I need to find out if a 'CHAR' field contains all 'Numerics' or not? _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Oct 14 23:55:52 2004 Subject: RE: [sqr-users] SQR writing the file without extension From: pinak.vashi@blr.hexaware.com Date: Fri, 15 Oct 2004 10:24:10 +0530 Hi, Yes, output path is correct and files are generated in the PSREPORTS folder. But files are not listed in 'View Log/Trace' link of process scheduler. Thanks, Pinak Vashi Hexaware - PeopleSoft India Services Center No 55, Divyashree Towers, Bannerghatta Main Road, Bangalore - 560 029 Ph: +91-80-51297800 (Ext - 1344) +91-98459-28540 (cell) pinak.vashi@blr.hexaware.com "Alexander, Steve" Sent by: sqr-users-bounces+pinak.vashi=blr.hexaware.com@sqrug.org 14-10-2004 10:01 PM Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." To "'This list is for discussion about the SQR database reportinglangu age from Hyperion Solutions.'" cc Subject RE: [sqr-users] SQR writing the file without extension Are you making sure that the file name has the right directory path? -----Original Message----- From: pinak.vashi@blr.hexaware.com [mailto:pinak.vashi@blr.hexaware.com] Sent: Thursday, October 07, 2004 9:58 PM To: sqr-users@sqrug.org Subject: [sqr-users] SQR writing the file without extension Hi All, I am facing one strange problem during writing the file from a sqr, which doesn't have the file extension (no .txt). SQR is creating the files and it is available in PSREPORTS directory. But I am not able to see the output file in 'View Log/Trace' link of precess monitor. When I create the file with .txt or .dat extension, I am able to see these files in 'View Log/Trace' link of precess monitor. I am thinking that it is related to some PeopleCode. Can you please help me out. thanks, Pinak Thanks, Pinak Vashi pinak.vashi@blr.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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Oct 14 23:58:48 2004 Subject: Re: [sqr-users] SQR writing the file without extension From: pinak.vashi@blr.hexaware.com Date: Fri, 15 Oct 2004 10:25:22 +0530 Yap, It works, Thanks Jamie. Thanks, Pinak Vashi "Jamie Harris" Sent by: sqr-users-bounces+pinak.vashi=blr.hexaware.com@sqrug.org 14-10-2004 10:49 PM Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." To cc Subject Re: [sqr-users] SQR writing the file without extension Pinak, It sounds like the HTML index to the files in the PSREPORTS folder does not include files with no extension. If you made your SQR also write an .HTML document to this folder which contains a link to the output file, your users could click that and get to the file. Try using the below line as the contents of the HTML, where "outputfile" is whatever filename your SQR writes to (with no path info - let it use the default path!) : Click here for the output file I'd be interested to know if that works. :) ----------------------------------------------------- James Harris Junior Systems Programmer/Analyst Information Technology Division Frederick Community College ----------------------------------------------------- >>> pinak.vashi@blr.hexaware.com 10/8/2004 12:57:59 AM >>> Hi All, I am facing one strange problem during writing the file from a sqr, which doesn't have the file extension (no .txt). SQR is creating the files and it is available in PSREPORTS directory. But I am not able to see the output file in 'View Log/Trace' link of precess monitor. When I create the file with .txt or .dat extension, I am able to see these files in 'View Log/Trace' link of precess monitor. I am thinking that it is related to some PeopleCode. Can you please help me out. thanks, Pinak Thanks, Pinak Vashi pinak.vashi@blr.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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Oct 15 06:31:27 2004 Date: Fri, 15 Oct 2004 12:01:10 +0100 (BST) From: Maruthi Prasad Subject: [sqr-users] Hi HI Yahoo! India Matrimony: Find your life partneronline. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Oct 15 07:17:26 2004 From: "Biekens, Jan-Hein" Subject: RE: [sqr-users] How to check 'CHAR' field to find out if it conta insall Numeric? Date: Fri, 15 Oct 2004 14:16:03 +0200 A method would be: if upper($var) = lower($var) ! It contains all numerics else ! It doesn't end-if Regards, Jan-Hein -----Original Message----- From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org [ Behalf Of Tajinder Chahal Sent: Thursday, October 14, 2004 3:17 PM To: sqr-users@sqrug.org Subject: [sqr-users] How to check 'CHAR' field to find out if it contains all Numeric? Hello Everyone, We are on DB2 database. I need to find out if a 'CHAR' field contains all 'Numerics' or not? **************************************************************************** De inhoud van deze email met eventuele bijlagen is uitsluitend bestemd voor geadresseerde en bevat mogelijk vertrouwelijke informatie. Kennisneming, verspreiding, vermenigvuldiging of enig ander gebruik van de inhoud van deze email door anderen dan de geadresseerde is niet toegestaan en mogelijk strafbaar. Indien deze email abusievelijk door u is ontvangen, wordt u verzocht contact op te nemen met de afzender en de ontvangen email te vernietigen. The information contained in this mail and possible annexes is intended solely for the use of the individual or entity to whom it is addressed and may contain confidential information. If you are not the intended recipient, it is prohibited and may be unlawful to take knowledge, distribute, multiply or make any other use of the information in this mail. If you are not the intended recipient please notify the sender and destroy this mail. **************************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Oct 15 07:45:11 2004 Date: Fri, 15 Oct 2004 08:41:38 -0400 From: "Tajinder Chahal" Subject: RE: [sqr-users] How to check 'CHAR' field to find out ifitcontainsall Numeric? I checked my code again and ran the sql and I think I'm right. The correct = way in DB2 is translate($string,'','0123456789). If it returns a blank that= means it is all numeric. May be database or version of database makes the difference. >>> JHarris@frederick.edu 10/14/04 05:10PM >>> Actually, I think Kevin is right. Kevin's way returns the correct output, = but your way seems to always say the string contains letters. The code below shows this as the output: ------------- Kevin's way ------------- 123124 All numeric ABCDEF Contains non-numeric characters ------------- Tchaha's way ------------- 123124 Contains non-numeric characters ABCDEF Contains non-numeric characters Here is the code: show '-------------' show 'Kevin''s way' show '-------------' let $string =3D '123124' show $string noline if $string <> '' and translate($string, '0123456789', '') =3D '' show ' All numeric' else show ' Contains non-numeric characters' end-if let $string =3D 'ABCDEF' show $string noline if $string <> '' and translate($string, '0123456789', '') =3D '' show ' All numeric' else show ' Contains non-numeric characters' end-if show '-------------' show 'Tchaha''s way' show '-------------' let $string =3D '123124' show $string noline if $string <> '' and translate($string, '','0123456789') =3D '' show ' All numeric' else show ' Contains non-numeric characters' end-if let $string =3D 'ABCDEF' show $string noline if $string <> '' and translate($string, '','0123456789') =3D '' show ' All numeric' else show ' Contains non-numeric characters' end-if ----------------------------------------------------- James Harris Junior Systems Programmer/Analyst Information Technology Division Frederick Community College ----------------------------------------------------- _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Fri Oct 15 08:38:44 2004 Date: Fri, 15 Oct 2004 09:35:50 -0400 (EDT) From: Janet Shum Subject: [sqr-users] SQR to csv (excel) format Hi There is a peoplesoft delivered sqr report that prints a new page every time there is a new department. When you print this to excel (csv) the header does not get printed every time but only the first time and the department is on the header so you think all the info on the spreadsheet belongs to one deptartment. Is there anyway around this, to get the header to print every time Thanks, Janet Shum City of Winipeg ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Oct 15 08:43:15 2004 Date: Fri, 15 Oct 2004 09:41:45 -0400 From: "Jessie Dickenson" Subject: Re: [sqr-users] Changing Font Size. BEGIN-PROCEDURE X alter-printer font=3 point-size=10 Print 'xyz' (1, 1) alter-printer font=3 point-size=8 Print 'xyz' (2, 1) END-PROCEDURE X Thanks, Jessie >>> ERIC.DICKMAN@dfps.state.tx.us 10/14/2004 4:36:22 PM >>> Hi, I am attempting to change the font size with in a SQR report in the BEGIN-PROCEDURE section. Listed below is an example, of my code. Does anyone know of an easy way to increase the font size? BEGIN-PROCEDURE GET-ATTACHMENT-2-D print 'ATTACHMENT 2-D' (+2) center END-PROCEDURE GET-ATTACHMENT-2-D 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+sqrusersarch=sqrug.org@sqrug.org Fri Oct 15 09:12:28 2004 Date: Fri, 15 Oct 2004 10:11:20 -0400 From: Scotty Barnes Subject: [sqr-users] Error running Bar100.sqr sample program We are at PS 8.1 using SQR 6... on oracle 9i. I tried running the sample sqr in the ..\sqr\ora\samplew\ dir and an getting this error? Can anyone give me some quick advise, is some file missing or something not installed correctly? Error on line 101: (SQR 6458) Unsupported grafcap device. SQR for PeopleSoft: Program Aborting. Thanks Scotty ---------- Scott A Barnes Programmer/Analyst Wesleyan University Exley Science Center Room 537 860-685-2807 ---------- Lottery: A tax on people who are bad at math! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Oct 15 09:22:34 2004 Subject: RE: [sqr-users] Error running Bar100.sqr sample program Date: Fri, 15 Oct 2004 09:21:31 -0500 From: "Hins, Thomas D. \(HSC\)" bELIEVE THAT MESSAGE IS TRYING TO CREATE A GRAPH BUT YOUR ENVIRONMENT IS NO= T SETUP TO SUPPORT A GRAPH. Tom Hins Information Technology - Application Solutions University of Oklahoma Health Sciences Center P.O. Box 26901 Oklahoma City, OK 73190 Phone:(405) 271-2262 Ext. 50213 Fax: (405) 271-2352 (The information transmitted is intended only for the person or entity to w= hich it is addressed and may contain confidential and/or privileged materia= l. If you are not the intended recipient of this message you are hereby not= ified that any use, review, retransmission, dissemination, distribution, re= production or any action taken in reliance upon this message is prohibited.= If you received this in error, please contact the sender and delete the ma= terial from any computer. Any views expressed in this message are those of = the individual sender and may not necessarily reflect the views of the comp= any.) -----Original Message----- From: sqr-users-bounces+thomas-hins=3Douhsc.edu@sqrug.org [mailto:sqr-users-bounces+thomas-hins=3Douhsc.edu@sqrug.org]On Behalf Of Scotty Barnes Sent: Friday, October 15, 2004 9:11 AM To: sqr-users@sqrug.org Subject: [sqr-users] Error running Bar100.sqr sample program We are at PS 8.1 using SQR 6... on oracle 9i. I tried running the sample= =20 sqr in the ..\sqr\ora\samplew\ dir and an getting this error? Can anyone= =20 give me some quick advise, is some file missing or something not installed= =20 correctly? Error on line 101: (SQR 6458) Unsupported grafcap device. SQR for PeopleSoft: Program Aborting. Thanks Scotty ---------- Scott A Barnes Programmer/Analyst Wesleyan University Exley Science Center Room 537 860-685-2807 ---------- Lottery: A tax on people who are bad at math! _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Fri Oct 15 09:44:40 2004 From: "Karunakaran Perumbrayoor" Date: Fri, 15 Oct 2004 20:19:56 +0530 Subject: RE: [sqr-users] SQR to csv (excel) format Hi Janet, To my knowledge, this is impossible. When U print data in a CSV= File, The Heading is only going to be printed once, no matter whatever we = try. Incase U want that to happen, Dont print the Department in the Heading Sect= ion. Have it as a part of a Procedure. Use a Break Logic (incase U select t= he Department & any other details), wherein for a change in Department, U g= et into a new page (new-page function) and then call this procedure to prin= t the corresponding Department Name. Hope the problem gets solved then!!! Regards... Karun -----Original Message----- From: Janet Shum [mailto:jtmshum@yahoo.ca] Sent: Friday, October 15, 2004 7:06 PM To: sqr-users@sqrug.org Subject: [sqr-users] SQR to csv (excel) format Hi There is a peoplesoft delivered sqr report that prints a new page every time there is a new department.=20=20 When you print this to excel (csv) the header does not get printed every time but only the first time and the department is on the header so you think all the info on the spreadsheet belongs to one deptartment. Is there anyway around this, to get the header to print every time Thanks, Janet Shum City of Winipeg ______________________________________________________________________=20 Post your free ad now! http://personals.yahoo.ca _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users DISCLAIMER: Information contained and transmitted by this E-MAIL is proprietary to Hexaware Technologies and is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at adminchn@hexaware.com. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Oct 15 09:49:22 2004 Date: Fri, 15 Oct 2004 10:46:22 -0400 From: "White, Denise" Subject: [sqr-users] RE: Problem in SQL Steve, Actually, in version 8.8 SP1 (and possibly earlier versions of 8), you do n= eed to check the PER_STATUS. I agree that in 7.5 and earlier, it was very = convenient that non-employees did not have EMPLOYMENT or JOB rows, and most= selects included one or both of those tables, so it filtered out the non-e= mployees automatically. However, now non-employees do in fact have rows in= those tables. As part of the upgrade we are now doing (7.51 to 8.8 SP1), = the instructors from the Administer Training module are being converted to = non-employees. We had to provide a jobcode and department to use for them.= Therefore, we must now code to exclude these non-employees. Further comp= lications arise from the fact that the NAMES table has the potential for mu= ltiple names per employee (or non-employee), that the ADDRESSES table has t= he potential for multiple addresses, and PERSONAL_PHONE can contain multipl= e phone numbers, where in the past we could use PERSONAL_DATA which had one= row per employee to get this information. There are many new tables and v= iews that can be used to limit the data. PERS_DTA_EMP_VW will only return = employees, but only has EMPLID and NAME on it. PERSON_NAME returns only pr= imary names, but could include non-employees. PERSON_ADDR_HOM will return = only home addresses, but could include non-employees. PERSON_PHONE will re= turn only home phone, but could include non-employees. In general, if you = only want employees, you must join with PERS_DTA_EMP_VW, which returns only= employees, or join with one of the tables/views that contain PER_STATUS (P= ERSON, PERS_DATA_EFFDT, PERSONAL_DT_FST) and then do an explicit condition = to check for a value of E. It is a pain! Denise M. White Sr. Software Engineer HR/Payroll Systems Vicor Corporation ------------------------------ Message: 4 Date: Thu, 14 Oct 2004 09:30:37 -0700 From: "Alexander, Steve" Subject: RE: [sqr-users] Problem in SQL To: "'This list is for discussion about the SQR database reportinglangu age from Hyperion Solutions.'" Message-ID: <62AFC819CCF3D611827A00065B3F798106BA8AD1@sj-exchange.ci.sj.ca.u s> Content-Type: text/plain; charset=3Diso-8859-1 Do you really need to test person.per_status =3D 'E' (employee)? If the person has an employment row and job rows, couldn't you assume that he or she is an employee? You could eliminate the join with ps_person. If you must keep it, add a person.emplid =3D a.emplid. Another small improvement might be to replace the c.full_part_time !=3D 'D' with c.full_part_time in ('F','P', ... ). This helps if full_part_time is indexed (but it probably isn't). -----Original Message----- From: Deepu [mailto:pradeepkanneganti@yahoo.com] Sent: Wednesday, October 13, 2004 6:38 AM To: peoplesoft fans Subject: [sqr-users] Problem in SQL Hi All, =20 I'm having a problem with this sql..which is retrieving around 3 million rows.=20 =20 SELECT=20 a.emplid, a.NAME, pers1.national_id, b.hire_dt, b.rehire_dt, b.termination_dt, c.deptid, c.full_part_time, c.action, c.action_reason, c.action_dt, c.effdt, c.reg_temp, c.empl_status, c.empl_rcd FROM=20 ps_names a, ps_pers_nid pers1, ps_employment b, ps_job c, ps_person person WHERE=20 person.per_status =3D 'E' AND a.emplid =3D c.emplid AND a.emplid =3D pers1.emplid AND pers1.country =3D 'USA' AND pers1.national_id_type =3D 'PR' AND b.emplid =3D c.emplid AND ( c.effdt =3D (SELECT MAX (effdt), FROM ps_job h WHERE h.emplid =3D c.emplid AND h.empl_rcd =3D c.empl_rcd AND h.effdt <= =3D '30-JUN-2001') AND c.effseq =3D (SELECT MAX (effseq) FROM ps_job i WHERE i.emplid =3D c.emplid AND i.empl_rcd =3D c.empl_rcd AND i.effdt =3D c.effdt)) AND b.barg_unit =3D '9' AND c.full_part_time !=3D 'D' AND a.name_type =3D 'PRI'=20 AND a.effdt =3D (SELECT MAX (effdt) FROM ps_names a1 WHERE a.emplid =3D a1.emplid AND a.name_type =3D a1.name_type) ORDER BY C.Reg_Temp,C.Empl_Status,A.Name=20 I was trying to tune this sql...can any one pls suggest me on how to do it...any help is highly appreciated. =20 Thanks, _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Oct 15 10:07:22 2004 Date: Fri, 15 Oct 2004 10:38:52 -0400 From: Scotty Barnes Subject: RE: [sqr-users] Error running Bar100.sqr sample program How do you make it support graphs? At 10:21 AM 10/15/2004, Hins, Thomas D. \(HSC\) wrote: >bELIEVE THAT MESSAGE IS TRYING TO CREATE A GRAPH BUT YOUR ENVIRONMENT IS >NOT SETUP TO SUPPORT A GRAPH. > >Tom Hins >Information Technology - Application Solutions >University of Oklahoma Health Sciences Center >P.O. Box 26901 >Oklahoma City, OK 73190 >Phone:(405) 271-2262 Ext. 50213 >Fax: (405) 271-2352 >(The information transmitted is intended only for the person or entity to >which it is addressed and may contain confidential and/or privileged >material. If you are not the intended recipient of this message you are >hereby notified that any use, review, retransmission, dissemination, >distribution, reproduction or any action taken in reliance upon this >message is prohibited. If you received this in error, please contact the >sender and delete the material from any computer. Any views expressed in >this message are those of the individual sender and may not necessarily >reflect the views of the company.) > > > >-----Original Message----- >From: sqr-users-bounces+thomas-hins=ouhsc.edu@sqrug.org >[mailto:sqr-users-bounces+thomas-hins=ouhsc.edu@sqrug.org]On Behalf Of >Scotty Barnes >Sent: Friday, October 15, 2004 9:11 AM >To: sqr-users@sqrug.org >Subject: [sqr-users] Error running Bar100.sqr sample program > > >We are at PS 8.1 using SQR 6... on oracle 9i. I tried running the sample >sqr in the ..\sqr\ora\samplew\ dir and an getting this error? Can anyone >give me some quick advise, is some file missing or something not installed >correctly? > > > >Error on line 101: > (SQR 6458) Unsupported grafcap device. > >SQR for PeopleSoft: Program Aborting. > > >Thanks > >Scotty > > >---------- > >Scott A Barnes >Programmer/Analyst >Wesleyan University >Exley Science Center >Room 537 >860-685-2807 > > >---------- >Lottery: A tax on people who are bad at math! > >_______________________________________________ >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 ---------- Scott A Barnes Programmer/Analyst Wesleyan University Exley Science Center Room 537 860-685-2807 ---------- Lottery: A tax on people who are bad at math! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Oct 15 11:01:09 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] How to check 'CHAR' field to find out if it contain sall Numeric? Date: Fri, 15 Oct 2004 08:57:48 -0700 That's very clever, but there is the risk of other characters; "@", "#", etc. -----Original Message----- From: Biekens, Jan-Hein [mailto:jh.biekens@kwantum.nl] Sent: Friday, October 15, 2004 5:16 AM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] How to check 'CHAR' field to find out if it contain sall Numeric? A method would be: if upper($var) = lower($var) ! It contains all numerics else ! It doesn't end-if Regards, Jan-Hein -----Original Message----- From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org [ Behalf Of Tajinder Chahal Sent: Thursday, October 14, 2004 3:17 PM To: sqr-users@sqrug.org Subject: [sqr-users] How to check 'CHAR' field to find out if it contains all Numeric? Hello Everyone, We are on DB2 database. I need to find out if a 'CHAR' field contains all 'Numerics' or not? **************************************************************************** De inhoud van deze email met eventuele bijlagen is uitsluitend bestemd voor geadresseerde en bevat mogelijk vertrouwelijke informatie. Kennisneming, verspreiding, vermenigvuldiging of enig ander gebruik van de inhoud van deze email door anderen dan de geadresseerde is niet toegestaan en mogelijk strafbaar. Indien deze email abusievelijk door u is ontvangen, wordt u verzocht contact op te nemen met de afzender en de ontvangen email te vernietigen. The information contained in this mail and possible annexes is intended solely for the use of the individual or entity to whom it is addressed and may contain confidential information. If you are not the intended recipient, it is prohibited and may be unlawful to take knowledge, distribute, multiply or make any other use of the information in this mail. If you are not the intended recipient please notify the sender and destroy this 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+sqrusersarch=sqrug.org@sqrug.org Fri Oct 15 11:04:05 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] RE: Problem in SQL Date: Fri, 15 Oct 2004 08:59:16 -0700 Denise, Thanks for the overview. I'm at version 8 SP1. It's good to know what's coming in my next upgrade. I hope my other suggestions helped. Steven -----Original Message----- From: White, Denise [mailto:DEWhite@vicr.com] Sent: Friday, October 15, 2004 7:46 AM To: SQR Users Group (E-mail) Subject: [sqr-users] RE: Problem in SQL Steve, Actually, in version 8.8 SP1 (and possibly earlier versions of 8), you do need to check the PER_STATUS. I agree that in 7.5 and earlier, it was very convenient that non-employees did not have EMPLOYMENT or JOB rows, and most selects included one or both of those tables, so it filtered out the non-employees automatically. However, now non-employees do in fact have rows in those tables. As part of the upgrade we are now doing (7.51 to 8.8 SP1), the instructors from the Administer Training module are being converted to non-employees. We had to provide a jobcode and department to use for them. Therefore, we must now code to exclude these non-employees. Further complications arise from the fact that the NAMES table has the potential for multiple names per employee (or non-employee), that the ADDRESSES table has the potential for multiple addresses, and PERSONAL_PHONE can contain multiple phone numbers, where in the past we could use PERSONAL_DATA which had one row per employee to get this information. There are many new tables and views that can be used to limit the data. PERS_DTA_EMP_VW will only return employees, but only has EMPLID and NAME on it. PERSON_NAME returns only primary names, but could include non-employees. PERSON_ADDR_HOM will return only home addresses, but could include non-employees. PERSON_PHONE will return only home phone, but could include non-employees. In general, if you only want employees, you must join with PERS_DTA_EMP_VW, which returns only employees, or join with one of the tables/views that contain PER_STATUS (PERSON, PERS_DATA_EFFDT, PERSONAL_DT_FST) and then do an explicit condition to check for a value of E. It is a pain! Denise M. White Sr. Software Engineer HR/Payroll Systems Vicor Corporation ------------------------------ Message: 4 Date: Thu, 14 Oct 2004 09:30:37 -0700 From: "Alexander, Steve" Subject: RE: [sqr-users] Problem in SQL To: "'This list is for discussion about the SQR database reportinglangu age from Hyperion Solutions.'" Message-ID: <62AFC819CCF3D611827A00065B3F798106BA8AD1@sj-exchange.ci.sj.ca.u s> Content-Type: text/plain; charset=iso-8859-1 Do you really need to test person.per_status = 'E' (employee)? If the person has an employment row and job rows, couldn't you assume that he or she is an employee? You could eliminate the join with ps_person. If you must keep it, add a person.emplid = a.emplid. Another small improvement might be to replace the c.full_part_time != 'D' with c.full_part_time in ('F','P', ... ). This helps if full_part_time is indexed (but it probably isn't). -----Original Message----- From: Deepu [mailto:pradeepkanneganti@yahoo.com] Sent: Wednesday, October 13, 2004 6:38 AM To: peoplesoft fans Subject: [sqr-users] Problem in SQL Hi All, I'm having a problem with this sql..which is retrieving around 3 million rows. SELECT a.emplid, a.NAME, pers1.national_id, b.hire_dt, b.rehire_dt, b.termination_dt, c.deptid, c.full_part_time, c.action, c.action_reason, c.action_dt, c.effdt, c.reg_temp, c.empl_status, c.empl_rcd FROM ps_names a, ps_pers_nid pers1, ps_employment b, ps_job c, ps_person person WHERE person.per_status = 'E' AND a.emplid = c.emplid AND a.emplid = pers1.emplid AND pers1.country = 'USA' AND pers1.national_id_type = 'PR' AND b.emplid = c.emplid AND ( c.effdt = (SELECT MAX (effdt), FROM ps_job h WHERE h.emplid = c.emplid AND h.empl_rcd = c.empl_rcd AND h.effdt <= '30-JUN-2001') AND c.effseq = (SELECT MAX (effseq) FROM ps_job i WHERE i.emplid = c.emplid AND i.empl_rcd = c.empl_rcd AND i.effdt = c.effdt)) AND b.barg_unit = '9' AND c.full_part_time != 'D' AND a.name_type = 'PRI' AND a.effdt = (SELECT MAX (effdt) FROM ps_names a1 WHERE a.emplid = a1.emplid AND a.name_type = a1.name_type) ORDER BY C.Reg_Temp,C.Empl_Status,A.Name I was trying to tune this sql...can any one pls suggest me on how to do it...any help is highly appreciated. Thanks, _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Fri Oct 15 11:19:09 2004 From: "Peter Burton" Date: Fri, 15 Oct 2004 12:16:27 -0400 Subject: RE: [sqr-users] Error running Bar100.sqr sample program Scotty, Is your LIBSTI.INI file properly configured? Peter=20 -----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 Scotty Barnes Sent: Friday, October 15, 2004 10:11 AM To: sqr-users@sqrug.org Subject: [sqr-users] Error running Bar100.sqr sample program We are at PS 8.1 using SQR 6... on oracle 9i. I tried running the sample sqr in the ..\sqr\ora\samplew\ dir and an getting this error? Can anyone give me some quick advise, is some file missing or something not installed correctly? Error on line 101: (SQR 6458) Unsupported grafcap device. SQR for PeopleSoft: Program Aborting. Thanks Scotty ---------- Scott A Barnes Programmer/Analyst Wesleyan University Exley Science Center Room 537 860-685-2807 ---------- Lottery: A tax on people who are bad at math! _______________________________________________ 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.=20 Internet communications are not secure and Hyperion does not, therefore, ac= cept legal responsibility for the contents of this message nor for any dama= ge caused by viruses. The views expressed here do not necessarily represen= t those of Hyperion. For more information about Hyperion, please visit our Web site at www.hyper= ion.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Oct 15 11:44:45 2004 Date: Fri, 15 Oct 2004 11:45:01 -0500 From: "Lindquist, Maria" Subject: [sqr-users] What is wrong???? I don't know what I'm doing wrong in my SQR but it keeps turning on the checkflag on the equation variable on students that are Non Degree for certain campuses when I do not ask for them. I must be having a major brain freeze today because I can't see it. Any suggestions on the below? =20 !******************************************************* Begin-Procedure Process-Main !******************************************************* #Debugp Show 'Process-Main Procedure' Show 'Entering Process-Main' =20 Let #Total_New_Freshman =3D 0 =20 Begin-Select A.EMPLID A.ACAD_CAREER E.NAME C.CAMPUS =20 Let $Campus =3D &C.CAMPUS Let $Emplid =3D &A.EMPLID Let $Billing_Career =3D &A.ACAD_CAREER Let $Name =3D &E.Name =20=20=20 =20=20=20 Do Evaluate-Campus =20 Show 'Emplid =3D ' $Emplid =20 Let $Flag_Exists =3D 'N' Let $Row_Exists =3D 'N' Do Check-Flag Do Check-Prev-Flag =20 If $Row_Exists =3D 'N' Do Insert-Flag Add 1 to #Total_New_Freshman Else If $Flag_Exists =3D 'N' Do Update-Flag Add 1 to #Total_New_Freshman End-If End-If =20 Do Update-Tuit-Calc =20 FROM PS_STDNT_CAR_TERM A, PS_ADM_APPL_DATA B, PS_ADM_APPL_PROG C, PS_PERSONAL_DATA E WHERE A.INSTITUTION =3D $Institution AND A.STRM =3D $Strm AND A.ACAD_LEVEL_BOT =3D '10' AND B.INSTITUTION =3D A.INSTITUTION AND C.INSTITUTION =3D B.INSTITUTION AND B.EMPLID =3D A.EMPLID AND C.EMPLID =3D B.EMPLID AND C.ADMIT_TERM =3D A.STRM AND B.ACAD_CAREER =3D A.ACAD_CAREER AND C.ACAD_CAREER =3D B.ACAD_CAREER AND B.STDNT_CAR_NBR =3D A.STDNT_CAR_NBR AND C.STDNT_CAR_NBR =3D B.STDNT_CAR_NBR AND C.ADM_APPL_NBR =3D B.ADM_APPL_NBR AND C.EFFDT =3D (SELECT MAX(C2.EFFDT) FROM PS_ADM_APPL_PROG C2 WHERE C2.EMPLID =3D C.EMPLID AND C2.ACAD_CAREER =3D C.ACAD_CAREER AND C2.STDNT_CAR_NBR =3D C.STDNT_CAR_NBR AND C2.ADM_APPL_NBR =3D C.ADM_APPL_NBR AND C2.INSTITUTION =3D C.INSTITUTION AND C2.EFFDT <=3D {DateIn-Prefix}$AsOfToday{DateIn-Suffix}) AND C.EFFSEQ =3D (SELECT MAX(C3.EFFSEQ) FROM PS_ADM_APPL_PROG C3 WHERE C3.EMPLID =3D C.EMPLID AND C3.ACAD_CAREER =3D C.ACAD_CAREER AND C3.STDNT_CAR_NBR =3D C.STDNT_CAR_NBR AND C3.ADM_APPL_NBR =3D C.ADM_APPL_NBR AND C3.INSTITUTION =3D C.INSTITUTION AND C3.EFFDT =3D C.EFFDT) AND B.ADMIT_TYPE =3D 'NEW' [$AcadProgSel] [$CampusSel] ! AND C.CAMPUS =3D $Campus ! AND NOT EXISTS (SELECT 'X' FROM PS_STDNT_EQUTN_VAR D - MOD - MLINDQUIST 4/19/04 ! WHERE D.EMPLID =3D A.EMPLID - MOD - MLINDQUIST 4/19/04 ! AND D.BILLING_CAREER =3D A.ACAD_CAREER - MOD - MLINDQUIST 4/19/04 ! AND D.STRM <=3D A.STRM - MOD - MLINDQUIST 4/19/04 ! AND D.VARIABLE_FLAG3 =3D 'Y') - MOD - MLINDQUIST 4/19/04 AND E.EMPLID =3D A.EMPLID ORDER BY E.NAME, A.EMPLID End-Select =20 Show '=20 IS Programmer/Analyst - Business Office University of Wisconsin Colleges 780 Regent St, PO Box 8680, Madison, WI 53708-8680 Phone: 608.265.2677 / Fax: 608.265.5770 =20 =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Oct 15 12:08:45 2004 Date: Fri, 15 Oct 2004 10:06:29 -0700 (PDT) From: Les Hancock Subject: Re: [sqr-users] What is wrong???? $Campus will not be defined until rows are returned. And then you evaluate the value of $Campus and set up the variables used in the Where clause ($AcadProgSel, $CampusSel). So, going into the Select, $AcadProgSel and $CampusSel will be empty and not used. It appears to me that you will need 2 or more separate select statements to do what you want to do. Les --- "Lindquist, Maria" wrote: > I don't know what I'm doing wrong in my SQR but it > keeps turning on the > checkflag on the equation variable on students that > are Non Degree for > certain campuses when I do not ask for them. I must > be having a major > brain freeze today because I can't see it. Any > suggestions on the below? > > !******************************************************* > Begin-Procedure Process-Main > !******************************************************* > #Debugp Show 'Process-Main Procedure' > Show 'Entering Process-Main' > > Let #Total_New_Freshman = 0 > > Begin-Select > A.EMPLID > A.ACAD_CAREER > E.NAME > C.CAMPUS > > Let $Campus = &C.CAMPUS > > Let $Emplid = &A.EMPLID > Let $Billing_Career = &A.ACAD_CAREER > Let $Name = &E.Name > > > Do Evaluate-Campus > > Show 'Emplid = ' $Emplid > > Let $Flag_Exists = 'N' > Let $Row_Exists = 'N' > Do Check-Flag > Do Check-Prev-Flag > > If $Row_Exists = 'N' > Do Insert-Flag > Add 1 to #Total_New_Freshman > Else > If $Flag_Exists = 'N' > Do Update-Flag > Add 1 to #Total_New_Freshman > End-If > End-If > > Do Update-Tuit-Calc > > FROM PS_STDNT_CAR_TERM A, > PS_ADM_APPL_DATA B, > PS_ADM_APPL_PROG C, > PS_PERSONAL_DATA E > WHERE A.INSTITUTION = $Institution > AND A.STRM = $Strm > AND A.ACAD_LEVEL_BOT = '10' > AND B.INSTITUTION = A.INSTITUTION > AND C.INSTITUTION = B.INSTITUTION > AND B.EMPLID = A.EMPLID > AND C.EMPLID = B.EMPLID > AND C.ADMIT_TERM = A.STRM > AND B.ACAD_CAREER = A.ACAD_CAREER > AND C.ACAD_CAREER = B.ACAD_CAREER > AND B.STDNT_CAR_NBR = A.STDNT_CAR_NBR > AND C.STDNT_CAR_NBR = B.STDNT_CAR_NBR > AND C.ADM_APPL_NBR = B.ADM_APPL_NBR > AND C.EFFDT = (SELECT MAX(C2.EFFDT) FROM > PS_ADM_APPL_PROG C2 > WHERE C2.EMPLID = C.EMPLID > AND C2.ACAD_CAREER = > C.ACAD_CAREER > AND C2.STDNT_CAR_NBR = > C.STDNT_CAR_NBR > AND C2.ADM_APPL_NBR = > C.ADM_APPL_NBR > AND C2.INSTITUTION = > C.INSTITUTION > AND C2.EFFDT <= > {DateIn-Prefix}$AsOfToday{DateIn-Suffix}) > AND C.EFFSEQ = (SELECT MAX(C3.EFFSEQ) FROM > PS_ADM_APPL_PROG C3 > WHERE C3.EMPLID = C.EMPLID > AND C3.ACAD_CAREER = > C.ACAD_CAREER > AND C3.STDNT_CAR_NBR = > C.STDNT_CAR_NBR > AND C3.ADM_APPL_NBR = > C.ADM_APPL_NBR > AND C3.INSTITUTION = > C.INSTITUTION > AND C3.EFFDT = C.EFFDT) > AND B.ADMIT_TYPE = 'NEW' > [$AcadProgSel] > [$CampusSel] > ! AND C.CAMPUS = $Campus > ! AND NOT EXISTS (SELECT 'X' FROM > PS_STDNT_EQUTN_VAR D > - MOD - MLINDQUIST 4/19/04 > ! WHERE D.EMPLID = A.EMPLID > - MOD - MLINDQUIST 4/19/04 > ! AND D.BILLING_CAREER = > A.ACAD_CAREER > - MOD - MLINDQUIST 4/19/04 > ! AND D.STRM <= A.STRM > - MOD - MLINDQUIST 4/19/04 > ! AND D.VARIABLE_FLAG3 = 'Y') > - MOD - MLINDQUIST 4/19/04 > AND E.EMPLID = A.EMPLID > ORDER BY E.NAME, A.EMPLID > End-Select > > Show ' End-Procedure Process-Main > > !******************************************************* > Begin-Procedure Evaluate-Campus > !******************************************************* > #Debugp Show 'Evaluate-Campus' > Show 'Entering Evaluate-Campus' > > Evaluate $Campus > > When = 'BRB' > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel = 'AND C.CAMPUS IN > (''BRB'')' > > > When = 'BRN' > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel = 'AND C.CAMPUS IN > (''BRN'')' > > When = 'FDL' > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel = 'AND C.CAMPUS IN > (''FDL'')' > > When = 'MAN' > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel = 'AND C.CAMPUS IN > (''MAN'')' > > When = 'MTH' > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'',''NON'')' > Let $CampusSel = 'AND C.CAMPUS IN > (''MTH'')' > > When = 'MSF' > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'',''NON'')' > Let $CampusSel = 'AND C.CAMPUS IN > (''MSF'')' > > When = 'RLN' > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel = 'AND C.CAMPUS IN > (''RLN'')' > > When-Other > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'',''NON'')' > ! Let $CampusSel = 'AND C.CAMPUS IN > (''BRB'')' > > > End-Evaluate > > Show 'Campus = ' $Campus > Show 'AcadProgSel = ' $AcadProgSel > > > Show '< Exiting Evaluate-Campus' > End-Procedure Evaluate-Campus > > ________________________________ > > Maria K Lindquist > mlindqui@uwc.edu > IS Programmer/Analyst - Business Office > University of Wisconsin Colleges > 780 Regent St, PO Box 8680, Madison, WI 53708-8680 > Phone: 608.265.2677 / Fax: 608.265.5770 > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Oct 15 14:04:09 2004 Subject: RE: [sqr-users] What is wrong???? Date: Fri, 15 Oct 2004 14:04:18 -0500 From: "Lindquist, Maria" Well I don't know what my problem is today but I just did this in the main process AND (C.ACAD_PROG IN ('DEG', 'NON') AND C.CAMPUS IN ('MTH','MSF') OR C.ACAD_PROG IN ('DEG') AND C.CAMPUS IN ('BRB','BRN','FDL','MAN','RLN')) And that did exactly what it was supposed to. Having lunch and listening to music on my headphones must have helped.=20=20 Maria K Lindquist mlindqui@uwc.edu IS Programmer/Analyst - Business Office University of Wisconsin Colleges 780 Regent St, PO Box 8680, Madison, WI 53708-8680 Phone: 608.265.2677 / Fax: 608.265.5770 -----Original Message----- From: sqr-users-bounces+mlindqui=3Duwc.edu@sqrug.org [mailto:sqr-users-bounces+mlindqui=3Duwc.edu@sqrug.org] On Behalf Of Les Hancock Sent: Friday, October 15, 2004 12:06 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] What is wrong???? $Campus will not be defined until rows are returned.=20 And then you evaluate the value of $Campus and set up the variables used in the Where clause ($AcadProgSel, $CampusSel). So, going into the Select, $AcadProgSel and $CampusSel will be empty and not used. It appears to me that you will need 2 or more separate select statements to do what you want to do. Les --- "Lindquist, Maria" wrote: > I don't know what I'm doing wrong in my SQR but it keeps turning on=20 > the checkflag on the equation variable on students that are Non Degree > for certain campuses when I do not ask for them. I must be having a=20 > major brain freeze today because I can't see it. Any suggestions on=20 > the below? >=20=20 > !******************************************************* > Begin-Procedure Process-Main > !******************************************************* > #Debugp Show 'Process-Main Procedure' > Show 'Entering Process-Main' >=20=20 > Let #Total_New_Freshman =3D 0 >=20=20 > Begin-Select > A.EMPLID > A.ACAD_CAREER > E.NAME > C.CAMPUS >=20=20 > Let $Campus =3D &C.CAMPUS >=20 > Let $Emplid =3D &A.EMPLID > Let $Billing_Career =3D &A.ACAD_CAREER > Let $Name =3D &E.Name >=20=20=20=20 >=20=20=20=20 > Do Evaluate-Campus >=20=20 > Show 'Emplid =3D ' $Emplid >=20=20 > Let $Flag_Exists =3D 'N' > Let $Row_Exists =3D 'N' > Do Check-Flag > Do Check-Prev-Flag >=20=20 > If $Row_Exists =3D 'N' > Do Insert-Flag > Add 1 to #Total_New_Freshman > Else > If $Flag_Exists =3D 'N' > Do Update-Flag > Add 1 to #Total_New_Freshman > End-If > End-If >=20=20 > Do Update-Tuit-Calc >=20=20 > FROM PS_STDNT_CAR_TERM A, > PS_ADM_APPL_DATA B, > PS_ADM_APPL_PROG C, > PS_PERSONAL_DATA E > WHERE A.INSTITUTION =3D $Institution > AND A.STRM =3D $Strm > AND A.ACAD_LEVEL_BOT =3D '10' > AND B.INSTITUTION =3D A.INSTITUTION > AND C.INSTITUTION =3D B.INSTITUTION > AND B.EMPLID =3D A.EMPLID > AND C.EMPLID =3D B.EMPLID > AND C.ADMIT_TERM =3D A.STRM > AND B.ACAD_CAREER =3D A.ACAD_CAREER > AND C.ACAD_CAREER =3D B.ACAD_CAREER > AND B.STDNT_CAR_NBR =3D A.STDNT_CAR_NBR > AND C.STDNT_CAR_NBR =3D B.STDNT_CAR_NBR > AND C.ADM_APPL_NBR =3D B.ADM_APPL_NBR > AND C.EFFDT =3D (SELECT MAX(C2.EFFDT) FROM > PS_ADM_APPL_PROG C2 > WHERE C2.EMPLID =3D C.EMPLID > AND C2.ACAD_CAREER =3D > C.ACAD_CAREER > AND C2.STDNT_CAR_NBR =3D > C.STDNT_CAR_NBR > AND C2.ADM_APPL_NBR =3D > C.ADM_APPL_NBR > AND C2.INSTITUTION =3D > C.INSTITUTION > AND C2.EFFDT <=3D > {DateIn-Prefix}$AsOfToday{DateIn-Suffix}) > AND C.EFFSEQ =3D (SELECT MAX(C3.EFFSEQ) FROM > PS_ADM_APPL_PROG C3 > WHERE C3.EMPLID =3D C.EMPLID > AND C3.ACAD_CAREER =3D > C.ACAD_CAREER > AND C3.STDNT_CAR_NBR =3D > C.STDNT_CAR_NBR > AND C3.ADM_APPL_NBR =3D > C.ADM_APPL_NBR > AND C3.INSTITUTION =3D > C.INSTITUTION > AND C3.EFFDT =3D C.EFFDT) > AND B.ADMIT_TYPE =3D 'NEW' > [$AcadProgSel] > [$CampusSel] > ! AND C.CAMPUS =3D $Campus > ! AND NOT EXISTS (SELECT 'X' FROM > PS_STDNT_EQUTN_VAR D > - MOD - MLINDQUIST 4/19/04 > ! WHERE D.EMPLID =3D A.EMPLID > - MOD - MLINDQUIST 4/19/04 > ! AND D.BILLING_CAREER =3D > A.ACAD_CAREER > - MOD - MLINDQUIST 4/19/04 > ! AND D.STRM <=3D A.STRM > - MOD - MLINDQUIST 4/19/04 > ! AND D.VARIABLE_FLAG3 =3D 'Y') > - MOD - MLINDQUIST 4/19/04 > AND E.EMPLID =3D A.EMPLID > ORDER BY E.NAME, A.EMPLID > End-Select >=20=20 > Show ' End-Procedure Process-Main >=20=20 > !******************************************************* > Begin-Procedure Evaluate-Campus > !******************************************************* > #Debugp Show 'Evaluate-Campus' > Show 'Entering Evaluate-Campus' >=20=20 > Evaluate $Campus >=20=20 > When =3D 'BRB'=20=20=20=20 > Let $AcadProgSel =3D 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel =3D 'AND C.CAMPUS IN > (''BRB'')' >=20=20=20=20=20=20=20=20=20=20=20 >=20=20=20=20=20=20=20=20=20 > When =3D 'BRN' > Let $AcadProgSel =3D 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel =3D 'AND C.CAMPUS IN > (''BRN'')' >=20=20 > When =3D 'FDL' > Let $AcadProgSel =3D 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel =3D 'AND C.CAMPUS IN > (''FDL'')' >=20=20 > When =3D 'MAN' > Let $AcadProgSel =3D 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel =3D 'AND C.CAMPUS IN > (''MAN'')' >=20=20 > When =3D 'MTH'=20=20=20=20 > Let $AcadProgSel =3D 'AND C.ACAD_PROG IN > (''DEG'',''NON'')' > Let $CampusSel =3D 'AND C.CAMPUS IN > (''MTH'')' >=20=20 > When =3D 'MSF' > Let $AcadProgSel =3D 'AND C.ACAD_PROG IN > (''DEG'',''NON'')' > Let $CampusSel =3D 'AND C.CAMPUS IN > (''MSF'')' >=20=20=20=20=20=20=20=20 > When =3D 'RLN' > Let $AcadProgSel =3D 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel =3D 'AND C.CAMPUS IN > (''RLN'')' >=20=20=20=20=20=20=20=20=20=20=20 > When-Other > Let $AcadProgSel =3D 'AND C.ACAD_PROG IN > (''DEG'',''NON'')' > ! Let $CampusSel =3D 'AND C.CAMPUS IN > (''BRB'')' >=20=20 >=20=20=20=20=20=20=20=20=20=20=20=20 > End-Evaluate >=20=20 > Show 'Campus =3D ' $Campus > Show 'AcadProgSel =3D ' $AcadProgSel >=20=20 >=20 > Show '< Exiting Evaluate-Campus' > End-Procedure Evaluate-Campus >=20=20 > ________________________________ >=20 > Maria K Lindquist > mlindqui@uwc.edu =20 > IS Programmer/Analyst - Business Office > University of Wisconsin Colleges > 780 Regent St, PO Box 8680, Madison, WI 53708-8680 > Phone: 608.265.2677 / Fax: 608.265.5770 > =20 >=20=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 =09=09 _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.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+sqrusersarch=sqrug.org@sqrug.org Mon Oct 18 03:46:38 2004 Date: Mon, 18 Oct 2004 09:45:14 +0100 (BST) From: Amber S Subject: RE: [sqr-users] Data truncated during update from flat file Hello, The probelm with the data truncate bit was due to sql drivers on my pc. the sqr worked as expected on the server - thanks to all for their help. --- "Bartlett, Dwain" wrote: > Everything looks good, do a display of your data and > make sure it is correct. > > Dwain Bartlett > SABHRS Services Bureau, ITSD > HR Systems Analyst > (406) 444-0418 > dbartlett@state.mt.us > > > -----Original Message----- > From: Amber S [mailto:amber_sqr@yahoo.co.uk] > Sent: Wednesday, October 13, 2004 2:55 AM > To: This list is for discussion about the SQR > database reporting > language from Hyperion Solutions. > Subject: RE: [sqr-users] Data truncated during > update from flat file > > > Hello Dwain, > I have renamed the file to sample.dat and have > attached it, hope you receive it this time. > thanks! > > > --- "Bartlett, Dwain" > wrote: > > I did not get the attachment, rename it to a > > xxxxx.dat file. > > > > Dwain Bartlett > > SABHRS Services Bureau, ITSD > > HR Systems Analyst > > (406) 444-0418 > > dbartlett@state.mt.us > > > > > > -----Original Message----- > > From: Amber S [mailto:amber_sqr@yahoo.co.uk] > > Sent: Tuesday, October 12, 2004 10:52 AM > > To: This list is for discussion about the SQR > > database reporting > > language from Hyperion Solutions. > > Subject: Re: [sqr-users] Data truncated during > > update from flat file > > > > > > I have attached a sample copy of the csv file. > > And here I am pasting my unstring code.... > > > > begin-procedure read-data-file > > > > while not #end-file > > > > Read 1 into $Input_Record:3000 > > > > Unstring $Input_Record By ',' Into > > > > $DV_Emplid > > $DV_First_Name > > $DV_Last_Name > > $DV_Payroll_No > > $DV_Deptid > > $DV_Position_Nbr > > $DV_Job_Title > > $DV_Reports_To_Nbr > > > > let $DV_Emplid = rtrim($Dv_Emplid, ' ') > > let $Dv_Position_Nbr = lpad($Dv_Position_Nbr, 8, > > '0') > > let $Dv_Job_Title = substr($Dv_Job_Title,1,30) > > > > let #DV_count = #DV_count +1 > > do job-title > > > > if #end-file > > break > > end-if > > > > end-while > > > > Close 1 > > > > end-procedure > > > > Also the $Job_Effdt varible holds the value of the > > current EFFDT of an employees record > > > > > > --- PSFTPROGRAMMER@aol.com wrote: > > > What are the values for $Dv_Position_Nbr, > > > $Job_Effdt, & $DV_Job_Title? > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > > > > > > > ___________________________________________________________ALL-NEW > > Yahoo! Messenger - all new features - even more > fun! > > http://uk.messenger.yahoo.com > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > ___________________________________________________________ALL-NEW > Yahoo! Messenger - all new features - even more fun! > http://uk.messenger.yahoo.com > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Oct 18 05:59:22 2004 From: "Sudeep Vaidya" Date: Mon, 18 Oct 2004 16:25:34 +0530 Subject: [sqr-users] FTP from SQR. Hi All, We are creating a report (PDF ) file from a SQR. The PDF is to be FTPd to a remote server. 1.My Procedure Print-to-file is Printing the data to the PDF file using the Print Statements. 2. After Print-to-file is complete, I'm calling my procedure Do-FTP-File which would FTP the file using the Call system commands in Unix. Even When the procedure Print-to-File is complete, probably the control of the PDF is not released till the SQR is executing. Hence my procedure Do-FTP-File fails as it cannot find the file . Probably the file is not even written to the disk at that time. And even if it is written, perhaps the SQR is holding the Control through the Operating System. If I were creating a DAT file using Write Statements, I could have explicitly closed the file using the Close Statement. Question .How can I force the SQR to release the Control of the PDF after the Print-to-file procedure is complete, so that the file is closed and can be picked for FTP by the procedure Do-FTP-File . Best Regards, Sudeep http://www.patni.com World-Wide Partnerships. World-Class Solutions. _____________________________________________________________________ This e-mail message may contain proprietary, confidential or legally privileged information for the sole use of the person or entity to whom this message was originally addressed. Any review, e-transmission dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error kindly delete this e-mail from your records. If it appears that this mail has been forwarded to you without proper authority, please notify us immediately at netadmin@patni.com and delete this mail. _____________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Oct 18 06:14:38 2004 From: "Steve Cavill" Subject: RE: [sqr-users] FTP from SQR. Date: Mon, 18 Oct 2004 21:12:36 +1000 Hi Sudeep, A new-report command should close the output file so you can print it. 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 Sudeep Vaidya Sent: Monday, 18 October 2004 8:56 PM To: sqr-users@sqrug.org Subject: [sqr-users] FTP from SQR. Hi All, We are creating a report (PDF ) file from a SQR. The PDF is to be FTPd to a remote server. 1.My Procedure Print-to-file is Printing the data to the PDF file using the Print Statements. 2. After Print-to-file is complete, I'm calling my procedure Do-FTP-File which would FTP the file using the Call system commands in Unix. Even When the procedure Print-to-File is complete, probably the control of the PDF is not released till the SQR is executing. Hence my procedure Do-FTP-File fails as it cannot find the file . Probably the file is not even written to the disk at that time. And even if it is written, perhaps the SQR is holding the Control through the Operating System. If I were creating a DAT file using Write Statements, I could have explicitly closed the file using the Close Statement. Question .How can I force the SQR to release the Control of the PDF after the Print-to-file procedure is complete, so that the file is closed and can be picked for FTP by the procedure Do-FTP-File . Best Regards, Sudeep http://www.patni.com World-Wide Partnerships. World-Class Solutions. _____________________________________________________________________ This e-mail message may contain proprietary, confidential or legally privileged information for the sole use of the person or entity to whom this message was originally addressed. Any review, e-transmission dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error kindly delete this e-mail from your records. If it appears that this mail has been forwarded to you without proper authority, please notify us immediately at netadmin@patni.com and delete this 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+sqrusersarch=sqrug.org@sqrug.org Mon Oct 18 07:41:31 2004 From: Rebecca.Barilleaux@anthem.com Date: Mon, 18 Oct 2004 08:40:54 -0400 Subject: [sqr-users] Re: FTP from SQR. Sudeep, You just need to issue the new-report command before you attempt to ftp the file. Using new-report will close the current pdf file, and will only start writing to the new file only if you have any further print statements after the new-report command. Rebecca Date: Mon, 18 Oct 2004 16:25:34 +0530 From: "Sudeep Vaidya" Subject: [sqr-users] FTP from SQR. To: Message-ID: <001b01c4b500$febc7e90$b585a8c0@patni.com> Content-Type: text/plain; charset="iso-8859-1" Hi All, We are creating a report (PDF ) file from a SQR. The PDF is to be FTPd to a remote server. 1.My Procedure Print-to-file is Printing the data to the PDF file using the Print Statements. 2. After Print-to-file is complete, I'm calling my procedure Do-FTP-File which would FTP the file using the Call system commands in Unix. Even When the procedure Print-to-File is complete, probably the control of the PDF is not released till the SQR is executing. Hence my procedure Do-FTP-File fails as it cannot find the file . Probably the file is not even written to the disk at that time. And even if it is written, perhaps the SQR is holding the Control through the Operating System. If I were creating a DAT file using Write Statements, I could have explicitly closed the file using the Close Statement. Question .How can I force the SQR to release the Control of the PDF after the Print-to-file procedure is complete, so that the file is closed and can be picked for FTP by the procedure Do-FTP-File . Best Regards, Sudeep http://www.patni.com World-Wide Partnerships. World-Class Solutions. CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information or otherwise protected by law. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all 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+sqrusersarch=sqrug.org@sqrug.org Mon Oct 18 08:04:28 2004 Date: Mon, 18 Oct 2004 09:01:03 -0400 From: "White, Denise" Subject: [sqr-users] RE: FTP from SQR. Hi Sudeep, After you finish writing the report and before you FTP it, issue the new-re= port command. This will close your current report, causing it to create th= e output file. Since you are not going to write anything to the new report= , you do not need to specify a name in the new-report command. (Disclaimer= : this always worked in earlier versions with .lis file output, so I am ass= uming it will continue to work the same way with .pdf output; someone pleas= e correct me if I'm wrong) HTH, Denise M. White Sr. Software Engineer HR/Payroll Systems Vicor Corporation ------------------------------ Message: 2 Date: Mon, 18 Oct 2004 16:25:34 +0530 From: "Sudeep Vaidya" Subject: [sqr-users] FTP from SQR. To: Message-ID: <001b01c4b500$febc7e90$b585a8c0@patni.com> Content-Type: text/plain; charset=3D"iso-8859-1" Hi All, We are creating a report (PDF ) file from a SQR. The PDF is to be FTPd to a remote server. 1.My Procedure Print-to-file is Printing the data to the PDF file using the Print Statements. 2. After Print-to-file is complete, I'm calling my procedure Do-FTP-File which would FTP the file using the Call system commands in Unix. Even When the procedure Print-to-File is complete, probably the control of the PDF is not released till the SQR is executing. Hence my procedure Do-FTP-File fails as it cannot find the file . Probably the file is not even written to the disk at that time. And even if it is written, perhaps the SQR is holding the Control through the Operating System. If I were creating a DAT file using Write Statements, I could have explicitly closed the file using the Close Statement. Question .How can I force the SQR to release the Control of the PDF after the Print-to-file procedure is complete, so that the file is closed and can be picked for FTP by the procedure Do-FTP-File . Best Regards, Sudeep _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Oct 18 10:24:28 2004 From: "David Thorburn" Subject: Re: [sqr-users] What is wrong???? Date: Fri, 15 Oct 2004 12:21:44 -0700 'IN' is very 'costly' coding. OR's are processed faster. Best Regards, David __________________________________________________ David Otis Thorburn (916) 712-2272 thorburn@conl.net www.geocities.com/david_thorburn __________________________________________________ ----- Original Message ----- From: "Lindquist, Maria" To: "This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions." Sent: Friday, October 15, 2004 12:04 PM Subject: RE: [sqr-users] What is wrong???? Well I don't know what my problem is today but I just did this in the main process AND (C.ACAD_PROG IN ('DEG', 'NON') AND C.CAMPUS IN ('MTH','MSF') OR C.ACAD_PROG IN ('DEG') AND C.CAMPUS IN ('BRB','BRN','FDL','MAN','RLN')) And that did exactly what it was supposed to. Having lunch and listening to music on my headphones must have helped. Maria K Lindquist mlindqui@uwc.edu IS Programmer/Analyst - Business Office University of Wisconsin Colleges 780 Regent St, PO Box 8680, Madison, WI 53708-8680 Phone: 608.265.2677 / Fax: 608.265.5770 -----Original Message----- From: sqr-users-bounces+mlindqui=uwc.edu@sqrug.org [mailto:sqr-users-bounces+mlindqui=uwc.edu@sqrug.org] On Behalf Of Les Hancock Sent: Friday, October 15, 2004 12:06 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] What is wrong???? $Campus will not be defined until rows are returned. And then you evaluate the value of $Campus and set up the variables used in the Where clause ($AcadProgSel, $CampusSel). So, going into the Select, $AcadProgSel and $CampusSel will be empty and not used. It appears to me that you will need 2 or more separate select statements to do what you want to do. Les --- "Lindquist, Maria" wrote: > I don't know what I'm doing wrong in my SQR but it keeps turning on > the checkflag on the equation variable on students that are Non Degree > for certain campuses when I do not ask for them. I must be having a > major brain freeze today because I can't see it. Any suggestions on > the below? > > !******************************************************* > Begin-Procedure Process-Main > !******************************************************* > #Debugp Show 'Process-Main Procedure' > Show 'Entering Process-Main' > > Let #Total_New_Freshman = 0 > > Begin-Select > A.EMPLID > A.ACAD_CAREER > E.NAME > C.CAMPUS > > Let $Campus = &C.CAMPUS > > Let $Emplid = &A.EMPLID > Let $Billing_Career = &A.ACAD_CAREER > Let $Name = &E.Name > > > Do Evaluate-Campus > > Show 'Emplid = ' $Emplid > > Let $Flag_Exists = 'N' > Let $Row_Exists = 'N' > Do Check-Flag > Do Check-Prev-Flag > > If $Row_Exists = 'N' > Do Insert-Flag > Add 1 to #Total_New_Freshman > Else > If $Flag_Exists = 'N' > Do Update-Flag > Add 1 to #Total_New_Freshman > End-If > End-If > > Do Update-Tuit-Calc > > FROM PS_STDNT_CAR_TERM A, > PS_ADM_APPL_DATA B, > PS_ADM_APPL_PROG C, > PS_PERSONAL_DATA E > WHERE A.INSTITUTION = $Institution > AND A.STRM = $Strm > AND A.ACAD_LEVEL_BOT = '10' > AND B.INSTITUTION = A.INSTITUTION > AND C.INSTITUTION = B.INSTITUTION > AND B.EMPLID = A.EMPLID > AND C.EMPLID = B.EMPLID > AND C.ADMIT_TERM = A.STRM > AND B.ACAD_CAREER = A.ACAD_CAREER > AND C.ACAD_CAREER = B.ACAD_CAREER > AND B.STDNT_CAR_NBR = A.STDNT_CAR_NBR > AND C.STDNT_CAR_NBR = B.STDNT_CAR_NBR > AND C.ADM_APPL_NBR = B.ADM_APPL_NBR > AND C.EFFDT = (SELECT MAX(C2.EFFDT) FROM > PS_ADM_APPL_PROG C2 > WHERE C2.EMPLID = C.EMPLID > AND C2.ACAD_CAREER = > C.ACAD_CAREER > AND C2.STDNT_CAR_NBR = > C.STDNT_CAR_NBR > AND C2.ADM_APPL_NBR = > C.ADM_APPL_NBR > AND C2.INSTITUTION = > C.INSTITUTION > AND C2.EFFDT <= > {DateIn-Prefix}$AsOfToday{DateIn-Suffix}) > AND C.EFFSEQ = (SELECT MAX(C3.EFFSEQ) FROM > PS_ADM_APPL_PROG C3 > WHERE C3.EMPLID = C.EMPLID > AND C3.ACAD_CAREER = > C.ACAD_CAREER > AND C3.STDNT_CAR_NBR = > C.STDNT_CAR_NBR > AND C3.ADM_APPL_NBR = > C.ADM_APPL_NBR > AND C3.INSTITUTION = > C.INSTITUTION > AND C3.EFFDT = C.EFFDT) > AND B.ADMIT_TYPE = 'NEW' > [$AcadProgSel] > [$CampusSel] > ! AND C.CAMPUS = $Campus > ! AND NOT EXISTS (SELECT 'X' FROM > PS_STDNT_EQUTN_VAR D > - MOD - MLINDQUIST 4/19/04 > ! WHERE D.EMPLID = A.EMPLID > - MOD - MLINDQUIST 4/19/04 > ! AND D.BILLING_CAREER = > A.ACAD_CAREER > - MOD - MLINDQUIST 4/19/04 > ! AND D.STRM <= A.STRM > - MOD - MLINDQUIST 4/19/04 > ! AND D.VARIABLE_FLAG3 = 'Y') > - MOD - MLINDQUIST 4/19/04 > AND E.EMPLID = A.EMPLID > ORDER BY E.NAME, A.EMPLID > End-Select > > Show ' End-Procedure Process-Main > > !******************************************************* > Begin-Procedure Evaluate-Campus > !******************************************************* > #Debugp Show 'Evaluate-Campus' > Show 'Entering Evaluate-Campus' > > Evaluate $Campus > > When = 'BRB' > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel = 'AND C.CAMPUS IN > (''BRB'')' > > > When = 'BRN' > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel = 'AND C.CAMPUS IN > (''BRN'')' > > When = 'FDL' > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel = 'AND C.CAMPUS IN > (''FDL'')' > > When = 'MAN' > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel = 'AND C.CAMPUS IN > (''MAN'')' > > When = 'MTH' > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'',''NON'')' > Let $CampusSel = 'AND C.CAMPUS IN > (''MTH'')' > > When = 'MSF' > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'',''NON'')' > Let $CampusSel = 'AND C.CAMPUS IN > (''MSF'')' > > When = 'RLN' > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel = 'AND C.CAMPUS IN > (''RLN'')' > > When-Other > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'',''NON'')' > ! Let $CampusSel = 'AND C.CAMPUS IN > (''BRB'')' > > > End-Evaluate > > Show 'Campus = ' $Campus > Show 'AcadProgSel = ' $AcadProgSel > > > Show '< Exiting Evaluate-Campus' > End-Procedure Evaluate-Campus > > ________________________________ > > Maria K Lindquist > mlindqui@uwc.edu > IS Programmer/Analyst - Business Office > University of Wisconsin Colleges > 780 Regent St, PO Box 8680, Madison, WI 53708-8680 > Phone: 608.265.2677 / Fax: 608.265.5770 > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Oct 18 10:51:33 2004 From: "Murty Mirthipati Venkata Suryanarayan" Date: Mon, 18 Oct 2004 21:26:48 +0530 Subject: RE: [sqr-users] What is wrong???? let me put it another way. This is rather a logical problem, I suppose. The way the logical operand's are arranged could be revisited. =20 I suggest you better re-check your criterion:? is it (X and Y) or ( Z and W) or X and (Y or Z ) and W or As you have specified, X and Y or Z or W Cheers, Murty MVS -----Original Message----- From: David Thorburn [mailto:thorburn@conl.net] Sent: Saturday, October 16, 2004 12:52 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: Re: [sqr-users] What is wrong???? 'IN' is very 'costly' coding. OR's are processed faster. Best Regards, David __________________________________________________ David Otis Thorburn (916) 712-2272 thorburn@conl.net www.geocities.com/david_thorburn __________________________________________________ ----- Original Message -----=20 From: "Lindquist, Maria" To: "This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions." Sent: Friday, October 15, 2004 12:04 PM Subject: RE: [sqr-users] What is wrong???? Well I don't know what my problem is today but I just did this in the main process AND (C.ACAD_PROG IN ('DEG', 'NON') AND C.CAMPUS IN ('MTH','MSF') OR C.ACAD_PROG IN ('DEG') AND C.CAMPUS IN ('BRB','BRN','FDL','MAN','RLN')) And that did exactly what it was supposed to. Having lunch and listening to music on my headphones must have helped. Maria K Lindquist mlindqui@uwc.edu IS Programmer/Analyst - Business Office University of Wisconsin Colleges 780 Regent St, PO Box 8680, Madison, WI 53708-8680 Phone: 608.265.2677 / Fax: 608.265.5770 -----Original Message----- From: sqr-users-bounces+mlindqui=3Duwc.edu@sqrug.org [mailto:sqr-users-bounces+mlindqui=3Duwc.edu@sqrug.org] On Behalf Of Les Hancock Sent: Friday, October 15, 2004 12:06 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] What is wrong???? $Campus will not be defined until rows are returned. And then you evaluate the value of $Campus and set up the variables used in the Where clause ($AcadProgSel, $CampusSel). So, going into the Select, $AcadProgSel and $CampusSel will be empty and not used. It appears to me that you will need 2 or more separate select statements to do what you want to do. Les --- "Lindquist, Maria" wrote: > I don't know what I'm doing wrong in my SQR but it keeps turning on > the checkflag on the equation variable on students that are Non Degree > for certain campuses when I do not ask for them. I must be having a > major brain freeze today because I can't see it. Any suggestions on > the below? > > !******************************************************* > Begin-Procedure Process-Main > !******************************************************* > #Debugp Show 'Process-Main Procedure' > Show 'Entering Process-Main' > > Let #Total_New_Freshman =3D 0 > > Begin-Select > A.EMPLID > A.ACAD_CAREER > E.NAME > C.CAMPUS > > Let $Campus =3D &C.CAMPUS > > Let $Emplid =3D &A.EMPLID > Let $Billing_Career =3D &A.ACAD_CAREER > Let $Name =3D &E.Name > > > Do Evaluate-Campus > > Show 'Emplid =3D ' $Emplid > > Let $Flag_Exists =3D 'N' > Let $Row_Exists =3D 'N' > Do Check-Flag > Do Check-Prev-Flag > > If $Row_Exists =3D 'N' > Do Insert-Flag > Add 1 to #Total_New_Freshman > Else > If $Flag_Exists =3D 'N' > Do Update-Flag > Add 1 to #Total_New_Freshman > End-If > End-If > > Do Update-Tuit-Calc > > FROM PS_STDNT_CAR_TERM A, > PS_ADM_APPL_DATA B, > PS_ADM_APPL_PROG C, > PS_PERSONAL_DATA E > WHERE A.INSTITUTION =3D $Institution > AND A.STRM =3D $Strm > AND A.ACAD_LEVEL_BOT =3D '10' > AND B.INSTITUTION =3D A.INSTITUTION > AND C.INSTITUTION =3D B.INSTITUTION > AND B.EMPLID =3D A.EMPLID > AND C.EMPLID =3D B.EMPLID > AND C.ADMIT_TERM =3D A.STRM > AND B.ACAD_CAREER =3D A.ACAD_CAREER > AND C.ACAD_CAREER =3D B.ACAD_CAREER > AND B.STDNT_CAR_NBR =3D A.STDNT_CAR_NBR > AND C.STDNT_CAR_NBR =3D B.STDNT_CAR_NBR > AND C.ADM_APPL_NBR =3D B.ADM_APPL_NBR > AND C.EFFDT =3D (SELECT MAX(C2.EFFDT) FROM > PS_ADM_APPL_PROG C2 > WHERE C2.EMPLID =3D C.EMPLID > AND C2.ACAD_CAREER =3D > C.ACAD_CAREER > AND C2.STDNT_CAR_NBR =3D > C.STDNT_CAR_NBR > AND C2.ADM_APPL_NBR =3D > C.ADM_APPL_NBR > AND C2.INSTITUTION =3D > C.INSTITUTION > AND C2.EFFDT <=3D > {DateIn-Prefix}$AsOfToday{DateIn-Suffix}) > AND C.EFFSEQ =3D (SELECT MAX(C3.EFFSEQ) FROM > PS_ADM_APPL_PROG C3 > WHERE C3.EMPLID =3D C.EMPLID > AND C3.ACAD_CAREER =3D > C.ACAD_CAREER > AND C3.STDNT_CAR_NBR =3D > C.STDNT_CAR_NBR > AND C3.ADM_APPL_NBR =3D > C.ADM_APPL_NBR > AND C3.INSTITUTION =3D > C.INSTITUTION > AND C3.EFFDT =3D C.EFFDT) > AND B.ADMIT_TYPE =3D 'NEW' > [$AcadProgSel] > [$CampusSel] > ! AND C.CAMPUS =3D $Campus > ! AND NOT EXISTS (SELECT 'X' FROM > PS_STDNT_EQUTN_VAR D > - MOD - MLINDQUIST 4/19/04 > ! WHERE D.EMPLID =3D A.EMPLID > - MOD - MLINDQUIST 4/19/04 > ! AND D.BILLING_CAREER =3D > A.ACAD_CAREER > - MOD - MLINDQUIST 4/19/04 > ! AND D.STRM <=3D A.STRM > - MOD - MLINDQUIST 4/19/04 > ! AND D.VARIABLE_FLAG3 =3D 'Y') > - MOD - MLINDQUIST 4/19/04 > AND E.EMPLID =3D A.EMPLID > ORDER BY E.NAME, A.EMPLID > End-Select > > Show ' End-Procedure Process-Main > > !******************************************************* > Begin-Procedure Evaluate-Campus > !******************************************************* > #Debugp Show 'Evaluate-Campus' > Show 'Entering Evaluate-Campus' > > Evaluate $Campus > > When =3D 'BRB' > Let $AcadProgSel =3D 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel =3D 'AND C.CAMPUS IN > (''BRB'')' > > > When =3D 'BRN' > Let $AcadProgSel =3D 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel =3D 'AND C.CAMPUS IN > (''BRN'')' > > When =3D 'FDL' > Let $AcadProgSel =3D 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel =3D 'AND C.CAMPUS IN > (''FDL'')' > > When =3D 'MAN' > Let $AcadProgSel =3D 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel =3D 'AND C.CAMPUS IN > (''MAN'')' > > When =3D 'MTH' > Let $AcadProgSel =3D 'AND C.ACAD_PROG IN > (''DEG'',''NON'')' > Let $CampusSel =3D 'AND C.CAMPUS IN > (''MTH'')' > > When =3D 'MSF' > Let $AcadProgSel =3D 'AND C.ACAD_PROG IN > (''DEG'',''NON'')' > Let $CampusSel =3D 'AND C.CAMPUS IN > (''MSF'')' > > When =3D 'RLN' > Let $AcadProgSel =3D 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel =3D 'AND C.CAMPUS IN > (''RLN'')' > > When-Other > Let $AcadProgSel =3D 'AND C.ACAD_PROG IN > (''DEG'',''NON'')' > ! Let $CampusSel =3D 'AND C.CAMPUS IN > (''BRB'')' > > > End-Evaluate > > Show 'Campus =3D ' $Campus > Show 'AcadProgSel =3D ' $AcadProgSel > > > Show '< Exiting Evaluate-Campus' > End-Procedure Evaluate-Campus > > ________________________________ > > Maria K Lindquist > mlindqui@uwc.edu > IS Programmer/Analyst - Business Office > University of Wisconsin Colleges > 780 Regent St, PO Box 8680, Madison, WI 53708-8680 > Phone: 608.265.2677 / Fax: 608.265.5770 > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users DISCLAIMER: Information contained and transmitted by this E-MAIL is proprietary to Hexaware Technologies and is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at adminchn@hexaware.com. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Oct 18 11:03:52 2004 From: "Sudeep Vaidya" Subject: RE: [sqr-users] Re: FTP from SQR. Date: Mon, 18 Oct 2004 21:31:31 +0530 Thank you All !! This would surely help out ... once again, Thanks ! Sudeep -----Original Message----- From: sqr-users-bounces+sudeep.vaidya=patni.com@sqrug.org [mailto:sqr-users-bounces+sudeep.vaidya=patni.com@sqrug.org]On Behalf Of Rebecca.Barilleaux@anthem.com Sent: Monday, October 18, 2004 6:11 PM To: sqr-users@sqrug.org Subject: [sqr-users] Re: FTP from SQR. Sudeep, You just need to issue the new-report command before you attempt to ftp the file. Using new-report will close the current pdf file, and will only start writing to the new file only if you have any further print statements after the new-report command. Rebecca Date: Mon, 18 Oct 2004 16:25:34 +0530 From: "Sudeep Vaidya" Subject: [sqr-users] FTP from SQR. To: Message-ID: <001b01c4b500$febc7e90$b585a8c0@patni.com> Content-Type: text/plain; charset="iso-8859-1" Hi All, We are creating a report (PDF ) file from a SQR. The PDF is to be FTPd to a remote server. 1.My Procedure Print-to-file is Printing the data to the PDF file using the Print Statements. 2. After Print-to-file is complete, I'm calling my procedure Do-FTP-File which would FTP the file using the Call system commands in Unix. Even When the procedure Print-to-File is complete, probably the control of the PDF is not released till the SQR is executing. Hence my procedure Do-FTP-File fails as it cannot find the file . Probably the file is not even written to the disk at that time. And even if it is written, perhaps the SQR is holding the Control through the Operating System. If I were creating a DAT file using Write Statements, I could have explicitly closed the file using the Close Statement. Question .How can I force the SQR to release the Control of the PDF after the Print-to-file procedure is complete, so that the file is closed and can be picked for FTP by the procedure Do-FTP-File . Best Regards, Sudeep http://www.patni.com World-Wide Partnerships. World-Class Solutions. CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information or otherwise protected by law. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users http://www.patni.com World-Wide Partnerships. World-Class Solutions. _____________________________________________________________________ This e-mail message may contain proprietary, confidential or legally privileged information for the sole use of the person or entity to whom this message was originally addressed. Any review, e-transmission dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error kindly delete this e-mail from your records. If it appears that this mail has been forwarded to you without proper authority, please notify us immediately at netadmin@patni.com and delete this mail. _____________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Oct 18 11:10:01 2004 Subject: RE: [sqr-users] What is wrong???? Date: Mon, 18 Oct 2004 11:07:23 -0500 From: "Lindquist, Maria" (X and Y) or ( Z and W)=20 Well in other words I want it look select students according to the following: Campus =3D MTH and MSF=20 where Acad Prog =3D NON and DEG And=20 Campus =3D 'BRB' or 'BRN' or 'FDL' or 'MAN' or 'RLN' Where=20 AcadProg =3D DEG Did I not code it correctly?????? Maria K Lindquist mlindqui@uwc.edu IS Programmer/Analyst - Business Office University of Wisconsin Colleges 780 Regent St, PO Box 8680, Madison, WI 53708-8680 Phone: 608.265.2677 / Fax: 608.265.5770 -----Original Message----- From: sqr-users-bounces+mlindqui=3Duwc.edu@sqrug.org [mailto:sqr-users-bounces+mlindqui=3Duwc.edu@sqrug.org] On Behalf Of Murty Mirthipati Venkata Suryanarayan Sent: Monday, October 18, 2004 10:57 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] What is wrong???? let me put it another way. This is rather a logical problem, I suppose. The way the logical operand's are arranged could be revisited. =20 I suggest you better re-check your criterion:? is it (X and Y) or ( Z and W) or X and (Y or Z ) and W or As you have specified, X and Y or Z or W Cheers, Murty MVS -----Original Message----- From: David Thorburn [mailto:thorburn@conl.net] Sent: Saturday, October 16, 2004 12:52 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: Re: [sqr-users] What is wrong???? 'IN' is very 'costly' coding. OR's are processed faster. Best Regards, David __________________________________________________ David Otis Thorburn (916) 712-2272 thorburn@conl.net www.geocities.com/david_thorburn __________________________________________________ ----- Original Message ----- From: "Lindquist, Maria" To: "This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions." Sent: Friday, October 15, 2004 12:04 PM Subject: RE: [sqr-users] What is wrong???? Well I don't know what my problem is today but I just did this in the main process AND (C.ACAD_PROG IN ('DEG', 'NON') AND C.CAMPUS IN ('MTH','MSF') OR C.ACAD_PROG IN ('DEG') AND C.CAMPUS IN ('BRB','BRN','FDL','MAN','RLN')) And that did exactly what it was supposed to. Having lunch and listening to music on my headphones must have helped. Maria K Lindquist mlindqui@uwc.edu IS Programmer/Analyst - Business Office University of Wisconsin Colleges 780 Regent St, PO Box 8680, Madison, WI 53708-8680 Phone: 608.265.2677 / Fax: 608.265.5770 -----Original Message----- From: sqr-users-bounces+mlindqui=3Duwc.edu@sqrug.org [mailto:sqr-users-bounces+mlindqui=3Duwc.edu@sqrug.org] On Behalf Of Les Hancock Sent: Friday, October 15, 2004 12:06 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] What is wrong???? $Campus will not be defined until rows are returned. And then you evaluate the value of $Campus and set up the variables used in the Where clause ($AcadProgSel, $CampusSel). So, going into the Select, $AcadProgSel and $CampusSel will be empty and not used. It appears to me that you will need 2 or more separate select statements to do what you want to do. Les --- "Lindquist, Maria" wrote: > I don't know what I'm doing wrong in my SQR but it keeps turning on > the checkflag on the equation variable on students that are Non Degree > for certain campuses when I do not ask for them. I must be having a > major brain freeze today because I can't see it. Any suggestions on > the below? > > !******************************************************* > Begin-Procedure Process-Main > !******************************************************* > #Debugp Show 'Process-Main Procedure' > Show 'Entering Process-Main' > > Let #Total_New_Freshman =3D 0 > > Begin-Select > A.EMPLID > A.ACAD_CAREER > E.NAME > C.CAMPUS > > Let $Campus =3D &C.CAMPUS > > Let $Emplid =3D &A.EMPLID > Let $Billing_Career =3D &A.ACAD_CAREER > Let $Name =3D &E.Name > > > Do Evaluate-Campus > > Show 'Emplid =3D ' $Emplid > > Let $Flag_Exists =3D 'N' > Let $Row_Exists =3D 'N' > Do Check-Flag > Do Check-Prev-Flag > > If $Row_Exists =3D 'N' > Do Insert-Flag > Add 1 to #Total_New_Freshman > Else > If $Flag_Exists =3D 'N' > Do Update-Flag > Add 1 to #Total_New_Freshman > End-If > End-If > > Do Update-Tuit-Calc > > FROM PS_STDNT_CAR_TERM A, > PS_ADM_APPL_DATA B, > PS_ADM_APPL_PROG C, > PS_PERSONAL_DATA E > WHERE A.INSTITUTION =3D $Institution > AND A.STRM =3D $Strm > AND A.ACAD_LEVEL_BOT =3D '10' > AND B.INSTITUTION =3D A.INSTITUTION > AND C.INSTITUTION =3D B.INSTITUTION > AND B.EMPLID =3D A.EMPLID > AND C.EMPLID =3D B.EMPLID > AND C.ADMIT_TERM =3D A.STRM > AND B.ACAD_CAREER =3D A.ACAD_CAREER > AND C.ACAD_CAREER =3D B.ACAD_CAREER > AND B.STDNT_CAR_NBR =3D A.STDNT_CAR_NBR > AND C.STDNT_CAR_NBR =3D B.STDNT_CAR_NBR > AND C.ADM_APPL_NBR =3D B.ADM_APPL_NBR > AND C.EFFDT =3D (SELECT MAX(C2.EFFDT) FROM > PS_ADM_APPL_PROG C2 > WHERE C2.EMPLID =3D C.EMPLID > AND C2.ACAD_CAREER =3D > C.ACAD_CAREER > AND C2.STDNT_CAR_NBR =3D > C.STDNT_CAR_NBR > AND C2.ADM_APPL_NBR =3D > C.ADM_APPL_NBR > AND C2.INSTITUTION =3D > C.INSTITUTION > AND C2.EFFDT <=3D > {DateIn-Prefix}$AsOfToday{DateIn-Suffix}) > AND C.EFFSEQ =3D (SELECT MAX(C3.EFFSEQ) FROM > PS_ADM_APPL_PROG C3 > WHERE C3.EMPLID =3D C.EMPLID > AND C3.ACAD_CAREER =3D > C.ACAD_CAREER > AND C3.STDNT_CAR_NBR =3D > C.STDNT_CAR_NBR > AND C3.ADM_APPL_NBR =3D > C.ADM_APPL_NBR > AND C3.INSTITUTION =3D > C.INSTITUTION > AND C3.EFFDT =3D C.EFFDT) > AND B.ADMIT_TYPE =3D 'NEW' > [$AcadProgSel] > [$CampusSel] > ! AND C.CAMPUS =3D $Campus > ! AND NOT EXISTS (SELECT 'X' FROM > PS_STDNT_EQUTN_VAR D > - MOD - MLINDQUIST 4/19/04 > ! WHERE D.EMPLID =3D A.EMPLID > - MOD - MLINDQUIST 4/19/04 > ! AND D.BILLING_CAREER =3D > A.ACAD_CAREER > - MOD - MLINDQUIST 4/19/04 > ! AND D.STRM <=3D A.STRM > - MOD - MLINDQUIST 4/19/04 > ! AND D.VARIABLE_FLAG3 =3D 'Y') > - MOD - MLINDQUIST 4/19/04 > AND E.EMPLID =3D A.EMPLID > ORDER BY E.NAME, A.EMPLID > End-Select > > Show ' End-Procedure Process-Main > > !******************************************************* > Begin-Procedure Evaluate-Campus > !******************************************************* > #Debugp Show 'Evaluate-Campus' > Show 'Entering Evaluate-Campus' > > Evaluate $Campus > > When =3D 'BRB' > Let $AcadProgSel =3D 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel =3D 'AND C.CAMPUS IN > (''BRB'')' > > > When =3D 'BRN' > Let $AcadProgSel =3D 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel =3D 'AND C.CAMPUS IN > (''BRN'')' > > When =3D 'FDL' > Let $AcadProgSel =3D 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel =3D 'AND C.CAMPUS IN > (''FDL'')' > > When =3D 'MAN' > Let $AcadProgSel =3D 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel =3D 'AND C.CAMPUS IN > (''MAN'')' > > When =3D 'MTH' > Let $AcadProgSel =3D 'AND C.ACAD_PROG IN > (''DEG'',''NON'')' > Let $CampusSel =3D 'AND C.CAMPUS IN > (''MTH'')' > > When =3D 'MSF' > Let $AcadProgSel =3D 'AND C.ACAD_PROG IN > (''DEG'',''NON'')' > Let $CampusSel =3D 'AND C.CAMPUS IN > (''MSF'')' > > When =3D 'RLN' > Let $AcadProgSel =3D 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel =3D 'AND C.CAMPUS IN > (''RLN'')' > > When-Other > Let $AcadProgSel =3D 'AND C.ACAD_PROG IN > (''DEG'',''NON'')' > ! Let $CampusSel =3D 'AND C.CAMPUS IN > (''BRB'')' > > > End-Evaluate > > Show 'Campus =3D ' $Campus > Show 'AcadProgSel =3D ' $AcadProgSel > > > Show '< Exiting Evaluate-Campus' > End-Procedure Evaluate-Campus > > ________________________________ > > Maria K Lindquist > mlindqui@uwc.edu > IS Programmer/Analyst - Business Office > University of Wisconsin Colleges > 780 Regent St, PO Box 8680, Madison, WI 53708-8680 > Phone: 608.265.2677 / Fax: 608.265.5770 > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users DISCLAIMER: Information contained and transmitted by this E-MAIL is proprietary to Hexaware Technologies and is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at adminchn@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 From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Oct 18 11:25:52 2004 Subject: RE: [sqr-users] What is wrong???? Date: Mon, 18 Oct 2004 11:24:43 -0500 From: "Knapp, Richard" I think either I am not getting what you want or your use of and and or is not correct. For the purposes of discussion, I am referring to the two parts of your example as case 1 and case 2. In the first case, can a person have two campuses and two acad_progs? Or is it that the persons you want have either of two campuses and either of two degrees? In which case you need to replace the internal ands with ors. Looking at both cases is it true that you want all persons who are at any of the campuses you mention (in both cases) and then you want to sort them by what acad_prog their in based on their campus? If that is the case, your query should just get the campus and acad_prog for all the campuses on you lists then test the campus ( 'if &campus =3D' or 'evaluate &campus') within the query and act accordingly for each group of acad_progs. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 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 Lindquist, Maria Sent: Monday, October 18, 2004 11:07 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] What is wrong???? (X and Y) or ( Z and W)=20 Well in other words I want it look select students according to the following: Campus =3D MTH and MSF=20 where Acad Prog =3D NON and DEG And=20 Campus =3D 'BRB' or 'BRN' or 'FDL' or 'MAN' or 'RLN' Where=20 AcadProg =3D DEG Did I not code it correctly?????? Maria K Lindquist mlindqui@uwc.edu IS Programmer/Analyst - Business Office University of Wisconsin Colleges 780 Regent St, PO Box 8680, Madison, WI 53708-8680 Phone: 608.265.2677 / Fax: 608.265.5770 -----Original Message----- From: sqr-users-bounces+mlindqui=3Duwc.edu@sqrug.org [mailto:sqr-users-bounces+mlindqui=3Duwc.edu@sqrug.org] On Behalf Of Murty Mirthipati Venkata Suryanarayan Sent: Monday, October 18, 2004 10:57 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] What is wrong???? let me put it another way. This is rather a logical problem, I suppose. The way the logical operand's are arranged could be revisited. =20 I suggest you better re-check your criterion:? is it (X and Y) or ( Z and W) or X and (Y or Z ) and W or As you have specified, X and Y or Z or W Cheers, Murty MVS -----Original Message----- From: David Thorburn [mailto:thorburn@conl.net] Sent: Saturday, October 16, 2004 12:52 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: Re: [sqr-users] What is wrong???? 'IN' is very 'costly' coding. OR's are processed faster. Best Regards, David __________________________________________________ David Otis Thorburn (916) 712-2272 thorburn@conl.net www.geocities.com/david_thorburn __________________________________________________ ----- Original Message ----- From: "Lindquist, Maria" To: "This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions." Sent: Friday, October 15, 2004 12:04 PM Subject: RE: [sqr-users] What is wrong???? Well I don't know what my problem is today but I just did this in the main process AND (C.ACAD_PROG IN ('DEG', 'NON') AND C.CAMPUS IN ('MTH','MSF') OR C.ACAD_PROG IN ('DEG') AND C.CAMPUS IN ('BRB','BRN','FDL','MAN','RLN')) And that did exactly what it was supposed to. Having lunch and listening to music on my headphones must have helped. Maria K Lindquist mlindqui@uwc.edu IS Programmer/Analyst - Business Office University of Wisconsin Colleges 780 Regent St, PO Box 8680, Madison, WI 53708-8680 Phone: 608.265.2677 / Fax: 608.265.5770 -----Original Message----- From: sqr-users-bounces+mlindqui=3Duwc.edu@sqrug.org [mailto:sqr-users-bounces+mlindqui=3Duwc.edu@sqrug.org] On Behalf Of Les Hancock Sent: Friday, October 15, 2004 12:06 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] What is wrong???? $Campus will not be defined until rows are returned. And then you evaluate the value of $Campus and set up the variables used in the Where clause ($AcadProgSel, $CampusSel). So, going into the Select, $AcadProgSel and $CampusSel will be empty and not used. It appears to me that you will need 2 or more separate select statements to do what you want to do. Les --- "Lindquist, Maria" wrote: > I don't know what I'm doing wrong in my SQR but it keeps turning on > the checkflag on the equation variable on students that are Non Degree > for certain campuses when I do not ask for them. I must be having a > major brain freeze today because I can't see it. Any suggestions on > the below? > > !******************************************************* > Begin-Procedure Process-Main > !******************************************************* > #Debugp Show 'Process-Main Procedure' > Show 'Entering Process-Main' > > Let #Total_New_Freshman =3D 0 > > Begin-Select > A.EMPLID > A.ACAD_CAREER > E.NAME > C.CAMPUS > > Let $Campus =3D &C.CAMPUS > > Let $Emplid =3D &A.EMPLID > Let $Billing_Career =3D &A.ACAD_CAREER > Let $Name =3D &E.Name > > > Do Evaluate-Campus > > Show 'Emplid =3D ' $Emplid > > Let $Flag_Exists =3D 'N' > Let $Row_Exists =3D 'N' > Do Check-Flag > Do Check-Prev-Flag > > If $Row_Exists =3D 'N' > Do Insert-Flag > Add 1 to #Total_New_Freshman > Else > If $Flag_Exists =3D 'N' > Do Update-Flag > Add 1 to #Total_New_Freshman > End-If > End-If > > Do Update-Tuit-Calc > > FROM PS_STDNT_CAR_TERM A, > PS_ADM_APPL_DATA B, > PS_ADM_APPL_PROG C, > PS_PERSONAL_DATA E > WHERE A.INSTITUTION =3D $Institution > AND A.STRM =3D $Strm > AND A.ACAD_LEVEL_BOT =3D '10' > AND B.INSTITUTION =3D A.INSTITUTION > AND C.INSTITUTION =3D B.INSTITUTION > AND B.EMPLID =3D A.EMPLID > AND C.EMPLID =3D B.EMPLID > AND C.ADMIT_TERM =3D A.STRM > AND B.ACAD_CAREER =3D A.ACAD_CAREER > AND C.ACAD_CAREER =3D B.ACAD_CAREER > AND B.STDNT_CAR_NBR =3D A.STDNT_CAR_NBR > AND C.STDNT_CAR_NBR =3D B.STDNT_CAR_NBR > AND C.ADM_APPL_NBR =3D B.ADM_APPL_NBR > AND C.EFFDT =3D (SELECT MAX(C2.EFFDT) FROM > PS_ADM_APPL_PROG C2 > WHERE C2.EMPLID =3D C.EMPLID > AND C2.ACAD_CAREER =3D > C.ACAD_CAREER > AND C2.STDNT_CAR_NBR =3D > C.STDNT_CAR_NBR > AND C2.ADM_APPL_NBR =3D > C.ADM_APPL_NBR > AND C2.INSTITUTION =3D > C.INSTITUTION > AND C2.EFFDT <=3D > {DateIn-Prefix}$AsOfToday{DateIn-Suffix}) > AND C.EFFSEQ =3D (SELECT MAX(C3.EFFSEQ) FROM > PS_ADM_APPL_PROG C3 > WHERE C3.EMPLID =3D C.EMPLID > AND C3.ACAD_CAREER =3D > C.ACAD_CAREER > AND C3.STDNT_CAR_NBR =3D > C.STDNT_CAR_NBR > AND C3.ADM_APPL_NBR =3D > C.ADM_APPL_NBR > AND C3.INSTITUTION =3D > C.INSTITUTION > AND C3.EFFDT =3D C.EFFDT) > AND B.ADMIT_TYPE =3D 'NEW' > [$AcadProgSel] > [$CampusSel] > ! AND C.CAMPUS =3D $Campus > ! AND NOT EXISTS (SELECT 'X' FROM > PS_STDNT_EQUTN_VAR D > - MOD - MLINDQUIST 4/19/04 > ! WHERE D.EMPLID =3D A.EMPLID > - MOD - MLINDQUIST 4/19/04 > ! AND D.BILLING_CAREER =3D > A.ACAD_CAREER > - MOD - MLINDQUIST 4/19/04 > ! AND D.STRM <=3D A.STRM > - MOD - MLINDQUIST 4/19/04 > ! AND D.VARIABLE_FLAG3 =3D 'Y') > - MOD - MLINDQUIST 4/19/04 > AND E.EMPLID =3D A.EMPLID > ORDER BY E.NAME, A.EMPLID > End-Select > > Show ' End-Procedure Process-Main > > !******************************************************* > Begin-Procedure Evaluate-Campus > !******************************************************* > #Debugp Show 'Evaluate-Campus' > Show 'Entering Evaluate-Campus' > > Evaluate $Campus > > When =3D 'BRB' > Let $AcadProgSel =3D 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel =3D 'AND C.CAMPUS IN > (''BRB'')' > > > When =3D 'BRN' > Let $AcadProgSel =3D 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel =3D 'AND C.CAMPUS IN > (''BRN'')' > > When =3D 'FDL' > Let $AcadProgSel =3D 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel =3D 'AND C.CAMPUS IN > (''FDL'')' > > When =3D 'MAN' > Let $AcadProgSel =3D 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel =3D 'AND C.CAMPUS IN > (''MAN'')' > > When =3D 'MTH' > Let $AcadProgSel =3D 'AND C.ACAD_PROG IN > (''DEG'',''NON'')' > Let $CampusSel =3D 'AND C.CAMPUS IN > (''MTH'')' > > When =3D 'MSF' > Let $AcadProgSel =3D 'AND C.ACAD_PROG IN > (''DEG'',''NON'')' > Let $CampusSel =3D 'AND C.CAMPUS IN > (''MSF'')' > > When =3D 'RLN' > Let $AcadProgSel =3D 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel =3D 'AND C.CAMPUS IN > (''RLN'')' > > When-Other > Let $AcadProgSel =3D 'AND C.ACAD_PROG IN > (''DEG'',''NON'')' > ! Let $CampusSel =3D 'AND C.CAMPUS IN > (''BRB'')' > > > End-Evaluate > > Show 'Campus =3D ' $Campus > Show 'AcadProgSel =3D ' $AcadProgSel > > > Show '< Exiting Evaluate-Campus' > End-Procedure Evaluate-Campus > > ________________________________ > > Maria K Lindquist > mlindqui@uwc.edu > IS Programmer/Analyst - Business Office > University of Wisconsin Colleges > 780 Regent St, PO Box 8680, Madison, WI 53708-8680 > Phone: 608.265.2677 / Fax: 608.265.5770 > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users DISCLAIMER: Information contained and transmitted by this E-MAIL is proprietary to Hexaware Technologies and is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at adminchn@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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Oct 18 11:29:21 2004 From: Bob Stone Subject: RE: [sqr-users] What is wrong???? Date: Mon, 18 Oct 2004 11:27:44 -0500 You should more use parentheses for your ands and ors to be more specific. It's good coding technique to be explicit in your logical operations. Ambiguity is not a programmers friend. Regardless of how exactly the SQR engine will interpret what you'd written...i dunno. What i do know is that if you stick in a few extra parentheseses, then you do no have to worry about it. AND (C.ACAD_PROG IN ('DEG', 'NON') AND C.CAMPUS IN ('MTH','MSF') OR C.ACAD_PROG IN ('DEG') AND C.CAMPUS IN ('BRB','BRN','FDL','MAN','RLN')) to say exactly what you want, should be written AND ( ( C.ACAD_PROG IN ('DEG', 'NON') AND C.CAMPUS IN ('MTH','MSF') ) OR ( C.ACAD_PROG IN ('DEG') AND C.CAMPUS IN ('BRB','BRN','FDL','MAN','RLN') ) ) I'm not an expert on how SQR will conisder that first OR, but as a logic person I think that it is looking at it like this. AND (C.ACAD_PROG IN ('DEG', 'NON') AND ( C.CAMPUS IN ('MTH','MSF') OR C.ACAD_PROG IN ('DEG') ) AND C.CAMPUS IN ('BRB','BRN','FDL','MAN','RLN')) What I think the other gentleman was referring to about using ORs for the logical operator as opposed to the IN means that instead of saying AND (C.ACAD_PROD IN ('DEG','NON') you could say AND (C.ACAD_PROD = 'DEG' OR C.ACAD_PROD = 'NON') ....which is somewhat faster because of the speed of the equal sign in SQL. However, if your SQR isn't running slowly, then I wouldn't worry about replacing all your INs with ORs. (you might go from 45 seconds to 40, but what would you end up doing with that extra 5 seconds anyway.) -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Lindquist, Maria Sent: Monday, October 18, 2004 11:07 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] What is wrong???? (X and Y) or ( Z and W) Well in other words I want it look select students according to the following: Campus = MTH and MSF where Acad Prog = NON and DEG And Campus = 'BRB' or 'BRN' or 'FDL' or 'MAN' or 'RLN' Where AcadProg = DEG Did I not code it correctly?????? Maria K Lindquist mlindqui@uwc.edu IS Programmer/Analyst - Business Office University of Wisconsin Colleges 780 Regent St, PO Box 8680, Madison, WI 53708-8680 Phone: 608.265.2677 / Fax: 608.265.5770 -----Original Message----- From: sqr-users-bounces+mlindqui=uwc.edu@sqrug.org [mailto:sqr-users-bounces+mlindqui=uwc.edu@sqrug.org] On Behalf Of Murty Mirthipati Venkata Suryanarayan Sent: Monday, October 18, 2004 10:57 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] What is wrong???? let me put it another way. This is rather a logical problem, I suppose. The way the logical operand's are arranged could be revisited. I suggest you better re-check your criterion:? is it (X and Y) or ( Z and W) or X and (Y or Z ) and W or As you have specified, X and Y or Z or W Cheers, Murty MVS -----Original Message----- From: David Thorburn [mailto:thorburn@conl.net] Sent: Saturday, October 16, 2004 12:52 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: Re: [sqr-users] What is wrong???? 'IN' is very 'costly' coding. OR's are processed faster. Best Regards, David __________________________________________________ David Otis Thorburn (916) 712-2272 thorburn@conl.net www.geocities.com/david_thorburn __________________________________________________ ----- Original Message ----- From: "Lindquist, Maria" To: "This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions." Sent: Friday, October 15, 2004 12:04 PM Subject: RE: [sqr-users] What is wrong???? Well I don't know what my problem is today but I just did this in the main process AND (C.ACAD_PROG IN ('DEG', 'NON') AND C.CAMPUS IN ('MTH','MSF') OR C.ACAD_PROG IN ('DEG') AND C.CAMPUS IN ('BRB','BRN','FDL','MAN','RLN')) And that did exactly what it was supposed to. Having lunch and listening to music on my headphones must have helped. Maria K Lindquist mlindqui@uwc.edu IS Programmer/Analyst - Business Office University of Wisconsin Colleges 780 Regent St, PO Box 8680, Madison, WI 53708-8680 Phone: 608.265.2677 / Fax: 608.265.5770 -----Original Message----- From: sqr-users-bounces+mlindqui=uwc.edu@sqrug.org [mailto:sqr-users-bounces+mlindqui=uwc.edu@sqrug.org] On Behalf Of Les Hancock Sent: Friday, October 15, 2004 12:06 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] What is wrong???? $Campus will not be defined until rows are returned. And then you evaluate the value of $Campus and set up the variables used in the Where clause ($AcadProgSel, $CampusSel). So, going into the Select, $AcadProgSel and $CampusSel will be empty and not used. It appears to me that you will need 2 or more separate select statements to do what you want to do. Les --- "Lindquist, Maria" wrote: > I don't know what I'm doing wrong in my SQR but it keeps turning on > the checkflag on the equation variable on students that are Non Degree > for certain campuses when I do not ask for them. I must be having a > major brain freeze today because I can't see it. Any suggestions on > the below? > > !******************************************************* > Begin-Procedure Process-Main > !******************************************************* > #Debugp Show 'Process-Main Procedure' > Show 'Entering Process-Main' > > Let #Total_New_Freshman = 0 > > Begin-Select > A.EMPLID > A.ACAD_CAREER > E.NAME > C.CAMPUS > > Let $Campus = &C.CAMPUS > > Let $Emplid = &A.EMPLID > Let $Billing_Career = &A.ACAD_CAREER > Let $Name = &E.Name > > > Do Evaluate-Campus > > Show 'Emplid = ' $Emplid > > Let $Flag_Exists = 'N' > Let $Row_Exists = 'N' > Do Check-Flag > Do Check-Prev-Flag > > If $Row_Exists = 'N' > Do Insert-Flag > Add 1 to #Total_New_Freshman > Else > If $Flag_Exists = 'N' > Do Update-Flag > Add 1 to #Total_New_Freshman > End-If > End-If > > Do Update-Tuit-Calc > > FROM PS_STDNT_CAR_TERM A, > PS_ADM_APPL_DATA B, > PS_ADM_APPL_PROG C, > PS_PERSONAL_DATA E > WHERE A.INSTITUTION = $Institution > AND A.STRM = $Strm > AND A.ACAD_LEVEL_BOT = '10' > AND B.INSTITUTION = A.INSTITUTION > AND C.INSTITUTION = B.INSTITUTION > AND B.EMPLID = A.EMPLID > AND C.EMPLID = B.EMPLID > AND C.ADMIT_TERM = A.STRM > AND B.ACAD_CAREER = A.ACAD_CAREER > AND C.ACAD_CAREER = B.ACAD_CAREER > AND B.STDNT_CAR_NBR = A.STDNT_CAR_NBR > AND C.STDNT_CAR_NBR = B.STDNT_CAR_NBR > AND C.ADM_APPL_NBR = B.ADM_APPL_NBR > AND C.EFFDT = (SELECT MAX(C2.EFFDT) FROM > PS_ADM_APPL_PROG C2 > WHERE C2.EMPLID = C.EMPLID > AND C2.ACAD_CAREER = > C.ACAD_CAREER > AND C2.STDNT_CAR_NBR = > C.STDNT_CAR_NBR > AND C2.ADM_APPL_NBR = > C.ADM_APPL_NBR > AND C2.INSTITUTION = > C.INSTITUTION > AND C2.EFFDT <= > {DateIn-Prefix}$AsOfToday{DateIn-Suffix}) > AND C.EFFSEQ = (SELECT MAX(C3.EFFSEQ) FROM > PS_ADM_APPL_PROG C3 > WHERE C3.EMPLID = C.EMPLID > AND C3.ACAD_CAREER = > C.ACAD_CAREER > AND C3.STDNT_CAR_NBR = > C.STDNT_CAR_NBR > AND C3.ADM_APPL_NBR = > C.ADM_APPL_NBR > AND C3.INSTITUTION = > C.INSTITUTION > AND C3.EFFDT = C.EFFDT) > AND B.ADMIT_TYPE = 'NEW' > [$AcadProgSel] > [$CampusSel] > ! AND C.CAMPUS = $Campus > ! AND NOT EXISTS (SELECT 'X' FROM > PS_STDNT_EQUTN_VAR D > - MOD - MLINDQUIST 4/19/04 > ! WHERE D.EMPLID = A.EMPLID > - MOD - MLINDQUIST 4/19/04 > ! AND D.BILLING_CAREER = > A.ACAD_CAREER > - MOD - MLINDQUIST 4/19/04 > ! AND D.STRM <= A.STRM > - MOD - MLINDQUIST 4/19/04 > ! AND D.VARIABLE_FLAG3 = 'Y') > - MOD - MLINDQUIST 4/19/04 > AND E.EMPLID = A.EMPLID > ORDER BY E.NAME, A.EMPLID > End-Select > > Show ' End-Procedure Process-Main > > !******************************************************* > Begin-Procedure Evaluate-Campus > !******************************************************* > #Debugp Show 'Evaluate-Campus' > Show 'Entering Evaluate-Campus' > > Evaluate $Campus > > When = 'BRB' > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel = 'AND C.CAMPUS IN > (''BRB'')' > > > When = 'BRN' > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel = 'AND C.CAMPUS IN > (''BRN'')' > > When = 'FDL' > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel = 'AND C.CAMPUS IN > (''FDL'')' > > When = 'MAN' > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel = 'AND C.CAMPUS IN > (''MAN'')' > > When = 'MTH' > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'',''NON'')' > Let $CampusSel = 'AND C.CAMPUS IN > (''MTH'')' > > When = 'MSF' > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'',''NON'')' > Let $CampusSel = 'AND C.CAMPUS IN > (''MSF'')' > > When = 'RLN' > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel = 'AND C.CAMPUS IN > (''RLN'')' > > When-Other > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'',''NON'')' > ! Let $CampusSel = 'AND C.CAMPUS IN > (''BRB'')' > > > End-Evaluate > > Show 'Campus = ' $Campus > Show 'AcadProgSel = ' $AcadProgSel > > > Show '< Exiting Evaluate-Campus' > End-Procedure Evaluate-Campus > > ________________________________ > > Maria K Lindquist > mlindqui@uwc.edu > IS Programmer/Analyst - Business Office > University of Wisconsin Colleges > 780 Regent St, PO Box 8680, Madison, WI 53708-8680 > Phone: 608.265.2677 / Fax: 608.265.5770 > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users DISCLAIMER: Information contained and transmitted by this E-MAIL is proprietary to Hexaware Technologies and is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at adminchn@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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Oct 18 11:52:39 2004 From: Bob Stone Subject: RE: [sqr-users] What is wrong???? Date: Mon, 18 Oct 2004 11:49:35 -0500 wow. apparently english isn't my strong suit. The sad thing is that i proofread that mumbo-jumbo, and still made about 142 grammatical errors. let me try that again, since most of my point gets lost by the fact that I cant type or speak. (its monday folks). You should use more parentheses to make ANDs and ORs extremely specific. It's better coding techique to be explicit about logical operations. You do not want to be ambigous, because then you're at the mercy of the SQR engine's logic interpreter. I dont know exactly which way SQR would interpret your statement...but my guess is that it would group the AND a AND ( b OR c) AND D ...which isn't what you wanted. Maybe I'm wrong on that. However, if you were to be explicit (parentheses) then you dont risk letting the logic interpeter misinterpret your interpretation of what the interpreter should interpret. I think my SQR statments were relatively clear, but let me rewrite them anyway. You wrote: AND a AND b OR c AND d which might be interpreted as AND a AND ( b OR c) AND D ...or some other way that you do not want. but if you were more specific and parentheses-happy saying AND ( (A AND B) OR (C AND D) ) then you'd be set. I think my point about the IN verses equals was clear enough. Next time I reply to something I'll try to sound slightly more legible and intelligible...sorry about that. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Bob You should more use parentheses for your ands and ors to be more specific. It's good coding technique to be explicit in your logical operations. Ambiguity is not a programmers friend. Regardless of how exactly the SQR engine will interpret what you'd written...i dunno. What i do know is that if you stick in a few extra parentheseses, then you do no have to worry about it. AND (C.ACAD_PROG IN ('DEG', 'NON') AND C.CAMPUS IN ('MTH','MSF') OR C.ACAD_PROG IN ('DEG') AND C.CAMPUS IN ('BRB','BRN','FDL','MAN','RLN')) to say exactly what you want, should be written AND ( ( C.ACAD_PROG IN ('DEG', 'NON') AND C.CAMPUS IN ('MTH','MSF') ) OR ( C.ACAD_PROG IN ('DEG') AND C.CAMPUS IN ('BRB','BRN','FDL','MAN','RLN') ) ) I'm not an expert on how SQR will conisder that first OR, but as a logic person I think that it is looking at it like this. AND (C.ACAD_PROG IN ('DEG', 'NON') AND ( C.CAMPUS IN ('MTH','MSF') OR C.ACAD_PROG IN ('DEG') ) AND C.CAMPUS IN ('BRB','BRN','FDL','MAN','RLN')) What I think the other gentleman was referring to about using ORs for the logical operator as opposed to the IN means that instead of saying AND (C.ACAD_PROD IN ('DEG','NON') you could say AND (C.ACAD_PROD = 'DEG' OR C.ACAD_PROD = 'NON') ....which is somewhat faster because of the speed of the equal sign in SQL. However, if your SQR isn't running slowly, then I wouldn't worry about replacing all your INs with ORs. (you might go from 45 seconds to 40, but what would you end up doing with that extra 5 seconds anyway.) -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Lindquist, Maria Sent: Monday, October 18, 2004 11:07 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] What is wrong???? (X and Y) or ( Z and W) Well in other words I want it look select students according to the following: Campus = MTH and MSF where Acad Prog = NON and DEG And Campus = 'BRB' or 'BRN' or 'FDL' or 'MAN' or 'RLN' Where AcadProg = DEG Did I not code it correctly?????? Maria K Lindquist mlindqui@uwc.edu IS Programmer/Analyst - Business Office University of Wisconsin Colleges 780 Regent St, PO Box 8680, Madison, WI 53708-8680 Phone: 608.265.2677 / Fax: 608.265.5770 -----Original Message----- From: sqr-users-bounces+mlindqui=uwc.edu@sqrug.org [mailto:sqr-users-bounces+mlindqui=uwc.edu@sqrug.org] On Behalf Of Murty Mirthipati Venkata Suryanarayan Sent: Monday, October 18, 2004 10:57 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] What is wrong???? let me put it another way. This is rather a logical problem, I suppose. The way the logical operand's are arranged could be revisited. I suggest you better re-check your criterion:? is it (X and Y) or ( Z and W) or X and (Y or Z ) and W or As you have specified, X and Y or Z or W Cheers, Murty MVS -----Original Message----- From: David Thorburn [mailto:thorburn@conl.net] Sent: Saturday, October 16, 2004 12:52 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: Re: [sqr-users] What is wrong???? 'IN' is very 'costly' coding. OR's are processed faster. Best Regards, David __________________________________________________ David Otis Thorburn (916) 712-2272 thorburn@conl.net www.geocities.com/david_thorburn __________________________________________________ ----- Original Message ----- From: "Lindquist, Maria" To: "This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions." Sent: Friday, October 15, 2004 12:04 PM Subject: RE: [sqr-users] What is wrong???? Well I don't know what my problem is today but I just did this in the main process AND (C.ACAD_PROG IN ('DEG', 'NON') AND C.CAMPUS IN ('MTH','MSF') OR C.ACAD_PROG IN ('DEG') AND C.CAMPUS IN ('BRB','BRN','FDL','MAN','RLN')) And that did exactly what it was supposed to. Having lunch and listening to music on my headphones must have helped. Maria K Lindquist mlindqui@uwc.edu IS Programmer/Analyst - Business Office University of Wisconsin Colleges 780 Regent St, PO Box 8680, Madison, WI 53708-8680 Phone: 608.265.2677 / Fax: 608.265.5770 -----Original Message----- From: sqr-users-bounces+mlindqui=uwc.edu@sqrug.org [mailto:sqr-users-bounces+mlindqui=uwc.edu@sqrug.org] On Behalf Of Les Hancock Sent: Friday, October 15, 2004 12:06 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] What is wrong???? $Campus will not be defined until rows are returned. And then you evaluate the value of $Campus and set up the variables used in the Where clause ($AcadProgSel, $CampusSel). So, going into the Select, $AcadProgSel and $CampusSel will be empty and not used. It appears to me that you will need 2 or more separate select statements to do what you want to do. Les --- "Lindquist, Maria" wrote: > I don't know what I'm doing wrong in my SQR but it keeps turning on > the checkflag on the equation variable on students that are Non Degree > for certain campuses when I do not ask for them. I must be having a > major brain freeze today because I can't see it. Any suggestions on > the below? > > !******************************************************* > Begin-Procedure Process-Main > !******************************************************* > #Debugp Show 'Process-Main Procedure' > Show 'Entering Process-Main' > > Let #Total_New_Freshman = 0 > > Begin-Select > A.EMPLID > A.ACAD_CAREER > E.NAME > C.CAMPUS > > Let $Campus = &C.CAMPUS > > Let $Emplid = &A.EMPLID > Let $Billing_Career = &A.ACAD_CAREER > Let $Name = &E.Name > > > Do Evaluate-Campus > > Show 'Emplid = ' $Emplid > > Let $Flag_Exists = 'N' > Let $Row_Exists = 'N' > Do Check-Flag > Do Check-Prev-Flag > > If $Row_Exists = 'N' > Do Insert-Flag > Add 1 to #Total_New_Freshman > Else > If $Flag_Exists = 'N' > Do Update-Flag > Add 1 to #Total_New_Freshman > End-If > End-If > > Do Update-Tuit-Calc > > FROM PS_STDNT_CAR_TERM A, > PS_ADM_APPL_DATA B, > PS_ADM_APPL_PROG C, > PS_PERSONAL_DATA E > WHERE A.INSTITUTION = $Institution > AND A.STRM = $Strm > AND A.ACAD_LEVEL_BOT = '10' > AND B.INSTITUTION = A.INSTITUTION > AND C.INSTITUTION = B.INSTITUTION > AND B.EMPLID = A.EMPLID > AND C.EMPLID = B.EMPLID > AND C.ADMIT_TERM = A.STRM > AND B.ACAD_CAREER = A.ACAD_CAREER > AND C.ACAD_CAREER = B.ACAD_CAREER > AND B.STDNT_CAR_NBR = A.STDNT_CAR_NBR > AND C.STDNT_CAR_NBR = B.STDNT_CAR_NBR > AND C.ADM_APPL_NBR = B.ADM_APPL_NBR > AND C.EFFDT = (SELECT MAX(C2.EFFDT) FROM > PS_ADM_APPL_PROG C2 > WHERE C2.EMPLID = C.EMPLID > AND C2.ACAD_CAREER = > C.ACAD_CAREER > AND C2.STDNT_CAR_NBR = > C.STDNT_CAR_NBR > AND C2.ADM_APPL_NBR = > C.ADM_APPL_NBR > AND C2.INSTITUTION = > C.INSTITUTION > AND C2.EFFDT <= > {DateIn-Prefix}$AsOfToday{DateIn-Suffix}) > AND C.EFFSEQ = (SELECT MAX(C3.EFFSEQ) FROM > PS_ADM_APPL_PROG C3 > WHERE C3.EMPLID = C.EMPLID > AND C3.ACAD_CAREER = > C.ACAD_CAREER > AND C3.STDNT_CAR_NBR = > C.STDNT_CAR_NBR > AND C3.ADM_APPL_NBR = > C.ADM_APPL_NBR > AND C3.INSTITUTION = > C.INSTITUTION > AND C3.EFFDT = C.EFFDT) > AND B.ADMIT_TYPE = 'NEW' > [$AcadProgSel] > [$CampusSel] > ! AND C.CAMPUS = $Campus > ! AND NOT EXISTS (SELECT 'X' FROM > PS_STDNT_EQUTN_VAR D > - MOD - MLINDQUIST 4/19/04 > ! WHERE D.EMPLID = A.EMPLID > - MOD - MLINDQUIST 4/19/04 > ! AND D.BILLING_CAREER = > A.ACAD_CAREER > - MOD - MLINDQUIST 4/19/04 > ! AND D.STRM <= A.STRM > - MOD - MLINDQUIST 4/19/04 > ! AND D.VARIABLE_FLAG3 = 'Y') > - MOD - MLINDQUIST 4/19/04 > AND E.EMPLID = A.EMPLID > ORDER BY E.NAME, A.EMPLID > End-Select > > Show ' End-Procedure Process-Main > > !******************************************************* > Begin-Procedure Evaluate-Campus > !******************************************************* > #Debugp Show 'Evaluate-Campus' > Show 'Entering Evaluate-Campus' > > Evaluate $Campus > > When = 'BRB' > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel = 'AND C.CAMPUS IN > (''BRB'')' > > > When = 'BRN' > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel = 'AND C.CAMPUS IN > (''BRN'')' > > When = 'FDL' > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel = 'AND C.CAMPUS IN > (''FDL'')' > > When = 'MAN' > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel = 'AND C.CAMPUS IN > (''MAN'')' > > When = 'MTH' > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'',''NON'')' > Let $CampusSel = 'AND C.CAMPUS IN > (''MTH'')' > > When = 'MSF' > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'',''NON'')' > Let $CampusSel = 'AND C.CAMPUS IN > (''MSF'')' > > When = 'RLN' > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel = 'AND C.CAMPUS IN > (''RLN'')' > > When-Other > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'',''NON'')' > ! Let $CampusSel = 'AND C.CAMPUS IN > (''BRB'')' > > > End-Evaluate > > Show 'Campus = ' $Campus > Show 'AcadProgSel = ' $AcadProgSel > > > Show '< Exiting Evaluate-Campus' > End-Procedure Evaluate-Campus > > ________________________________ > > Maria K Lindquist > mlindqui@uwc.edu > IS Programmer/Analyst - Business Office > University of Wisconsin Colleges > 780 Regent St, PO Box 8680, Madison, WI 53708-8680 > Phone: 608.265.2677 / Fax: 608.265.5770 > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users DISCLAIMER: Information contained and transmitted by this E-MAIL is proprietary to Hexaware Technologies and is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at adminchn@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 _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Tue Oct 19 02:22:59 2004 From: "Ulf Borgen" Date: Tue, 19 Oct 2004 09:19:18 +0200 Subject: [sqr-users] Fw: Problem with special characters Klar dag Hi, We are using sqr version 8.1 on a unix server (HP-UX ver 11 with Oracle). This is a part of my sqr-program: let #num =3D 123.45 move #num to $num '999,990.00' print 'UTL=C4GG' (+2,10) print $num (0,22) 1) If I compile this program, and then run the sqt-file, the number $num is= =20 printed one position too far to the left. 2) If I compile and run at the same time (sqr with no options) the result i= s=20 correct 3) If I do as in 1) but on our old server with sqr ver 3, the result is=20 correct 4) If I replace 'UTL=C4GG' with 'UTLEGG' and do as i 1), the result is=20 correct. Can anyone tell me what to do with this problem so that I can run 1) with= =20 correct result? With Kind regards for the Intrum group in Scandinavia Ulf Borgen=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Oct 19 07:11:49 2004 Date: Tue, 19 Oct 2004 08:10:10 -0400 From: "George Jansen" Subject: RE: [sqr-users] What is wrong???? Why not set up a table, somewhere, called something like PROGRAMS_OF_INTEREST, with two columns, namely CAMPUS and ACAD_PROGRAM. Then your SQL becomes (campus, acad_program) IN (SELECT campus, acad_program FROM programs_of_interest) Not only is the SQL less convoluted, it is generally better to put such business rules in a database table rather than down in a a procedure of a report program. >>> mlindqui@uwc.edu 10/18/2004 12:07:23 PM >>> (X and Y) or ( Z and W) Well in other words I want it look select students according to the following: Campus = MTH and MSF where Acad Prog = NON and DEG And Campus = 'BRB' or 'BRN' or 'FDL' or 'MAN' or 'RLN' Where AcadProg = DEG Did I not code it correctly?????? Maria K Lindquist mlindqui@uwc.edu IS Programmer/Analyst - Business Office University of Wisconsin Colleges 780 Regent St, PO Box 8680, Madison, WI 53708-8680 Phone: 608.265.2677 / Fax: 608.265.5770 -----Original Message----- From: sqr-users-bounces+mlindqui=uwc.edu@sqrug.org [mailto:sqr-users-bounces+mlindqui=uwc.edu@sqrug.org] On Behalf Of Murty Mirthipati Venkata Suryanarayan Sent: Monday, October 18, 2004 10:57 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] What is wrong???? let me put it another way. This is rather a logical problem, I suppose. The way the logical operand's are arranged could be revisited. I suggest you better re-check your criterion:? is it (X and Y) or ( Z and W) or X and (Y or Z ) and W or As you have specified, X and Y or Z or W Cheers, Murty MVS -----Original Message----- From: David Thorburn [mailto:thorburn@conl.net] Sent: Saturday, October 16, 2004 12:52 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: Re: [sqr-users] What is wrong???? 'IN' is very 'costly' coding. OR's are processed faster. Best Regards, David __________________________________________________ David Otis Thorburn (916) 712-2272 thorburn@conl.net www.geocities.com/david_thorburn __________________________________________________ ----- Original Message ----- From: "Lindquist, Maria" To: "This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions." Sent: Friday, October 15, 2004 12:04 PM Subject: RE: [sqr-users] What is wrong???? Well I don't know what my problem is today but I just did this in the main process AND (C.ACAD_PROG IN ('DEG', 'NON') AND C.CAMPUS IN ('MTH','MSF') OR C.ACAD_PROG IN ('DEG') AND C.CAMPUS IN ('BRB','BRN','FDL','MAN','RLN')) And that did exactly what it was supposed to. Having lunch and listening to music on my headphones must have helped. Maria K Lindquist mlindqui@uwc.edu IS Programmer/Analyst - Business Office University of Wisconsin Colleges 780 Regent St, PO Box 8680, Madison, WI 53708-8680 Phone: 608.265.2677 / Fax: 608.265.5770 -----Original Message----- From: sqr-users-bounces+mlindqui=uwc.edu@sqrug.org [mailto:sqr-users-bounces+mlindqui=uwc.edu@sqrug.org] On Behalf Of Les Hancock Sent: Friday, October 15, 2004 12:06 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] What is wrong???? $Campus will not be defined until rows are returned. And then you evaluate the value of $Campus and set up the variables used in the Where clause ($AcadProgSel, $CampusSel). So, going into the Select, $AcadProgSel and $CampusSel will be empty and not used. It appears to me that you will need 2 or more separate select statements to do what you want to do. Les --- "Lindquist, Maria" wrote: > I don't know what I'm doing wrong in my SQR but it keeps turning on > the checkflag on the equation variable on students that are Non Degree > for certain campuses when I do not ask for them. I must be having a > major brain freeze today because I can't see it. Any suggestions on > the below? > > !******************************************************* > Begin-Procedure Process-Main > !******************************************************* > #Debugp Show 'Process-Main Procedure' > Show 'Entering Process-Main' > > Let #Total_New_Freshman = 0 > > Begin-Select > A.EMPLID > A.ACAD_CAREER > E.NAME > C.CAMPUS > > Let $Campus = &C.CAMPUS > > Let $Emplid = &A.EMPLID > Let $Billing_Career = &A.ACAD_CAREER > Let $Name = &E.Name > > > Do Evaluate-Campus > > Show 'Emplid = ' $Emplid > > Let $Flag_Exists = 'N' > Let $Row_Exists = 'N' > Do Check-Flag > Do Check-Prev-Flag > > If $Row_Exists = 'N' > Do Insert-Flag > Add 1 to #Total_New_Freshman > Else > If $Flag_Exists = 'N' > Do Update-Flag > Add 1 to #Total_New_Freshman > End-If > End-If > > Do Update-Tuit-Calc > > FROM PS_STDNT_CAR_TERM A, > PS_ADM_APPL_DATA B, > PS_ADM_APPL_PROG C, > PS_PERSONAL_DATA E > WHERE A.INSTITUTION = $Institution > AND A.STRM = $Strm > AND A.ACAD_LEVEL_BOT = '10' > AND B.INSTITUTION = A.INSTITUTION > AND C.INSTITUTION = B.INSTITUTION > AND B.EMPLID = A.EMPLID > AND C.EMPLID = B.EMPLID > AND C.ADMIT_TERM = A.STRM > AND B.ACAD_CAREER = A.ACAD_CAREER > AND C.ACAD_CAREER = B.ACAD_CAREER > AND B.STDNT_CAR_NBR = A.STDNT_CAR_NBR > AND C.STDNT_CAR_NBR = B.STDNT_CAR_NBR > AND C.ADM_APPL_NBR = B.ADM_APPL_NBR > AND C.EFFDT = (SELECT MAX(C2.EFFDT) FROM > PS_ADM_APPL_PROG C2 > WHERE C2.EMPLID = C.EMPLID > AND C2.ACAD_CAREER = > C.ACAD_CAREER > AND C2.STDNT_CAR_NBR = > C.STDNT_CAR_NBR > AND C2.ADM_APPL_NBR = > C.ADM_APPL_NBR > AND C2.INSTITUTION = > C.INSTITUTION > AND C2.EFFDT <= > {DateIn-Prefix}$AsOfToday{DateIn-Suffix}) > AND C.EFFSEQ = (SELECT MAX(C3.EFFSEQ) FROM > PS_ADM_APPL_PROG C3 > WHERE C3.EMPLID = C.EMPLID > AND C3.ACAD_CAREER = > C.ACAD_CAREER > AND C3.STDNT_CAR_NBR = > C.STDNT_CAR_NBR > AND C3.ADM_APPL_NBR = > C.ADM_APPL_NBR > AND C3.INSTITUTION = > C.INSTITUTION > AND C3.EFFDT = C.EFFDT) > AND B.ADMIT_TYPE = 'NEW' > [$AcadProgSel] > [$CampusSel] > ! AND C.CAMPUS = $Campus > ! AND NOT EXISTS (SELECT 'X' FROM > PS_STDNT_EQUTN_VAR D > - MOD - MLINDQUIST 4/19/04 > ! WHERE D.EMPLID = A.EMPLID > - MOD - MLINDQUIST 4/19/04 > ! AND D.BILLING_CAREER = > A.ACAD_CAREER > - MOD - MLINDQUIST 4/19/04 > ! AND D.STRM <= A.STRM > - MOD - MLINDQUIST 4/19/04 > ! AND D.VARIABLE_FLAG3 = 'Y') > - MOD - MLINDQUIST 4/19/04 > AND E.EMPLID = A.EMPLID > ORDER BY E.NAME, A.EMPLID > End-Select > > Show ' End-Procedure Process-Main > > !******************************************************* > Begin-Procedure Evaluate-Campus > !******************************************************* > #Debugp Show 'Evaluate-Campus' > Show 'Entering Evaluate-Campus' > > Evaluate $Campus > > When = 'BRB' > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel = 'AND C.CAMPUS IN > (''BRB'')' > > > When = 'BRN' > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel = 'AND C.CAMPUS IN > (''BRN'')' > > When = 'FDL' > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel = 'AND C.CAMPUS IN > (''FDL'')' > > When = 'MAN' > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel = 'AND C.CAMPUS IN > (''MAN'')' > > When = 'MTH' > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'',''NON'')' > Let $CampusSel = 'AND C.CAMPUS IN > (''MTH'')' > > When = 'MSF' > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'',''NON'')' > Let $CampusSel = 'AND C.CAMPUS IN > (''MSF'')' > > When = 'RLN' > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'')' > Let $CampusSel = 'AND C.CAMPUS IN > (''RLN'')' > > When-Other > Let $AcadProgSel = 'AND C.ACAD_PROG IN > (''DEG'',''NON'')' > ! Let $CampusSel = 'AND C.CAMPUS IN > (''BRB'')' > > > End-Evaluate > > Show 'Campus = ' $Campus > Show 'AcadProgSel = ' $AcadProgSel > > > Show '< Exiting Evaluate-Campus' > End-Procedure Evaluate-Campus > > ________________________________ > > Maria K Lindquist > mlindqui@uwc.edu > IS Programmer/Analyst - Business Office > University of Wisconsin Colleges > 780 Regent St, PO Box 8680, Madison, WI 53708-8680 > Phone: 608.265.2677 / Fax: 608.265.5770 > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users DISCLAIMER: Information contained and transmitted by this E-MAIL is proprietary to Hexaware Technologies and is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at adminchn@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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Oct 19 09:36:05 2004 From: harriaj@NU.COM Date: Tue, 19 Oct 2004 10:33:30 -0400 Subject: [sqr-users] reporting specs I am a well-versed SQR developer. At my new job, I asked for the specs for the new reports they want me to write. The response was "uhhhh, specs?". So now I find myself faced with the task of writing 45 specs. I can do it; I have enough overall experience. The reason I am turning to all of you is to get some ideas for structure. I invite you to send me an example of the specs you use -- business and/or technical. Please reply to me directly, not the list. The list does not need to be bombarded with attachments. Thank you. Andrew :) Reporting Hero X 3523 ********************************************************************** This e-mail, including any files or attachments transmitted with it, is confidential and intended for a specific purpose and for use only by the individual or entity to whom it is addressed. Any disclosure, copying or distribution of this e-mail or the taking of any action based on its contents, other than for its intended purpose, is strictly prohibited. If you have received this e-mail in error, please notify the sender immediately and delete it from your system. Any views or opinions expressed in this e-mail are not necessarily those of Northeast Utilities, its subsidiaries and affiliates (NU). E-mail transmission cannot be guaranteed to be error-free or secure or free from viruses, and NU disclaims all liability for any resulting damage, errors, or omissions. ********************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Oct 19 09:42:48 2004 Subject: RE: [sqr-users] reporting specs Date: Tue, 19 Oct 2004 08:41:35 -0600 From: "Bartlett, Dwain" This is a multi-part message in MIME format... ------_=_NextPart_001_01C4B5E9.BB980D69 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Here is one that I did. Dwain Bartlett SABHRS Services Bureau, ITSD HR Systems Analyst (406) 444-0418 dbartlett@state.mt.us -----Original Message----- From: harriaj@NU.COM [mailto:harriaj@NU.COM] Sent: Tuesday, October 19, 2004 8:34 AM To: sqr-users@sqrug.org Subject: [sqr-users] reporting specs I am a well-versed SQR developer. At my new job, I asked for the specs for the new reports they want me to write. The response was "uhhhh, specs?". So now I find myself faced with the task of writing 45 specs. I can do it; I have enough overall experience. The reason I am turning to all of you is to get some ideas for structure. I invite you to send me an example of the specs you use -- business and/or technical. Please reply to me directly, not the list. The list does not need to be bombarded with attachments. Thank you. Andrew :) Reporting Hero X 3523 ********************************************************************** This e-mail, including any files or attachments transmitted with it, is confidential and intended for a specific purpose and for use only by the individual or entity to whom it is addressed. Any disclosure, copying or distribution of this e-mail or the taking of any action based on its contents, other than for its intended purpose, is strictly prohibited. If you have received this e-mail in error, please notify the sender immediately and delete it from your system. Any views or opinions expressed in this e-mail are not necessarily those of Northeast Utilities, its subsidiaries and affiliates (NU). E-mail transmission cannot be guaranteed to be error-free or secure or free from viruses, and NU disclaims all liability for any resulting damage, errors, or omissions. ********************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------_=_NextPart_001_01C4B5E9.BB980D69 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/msword' MIME type. It has been automatically discarded before sending the message to the list. ------_=_NextPart_001_01C4B5E9.BB980D69 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_01C4B5E9.BB980D69-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Oct 19 09:48:45 2004 From: "the dragon" Subject: RE: [sqr-users] reporting specs Date: Tue, 19 Oct 2004 09:45:38 -0500 How in depth do you want them? I have a few examples (somewhere - probably at home on a cd), from the kind of specs you do in a paper napkin to the kind you do that include tissue samples. Wouldn't the client have a template for you to use? peace, clark 'the dragon' willis +-----+ | ABB | +-----+ ----Original Message Follows---- I am a well-versed SQR developer. At my new job, I asked for the specs for the new reports they want me to write. The response was "uhhhh, specs?". So now I find myself faced with the task of writing 45 specs. I can do it; I have enough overall experience. The reason I am turning to all of you is to get some ideas for structure. I invite you to send me an example of the specs you use -- business and/or technical. Please reply to me directly, not the list. The list does not need to be bombarded with attachments. Thank you. Andrew :) Reporting Hero X 3523 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Oct 19 10:29:58 2004 Subject: RE: [sqr-users] reporting specs From: harriaj@NU.COM Date: Tue, 19 Oct 2004 11:28:51 -0400 << How in depth do you want them? I have a few examples (somewhere - probably at home on a cd), from the kind of specs you do in a paper napkin to the kind you do that include tissue samples. Wouldn't the client have a template for you to use? >> They've never built a reporting system and therefore have never written reporting specs. Since I am introducing them to the whole process, the more comprehensive the example the better. Something that you were glad to get. Something that made you feel you knew exactly what you were supposed to write. Something that both you and the user could understand. Andrew :) ********************************************************************** This e-mail, including any files or attachments transmitted with it, is confidential and intended for a specific purpose and for use only by the individual or entity to whom it is addressed. Any disclosure, copying or distribution of this e-mail or the taking of any action based on its contents, other than for its intended purpose, is strictly prohibited. If you have received this e-mail in error, please notify the sender immediately and delete it from your system. Any views or opinions expressed in this e-mail are not necessarily those of Northeast Utilities, its subsidiaries and affiliates (NU). E-mail transmission cannot be guaranteed to be error-free or secure or free from viruses, and NU disclaims all liability for any resulting damage, errors, or omissions. ********************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Oct 19 11:13:41 2004 Subject: RE: [sqr-users] reporting specs Date: Tue, 19 Oct 2004 11:12:35 -0500 From: "Knapp, Richard" There are two kinds of specs - functional and technical. The best I've ever seen were written by a functional person very well versed in her functional area who knew exactly! what she wanted and could clearly (though not really concisely) explain that - in PLIAN ENGLISH. She ALSO took the time to get with her technical people to specify the source fields for specific data items. You will not ever ever find specs like this so don't even get your hopes up. If you can just get the functional people to say in ordinary language what they want, you have done a great work. It takes a special talent to elicit these functional specs. The people who do this are called business analysts. They know business and can write clearly. They are clarity bloodhounds. They often require frequent meetings with each of their clients. If you, as a technical person, are thinking of doing this AND the technical work, which ought to include corresponding technical specs for purposes of documentation if nothing else, please think again. You will be torn to shreds. Not even all the King's horses and all the King's men will be able to put you together again (or you will miss so many deadlines that you will loose your job.) Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 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 harriaj@NU.COM Sent: Tuesday, October 19, 2004 9:34 AM To: sqr-users@sqrug.org Subject: [sqr-users] reporting specs I am a well-versed SQR developer. At my new job, I asked for the specs for the new reports they want me to write. The response was "uhhhh, specs?". So now I find myself faced with the task of writing 45 specs. I can do it; I have enough overall experience. The reason I am turning to all of you is to get some ideas for structure. I invite you to send me an example of the specs you use -- business and/or technical. Please reply to me directly, not the list. The list does not need to be bombarded with attachments. Thank you. Andrew :) Reporting Hero X 3523 ********************************************************************** This e-mail, including any files or attachments transmitted with it, is confidential and intended for a specific purpose and for use only by the individual or entity to whom it is addressed. Any disclosure, copying or distribution of this e-mail or the taking of any action based on its contents, other than for its intended purpose, is strictly prohibited. If you have received this e-mail in error, please notify the sender immediately and delete it from your system. Any views or opinions expressed in this e-mail are not necessarily those of Northeast Utilities, its subsidiaries and affiliates (NU). E-mail transmission cannot be guaranteed to be error-free or secure or free from viruses, and NU disclaims all liability for any resulting damage, errors, or omissions. ********************************************************************** _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Tue Oct 19 11:29:35 2004 Date: Tue, 19 Oct 2004 12:26:51 -0400 From: "Jessie Dickenson" Subject: [sqr-users] Help on Time Slicing. I have the following requirement & since I have exhausted all ideas, I am turning to this group for help. This is predominantly a SQL issue. I need to run a report for a certain date range: say, for example: 03/29/04 to 07/25/04 The requirement sounds simple: List all deals that have agents with commissions less than 100% during this time frame. Business Scenario: 1. A deal can have multiple agents. 2. Each agent can be assigned less than 100% commission. So, let's say a deal has 5 agents, covering 5 typical scenarios: Scenario 1: Agent's effective dates are for the reporting date range - So, agent.eff_date = 03/29/04 and agent.end_date = 07/25/04, with a commission of 30%. Scenario 2: Agent's effective dates fall within the reporting date range - So, agent.eff_date = 04/29/04 and agent.end_date = 06/25/04, with a commission of 20%. Scenario 3: Agent's effective dates covers the reporting date range - So, agent.eff_date = 01/29/04 and agent.end_date = 09/25/04, with a commission of 30%. Scenario 4: Agent's effective dates partially covers the reporting date range around the Start date of the run - So, agent.eff_date = 01/29/04 and agent.end_date = 05/25/04, with a commission of 10%. Scenario 5: Agent's effective dates partially covers the reporting date range around the End date of the run - So, agent.eff_date = 05/26/04 and agent.end_date = 09/25/04, with a commission of 10%. I need to time slice the effective dates of the 5 agents, so that for each time slice, I can sum up the percentage commission & list those deals with not-100% commissions for any of these time slices. If any of you has any ideas to throw in, I would greatly appreciate your help. I am thinking that a procedure is needed here. But if someone has ideas for a simple SQL, I gladly look forward to your ideas. Thanks in advance. Jessie _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Oct 19 12:21:58 2004 Date: Tue, 19 Oct 2004 13:20:28 -0400 From: "George Jansen" Subject: Re: [sqr-users] Help on Time Slicing. Shouldn't the clause be something like (agent.eff_dt between rep.start and rep.end OR agent.end_dt between rep.start and rep.end OR rep.start between agent.eff_dt and agent.end_dt OR rep.end between agent.eff_dt and agent.end_dt) ? >>> JMDICKENSON@rainbow-media.com 10/19/2004 12:26:51 PM >>> I have the following requirement & since I have exhausted all ideas, I am turning to this group for help. This is predominantly a SQL issue. I need to run a report for a certain date range: say, for example: 03/29/04 to 07/25/04 The requirement sounds simple: List all deals that have agents with commissions less than 100% during this time frame. Business Scenario: 1. A deal can have multiple agents. 2. Each agent can be assigned less than 100% commission. So, let's say a deal has 5 agents, covering 5 typical scenarios: Scenario 1: Agent's effective dates are for the reporting date range - So, agent.eff_date = 03/29/04 and agent.end_date = 07/25/04, with a commission of 30%. Scenario 2: Agent's effective dates fall within the reporting date range - So, agent.eff_date = 04/29/04 and agent.end_date = 06/25/04, with a commission of 20%. Scenario 3: Agent's effective dates covers the reporting date range - So, agent.eff_date = 01/29/04 and agent.end_date = 09/25/04, with a commission of 30%. Scenario 4: Agent's effective dates partially covers the reporting date range around the Start date of the run - So, agent.eff_date = 01/29/04 and agent.end_date = 05/25/04, with a commission of 10%. Scenario 5: Agent's effective dates partially covers the reporting date range around the End date of the run - So, agent.eff_date = 05/26/04 and agent.end_date = 09/25/04, with a commission of 10%. I need to time slice the effective dates of the 5 agents, so that for each time slice, I can sum up the percentage commission & list those deals with not-100% commissions for any of these time slices. If any of you has any ideas to throw in, I would greatly appreciate your help. I am thinking that a procedure is needed here. But if someone has ideas for a simple SQL, I gladly look forward to your ideas. Thanks in advance. Jessie _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Tue Oct 19 13:02:58 2004 Date: Tue, 19 Oct 2004 14:00:01 -0400 From: "Jessie Dickenson" Subject: Re: [sqr-users] Help on Time Slicing. Thank you for your email. My first step was to get all qualifying agents within the reporting date range. I am able to get that list without any hassle, by isolating the scenarios. With these sample cases: Agent Eff_Date End Date Commission (%) Ag1 03/29/04 07/25/04 30 Ag2 04/29/04 06/25/04 20 Ag3 01/29/04 09/25/04 30 Ag4 01/29/04 05/25/04 10 Ag5 05/26/04 09/25/04 10 I have to slice the time ranges to get the following resultset: Eff_Date End Date SUM of Commissions for 03/29/04 04/28/04 Ag1 + Ag3 + Ag4 04/29/04 05/25/04 Ag1 + Ag2 + Ag3 + Ag4 05/26/04 06/25/04 Ag1 + Ag2 + Ag3 + Ag5 06/26/04 07/25/04 Ag1 + Ag3 + Ag5 I need to do this, so as to determine whether the commissions fall short of a 100% within the derived time slices for a given reporting date range. Again, thanks in advance. Jessie >>> GJANSEN@aflcio.org 10/19/2004 1:20:28 PM >>> Shouldn't the clause be something like (agent.eff_dt between rep.start and rep.end OR agent.end_dt between rep.start and rep.end OR rep.start between agent.eff_dt and agent.end_dt OR rep.end between agent.eff_dt and agent.end_dt) ? >>> JMDICKENSON@rainbow-media.com 10/19/2004 12:26:51 PM >>> I have the following requirement & since I have exhausted all ideas, I am turning to this group for help. This is predominantly a SQL issue. I need to run a report for a certain date range: say, for example: 03/29/04 to 07/25/04 The requirement sounds simple: List all deals that have agents with commissions less than 100% during this time frame. Business Scenario: 1. A deal can have multiple agents. 2. Each agent can be assigned less than 100% commission. So, let's say a deal has 5 agents, covering 5 typical scenarios: Scenario 1: Agent's effective dates are for the reporting date range - So, agent.eff_date = 03/29/04 and agent.end_date = 07/25/04, with a commission of 30%. Scenario 2: Agent's effective dates fall within the reporting date range - So, agent.eff_date = 04/29/04 and agent.end_date = 06/25/04, with a commission of 20%. Scenario 3: Agent's effective dates covers the reporting date range - So, agent.eff_date = 01/29/04 and agent.end_date = 09/25/04, with a commission of 30%. Scenario 4: Agent's effective dates partially covers the reporting date range around the Start date of the run - So, agent.eff_date = 01/29/04 and agent.end_date = 05/25/04, with a commission of 10%. Scenario 5: Agent's effective dates partially covers the reporting date range around the End date of the run - So, agent.eff_date = 05/26/04 and agent.end_date = 09/25/04, with a commission of 10%. I need to time slice the effective dates of the 5 agents, so that for each time slice, I can sum up the percentage commission & list those deals with not-100% commissions for any of these time slices. If any of you has any ideas to throw in, I would greatly appreciate your help. I am thinking that a procedure is needed here. But if someone has ideas for a simple SQL, I gladly look forward to your ideas. Thanks in advance. Jessie _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Tue Oct 19 14:03:27 2004 Date: Tue, 19 Oct 2004 14:58:13 -0400 From: "George Jansen" Subject: Re: [sqr-users] Help on Time Slicing. I'd have thought that the commission was calculated per deal. What does it mean to know that you have n salesmen earning m percent commission if you don't consider what they sold? But, given the scenario you show, why not SELECT r.id, r.start_date, r.end_date, sum(a.commission) FROM report_periods r, agents a WHERE [periods overlap] GROUP BY r.id, r.start_date, r.end_date >>> JMDICKENSON@rainbow-media.com 10/19/2004 2:00:01 PM >>> Thank you for your email. My first step was to get all qualifying agents within the reporting date range. I am able to get that list without any hassle, by isolating the scenarios. With these sample cases: Agent Eff_Date End Date Commission (%) Ag1 03/29/04 07/25/04 30 Ag2 04/29/04 06/25/04 20 Ag3 01/29/04 09/25/04 30 Ag4 01/29/04 05/25/04 10 Ag5 05/26/04 09/25/04 10 I have to slice the time ranges to get the following resultset: Eff_Date End Date SUM of Commissions for 03/29/04 04/28/04 Ag1 + Ag3 + Ag4 04/29/04 05/25/04 Ag1 + Ag2 + Ag3 + Ag4 05/26/04 06/25/04 Ag1 + Ag2 + Ag3 + Ag5 06/26/04 07/25/04 Ag1 + Ag3 + Ag5 I need to do this, so as to determine whether the commissions fall short of a 100% within the derived time slices for a given reporting date range. Again, thanks in advance. Jessie >>> GJANSEN@aflcio.org 10/19/2004 1:20:28 PM >>> Shouldn't the clause be something like (agent.eff_dt between rep.start and rep.end OR agent.end_dt between rep.start and rep.end OR rep.start between agent.eff_dt and agent.end_dt OR rep.end between agent.eff_dt and agent.end_dt) ? >>> JMDICKENSON@rainbow-media.com 10/19/2004 12:26:51 PM >>> I have the following requirement & since I have exhausted all ideas, I am turning to this group for help. This is predominantly a SQL issue. I need to run a report for a certain date range: say, for example: 03/29/04 to 07/25/04 The requirement sounds simple: List all deals that have agents with commissions less than 100% during this time frame. Business Scenario: 1. A deal can have multiple agents. 2. Each agent can be assigned less than 100% commission. So, let's say a deal has 5 agents, covering 5 typical scenarios: Scenario 1: Agent's effective dates are for the reporting date range - So, agent.eff_date = 03/29/04 and agent.end_date = 07/25/04, with a commission of 30%. Scenario 2: Agent's effective dates fall within the reporting date range - So, agent.eff_date = 04/29/04 and agent.end_date = 06/25/04, with a commission of 20%. Scenario 3: Agent's effective dates covers the reporting date range - So, agent.eff_date = 01/29/04 and agent.end_date = 09/25/04, with a commission of 30%. Scenario 4: Agent's effective dates partially covers the reporting date range around the Start date of the run - So, agent.eff_date = 01/29/04 and agent.end_date = 05/25/04, with a commission of 10%. Scenario 5: Agent's effective dates partially covers the reporting date range around the End date of the run - So, agent.eff_date = 05/26/04 and agent.end_date = 09/25/04, with a commission of 10%. I need to time slice the effective dates of the 5 agents, so that for each time slice, I can sum up the percentage commission & list those deals with not-100% commissions for any of these time slices. If any of you has any ideas to throw in, I would greatly appreciate your help. I am thinking that a procedure is needed here. But if someone has ideas for a simple SQL, I gladly look forward to your ideas. Thanks in advance. Jessie _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Wed Oct 20 09:36:15 2004 From: "Fred Schiff" Date: Wed, 20 Oct 2004 10:32:36 -0400 Subject: [sqr-users] Error after Oracle update This is a multi-part message in MIME format... --0__=0ABBE5A0DFDCFF5F8f9e8a93df938690918c0ABBE5A0DFDCFF5F Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I've been getting this error after an Oracle patch update on our HPUX box. Error on line 302: (SQR 6806) String2Em: String to Decimal Object Conversion Error. This seems to be because fields which were type NUMBER have now become type FLOAT(*). Odd thing is, that the fields show as type NUMBER in the database still, but an sqlplus desc on the table shows them as type FLOAT(*). (We are still using the dread SQL*FORMS 3, so I think we have done something to either our TNS or sqlplus to use the version from Oracle 7, to enable us to still run forms) Any ideas? (Embedded Fred Schiff image moved Information Systems to file: Consultant pic02851.gif) Broker Dealer IT fschiff@metlife.com 732-734-2155 The information contained in this message may be CONFIDENTIAL and is for the intended addressee only. Any unauthorized use, dissemination of the information, or copying of this message is prohibited. If you are not the intended addressee, please notify the sender immediately and delete this message. --0__=0ABBE5A0DFDCFF5F8f9e8a93df938690918c0ABBE5A0DFDCFF5F Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'image/gif' MIME type. It has been automatically discarded before sending the message to the list. --0__=0ABBE5A0DFDCFF5F8f9e8a93df938690918c0ABBE5A0DFDCFF5F 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__=0ABBE5A0DFDCFF5F8f9e8a93df938690918c0ABBE5A0DFDCFF5F-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Oct 20 09:44:35 2004 From: "Nachman Kreitman" Date: Wed, 20 Oct 2004 10:42:29 -0400 Subject: [sqr-users] Error: No Accessible Columns I am new to SQR. I recently installed SQR Developer 8.1.0. After I connected to the database, I am able to see the database objects. My problem arises when I select a table or view from the list. When I click on the object, I see very few columns or no columns (this happens most of the time). I get the message "There are no accessible columns". There are over a hundred columns in these tables/views. How can I obtain the full database object's information? Thank you for your assistance. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Oct 20 11:32:47 2004 Subject: RE: [sqr-users] Error: No Accessible Columns Date: Wed, 20 Oct 2004 11:31:39 -0500 From: "Knapp, Richard" Is this possibly due to record level security excluding you? Are you using the same username as when you use the other query tool that shows you all the rows? Might be a job for "the security person". Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 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 Nachman Kreitman Sent: Wednesday, October 20, 2004 9:42 AM To: sqr-users@sqrug.org Subject: [sqr-users] Error: No Accessible Columns I am new to SQR. I recently installed SQR Developer 8.1.0. After I connected to the database, I am able to see the database objects. My problem arises when I select a table or view from the list. When I click on the object, I see very few columns or no columns (this happens most of the time). I get the message "There are no accessible columns". There are over a hundred columns in these tables/views. How can I obtain the full database object's information? Thank you for your assistance. _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Oct 21 09:21:07 2004 From: "Nachman Kreitman" Date: Thu, 21 Oct 2004 10:20:36 -0400 Subject: [sqr-users] Error: No Accessible Columns I am still having problems with Service Request 2-4069085. I can create my connection but no database objects return. I am not sure if I am using the proper driver. Please assist. Thank you. Original Problem (Service Request 2-4069085) I am new to SQR. I recently installed SQR Developer 8.1.0. After I connected to the database, I am able to see the database objects. My problem arises when I select a table or view from the list. When I click on the object, I see very few columns or no columns (this happens most of the time). I get the message "There are no accessible columns". There are over a hundred columns in these tables/views. How can I obtain the full database object's information? Thank you for your assistance. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Oct 21 09:36:37 2004 Subject: RE: [sqr-users] Error: No Accessible Columns Date: Thu, 21 Oct 2004 09:33:58 -0500 From: "Knapp, Richard" What is the RDBMS you are querying? What other query tools do you have? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 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 Nachman Kreitman Sent: Thursday, October 21, 2004 9:21 AM To: sqr-users@sqrug.org Subject: [sqr-users] Error: No Accessible Columns I am still having problems with Service Request 2-4069085. I can create my connection but no database objects return. I am not sure if I am using the proper driver. Please assist. Thank you. Original Problem (Service Request 2-4069085) I am new to SQR. I recently installed SQR Developer 8.1.0. After I connected to the database, I am able to see the database objects. My problem arises when I select a table or view from the list. When I click on the object, I see very few columns or no columns (this happens most of the time). I get the message "There are no accessible columns". There are over a hundred columns in these tables/views. How can I obtain the full database object's information? Thank you for your assistance. _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Oct 21 10:20:52 2004 From: "Nachman Kreitman" Subject: RE: [sqr-users] Error: No Accessible Columns Date: Thu, 21 Oct 2004 11:20:23 -0400 I am using Oracle (8.0). Yesterday a gentleman walked me through creating a dsn/vsc file. When I do it, it does not seem to work. -----Original Message----- From: sqr-users-bounces+nachman.kreitman=corp.idt.net@sqrug.org [mailto:sqr-users-bounces+nachman.kreitman=corp.idt.net@sqrug.org]On Behalf Of Knapp, Richard Sent: Thursday, October 21, 2004 10:34 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Error: No Accessible Columns What is the RDBMS you are querying? What other query tools do you have? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 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 Nachman Kreitman Sent: Thursday, October 21, 2004 9:21 AM To: sqr-users@sqrug.org Subject: [sqr-users] Error: No Accessible Columns I am still having problems with Service Request 2-4069085. I can create my connection but no database objects return. I am not sure if I am using the proper driver. Please assist. Thank you. Original Problem (Service Request 2-4069085) I am new to SQR. I recently installed SQR Developer 8.1.0. After I connected to the database, I am able to see the database objects. My problem arises when I select a table or view from the list. When I click on the object, I see very few columns or no columns (this happens most of the time). I get the message "There are no accessible columns". There are over a hundred columns in these tables/views. How can I obtain the full database object's information? Thank you for your assistance. _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Oct 21 10:33:35 2004 Subject: RE: [sqr-users] Error: No Accessible Columns Date: Thu, 21 Oct 2004 10:30:39 -0500 From: "Knapp, Richard" So, you probably have SQLPlus installed on your desktop, right? If not, I recommend it. It's a great way to do some basic db things like test connections/access privs, get table structures, create and alter tables, etc.. If you already have this, try connecting to the same db using the user and password stored in the dsn file. Then try to describe (desc) some of the tables you are having problems with. If you can see all the fields, this has to be an SQR Developer 8.1.0 problem. Is that Brio (I mean Hyperion) or PS? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 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 Nachman Kreitman Sent: Thursday, October 21, 2004 10:20 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Error: No Accessible Columns I am using Oracle (8.0). Yesterday a gentleman walked me through creating a dsn/vsc file. When I do it, it does not seem to work. -----Original Message----- From: sqr-users-bounces+nachman.kreitman=3Dcorp.idt.net@sqrug.org [mailto:sqr-users-bounces+nachman.kreitman=3Dcorp.idt.net@sqrug.org]On Behalf Of Knapp, Richard Sent: Thursday, October 21, 2004 10:34 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Error: No Accessible Columns What is the RDBMS you are querying? What other query tools do you have? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 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 Nachman Kreitman Sent: Thursday, October 21, 2004 9:21 AM To: sqr-users@sqrug.org Subject: [sqr-users] Error: No Accessible Columns I am still having problems with Service Request 2-4069085. I can create my connection but no database objects return. I am not sure if I am using the proper driver. Please assist. Thank you. Original Problem (Service Request 2-4069085) I am new to SQR. I recently installed SQR Developer 8.1.0. After I connected to the database, I am able to see the database objects. My problem arises when I select a table or view from the list. When I click on the object, I see very few columns or no columns (this happens most of the time). I get the message "There are no accessible columns". There are over a hundred columns in these tables/views. How can I obtain the full database object's information? Thank you for your assistance. _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Oct 21 10:48:46 2004 From: "Nachman Kreitman" Subject: RE: [sqr-users] Error: No Accessible Columns Date: Thu, 21 Oct 2004 11:48:11 -0400 After I connect to the database, I click on an environment. I hang for about 5 minutes and then no objects come back. -----Original Message----- From: sqr-users-bounces+nachman.kreitman=corp.idt.net@sqrug.org [mailto:sqr-users-bounces+nachman.kreitman=corp.idt.net@sqrug.org]On Behalf Of Knapp, Richard Sent: Thursday, October 21, 2004 11:31 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Error: No Accessible Columns So, you probably have SQLPlus installed on your desktop, right? If not, I recommend it. It's a great way to do some basic db things like test connections/access privs, get table structures, create and alter tables, etc.. If you already have this, try connecting to the same db using the user and password stored in the dsn file. Then try to describe (desc) some of the tables you are having problems with. If you can see all the fields, this has to be an SQR Developer 8.1.0 problem. Is that Brio (I mean Hyperion) or PS? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 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 Nachman Kreitman Sent: Thursday, October 21, 2004 10:20 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Error: No Accessible Columns I am using Oracle (8.0). Yesterday a gentleman walked me through creating a dsn/vsc file. When I do it, it does not seem to work. -----Original Message----- From: sqr-users-bounces+nachman.kreitman=corp.idt.net@sqrug.org [mailto:sqr-users-bounces+nachman.kreitman=corp.idt.net@sqrug.org]On Behalf Of Knapp, Richard Sent: Thursday, October 21, 2004 10:34 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Error: No Accessible Columns What is the RDBMS you are querying? What other query tools do you have? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 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 Nachman Kreitman Sent: Thursday, October 21, 2004 9:21 AM To: sqr-users@sqrug.org Subject: [sqr-users] Error: No Accessible Columns I am still having problems with Service Request 2-4069085. I can create my connection but no database objects return. I am not sure if I am using the proper driver. Please assist. Thank you. Original Problem (Service Request 2-4069085) I am new to SQR. I recently installed SQR Developer 8.1.0. After I connected to the database, I am able to see the database objects. My problem arises when I select a table or view from the list. When I click on the object, I see very few columns or no columns (this happens most of the time). I get the message "There are no accessible columns". There are over a hundred columns in these tables/views. How can I obtain the full database object's information? Thank you for your assistance. _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Oct 21 10:59:09 2004 Date: Thu, 21 Oct 2004 10:58:27 -0500 (EST) From: Don Mellen Subject: Re: [sqr-users] Help on Time Slicing. Sounds like it would be easier to break this apart by procedures. A single sql approach, while interesting and challenging, might be hard to maintain. Using SQR certainly allows you to break this up into logical sections easily. Something like.... create-array name=check_dates_array size=100 field=start_of_period:date field=end_of_period:date !* Select contracts active in date range begin-select (stuff) clear-array check_dates_array !* Put first value in if &contract_start > $rpt_start put &contract_start into check_dates_array(0) start_of_period else put $rpt_start into check_dates_array(0) start_of_period end-if if &contract_end < $rpt_end put &contract_end into check_dates_array(0) end_of_period else put $rpt_end into check_dates_array(0) end_of_period end-if !* Select from agents on this contract and !* fill the array with "change" dates if any. !* Adjust these dates into the array, so there's !* no period overlap do fill_check_dates_array !* Loop through the array and for each row !* perform a select that gets the sum of commisions !* for any one day in that row, if <> 100%, then print info. do check_the_array_dates from table where (other stuff) end-select Of course, your mileage may vary. HTH, Don On Tue, 19 Oct 2004, Jessie Dickenson wrote: > I have the following requirement & since I have exhausted all ideas, I > am turning to this group for help. This is predominantly a SQL issue. > > I need to run a report for a certain date range: say, for example: > 03/29/04 to 07/25/04 > > The requirement sounds simple: > List all deals that have agents with commissions less than 100% during > this time frame. > > Business Scenario: > 1. A deal can have multiple agents. > 2. Each agent can be assigned less than 100% commission. > > So, let's say a deal has 5 agents, covering 5 typical scenarios: > > Scenario 1: Agent's effective dates are for the reporting date range - > So, agent.eff_date = 03/29/04 and agent.end_date = 07/25/04, with a > commission of 30%. > > Scenario 2: Agent's effective dates fall within the reporting date > range - So, agent.eff_date = 04/29/04 and agent.end_date = 06/25/04, > with a commission of 20%. > > Scenario 3: Agent's effective dates covers the reporting date range - > So, agent.eff_date = 01/29/04 and agent.end_date = 09/25/04, with a > commission of 30%. > > Scenario 4: Agent's effective dates partially covers the reporting date > range around the Start date of the run - So, agent.eff_date = 01/29/04 > and agent.end_date = 05/25/04, with a commission of 10%. > > Scenario 5: Agent's effective dates partially covers the reporting date > range around the End date of the run - So, agent.eff_date = 05/26/04 and > agent.end_date = 09/25/04, with a commission of 10%. > > I need to time slice the effective dates of the 5 agents, so that for > each time slice, I can sum up the percentage commission & list those > deals with not-100% commissions for any of these time slices. > > If any of you has any ideas to throw in, I would greatly appreciate > your help. > > I am thinking that a procedure is needed here. But if someone has ideas > for a simple SQL, I gladly look forward to your ideas. > > Thanks in advance. > Jessie > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Oct 21 11:14:14 2004 From: Bob Stone Subject: RE: [sqr-users] Help on Time Slicing. Date: Thu, 21 Oct 2004 11:12:57 -0500 I emailed Mr. Dickerson outside the SQR group (as to not innondate the gruop as I was getting clarifications and questions answered) and we came to 2 conclusions about it. First, the 5 scenarios can be summed up in 3 statements for the where clause: date eff (begin) date end date a (first) date b (last) AND ( (eff >= a and eff <= b) OR (end >= a and end <= b) OR (eff <= a and end >= last) ) ** either the begin or the end falls inbetween the period (between a,b), or it spans a,b. Then we realized it would make more sense to split the 4 month period into 1 month parts (looking at his SQL as one month chunks) and then do that SQL 4 times, keeping track of "totals" as he went (or whatever he needed to know about the 4 month chunk). Changing it from 4 month info sliced into 1 month chunks to 1 months chunks added up into a 4 month period. For example, think about a problem w/out using time. At my place of business, we sell things at stores. A group of stores are in a specific district, then a few districts make up a region, the all the regions make up our company. It doesn't make sense to grab the total sales for a specific region, then try to work our way backwards to find the total at any store in the region. We should look at sales for store1, store2 and store3, then add them together to get district totals. Then we add together the group of distict totals to find it for the region...etc. The same bottom up aproach should work for a time sliced report. Start with a small time increment and work your way up to the bigger one. He has since emailed me back saying he completed his section with the bottom up approach. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Don Mellen Sent: Thursday, October 21, 2004 10:58 AM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: Re: [sqr-users] Help on Time Slicing. Sounds like it would be easier to break this apart by procedures. A single sql approach, while interesting and challenging, might be hard to maintain. Using SQR certainly allows you to break this up into logical sections easily. Something like.... create-array name=check_dates_array size=100 field=start_of_period:date field=end_of_period:date !* Select contracts active in date range begin-select (stuff) clear-array check_dates_array !* Put first value in if &contract_start > $rpt_start put &contract_start into check_dates_array(0) start_of_period else put $rpt_start into check_dates_array(0) start_of_period end-if if &contract_end < $rpt_end put &contract_end into check_dates_array(0) end_of_period else put $rpt_end into check_dates_array(0) end_of_period end-if !* Select from agents on this contract and !* fill the array with "change" dates if any. !* Adjust these dates into the array, so there's !* no period overlap do fill_check_dates_array !* Loop through the array and for each row !* perform a select that gets the sum of commisions !* for any one day in that row, if <> 100%, then print info. do check_the_array_dates from table where (other stuff) end-select Of course, your mileage may vary. HTH, Don On Tue, 19 Oct 2004, Jessie Dickenson wrote: > I have the following requirement & since I have exhausted all ideas, I > am turning to this group for help. This is predominantly a SQL issue. > > I need to run a report for a certain date range: say, for example: > 03/29/04 to 07/25/04 > > The requirement sounds simple: > List all deals that have agents with commissions less than 100% during > this time frame. > > Business Scenario: > 1. A deal can have multiple agents. > 2. Each agent can be assigned less than 100% commission. > > So, let's say a deal has 5 agents, covering 5 typical scenarios: > > Scenario 1: Agent's effective dates are for the reporting date range - > So, agent.eff_date = 03/29/04 and agent.end_date = 07/25/04, with a > commission of 30%. > > Scenario 2: Agent's effective dates fall within the reporting date > range - So, agent.eff_date = 04/29/04 and agent.end_date = 06/25/04, > with a commission of 20%. > > Scenario 3: Agent's effective dates covers the reporting date range - > So, agent.eff_date = 01/29/04 and agent.end_date = 09/25/04, with a > commission of 30%. > > Scenario 4: Agent's effective dates partially covers the reporting date > range around the Start date of the run - So, agent.eff_date = 01/29/04 > and agent.end_date = 05/25/04, with a commission of 10%. > > Scenario 5: Agent's effective dates partially covers the reporting date > range around the End date of the run - So, agent.eff_date = 05/26/04 and > agent.end_date = 09/25/04, with a commission of 10%. > > I need to time slice the effective dates of the 5 agents, so that for > each time slice, I can sum up the percentage commission & list those > deals with not-100% commissions for any of these time slices. > > If any of you has any ideas to throw in, I would greatly appreciate > your help. > > I am thinking that a procedure is needed here. But if someone has ideas > for a simple SQL, I gladly look forward to your ideas. > > Thanks in advance. > Jessie _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Oct 21 13:01:04 2004 Date: Thu, 21 Oct 2004 13:58:03 -0400 From: "Jessie Dickenson" Subject: RE: [sqr-users] Help on Time Slicing. Thank you for your help & useful solutions that really worked out for me. Bob Stone & George Hansen sent me their algorithms - Both their analysis broke down the time into monthly slices, which worked out perfect for me - Since we do store calendar periods in a table. This group is really helpful & I specially thank Bob, George & Don for your in-depth analysis & code snippets. -Jess >>> bstone@fastenal.com 10/21/2004 12:12:57 PM >>> I emailed Mr. Dickerson outside the SQR group (as to not innondate the gruop as I was getting clarifications and questions answered) and we came to 2 conclusions about it. First, the 5 scenarios can be summed up in 3 statements for the where clause: date eff (begin) date end date a (first) date b (last) AND ( (eff >= a and eff <= b) OR (end >= a and end <= b) OR (eff <= a and end >= last) ) ** either the begin or the end falls inbetween the period (between a,b), or it spans a,b. Then we realized it would make more sense to split the 4 month period into 1 month parts (looking at his SQL as one month chunks) and then do that SQL 4 times, keeping track of "totals" as he went (or whatever he needed to know about the 4 month chunk). Changing it from 4 month info sliced into 1 month chunks to 1 months chunks added up into a 4 month period. For example, think about a problem w/out using time. At my place of business, we sell things at stores. A group of stores are in a specific district, then a few districts make up a region, the all the regions make up our company. It doesn't make sense to grab the total sales for a specific region, then try to work our way backwards to find the total at any store in the region. We should look at sales for store1, store2 and store3, then add them together to get district totals. Then we add together the group of distict totals to find it for the region...etc. The same bottom up aproach should work for a time sliced report. Start with a small time increment and work your way up to the bigger one. He has since emailed me back saying he completed his section with the bottom up approach. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Don Mellen Sent: Thursday, October 21, 2004 10:58 AM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: Re: [sqr-users] Help on Time Slicing. Sounds like it would be easier to break this apart by procedures. A single sql approach, while interesting and challenging, might be hard to maintain. Using SQR certainly allows you to break this up into logical sections easily. Something like.... create-array name=check_dates_array size=100 field=start_of_period:date field=end_of_period:date !* Select contracts active in date range begin-select (stuff) clear-array check_dates_array !* Put first value in if &contract_start > $rpt_start put &contract_start into check_dates_array(0) start_of_period else put $rpt_start into check_dates_array(0) start_of_period end-if if &contract_end < $rpt_end put &contract_end into check_dates_array(0) end_of_period else put $rpt_end into check_dates_array(0) end_of_period end-if !* Select from agents on this contract and !* fill the array with "change" dates if any. !* Adjust these dates into the array, so there's !* no period overlap do fill_check_dates_array !* Loop through the array and for each row !* perform a select that gets the sum of commisions !* for any one day in that row, if <> 100%, then print info. do check_the_array_dates from table where (other stuff) end-select Of course, your mileage may vary. HTH, Don On Tue, 19 Oct 2004, Jessie Dickenson wrote: > I have the following requirement & since I have exhausted all ideas, I > am turning to this group for help. This is predominantly a SQL issue. > > I need to run a report for a certain date range: say, for example: > 03/29/04 to 07/25/04 > > The requirement sounds simple: > List all deals that have agents with commissions less than 100% during > this time frame. > > Business Scenario: > 1. A deal can have multiple agents. > 2. Each agent can be assigned less than 100% commission. > > So, let's say a deal has 5 agents, covering 5 typical scenarios: > > Scenario 1: Agent's effective dates are for the reporting date range - > So, agent.eff_date = 03/29/04 and agent.end_date = 07/25/04, with a > commission of 30%. > > Scenario 2: Agent's effective dates fall within the reporting date > range - So, agent.eff_date = 04/29/04 and agent.end_date = 06/25/04, > with a commission of 20%. > > Scenario 3: Agent's effective dates covers the reporting date range - > So, agent.eff_date = 01/29/04 and agent.end_date = 09/25/04, with a > commission of 30%. > > Scenario 4: Agent's effective dates partially covers the reporting date > range around the Start date of the run - So, agent.eff_date = 01/29/04 > and agent.end_date = 05/25/04, with a commission of 10%. > > Scenario 5: Agent's effective dates partially covers the reporting date > range around the End date of the run - So, agent.eff_date = 05/26/04 and > agent.end_date = 09/25/04, with a commission of 10%. > > I need to time slice the effective dates of the 5 agents, so that for > each time slice, I can sum up the percentage commission & list those > deals with not-100% commissions for any of these time slices. > > If any of you has any ideas to throw in, I would greatly appreciate > your help. > > I am thinking that a procedure is needed here. But if someone has ideas > for a simple SQL, I gladly look forward to your ideas. > > Thanks in advance. > Jessie _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Oct 21 13:24:04 2004 From: "Dinesh Bhandary" Date: Thu, 21 Oct 2004 11:20:51 -0700 Subject: [sqr-users] End of the sqr Run message Hi All, Is there a way to resize the Dos screen so that I can see the message without having to scroll up? "Please Enter to CLose" message is at the very bottom and I always have to scroll up to see what I really want. I am hoping there is way around for this. thank you for your help. dinesh _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Oct 21 13:33:56 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] Error after Oracle update Date: Thu, 21 Oct 2004 11:30:52 -0700 Here is some discussion from a year ago: From: amy.harvel@phoenix.gov [mailto:amy.harvel@phoenix.gov] Sent: Friday, October 17, 2003 8:54 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] (SQR 6806) String2Em: String to Decimal Object Conversion Error. Funny -- we had the same error yesterday -- there is a work around -- DONT change any SQR's. Find Solution id 200744351 on PeopleSoft's web. What we found was the select works in Oracle -- not in SQR -- issue is the numbers (comment them out in the SQR or make them to_char). Describe the view -- notice the numbers are just Number's not Number(38) or number (5,2) -- SQR can't handle a number that has not length. The solution fixes the problem -- its an Oracle "behavior change" Amy M. Harvel City Of Phoenix Information Technology Department Programmer III 602-261-8974 From: Peter Burton [mailto:pburton@brio.com] Sent: Wednesday, September 17, 2003 2:03 AM To: 'sqr-users@sqrug.org' Cc: 'rawender_Guron@rta.nsw.gov.au' Subject: RE: [sqr-users] '(SQR 6806) String2Em: String to Decimal Object C onversion Error' on Oracle 9.2.0.3 Rawender, 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 Peter From: GURON Rawender [mailto:rawender_Guron@rta.nsw.gov.au] Sent: Wednesday, September 17, 2003 2:52 AM To: 'sqr-users@sqrug.org' Subject: [sqr-users] '(SQR 6806) String2Em: String to Decimal Object Conversion Error' on Oracle 9.2.0.3 Hi All, I need help with this error. An sqr program with a simple sql: begin-select seq_test.nextval &seq_test_val from dual end-select Comes back with the error in the subject. The sqr version is 6.1.3 and it compiles alright in oracle 9.2.0.3 but fails with the error at runtime. The program works fine when compiled on Oracle 8.1.7.0 and run on Oracle 9.2.0.3. I relinked of sqr with Oracle 9 libraries, but the program still fails with the same error. As this problem seems to be quite widespread and a lot of people have reported this. Does anyone know if Brio Software has come up with a patch or a solution to fix it? I know there are workarounds, but they involve changing the code and we are looking for some elegant solutiuon. We have hundreds of programs, therefore changing the code to fix the problem is out of question. Thanks Rawender Guron -----Original Message----- From: Fred Schiff [mailto:fschiff@metlife.com] Sent: Wednesday, October 20, 2004 7:33 AM To: sqr-users@sqrug.org Subject: [sqr-users] Error after Oracle update I've been getting this error after an Oracle patch update on our HPUX box. Error on line 302: (SQR 6806) String2Em: String to Decimal Object Conversion Error. This seems to be because fields which were type NUMBER have now become type FLOAT(*). Odd thing is, that the fields show as type NUMBER in the database still, but an sqlplus desc on the table shows them as type FLOAT(*). (We are still using the dread SQL*FORMS 3, so I think we have done something to either our TNS or sqlplus to use the version from Oracle 7, to enable us to still run forms) Any ideas? (Embedded Fred Schiff image moved Information Systems to file: Consultant pic02851.gif) Broker Dealer IT fschiff@metlife.com 732-734-2155 The information contained in this message may be CONFIDENTIAL and is for the intended addressee only. Any unauthorized use, dissemination of the information, or copying of this message is prohibited. If you are not the intended addressee, please notify the sender immediately and delete this message. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Oct 21 13:52:36 2004 Date: Thu, 21 Oct 2004 13:51:20 -0500 From: "Lindquist, Maria" Subject: [sqr-users] Formatting a number with decimals I'm trying to format a number that is written out to a file that is opened up in Excel. When I do the follwoing string: =20 string $CliAcctNum $LastName $FirstName $Address1 $City1 $State1 $Postal1=20 $SSN $Phone $Balance $Address2 $City2 $State2 $Postal2 by $Format into $Output_Row I want it to include zeros after the decimal point for the variable $Balance if it is an even number. I have tried Let $Balance =3D edit($Balance,'99,999.99') but it still is not bringing in the zeros after the decimal point. If there are other numbers after the decimal point it brings in those, but not if it is just zero. Is this possible at all? Or do I need to tell the user that they will just have to do the Format Cell thing after running this file to excel? =20 Any suggestions would be greatly appreciated. =20 Thanks! =20 ________________________________ Maria K Lindquist mlindqui@uwc.edu =20 IS Programmer/Analyst - Business Office University of Wisconsin Colleges 780 Regent St, PO Box 8680, Madison, WI 53708-8680 Phone: 608.265.2677 / Fax: 608.265.5770 =20 =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Oct 21 14:19:49 2004 Date: Thu, 21 Oct 2004 15:17:10 -0400 From: don.barclay@srs.gov Subject: Re: [sqr-users] Formatting a number with decimals Hi Maria, About the only thing you can do to "trick" excel into not ignoring the zero trailing digits is to convert it to a text string (instead of sending 36,123.000, send ="36,123.000"). One drawback to this approach is that excel handles the number as text instead of a number (left justified instead of right justified). We use this when we send emplids or SSNs to excel, and we obviously don't need to process them as numbers. If you want to keep your numbers as numbers in excel (in case you need to perform any math functions), then you are better off leaving as is, and then doing the format cell thing. Hope this helps, Don sqr-users-bounces+don.barclay=srs.gov@sqrug.org wrote on 10/21/2004 02:51:20 PM: > I'm trying to format a number that is written out to a file that is > opened up in Excel. When I do the follwoing string: > > string $CliAcctNum $LastName $FirstName $Address1 $City1 $State1 > $Postal1 > $SSN $Phone $Balance $Address2 $City2 $State2 $Postal2 by > $Format into $Output_Row > > I want it to include zeros after the decimal point for the variable > $Balance if it is an even number. I have tried Let $Balance = > edit($Balance,'99,999.99') but it still is not bringing in the zeros > after the decimal point. If there are other numbers after the decimal > point it brings in those, but not if it is just zero. Is this possible > at all? Or do I need to tell the user that they will just have to do the > Format Cell thing after running this file to excel? > > Any suggestions would be greatly appreciated. > > Thanks! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Oct 21 14:22:59 2004 Subject: RE: [sqr-users] Formatting a number with decimals Date: Thu, 21 Oct 2004 14:17:00 -0500 From: "Knapp, Richard" I'll bet the zeros are there in the SQR environment but Excel is dropping them (more or less famous for this). =20 Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 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 Lindquist, Maria Sent: Thursday, October 21, 2004 1:51 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] Formatting a number with decimals I'm trying to format a number that is written out to a file that is opened up in Excel. When I do the follwoing string: =20 string $CliAcctNum $LastName $FirstName $Address1 $City1 $State1 $Postal1=20 $SSN $Phone $Balance $Address2 $City2 $State2 $Postal2 by $Format into $Output_Row I want it to include zeros after the decimal point for the variable $Balance if it is an even number. I have tried Let $Balance =3D edit($Balance,'99,999.99') but it still is not bringing in the zeros after the decimal point. If there are other numbers after the decimal point it brings in those, but not if it is just zero. Is this possible at all? Or do I need to tell the user that they will just have to do the Format Cell thing after running this file to excel? =20 Any suggestions would be greatly appreciated. =20 Thanks! =20 ________________________________ Maria K Lindquist mlindqui@uwc.edu =20 IS Programmer/Analyst - Business Office University of Wisconsin Colleges 780 Regent St, PO Box 8680, Madison, WI 53708-8680 Phone: 608.265.2677 / Fax: 608.265.5770 =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+sqrusersarch=sqrug.org@sqrug.org Thu Oct 21 14:25:09 2004 Date: Thu, 21 Oct 2004 12:18:26 -0700 From: Greg Subject: [sqr-users] Embedding BMP/GIF in SYLK file Hello All; I am using SQR to create a formatted Excel spreadsheet report (per the user's request). Rather than making them go through the formatting every time they receive the file, they will now receive the file with the column widths set, column headings, etc. However, I want to add color to the headings and a company logo to the top of the formatted spreadsheet. This, so far, is being accomplished with writing the file out as a SYLK file. Any ideas on how to add the logo and color to the headings? -- Tha-Tha-Tha-That's All Folks, Greg _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Oct 21 14:28:37 2004 Subject: RE: [sqr-users] End of the sqr Run message Date: Thu, 21 Oct 2004 14:18:32 -0500 From: "Knapp, Richard" I think SQR outputs a formfeed to clear the screen. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 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 Dinesh Bhandary Sent: Thursday, October 21, 2004 1:21 PM To: sqr-users@sqrug.org Subject: [sqr-users] End of the sqr Run message Hi All, Is there a way to resize the Dos screen so that I can see the message without having to scroll up? "Please Enter to CLose" message is at the very bottom and I always have to scroll up to see what I really want. I am hoping there is way around for this. thank you for your help. dinesh _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Oct 21 14:32:03 2004 From: Bob Stone Subject: RE: [sqr-users] Formatting a number with decimals Date: Thu, 21 Oct 2004 14:19:40 -0500 I'm not positive on this, but i think its one of two problems. My money would be on the first problem. You're trying to string a number, and despite the fact that the number itself looks like it has zeros, the 'string' concatenation command is ignoring zeros. Try concatenating your line together with Let $Output_row = $clientacctnum || $lastname || ...etc || edit($Balance,'99,999.99') || ...etc If that doesn't do it, then it might be because excel likes to set their cells up as 'general', which might be ignoring the extra zeros in the numbers. (I know it does if the cell only has the number, might do it if its a number inside text in a general cell). If you make the cells to be 'text' format then excel will keep all leading and trailing zeros. The easiest way to do this is: Let $Output_row = $clientacctnum || $lastname || ...etc. || '''' || $Balance || '''' || ...etc. (maybe use the edit($balance, '99,999.99')). **sidenote** - Also, if you're trying to get them each to their own column, I would add a $sepchar in there set to tab over. ENCODE '<9>' INTO $SEPCHAR. Let $Output_row = $clientacctnum || $SEPCHAR || $lastname ....etc. Hope that helps. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Lindquist, Maria Sent: Thursday, October 21, 2004 1:51 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: [sqr-users] Formatting a number with decimals I'm trying to format a number that is written out to a file that is opened up in Excel. When I do the follwoing string: string $CliAcctNum $LastName $FirstName $Address1 $City1 $State1 $Postal1 $SSN $Phone $Balance $Address2 $City2 $State2 $Postal2 by $Format into $Output_Row I want it to include zeros after the decimal point for the variable $Balance if it is an even number. I have tried Let $Balance = edit($Balance,'99,999.99') but it still is not bringing in the zeros after the decimal point. If there are other numbers after the decimal point it brings in those, but not if it is just zero. Is this possible at all? Or do I need to tell the user that they will just have to do the Format Cell thing after running this file to excel? Any suggestions would be greatly appreciated. Thanks! ________________________________ Maria K Lindquist mlindqui@uwc.edu IS Programmer/Analyst - Business Office University of Wisconsin Colleges 780 Regent St, PO Box 8680, Madison, WI 53708-8680 Phone: 608.265.2677 / Fax: 608.265.5770 _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Oct 21 14:37:10 2004 From: James Womeldorf Subject: RE: [sqr-users] Embedding BMP/GIF in SYLK file Date: Thu, 21 Oct 2004 14:33:16 -0500 To see if it is even possible in the SYLK format try creating the spreadsheet you want complete with all the bells and whistles. Then save it as a SYLK file, and reopen it. If those features are supported they will still be there. If not, they will have disappeared. That's what's up, Doc, Jim -----Original Message----- From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org [mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of Greg Sent: Thursday, October 21, 2004 2:18 PM To: sqr-users@sqrug.org Subject: [sqr-users] Embedding BMP/GIF in SYLK file Hello All; I am using SQR to create a formatted Excel spreadsheet report (per the user's request). Rather than making them go through the formatting every time they receive the file, they will now receive the file with the column widths set, column headings, etc. However, I want to add color to the headings and a company logo to the top of the formatted spreadsheet. This, so far, is being accomplished with writing the file out as a SYLK file. Any ideas on how to add the logo and color to the headings? -- Tha-Tha-Tha-That's All Folks, Greg _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Oct 21 14:40:25 2004 Subject: RE: [sqr-users] Error after Oracle update Date: Thu, 21 Oct 2004 13:37:06 -0600 From: "Jon Alsager" This is what Mr. Burton from Hyperion (Brio, at the time) suggested when we had this problem. Have your DBA issue the following: alter system set event=3D'10499 trace name context forever,level 1' COMMENT=3D'return 0 for the scale if NUMBER created without specifying the scale' SCOPE=3DSPFILE Hope this helps. Jon -----Original Message----- From: sqr-users-bounces+jalsager=3Disif.state.id.us@sqrug.org [mailto:sqr-users-bounces+jalsager=3Disif.state.id.us@sqrug.org] On Behalf Of Alexander, Steve Sent: Thursday, October 21, 2004 12:31 PM To: 'This list is for discussion about the SQR database reportinglangu age from Hyperion Solutions.' Subject: RE: [sqr-users] Error after Oracle update Here is some discussion from a year ago: From: amy.harvel@phoenix.gov [mailto:amy.harvel@phoenix.gov] Sent: Friday, October 17, 2003 8:54 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] (SQR 6806) String2Em: String to Decimal Object Conversion Error. Funny -- we had the same error yesterday -- there is a work around -- DONT=20 change any SQR's. Find Solution id 200744351 on PeopleSoft's web. What we found was the select works in Oracle -- not in SQR -- issue is the=20 numbers (comment them out in the SQR or make them to_char). Describe the=20 view -- notice the numbers are just Number's not Number(38) or number=20 (5,2) -- SQR can't handle a number that has not length. The solution=20 fixes the problem -- its an Oracle "behavior change" Amy M. Harvel City Of Phoenix Information Technology Department Programmer III 602-261-8974 From: Peter Burton [mailto:pburton@brio.com] Sent: Wednesday, September 17, 2003 2:03 AM To: 'sqr-users@sqrug.org' Cc: 'rawender_Guron@rta.nsw.gov.au' Subject: RE: [sqr-users] '(SQR 6806) String2Em: String to Decimal Object C onversion Error' on Oracle 9.2.0.3 Rawender, 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 Peter From: GURON Rawender [mailto:rawender_Guron@rta.nsw.gov.au] Sent: Wednesday, September 17, 2003 2:52 AM To: 'sqr-users@sqrug.org' Subject: [sqr-users] '(SQR 6806) String2Em: String to Decimal Object Conversion Error' on Oracle 9.2.0.3 Hi All, I need help with this error. An sqr program with a simple sql: begin-select seq_test.nextval &seq_test_val from dual end-select Comes back with the error in the subject. The sqr version is 6.1.3 and it compiles alright in oracle 9.2.0.3 but fails with the error at runtime. The program works fine when compiled on Oracle 8.1.7.0 and run on Oracle 9.2.0.3. I relinked of sqr with Oracle 9 libraries, but the program still fails with the same error. As this problem seems to be quite widespread and a lot of people have reported this. Does anyone know if Brio Software has come up with a patch or a solution to fix it? I know there are workarounds, but they involve changing the code and we are looking for some elegant solutiuon. We have hundreds of programs, therefore changing the code to fix the problem is out of question. Thanks Rawender Guron -----Original Message----- From: Fred Schiff [mailto:fschiff@metlife.com] Sent: Wednesday, October 20, 2004 7:33 AM To: sqr-users@sqrug.org Subject: [sqr-users] Error after Oracle update I've been getting this error after an Oracle patch update on our HPUX box. Error on line 302: (SQR 6806) String2Em: String to Decimal Object Conversion Error. This seems to be because fields which were type NUMBER have now become type FLOAT(*). Odd thing is, that the fields show as type NUMBER in the database still, but an sqlplus desc on the table shows them as type FLOAT(*). (We are still using the dread SQL*FORMS 3, so I think we have done something to either our TNS or sqlplus to use the version from Oracle 7, to enable us to still run forms) Any ideas? =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 (Embedded Fred Schiff=20=20=20=20=20=20=20=20=20=20=20=20=20 image moved Information Systems=20=20=20=20=20 to file: Consultant=20=20=20=20=20=20=20=20=20=20=20=20=20=20 pic02851.gif) Broker Dealer IT=20=20=20=20=20=20=20=20 fschiff@metlife.com=20=20=20=20=20 732-734-2155=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 The information contained in this message may be CONFIDENTIAL and is for the intended addressee only. Any unauthorized use, dissemination of the information, or copying of this message is prohibited. If you are not the intended addressee, please notify the sender immediately and delete this 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+sqrusersarch=sqrug.org@sqrug.org Thu Oct 21 14:45:35 2004 Date: Thu, 21 Oct 2004 16:32:44 -0400 (EDT) From: "Vijay Tripathi" Subject: [sqr-users] (no subject) Kindly unsubscribe me from the user group. Thanks and Regards, Vijay Tripathi. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Oct 21 14:48:44 2004 From: James Womeldorf Subject: RE: [sqr-users] Formatting a number with decimals Date: Thu, 21 Oct 2004 14:44:52 -0500 Maria, If you really want to format an Excel file using SQR take a look at this: http://www.ontko.com/sqr/sylk.html Jim -----Original Message----- From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org [mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of Lindquist, Maria Sent: Thursday, October 21, 2004 1:51 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: [sqr-users] Formatting a number with decimals I'm trying to format a number that is written out to a file that is opened up in Excel. When I do the follwoing string: string $CliAcctNum $LastName $FirstName $Address1 $City1 $State1 $Postal1 $SSN $Phone $Balance $Address2 $City2 $State2 $Postal2 by $Format into $Output_Row I want it to include zeros after the decimal point for the variable $Balance if it is an even number. I have tried Let $Balance = edit($Balance,'99,999.99') but it still is not bringing in the zeros after the decimal point. If there are other numbers after the decimal point it brings in those, but not if it is just zero. Is this possible at all? Or do I need to tell the user that they will just have to do the Format Cell thing after running this file to excel? Any suggestions would be greatly appreciated. Thanks! ________________________________ Maria K Lindquist mlindqui@uwc.edu IS Programmer/Analyst - Business Office University of Wisconsin Colleges 780 Regent St, PO Box 8680, Madison, WI 53708-8680 Phone: 608.265.2677 / Fax: 608.265.5770 _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Oct 21 15:22:33 2004 Subject: RE: [sqr-users] Error after Oracle update From: "Fred Schiff" Date: Thu, 21 Oct 2004 16:20:35 -0400 Thanks. Could I depend on you to tell me what Peoplesoft's solution is? Fred Schiff Information Systems Consultant Broker Dealer IT fschiff@metlife.com 732-734-2155 "Alexander, Steve" To: "'This list is for discussion about the SQR database reportinglangu age Sent by: from Hyperion Solutions.'" sqr-users-bounces+fschiff=metlife.co cc: m@sqrug.org Subject: RE: [sqr-users] Error after Oracle update 10/21/2004 02:30 PM Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." Here is some discussion from a year ago: From: amy.harvel@phoenix.gov [mailto:amy.harvel@phoenix.gov] Sent: Friday, October 17, 2003 8:54 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] (SQR 6806) String2Em: String to Decimal Object Conversion Error. Funny -- we had the same error yesterday -- there is a work around -- DONT change any SQR's. Find Solution id 200744351 on PeopleSoft's web. What we found was the select works in Oracle -- not in SQR -- issue is the numbers (comment them out in the SQR or make them to_char). Describe the view -- notice the numbers are just Number's not Number(38) or number (5,2) -- SQR can't handle a number that has not length. The solution fixes the problem -- its an Oracle "behavior change" Amy M. Harvel City Of Phoenix Information Technology Department Programmer III 602-261-8974 From: Peter Burton [mailto:pburton@brio.com] Sent: Wednesday, September 17, 2003 2:03 AM To: 'sqr-users@sqrug.org' Cc: 'rawender_Guron@rta.nsw.gov.au' Subject: RE: [sqr-users] '(SQR 6806) String2Em: String to Decimal Object C onversion Error' on Oracle 9.2.0.3 Rawender, 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 Peter From: GURON Rawender [mailto:rawender_Guron@rta.nsw.gov.au] Sent: Wednesday, September 17, 2003 2:52 AM To: 'sqr-users@sqrug.org' Subject: [sqr-users] '(SQR 6806) String2Em: String to Decimal Object Conversion Error' on Oracle 9.2.0.3 Hi All, I need help with this error. An sqr program with a simple sql: begin-select seq_test.nextval &seq_test_val from dual end-select Comes back with the error in the subject. The sqr version is 6.1.3 and it compiles alright in oracle 9.2.0.3 but fails with the error at runtime. The program works fine when compiled on Oracle 8.1.7.0 and run on Oracle 9.2.0.3. I relinked of sqr with Oracle 9 libraries, but the program still fails with the same error. As this problem seems to be quite widespread and a lot of people have reported this. Does anyone know if Brio Software has come up with a patch or a solution to fix it? I know there are workarounds, but they involve changing the code and we are looking for some elegant solutiuon. We have hundreds of programs, therefore changing the code to fix the problem is out of question. Thanks Rawender Guron -----Original Message----- From: Fred Schiff [mailto:fschiff@metlife.com] Sent: Wednesday, October 20, 2004 7:33 AM To: sqr-users@sqrug.org Subject: [sqr-users] Error after Oracle update I've been getting this error after an Oracle patch update on our HPUX box. Error on line 302: (SQR 6806) String2Em: String to Decimal Object Conversion Error. This seems to be because fields which were type NUMBER have now become type FLOAT(*). Odd thing is, that the fields show as type NUMBER in the database still, but an sqlplus desc on the table shows them as type FLOAT(*). (We are still using the dread SQL*FORMS 3, so I think we have done something to either our TNS or sqlplus to use the version from Oracle 7, to enable us to still run forms) Any ideas? (Embedded Fred Schiff image moved Information Systems to file: Consultant pic02851.gif) Broker Dealer IT fschiff@metlife.com 732-734-2155 The information contained in this message may be CONFIDENTIAL and is for the intended addressee only. Any unauthorized use, dissemination of the information, or copying of this message is prohibited. If you are not the intended addressee, please notify the sender immediately and delete this message. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users The information contained in this message may be CONFIDENTIAL and is for the intended addressee only. Any unauthorized use, dissemination of the information, or copying of this message is prohibited. If you are not the intended addressee, please notify the sender immediately and delete this message. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Oct 21 15:44:10 2004 Date: Thu, 21 Oct 2004 16:43:02 -0400 From: "Polaki, Ramakrishna S322A" Subject: [sqr-users] (no subject) Hi, I am trying to create a report, I am doing a break on particula column suppose dept no what I need is to display if its deptno 10 I need only two columns to display and if its 20 I need 5 columns to display. Thanks Rama ---------------------------------------------------------------------------= --- CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please i= mmediately notify the sender by e-mail at the address shown. This e-mail t= ransmission may contain confidential information. This information is inte= nded only for the use of the individual(s) or entity to whom it is intended= even if addressed incorrectly. Please delete it from your files if you ar= e not the intended recipient. Thank you for your compliance. Copyright (c)= 2004 CIGNA =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=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 http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Oct 21 16:18:02 2004 From: "Nachman Kreitman" Date: Thu, 21 Oct 2004 17:16:01 -0400 Subject: [sqr-users] Continuation from Service Request 2-4069085 I have attempted to create connection files. Now I am receiving the following error: Connect Failed: Drive Error Message: Specified drive could not be loaded due to system error 127 (Oracle ODBC Driver). Any ideas? Thank you. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Oct 21 16:21:12 2004 From: "GK" Date: Thu, 21 Oct 2004 17:19:06 -0400 Subject: [sqr-users] Probelm with SQR procedure Hi all, I have an SQR procedure that I have a small problem with. When I am running= the query in query analyzer, it is returning one row and is working fine. = but when I am using the same query in a sqr procedure, it is not returning = and rows. I am on SQL server. Can anybody please tell me what I am doing wr= ong? Please find the procedure. Begin-Select EMPLID &EMPLID LET $EMPLID =3D &EMPLID SUPERVISOR_ID LET $SUP_ID =3D &SUPERVISOR_ID SHOW 'SELECT' DO GET-MAX-EFFDT SHOW $EMPLID SHOW $SUP_ID SHOW $EFFDT DO UPD-SUPID FROM PS_JOB A WHERE A.EMPLID =3D '000156' AND A.EFFDT =3D (SELECT MAX(B.EFFDT ) FROM PS_JOB B WHERE A.EMPLID =3D B.EMPLID AND B.EFFDT < (SELECT MAX(C.EFFDT ) FROM PS_JOB C WHERE B.EMPLID =3D C.EMPLID AND C.EMPLID =3D A.EMPLID AND C.ACTION =3D 'DTA' AND C.EFFDT <=3D $ASOFDATE)) End-Select Thanks in advance, gk _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Oct 21 16:25:03 2004 Subject: RE: [sqr-users] Continuation from Service Request 2-4069085 Date: Thu, 21 Oct 2004 16:22:17 -0500 From: "Knapp, Richard" I'd like to help but all you have told me so far is that you have an Oracle 8 db so I have no idea what the rest of your environment is. Are you working on a MS workstation? Is the driver you want to use installed? What about an answer to the question about SQLPlus? Or any other query tool you have. Are you in a Peoplesoft environment?=20=20 Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 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 Nachman Kreitman Sent: Thursday, October 21, 2004 4:16 PM To: sqr-users@sqrug.org Subject: [sqr-users] Continuation from Service Request 2-4069085 I have attempted to create connection files. Now I am receiving the following error: Connect Failed: Drive Error Message: Specified drive could not be loaded due to system error 127 (Oracle ODBC Driver). Any ideas? 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+sqrusersarch=sqrug.org@sqrug.org Thu Oct 21 16:38:57 2004 Subject: Re: [sqr-users] Probelm with SQR procedure From: Russ Wulfson Date: Thu, 21 Oct 2004 16:31:46 -0500 Put a show on $asofdate Thanks, Russ Wulfson "GK" Sent by: sqr-users-bounces+rwulfson=bost.com@sqrug.org 10/21/2004 03:19 PM Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." To "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." cc Subject [sqr-users] Probelm with SQR procedure Hi all, I have an SQR procedure that I have a small problem with. When I am running the query in query analyzer, it is returning one row and is working fine. but when I am using the same query in a sqr procedure, it is not returning and rows. I am on SQL server. Can anybody please tell me what I am doing wrong? Please find the procedure. Begin-Select EMPLID &EMPLID LET $EMPLID = &EMPLID SUPERVISOR_ID LET $SUP_ID = &SUPERVISOR_ID SHOW 'SELECT' DO GET-MAX-EFFDT SHOW $EMPLID SHOW $SUP_ID SHOW $EFFDT DO UPD-SUPID FROM PS_JOB A WHERE A.EMPLID = '000156' AND A.EFFDT = (SELECT MAX(B.EFFDT ) FROM PS_JOB B WHERE A.EMPLID = B.EMPLID AND B.EFFDT < (SELECT MAX(C.EFFDT ) FROM PS_JOB C WHERE B.EMPLID = C.EMPLID AND C.EMPLID = A.EMPLID AND C.ACTION = 'DTA' AND C.EFFDT <= $ASOFDATE)) End-Select Thanks in advance, gk _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Oct 21 16:48:54 2004 From: Bob Stone Subject: RE: [sqr-users] Probelm with SQR procedure Date: Thu, 21 Oct 2004 16:36:22 -0500 i'm not positive if it's an sqr requirement, or just the way I program, but dont the let statements all have to be in between the select and the from? Another thing to check is if your effective date logic isn't a bit off...there's a whole lotta effective dates in there, and i'm not sure exactly what you're trying to accomplish with them. Could be missing something. Maybe there's a < when it should be <= , or something along those lines. Begin-Select EMPLID &EMPLID SUPERVISOR_ID LET $EMPLID = &EMPLID /** Right there <--?**/ LET $SUP_ID = &SUPERVISOR_ID SHOW 'SELECT' DO GET-MAX-EFFDT SHOW $EMPLID SHOW $SUP_ID SHOW $EFFDT DO UPD-SUPID FROM PS_JOB A WHERE A.EMPLID = '000156' AND A.EFFDT = (SELECT MAX(B.EFFDT ) FROM PS_JOB B WHERE A.EMPLID = B.EMPLID AND B.EFFDT < (SELECT MAX(C.EFFDT ) FROM PS_JOB C WHERE B.EMPLID = C.EMPLID AND C.EMPLID = A.EMPLID AND C.ACTION = 'DTA' AND C.EFFDT <= $ASOFDATE)) End-Select -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of GK Sent: Thursday, October 21, 2004 4:19 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: [sqr-users] Probelm with SQR procedure Hi all, I have an SQR procedure that I have a small problem with. When I am running the query in query analyzer, it is returning one row and is working fine. but when I am using the same query in a sqr procedure, it is not returning and rows. I am on SQL server. Can anybody please tell me what I am doing wrong? Please find the procedure. Begin-Select EMPLID &EMPLID LET $EMPLID = &EMPLID SUPERVISOR_ID LET $SUP_ID = &SUPERVISOR_ID SHOW 'SELECT' DO GET-MAX-EFFDT SHOW $EMPLID SHOW $SUP_ID SHOW $EFFDT DO UPD-SUPID FROM PS_JOB A WHERE A.EMPLID = '000156' AND A.EFFDT = (SELECT MAX(B.EFFDT ) FROM PS_JOB B WHERE A.EMPLID = B.EMPLID AND B.EFFDT < (SELECT MAX(C.EFFDT ) FROM PS_JOB C WHERE B.EMPLID = C.EMPLID AND C.EMPLID = A.EMPLID AND C.ACTION = 'DTA' AND C.EFFDT <= $ASOFDATE)) End-Select Thanks in advance, gk _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Thu Oct 21 16:51:52 2004 From: "Nachman Kreitman" Subject: RE: [sqr-users] Continuation from Service Request 2-4069085 Date: Thu, 21 Oct 2004 17:39:48 -0400 My environment is Windows 2000 with SQLPLUS on my computer. I do not have PeopleSoft. Two days ago someone had a conference on my computer and got it to work. I do not know why I am having a hard time. -----Original Message----- From: sqr-users-bounces+nachman.kreitman=corp.idt.net@sqrug.org [mailto:sqr-users-bounces+nachman.kreitman=corp.idt.net@sqrug.org]On Behalf Of Knapp, Richard Sent: Thursday, October 21, 2004 5:22 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Continuation from Service Request 2-4069085 I'd like to help but all you have told me so far is that you have an Oracle 8 db so I have no idea what the rest of your environment is. Are you working on a MS workstation? Is the driver you want to use installed? What about an answer to the question about SQLPlus? Or any other query tool you have. Are you in a Peoplesoft environment? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 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 Nachman Kreitman Sent: Thursday, October 21, 2004 4:16 PM To: sqr-users@sqrug.org Subject: [sqr-users] Continuation from Service Request 2-4069085 I have attempted to create connection files. Now I am receiving the following error: Connect Failed: Drive Error Message: Specified drive could not be loaded due to system error 127 (Oracle ODBC Driver). Any ideas? 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+sqrusersarch=sqrug.org@sqrug.org Thu Oct 21 16:56:08 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] Error after Oracle update Date: Thu, 21 Oct 2004 14:43:59 -0700 Sorry, I can't. I searched the Peoplesoft solutions database and didn't find that solution ID. Nor could I find the problem when searching for keywords "SQR Oracle". But I think Amy was paraphrasing Peoplesoft's advice to select to_char(fieldname) rather than fieldname. We used Peter's suggestion, although Peoplesoft reported that Oracle did not endorse it. -----Original Message----- From: Fred Schiff [mailto:fschiff@metlife.com] Sent: Thursday, October 21, 2004 1:21 PM To: This list is for discussion about the SQR database reporting languagefr om Hyperion Solutions. Subject: RE: [sqr-users] Error after Oracle update Thanks. Could I depend on you to tell me what Peoplesoft's solution is? Fred Schiff Information Systems Consultant Broker Dealer IT fschiff@metlife.com 732-734-2155 "Alexander, Steve" To: "'This list is for discussion about the SQR database reportinglangu age Sent by: from Hyperion Solutions.'" sqr-users-bounces+fschiff=metlife.co cc: m@sqrug.org Subject: RE: [sqr-users] Error after Oracle update 10/21/2004 02:30 PM Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." Here is some discussion from a year ago: From: amy.harvel@phoenix.gov [mailto:amy.harvel@phoenix.gov] Sent: Friday, October 17, 2003 8:54 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] (SQR 6806) String2Em: String to Decimal Object Conversion Error. Funny -- we had the same error yesterday -- there is a work around -- DONT change any SQR's. Find Solution id 200744351 on PeopleSoft's web. What we found was the select works in Oracle -- not in SQR -- issue is the numbers (comment them out in the SQR or make them to_char). Describe the view -- notice the numbers are just Number's not Number(38) or number (5,2) -- SQR can't handle a number that has not length. The solution fixes the problem -- its an Oracle "behavior change" Amy M. Harvel City Of Phoenix Information Technology Department Programmer III 602-261-8974 From: Peter Burton [mailto:pburton@brio.com] Sent: Wednesday, September 17, 2003 2:03 AM To: 'sqr-users@sqrug.org' Cc: 'rawender_Guron@rta.nsw.gov.au' Subject: RE: [sqr-users] '(SQR 6806) String2Em: String to Decimal Object C onversion Error' on Oracle 9.2.0.3 Rawender, 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 Peter From: GURON Rawender [mailto:rawender_Guron@rta.nsw.gov.au] Sent: Wednesday, September 17, 2003 2:52 AM To: 'sqr-users@sqrug.org' Subject: [sqr-users] '(SQR 6806) String2Em: String to Decimal Object Conversion Error' on Oracle 9.2.0.3 Hi All, I need help with this error. An sqr program with a simple sql: begin-select seq_test.nextval &seq_test_val from dual end-select Comes back with the error in the subject. The sqr version is 6.1.3 and it compiles alright in oracle 9.2.0.3 but fails with the error at runtime. The program works fine when compiled on Oracle 8.1.7.0 and run on Oracle 9.2.0.3. I relinked of sqr with Oracle 9 libraries, but the program still fails with the same error. As this problem seems to be quite widespread and a lot of people have reported this. Does anyone know if Brio Software has come up with a patch or a solution to fix it? I know there are workarounds, but they involve changing the code and we are looking for some elegant solutiuon. We have hundreds of programs, therefore changing the code to fix the problem is out of question. Thanks Rawender Guron -----Original Message----- From: Fred Schiff [mailto:fschiff@metlife.com] Sent: Wednesday, October 20, 2004 7:33 AM To: sqr-users@sqrug.org Subject: [sqr-users] Error after Oracle update I've been getting this error after an Oracle patch update on our HPUX box. Error on line 302: (SQR 6806) String2Em: String to Decimal Object Conversion Error. This seems to be because fields which were type NUMBER have now become type FLOAT(*). Odd thing is, that the fields show as type NUMBER in the database still, but an sqlplus desc on the table shows them as type FLOAT(*). (We are still using the dread SQL*FORMS 3, so I think we have done something to either our TNS or sqlplus to use the version from Oracle 7, to enable us to still run forms) Any ideas? (Embedded Fred Schiff image moved Information Systems to file: Consultant pic02851.gif) Broker Dealer IT fschiff@metlife.com 732-734-2155 The information contained in this message may be CONFIDENTIAL and is for the intended addressee only. Any unauthorized use, dissemination of the information, or copying of this message is prohibited. If you are not the intended addressee, please notify the sender immediately and delete this message. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users The information contained in this message may be CONFIDENTIAL and is for the intended addressee only. Any unauthorized use, dissemination of the information, or copying of this message is prohibited. If you are not the intended addressee, please notify the sender immediately and delete this 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+sqrusersarch=sqrug.org@sqrug.org Thu Oct 21 16:59:31 2004 From: "GK" Subject: Re: [sqr-users] Probelm with SQR procedure Date: Thu, 21 Oct 2004 17:53:46 -0400 Hi Bob, Thanks for the feedback. well, it's not an sqr requirement. since I gave the indentation for those LET statements, they are effectively inside the select and from. regarding the effective dated logic, I want to retrieve a row prior to the maximum effective dated row. I am sure the logic is correct as I said, the same logic works fine in query analyzer and returns the data as I expected. Thanks, gk. ----- Original Message ----- From: "Bob Stone" To: "'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.'" Sent: Thursday, October 21, 2004 5:36 PM Subject: RE: [sqr-users] Probelm with SQR procedure > i'm not positive if it's an sqr requirement, or just the way I program, but > dont the let statements all have to be in between the select and the from? > Another thing to check is if your effective date logic isn't a bit > off...there's a whole lotta effective dates in there, and i'm not sure > exactly what you're trying to accomplish with them. Could be missing > something. Maybe there's a < when it should be <= , or something along > those lines. > > Begin-Select > EMPLID &EMPLID > SUPERVISOR_ID > LET $EMPLID = &EMPLID /** Right there <--?**/ > LET $SUP_ID = &SUPERVISOR_ID > > SHOW 'SELECT' > DO GET-MAX-EFFDT > SHOW $EMPLID > SHOW $SUP_ID > SHOW $EFFDT > DO UPD-SUPID > > FROM PS_JOB A > WHERE A.EMPLID = '000156' > AND A.EFFDT = (SELECT MAX(B.EFFDT ) FROM PS_JOB B > WHERE A.EMPLID = B.EMPLID > AND B.EFFDT < (SELECT MAX(C.EFFDT ) FROM PS_JOB C > WHERE B.EMPLID = C.EMPLID > AND C.EMPLID = A.EMPLID > AND C.ACTION = 'DTA' > AND C.EFFDT <= $ASOFDATE)) > End-Select > > -----Original Message----- > From: sqr-users-bounces+bstone=fastenal.com@sqrug.org > [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of GK > Sent: Thursday, October 21, 2004 4:19 PM > To: This list is for discussion about the SQR database reportinglanguage > from Hyperion Solutions. > Subject: [sqr-users] Probelm with SQR procedure > > > Hi all, > > I have an SQR procedure that I have a small problem with. When I am running > the query in query analyzer, it is returning one row and is working fine. > but when I am using the same query in a sqr procedure, it is not returning > and rows. I am on SQL server. Can anybody please tell me what I am doing > wrong? Please find the procedure. > > Begin-Select > > EMPLID &EMPLID > LET $EMPLID = &EMPLID > SUPERVISOR_ID > LET $SUP_ID = &SUPERVISOR_ID > > SHOW 'SELECT' > DO GET-MAX-EFFDT > SHOW $EMPLID > SHOW $SUP_ID > SHOW $EFFDT > DO UPD-SUPID > > FROM PS_JOB A > WHERE A.EMPLID = '000156' > AND A.EFFDT = (SELECT MAX(B.EFFDT ) FROM PS_JOB B > WHERE A.EMPLID = B.EMPLID > AND B.EFFDT < (SELECT MAX(C.EFFDT ) FROM PS_JOB C > WHERE B.EMPLID = C.EMPLID > AND C.EMPLID = A.EMPLID > AND C.ACTION = 'DTA' > AND C.EFFDT <= $ASOFDATE)) > End-Select > > > > Thanks in advance, > gk > > _______________________________________________ > 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+sqrusersarch=sqrug.org@sqrug.org Thu Oct 21 17:02:48 2004 Date: Thu, 21 Oct 2004 17:55:52 -0400 From: "White, Denise" Subject: [sqr-users] RE: Probelm with SQR procedure Hi, Since in your FROM clause you are using an alias of A for PS_JOB, try using= that prefix on the columns you are selecting: Begin-Select A.EMPLID &EMPLID LET $EMPLID =3D &EMPLID A.SUPERVISOR_ID LET $SUP_ID =3D &A.SUPERVISOR_ID That may be it. Denise M. White Sr. Software Engineer HR/Payroll Systems Vicor Corporation ------------------------------ Message: 24 Date: Thu, 21 Oct 2004 17:19:06 -0400 From: "GK" Subject: [sqr-users] Probelm with SQR procedure To: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." Message-ID: Content-Type: text/plain; charset=3D"iso-8859-1" Hi all, I have an SQR procedure that I have a small problem with. When I am running= the query in query analyzer, it is returning one row and is working fine. = but when I am using the same query in a sqr procedure, it is not returning = and rows. I am on SQL server. Can anybody please tell me what I am doing wr= ong? Please find the procedure. Begin-Select EMPLID &EMPLID LET $EMPLID =3D &EMPLID SUPERVISOR_ID LET $SUP_ID =3D &SUPERVISOR_ID SHOW 'SELECT' DO GET-MAX-EFFDT SHOW $EMPLID SHOW $SUP_ID SHOW $EFFDT DO UPD-SUPID FROM PS_JOB A WHERE A.EMPLID =3D '000156' AND A.EFFDT =3D (SELECT MAX(B.EFFDT ) FROM PS_JOB B WHERE A.EMPLID =3D B.EMPLID AND B.EFFDT < (SELECT MAX(C.EFFDT ) FROM PS_JOB C WHERE B.EMPLID =3D C.EMPLID AND C.EMPLID =3D A.EMPLID AND C.ACTION =3D 'DTA' AND C.EFFDT <=3D $ASOFDATE)) End-Select Thanks in advance, gk _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Oct 21 17:05:44 2004 Subject: RE: [sqr-users] Continuation from Service Request 2-4069085 Date: Thu, 21 Oct 2004 16:59:49 -0500 From: "Knapp, Richard" Great. So, can you connect to the database with sqlplus using the username and password in the dsn file? If so, can you see the tables and all the fields you would normally expect to se when you issue the desc tablename; command? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 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 Nachman Kreitman Sent: Thursday, October 21, 2004 4:40 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Continuation from Service Request 2-4069085 My environment is Windows 2000 with SQLPLUS on my computer. I do not have PeopleSoft. Two days ago someone had a conference on my computer and got it to work. I do not know why I am having a hard time. -----Original Message----- From: sqr-users-bounces+nachman.kreitman=3Dcorp.idt.net@sqrug.org [mailto:sqr-users-bounces+nachman.kreitman=3Dcorp.idt.net@sqrug.org]On Behalf Of Knapp, Richard Sent: Thursday, October 21, 2004 5:22 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Continuation from Service Request 2-4069085 I'd like to help but all you have told me so far is that you have an Oracle 8 db so I have no idea what the rest of your environment is. Are you working on a MS workstation? Is the driver you want to use installed? What about an answer to the question about SQLPlus? Or any other query tool you have. Are you in a Peoplesoft environment? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 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 Nachman Kreitman Sent: Thursday, October 21, 2004 4:16 PM To: sqr-users@sqrug.org Subject: [sqr-users] Continuation from Service Request 2-4069085 I have attempted to create connection files. Now I am receiving the following error: Connect Failed: Drive Error Message: Specified drive could not be loaded due to system error 127 (Oracle ODBC Driver). Any ideas? 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+sqrusersarch=sqrug.org@sqrug.org Thu Oct 21 17:34:03 2004 From: "Peter Burton" Date: Thu, 21 Oct 2004 18:32:55 -0400 Subject: RE: [sqr-users] Error after Oracle update All, The "fix" I sent out with regard to this issue came as the result from Orac= le (bug 2755842 logged by somebody else) in that event 10499 was added to a= llow a customer to cause Oracle to revert back to its previous mode regardi= ng scale. Therefore the comment from Peoplesoft that Oracle doesn't endors= e it is a load of crap. 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 Alexander, Steve Sent: Thursday, October 21, 2004 5:44 PM To: 'This list is for discussion about the SQR database reportinglangu age from Hyperion Solutions.' Subject: RE: [sqr-users] Error after Oracle update Sorry, I can't. I searched the Peoplesoft solutions database and didn't find that solution ID. Nor could I find the problem when searching for keywords "SQR Oracle". But I think Amy was paraphrasing Peoplesoft's advice to select to_char(fieldname) rather than fieldname. We used Peter's suggestion, although Peoplesoft reported that Oracle did not endorse it. -----Original Message----- From: Fred Schiff [mailto:fschiff@metlife.com] Sent: Thursday, October 21, 2004 1:21 PM To: This list is for discussion about the SQR database reporting languagefr om Hyperion Solutions. Subject: RE: [sqr-users] Error after Oracle update Thanks. Could I depend on you to tell me what Peoplesoft's solution is? =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 Fred Schiff=20=20=20=20=20=20=20=20=20=20=20=20=20 Information Systems=20=20=20=20=20 Consultant=20=20=20=20=20=20=20=20=20=20=20=20=20=20 Broker Dealer IT=20=20=20=20=20=20=20=20 fschiff@metlife.com=20=20=20=20=20 732-734-2155=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 "Alexander, Steve" To: "'This list is for discussion about the SQR database reportinglangu age Sent by: from Hyperion Solutions.'" sqr-users-bounces+fschiff=3Dmetlife.co cc: m@sqrug.org Subject: RE: [sqr-users] Error after Oracle update 10/21/2004 02:30 PM Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." Here is some discussion from a year ago: From: amy.harvel@phoenix.gov [mailto:amy.harvel@phoenix.gov] Sent: Friday, October 17, 2003 8:54 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] (SQR 6806) String2Em: String to Decimal Object Conversion Error. Funny -- we had the same error yesterday -- there is a work around -- DONT change any SQR's. Find Solution id 200744351 on PeopleSoft's web. What we found was the select works in Oracle -- not in SQR -- issue is the numbers (comment them out in the SQR or make them to_char). Describe the view -- notice the numbers are just Number's not Number(38) or number (5,2) -- SQR can't handle a number that has not length. The solution fixes the problem -- its an Oracle "behavior change" Amy M. Harvel City Of Phoenix Information Technology Department Programmer III 602-261-8974 From: Peter Burton [mailto:pburton@brio.com] Sent: Wednesday, September 17, 2003 2:03 AM To: 'sqr-users@sqrug.org' Cc: 'rawender_Guron@rta.nsw.gov.au' Subject: RE: [sqr-users] '(SQR 6806) String2Em: String to Decimal Object C onversion Error' on Oracle 9.2.0.3 Rawender, Have a DBA issue the following command: alter system set event=3D'10499 trace name context forever,level 1' COMMENT=3D'return 0 for the scale if NUMBER created without specifying the scale' SCOPE=3DSPFILE Peter From: GURON Rawender [mailto:rawender_Guron@rta.nsw.gov.au] Sent: Wednesday, September 17, 2003 2:52 AM To: 'sqr-users@sqrug.org' Subject: [sqr-users] '(SQR 6806) String2Em: String to Decimal Object Conversion Error' on Oracle 9.2.0.3 Hi All, I need help with this error. An sqr program with a simple sql: begin-select seq_test.nextval &seq_test_val from dual end-select Comes back with the error in the subject. The sqr version is 6.1.3 and it compiles alright in oracle 9.2.0.3 but fails with the error at runtime. The program works fine when compiled on Oracle 8.1.7.0 and run on Oracle 9.2.0.3. I relinked of sqr with Oracle 9 libraries, but the program still fails with the same error. As this problem seems to be quite widespread and a lot of people have reported this. Does anyone know if Brio Software has come up with a patch or a solution to fix it? I know there are workarounds, but they involve changing the code and we are looking for some elegant solutiuon. We have hundreds of programs, therefore changing the code to fix the problem is out of question. Thanks Rawender Guron -----Original Message----- From: Fred Schiff [mailto:fschiff@metlife.com] Sent: Wednesday, October 20, 2004 7:33 AM To: sqr-users@sqrug.org Subject: [sqr-users] Error after Oracle update I've been getting this error after an Oracle patch update on our HPUX box. Error on line 302: (SQR 6806) String2Em: String to Decimal Object Conversion Error. This seems to be because fields which were type NUMBER have now become type FLOAT(*). Odd thing is, that the fields show as type NUMBER in the database still, but an sqlplus desc on the table shows them as type FLOAT(*). (We are still using the dread SQL*FORMS 3, so I think we have done something to either our TNS or sqlplus to use the version from Oracle 7, to enable us to still run forms) Any ideas? (Embedded Fred Schiff image moved Information Systems to file: Consultant pic02851.gif) Broker Dealer IT fschiff@metlife.com 732-734-2155 The information contained in this message may be CONFIDENTIAL and is for the intended addressee only. Any unauthorized use, dissemination of the information, or copying of this message is prohibited. If you are not the intended addressee, please notify the sender immediately and delete this message. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users The information contained in this message may be CONFIDENTIAL and is for the intended addressee only. Any unauthorized use, dissemination of the information, or copying of this message is prohibited. If you are not the intended addressee, please notify the sender immediately and delete this 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 ************************************************************************ 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.=20 Internet communications are not secure and Hyperion does not, therefore, ac= cept legal responsibility for the contents of this message nor for any dama= ge caused by viruses. The views expressed here do not necessarily represen= t those of Hyperion. For more information about Hyperion, please visit our Web site at www.hyper= ion.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Oct 21 18:25:58 2004 Date: Thu, 21 Oct 2004 19:22:46 -0400 From: "George Jansen" Subject: Re: [sqr-users] Probelm with SQR procedure Well, if there isn't an action of type DTA, and another action older than that, you're out of luck. But I'd suspect that your date variable $ASOFDATE is wrong somehow. Can you confirm it's ok? >>> greeku_veerudu@hotmail.com 10/21/04 5:53 PM >>> Hi Bob, Thanks for the feedback. well, it's not an sqr requirement. since I gave the indentation for those LET statements, they are effectively inside the select and from. regarding the effective dated logic, I want to retrieve a row prior to the maximum effective dated row. I am sure the logic is correct as I said, the same logic works fine in query analyzer and returns the data as I expected. Thanks, gk. ----- Original Message ----- From: "Bob Stone" To: "'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.'" Sent: Thursday, October 21, 2004 5:36 PM Subject: RE: [sqr-users] Probelm with SQR procedure > i'm not positive if it's an sqr requirement, or just the way I program, but > dont the let statements all have to be in between the select and the from? > Another thing to check is if your effective date logic isn't a bit > off...there's a whole lotta effective dates in there, and i'm not sure > exactly what you're trying to accomplish with them. Could be missing > something. Maybe there's a < when it should be <= , or something along > those lines. > > Begin-Select > EMPLID &EMPLID > SUPERVISOR_ID > LET $EMPLID = &EMPLID /** Right there <--?**/ > LET $SUP_ID = &SUPERVISOR_ID > > SHOW 'SELECT' > DO GET-MAX-EFFDT > SHOW $EMPLID > SHOW $SUP_ID > SHOW $EFFDT > DO UPD-SUPID > > FROM PS_JOB A > WHERE A.EMPLID = '000156' > AND A.EFFDT = (SELECT MAX(B.EFFDT ) FROM PS_JOB B > WHERE A.EMPLID = B.EMPLID > AND B.EFFDT < (SELECT MAX(C.EFFDT ) FROM PS_JOB C > WHERE B.EMPLID = C.EMPLID > AND C.EMPLID = A.EMPLID > AND C.ACTION = 'DTA' > AND C.EFFDT <= $ASOFDATE)) > End-Select > > -----Original Message----- > From: sqr-users-bounces+bstone=fastenal.com@sqrug.org > [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of GK > Sent: Thursday, October 21, 2004 4:19 PM > To: This list is for discussion about the SQR database reportinglanguage > from Hyperion Solutions. > Subject: [sqr-users] Probelm with SQR procedure > > > Hi all, > > I have an SQR procedure that I have a small problem with. When I am running > the query in query analyzer, it is returning one row and is working fine. > but when I am using the same query in a sqr procedure, it is not returning > and rows. I am on SQL server. Can anybody please tell me what I am doing > wrong? Please find the procedure. > > Begin-Select > > EMPLID &EMPLID > LET $EMPLID = &EMPLID > SUPERVISOR_ID > LET $SUP_ID = &SUPERVISOR_ID > > SHOW 'SELECT' > DO GET-MAX-EFFDT > SHOW $EMPLID > SHOW $SUP_ID > SHOW $EFFDT > DO UPD-SUPID > > FROM PS_JOB A > WHERE A.EMPLID = '000156' > AND A.EFFDT = (SELECT MAX(B.EFFDT ) FROM PS_JOB B > WHERE A.EMPLID = B.EMPLID > AND B.EFFDT < (SELECT MAX(C.EFFDT ) FROM PS_JOB C > WHERE B.EMPLID = C.EMPLID > AND C.EMPLID = A.EMPLID > AND C.ACTION = 'DTA' > AND C.EFFDT <= $ASOFDATE)) > End-Select > > > > Thanks in advance, > gk > > _______________________________________________ > 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+sqrusersarch=sqrug.org@sqrug.org Fri Oct 22 04:30:58 2004 From: "Ulf Borgen" Date: Fri, 22 Oct 2004 11:26:07 +0200 Subject: [sqr-users] Problem with special characters Hi, I did not get any responce on my BIG problem (a problem for the Scandinavia= n=20 countries?), so I will try once more: We are using sqr version 8.1 on a unix server (HP-UX ver 11 with Oracle). This is a part of my sqr-program: print 'UTL=C4GG' (+2,10) print '* ' (0,22) 1) If I compile program with this code, and then run the sqt-file, asterix= =20 ('*') is printed one position too far to the left. 2) If I compile and run at the same time (sqr with no options) the result i= s=20 correct 3) If I do as in 1) but on our old server with sqr ver 3, the result is=20 correct 4) If I replace 'UTL=C4GG' with 'UTLEGG' and do as i 1), the result is=20 correct. Can anyone tell me what to do with this problem so that I can run 1) with= =20 correct result? With Kind regards for the Intrum group in Scandinavia Ulf Borgen _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Oct 22 04:49:54 2004 From: "Peter Burton" Date: Fri, 22 Oct 2004 05:45:23 -0400 Subject: RE: [sqr-users] Problem with special characters Ulf, Upgrade to SQR 8.2.x Peter -----Original Message----- From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org [mailto:sqr-u= sers-bounces+peter_burton=3Dhyperion.com@sqrug.org] On Behalf Of Ulf Borgen Sent: Friday, October 22, 2004 5:26 AM To: SQR Subject: [sqr-users] Problem with special characters Hi, I did not get any responce on my BIG problem (a problem for the Scandinavia= n countries?), so I will try once more: We are using sqr version 8.1 on a unix server (HP-UX ver 11 with Oracle). This is a part of my sqr-program: print 'UTL=C4GG' (+2,10) print '* ' (0,22) 1) If I compile program with this code, and then run the sqt-file, asterix ('*') is printed one position too far to the left. 2) If I compile and run at the same time (sqr with no options) the result i= s correct 3) If I do as in 1) but on our old server with sqr ver 3, the result is cor= rect 4) If I replace 'UTL=C4GG' with 'UTLEGG' and do as i 1), the result is corr= ect. Can anyone tell me what to do with this problem so that I can run 1) with = correct result? With Kind regards for the Intrum group in Scandinavia Ulf Borgen _______________________________________________ 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.=20 Internet communications are not secure and Hyperion does not, therefore, ac= cept legal responsibility for the contents of this message nor for any dama= ge caused by viruses. The views expressed here do not necessarily represen= t those of Hyperion. For more information about Hyperion, please visit our Web site at www.hyper= ion.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Oct 22 07:43:45 2004 From: "Nachman Kreitman" Subject: RE: [sqr-users] Continuation from Service Request 2-4069085 Date: Fri, 22 Oct 2004 08:40:37 -0400 No. And that is my problem. I only see the environments. -----Original Message----- From: sqr-users-bounces+nachman.kreitman=corp.idt.net@sqrug.org [mailto:sqr-users-bounces+nachman.kreitman=corp.idt.net@sqrug.org]On Behalf Of Knapp, Richard Sent: Thursday, October 21, 2004 6:00 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Continuation from Service Request 2-4069085 Great. So, can you connect to the database with sqlplus using the username and password in the dsn file? If so, can you see the tables and all the fields you would normally expect to se when you issue the desc tablename; command? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 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 Nachman Kreitman Sent: Thursday, October 21, 2004 4:40 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Continuation from Service Request 2-4069085 My environment is Windows 2000 with SQLPLUS on my computer. I do not have PeopleSoft. Two days ago someone had a conference on my computer and got it to work. I do not know why I am having a hard time. -----Original Message----- From: sqr-users-bounces+nachman.kreitman=corp.idt.net@sqrug.org [mailto:sqr-users-bounces+nachman.kreitman=corp.idt.net@sqrug.org]On Behalf Of Knapp, Richard Sent: Thursday, October 21, 2004 5:22 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Continuation from Service Request 2-4069085 I'd like to help but all you have told me so far is that you have an Oracle 8 db so I have no idea what the rest of your environment is. Are you working on a MS workstation? Is the driver you want to use installed? What about an answer to the question about SQLPlus? Or any other query tool you have. Are you in a Peoplesoft environment? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 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 Nachman Kreitman Sent: Thursday, October 21, 2004 4:16 PM To: sqr-users@sqrug.org Subject: [sqr-users] Continuation from Service Request 2-4069085 I have attempted to create connection files. Now I am receiving the following error: Connect Failed: Drive Error Message: Specified drive could not be loaded due to system error 127 (Oracle ODBC Driver). Any ideas? 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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Oct 22 07:55:29 2004 Date: Fri, 22 Oct 2004 07:52:21 -0500 From: Nathan Stratton Treadway Subject: [sqr-users] Re: Error after Oracle update On Thu, Oct 21, 2004 at 04:20:35PM -0400, Fred Schiff wrote: > Could I depend on you to tell me what Peoplesoft's solution is? [...] > From: amy.harvel@phoenix.gov [mailto:amy.harvel@phoenix.gov] > Sent: Friday, October 17, 2003 8:54 AM > To: sqr-users@sqrug.org > Subject: Re: [sqr-users] (SQR 6806) String2Em: String to Decimal Object > Conversion Error. > > > Funny -- we had the same error yesterday -- there is a work around -- DONT > change any SQR's. > > Find Solution id 200744351 on PeopleSoft's web. > I can't give you more information on that particular PeopleSoft Solution, but this message I posted last year: http://www.sqrug.org/sqr-users/sqrusers_03q4/msg00549.html goes into a bit of detail about the cause of this problem and the various workarounds. Note that the links I have there point into Oracle's support database, so so see the documents I mention you'll need to work with someone who has an MetaLink account (e.g. your DBA). > From: GURON Rawender [mailto:rawender_Guron@rta.nsw.gov.au] > Sent: Wednesday, September 17, 2003 2:52 AM > To: 'sqr-users@sqrug.org' > Subject: [sqr-users] '(SQR 6806) String2Em: String to Decimal Object > Conversion Error' on Oracle 9.2.0.3 [...] > I know there are workarounds, but they involve changing the code and we are > looking for some elegant solutiuon. We have hundreds of programs, therefore > changing the code to fix the problem is out of question. The long-term solution is upgrading to a SQR v8.2 or later. (For example, the Oracle documents I link to specifically say that the "event 10499" fix is NOT available in Oracle 10, though I have not tested that myself.) For short-term fixes, you have the option to set this event at the "system" or the "session" levels in addition to code changes. (Note that setting the event at the "system" level might possibily affect other database client software that has been modified to work correctly with post-9.2.0.3 versions of Oracle, while setting it at the session level will probably involve adding a few lines at the top of each SQR program unless you already call a common "setup" routine in an include file in all your programs.) 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+sqrusersarch=sqrug.org@sqrug.org Fri Oct 22 11:22:04 2004 From: "Ed Kelly" Date: Fri, 22 Oct 2004 16:20:34 +0000 Subject: [sqr-users] Problem with special characters Check $AsOfDate to see if it contains a value. If you are trying to check for the current date, use $AsOfToday instead (and make sure you are calling the procedure Get-Current-Datetime prior to executing the Select statement). ----Original Message---- Hi all, I have an SQR procedure that I have a small problem with. When I am running the query in query analyzer, it is returning one row and is working fine. but when I am using the same query in a sqr procedure, it is not returning and rows. I am on SQL server. Can anybody please tell me what I am doing wrong? Please find the procedure. Begin-Select EMPLID &EMPLID LET $EMPLID = &EMPLID SUPERVISOR_ID LET $SUP_ID = &SUPERVISOR_ID SHOW 'SELECT' DO GET-MAX-EFFDT SHOW $EMPLID SHOW $SUP_ID SHOW $EFFDT DO UPD-SUPID FROM PS_JOB A WHERE A.EMPLID = '000156' AND A.EFFDT = (SELECT MAX(B.EFFDT ) FROM PS_JOB B WHERE A.EMPLID = B.EMPLID AND B.EFFDT < (SELECT MAX(C.EFFDT ) FROM PS_JOB C WHERE B.EMPLID = C.EMPLID AND C.EMPLID = A.EMPLID AND C.ACTION = 'DTA' AND C.EFFDT <= $ASOFDATE)) End-Select ------------------------------- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Oct 22 14:16:48 2004 From: PSFTPROGRAMMER@aol.com Date: Fri, 22 Oct 2004 15:14:01 EDT Subject: Re: [sqr-users] Probelm with SQR procedure I think it has to do with the combination of the asofdate and the action DTA. Is the emplid hardcoded in the program to '000156' ? If not, show the emplid as well as the asofdate just before the begin-select. It could be something as simple as the $asofdate is in the wrong format, or is actually blank. It could also be that the effseq logic is necessary. However- When we need to go back 1 row past, like in this, we have at times also split out the procedure into 2. Return the DTA row catching the effdt, then go straight into the next row using that effdt instead of the asofdate in the logic. This way, we can also be able to handle those employees who don't have a DTA row, by putting a flag that gets set and pointing them to another procedure altogether. DO get-dta-row IF $dta_flag = 'Y' do get-prevoius-row ELSE DO (procedure to get proper row for employees without a DTA action) (can also set $sup_effdt here to asofdate and actually use same procedure as get- previous row) end-if !****************************** begin-procedure get-dta-row !***************************** let $dta_flag = 'N' begin-select a.emplid a.effdt let $sup_effdt = &a.effdt let $dta_flag = 'Y' from ps_job a WHERE A.EFFDT = (SELECT MAX(AA.EFFDT) FROM PS_JOB AA WHERE A.EMPLID = AA.EMPLID AND A.EMPL_RCD = AA.EMPL_RCD AND AA.EFFDT<= $ASOFDATE) AND A.EFFSEQ = (SELECT MAX(A1.EFFSEQ) FROM PS_JOB A1 WHERE A.EMPLID = A1.EMPLID AND A1.EMPL_RCD = A.EMPL_RCD AND A.EFFDT = A1.EFFDT) end-select end-procedure !*********************************** begin-procedure get-prevoius-row !********************************** EMPLID &EMPLID LET $EMPLID = &EMPLID SUPERVISOR_ID LET $SUP_ID = &SUPERVISOR_ID SHOW 'SELECT' DO GET-MAX-EFFDT SHOW $EMPLID SHOW $SUP_ID SHOW $EFFDT DO UPD-SUPID WHERE ACT.EMPLID = $EMPLID AND ACT.EFFDT = (SELECT max(ACT_ED.EFFDT) FROM PS_JOB ACT_ED WHERE ACT.EMPLID = ACT_ED.EMPLID AND ACT.EMPL_RCD = ACT_ED.EMPL_RCD AND ACT_ED.EFFDT < $sup_effdt) AND ACT.EFFSEQ = (SELECT MAX(ACT_ES.EFFSEQ) FROM PS_JOB ACT_ES WHERE ACT.EMPLID = ACT_ES.EMPLID AND ACT.EMPL_RCD = ACT_ES.EMPL_RCD AND ACT.EFFDT = ACT_ES.EFFDT) END-SELECT END-PROCEDURE _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Oct 25 07:28:42 2004 From: "ukbi" Date: Mon, 25 Oct 2004 13:27:06 +0100 Subject: [sqr-users] To All UK based SQR Consultants/Developers SQR Moving Forward Within Hyperion =20 This Email has been sent to you by the SQR UK Engagement Team at Hyperion =20 As many of you know Hyperion Solutions acquired the SQR technology within its acquisition of Brio last year =20 The SQR technology is one of the cornerstones within Hyperion Solutions strategy to maintain and increasing its leadership status within the BPM market. =20 Hyperion Solutions commitment to maintaining this leadership is further endorsed by the creation of a World Wide Business Intelligence sales team that is currently in place in most countries today. =20 Hyperion Solutions would like to update you on what is happening with SQR today and to make you aware of what is likely to happen in the forthcoming release of SQR, which is scheduled for early 2005. =20 You are invited to give your comments, suggestions and to here our strategy within the UK at an informal session being held on 18th November at 2pm until 4pm, with a buffet lunch will be available from 1:00pm.=20=20 =20 We will be repeating this event on the 25th November =20 If you are interested in attending then please email: ukbi@hyperion.com with you're your preferred date. =20 If you are unable to attend these events but would like to have a conversation with one of the SQR Engagement team then please email ukbi@hyperion.com with your request.=20 =20 Kind Regards, =20 SQR UK Engagement Team=20 ************************************************************************ 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.=20 Internet communications are not secure and Hyperion does not, therefore, ac= cept legal responsibility for the contents of this message nor for any dama= ge caused by viruses. The views expressed here do not necessarily represen= t those of Hyperion. For more information about Hyperion, please visit our Web site at www.hyper= ion.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Oct 25 07:51:00 2004 Subject: RE: [sqr-users] To All UK based SQR Consultants/Developers Date: Mon, 25 Oct 2004 14:40:56 +0200 From: "R Gumbo" I am from Zimbabwe, Africa. I would like to know where we are serviced from= . Also , can you send me a profile of some sort of Hyperion Thank you -----Original Message----- From: ukbi [mailto:ukbi@hyperion.com] Sent: 25 October 2004 02:27 PM To: sqr-users@sqrug.org Subject: [sqr-users] To All UK based SQR Consultants/Developers SQR Moving Forward Within Hyperion =20 This Email has been sent to you by the SQR UK Engagement Team at Hyperion =20 As many of you know Hyperion Solutions acquired the SQR technology within its acquisition of Brio last year =20 The SQR technology is one of the cornerstones within Hyperion Solutions strategy to maintain and increasing its leadership status within the BPM market. =20 Hyperion Solutions commitment to maintaining this leadership is further endorsed by the creation of a World Wide Business Intelligence sales team that is currently in place in most countries today. =20 Hyperion Solutions would like to update you on what is happening with SQR today and to make you aware of what is likely to happen in the forthcoming release of SQR, which is scheduled for early 2005. =20 You are invited to give your comments, suggestions and to here our strategy within the UK at an informal session being held on 18th November at 2pm until 4pm, with a buffet lunch will be available from 1:00pm.=20=20 =20 We will be repeating this event on the 25th November =20 If you are interested in attending then please email: ukbi@hyperion.com with you're your preferred date. =20 If you are unable to attend these events but would like to have a conversation with one of the SQR Engagement team then please email ukbi@hyperion.com with your request.=20 =20 Kind Regards, =20 SQR UK Engagement Team=20 ************************************************************************ 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.=20 Internet communications are not secure and Hyperion does not, therefore, ac= cept legal responsibility for the contents of this message nor for any dama= ge caused by viruses. The views expressed here do not necessarily represen= t those of Hyperion. For more information about Hyperion, please visit our Web site at www.hyper= ion.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+sqrusersarch=sqrug.org@sqrug.org Mon Oct 25 08:01:20 2004 Date: Mon, 25 Oct 2004 09:00:21 -0400 From: Subject: [sqr-users] Embedding Database Link in SQR Hi, All! =20 I'm attempting to embed a database link within an SQR. The code I'm using is =20 =20 BEGIN-SQL CREATE PUBLIC DATABASE LINK database_name CONNECT TO SYSTEM IDENTIFIED AS password USING 'database_name.WORLD'; END-SQL =20 If I do this before running the SQR, things work fine. However, if I just run the SQR, I get ORA-02019 errors: 'Connection description for remoter database not found.' =20 We're at Oracle 9.2.0.4, SQR version 4.3.4 (SQRIBE). =20 Thanks in advance. =20 Mary =20 ***************************************************************** Mary M. Davis SICAS Center Lee Hall State University of New York Oneonta, NY 13820 =20 davismm@oneonta.edu =20 =20 Phone: (607) 436-2031 Fax: (607) 436-2038 =20 ******************************************************************* =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Mon Oct 25 08:29:52 2004 Subject: RE: [sqr-users] Embedding Database Link in SQR Date: Mon, 25 Oct 2004 08:25:45 -0500 From: "Knapp, Richard" Put it in the setup paragraph. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 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 davismm@oneonta.edu Sent: Monday, October 25, 2004 8:00 AM To: sqr-users@sqrug.org Subject: [sqr-users] Embedding Database Link in SQR Hi, All! =20 I'm attempting to embed a database link within an SQR. The code I'm using is =20 =20 BEGIN-SQL CREATE PUBLIC DATABASE LINK database_name CONNECT TO SYSTEM IDENTIFIED AS password USING 'database_name.WORLD'; END-SQL =20 If I do this before running the SQR, things work fine. However, if I just run the SQR, I get ORA-02019 errors: 'Connection description for remoter database not found.' =20 We're at Oracle 9.2.0.4, SQR version 4.3.4 (SQRIBE). =20 Thanks in advance. =20 Mary =20 ***************************************************************** Mary M. Davis SICAS Center Lee Hall State University of New York Oneonta, NY 13820 =20 davismm@oneonta.edu =20 =20 Phone: (607) 436-2031 Fax: (607) 436-2038 =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+sqrusersarch=sqrug.org@sqrug.org Mon Oct 25 08:34:15 2004 From: Bob Stone Subject: RE: [sqr-users] Embedding Database Link in SQR Date: Mon, 25 Oct 2004 08:32:29 -0500 Mary, Do you need to recreate the link each time? You should be able to create one link, once, then use it each time. If there's a link between the DBs you should be able to use it without recreating it. Or, if the link might have different properties each time, such that you need to recreate it, consider putting the 'drop db link' 'create db link' logic in a stored procedure on the database itself. Thanks bob stone - inventory developer x8514 -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of davismm@oneonta.edu Sent: Monday, October 25, 2004 8:00 AM To: sqr-users@sqrug.org Subject: [sqr-users] Embedding Database Link in SQR Hi, All! I'm attempting to embed a database link within an SQR. The code I'm using is BEGIN-SQL CREATE PUBLIC DATABASE LINK database_name CONNECT TO SYSTEM IDENTIFIED AS password USING 'database_name.WORLD'; END-SQL If I do this before running the SQR, things work fine. However, if I just run the SQR, I get ORA-02019 errors: 'Connection description for remoter database not found.' We're at Oracle 9.2.0.4, SQR version 4.3.4 (SQRIBE). Thanks in advance. Mary ***************************************************************** Mary M. Davis SICAS Center Lee Hall State University of New York Oneonta, NY 13820 davismm@oneonta.edu Phone: (607) 436-2031 Fax: (607) 436-2038 ******************************************************************* _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Mon Oct 25 08:59:10 2004 Subject: RE: [sqr-users] Continuation from Service Request 2-4069085 Date: Mon, 25 Oct 2004 08:58:03 -0500 From: "Knapp, Richard" Why don't you give me a call at the number in my signature? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 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 Nachman Kreitman Sent: Friday, October 22, 2004 7:41 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Continuation from Service Request 2-4069085 No. And that is my problem. I only see the environments. -----Original Message----- From: sqr-users-bounces+nachman.kreitman=3Dcorp.idt.net@sqrug.org [mailto:sqr-users-bounces+nachman.kreitman=3Dcorp.idt.net@sqrug.org]On Behalf Of Knapp, Richard Sent: Thursday, October 21, 2004 6:00 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Continuation from Service Request 2-4069085 Great. So, can you connect to the database with sqlplus using the username and password in the dsn file? If so, can you see the tables and all the fields you would normally expect to se when you issue the desc tablename; command? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 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 Nachman Kreitman Sent: Thursday, October 21, 2004 4:40 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Continuation from Service Request 2-4069085 My environment is Windows 2000 with SQLPLUS on my computer. I do not have PeopleSoft. Two days ago someone had a conference on my computer and got it to work. I do not know why I am having a hard time. -----Original Message----- From: sqr-users-bounces+nachman.kreitman=3Dcorp.idt.net@sqrug.org [mailto:sqr-users-bounces+nachman.kreitman=3Dcorp.idt.net@sqrug.org]On Behalf Of Knapp, Richard Sent: Thursday, October 21, 2004 5:22 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Continuation from Service Request 2-4069085 I'd like to help but all you have told me so far is that you have an Oracle 8 db so I have no idea what the rest of your environment is. Are you working on a MS workstation? Is the driver you want to use installed? What about an answer to the question about SQLPlus? Or any other query tool you have. Are you in a Peoplesoft environment? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 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 Nachman Kreitman Sent: Thursday, October 21, 2004 4:16 PM To: sqr-users@sqrug.org Subject: [sqr-users] Continuation from Service Request 2-4069085 I have attempted to create connection files. Now I am receiving the following error: Connect Failed: Drive Error Message: Specified drive could not be loaded due to system error 127 (Oracle ODBC Driver). Any ideas? 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 _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Tue Oct 26 08:22:03 2004 From: "Arnon Oppenheimer" Date: Mon, 25 Oct 2004 17:46:06 +0200 Subject: [sqr-users] SQR for OpenVms/Ingess I need your help ! If you have SQR V3 or V4 for OpenVMS / Ingress Please contact me directly to my email: arnono@semech.co.il Thanks in advance ! Regards, Arnon Oppenheimer ------------------------------------------------------------------- SEMECH SOFTWARE MARKETING LTD. TEL : (972) - 3 - 5333144 FAX : (972) - 3 - 5333132 ------------------------------------------------------------------- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Oct 26 10:46:20 2004 From: "radhika reddy" Date: Tue, 26 Oct 2004 10:42:34 -0500 Subject: [sqr-users] sysdate hi How to get just the year from $sysdate in sqr? I tried the following:- move '1' to $year4 move '-' to $DDelimiter do Format-datetime($sysdatetime,$sysdatetime_YMD, {DEFYMD}, '', '') here I am getting 2004- 10-25 display $sysdatetime_YMD LET $SYSDATE1 = SUBSTR($sysdatetime_YMD,1,4) DISPLAY 'SYSDATE' $SYSDATE1 but here when I do substring I am getting 0.000000E+00 Can anybody tell me how to get just the year 2004 . thanks _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! hthttp://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+sqrusersarch=sqrug.org@sqrug.org Tue Oct 26 10:55:31 2004 From: Bob Stone Subject: RE: [sqr-users] sysdate Date: Tue, 26 Oct 2004 10:52:40 -0500 If you're getting '2004-10-25' in $sysdatetime_YMD, then substring should work. Possibly cast it to a string before doing the substring? let $sysdate0 = to_char($sysdatetime_YMD) let $sysdate1 = substr($sysdatetime_TMD,1,4) display 'SYSDATE' $SYSDATE1 -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of radhika reddy How to get just the year from $sysdate in sqr? I tried the following:- move '1' to $year4 move '-' to $DDelimiter do Format-datetime($sysdatetime,$sysdatetime_YMD, {DEFYMD}, '', '') here I am getting 2004- 10-25 display $sysdatetime_YMD LET $SYSDATE1 = SUBSTR($sysdatetime_YMD,1,4) DISPLAY 'SYSDATE' $SYSDATE1 but here when I do substring I am getting 0.000000E+00 Can anybody tell me how to get just the year 2004 . thanks _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Oct 26 11:00:46 2004 From: Bob Stone Subject: RE: [sqr-users] sysdate Date: Tue, 26 Oct 2004 10:57:49 -0500 messed that up. let $sysdate1 = substr($sysdate0,1,4) !The sysdate you just made into a string...not the original -----Original Message----- If you're getting '2004-10-25' in $sysdatetime_YMD, then substring should work. Possibly cast it to a string before doing the substring? let $sysdate0 = to_char($sysdatetime_YMD) let $sysdate1 = substr($sysdatetime_TMD,1,4) display 'SYSDATE' $SYSDATE1 -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of radhika reddy How to get just the year from $sysdate in sqr? I tried the following:- move '1' to $year4 move '-' to $DDelimiter do Format-datetime($sysdatetime,$sysdatetime_YMD, {DEFYMD}, '', '') here I am getting 2004- 10-25 display $sysdatetime_YMD LET $SYSDATE1 = SUBSTR($sysdatetime_YMD,1,4) DISPLAY 'SYSDATE' $SYSDATE1 but here when I do substring I am getting 0.000000E+00 Can anybody tell me how to get just the year 2004 . thanks _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Tue Oct 26 11:04:16 2004 Subject: Re: [sqr-users] sysdate From: Kaz.Narayanan@averydennison.com Date: Tue, 26 Oct 2004 08:52:09 -0700 Radhika, Move the &sysdate to a $ variable. Example: Begin-Select to_char(sysdate,'mm-dd-YYYY') &Sysdate let $sysdate = &Sysdate from dual End-Select let $year = substr($sysdate, 7,4) Thanks Regards KM Narayanan "radhika reddy" @sqrug.org on 10/26/2004 08:42:34 AM Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." Sent by: sqr-users-bounces+kaz.narayanan=averydennison.com@sqrug.org To: sqr-users@sqrug.org cc: Subject: [sqr-users] sysdate hi How to get just the year from $sysdate in sqr? I tried the following:- move '1' to $year4 move '-' to $DDelimiter do Format-datetime($sysdatetime,$sysdatetime_YMD, {DEFYMD}, '', '') here I am getting 2004- 10-25 display $sysdatetime_YMD LET $SYSDATE1 = SUBSTR($sysdatetime_YMD,1,4) DISPLAY 'SYSDATE' $SYSDATE1 but here when I do substring I am getting 0.000000E+00 Can anybody tell me how to get just the year 2004 . thanks _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! hthttp://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+sqrusersarch=sqrug.org@sqrug.org Tue Oct 26 11:07:14 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] sysdate Date: Tue, 26 Oct 2004 09:00:23 -0700 let $year = edit($sysdate, 'yyyy') -----Original Message----- From: Bob Stone [mailto:bstone@fastenal.com] Sent: Tuesday, October 26, 2004 8:53 AM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] sysdate If you're getting '2004-10-25' in $sysdatetime_YMD, then substring should work. Possibly cast it to a string before doing the substring? let $sysdate0 = to_char($sysdatetime_YMD) let $sysdate1 = substr($sysdatetime_TMD,1,4) display 'SYSDATE' $SYSDATE1 -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of radhika reddy How to get just the year from $sysdate in sqr? I tried the following:- move '1' to $year4 move '-' to $DDelimiter do Format-datetime($sysdatetime,$sysdatetime_YMD, {DEFYMD}, '', '') here I am getting 2004- 10-25 display $sysdatetime_YMD LET $SYSDATE1 = SUBSTR($sysdatetime_YMD,1,4) DISPLAY 'SYSDATE' $SYSDATE1 but here when I do substring I am getting 0.000000E+00 Can anybody tell me how to get just the year 2004 . thanks _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Tue Oct 26 11:10:09 2004 From: James Womeldorf Subject: RE: [sqr-users] sysdate Date: Tue, 26 Oct 2004 11:02:54 -0500 If $Sysdate is a date variable I think I'd use let $year - datetostr($Sysdate,'YYYY') Jim -----Original Message----- From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org [mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of radhika reddy Sent: Tuesday, October 26, 2004 10:43 AM To: sqr-users@sqrug.org Subject: [sqr-users] sysdate hi How to get just the year from $sysdate in sqr? I tried the following:- move '1' to $year4 move '-' to $DDelimiter do Format-datetime($sysdatetime,$sysdatetime_YMD, {DEFYMD}, '', '') here I am getting 2004- 10-25 display $sysdatetime_YMD LET $SYSDATE1 = SUBSTR($sysdatetime_YMD,1,4) DISPLAY 'SYSDATE' $SYSDATE1 but here when I do substring I am getting 0.000000E+00 Can anybody tell me how to get just the year 2004 . thanks _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! hthttp://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+sqrusersarch=sqrug.org@sqrug.org Tue Oct 26 11:13:26 2004 Date: Tue, 26 Oct 2004 12:12:08 -0400 From: "George Jansen" Subject: RE: [sqr-users] sysdate Are you using Oracle? Then SQL> select to_char(sysdate, 'yyyy') as year 2 from dual; YEAR ---- 2004 >>> bstone@fastenal.com 10/26/2004 11:57:49 AM >>> messed that up. let $sysdate1 = substr($sysdate0,1,4) !The sysdate you just made into a string...not the original -----Original Message----- If you're getting '2004-10-25' in $sysdatetime_YMD, then substring should work. Possibly cast it to a string before doing the substring? let $sysdate0 = to_char($sysdatetime_YMD) let $sysdate1 = substr($sysdatetime_TMD,1,4) display 'SYSDATE' $SYSDATE1 -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of radhika reddy How to get just the year from $sysdate in sqr? I tried the following:- move '1' to $year4 move '-' to $DDelimiter do Format-datetime($sysdatetime,$sysdatetime_YMD, {DEFYMD}, '', '') here I am getting 2004- 10-25 display $sysdatetime_YMD LET $SYSDATE1 = SUBSTR($sysdatetime_YMD,1,4) DISPLAY 'SYSDATE' $SYSDATE1 but here when I do substring I am getting 0.000000E+00 Can anybody tell me how to get just the year 2004 . thanks _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Tue Oct 26 15:56:03 2004 Date: Wed, 27 Oct 2004 06:53:13 +1000 From: "Seah, Derren (Denver)" Subject: [sqr-users] Stopping a report without error messages. I have an SQR report that generates a PCL file. The PCL format is the format that my fax server understands. I call this report from within Maximo which then executes VB code that sends the PCL file to our Rightfax server for printing. The report works in that the PCL file is created and the VB executable is executed, but the only problem that the error message "Report not Created" is displayed on the screen. Is there any way to suppress this message because the report works anyway? Or is there a clean way to exit the program as using the "Stop" command gives even uglier error messages? Thanks, Derren Seah ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email=20 ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Oct 26 15:59:09 2004 Date: Wed, 27 Oct 2004 06:53:53 +1000 From: "Seah, Derren (Denver)" Subject: [sqr-users] Stopping a report without error messages appearing I have an SQR report that generates a PCL file. The PCL format is the format that my fax server understands. I call this report from within Maximo which then executes VB code that sends the PCL file to our Rightfax server for printing. The report works in that the PCL file is created and the VB executable is executed, but the only problem that the error message "Report not Created" is displayed on the screen. Is there any way to suppress this message because the report works anyway? Or is there a clean way to exit the program as using the "Stop" command gives even uglier error messages? Thanks, Derren Seah ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email=20 ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Oct 26 16:10:22 2004 From: "Dinesh Bhandary" Subject: RE: [sqr-users] Stopping a report without error messages appearing Date: Tue, 26 Oct 2004 14:04:58 -0700 This is a multi-part message in MIME format... ------=_NextPart_000_0003_01C4BB64.C80A52E0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Try using -XB ( for windows) or -XTB ( for non-windows, which suppresses the sqr End of the run message. ALso "Stop quiet" is better than "stop". Hope this helps. dinesh -----Original Message----- From: sqr-users-bounces+dinesh=redwoodtoxicology.com@sqrug.org [mailto:sqr-users-bounces+dinesh=redwoodtoxicology.com@sqrug.org]On Behalf Of Seah, Derren (Denver) Sent: Tuesday, October 26, 2004 1:54 PM To: sqr-users@sqrug.org Subject: [sqr-users] Stopping a report without error messages appearing I have an SQR report that generates a PCL file. The PCL format is the format that my fax server understands. I call this report from within Maximo which then executes VB code that sends the PCL file to our Rightfax server for printing. The report works in that the PCL file is created and the VB executable is executed, but the only problem that the error message "Report not Created" is displayed on the screen. Is there any way to suppress this message because the report works anyway? Or is there a clean way to exit the program as using the "Stop" command gives even uglier error messages? Thanks, Derren Seah ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------=_NextPart_000_0003_01C4BB64.C80A52E0 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_000_0003_01C4BB64.C80A52E0 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_000_0003_01C4BB64.C80A52E0-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Oct 26 17:15:41 2004 Subject: RE: [sqr-users] Stopping a report without error messages appearing Date: Wed, 27 Oct 2004 08:12:55 +1000 From: "Seah, Derren (Denver)" Thanks for your help, but the problem is still occurring. I have tried using -XB and the "Stop quiet" command. Is there a way to suppress all error messages ? -----Original Message----- From: Dinesh Bhandary [mailto:dinesh@redwoodtoxicology.com]=20 Sent: Wednesday, 27 October 2004 7:05 AM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] Stopping a report without error messages appearing Try using -XB ( for windows) or -XTB ( for non-windows, which suppresses the sqr End of the run message. ALso "Stop quiet" is better than "stop". Hope this helps. dinesh=20 -----Original Message----- From: sqr-users-bounces+dinesh=3Dredwoodtoxicology.com@sqrug.org [mailto:sqr-users-bounces+dinesh=3Dredwoodtoxicology.com@sqrug.org]On Behalf Of Seah, Derren (Denver) Sent: Tuesday, October 26, 2004 1:54 PM To: sqr-users@sqrug.org Subject: [sqr-users] Stopping a report without error messages appearing I have an SQR report that generates a PCL file. The PCL format is the format that my fax server understands. I call this report from within Maximo which then executes VB code that sends the PCL file to our Rightfax server for printing. The report works in that the PCL file is created and the VB executable is executed, but the only problem that the error message "Report not Created" is displayed on the screen. Is there any way to suppress this message because the report works anyway? Or is there a clean way to exit the program as using the "Stop" command gives even uglier error messages? Thanks, Derren Seah ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email=20 ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email=20 ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Oct 26 17:30:56 2004 From: "Dinesh Bhandary" Subject: RE: [sqr-users] Stopping a report without error messages appearing Date: Tue, 26 Oct 2004 15:28:04 -0700 This is a multi-part message in MIME format... ------=_NextPart_000_000B_01C4BB70.638728F0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Try -XMB. It disables all the error messages. dinesh -----Original Message----- From: sqr-users-bounces+dinesh=redwoodtoxicology.com@sqrug.org [mailto:sqr-users-bounces+dinesh=redwoodtoxicology.com@sqrug.org]On Behalf Of Seah, Derren (Denver) Sent: Tuesday, October 26, 2004 3:13 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] Stopping a report without error messages appearing Thanks for your help, but the problem is still occurring. I have tried using -XB and the "Stop quiet" command. Is there a way to suppress all error messages ? -----Original Message----- From: Dinesh Bhandary [mailto:dinesh@redwoodtoxicology.com] Sent: Wednesday, 27 October 2004 7:05 AM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] Stopping a report without error messages appearing Try using -XB ( for windows) or -XTB ( for non-windows, which suppresses the sqr End of the run message. ALso "Stop quiet" is better than "stop". Hope this helps. dinesh -----Original Message----- From: sqr-users-bounces+dinesh=redwoodtoxicology.com@sqrug.org [mailto:sqr-users-bounces+dinesh=redwoodtoxicology.com@sqrug.org]On Behalf Of Seah, Derren (Denver) Sent: Tuesday, October 26, 2004 1:54 PM To: sqr-users@sqrug.org Subject: [sqr-users] Stopping a report without error messages appearing I have an SQR report that generates a PCL file. The PCL format is the format that my fax server understands. I call this report from within Maximo which then executes VB code that sends the PCL file to our Rightfax server for printing. The report works in that the PCL file is created and the VB executable is executed, but the only problem that the error message "Report not Created" is displayed on the screen. Is there any way to suppress this message because the report works anyway? Or is there a clean way to exit the program as using the "Stop" command gives even uglier error messages? Thanks, Derren Seah ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------=_NextPart_000_000B_01C4BB70.638728F0 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_000_000B_01C4BB70.638728F0 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_000_000B_01C4BB70.638728F0-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Oct 27 05:10:46 2004 From: "Steve Cavill" Subject: RE: [sqr-users] Stopping a report without error messages. Date: Wed, 27 Oct 2004 20:05:06 +1000 That doesn't actually sound like a normal SQR message - could the message be coming from Maximo? See if you can check exactly where the message is coming from. 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 Seah, Derren (Denver) Sent: Wednesday, 27 October 2004 6:53 AM To: sqr-users@sqrug.org Subject: [sqr-users] Stopping a report without error messages. I have an SQR report that generates a PCL file. The PCL format is the format that my fax server understands. I call this report from within Maximo which then executes VB code that sends the PCL file to our Rightfax server for printing. The report works in that the PCL file is created and the VB executable is executed, but the only problem that the error message "Report not Created" is displayed on the screen. Is there any way to suppress this message because the report works anyway? Or is there a clean way to exit the program as using the "Stop" command gives even uglier error messages? Thanks, Derren Seah ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ _______________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Wed Oct 27 18:33:51 2004 Date: Wed, 27 Oct 2004 19:31:26 -0400 From: Matt Rogish Subject: [sqr-users] Problem with arrays? Please copy me on any replies as I receive a digest -- it's hard to pick out replies to my topic in the digest! I have an array I declared like this: Create-Array Name=print_positions Size=100 Field=Code:Char Field=Desc:Char Field=Date:Char Field=Position:Number Field=Value:Number I intend to have an array that looks like this: ABC, This is the description, 01/01, 1, 0 ... ABC, This is the description, 12/01, 12, 0 ABC, This is the description, Total, 13, 0 DEF, Description of the thing, 01/01, 1, 0 ... DEF/Description strings are stored in a database table, the 01/01 correspond to Month/Year (in MM/YY format). The 'total' date is a special one which will store the summation of all the 1-12. I intend to iterate over each row in the table, do a loop that goes up to 12 to generate the months, and insert the rows (in this example I want twelve months from a given $start_date). After each loop, I then add the 'Total' by hand. That code is below (some newlines removed for brevity): begin-procedure fill_array( $start_date ) let #total_codes = 0 let #total_print_positions = 0 begin-select atvscnt_code atvscnt_desc let #counter = 0 let $code = &atvscnt_code let $desc = &atvscnt_desc while( #counter < 12 ) let $month = datetostr( dateadd( strtodate( $start_date, 'DD-MON-YYYY' ), 'MONTH', #counter ), 'MM/YY' ) let #position = #counter put $code $desc $month #position 0 Into print_positions( #total_print_positions ) code desc date position value show $code ' ' $desc ' ' $month ' ' #position ' in ' #total_print_positions add 1 to #counter add 1 to #total_print_positions end-while add 1 to #position put $code $desc 'Total' #position 0 into print_positions( #total_print_positions ) code desc date position value show $code ' ' $desc ' Total ' #position ' in ' #total_print_positions add 1 to #total_print_positions FROM atvscnt ORDER BY atvscnt_code end-select The output of the 'show' code (using real-world values in the table and starting with 01-JUL-2004) is: CRS Correspondence 07/04 9.000000 in 0.000000 ... CRS Correspondence Total 21.000000 in 12.000000 ... PRC Personal Contact 06/05 20.000000 in 63.000000 PRC Personal Contact Total 21.000000 in 64.000000 Now the problem seems to be that the array population is not taking 'hold' in that while loop. For example if I then immediately iterate over the array: ... end-select let #counter = 0 while( #counter < #total_print_positions ) get $coded $descd $dated #positiond #valued from print_positions( #counter ) code desc date position value show $coded ' ' $descd ' ' $dated ' ' #positiond ' ' #valued ' in ' #counter add 1 to #counter end-while I end up with: PRC Personal Contact 06/05 20.000000 0.000000 in 0.000000 ... 0.000000 0.000000 in 11.000000 CRS Correspondence Total 21.000000 0.000000 in 12.000000 0.000000 0.000000 in 13.000000 ... 0.000000 0.000000 in 63.000000 PRC Personal Contact Total 21.000000 0.000000 in 64.000000 The truly strange thing is that the "PRC" 06/05 was the NEXT TO LAST item entered in the above loop yet it shows up first!! Has anyone seen anything like this before? I've done loops like this before without any problems. This is very, very frustrating!! Thanks, -- Matt _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Oct 28 07:14:54 2004 Date: Thu, 28 Oct 2004 08:13:56 -0400 From: Amy Eldridge Subject: Re: [sqr-users] Problem with arrays? Matt, in your while loop put statement: while( #counter < 12 ) let $month = datetostr( dateadd( strtodate( $start_date, 'DD-MON-YYYY' ), 'MONTH', #counter ), 'MM/YY' ) let #position = #counter put $code $desc $month #position 0 Into print_positions( #total_print_positions ) code desc date position value You have two spaces after the #total_print_positions variable. If you take those out, the code works. Like this: put $code $desc $month #position 0 Into print_positions(#total_print_positions) code desc date position value One space does not seem to bother it, but two spaces does. The two spaces are causing it to think you're always feeding a 0 into it. Amy Eldridge Applications Analyst IT Services Miami University At 07:31 PM 10/27/2004 -0400, Matt Rogish wrote: >Please copy me on any replies as I receive a digest -- it's hard to pick >out replies to my topic in the digest! > >I have an array I declared like this: > Create-Array Name=print_positions Size=100 Field=Code:Char > Field=Desc:Char Field=Date:Char Field=Position:Number Field=Value:Number > >I intend to have an array that looks like this: >ABC, This is the description, 01/01, 1, 0 >... >ABC, This is the description, 12/01, 12, 0 >ABC, This is the description, Total, 13, 0 >DEF, Description of the thing, 01/01, 1, 0 >... >DEF/Description strings are stored in a database table, the 01/01 >correspond to Month/Year (in MM/YY format). The 'total' date is a special >one which will store the summation of all the 1-12. I intend to iterate >over each row in the table, do a loop that goes up to 12 to generate the >months, and insert the rows (in this example I want twelve months from a >given $start_date). After each loop, I then add the 'Total' by hand. > >That code is below (some newlines removed for brevity): >begin-procedure fill_array( $start_date ) > let #total_codes = 0 > let #total_print_positions = 0 >begin-select >atvscnt_code >atvscnt_desc > let #counter = 0 > let $code = &atvscnt_code > let $desc = &atvscnt_desc > while( #counter < 12 ) > let $month = datetostr( dateadd( strtodate( $start_date, > 'DD-MON-YYYY' ), 'MONTH', #counter ), 'MM/YY' ) > let #position = #counter > put $code $desc $month #position 0 Into print_positions( > #total_print_positions ) code desc date position value > > show $code ' ' $desc ' ' $month ' ' #position ' in ' > #total_print_positions > > add 1 to #counter > add 1 to #total_print_positions > end-while > > add 1 to #position > put $code $desc 'Total' #position 0 into print_positions( > #total_print_positions ) code desc date position value > show $code ' ' $desc ' Total ' #position ' in ' #total_print_positions > add 1 to #total_print_positions > >FROM atvscnt >ORDER BY atvscnt_code >end-select > >The output of the 'show' code (using real-world values in the table and >starting with 01-JUL-2004) is: >CRS Correspondence 07/04 9.000000 in 0.000000 >... >CRS Correspondence Total 21.000000 in 12.000000 >... >PRC Personal Contact 06/05 20.000000 in 63.000000 >PRC Personal Contact Total 21.000000 in 64.000000 > > >Now the problem seems to be that the array population is not taking 'hold' >in that while loop. For example if I then immediately iterate over the array: >... >end-select > let #counter = 0 > while( #counter < #total_print_positions ) > get $coded $descd $dated #positiond #valued from print_positions( > #counter ) code desc date position value > show $coded ' ' $descd ' ' $dated ' ' #positiond ' ' #valued ' in > ' #counter > add 1 to #counter > end-while > >I end up with: >PRC Personal Contact 06/05 20.000000 0.000000 in 0.000000 >... > 0.000000 0.000000 in 11.000000 >CRS Correspondence Total 21.000000 0.000000 in 12.000000 > 0.000000 0.000000 in 13.000000 >... > 0.000000 0.000000 in 63.000000 >PRC Personal Contact Total 21.000000 0.000000 in 64.000000 > >The truly strange thing is that the "PRC" 06/05 was the NEXT TO LAST item >entered in the above loop yet it shows up first!! > >Has anyone seen anything like this before? I've done loops like this >before without any problems. This is very, very frustrating!! > >Thanks, > >-- >Matt > > >_______________________________________________ >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+sqrusersarch=sqrug.org@sqrug.org Thu Oct 28 17:05:03 2004 Date: Thu, 28 Oct 2004 15:03:52 -0700 (PDT) From: Deepu Subject: [sqr-users] Help needed Hi all, I'm trying to run a crytal report and when I enter the month and yeay in the prompt i'm getting an error message saying that the month should be between 1 and 12...even though it is. Then I get this window where it shows the following code.. ({WORN_LET.ORIG_HIRE_DT}>=Date ({WORN_LET.:1 }-1, {WORN_LET.:2 }, 1) or {WORN_LET.REHIRE_DT}>=Date ({WORN_LET.:1 }-1, {WORN_LET.:2 }, 1)) and ( (not ({WORN_LET.JOBCODE} in ["22085", "22087", "22108"]) and (({WORN_LET.:1}*12+{WORN_LET.:2}-Year ({@doh})*12-Month ({@doh}))=4 and {WORN_LET.STD_HOURS} < 21 or ({WORN_LET.:1}*12+{WORN_LET.:2}-Year ({@doh})*12-Month ({@doh}))=3 and {WORN_LET.STD_HOURS} >=21)) or ({WORN_LET.JOBCODE} in ["22085", "22087", "22108"] and ({WORN_LET.:1}*12+{WORN_LET.:2}-Year ({@doh})*12-Month ({@doh}))=6) ) can any one pls throw some light .. Thanks Deepu __________________________________________________ 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+sqrusersarch=sqrug.org@sqrug.org Mon Nov 01 00:00:41 2004 Date: Mon, 1 Nov 2004 00:00:02 -0500 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.21 $ $Date: 2004-03-04 02:47:15-05 $ 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 2003/11/01: o Update subscribe/unsubscribe instructions for new version of list server software. o New URL for "brio-l" 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 Gu