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$B!-(BT 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$B!-(BT 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$B!-(BT 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 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 Tue Nov 02 10:51:13 2004 From: "Marshall Madow" Date: Tue, 2 Nov 2004 10:49:00 -0500 Subject: [sqr-users] FW: help Hi All, I am a new SQR user who is using this technology in my new capacity as a Brio Administrator. I am attempting to run an SQR that runs successfully from my client machine and compiles correctly but am receiving the following error: Runtime error: exit code = 3 I don't believe this is a Brio error. Many Thanks in advance for any help you could give me, marshall Marshall Madow Senior Systems Analyst ITS ADCOMS DMR 10 Astor Place Phone: 212.998.1196 Fax: 212.995.3870 email to _______________________________________________ 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 Nov 02 10:56:52 2004 Subject: RE: [sqr-users] FW: help Date: Tue, 2 Nov 2004 09:54:06 -0600 From: "Knapp, Richard" SQR error messages are identified as such so, you are right, it is not an SQR message. 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 Marshall Madow Sent: Tuesday, November 02, 2004 9:49 AM To: sqr-users@sqrug.org Subject: [sqr-users] FW: help Hi All, =20 I am a new SQR user who is using this technology in my new capacity as a Brio Administrator. I am attempting to run an SQR that runs successfully from my client machine and compiles correctly but am receiving the following error: =20 Runtime error: exit code =3D 3 =20 =20 I don't believe this is a Brio error. =20 Many Thanks in advance for any help you could give me, marshall=20 =20 Marshall Madow Senior Systems Analyst ITS ADCOMS DMR 10 Astor Place Phone: 212.998.1196 Fax: 212.995.3870 email to =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 Tue Nov 02 11:12:02 2004 Date: Tue, 02 Nov 2004 17:09:22 +0100 From: LEBLANC Philippe FTC Subject: [sqr-users] Multiple database connections Brio Report Builder version: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D SQR6.2.1(build 126)/PC Compaq Deskpro EN pentiumIII 733MHz/Windows 2000/Ora= cle 8.1.7/ODBC 8.01.06.00 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D SQR6.2/Compaq True64/DEC AXP Digital UNIX V4.0F/Oracle 8.1.7 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D I'm trying to connect to each local database via ODBC under windows and get= this message error: Error on line 125: (SQR 3721) Bad param found on 'BEGIN-SELECT' line; Format is: BEGIN-SELECT [DISTINCT] [-Cnn] [-Bnn] [LOOPS=3Dnn] [ON-ERROR=3Dprocedure[(arg1[,argi]...)]] begin-select -DB$ChaineConnection on-error=3DTraitementErreur Errors were found in the program file. SQR: Program Aborting. Report sources is: !--------------------------------------------------------------------------= ------------------ ! Edition : EXTR0000.sqr !--------------------------------------------------------------------------= ------------------ ! Appelant:=20=20 ! Objet : EXTR0000 : Test de connections multibases !=20=20=20=20=20=20=20=20=20=20=20 !--------------------------------------------------------------------------= ------------------ ! Param. : ! $G_RefTrt : Reference du traitement=20 ! $G_DateTrt : Date d'execution sous la forme 'DD/MM/YYYY HH24:MM:SS' ! $G_NumTrt : Numero de lot=20 !--------------------------------------------------------------------------= ------------------ ! Para_INST :=20 ! $Queue_Impression : queue d'impression ! $Chemin_Impression : chemin d'impression !--------------------------------------------------------------------------= ------------------ #define IMP LINEPRINTER #define HP HPLASERJET ! #include 'toolssqr.inc' !--------------------------------------------------------------------------= ------------------ !------------------------------ !-- DEFINITION DU SETUP !------------------------------ Begin-Setup page-size 64 154 declare printer type=3D{HP} Symbol-Set=3D0N=20=20=20 left-margin=3D0.5 top-margin=3D0.5=20 orientation=3DLandscape point-size =3D 8 line-size =3D 8 char-size =3D 5 font =3D 1 End-Setup !--------------------------------------------------------------------------= ------------------ !----------------------------- !-- DEBUT DU PROGRAMME !----------------------------- Begin-Report Let $pvcs_id=3D'$Workfile: EXTR0000.sqr $ - $Revision: 0.1 $' Do Main_Programme End-report !--------------------------------------------------------------------------= ------------------ !-------------------------------- !-- TRAITEMENT PRINCIPAL !-------------------------------- Begin-procedure Main_Programme Move 'Main_Programme' To $Procedure #debug display $Procedure =09 Move 1 to #return-status Let #LargeurPage =3D 150 LET $ChaineConnection =3D 'BaseTEST1;DSN=3DBaseTEST1;UID=3Duser1;PWD=3Dpass= 1' #debug show 'Chaine de connection: ' $ChaineConnection Do Extraction LET $ChaineConnection =3D 'BaseTEST2;DSN=3DBaseTEST2;UID=3Duser1;PWD=3Dpass= 1' #debug show 'Chaine de connection: ' $ChaineConnection Do Extraction LET $ChaineConnection =3D 'BaseTEST3;DSN=3DBaseTEST3;UID=3Duser1;PWD=3Dpass= 1' #debug show 'Chaine de connection: ' $ChaineConnection Do Extraction ! FIN NORMALE Let #Return-Status =3D 0 COMMIT End-Procedure !--------------------------------------------------------------------------= ------------------ !------------------------------ !-- EDITION DE L'ETAT !------------------------------ Begin-Procedure Extraction Move 'Extraction' To $Procedure #debug display $Procedure move '*' to $databasename begin-select -DB$ChaineConnection on-error=3DTraitementErreur value &database_name let $databasename =3D &database_name #debug show 'Base: ' $databasename from v$parameter where name =3D 'db_name' end-select=20 End-Procedure !--------------------------------------------------------------------------= ------------------- !-------------------------------- !-- TRAITEMENTS DES ERREURS !-------------------------------- Begin-Procedure TraitementErreur ! Renvoie le numero des erreurs SQL, et stoppe le programme. If Not Isnull ($Sql-Error) #debug show 'Erreur Sql numero: ' $Sql-Error end-if STOP End-Procedure !--------------------------------------------------------------------------= ------------------- !--------------------------------------------------------------------------= ------------------- !--------------------------------------------------------------------------= ------------------- Do you have a suggestion to run my query on each database in a unique repor= t ??? Je reste =E0 votre disposition pour toute demande d'information compl=E9men= taire. Cordialement, Philippe LEBLANC France T=E9l=E9com C=E2ble Direction Informatique Cellule Finances & Statistiques Assistance centralis=E9e: 01.55.58.36.00 _______________________________________________ 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 Nov 02 11:24:58 2004 Subject: RE: [sqr-users] Multiple database connections Date: Tue, 2 Nov 2004 10:23:50 -0600 From: "Knapp, Richard" I have used connect and database links to accomplish referencing multiple d= atabases from a single SQR program. Here is a spot of documentation from o= ne of the programs: ! The connect command will work (connect 'user/passwd@hrrpt76') if=20 ! there is a dummy table or view in HR with the same name as the ! finance table (sysadm.ps_gm_dept_attrib). This fools SQR's=20 ! precompile check of db connectivity. But, in this case, a link has = to ! be used. This is often much slower. So, to make things as efficient ! as possible, all the data are brought over the link in one chunk ! and stored in arrays. AAUP is included here because about half of ! the report is identical to the IPEDS-SA.=20 They are really the same thing except the database stores the username and = password in the case of the link. More secure.=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-b= ounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of LEBLANC Philippe FTC Sent: Tuesday, November 02, 2004 10:09 AM To: sqr-users@sqrug.org Subject: [sqr-users] Multiple database connections Brio Report Builder version: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D SQR6.2.1(build 126)/PC Compaq Deskpro EN pentiumIII 733MHz/Windows 2000/Ora= cle 8.1.7/ODBC 8.01.06.00 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D SQR6.2/Compaq True64/DEC AXP Digital UNIX V4.0F/Oracle 8.1.7 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D I'm trying to connect to each local database via ODBC under windows and get= this message error: Error on line 125: (SQR 3721) Bad param found on 'BEGIN-SELECT' line; Format is: BEGIN-SELECT [DISTINCT] [-Cnn] [-Bnn] [LOOPS=3Dnn] [ON-ERROR=3Dprocedure[(arg1[,argi]...)]] begin-select -DB$ChaineConnection on-error=3DTraitementErreur Errors were found in the program file. SQR: Program Aborting. Report sources is: !--------------------------------------------------------------------------= ------------------ ! Edition : EXTR0000.sqr !--------------------------------------------------------------------------= ------------------ ! Appelant:=20=20 ! Objet : EXTR0000 : Test de connections multibases !=20=20=20=20=20=20=20=20=20=20=20 !--------------------------------------------------------------------------= ------------------ ! Param. : ! $G_RefTrt : Reference du traitement=20 ! $G_DateTrt : Date d'execution sous la forme 'DD/MM/YYYY HH24:MM:SS' ! $G_NumTrt : Numero de lot=20 !--------------------------------------------------------------------------= ------------------ ! Para_INST :=20 ! $Queue_Impression : queue d'impression ! $Chemin_Impression : chemin d'impression !--------------------------------------------------------------------------= ------------------ #define IMP LINEPRINTER #define HP HPLASERJET ! #include 'toolssqr.inc' !--------------------------------------------------------------------------= ------------------ !------------------------------ !-- DEFINITION DU SETUP !------------------------------ Begin-Setup page-size 64 154 declare printer type=3D{HP} Symbol-Set=3D0N=20=20=20 left-margin=3D0.5 top-margin=3D0.5=20 orientation=3DLandscape point-size =3D 8 line-size =3D 8 char-size =3D 5 font =3D 1 End-Setup !--------------------------------------------------------------------------= ------------------ !----------------------------- !-- DEBUT DU PROGRAMME !----------------------------- Begin-Report Let $pvcs_id=3D'$Workfile: EXTR0000.sqr $ - $Revision: 0.1 $' Do Main_Programme End-report !--------------------------------------------------------------------------= ------------------ !-------------------------------- !-- TRAITEMENT PRINCIPAL !-------------------------------- Begin-procedure Main_Programme Move 'Main_Programme' To $Procedure #debug display $Procedure =09 Move 1 to #return-status Let #LargeurPage =3D 150 LET $ChaineConnection =3D 'BaseTEST1;DSN=3DBaseTEST1;UID=3Duser1;PWD=3Dpass= 1' #debug show 'Chaine de connection: ' $ChaineConnection Do Extraction LET $ChaineConnection =3D 'BaseTEST2;DSN=3DBaseTEST2;UID=3Duser1;PWD=3Dpass= 1' #debug show 'Chaine de connection: ' $ChaineConnection Do Extraction LET $ChaineConnection =3D 'BaseTEST3;DSN=3DBaseTEST3;UID=3Duser1;PWD=3Dpass= 1' #debug show 'Chaine de connection: ' $ChaineConnection Do Extraction ! FIN NORMALE Let #Return-Status =3D 0 COMMIT End-Procedure !--------------------------------------------------------------------------= ------------------ !------------------------------ !-- EDITION DE L'ETAT !------------------------------ Begin-Procedure Extraction Move 'Extraction' To $Procedure #debug display $Procedure move '*' to $databasename begin-select -DB$ChaineConnection on-error=3DTraitementErreur value &database_name let $databasename =3D &database_name #debug show 'Base: ' $databasename from v$parameter where name =3D 'db_name' end-select=20 End-Procedure !--------------------------------------------------------------------------= ------------------- !-------------------------------- !-- TRAITEMENTS DES ERREURS !-------------------------------- Begin-Procedure TraitementErreur ! Renvoie le numero des erreurs SQL, et stoppe le programme. If Not Isnull ($Sql-Error) #debug show 'Erreur Sql numero: ' $Sql-Error end-if STOP End-Procedure !--------------------------------------------------------------------------= ------------------- !--------------------------------------------------------------------------= ------------------- !--------------------------------------------------------------------------= ------------------- Do you have a suggestion to run my query on each database in a unique repor= t ??? Je reste =E0 votre disposition pour toute demande d'information compl=E9men= taire. Cordialement, Philippe LEBLANC France T=E9l=E9com C=E2ble Direction Informatique Cellule Finances & Statistiques Assistance centralis=E9e: 01.55.58.36.00 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 02 11:29:15 2004 Subject: Re: [sqr-users] Multiple database connections From: harriaj@NU.COM Date: Tue, 2 Nov 2004 11:27:44 -0500 > I'm trying to connect to each local database via ODBC under windows > and get this message error: > Error on line 125: > (SQR 3721) Bad param found on 'BEGIN-SELECT' line; Format is: > BEGIN-SELECT [DISTINCT] [-Cnn] [-Bnn] [LOOPS=nn] > [ON-ERROR=procedure[(arg1[,argi]...)]] > begin-select -DB$ChaineConnection on-error=TraitementErreur > > Errors were found in the program file. > > SQR: Program Aborting. Verify that the SQR Server being used is SQR for ODBC. If it is not, it will not recognize the -DB flag. 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 Nov 02 11:35:11 2004 Date: Tue, 02 Nov 2004 17:34:34 +0100 From: LEBLANC Philippe FTC Subject: =?ISO-8859-1?Q?R=E9p.=20:=20Re:=20[sqr-users]=20Multiple=20datab?==?ISO-8859-1?Q?ase=20connections?= Yes it is: i usually run my report under windows connecting via odbc for de= bugging=20 before using them under unix. Je reste =E0 votre disposition pour toute demande d'information compl=E9men= taire. Cordialement, Philippe LEBLANC France T=E9l=E9com C=E2ble Direction Informatique Cellule Finances & Statistiques Assistance centralis=E9e: 01.55.58.36.00 _______________________________________________ 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 Nov 02 11:40:55 2004 Date: Tue, 02 Nov 2004 17:36:45 +0100 From: LEBLANC Philippe FTC Subject: =?ISO-8859-1?Q?R=E9p.=20:=20RE:=20[sqr-users]=20Multiple=20datab?==?ISO-8859-1?Q?ase=20connections?= So you mean i need do declare a db-link for each local database to retrieve= the datas ? Can you be more explicit about the procedure so i can explain it to the dat= abase administrator ? (and for me too: it's a bit confused for me...), thanks. Je reste =E0 votre disposition pour toute demande d'information compl=E9men= taire. Cordialement, Philippe LEBLANC France T=E9l=E9com C=E2ble Direction Informatique Cellule Finances & Statistiques Assistance centralis=E9e: 01.55.58.36.00 _______________________________________________ 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 Nov 02 11:51:58 2004 Subject: =?iso-8859-1?Q?RE=3A_R=E9p=2E_=3A_RE=3A_=5Bsqr-users=5D_Multiple_data?= =?iso-8859-1?Q?base_connections?= Date: Tue, 2 Nov 2004 10:49:12 -0600 From: "Knapp, Richard" If your databases are Oracle, in sqlplus on the db you are using as a home = db: Create database link linkname connect to user identified by password using = 'remotedb.some.where' This will be stored in the db. To use it: select * from tablex@linkname; 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-b= ounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of LEBLANC Philippe FTC Sent: Tuesday, November 02, 2004 10:37 AM To: sqr-users@sqrug.org Subject: R=E9p. : RE: [sqr-users] Multiple database connections So you mean i need do declare a db-link for each local database to retrieve= the datas ? Can you be more explicit about the procedure so i can explain it to the dat= abase administrator ? (and for me too: it's a bit confused for me...), thanks. Je reste =E0 votre disposition pour toute demande d'information compl=E9men= taire. Cordialement, Philippe LEBLANC France T=E9l=E9com C=E2ble Direction Informatique Cellule Finances & Statistiques Assistance centralis=E9e: 01.55.58.36.00 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 02 11:53:53 2004 Date: Tue, 02 Nov 2004 08:52:14 -0800 From: "Meenu Jhigan" Subject: [sqr-users] Muliptle Reports Hi, I am using version 5.0 on Peoplesoft - version 8.2 (DB2). I am using muliptle reports in my program but only one is generated based on what Report name was declared first. Any suggestions as to what can I do to get both the reports. Our SQR.INI file has setting as output-file-mode=long that should generate reports but is not. Thanks, Meenu mjhigan@scu.edu This message scanned for viruses and SPAM by GWGuardian at SCU (MGW2). _______________________________________________ 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 Nov 02 12:00:35 2004 Date: Tue, 02 Nov 2004 18:00:10 +0100 From: LEBLANC Philippe FTC Subject: =?ISO-8859-1?Q?RE:=20R=E9p.=20:=20RE:=20[sqr-users]=20Multiple?==?ISO-8859-1?Q?=20database=20connections?= And i could use the link as for example: begin-select distinct=20 cli_sit &site, cli_nom &nom move &site to $site move &nom to $nom #debut show 'Site: ' $site ', nom: ' $nom from client@linkname end-select But does i need to make a link for each local database ? and then use it as: begin-select distinct=20 cli_sit &site, cli_nom &nom move &site to $site move &nom to $nom #debut show 'Site: ' $site ', nom: ' $nom from client@linkbase1 end-select Je reste =E0 votre disposition pour toute demande d'information compl=E9men= taire. Cordialement, Philippe LEBLANC France T=E9l=E9com C=E2ble Direction Informatique Cellule Finances & Statistiques Assistance centralis=E9e: 01.55.58.36.00 _______________________________________________ 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 Nov 02 12:03:57 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] Muliptle Reports Date: Tue, 2 Nov 2004 09:01:38 -0800 When you execute a new-report command, what is the name of the new report? It should have the same path as the first report, so that Peoplesoft's report repository process knows where to find it. Parse the string in $sqr-report to obtain the path. -----Original Message----- From: Meenu Jhigan [mailto:MJhigan@scu.edu] Sent: Tuesday, November 02, 2004 8:52 AM To: sqr-users@sqrug.org Subject: [sqr-users] Muliptle Reports Hi, I am using version 5.0 on Peoplesoft - version 8.2 (DB2). I am using muliptle reports in my program but only one is generated based on what Report name was declared first. Any suggestions as to what can I do to get both the reports. Our SQR.INI file has setting as output-file-mode=long that should generate reports but is not. Thanks, Meenu mjhigan@scu.edu This message scanned for viruses and SPAM by GWGuardian at SCU (MGW2). _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 02 12:43:04 2004 Date: Tue, 2 Nov 2004 09:41:59 -0800 (PST) From: ~ Wanna Be Guru ~ Subject: RE: Rép. : RE: [sqr-users] Multiple database connections I have similar question. Can we have multiple parallel database connection from an sqr ? I have to read stuff from one database and then update in other. I checked the SQR manuals, but it says It first logs off and then logs on back with new information. I have planned of using array for temporary storing data from database 1 and then connect to other and move data from array to database 2 If you have been through these, could you help me knowing how or some snippet ? Thanks WBG "Knapp, Richard" wrote: If your databases are Oracle, in sqlplus on the db you are using as a home db: Create database link linkname connect to user identified by password using 'remotedb.some.where' This will be stored in the db. To use it: select * from tablex@linkname; 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 LEBLANC Philippe FTC Sent: Tuesday, November 02, 2004 10:37 AM To: sqr-users@sqrug.org Subject: Rép. : RE: [sqr-users] Multiple database connections So you mean i need do declare a db-link for each local database to retrieve the datas ? Can you be more explicit about the procedure so i can explain it to the database administrator ? (and for me too: it's a bit confused for me...), thanks. Je reste à votre disposition pour toute demande d'information complémentaire. Cordialement, Philippe LEBLANC France Télécom Câble Direction Informatique Cellule Finances & Statistiques Assistance centralisée: 01.55.58.36.00 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com/a _______________________________________________ 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 Nov 02 15:19:26 2004 Subject: =?iso-8859-1?Q?RE=3A_R=E9p=2E_=3A_RE=3A_=5Bsqr-users=5D_Multiple_data?= =?iso-8859-1?Q?base_connections?= Date: Tue, 2 Nov 2004 14:15:08 -0600 From: "Knapp, Richard" Yes, you need to have a link to each database that you are using that is no= t the database you or your SQR is logged into. 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-b= ounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of LEBLANC Philippe FTC Sent: Tuesday, November 02, 2004 11:00 AM To: sqr-users@sqrug.org Subject: RE: R=E9p. : RE: [sqr-users] Multiple database connections And i could use the link as for example: begin-select distinct=20 cli_sit &site, cli_nom &nom move &site to $site move &nom to $nom #debut show 'Site: ' $site ', nom: ' $nom from client@linkname end-select But does i need to make a link for each local database ? and then use it as: begin-select distinct=20 cli_sit &site, cli_nom &nom move &site to $site move &nom to $nom #debut show 'Site: ' $site ', nom: ' $nom from client@linkbase1 end-select Je reste =E0 votre disposition pour toute demande d'information compl=E9men= taire. Cordialement, Philippe LEBLANC France T=E9l=E9com C=E2ble Direction Informatique Cellule Finances & Statistiques Assistance centralis=E9e: 01.55.58.36.00 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 02 15:44:25 2004 From: Jeff.Steinfeldt@wellsfargo.com Date: Tue, 2 Nov 2004 14:41:51 -0600 Subject: [sqr-users] SQR, Microsoft SQL Server, and global temporary tables My current challenge is as follows. We have reached the architectural limit for 'PROGLINEPARS' (65535) in our main SQR report generator. The proposed solution was to retain the main report generator as a sort of scheduling processer and have it execute individually compiled SQT files. The idea works if I cause the individually called routines to create their own temporary work tables. But this is messy because many of them use the same tables and this causes a lot of overhead as the tables are repeatedly created and dropped. So I thought of having the scheduling processer create the global temporary tables once and then each of the called routines could access them without having to recreate them. But I ran into what appears to be a deadlock condition when I tried to implement this. The global temporary tables get created and I've verified this by having the scheduling processer select row counts off of them. The called routines attempt to open a cursor against the global temporary tables and then hang on the system forever. Peeking at the situation with Transact SQL's sp_who command I am able to verify the that called process is in a wait state apparently after requesting a key lock on the global temporary table. So the question is whether or not it is possible to cause the process that created the global temporary tables to share them with the subprocesses. Has anyone ever accomplished this? _______________________________________________ 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 Nov 03 10:13:41 2004 From: Jeff.Steinfeldt@wellsfargo.com Date: Wed, 3 Nov 2004 09:12:54 -0600 Subject: [sqr-users] SQR, Microsoft SQL Server, and global temporary tables I solved this on the drive home last night. Turns out that not only do you need a COMMIT TRANSACTION in the stored procedure that has created the global temp table, but you also need the COMMIT statement in the SQR program that called the stored procedure. Apparently SQR applies some locks of its own and they aren't cleared when the stored procedure performs its COMMIT. And also at this point it is no longer necessary to supply user name and password when executing the SQT, which resolves some security concerns. _______________________________________________ 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 Nov 04 10:48:12 2004 Date: Thu, 04 Nov 2004 10:47:30 -0500 From: Matt Rogish Subject: [sqr-users] CREATE-LIST... but how to get it back? (If you could reply back to myself as well as the list, that would be appreciated since I get my list in a daily digest and it's difficult to find my replies in there!) In the SQR8.2 "What's New" guide (http://dev.hyperion.com/techdocs/sqr/sqr_82/hsqr_whats_new.pdf) it mentions that there is the new functionality to create a "named list" via the CREATE-LIST command: create-list name = 'linestyle' list = ( 'solid', 'longdash', 'dot' ) Ok, this is all well and good, but how does one get values out of this list later? I can't find anything in the docs about how to subsequently handle this list; I presume it creates a regular old list variable, but none of the traditional list variable processing techniques seem to work on this list. For example, I just want to create a list then echo it back out to see what SQR is doing. create-list name='dummy_values' list = ( 'lists', 'are', 'plenty of fun' ) ! This gives me (SQR 4008) Unknown function or variable in expression: dummy_values[0] let $value = %dummy_values[0] ! This gives me (SQR 4009) Function 'dummy_values[0].list' missing parentheses. let $value = %dummy_values[0].list Any ideas how I can get values back out of the list that I've just created? 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 Fri Nov 05 08:41:36 2004 Date: Fri, 5 Nov 2004 08:40:13 -0500 From: "Moran, Patrick T." Subject: [sqr-users] Updating a DB with a null string I have been unable to update a SQL Server table with a null string (i.e., a string of length 0, not the value NULL) from an SQR script, although I am able to do it directly with SQL. My code contains the statement Let $no_term =3D '' which creates a null string w/i my SQR script, but when I use this variable in a SET statement within an UPDATE statement it is interpreted as the value NULL. I want to have the DB column value be a null string not NULL. =20 Does anyone know how to get around this problem? =20 Thanks. =20 Pat =20 =20 Patrick T. Moran=20 Applications Specialist, Administrative Systems LITC-C8=20 Trinity College 300 Summit Street Hartford, CT 06106=20 Voice: 860.297.2223 Fax: 860.297.2569=20 Email: patrick.moran@trincoll.edu =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Nov 05 14:38:23 2004 From: Bob Stone Date: Fri, 5 Nov 2004 13:37:13 -0600 Subject: [sqr-users] variable resetting to 0 problem Hey there. Okay, so this should be a pretty easy problem, but it has me currently stumped. I'm trying to use a couple variables across my SQR and by the time I go to use them, they've been reset to 0. Here's a summary of my program (i've taken out the parts which I know work fine, and aren't part of the problem). My idea is to set up these variables that are going to be used through the whole SQR. But as they're being called through procedures, they're not being set correctly. REPORT calls CC_REPORT calls BUSINESS_UNIT_ROW sets #D_BU_COUNT. but when I try to use it in a different procedure (END_OF_DISTRICT) it isn't set. Can someone tell me what i'm doing wrong with my variables?!?! do i need to declare them somewhere else? is the problem with how many procedures its going through? i'm stumped. any help would be appreciated. The finished product will look somethign like this normal single BU1 10 5 BU2 20 7 BU3 17 2 BU4 13 10 dist tot 80 24 Avg 20 6 ** except #d_bu_count isn't being correctly increased by one!! ------------------------- BOB.SQR || ------------------------- !******************************************************************* BEGIN-SETUP !******************************************************************* END-SETUP !******************************************************************* BEGIN-REPORT !******************************************************************* !-------District variables let #d_normal = 0 let #d_single = 0 let #d_bu_count = 0 !-------Region variables let #r_normal = 0 let #r_single = 0 let #r_bu_count = 0 !------Excel Variables Let #RowNum = 1 Do EXCEL-HEADING do CC_REPORT END-REPORT !******************************************************************* BEGIN-PROCEDURE CC_REPORT !******************************************************************* BEGIN-SELECT fas_branch5 &business_unit fas_district_descr () ON-BREAK PRINT=NEVER AFTER=END_OF_DISTRICT SKIPLINES = 1 fas_regional_descr () ON-BREAK PRINT=NEVER AFTER=END_OF_REGION SKIPLINES = 1 let $business_unit = &business_unit Do BUSINESS_UNIT_ROW($business_unit) FROM sysadm.ps_table WHERE busin_unit_type = 'BRNC' AND fas_branch5 in ( **Blah blah blah. sql works fine ) ORDER BY fas_region_code, fas_district, fas_bu_4char END-SELECT END-PROCEDURE CC_REPORT !******************************************************************* BEGIN-PROCEDURE BUSINESS_UNIT_ROW($bu) !******************************************************************* !******************** Normal CC BEGIN-SELECT on-error=sql-error count(distinct a.counting_event_id) &n.count let #cyclcnt_count = &n.count FROM ps_count_hdr_inv a, ps_fas_count2_inv c WHERE a.business_unit = c.business_unit and a.counting_event_id = c.counting_event_id and c.business_unit = $bu and c.fas_cyclcnt_type = 'N' END-SELECT let #d_normal = #d_normal + #cyclcnt_count let #r_normal = #r_normal + #cyclcnt_count !******************** Single CC BEGIN-SELECT on-error=sql-error count(distinct a.counting_event_id) &s.count let #cyclcnt_count = &s.count FROM ps_count_hdr_inv a, ps_fas_count2_inv c WHERE a.business_unit = c.business_unit and a.counting_event_id = c.counting_event_id and c.business_unit = $bu and c.fas_cyclcnt_type = 'S' END-SELECT let #d_single = #d_single + #cyclcnt_count let #r_single = #r_single + #cyclcnt_count !******************** let #d_bu_count = #d_bu_count + 1 let #r_bu_count = #r_bu_count + 1 let #RowNum = #RowNum + 1 END-PROCEDURE BUSINESS_UNIT_ROW !******************************************************************* BEGIN-PROCEDURE END_OF_DISTRICT !******************************************************************* !***TOTALS Do Excel-Write-Number(1, #RowNum, 4, #d_normal) Do Excel-Write-Number(1, #RowNum, 5, #d_single) !***AVERAGES let #d_normal = #d_normal / #d_bu_count !****ERROR - cannot divide by ZERO***!! let #d_single = #d_single / #d_bu_count let #RowNum = #RowNum + 1 !skip a row Do Excel-Write-Number(1, #RowNum, 4, #d_normal) Do Excel-Write-Number(1, #RowNum, 5, #d_single) !***RESET VARIABLES to 0 FOR NEXT DISTRICT let #d_normal = 0 let #d_single = 0 let #RowNum = #RowNum + 1 !skip a row END-PROCEDURE END_OF_DISTRICT #include **stuff - includes are working fine** _______________________________________________ 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 Nov 05 14:46:40 2004 From: "Peter Burton" Date: Fri, 5 Nov 2004 14:44:42 -0500 Subject: RE: [sqr-users] variable resetting to 0 problem Bob, =46rom within a LOCAL procedure or a procedure with parameters to access a global variable you must include an underscore (_) character after the variable type character. That is, #_d_normal rather than #d_normal. 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 Bob Stone Sent: Friday, November 05, 2004 2:37 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] variable resetting to 0 problem Hey there. Okay, so this should be a pretty easy problem, but it has me currently stumped. I'm trying to use a couple variables across my SQR and by the time I go to use them, they've been reset to 0. Here's a summary of my program (i've taken out the parts which I know work fine, and aren't part of the problem). My idea is to set up these variables that are going to be used through the whole SQR. But as they're being called through procedures, they're not being set correctly. REPORT calls CC_REPORT calls BUSINESS_UNIT_ROW sets #D_BU_COUNT. but when I try to use it in a different procedure (END_OF_DISTRICT) it isn't set. Can someone tell me what i'm doing wrong with my variables?!?!=20=20 do i need to declare them somewhere else?=20=20 is the problem with how many procedures its going through? i'm stumped. any help would be appreciated. The finished product will look somethign like this normal single BU1 10 5=09 BU2 20 7 BU3 17 2 BU4 13 10 dist tot 80 24 Avg 20 6 ** except #d_bu_count isn't being correctly increased by one!! ------------------------- BOB.SQR || ------------------------- !******************************************************************* BEGIN-SETUP !******************************************************************* END-SETUP !******************************************************************* BEGIN-REPORT !******************************************************************* !-------District variables let #d_normal =3D 0 let #d_single =3D 0 let #d_bu_count =3D 0 !-------Region variables let #r_normal =3D 0 let #r_single =3D 0 let #r_bu_count =3D 0 !------Excel Variables Let #RowNum =3D 1 Do EXCEL-HEADING do CC_REPORT END-REPORT !******************************************************************* BEGIN-PROCEDURE CC_REPORT !******************************************************************* BEGIN-SELECT=20 fas_branch5 &business_unit=09 fas_district_descr () ON-BREAK PRINT=3DNEVER AFTER=3DEND_OF_DISTRICT SKIPLINES =3D 1 fas_regional_descr () ON-BREAK PRINT=3DNEVER AFTER=3DEND_OF_REGION SKIPLINES =3D 1 let $business_unit =3D &business_unit Do BUSINESS_UNIT_ROW($business_unit)=09=09=09 FROM sysadm.ps_table WHERE busin_unit_type =3D 'BRNC' AND fas_branch5 in ( **Blah blah blah. sql works fine ) ORDER BY fas_region_code, fas_district, fas_bu_4char END-SELECT END-PROCEDURE CC_REPORT !******************************************************************* BEGIN-PROCEDURE BUSINESS_UNIT_ROW($bu) !******************************************************************* !******************** Normal CC BEGIN-SELECT on-error=3Dsql-error count(distinct a.counting_event_id) &n.count let #cyclcnt_count =3D &n.count FROM ps_count_hdr_inv a, ps_fas_count2_inv c WHERE a.business_unit =3D c.business_unit and a.counting_event_id =3D c.counting_event_id and c.business_unit =3D $bu and c.fas_cyclcnt_type =3D 'N' END-SELECT let #d_normal =3D #d_normal + #cyclcnt_count let #r_normal =3D #r_normal + #cyclcnt_count !******************** Single CC BEGIN-SELECT on-error=3Dsql-error count(distinct a.counting_event_id) &s.count let #cyclcnt_count =3D &s.count FROM ps_count_hdr_inv a, ps_fas_count2_inv c WHERE a.business_unit =3D c.business_unit and a.counting_event_id =3D c.counting_event_id and c.business_unit =3D $bu and c.fas_cyclcnt_type =3D 'S' END-SELECT let #d_single =3D #d_single + #cyclcnt_count let #r_single =3D #r_single + #cyclcnt_count !******************** let #d_bu_count =3D #d_bu_count + 1 let #r_bu_count =3D #r_bu_count + 1 let #RowNum =3D #RowNum + 1 END-PROCEDURE BUSINESS_UNIT_ROW !******************************************************************* BEGIN-PROCEDURE END_OF_DISTRICT !******************************************************************* !***TOTALS Do Excel-Write-Number(1, #RowNum, 4, #d_normal) Do Excel-Write-Number(1, #RowNum, 5, #d_single) !***AVERAGES let #d_normal =3D #d_normal / #d_bu_count !****ERROR - cannot divide by ZERO***!! let #d_single =3D #d_single / #d_bu_count let #RowNum =3D #RowNum + 1 !skip a row Do Excel-Write-Number(1, #RowNum, 4, #d_normal) Do Excel-Write-Number(1, #RowNum, 5, #d_single) !***RESET VARIABLES to 0 FOR NEXT DISTRICT let #d_normal =3D 0 let #d_single =3D 0 let #RowNum =3D #RowNum + 1 !skip a row END-PROCEDURE END_OF_DISTRICT=20=20 #include **stuff - includes are working fine** _______________________________________________ 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 Nov 05 14:50:37 2004 Subject: RE: [sqr-users] variable resetting to 0 problem Date: Fri, 5 Nov 2004 13:45:53 -0600 From: "Knapp, Richard" Looks to me like you are jumping right to end_of_district (not summing in between). 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 Bob Stone Sent: Friday, November 05, 2004 1:37 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] variable resetting to 0 problem Hey there. Okay, so this should be a pretty easy problem, but it has me currently stumped. I'm trying to use a couple variables across my SQR and by the time I go to use them, they've been reset to 0. Here's a summary of my program (i've taken out the parts which I know work fine, and aren't part of the problem). My idea is to set up these variables that are going to be used through the whole SQR. But as they're being called through procedures, they're not being set correctly. REPORT calls CC_REPORT calls BUSINESS_UNIT_ROW sets #D_BU_COUNT. but when I try to use it in a different procedure (END_OF_DISTRICT) it isn't set. Can someone tell me what i'm doing wrong with my variables?!?!=20=20 do i need to declare them somewhere else?=20=20 is the problem with how many procedures its going through? i'm stumped. any help would be appreciated. The finished product will look somethign like this normal single BU1 10 5=09 BU2 20 7 BU3 17 2 BU4 13 10 dist tot 80 24 Avg 20 6 ** except #d_bu_count isn't being correctly increased by one!! ------------------------- BOB.SQR || ------------------------- !******************************************************************* BEGIN-SETUP !******************************************************************* END-SETUP !******************************************************************* BEGIN-REPORT !******************************************************************* !-------District variables let #d_normal =3D 0 let #d_single =3D 0 let #d_bu_count =3D 0 !-------Region variables let #r_normal =3D 0 let #r_single =3D 0 let #r_bu_count =3D 0 !------Excel Variables Let #RowNum =3D 1 Do EXCEL-HEADING do CC_REPORT END-REPORT !******************************************************************* BEGIN-PROCEDURE CC_REPORT !******************************************************************* BEGIN-SELECT=20 fas_branch5 &business_unit=09 fas_district_descr () ON-BREAK PRINT=3DNEVER AFTER=3DEND_OF_DISTRICT SKIPLINES =3D 1 fas_regional_descr () ON-BREAK PRINT=3DNEVER AFTER=3DEND_OF_REGION SKIPLINES =3D 1 let $business_unit =3D &business_unit Do BUSINESS_UNIT_ROW($business_unit)=09=09=09 FROM sysadm.ps_table WHERE busin_unit_type =3D 'BRNC' AND fas_branch5 in ( **Blah blah blah. sql works fine ) ORDER BY fas_region_code, fas_district, fas_bu_4char END-SELECT END-PROCEDURE CC_REPORT !******************************************************************* BEGIN-PROCEDURE BUSINESS_UNIT_ROW($bu) !******************************************************************* !******************** Normal CC BEGIN-SELECT on-error=3Dsql-error count(distinct a.counting_event_id) &n.count let #cyclcnt_count =3D &n.count FROM ps_count_hdr_inv a, ps_fas_count2_inv c WHERE a.business_unit =3D c.business_unit and a.counting_event_id =3D c.counting_event_id and c.business_unit =3D $bu and c.fas_cyclcnt_type =3D 'N' END-SELECT let #d_normal =3D #d_normal + #cyclcnt_count let #r_normal =3D #r_normal + #cyclcnt_count !******************** Single CC BEGIN-SELECT on-error=3Dsql-error count(distinct a.counting_event_id) &s.count let #cyclcnt_count =3D &s.count FROM ps_count_hdr_inv a, ps_fas_count2_inv c WHERE a.business_unit =3D c.business_unit and a.counting_event_id =3D c.counting_event_id and c.business_unit =3D $bu and c.fas_cyclcnt_type =3D 'S' END-SELECT let #d_single =3D #d_single + #cyclcnt_count let #r_single =3D #r_single + #cyclcnt_count !******************** let #d_bu_count =3D #d_bu_count + 1 let #r_bu_count =3D #r_bu_count + 1 let #RowNum =3D #RowNum + 1 END-PROCEDURE BUSINESS_UNIT_ROW !******************************************************************* BEGIN-PROCEDURE END_OF_DISTRICT=20=20 !******************************************************************* !***TOTALS Do Excel-Write-Number(1, #RowNum, 4, #d_normal) Do Excel-Write-Number(1, #RowNum, 5, #d_single) !***AVERAGES let #d_normal =3D #d_normal / #d_bu_count !****ERROR - cannot divide by ZERO***!! let #d_single =3D #d_single / #d_bu_count let #RowNum =3D #RowNum + 1 !skip a row Do Excel-Write-Number(1, #RowNum, 4, #d_normal) Do Excel-Write-Number(1, #RowNum, 5, #d_single) !***RESET VARIABLES to 0 FOR NEXT DISTRICT let #d_normal =3D 0 let #d_single =3D 0 let #RowNum =3D #RowNum + 1 !skip a row END-PROCEDURE END_OF_DISTRICT=20=20 #include **stuff - includes are working fine** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 05 14:54:15 2004 Subject: Re: [sqr-users] variable resetting to 0 problem From: Russ Wulfson Date: Fri, 5 Nov 2004 13:48:46 -0600 I think it's related to the fact the procedures that take parameters have variables that are local only to that procedure. Thanks, Russ Wulfson Bob Stone Sent by: sqr-users-bounces+rwulfson=bost.com@sqrug.org 11/05/2004 12:37 PM Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." To "'sqr-users@sqrug.org'" cc Subject [sqr-users] variable resetting to 0 problem Hey there. Okay, so this should be a pretty easy problem, but it has me currently stumped. I'm trying to use a couple variables across my SQR and by the time I go to use them, they've been reset to 0. Here's a summary of my program (i've taken out the parts which I know work fine, and aren't part of the problem). My idea is to set up these variables that are going to be used through the whole SQR. But as they're being called through procedures, they're not being set correctly. REPORT calls CC_REPORT calls BUSINESS_UNIT_ROW sets #D_BU_COUNT. but when I try to use it in a different procedure (END_OF_DISTRICT) it isn't set. Can someone tell me what i'm doing wrong with my variables?!?! do i need to declare them somewhere else? is the problem with how many procedures its going through? i'm stumped. any help would be appreciated. The finished product will look somethign like this normal single BU1 10 5 BU2 20 7 BU3 17 2 BU4 13 10 dist tot 80 24 Avg 20 6 ** except #d_bu_count isn't being correctly increased by one!! ------------------------- BOB.SQR || ------------------------- !******************************************************************* BEGIN-SETUP !******************************************************************* END-SETUP !******************************************************************* BEGIN-REPORT !******************************************************************* !-------District variables let #d_normal = 0 let #d_single = 0 let #d_bu_count = 0 !-------Region variables let #r_normal = 0 let #r_single = 0 let #r_bu_count = 0 !------Excel Variables Let #RowNum = 1 Do EXCEL-HEADING do CC_REPORT END-REPORT !******************************************************************* BEGIN-PROCEDURE CC_REPORT !******************************************************************* BEGIN-SELECT fas_branch5 &business_unit fas_district_descr () ON-BREAK PRINT=NEVER AFTER=END_OF_DISTRICT SKIPLINES = 1 fas_regional_descr () ON-BREAK PRINT=NEVER AFTER=END_OF_REGION SKIPLINES = 1 let $business_unit = &business_unit Do BUSINESS_UNIT_ROW($business_unit) FROM sysadm.ps_table WHERE busin_unit_type = 'BRNC' AND fas_branch5 in ( **Blah blah blah. sql works fine ) ORDER BY fas_region_code, fas_district, fas_bu_4char END-SELECT END-PROCEDURE CC_REPORT !******************************************************************* BEGIN-PROCEDURE BUSINESS_UNIT_ROW($bu) !******************************************************************* !******************** Normal CC BEGIN-SELECT on-error=sql-error count(distinct a.counting_event_id) &n.count let #cyclcnt_count = &n.count FROM ps_count_hdr_inv a, ps_fas_count2_inv c WHERE a.business_unit = c.business_unit and a.counting_event_id = c.counting_event_id and c.business_unit = $bu and c.fas_cyclcnt_type = 'N' END-SELECT let #d_normal = #d_normal + #cyclcnt_count let #r_normal = #r_normal + #cyclcnt_count !******************** Single CC BEGIN-SELECT on-error=sql-error count(distinct a.counting_event_id) &s.count let #cyclcnt_count = &s.count FROM ps_count_hdr_inv a, ps_fas_count2_inv c WHERE a.business_unit = c.business_unit and a.counting_event_id = c.counting_event_id and c.business_unit = $bu and c.fas_cyclcnt_type = 'S' END-SELECT let #d_single = #d_single + #cyclcnt_count let #r_single = #r_single + #cyclcnt_count !******************** let #d_bu_count = #d_bu_count + 1 let #r_bu_count = #r_bu_count + 1 let #RowNum = #RowNum + 1 END-PROCEDURE BUSINESS_UNIT_ROW !******************************************************************* BEGIN-PROCEDURE END_OF_DISTRICT !******************************************************************* !***TOTALS Do Excel-Write-Number(1, #RowNum, 4, #d_normal) Do Excel-Write-Number(1, #RowNum, 5, #d_single) !***AVERAGES let #d_normal = #d_normal / #d_bu_count !****ERROR - cannot divide by ZERO***!! let #d_single = #d_single / #d_bu_count let #RowNum = #RowNum + 1 !skip a row Do Excel-Write-Number(1, #RowNum, 4, #d_normal) Do Excel-Write-Number(1, #RowNum, 5, #d_single) !***RESET VARIABLES to 0 FOR NEXT DISTRICT let #d_normal = 0 let #d_single = 0 let #RowNum = #RowNum + 1 !skip a row END-PROCEDURE END_OF_DISTRICT #include **stuff - includes are working fine** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 05 14:57:44 2004 Date: Fri, 05 Nov 2004 14:50:39 -0500 From: "Larry Roux" Subject: Re: [sqr-users] variable resetting to 0 problem By adding passed variables you are making functions rather than procedures. All variables in functions are local only. Return the values via the argument list ie: begin-program Let #NUM = 3 Do AAA(#NUM) show #NUM ' ' #RESULT end-program begin-procedure AAA(#VAL1) Let #RESULT = #VAL1 * 5 end-procedure will end up showing "3 0" as the variable #RESULT is local to only the function AAA pass back the variable as such: begin-program Let #NUM = 3 Do AAA(#NUM, #RESULT) show #NUM ' ' #RESULT end-program begin-procedure AAA(#VAL1, :#RESULT) Let #RESULT = #VAL1 * 5 end-procedure Now it will show " 3 15" Larry Roux Syracuse University lroux@syr.edu >>> bstone@fastenal.com 11/5/2004 2:37:13 PM >>> Hey there. Okay, so this should be a pretty easy problem, but it has me currently stumped. I'm trying to use a couple variables across my SQR and by the time I go to use them, they've been reset to 0. Here's a summary of my program (i've taken out the parts which I know work fine, and aren't part of the problem). My idea is to set up these variables that are going to be used through the whole SQR. But as they're being called through procedures, they're not being set correctly. REPORT calls CC_REPORT calls BUSINESS_UNIT_ROW sets #D_BU_COUNT. but when I try to use it in a different procedure (END_OF_DISTRICT) it isn't set. Can someone tell me what i'm doing wrong with my variables?!?! do i need to declare them somewhere else? is the problem with how many procedures its going through? i'm stumped. any help would be appreciated. The finished product will look somethign like this normal single BU1 10 5 BU2 20 7 BU3 17 2 BU4 13 10 dist tot 80 24 Avg 20 6 ** except #d_bu_count isn't being correctly increased by one!! ------------------------- BOB.SQR || ------------------------- !******************************************************************* BEGIN-SETUP !******************************************************************* END-SETUP !******************************************************************* BEGIN-REPORT !******************************************************************* !-------District variables let #d_normal = 0 let #d_single = 0 let #d_bu_count = 0 !-------Region variables let #r_normal = 0 let #r_single = 0 let #r_bu_count = 0 !------Excel Variables Let #RowNum = 1 Do EXCEL-HEADING do CC_REPORT END-REPORT !******************************************************************* BEGIN-PROCEDURE CC_REPORT !******************************************************************* BEGIN-SELECT fas_branch5 &business_unit fas_district_descr () ON-BREAK PRINT=NEVER AFTER=END_OF_DISTRICT SKIPLINES = 1 fas_regional_descr () ON-BREAK PRINT=NEVER AFTER=END_OF_REGION SKIPLINES = 1 let $business_unit = &business_unit Do BUSINESS_UNIT_ROW($business_unit) FROM sysadm.ps_table WHERE busin_unit_type = 'BRNC' AND fas_branch5 in ( **Blah blah blah. sql works fine ) ORDER BY fas_region_code, fas_district, fas_bu_4char END-SELECT END-PROCEDURE CC_REPORT !******************************************************************* BEGIN-PROCEDURE BUSINESS_UNIT_ROW($bu) !******************************************************************* !******************** Normal CC BEGIN-SELECT on-error=sql-error count(distinct a.counting_event_id) &n.count let #cyclcnt_count = &n.count FROM ps_count_hdr_inv a, ps_fas_count2_inv c WHERE a.business_unit = c.business_unit and a.counting_event_id = c.counting_event_id and c.business_unit = $bu and c.fas_cyclcnt_type = 'N' END-SELECT let #d_normal = #d_normal + #cyclcnt_count let #r_normal = #r_normal + #cyclcnt_count !******************** Single CC BEGIN-SELECT on-error=sql-error count(distinct a.counting_event_id) &s.count let #cyclcnt_count = &s.count FROM ps_count_hdr_inv a, ps_fas_count2_inv c WHERE a.business_unit = c.business_unit and a.counting_event_id = c.counting_event_id and c.business_unit = $bu and c.fas_cyclcnt_type = 'S' END-SELECT let #d_single = #d_single + #cyclcnt_count let #r_single = #r_single + #cyclcnt_count !******************** let #d_bu_count = #d_bu_count + 1 let #r_bu_count = #r_bu_count + 1 let #RowNum = #RowNum + 1 END-PROCEDURE BUSINESS_UNIT_ROW !******************************************************************* BEGIN-PROCEDURE END_OF_DISTRICT !******************************************************************* !***TOTALS Do Excel-Write-Number(1, #RowNum, 4, #d_normal) Do Excel-Write-Number(1, #RowNum, 5, #d_single) !***AVERAGES let #d_normal = #d_normal / #d_bu_count !****ERROR - cannot divide by ZERO***!! let #d_single = #d_single / #d_bu_count let #RowNum = #RowNum + 1 !skip a row Do Excel-Write-Number(1, #RowNum, 4, #d_normal) Do Excel-Write-Number(1, #RowNum, 5, #d_single) !***RESET VARIABLES to 0 FOR NEXT DISTRICT let #d_normal = 0 let #d_single = 0 let #RowNum = #RowNum + 1 !skip a row END-PROCEDURE END_OF_DISTRICT #include **stuff - includes are working fine** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 05 18:18:08 2004 From: Al H Subject: Re: [sqr-users] variable resetting to 0 problem Date: Fri, 05 Nov 2004 15:14:27 -0800 As several others have indicated, the problem is with local vs global variables. The addition of the parameter in the begin-procedure causes this distinction. Within the called procedure, you can refer to #D_BU_COUNT as #_D_BU_COUNT to identify that it should deal with the global variable rather than creating a local version. Add an underscore (_) after the # or $ to all variables that are references to those used outside the procedure. On Fri, 5 Nov 2004 13:37:13 -0600 , you wrote: >Hey there. Okay, so this should be a pretty easy problem, but it has me >currently stumped. I'm trying to use a couple variables across my SQR and >by the time I go to use them, they've been reset to 0. Here's a summary of >my program (i've taken out the parts which I know work fine, and aren't pa= rt >of the problem). My idea is to set up these variables that are going to be >used through the whole SQR. But as they're being called through procedure= s, >they're not being set correctly. REPORT calls CC_REPORT calls >BUSINESS_UNIT_ROW sets #D_BU_COUNT. but when I try to use it in a differe= nt >procedure (END_OF_DISTRICT) it isn't set. Can someone tell me what i'm doi= ng >wrong with my variables?!?!=20=20 > >do i need to declare them somewhere else?=20=20 >is the problem with how many procedures its going through? >i'm stumped. any help would be appreciated. > > >The finished product will look somethign like this > normal single >BU1 10 5=09 >BU2 20 7 >BU3 17 2 >BU4 13 10 > >dist tot 80 24 >Avg 20 6 ** except #d_bu_count isn't being correctly >increased by one!! > > > >------------------------- >BOB.SQR || >------------------------- > >!******************************************************************* >BEGIN-SETUP >!******************************************************************* >END-SETUP > >!******************************************************************* >BEGIN-REPORT >!******************************************************************* > !-------District variables > let #d_normal =3D 0 > let #d_single =3D 0 > let #d_bu_count =3D 0 > !-------Region variables > let #r_normal =3D 0 > let #r_single =3D 0 > let #r_bu_count =3D 0 > !------Excel Variables > Let #RowNum =3D 1 > Do EXCEL-HEADING > > do CC_REPORT > >END-REPORT > >!******************************************************************* >BEGIN-PROCEDURE CC_REPORT >!******************************************************************* >BEGIN-SELECT=20 >fas_branch5 &business_unit=09 >fas_district_descr () ON-BREAK PRINT=3DNEVER AFTER=3DEND_OF_DISTRICT >SKIPLINES =3D 1 >fas_regional_descr () ON-BREAK PRINT=3DNEVER AFTER=3DEND_OF_REGION >SKIPLINES =3D 1 > > let $business_unit =3D &business_unit > Do BUSINESS_UNIT_ROW($business_unit)=09=09=09 > >FROM sysadm.ps_table WHERE busin_unit_type =3D 'BRNC' AND fas_branch5 in ( >**Blah blah blah. sql works fine ) ORDER BY fas_region_code, fas_district, >fas_bu_4char >END-SELECT >END-PROCEDURE CC_REPORT > >!******************************************************************* >BEGIN-PROCEDURE BUSINESS_UNIT_ROW($bu) >!******************************************************************* > !******************** Normal CC >BEGIN-SELECT on-error=3Dsql-error >count(distinct a.counting_event_id) &n.count > let #cyclcnt_count =3D &n.count >FROM ps_count_hdr_inv a, ps_fas_count2_inv c >WHERE a.business_unit =3D c.business_unit and a.counting_event_id =3D >c.counting_event_id >and c.business_unit =3D $bu and c.fas_cyclcnt_type =3D 'N' >END-SELECT > > let #d_normal =3D #d_normal + #cyclcnt_count > let #r_normal =3D #r_normal + #cyclcnt_count > > !******************** Single CC >BEGIN-SELECT on-error=3Dsql-error >count(distinct a.counting_event_id) &s.count > let #cyclcnt_count =3D &s.count >FROM ps_count_hdr_inv a, ps_fas_count2_inv c >WHERE a.business_unit =3D c.business_unit and a.counting_event_id =3D >c.counting_event_id >and c.business_unit =3D $bu and c.fas_cyclcnt_type =3D 'S' >END-SELECT > > let #d_single =3D #d_single + #cyclcnt_count > let #r_single =3D #r_single + #cyclcnt_count > > !******************** > let #d_bu_count =3D #d_bu_count + 1 > let #r_bu_count =3D #r_bu_count + 1 > let #RowNum =3D #RowNum + 1 >END-PROCEDURE BUSINESS_UNIT_ROW > >!******************************************************************* >BEGIN-PROCEDURE END_OF_DISTRICT=20=20 >!******************************************************************* >!***TOTALS > >Do Excel-Write-Number(1, #RowNum, 4, #d_normal) >Do Excel-Write-Number(1, #RowNum, 5, #d_single) > >!***AVERAGES >let #d_normal =3D #d_normal / #d_bu_count !****ERROR - cannot divide >by ZERO***!! >let #d_single =3D #d_single / #d_bu_count > >let #RowNum =3D #RowNum + 1 !skip a row > >Do Excel-Write-Number(1, #RowNum, 4, #d_normal) >Do Excel-Write-Number(1, #RowNum, 5, #d_single) > >!***RESET VARIABLES to 0 FOR NEXT DISTRICT >let #d_normal =3D 0 >let #d_single =3D 0 > >let #RowNum =3D #RowNum + 1 !skip a row > >END-PROCEDURE END_OF_DISTRICT=20=20 > > #include **stuff - includes are working fine** > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >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 Nov 05 18:21:09 2004 From: Al H Subject: Re: [sqr-users] variable resetting to 0 problem Date: Fri, 05 Nov 2004 15:15:46 -0800 Oops didn't see your response. Oh well I just confirmed it ;). On Fri, 5 Nov 2004 14:44:42 -0500, you wrote: >Bob, > >From within a LOCAL procedure or a procedure with parameters to access a >global variable you must include an underscore (_) character after the >variable type character. That is, #_d_normal rather than #d_normal. > >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 Bob Stone >Sent: Friday, November 05, 2004 2:37 PM >To: 'sqr-users@sqrug.org' >Subject: [sqr-users] variable resetting to 0 problem > >Hey there. Okay, so this should be a pretty easy problem, but it has me >currently stumped. I'm trying to use a couple variables across my SQR >and by the time I go to use them, they've been reset to 0. Here's a >summary of my program (i've taken out the parts which I know work fine, >and aren't part of the problem). My idea is to set up these variables >that are going to be used through the whole SQR. But as they're being >called through procedures, they're not being set correctly. REPORT >calls CC_REPORT calls BUSINESS_UNIT_ROW sets #D_BU_COUNT. but when I >try to use it in a different procedure (END_OF_DISTRICT) it isn't set. >Can someone tell me what i'm doing wrong with my variables?!?!=20=20 > >do i need to declare them somewhere else?=20=20 >is the problem with how many procedures its going through? >i'm stumped. any help would be appreciated. > > >The finished product will look somethign like this > normal single >BU1 10 5=09 >BU2 20 7 >BU3 17 2 >BU4 13 10 > >dist tot 80 24 >Avg 20 6 ** except #d_bu_count isn't being >correctly >increased by one!! > > > >------------------------- >BOB.SQR || >------------------------- > >!******************************************************************* >BEGIN-SETUP >!******************************************************************* >END-SETUP > >!******************************************************************* >BEGIN-REPORT >!******************************************************************* > !-------District variables > let #d_normal =3D 0 > let #d_single =3D 0 > let #d_bu_count =3D 0 > !-------Region variables > let #r_normal =3D 0 > let #r_single =3D 0 > let #r_bu_count =3D 0 > !------Excel Variables > Let #RowNum =3D 1 > Do EXCEL-HEADING > > do CC_REPORT > >END-REPORT > >!******************************************************************* >BEGIN-PROCEDURE CC_REPORT >!******************************************************************* >BEGIN-SELECT=20 >fas_branch5 &business_unit=09 >fas_district_descr () ON-BREAK PRINT=3DNEVER >AFTER=3DEND_OF_DISTRICT >SKIPLINES =3D 1 >fas_regional_descr () ON-BREAK PRINT=3DNEVER >AFTER=3DEND_OF_REGION >SKIPLINES =3D 1 > > let $business_unit =3D &business_unit > Do BUSINESS_UNIT_ROW($business_unit)=09=09=09 > >FROM sysadm.ps_table WHERE busin_unit_type =3D 'BRNC' AND fas_branch5 in >( **Blah blah blah. sql works fine ) ORDER BY fas_region_code, >fas_district, fas_bu_4char END-SELECT END-PROCEDURE CC_REPORT > >!******************************************************************* >BEGIN-PROCEDURE BUSINESS_UNIT_ROW($bu) >!******************************************************************* > !******************** Normal CC >BEGIN-SELECT on-error=3Dsql-error >count(distinct a.counting_event_id) &n.count > let #cyclcnt_count =3D &n.count >FROM ps_count_hdr_inv a, ps_fas_count2_inv c WHERE a.business_unit =3D >c.business_unit and a.counting_event_id =3D c.counting_event_id and >c.business_unit =3D $bu and c.fas_cyclcnt_type =3D 'N' >END-SELECT > > let #d_normal =3D #d_normal + #cyclcnt_count > let #r_normal =3D #r_normal + #cyclcnt_count > > !******************** Single CC >BEGIN-SELECT on-error=3Dsql-error >count(distinct a.counting_event_id) &s.count > let #cyclcnt_count =3D &s.count >FROM ps_count_hdr_inv a, ps_fas_count2_inv c WHERE a.business_unit =3D >c.business_unit and a.counting_event_id =3D c.counting_event_id and >c.business_unit =3D $bu and c.fas_cyclcnt_type =3D 'S' >END-SELECT > > let #d_single =3D #d_single + #cyclcnt_count > let #r_single =3D #r_single + #cyclcnt_count > > !******************** > let #d_bu_count =3D #d_bu_count + 1 > let #r_bu_count =3D #r_bu_count + 1 > let #RowNum =3D #RowNum + 1 >END-PROCEDURE BUSINESS_UNIT_ROW > >!******************************************************************* >BEGIN-PROCEDURE END_OF_DISTRICT >!******************************************************************* >!***TOTALS > >Do Excel-Write-Number(1, #RowNum, 4, #d_normal) Do Excel-Write-Number(1, >#RowNum, 5, #d_single) > >!***AVERAGES >let #d_normal =3D #d_normal / #d_bu_count !****ERROR - cannot >divide >by ZERO***!! >let #d_single =3D #d_single / #d_bu_count > >let #RowNum =3D #RowNum + 1 !skip a row > >Do Excel-Write-Number(1, #RowNum, 4, #d_normal) Do Excel-Write-Number(1, >#RowNum, 5, #d_single) > >!***RESET VARIABLES to 0 FOR NEXT DISTRICT let #d_normal =3D 0 let >#d_single =3D 0 > >let #RowNum =3D #RowNum + 1 !skip a row > >END-PROCEDURE END_OF_DISTRICT=20=20 > > #include **stuff - includes are working fine** > >_______________________________________________ >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 confidentia= l and the unauthorized use, copying, or dissemination of it and any attachm= ents to it, is prohibited.=20 > >Internet communications are not secure and Hyperion does not, therefore, a= ccept legal responsibility for the contents of this message nor for any dam= age caused by viruses. The views expressed here do not necessarily represe= nt those of Hyperion. > >For more information about Hyperion, please visit our Web site at www.hype= rion.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 Nov 08 06:18:21 2004 Date: 8 Nov 2004 11:14:27 -0000 From: "nikhil sawant" Subject: [sqr-users] Flat file having NULL Lines..... =A0 Hi, =20 We are faced with a strange scenario in one of our SQRs.. The SQR essentially generates a flat file that has the data extract(rows) o= f a PeopleSoft Table.=20 Simple.=20 =20 However, when the extract is examined closely, it has random NULL lines/ent= ries (Blank lines with no chars or spaces..)=20 We write to the file only when there is row of data to be written. So it do= es not explain these lines.(4 lines out of 30,000 written) The OPEN, WRITE and extract data sizes are Fixed and equal. =20 If anyone has encountered this/similar situation, please advise.. We are at: SQR Version: SQR/4.3.4/Sun/SunOS 5.5.1/Oracle 7.3.4/Jun 03 1999=20 TIA... -Nikhil _______________________________________________ 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 08 07:14:12 2004 Date: Mon, 08 Nov 2004 07:10:20 -0500 From: "Larry Roux" Subject: Re: [sqr-users] Flat file having NULL Lines..... Could the source data have some embedded control characters in the data? Larry Roux Syracuse University lroux@syr.edu >>> nik2cool@rediffmail.com 11/08/04 6:14 AM >>> Hi, We are faced with a strange scenario in one of our SQRs.. The SQR essentially generates a flat file that has the data extract(rows) of a PeopleSoft Table. Simple. However, when the extract is examined closely, it has random NULL lines/entries (Blank lines with no chars or spaces..) We write to the file only when there is row of data to be written. So it does not explain these lines.(4 lines out of 30,000 written) The OPEN, WRITE and extract data sizes are Fixed and equal. If anyone has encountered this/similar situation, please advise.. We are at: SQR Version: SQR/4.3.4/Sun/SunOS 5.5.1/Oracle 7.3.4/Jun 03 1999 TIA... -Nikhil _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 08 07:21:50 2004 From: James Womeldorf Subject: RE: [sqr-users] Flat file having NULL Lines..... Date: Mon, 8 Nov 2004 06:18:32 -0600 Good thought Larry. I've run across data with embedded carriage returns in it, and if the CR had been the last item in the last field printed this is the exact result I would have gotten. -----Original Message----- From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org [mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of Larry Roux Sent: Monday, November 08, 2004 6:10 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Flat file having NULL Lines..... Could the source data have some embedded control characters in the data? Larry Roux Syracuse University lroux@syr.edu >>> nik2cool@rediffmail.com 11/08/04 6:14 AM >>> Hi, We are faced with a strange scenario in one of our SQRs.. The SQR essentially generates a flat file that has the data extract(rows) of a PeopleSoft Table. Simple. However, when the extract is examined closely, it has random NULL lines/entries (Blank lines with no chars or spaces..) We write to the file only when there is row of data to be written. So it does not explain these lines.(4 lines out of 30,000 written) The OPEN, WRITE and extract data sizes are Fixed and equal. If anyone has encountered this/similar situation, please advise.. We are at: SQR Version: SQR/4.3.4/Sun/SunOS 5.5.1/Oracle 7.3.4/Jun 03 1999 TIA... -Nikhil _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 08 09:36:25 2004 Date: Mon, 8 Nov 2004 06:33:46 -0800 (PST) From: Dattatraya Shetty Subject: Re: [sqr-users] Flat file having NULL Lines..... Nikhil, How are you checking for the the Line to be blank? Also as per Larry's suggestion, are you sure that the line it self does not have special characters. Try to query the Data just before the Random Blank line in oracle and see the length of the total String. maybe that will help. HTH Datta. --- nikhil sawant wrote: >   > Hi, > > We are faced with a strange scenario in one of our SQRs.. > The SQR essentially generates a flat file that has the data > extract(rows) of a PeopleSoft Table. > Simple. > > However, when the extract is examined closely, it has random NULL > lines/entries (Blank lines with no chars or spaces..) > We write to the file only when there is row of data to be written. So > it does not explain these lines.(4 lines out of 30,000 written) > The OPEN, WRITE and extract data sizes are Fixed and equal. > > If anyone has encountered this/similar situation, please advise.. > > We are at: > SQR Version: SQR/4.3.4/Sun/SunOS 5.5.1/Oracle 7.3.4/Jun 03 1999 > > TIA... > > -Nikhil > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > __________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.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 08 17:45:41 2004 From: "Manakotte, Krishnadas" Subject: RE: [sqr-users] Flat file having NULL Lines..... Date: Tue, 9 Nov 2004 09:44:06 +1100 Please ensure that your source is clean. -----Original Message----- From: nikhil sawant [mailto:nik2cool@rediffmail.com]=20 Sent: Monday, 8 November 2004 10:14 PM To: sqr-users@sqrug.org Subject: [sqr-users] Flat file having NULL Lines..... =A0 Hi, =20 We are faced with a strange scenario in one of our SQRs.. The SQR essentially generates a flat file that has the data extract(rows) of a PeopleSoft Table.=20 Simple.=20 =20 However, when the extract is examined closely, it has random NULL lines/entries (Blank lines with no chars or spaces..)=20 We write to the file only when there is row of data to be written. So it does not explain these lines.(4 lines out of 30,000 written) The OPEN, WRITE and extract data sizes are Fixed and equal. =20 If anyone has encountered this/similar situation, please advise.. We are at: SQR Version: SQR/4.3.4/Sun/SunOS 5.5.1/Oracle 7.3.4/Jun 03 1999=20 TIA... -Nikhil _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users This e-mail and any attachment is for authorised use by the intended recipi= ent(s) only. It may contain proprietary material, confidential information = and/or be subject to legal privilege. It should not be copied, disclosed to= , retained or used by, any other party. If you are not an intended recipien= t then please promptly delete this e-mail and any attachment and all copies= and inform the sender. 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 Tue Nov 09 12:32:42 2004 Date: Tue, 9 Nov 2004 09:31:28 -0800 (PST) From: gogu gogu Subject: RE: [sqr-users] Flat file having NULL Lines..... daca esti prost mai bine dute acasa "Manakotte, Krishnadas" wrote: Please ensure that your source is clean. -----Original Message----- From: nikhil sawant [mailto:nik2cool@rediffmail.com] Sent: Monday, 8 November 2004 10:14 PM To: sqr-users@sqrug.org Subject: [sqr-users] Flat file having NULL Lines..... Hi, We are faced with a strange scenario in one of our SQRs.. The SQR essentially generates a flat file that has the data extract(rows) of a PeopleSoft Table. Simple. However, when the extract is examined closely, it has random NULL lines/entries (Blank lines with no chars or spaces..) We write to the file only when there is row of data to be written. So it does not explain these lines.(4 lines out of 30,000 written) The OPEN, WRITE and extract data sizes are Fixed and equal. If anyone has encountered this/similar situation, please advise.. We are at: SQR Version: SQR/4.3.4/Sun/SunOS 5.5.1/Oracle 7.3.4/Jun 03 1999 TIA... -Nikhil _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.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 Nov 09 13:06:23 2004 Date: Tue, 9 Nov 2004 13:05:10 -0500 From: "Hardy, Kathi" Subject: [sqr-users] RE: Flat file having NULL Lines..... Are you by any chance using ON-BREAK to print your lines?=20=20 There has been a problem with the ON-BREAK statement print null lines even = if it doesn't have anything values to print. -- Kathi -----Original Message----- From: nikhil sawant [mailto:nik2cool@rediffmail.com] Sent: Monday, November 08, 2004 6:14 AM To: sqr-users@sqrug.org Subject: [sqr-users] Flat file having NULL Lines..... =A0 Hi, =20 We are faced with a strange scenario in one of our SQRs.. The SQR essentially generates a flat file that has the data extract(rows) o= f a PeopleSoft Table.=20 Simple.=20 =20 However, when the extract is examined closely, it has random NULL lines/ent= ries (Blank lines with no chars or spaces..)=20 We write to the file only when there is row of data to be written. So it do= es not explain these lines.(4 lines out of 30,000 written) The OPEN, WRITE and extract data sizes are Fixed and equal. =20 If anyone has encountered this/similar situation, please advise.. We are at: SQR Version: SQR/4.3.4/Sun/SunOS 5.5.1/Oracle 7.3.4/Jun 03 1999=20 TIA... -Nikhil _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 09 13:17:05 2004 From: "Murty Mirthipati Venkata Suryanarayan" Date: Tue, 9 Nov 2004 23:52:05 +0530 Subject: RE: [sqr-users] RE: Flat file having NULL Lines..... --===============0492008659== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 content-class: urn:content-classes:message SGV5IE5pa2hpbCwNCkkgc3VwcG9zZSwgdGhlIHNvdXJjZSBvbmx5IGhhcyBz b21lIHVuY2xlYW4gZGF0YS4NCkZpcnN0IHRoaXMgYW5hbHlzaXMgYXBwbGll cyB0byB5b3VyIFNRUiwgaWYgdGhlIGxhc3QgY29sdW1uIGluIHRoZSBmbGF0 IGZpbGUgaXMgYSBzdHJpbmcgKCBzb21lIHRoaW5nIGxpa2UgbmFtZSwgYWRk cmVzcy4uKQ0KIE5vdywgaWYgdGhlcmUgYXJlIHNvbWUgdGFiIG9yIG5ldyBs aW5lIG9yIGNhcnJpYWdlIHJldHVybiBvciBzb21lIHVud2FudGVkIGNoYXJh Y3RlcnMgaW4gdGhlIGxhc3QgZmllbGQsIHRoZW4gdGhlIHByaW50IG9yIHdy aXRlIGluIFNRUiB3aWxsIHNoaWZ0IHRvIGEgbmV3IGxpbmUgYXQgdGhlIGVu ZCBvZiB0aGUgd3JpdGluZyB0aGUgY3VycmVudCBsaW5lLiANClRoZSBzb2x1 dGlvbiBjb3VsZCBiZSB0byB3cml0ZSBhIHRyaW1tZWQgY29sdW1uIGludG8g dGhlIGZsYXQgZmlsZS4gDQogDQpDb29sLi4uLg0KIA0KV2l0aCBCZXN0IFJl Z2FyZHMsDQpNdXJ0eSA7KQ0KIA0KDQoJLS0tLS1PcmlnaW5hbCBNZXNzYWdl LS0tLS0gDQoJRnJvbTogSGFyZHksIEthdGhpIFttYWlsdG86S0hhcmR5QHZp Y3IuY29tXSANCglTZW50OiBUdWUgMDktTm92LTIwMDQgMTM6MDUgDQoJVG86 IHNxci11c2Vyc0BzcXJ1Zy5vcmcgDQoJQ2M6IA0KCVN1YmplY3Q6IFtzcXIt dXNlcnNdIFJFOiBGbGF0IGZpbGUgaGF2aW5nIE5VTEwgTGluZXMuLi4uLg0K CQ0KCQ0KDQoJQXJlIHlvdSBieSBhbnkgY2hhbmNlIHVzaW5nIE9OLUJSRUFL IHRvIHByaW50IHlvdXIgbGluZXM/IA0KCQ0KCVRoZXJlIGhhcyBiZWVuIGEg cHJvYmxlbSB3aXRoIHRoZSBPTi1CUkVBSyBzdGF0ZW1lbnQgcHJpbnQgbnVs bCBsaW5lcyBldmVuIGlmIGl0IGRvZXNuJ3QgaGF2ZSBhbnl0aGluZyB2YWx1 ZXMgdG8gcHJpbnQuDQoJDQoJLS0gS2F0aGkNCgkNCgktLS0tLU9yaWdpbmFs IE1lc3NhZ2UtLS0tLQ0KCUZyb206IG5pa2hpbCBzYXdhbnQgW21haWx0bzpu aWsyY29vbEByZWRpZmZtYWlsLmNvbV0NCglTZW50OiBNb25kYXksIE5vdmVt YmVyIDA4LCAyMDA0IDY6MTQgQU0NCglUbzogc3FyLXVzZXJzQHNxcnVnLm9y Zw0KCVN1YmplY3Q6IFtzcXItdXNlcnNdIEZsYXQgZmlsZSBoYXZpbmcgTlVM TCBMaW5lcy4uLi4uDQoJDQoJDQoJICANCglIaSwNCgkNCglXZSBhcmUgZmFj ZWQgd2l0aCBhIHN0cmFuZ2Ugc2NlbmFyaW8gaW4gb25lIG9mIG91ciBTUVJz Li4NCglUaGUgU1FSIGVzc2VudGlhbGx5IGdlbmVyYXRlcyBhIGZsYXQgZmls ZSB0aGF0IGhhcyB0aGUgZGF0YSBleHRyYWN0KHJvd3MpIG9mIGEgUGVvcGxl U29mdCBUYWJsZS4NCglTaW1wbGUuDQoJDQoJSG93ZXZlciwgd2hlbiB0aGUg ZXh0cmFjdCBpcyBleGFtaW5lZCBjbG9zZWx5LCBpdCBoYXMgcmFuZG9tIE5V TEwgbGluZXMvZW50cmllcyAoQmxhbmsgbGluZXMgd2l0aCBubyBjaGFycyBv ciBzcGFjZXMuLikNCglXZSB3cml0ZSB0byB0aGUgZmlsZSBvbmx5IHdoZW4g dGhlcmUgaXMgcm93IG9mIGRhdGEgdG8gYmUgd3JpdHRlbi4gU28gaXQgZG9l cyBub3QgZXhwbGFpbiB0aGVzZSBsaW5lcy4oNCBsaW5lcyBvdXQgb2YgMzAs MDAwIHdyaXR0ZW4pDQoJVGhlIE9QRU4sIFdSSVRFIGFuZCBleHRyYWN0IGRh dGEgc2l6ZXMgYXJlIEZpeGVkIGFuZCBlcXVhbC4NCgkNCglJZiBhbnlvbmUg aGFzIGVuY291bnRlcmVkIHRoaXMvc2ltaWxhciBzaXR1YXRpb24sIHBsZWFz ZSBhZHZpc2UuLg0KCQ0KCVdlIGFyZSBhdDoNCglTUVIgVmVyc2lvbjogU1FS LzQuMy40L1N1bi9TdW5PUyA1LjUuMS9PcmFjbGUgNy4zLjQvSnVuIDAzIDE5 OTkNCgkNCglUSUEuLi4NCgkNCgktTmlraGlsDQoJDQoJX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18NCglzcXItdXNl cnMgbWFpbGluZyBsaXN0DQoJc3FyLXVzZXJzQHNxcnVnLm9yZw0KCWh0dHA6 Ly93d3cuc3FydWcub3JnL21haWxtYW4vbGlzdGluZm8vc3FyLXVzZXJzDQoJ DQoJX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX18NCglzcXItdXNlcnMgbWFpbGluZyBsaXN0DQoJc3FyLXVzZXJzQHNx cnVnLm9yZw0KCWh0dHA6Ly93d3cuc3FydWcub3JnL21haWxtYW4vbGlzdGlu Zm8vc3FyLXVzZXJzDQoJDQoJDQoNCg0KRElTQ0xBSU1FUjoNCkluZm9ybWF0 aW9uIGNvbnRhaW5lZCBhbmQgdHJhbnNtaXR0ZWQgYnkgdGhpcyBFLU1BSUwg aXMgcHJvcHJpZXRhcnkgdG8NCkhleGF3YXJlIFRlY2hub2xvZ2llcyBhbmQg aXMgaW50ZW5kZWQgZm9yIHVzZSBvbmx5IGJ5IHRoZSBpbmRpdmlkdWFsIG9y DQplbnRpdHkgdG8gd2hpY2ggaXQgaXMgYWRkcmVzc2VkIGFuZCBtYXkgY29u dGFpbiBpbmZvcm1hdGlvbiB0aGF0IGlzDQpwcml2aWxlZ2VkLCBjb25maWRl bnRpYWwgb3IgZXhlbXB0IGZyb20gZGlzY2xvc3VyZSB1bmRlciBhcHBsaWNh YmxlIGxhdy4NCklmIHRoaXMgaXMgYSBmb3J3YXJkZWQgbWVzc2FnZSwgdGhl IGNvbnRlbnQgb2YgdGhpcyBFLU1BSUwgbWF5IG5vdCBoYXZlDQpiZWVuIHNl bnQgd2l0aCB0aGUgYXV0aG9yaXR5IG9mIHRoZSBDb21wYW55LiBJZiB5b3Ug YXJlIG5vdCB0aGUgaW50ZW5kZWQNCnJlY2lwaWVudCwgYW4gYWdlbnQgb2Yg dGhlIGludGVuZGVkIHJlY2lwaWVudCBvciBhIHBlcnNvbiByZXNwb25zaWJs ZQ0KZm9yIGRlbGl2ZXJpbmcgdGhlIGluZm9ybWF0aW9uIHRvIHRoZSBuYW1l ZCByZWNpcGllbnQsIHlvdSBhcmUgbm90aWZpZWQNCnRoYXQgYW55IHVzZSwg ZGlzdHJpYnV0aW9uLCB0cmFuc21pc3Npb24sIHByaW50aW5nLCBjb3B5aW5n IG9yDQpkaXNzZW1pbmF0aW9uIG9mIHRoaXMgaW5mb3JtYXRpb24gaW4gYW55 IHdheSBvciBpbiBhbnkgbWFubmVyIGlzDQpzdHJpY3RseSBwcm9oaWJpdGVk LiBJZiB5b3UgaGF2ZSByZWNlaXZlZCB0aGlzIGNvbW11bmljYXRpb24gaW4g ZXJyb3IsDQpwbGVhc2UgZGVsZXRlIHRoaXMgbWFpbCAmIG5vdGlmeSB1cyBp bW1lZGlhdGVseSBhdA0KYWRtaW5jaG5AaGV4YXdhcmUuY29tLg== --===============0492008659== 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 --===============0492008659==-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Nov 09 14:25:03 2004 From: "Richard C Spoth" Date: Tue, 9 Nov 2004 14:24:27 -0500 Subject: [sqr-users] SQR v6.1.3 on AIX 5.2 We are upgrading our AIX environment from 5.1 to 5.2. We are not anticipating any issues. I just wanted to put a shout out to see if anyone is running v6.1.3 on AIX 5.2 or if anyone heard of any potential issues. Thanks, Rick 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 Tue Nov 09 17:40:51 2004 From: "Howard Sant" Date: Tue, 9 Nov 2004 14:39:36 -0800 Subject: [sqr-users] TAX960US.SQR W-2's to Plain Paper Has anyone modified the TAX960US.SQR W-2 Print program to print to plain wh= ite paper or a plain pressure form? The delivered SQR does not print the W= -2 boxes, just the data. We're looking for anyone that has either modified= the delivered SQR or developed their own custom SQR for printing W-2's. Thanks! Howard Sant _______________________________________________ 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 Nov 10 11:33:41 2004 Date: Wed, 10 Nov 2004 08:32:29 -0800 (PST) From: P Mroz Subject: [sqr-users] Truncated values with PRINT command I'm having a strange problem when printing output. I'm creating an output file from a table, and some of the fields have the last character truncated. Here's a shortened version of the program (original is very long): begin-report do get_sorted_data end-report begin-setup no-formfeed page-size 1 832 ! the real version prints out many fields.... end-setup begin-procedure get_sorted_data begin-select distinct a &a1 b_order &b_order1 b &b1 c_order &c_order1 c &c1 do print_report from mytable order by a, b_order || b || c_order || c end-select end-procedure ! get_sorted_data begin-procedure print_report print &a1 (1, 1, 10) print &b_order1 (1, 11, 9) print &b1 (1, 20, 10) print &c_order1 (1, 30, 9) print &c1 (1, 39, 10) new-page end-procedure ! print_report In the table MYTABLE, the columns A, B and C are VARCHAR2(10). The columns B_ORDER and C_ORDER are VARCHAR2(9). The table looks like this: A B_ORDER B C_ORDER C a1aaaaaaaa 00000011 b1bbbbbbbb 00000020 c1cccccccc a2aaaaaaaa 00000011 b2bbbbbbbb 00000021 c2cccccccca3aaaaaaaa 00000012 b3bbbbbbbb 00000020 c3cccccccca4aaaaaaaa 00000012 b4bbbbbbbb 00000021 c4cccccccc Note that the columns B_ORDER and C_ORDER have a leading space. When I run it through the program I get the following output: a1aaaaaaaa 0000001 b1bbbbbbbb 0000002 c1cccccccc a2aaaaaaaa 0000001 b2bbbbbbbb 0000002 c2cccccccc a3aaaaaaaa 0000001 b3bbbbbbbb 0000002 c3cccccccc a4aaaaaaaa 0000001 b4bbbbbbbb 0000002 c4cccccccc The output is in the correct order, but what happens is that the columns B_ORDER and C_ORDER have the last character truncated. Has anyone seen anything like this before? Sorry if the program seems weird - I've inherited a large legacy application - this is a small piece of it. Thanks for your help, Peter Mroz zstringer999@yahoo.com --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.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 Nov 10 12:00:43 2004 Date: Wed, 10 Nov 2004 08:59:35 -0800 (PST) From: P Mroz Subject: Re: [sqr-users] Truncated values with PRINT command Sorry about the appearance of my first posting. It looked fine in Yahoo email and then the SQR UG mail program "cleaned" it up. Here's a plain-text version where the output looks better: P Mroz wrote:I'm having a strange problem when printing output. I'm creating an output file from a table, and some of the fields have the last character truncated. Here's a shortened version of the program (original is very long): begin-report do get_sorted_data end-report begin-setup no-formfeed page-size 1 832 ! the real version prints out many fields.... end-setup begin-procedure get_sorted_data begin-select distinct a &a1 b_order &b_order1 b &b1 c_order &c_order1 c &c1 do print_report from mytable order by a, b_order || b || c_order || c end-select end-procedure ! get_sorted_data begin-procedure print_report print &a1 (1, 1, 10) print &b_order1 (1, 11, 9) print &b1 (1, 20, 10) print &c_order1 (1, 30, 9) print &c1 (1, 39, 10) new-page end-procedure ! print_report In the table MYTABLE, the columns A, B and C are VARCHAR2(10). The columns B_ORDER and C_ORDER are VARCHAR2(9). The table looks like this: A B_ORDER B C_ORDER C a1aaaaaaaa 00000011 b1bbbbbbbb 00000020 c1cccccccc a2aaaaaaaa 00000011 b2bbbbbbbb 00000021 c2cccccccc a3aaaaaaaa 00000012 b3bbbbbbbb 00000020 c3cccccccc a4aaaaaaaa 00000012 b4bbbbbbbb 00000021 c4cccccccc Note that the columns B_ORDER and C_ORDER have a leading space. When I run it through the program I get the following output: a1aaaaaaaa 0000001 b1bbbbbbbb 0000002 c1cccccccc a2aaaaaaaa 0000001 b2bbbbbbbb 0000002 c2cccccccc a3aaaaaaaa 0000001 b3bbbbbbbb 0000002 c3cccccccc a4aaaaaaaa 0000001 b4bbbbbbbb 0000002 c4cccccccc The output is in the correct order, but what happens is that the columns B_ORDER and C_ORDER have the last digit truncated. Has anyone seen anything like this before? Sorry if the program seems weird - I've inherited a large legacy application - this is a small piece of it. Thanks for your help, Peter Mroz zstringer999@yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users __________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.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 Nov 10 12:30:32 2004 From: "the dragon" Subject: Re: [sqr-users] Truncated values with PRINT command Date: Wed, 10 Nov 2004 11:28:29 -0600 I wonder if your data in b_order c_order don't really have 2 leading spaces. Try putting shows in your procedure before the prints such as show 'data in column c order = |' &c_order '|' and see what the data really is. Then ltrim the spaces. Also, if you're creating a flat file, I have always found it easier to use the write comand rather than print. I also find the space between b_order and B and c_order and c unexplained. Those columns should be run together without spaces according to your print commands. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Sorry about the appearance of my first posting. It looked fine in Yahoo email and then the SQR UG mail program "cleaned" it up. Here's a plain-text version where the output looks better: P Mroz wrote:I'm having a strange problem when printing output. I'm creating an output file from a table, and some of the fields have the last character truncated. Here's a shortened version of the program (original is very long): begin-report do get_sorted_data end-report begin-setup no-formfeed page-size 1 832 ! the real version prints out many fields.... end-setup begin-procedure get_sorted_data begin-select distinct a &a1 b_order &b_order1 b &b1 c_order &c_order1 c &c1 do print_report from mytable order by a, b_order || b || c_order || c end-select end-procedure ! get_sorted_data begin-procedure print_report print &a1 (1, 1, 10) print &b_order1 (1, 11, 9) print &b1 (1, 20, 10) print &c_order1 (1, 30, 9) print &c1 (1, 39, 10) new-page end-procedure ! print_report In the table MYTABLE, the columns A, B and C are VARCHAR2(10). The columns B_ORDER and C_ORDER are VARCHAR2(9). The table looks like this: A B_ORDER B C_ORDER C a1aaaaaaaa 00000011 b1bbbbbbbb 00000020 c1cccccccc a2aaaaaaaa 00000011 b2bbbbbbbb 00000021 c2cccccccc a3aaaaaaaa 00000012 b3bbbbbbbb 00000020 c3cccccccc a4aaaaaaaa 00000012 b4bbbbbbbb 00000021 c4cccccccc Note that the columns B_ORDER and C_ORDER have a leading space. When I run it through the program I get the following output: a1aaaaaaaa 0000001 b1bbbbbbbb 0000002 c1cccccccc a2aaaaaaaa 0000001 b2bbbbbbbb 0000002 c2cccccccc a3aaaaaaaa 0000001 b3bbbbbbbb 0000002 c3cccccccc a4aaaaaaaa 0000001 b4bbbbbbbb 0000002 c4cccccccc The output is in the correct order, but what happens is that the columns B_ORDER and C_ORDER have the last digit truncated. Has anyone seen anything like this before? Sorry if the program seems weird - I've inherited a large legacy application - this is a small piece of it. Thanks for your help, Peter Mroz zstringer999@yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users __________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.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 Nov 10 13:30:16 2004 Date: Wed, 10 Nov 2004 10:27:20 -0800 (PST) From: P Mroz Subject: Re: [sqr-users] Truncated values with PRINT command The program I showed was conceptual. I tried writing a small program to isolate the error but it worked fine. I get the field truncation error in the larger program, which is writing 57 fields out for a total record size of 832 characters. Forgot to specify some things: Oracle 9i SQR 4.3 (I know - really really old...) OpenVMS I have a few more datapoints to share below: --- the dragon wrote: > I wonder if your data in b_order c_order don't > really have 2 leading spaces. > Try putting shows in your procedure before the > prints such as > > show 'data in column c order = |' &c_order '|' > > and see what the data really is. Then ltrim the > spaces. >From Oracle, I've selected the order fields from the database, and they are indeed nine characters long, with a leading space. For example: select '<' || b_order || '>' b_order, length(b_order) len from temp_154536 gives results like this: B_ORDER LEN --------------------- < 00000005> 9 < 00000005> 9 < 00000001> 9 HOWEVER! From within the SQR program I've printed out the order fields after the SELECT and they are EIGHT characters long, with a leading space. For example: show '&b_order1 <' &b_order1 '>' results in: &b_order1 < 0000000> So it's not the PRINT command but somehow the SELECT is losing the last character. I'm going to investigate this further. Thanks for your suggestions so far. > Also, if you're creating a flat file, I have always > found it easier to use > the write comand rather than print. > > I also find the space between b_order and B and > c_order and c unexplained. > Those columns should be run together without spaces > according to your print > commands. The space should not be there - that's the bug I'm talking about. The PRINT command only gives me the first 8 characters from the _order fields. The ninth character is left as a blank. > peace, > clark 'the dragon' willis > > > > PSA: Salary <> Slavery. If you earn a salary, your > employer is renting your > services for 40 hours a week, not purchasing your > soul. Your time is the > only real finite asset that you have, and once used > it can never be > recovered, so don't waste it by giving it away. > > "Time is the coin of your life. It is the only coin > you have, and only you > can determine how it will be spent. Be careful lest > you let other people > spend it for you." > > Carl Sandburg > (1878 - 1967) > > > > ----Original Message Follows---- > > Sorry about the appearance of my first posting. It > looked fine in Yahoo email and then the SQR UG mail > program "cleaned" it up. Here's a plain-text > version > where the output looks better: > > P Mroz wrote:I'm having a > strange problem when printing output. I'm creating > an > output file from a table, and some of the fields > have > the last character truncated. Here's a shortened > version of the program (original is very long): > > begin-report > do get_sorted_data > end-report > > begin-setup > no-formfeed > page-size 1 832 ! the real version prints out many > fields.... > end-setup > > begin-procedure get_sorted_data > begin-select distinct > a &a1 > b_order &b_order1 > b &b1 > c_order &c_order1 > c &c1 > do print_report > from mytable > order by a, b_order || b || c_order || c > end-select > end-procedure ! get_sorted_data > > begin-procedure print_report > print &a1 (1, 1, 10) > print &b_order1 (1, 11, 9) > print &b1 (1, 20, 10) > print &c_order1 (1, 30, 9) > print &c1 (1, 39, 10) > new-page > end-procedure ! print_report > > > In the table MYTABLE, the columns A, B and C are > VARCHAR2(10). The columns B_ORDER and C_ORDER are > VARCHAR2(9). The table looks like this: > > A B_ORDER B C_ORDER C > a1aaaaaaaa 00000011 b1bbbbbbbb 00000020 c1cccccccc > a2aaaaaaaa 00000011 b2bbbbbbbb 00000021 c2cccccccc > a3aaaaaaaa 00000012 b3bbbbbbbb 00000020 c3cccccccc > a4aaaaaaaa 00000012 b4bbbbbbbb 00000021 c4cccccccc > > Note that the columns B_ORDER and C_ORDER have a > leading space. When I run it through the program I > get > the following output: > > a1aaaaaaaa 0000001 b1bbbbbbbb 0000002 c1cccccccc > a2aaaaaaaa 0000001 b2bbbbbbbb 0000002 c2cccccccc > a3aaaaaaaa 0000001 b3bbbbbbbb 0000002 c3cccccccc > a4aaaaaaaa 0000001 b4bbbbbbbb 0000002 c4cccccccc > > The output is in the correct order, but what happens > is that the columns B_ORDER and C_ORDER have the > last > digit truncated. > > Has anyone seen anything like this before? Sorry if > the program seems weird - I've inherited a large > legacy application - this is a small piece of it. > > Thanks for your help, > Peter Mroz > zstringer999@yahoo.com > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > __________________________________ > Do you Yahoo!? > Check out the new Yahoo! Front Page. > www.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 > __________________________________________________ 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 Wed Nov 10 13:49:53 2004 Date: Wed, 10 Nov 2004 10:48:39 -0800 (PST) From: P Mroz Subject: Re: [sqr-users] Truncated values with PRINT command (SOLVED) Boy am I ever embarassed. The table I'm selecting from is created at runtime by the SQR program. Because the table doesn't exist at runtime, I created a template table and used the construct: begin-select . . from [template_table:$temporary_table] . . I had changed the field size in the temporary table but not in the template_table. Once I got everything on the same page it worked fine. Thanks again for your suggestions and comments. Peter --- P Mroz wrote: > The program I showed was conceptual. I tried > writing > a small program to isolate the error but it worked > fine. I get the field truncation error in the > larger > program, which is writing 57 fields out for a total > record size of 832 characters. > > Forgot to specify some things: > > Oracle 9i > SQR 4.3 (I know - really really old...) > OpenVMS > > I have a few more datapoints to share below: > > --- the dragon wrote: > > > I wonder if your data in b_order c_order don't > > really have 2 leading spaces. > > Try putting shows in your procedure before the > > prints such as > > > > show 'data in column c order = |' &c_order '|' > > > > and see what the data really is. Then ltrim the > > spaces. > > >From Oracle, I've selected the order fields from > the > database, and they are indeed nine characters long, > with a leading space. For example: > > select '<' || b_order || '>' b_order, > length(b_order) len > from temp_154536 > > gives results like this: > > B_ORDER LEN > --------------------- > < 00000005> 9 > < 00000005> 9 > < 00000001> 9 > > > HOWEVER! From within the SQR program I've printed > out > the order fields after the SELECT and they are EIGHT > characters long, with a leading space. For example: > > show '&b_order1 <' &b_order1 '>' > > results in: > > &b_order1 < 0000000> > > So it's not the PRINT command but somehow the SELECT > is losing the last character. I'm going to > investigate this further. Thanks for your > suggestions > so far. > > > Also, if you're creating a flat file, I have > always > > found it easier to use > > the write comand rather than print. > > > > I also find the space between b_order and B and > > c_order and c unexplained. > > Those columns should be run together without > spaces > > according to your print > > commands. > > The space should not be there - that's the bug I'm > talking about. The PRINT command only gives me the > first 8 characters from the _order fields. The > ninth > character is left as a blank. > > > > > peace, > > clark 'the dragon' willis > > > > > > > > PSA: Salary <> Slavery. If you earn a salary, your > > employer is renting your > > services for 40 hours a week, not purchasing your > > soul. Your time is the > > only real finite asset that you have, and once > used > > it can never be > > recovered, so don't waste it by giving it away. > > > > "Time is the coin of your life. It is the only > coin > > you have, and only you > > can determine how it will be spent. Be careful > lest > > you let other people > > spend it for you." > > > > Carl Sandburg > > (1878 - 1967) > > > > > > > > ----Original Message Follows---- > > > > Sorry about the appearance of my first posting. > It > > looked fine in Yahoo email and then the SQR UG > mail > > program "cleaned" it up. Here's a plain-text > > version > > where the output looks better: > > > > P Mroz wrote:I'm having a > > strange problem when printing output. I'm creating > > an > > output file from a table, and some of the fields > > have > > the last character truncated. Here's a shortened > > version of the program (original is very long): > > > > begin-report > > do get_sorted_data > > end-report > > > > begin-setup > > no-formfeed > > page-size 1 832 ! the real version prints out many > > fields.... > > end-setup > > > > begin-procedure get_sorted_data > > begin-select distinct > > a &a1 > > b_order &b_order1 > > b &b1 > > c_order &c_order1 > > c &c1 > > do print_report > > from mytable > > order by a, b_order || b || c_order || c > > end-select > > end-procedure ! get_sorted_data > > > > begin-procedure print_report > > print &a1 (1, 1, 10) > > print &b_order1 (1, 11, 9) > > print &b1 (1, 20, 10) > > print &c_order1 (1, 30, 9) > > print &c1 (1, 39, 10) > > new-page > > end-procedure ! print_report > > > > > > In the table MYTABLE, the columns A, B and C are > > VARCHAR2(10). The columns B_ORDER and C_ORDER are > > VARCHAR2(9). The table looks like this: > > > > A B_ORDER B C_ORDER C > > a1aaaaaaaa 00000011 b1bbbbbbbb 00000020 > c1cccccccc > > a2aaaaaaaa 00000011 b2bbbbbbbb 00000021 > c2cccccccc > > a3aaaaaaaa 00000012 b3bbbbbbbb 00000020 > c3cccccccc > > a4aaaaaaaa 00000012 b4bbbbbbbb 00000021 > c4cccccccc > > > > Note that the columns B_ORDER and C_ORDER have a > > leading space. When I run it through the program I > > get > > the following output: > > > > a1aaaaaaaa 0000001 b1bbbbbbbb 0000002 c1cccccccc > > a2aaaaaaaa 0000001 b2bbbbbbbb 0000002 c2cccccccc > > a3aaaaaaaa 0000001 b3bbbbbbbb 0000002 c3cccccccc > > a4aaaaaaaa 0000001 b4bbbbbbbb 0000002 c4cccccccc > > > > The output is in the correct order, but what > happens > > is that the columns B_ORDER and C_ORDER have the > > last > > digit truncated. > > > > Has anyone seen anything like this before? Sorry > if > > the program seems weird - I've inherited a large > > legacy application - this is a small piece of it. > > > > Thanks for your help, > > Peter Mroz > > zstringer999@yahoo.com > > > > _______________________________________________ > === message truncated === __________________________________________________ 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 Wed Nov 10 13:54:26 2004 Date: Wed, 10 Nov 2004 10:52:13 -0800 From: Antonio Guiza Subject: Re: [sqr-users] Truncated values with PRINT command Use print &b_order1 (1, 11, 10) instead and see what happens. Just a thought. -ag At 10:27 AM 11/10/2004, you wrote: >The program I showed was conceptual. I tried writing >a small program to isolate the error but it worked >fine. I get the field truncation error in the larger >program, which is writing 57 fields out for a total >record size of 832 characters. > >Forgot to specify some things: > >Oracle 9i >SQR 4.3 (I know - really really old...) >OpenVMS > >I have a few more datapoints to share below: > >--- the dragon wrote: > > > I wonder if your data in b_order c_order don't > > really have 2 leading spaces. > > Try putting shows in your procedure before the > > prints such as > > > > show 'data in column c order = |' &c_order '|' > > > > and see what the data really is. Then ltrim the > > spaces. > > >From Oracle, I've selected the order fields from the >database, and they are indeed nine characters long, >with a leading space. For example: > >select '<' || b_order || '>' b_order, > length(b_order) len > from temp_154536 > >gives results like this: > >B_ORDER LEN >--------------------- >< 00000005> 9 >< 00000005> 9 >< 00000001> 9 > > >HOWEVER! From within the SQR program I've printed out >the order fields after the SELECT and they are EIGHT >characters long, with a leading space. For example: > > show '&b_order1 <' &b_order1 '>' > >results in: > >&b_order1 < 0000000> > >So it's not the PRINT command but somehow the SELECT >is losing the last character. I'm going to >investigate this further. Thanks for your suggestions >so far. > > > Also, if you're creating a flat file, I have always > > found it easier to use > > the write comand rather than print. > > > > I also find the space between b_order and B and > > c_order and c unexplained. > > Those columns should be run together without spaces > > according to your print > > commands. > >The space should not be there - that's the bug I'm >talking about. The PRINT command only gives me the >first 8 characters from the _order fields. The ninth >character is left as a blank. > > > > > peace, > > clark 'the dragon' willis > > > > > > > > PSA: Salary <> Slavery. If you earn a salary, your > > employer is renting your > > services for 40 hours a week, not purchasing your > > soul. Your time is the > > only real finite asset that you have, and once used > > it can never be > > recovered, so don't waste it by giving it away. > > > > "Time is the coin of your life. It is the only coin > > you have, and only you > > can determine how it will be spent. Be careful lest > > you let other people > > spend it for you." > > > > Carl Sandburg > > (1878 - 1967) > > > > > > > > ----Original Message Follows---- > > > > Sorry about the appearance of my first posting. It > > looked fine in Yahoo email and then the SQR UG mail > > program "cleaned" it up. Here's a plain-text > > version > > where the output looks better: > > > > P Mroz wrote:I'm having a > > strange problem when printing output. I'm creating > > an > > output file from a table, and some of the fields > > have > > the last character truncated. Here's a shortened > > version of the program (original is very long): > > > > begin-report > > do get_sorted_data > > end-report > > > > begin-setup > > no-formfeed > > page-size 1 832 ! the real version prints out many > > fields.... > > end-setup > > > > begin-procedure get_sorted_data > > begin-select distinct > > a &a1 > > b_order &b_order1 > > b &b1 > > c_order &c_order1 > > c &c1 > > do print_report > > from mytable > > order by a, b_order || b || c_order || c > > end-select > > end-procedure ! get_sorted_data > > > > begin-procedure print_report > > print &a1 (1, 1, 10) > > print &b_order1 (1, 11, 9) > > print &b1 (1, 20, 10) > > print &c_order1 (1, 30, 9) > > print &c1 (1, 39, 10) > > new-page > > end-procedure ! print_report > > > > > > In the table MYTABLE, the columns A, B and C are > > VARCHAR2(10). The columns B_ORDER and C_ORDER are > > VARCHAR2(9). The table looks like this: > > > > A B_ORDER B C_ORDER C > > a1aaaaaaaa 00000011 b1bbbbbbbb 00000020 c1cccccccc > > a2aaaaaaaa 00000011 b2bbbbbbbb 00000021 c2cccccccc > > a3aaaaaaaa 00000012 b3bbbbbbbb 00000020 c3cccccccc > > a4aaaaaaaa 00000012 b4bbbbbbbb 00000021 c4cccccccc > > > > Note that the columns B_ORDER and C_ORDER have a > > leading space. When I run it through the program I > > get > > the following output: > > > > a1aaaaaaaa 0000001 b1bbbbbbbb 0000002 c1cccccccc > > a2aaaaaaaa 0000001 b2bbbbbbbb 0000002 c2cccccccc > > a3aaaaaaaa 0000001 b3bbbbbbbb 0000002 c3cccccccc > > a4aaaaaaaa 0000001 b4bbbbbbbb 0000002 c4cccccccc > > > > The output is in the correct order, but what happens > > is that the columns B_ORDER and C_ORDER have the > > last > > digit truncated. > > > > Has anyone seen anything like this before? Sorry if > > the program seems weird - I've inherited a large > > legacy application - this is a small piece of it. > > > > Thanks for your help, > > Peter Mroz > > zstringer999@yahoo.com > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > > > __________________________________ > > Do you Yahoo!? > > Check out the new Yahoo! Front Page. > > www.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 > > > > >__________________________________________________ >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 --------------------------------------------------------------------------------------------------- Antonio G. Guiza mailto:aguiza@pcc.edu Programmer/Analyst 503-977-4395 Portland Community College SY CC-224 fax 503-977-4987 ITS - Systems Development http://www.pcc.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 Wed Nov 10 19:06:30 2004 Date: Wed, 10 Nov 2004 18:04:14 -0600 From: Joey Ramion Subject: [sqr-users] sqr select variable problem Hello all, I have created what appears to be a very simple select statement in sqr that returns only one value when run in sql plus on db2 however when I run in sqr I cannot get it to populate my variable $CustBU when I include all of the subselects. Please help!!!! let $Temp_String_1 = 'A.item = I.item' let $Temp_String_2 = 'and A.cust_id = I.cust_id' string 'and I.item_line = ' 1 '' by '' into $Temp_String_3 let $Temp_String_4 = 'and A.cust_id = (select B.remit_from_cust_id' let $Temp_String_5 = 'from ps_cust_micr_tbl B' string 'where B.micr_id = ''' $MICR '''' by '' into $Temp_String_6 let $Temp_String_7 = 'and B.EFFDT = (select MAX (C.Effdt)' let $Temp_String_8 = 'from ps_cust_micr_tbl C' let $Temp_String_9 = 'where C.remit_from_cust_id = B.remit_from_cust_id' let $Temp_String_10 = 'and C.setid = B.setid' let $Temp_String_11 = 'and C.micr_id = B.micr_id' string 'and C.effdt <= ''' $AsOfToday ''')' by '' into $Temp_String_12 string 'and B.setid = ''SHARE'')' by '' into $Temp_String_13 string $Temp_String_1 $Temp_String_2 $Temp_String_3 $Temp_String_4 $Temp_String_5 $Temp_String_6 $Temp_String_7 $Temp_String_8 $Temp_String_9 $Temp_String_10 $Temp_String_11 $Temp_String_12 $Temp_String_13 by ' ' into $Dynamic_Request_Where show '$Temp_String_1 ' $Temp_String_1 show '$Temp_String_2 ' $Temp_String_2 show '$Temp_String_3 ' $Temp_String_3 show '$Temp_String_4 ' $Temp_String_4 show '$Temp_String_5 ' $Temp_String_5 show '$Temp_String_6 ' $Temp_String_6 show '$Temp_String_7 ' $Temp_String_7 show '$Temp_String_8 ' $Temp_String_8 show '$Temp_String_9 ' $Temp_String_9 show '$Temp_String_10 ' $Temp_String_10 show '$Temp_String_11 ' $Temp_String_11 show '$Temp_String_12 ' $Temp_String_12 show '$Temp_String_13 ' $Temp_String_13 show 'Before MICR ' $MICR begin-select on-error=SQL-Error A.business_unit &A.business_unit, let $CustBU = &A.business_unit show 'A.business_unit ' &A.business_unit let $Return = 'Y' show ' $Return inner ' $Return show 'inner $MICR ' $MICR from ps_cust_data A, ps_item I where [$Dynamic_Request_Where] end-select P.S. I included the dynamic variable in an attempt to get the value retiurned thinking that may have been my problem. Thanks, Joey _______________________________________________ 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 Nov 10 19:17:57 2004 From: James Womeldorf Subject: RE: [sqr-users] sqr select variable problem Date: Wed, 10 Nov 2004 18:15:12 -0600 It is a bit late in the day here and I find this pretty confusing (but EVERYTHING is confusing now :). Do you have a copy of this where you do not use the dynamic sql? Jim -----Original Message----- From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org [mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of Joey Ramion Sent: Wednesday, November 10, 2004 6:04 PM To: sqr-users@sqrug.org Subject: [sqr-users] sqr select variable problem Hello all, I have created what appears to be a very simple select statement in sqr that returns only one value when run in sql plus on db2 however when I run in sqr I cannot get it to populate my variable $CustBU when I include all of the subselects. Please help!!!! let $Temp_String_1 = 'A.item = I.item' let $Temp_String_2 = 'and A.cust_id = I.cust_id' string 'and I.item_line = ' 1 '' by '' into $Temp_String_3 let $Temp_String_4 = 'and A.cust_id = (select B.remit_from_cust_id' let $Temp_String_5 = 'from ps_cust_micr_tbl B' string 'where B.micr_id = ''' $MICR '''' by '' into $Temp_String_6 let $Temp_String_7 = 'and B.EFFDT = (select MAX (C.Effdt)' let $Temp_String_8 = 'from ps_cust_micr_tbl C' let $Temp_String_9 = 'where C.remit_from_cust_id = B.remit_from_cust_id' let $Temp_String_10 = 'and C.setid = B.setid' let $Temp_String_11 = 'and C.micr_id = B.micr_id' string 'and C.effdt <= ''' $AsOfToday ''')' by '' into $Temp_String_12 string 'and B.setid = ''SHARE'')' by '' into $Temp_String_13 string $Temp_String_1 $Temp_String_2 $Temp_String_3 $Temp_String_4 $Temp_String_5 $Temp_String_6 $Temp_String_7 $Temp_String_8 $Temp_String_9 $Temp_String_10 $Temp_String_11 $Temp_String_12 $Temp_String_13 by ' ' into $Dynamic_Request_Where show '$Temp_String_1 ' $Temp_String_1 show '$Temp_String_2 ' $Temp_String_2 show '$Temp_String_3 ' $Temp_String_3 show '$Temp_String_4 ' $Temp_String_4 show '$Temp_String_5 ' $Temp_String_5 show '$Temp_String_6 ' $Temp_String_6 show '$Temp_String_7 ' $Temp_String_7 show '$Temp_String_8 ' $Temp_String_8 show '$Temp_String_9 ' $Temp_String_9 show '$Temp_String_10 ' $Temp_String_10 show '$Temp_String_11 ' $Temp_String_11 show '$Temp_String_12 ' $Temp_String_12 show '$Temp_String_13 ' $Temp_String_13 show 'Before MICR ' $MICR begin-select on-error=SQL-Error A.business_unit &A.business_unit, let $CustBU = &A.business_unit show 'A.business_unit ' &A.business_unit let $Return = 'Y' show ' $Return inner ' $Return show 'inner $MICR ' $MICR from ps_cust_data A, ps_item I where [$Dynamic_Request_Where] end-select P.S. I included the dynamic variable in an attempt to get the value retiurned thinking that may have been my problem. Thanks, Joey _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 10 19:26:18 2004 Date: Wed, 10 Nov 2004 18:24:03 -0600 From: Joey Ramion Subject: Re: [sqr-users] sqr select variable problem Sure and thanks in advance for looking. This sql works no problem in sql plus but I cannot get it to return a variable in the sqr. begin-select on-error=SQL-Error A.business_unit &A.business_unit, let $CustBU = &A.business_unit show 'A.business_unit ' &A.business_unit let $Return = 'Y' show ' $Return inner ' $Return show 'inner $MICR ' $MICR from ps_cust_data A, ps_item I where A.item = I.item and A.cust_id = I.cust_id and I.item_line = 1 and A.cust_id = (select B.remit_from_cust_id from ps_cust_micr_tbl B where B.micr_id = $MICR and B.EFFDT = (select MAX (C.Effdt) from ps_cust_micr_tbl C where C.remit_from_cust_id = B.remit_from_cust_id and C.setid = B.setid and C.micr_id = B.micr_id and C.effdt <= $AsOfToday) and B.setid = 'SHARE') end-select The $MICR and $AsOfToday are both populated correctly before the start of the Select. Thanks! On Wed, 10 Nov 2004 18:15:12 -0600, James Womeldorf wrote: > It is a bit late in the day here and I find this pretty confusing (but > EVERYTHING is confusing now :). > Do you have a copy of this where you do not use the dynamic sql? > Jim > > > > -----Original Message----- > From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org > [mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of > Joey Ramion > Sent: Wednesday, November 10, 2004 6:04 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] sqr select variable problem > > Hello all, > > I have created what appears to be a very simple select statement in > sqr that returns only one value when run in sql plus on db2 however > when I run in sqr I cannot get it to populate my variable $CustBU when > I include all of the subselects. Please help!!!! > > let $Temp_String_1 = 'A.item = I.item' > let $Temp_String_2 = 'and A.cust_id = I.cust_id' > string 'and I.item_line = ' 1 '' > by '' into $Temp_String_3 > let $Temp_String_4 = 'and A.cust_id = (select B.remit_from_cust_id' > let $Temp_String_5 = 'from ps_cust_micr_tbl B' > string 'where B.micr_id = ''' $MICR '''' > by '' into $Temp_String_6 > let $Temp_String_7 = 'and B.EFFDT = (select MAX (C.Effdt)' > let $Temp_String_8 = 'from ps_cust_micr_tbl C' > let $Temp_String_9 = 'where C.remit_from_cust_id = > B.remit_from_cust_id' > let $Temp_String_10 = 'and C.setid = B.setid' > let $Temp_String_11 = 'and C.micr_id = B.micr_id' > string 'and C.effdt <= ''' $AsOfToday ''')' > by '' into $Temp_String_12 > string 'and B.setid = ''SHARE'')' > by '' into $Temp_String_13 > > string $Temp_String_1 $Temp_String_2 $Temp_String_3 $Temp_String_4 > $Temp_String_5 $Temp_String_6 $Temp_String_7 $Temp_String_8 > $Temp_String_9 $Temp_String_10 $Temp_String_11 $Temp_String_12 > $Temp_String_13 > by ' ' into $Dynamic_Request_Where > > show '$Temp_String_1 ' $Temp_String_1 > show '$Temp_String_2 ' $Temp_String_2 > show '$Temp_String_3 ' $Temp_String_3 > show '$Temp_String_4 ' $Temp_String_4 > show '$Temp_String_5 ' $Temp_String_5 > show '$Temp_String_6 ' $Temp_String_6 > show '$Temp_String_7 ' $Temp_String_7 > show '$Temp_String_8 ' $Temp_String_8 > show '$Temp_String_9 ' $Temp_String_9 > show '$Temp_String_10 ' $Temp_String_10 > show '$Temp_String_11 ' $Temp_String_11 > show '$Temp_String_12 ' $Temp_String_12 > show '$Temp_String_13 ' $Temp_String_13 > show 'Before MICR ' $MICR > > begin-select on-error=SQL-Error > A.business_unit &A.business_unit, > let $CustBU = &A.business_unit > show 'A.business_unit ' &A.business_unit > let $Return = 'Y' > show ' $Return inner ' $Return > show 'inner $MICR ' $MICR > from ps_cust_data A, ps_item I > where [$Dynamic_Request_Where] > end-select > > P.S. I included the dynamic variable in an attempt to get the value > retiurned thinking that may have been my problem. > > Thanks, > > Joey > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > -- Joey Ramion joey.ramion@gmail.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 Nov 10 19:29:54 2004 From: "the dragon" Subject: RE: [sqr-users] sqr select variable problem Date: Wed, 10 Nov 2004 18:25:49 -0600 My first question is why are you going to all thework that you are, rather than just creating the sql in the where clause. Why are you creating a hideous dynamic variable?? peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hello all, I have created what appears to be a very simple select statement in sqr that returns only one value when run in sql plus on db2 however when I run in sqr I cannot get it to populate my variable $CustBU when I include all of the subselects. Please help!!!! let $Temp_String_1 = 'A.item = I.item' let $Temp_String_2 = 'and A.cust_id = I.cust_id' string 'and I.item_line = ' 1 '' by '' into $Temp_String_3 let $Temp_String_4 = 'and A.cust_id = (select B.remit_from_cust_id' let $Temp_String_5 = 'from ps_cust_micr_tbl B' string 'where B.micr_id = ''' $MICR '''' by '' into $Temp_String_6 let $Temp_String_7 = 'and B.EFFDT = (select MAX (C.Effdt)' let $Temp_String_8 = 'from ps_cust_micr_tbl C' let $Temp_String_9 = 'where C.remit_from_cust_id = B.remit_from_cust_id' let $Temp_String_10 = 'and C.setid = B.setid' let $Temp_String_11 = 'and C.micr_id = B.micr_id' string 'and C.effdt <= ''' $AsOfToday ''')' by '' into $Temp_String_12 string 'and B.setid = ''SHARE'')' by '' into $Temp_String_13 string $Temp_String_1 $Temp_String_2 $Temp_String_3 $Temp_String_4 $Temp_String_5 $Temp_String_6 $Temp_String_7 $Temp_String_8 $Temp_String_9 $Temp_String_10 $Temp_String_11 $Temp_String_12 $Temp_String_13 by ' ' into $Dynamic_Request_Where show '$Temp_String_1 ' $Temp_String_1 show '$Temp_String_2 ' $Temp_String_2 show '$Temp_String_3 ' $Temp_String_3 show '$Temp_String_4 ' $Temp_String_4 show '$Temp_String_5 ' $Temp_String_5 show '$Temp_String_6 ' $Temp_String_6 show '$Temp_String_7 ' $Temp_String_7 show '$Temp_String_8 ' $Temp_String_8 show '$Temp_String_9 ' $Temp_String_9 show '$Temp_String_10 ' $Temp_String_10 show '$Temp_String_11 ' $Temp_String_11 show '$Temp_String_12 ' $Temp_String_12 show '$Temp_String_13 ' $Temp_String_13 show 'Before MICR ' $MICR begin-select on-error=SQL-Error A.business_unit &A.business_unit, let $CustBU = &A.business_unit show 'A.business_unit ' &A.business_unit let $Return = 'Y' show ' $Return inner ' $Return show 'inner $MICR ' $MICR from ps_cust_data A, ps_item I where [$Dynamic_Request_Where] end-select P.S. I included the dynamic variable in an attempt to get the value retiurned thinking that may have been my problem. Thanks, Joey _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 10 19:37:12 2004 From: "Manakotte, Krishnadas" Subject: RE: [sqr-users] sqr select variable problem Date: Thu, 11 Nov 2004 11:34:03 +1100 Hi Joey, Try removing these lines from main select and route through a function. I believe this will solve your problem if my understanding is correct let $CustBU = &A.business_unit show 'A.business_unit ' &A.business_unit let $Return = 'Y' Thank you krishna begin-select on-error=SQL-Error A.business_unit &A.business_unit, let $CustBU = &A.business_unit show 'A.business_unit ' &A.business_unit let $Return = 'Y' show ' $Return inner ' $Return show 'inner $MICR ' $MICR from ps_cust_data A, ps_item I where [$Dynamic_Request_Where] end-select -----Original Message----- From: Joey Ramion [mailto:joey.ramion@gmail.com] Sent: Thursday, 11 November 2004 11:04 AM To: sqr-users@sqrug.org Subject: [sqr-users] sqr select variable problem Hello all, I have created what appears to be a very simple select statement in sqr that returns only one value when run in sql plus on db2 however when I run in sqr I cannot get it to populate my variable $CustBU when I include all of the subselects. Please help!!!! let $Temp_String_1 = 'A.item = I.item' let $Temp_String_2 = 'and A.cust_id = I.cust_id' string 'and I.item_line = ' 1 '' by '' into $Temp_String_3 let $Temp_String_4 = 'and A.cust_id = (select B.remit_from_cust_id' let $Temp_String_5 = 'from ps_cust_micr_tbl B' string 'where B.micr_id = ''' $MICR '''' by '' into $Temp_String_6 let $Temp_String_7 = 'and B.EFFDT = (select MAX (C.Effdt)' let $Temp_String_8 = 'from ps_cust_micr_tbl C' let $Temp_String_9 = 'where C.remit_from_cust_id = B.remit_from_cust_id' let $Temp_String_10 = 'and C.setid = B.setid' let $Temp_String_11 = 'and C.micr_id = B.micr_id' string 'and C.effdt <= ''' $AsOfToday ''')' by '' into $Temp_String_12 string 'and B.setid = ''SHARE'')' by '' into $Temp_String_13 string $Temp_String_1 $Temp_String_2 $Temp_String_3 $Temp_String_4 $Temp_String_5 $Temp_String_6 $Temp_String_7 $Temp_String_8 $Temp_String_9 $Temp_String_10 $Temp_String_11 $Temp_String_12 $Temp_String_13 by ' ' into $Dynamic_Request_Where show '$Temp_String_1 ' $Temp_String_1 show '$Temp_String_2 ' $Temp_String_2 show '$Temp_String_3 ' $Temp_String_3 show '$Temp_String_4 ' $Temp_String_4 show '$Temp_String_5 ' $Temp_String_5 show '$Temp_String_6 ' $Temp_String_6 show '$Temp_String_7 ' $Temp_String_7 show '$Temp_String_8 ' $Temp_String_8 show '$Temp_String_9 ' $Temp_String_9 show '$Temp_String_10 ' $Temp_String_10 show '$Temp_String_11 ' $Temp_String_11 show '$Temp_String_12 ' $Temp_String_12 show '$Temp_String_13 ' $Temp_String_13 show 'Before MICR ' $MICR begin-select on-error=SQL-Error A.business_unit &A.business_unit, let $CustBU = &A.business_unit show 'A.business_unit ' &A.business_unit let $Return = 'Y' show ' $Return inner ' $Return show 'inner $MICR ' $MICR from ps_cust_data A, ps_item I where [$Dynamic_Request_Where] end-select P.S. I included the dynamic variable in an attempt to get the value retiurned thinking that may have been my problem. Thanks, Joey _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. 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 Nov 10 19:41:27 2004 From: James Womeldorf Subject: RE: [sqr-users] sqr select variable problem Date: Wed, 10 Nov 2004 18:37:01 -0600 I don't know if it affects anything but try removing the comma doing after &A.business_unit. -----Original Message----- From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org [mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of Joey Ramion Sent: Wednesday, November 10, 2004 6:24 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: Re: [sqr-users] sqr select variable problem Sure and thanks in advance for looking. This sql works no problem in sql plus but I cannot get it to return a variable in the sqr. begin-select on-error=SQL-Error A.business_unit &A.business_unit, let $CustBU = &A.business_unit show 'A.business_unit ' &A.business_unit let $Return = 'Y' show ' $Return inner ' $Return show 'inner $MICR ' $MICR from ps_cust_data A, ps_item I where A.item = I.item and A.cust_id = I.cust_id and I.item_line = 1 and A.cust_id = (select B.remit_from_cust_id from ps_cust_micr_tbl B where B.micr_id = $MICR and B.EFFDT = (select MAX (C.Effdt) from ps_cust_micr_tbl C where C.remit_from_cust_id = B.remit_from_cust_id and C.setid = B.setid and C.micr_id = B.micr_id and C.effdt <= $AsOfToday) and B.setid = 'SHARE') end-select The $MICR and $AsOfToday are both populated correctly before the start of the Select. Thanks! On Wed, 10 Nov 2004 18:15:12 -0600, James Womeldorf wrote: > It is a bit late in the day here and I find this pretty confusing (but > EVERYTHING is confusing now :). > Do you have a copy of this where you do not use the dynamic sql? > Jim > > > > -----Original Message----- > From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org > [mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of > Joey Ramion > Sent: Wednesday, November 10, 2004 6:04 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] sqr select variable problem > > Hello all, > > I have created what appears to be a very simple select statement in > sqr that returns only one value when run in sql plus on db2 however > when I run in sqr I cannot get it to populate my variable $CustBU when > I include all of the subselects. Please help!!!! > > let $Temp_String_1 = 'A.item = I.item' > let $Temp_String_2 = 'and A.cust_id = I.cust_id' > string 'and I.item_line = ' 1 '' > by '' into $Temp_String_3 > let $Temp_String_4 = 'and A.cust_id = (select B.remit_from_cust_id' > let $Temp_String_5 = 'from ps_cust_micr_tbl B' > string 'where B.micr_id = ''' $MICR '''' > by '' into $Temp_String_6 > let $Temp_String_7 = 'and B.EFFDT = (select MAX (C.Effdt)' > let $Temp_String_8 = 'from ps_cust_micr_tbl C' > let $Temp_String_9 = 'where C.remit_from_cust_id = > B.remit_from_cust_id' > let $Temp_String_10 = 'and C.setid = B.setid' > let $Temp_String_11 = 'and C.micr_id = B.micr_id' > string 'and C.effdt <= ''' $AsOfToday ''')' > by '' into $Temp_String_12 > string 'and B.setid = ''SHARE'')' > by '' into $Temp_String_13 > > string $Temp_String_1 $Temp_String_2 $Temp_String_3 $Temp_String_4 > $Temp_String_5 $Temp_String_6 $Temp_String_7 $Temp_String_8 > $Temp_String_9 $Temp_String_10 $Temp_String_11 $Temp_String_12 > $Temp_String_13 > by ' ' into $Dynamic_Request_Where > > show '$Temp_String_1 ' $Temp_String_1 > show '$Temp_String_2 ' $Temp_String_2 > show '$Temp_String_3 ' $Temp_String_3 > show '$Temp_String_4 ' $Temp_String_4 > show '$Temp_String_5 ' $Temp_String_5 > show '$Temp_String_6 ' $Temp_String_6 > show '$Temp_String_7 ' $Temp_String_7 > show '$Temp_String_8 ' $Temp_String_8 > show '$Temp_String_9 ' $Temp_String_9 > show '$Temp_String_10 ' $Temp_String_10 > show '$Temp_String_11 ' $Temp_String_11 > show '$Temp_String_12 ' $Temp_String_12 > show '$Temp_String_13 ' $Temp_String_13 > show 'Before MICR ' $MICR > > begin-select on-error=SQL-Error > A.business_unit &A.business_unit, > let $CustBU = &A.business_unit > show 'A.business_unit ' &A.business_unit > let $Return = 'Y' > show ' $Return inner ' $Return > show 'inner $MICR ' $MICR > from ps_cust_data A, ps_item I > where [$Dynamic_Request_Where] > end-select > > P.S. I included the dynamic variable in an attempt to get the value > retiurned thinking that may have been my problem. > > Thanks, > > Joey > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > -- Joey Ramion joey.ramion@gmail.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 Nov 10 19:44:37 2004 Date: Wed, 10 Nov 2004 18:39:17 -0600 From: Joey Ramion Subject: Re: [sqr-users] sqr select variable problem I only did that after repeated attempts without the variable yileded no retun value. basically I was and I am trying to do whatever it takes to get the one and existing returned value written to my variable. Thanks, Joey P.S. Result was no different without variable. On Wed, 10 Nov 2004 18:25:49 -0600, the dragon wrote: > My first question is why are you going to all thework that you are, rather > than just creating the sql in the where clause. Why are you creating a > hideous dynamic variable?? > > peace, > clark 'the dragon' willis > > PSA: Salary <> Slavery. If you earn a salary, your employer is renting your > services for 40 hours a week, not purchasing your soul. Your time is the > only real finite asset that you have, and once used it can never be > recovered, so don't waste it by giving it away. > > "Time is the coin of your life. It is the only coin you have, and only you > can determine how it will be spent. Be careful lest you let other people > spend it for you." > > Carl Sandburg > (1878 - 1967) > > ----Original Message Follows---- > > > > Hello all, > > I have created what appears to be a very simple select statement in > sqr that returns only one value when run in sql plus on db2 however > when I run in sqr I cannot get it to populate my variable $CustBU when > I include all of the subselects. Please help!!!! > > let $Temp_String_1 = 'A.item = I.item' > let $Temp_String_2 = 'and A.cust_id = I.cust_id' > string 'and I.item_line = ' 1 '' > by '' into $Temp_String_3 > let $Temp_String_4 = 'and A.cust_id = (select B.remit_from_cust_id' > let $Temp_String_5 = 'from ps_cust_micr_tbl B' > string 'where B.micr_id = ''' $MICR '''' > by '' into $Temp_String_6 > let $Temp_String_7 = 'and B.EFFDT = (select MAX (C.Effdt)' > let $Temp_String_8 = 'from ps_cust_micr_tbl C' > let $Temp_String_9 = 'where C.remit_from_cust_id = B.remit_from_cust_id' > let $Temp_String_10 = 'and C.setid = B.setid' > let $Temp_String_11 = 'and C.micr_id = B.micr_id' > string 'and C.effdt <= ''' $AsOfToday ''')' > by '' into $Temp_String_12 > string 'and B.setid = ''SHARE'')' > by '' into $Temp_String_13 > > string $Temp_String_1 $Temp_String_2 $Temp_String_3 $Temp_String_4 > $Temp_String_5 $Temp_String_6 $Temp_String_7 $Temp_String_8 > $Temp_String_9 $Temp_String_10 $Temp_String_11 $Temp_String_12 > $Temp_String_13 > by ' ' into $Dynamic_Request_Where > > show '$Temp_String_1 ' $Temp_String_1 > show '$Temp_String_2 ' $Temp_String_2 > show '$Temp_String_3 ' $Temp_String_3 > show '$Temp_String_4 ' $Temp_String_4 > show '$Temp_String_5 ' $Temp_String_5 > show '$Temp_String_6 ' $Temp_String_6 > show '$Temp_String_7 ' $Temp_String_7 > show '$Temp_String_8 ' $Temp_String_8 > show '$Temp_String_9 ' $Temp_String_9 > show '$Temp_String_10 ' $Temp_String_10 > show '$Temp_String_11 ' $Temp_String_11 > show '$Temp_String_12 ' $Temp_String_12 > show '$Temp_String_13 ' $Temp_String_13 > show 'Before MICR ' $MICR > > begin-select on-error=SQL-Error > A.business_unit &A.business_unit, > let $CustBU = &A.business_unit > show 'A.business_unit ' &A.business_unit > let $Return = 'Y' > show ' $Return inner ' $Return > show 'inner $MICR ' $MICR > from ps_cust_data A, ps_item I > where [$Dynamic_Request_Where] > end-select > > P.S. I included the dynamic variable in an attempt to get the value > retiurned thinking that may have been my problem. > > Thanks, > > Joey > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > -- Joey Ramion joey.ramion@gmail.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 Nov 10 19:48:10 2004 Date: Wed, 10 Nov 2004 18:44:49 -0600 From: Joey Ramion Subject: Re: [sqr-users] sqr select variable problem Hey Krishna and thanks for the reply. Nope it still did not work. FYI if I remove some parts of the where, and then have more than one returned value, it runs but of course I need the subselects. It's such a strange scenario. Joey On Thu, 11 Nov 2004 11:34:03 +1100, Manakotte, Krishnadas wrote: > > > Hi Joey, > > Try removing these lines from main select and route through a function. I > believe this will solve your problem if my understanding is correct > > let $CustBU = &A.business_unit > show 'A.business_unit ' &A.business_unit > let $Return = 'Y' > > Thank you > krishna > > > > > begin-select on-error=SQL-Error > A.business_unit &A.business_unit, > let $CustBU = &A.business_unit > show 'A.business_unit ' &A.business_unit > let $Return = 'Y' > show ' $Return inner ' $Return > show 'inner $MICR ' $MICR > from ps_cust_data A, ps_item I > where [$Dynamic_Request_Where] > end-select > > -----Original Message----- > From: Joey Ramion [mailto:joey.ramion@gmail.com] > Sent: Thursday, 11 November 2004 11:04 AM > To: sqr-users@sqrug.org > Subject: [sqr-users] sqr select variable problem > > Hello all, > > I have created what appears to be a very simple select statement in > sqr that returns only one value when run in sql plus on db2 however > when I run in sqr I cannot get it to populate my variable $CustBU when > I include all of the subselects. Please help!!!! > > let $Temp_String_1 = 'A.item = I.item' > let $Temp_String_2 = 'and A.cust_id = I.cust_id' > string 'and I.item_line = ' 1 '' > by '' into $Temp_String_3 > let $Temp_String_4 = 'and A.cust_id = (select B.remit_from_cust_id' > let $Temp_String_5 = 'from ps_cust_micr_tbl B' > string 'where B.micr_id = ''' $MICR '''' > by '' into $Temp_String_6 > let $Temp_String_7 = 'and B.EFFDT = (select MAX (C.Effdt)' > let $Temp_String_8 = 'from ps_cust_micr_tbl C' > let $Temp_String_9 = 'where C.remit_from_cust_id = > B.remit_from_cust_id' > let $Temp_String_10 = 'and C.setid = B.setid' > let $Temp_String_11 = 'and C.micr_id = B.micr_id' > string 'and C.effdt <= ''' $AsOfToday ''')' > by '' into $Temp_String_12 > string 'and B.setid = ''SHARE'')' > by '' into $Temp_String_13 > > string $Temp_String_1 $Temp_String_2 $Temp_String_3 $Temp_String_4 > $Temp_String_5 $Temp_String_6 $Temp_String_7 $Temp_String_8 > $Temp_String_9 $Temp_String_10 $Temp_String_11 $Temp_String_12 > $Temp_String_13 > by ' ' into $Dynamic_Request_Where > > show '$Temp_String_1 ' $Temp_String_1 > show '$Temp_String_2 ' $Temp_String_2 > show '$Temp_String_3 ' $Temp_String_3 > show '$Temp_String_4 ' $Temp_String_4 > show '$Temp_String_5 ' $Temp_String_5 > show '$Temp_String_6 ' $Temp_String_6 > show '$Temp_String_7 ' $Temp_String_7 > show '$Temp_String_8 ' $Temp_String_8 > show '$Temp_String_9 ' $Temp_String_9 > show '$Temp_String_10 ' $Temp_String_10 > show '$Temp_String_11 ' $Temp_String_11 > show '$Temp_String_12 ' $Temp_String_12 > show '$Temp_String_13 ' $Temp_String_13 > show 'Before MICR ' $MICR > > begin-select on-error=SQL-Error > A.business_unit &A.business_unit, > let $CustBU = &A.business_unit > show 'A.business_unit ' &A.business_unit > let $Return = 'Y' > show ' $Return inner ' $Return > show 'inner $MICR ' $MICR > from ps_cust_data A, ps_item I > where [$Dynamic_Request_Where] > end-select > > P.S. I included the dynamic variable in an attempt to get the value > retiurned thinking that may have been my problem. > > Thanks, > > Joey > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > -- Joey Ramion joey.ramion@gmail.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 Nov 10 19:49:42 2004 Date: Wed, 10 Nov 2004 18:47:32 -0600 From: Joey Ramion Subject: Re: [sqr-users] sqr select variable problem Hey James, Yeah I added that in one of my many attempts to get it to work. rerunning now with no comma and also the let, etc placed in a separate proc. Thanks, joey On Wed, 10 Nov 2004 18:37:01 -0600, James Womeldorf wrote: > I don't know if it affects anything but try removing the comma doing after > &A.business_unit. > > > > -----Original Message----- > From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org > [mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of > Joey Ramion > Sent: Wednesday, November 10, 2004 6:24 PM > To: This list is for discussion about the SQR database reporting > language from Hyperion Solutions. > Subject: Re: [sqr-users] sqr select variable problem > > Sure and thanks in advance for looking. This sql works no problem in > sql plus but I cannot get it to return a variable in the sqr. > > begin-select on-error=SQL-Error > A.business_unit &A.business_unit, > let $CustBU = &A.business_unit > show 'A.business_unit ' &A.business_unit > let $Return = 'Y' > show ' $Return inner ' $Return > show 'inner $MICR ' $MICR > from ps_cust_data A, ps_item I > where A.item = I.item > > > and A.cust_id = I.cust_id > and I.item_line = 1 > and A.cust_id = (select B.remit_from_cust_id > from ps_cust_micr_tbl B > where B.micr_id = $MICR > and B.EFFDT = (select MAX > (C.Effdt) > > from ps_cust_micr_tbl C > where > C.remit_from_cust_id = B.remit_from_cust_id > and C.setid = B.setid > and C.micr_id = > B.micr_id > and C.effdt <= > $AsOfToday) > and B.setid = 'SHARE') > end-select > > The $MICR and $AsOfToday are both populated correctly before the start > of the Select. > > Thanks! > > On Wed, 10 Nov 2004 18:15:12 -0600, James Womeldorf > wrote: > > It is a bit late in the day here and I find this pretty confusing (but > > EVERYTHING is confusing now :). > > Do you have a copy of this where you do not use the dynamic sql? > > Jim > > > > > > > > -----Original Message----- > > From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org > > [mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of > > Joey Ramion > > Sent: Wednesday, November 10, 2004 6:04 PM > > To: sqr-users@sqrug.org > > Subject: [sqr-users] sqr select variable problem > > > > Hello all, > > > > I have created what appears to be a very simple select statement in > > sqr that returns only one value when run in sql plus on db2 however > > when I run in sqr I cannot get it to populate my variable $CustBU when > > I include all of the subselects. Please help!!!! > > > > let $Temp_String_1 = 'A.item = I.item' > > let $Temp_String_2 = 'and A.cust_id = I.cust_id' > > string 'and I.item_line = ' 1 '' > > by '' into $Temp_String_3 > > let $Temp_String_4 = 'and A.cust_id = (select > B.remit_from_cust_id' > > let $Temp_String_5 = 'from ps_cust_micr_tbl B' > > string 'where B.micr_id = ''' $MICR '''' > > by '' into $Temp_String_6 > > let $Temp_String_7 = 'and B.EFFDT = (select MAX (C.Effdt)' > > let $Temp_String_8 = 'from ps_cust_micr_tbl C' > > let $Temp_String_9 = 'where C.remit_from_cust_id = > > B.remit_from_cust_id' > > let $Temp_String_10 = 'and C.setid = B.setid' > > let $Temp_String_11 = 'and C.micr_id = B.micr_id' > > string 'and C.effdt <= ''' $AsOfToday ''')' > > by '' into $Temp_String_12 > > string 'and B.setid = ''SHARE'')' > > by '' into $Temp_String_13 > > > > string $Temp_String_1 $Temp_String_2 $Temp_String_3 $Temp_String_4 > > $Temp_String_5 $Temp_String_6 $Temp_String_7 $Temp_String_8 > > $Temp_String_9 $Temp_String_10 $Temp_String_11 $Temp_String_12 > > $Temp_String_13 > > by ' ' into $Dynamic_Request_Where > > > > show '$Temp_String_1 ' $Temp_String_1 > > show '$Temp_String_2 ' $Temp_String_2 > > show '$Temp_String_3 ' $Temp_String_3 > > show '$Temp_String_4 ' $Temp_String_4 > > show '$Temp_String_5 ' $Temp_String_5 > > show '$Temp_String_6 ' $Temp_String_6 > > show '$Temp_String_7 ' $Temp_String_7 > > show '$Temp_String_8 ' $Temp_String_8 > > show '$Temp_String_9 ' $Temp_String_9 > > show '$Temp_String_10 ' $Temp_String_10 > > show '$Temp_String_11 ' $Temp_String_11 > > show '$Temp_String_12 ' $Temp_String_12 > > show '$Temp_String_13 ' $Temp_String_13 > > show 'Before MICR ' $MICR > > > > begin-select on-error=SQL-Error > > A.business_unit &A.business_unit, > > let $CustBU = &A.business_unit > > show 'A.business_unit ' &A.business_unit > > let $Return = 'Y' > > show ' $Return inner ' $Return > > show 'inner $MICR ' $MICR > > from ps_cust_data A, ps_item I > > where [$Dynamic_Request_Where] > > end-select > > > > P.S. I included the dynamic variable in an attempt to get the value > > retiurned thinking that may have been my problem. > > > > Thanks, > > > > Joey > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > -- > Joey Ramion > joey.ramion@gmail.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 > -- Joey Ramion joey.ramion@gmail.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 Nov 10 19:53:02 2004 From: James Womeldorf Subject: RE: [sqr-users] sqr select variable problem Date: Wed, 10 Nov 2004 18:51:16 -0600 Just for kicks, try substituting SYSDATE for $AsOfToday. -----Original Message----- From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org [mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of Joey Ramion Sent: Wednesday, November 10, 2004 6:45 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: Re: [sqr-users] sqr select variable problem Hey Krishna and thanks for the reply. Nope it still did not work. FYI if I remove some parts of the where, and then have more than one returned value, it runs but of course I need the subselects. It's such a strange scenario. Joey On Thu, 11 Nov 2004 11:34:03 +1100, Manakotte, Krishnadas wrote: > > > Hi Joey, > > Try removing these lines from main select and route through a function. I > believe this will solve your problem if my understanding is correct > > let $CustBU = &A.business_unit > show 'A.business_unit ' &A.business_unit > let $Return = 'Y' > > Thank you > krishna > > > > > begin-select on-error=SQL-Error > A.business_unit &A.business_unit, > let $CustBU = &A.business_unit > show 'A.business_unit ' &A.business_unit > let $Return = 'Y' > show ' $Return inner ' $Return > show 'inner $MICR ' $MICR > from ps_cust_data A, ps_item I > where [$Dynamic_Request_Where] > end-select > > -----Original Message----- > From: Joey Ramion [mailto:joey.ramion@gmail.com] > Sent: Thursday, 11 November 2004 11:04 AM > To: sqr-users@sqrug.org > Subject: [sqr-users] sqr select variable problem > > Hello all, > > I have created what appears to be a very simple select statement in > sqr that returns only one value when run in sql plus on db2 however > when I run in sqr I cannot get it to populate my variable $CustBU when > I include all of the subselects. Please help!!!! > > let $Temp_String_1 = 'A.item = I.item' > let $Temp_String_2 = 'and A.cust_id = I.cust_id' > string 'and I.item_line = ' 1 '' > by '' into $Temp_String_3 > let $Temp_String_4 = 'and A.cust_id = (select B.remit_from_cust_id' > let $Temp_String_5 = 'from ps_cust_micr_tbl B' > string 'where B.micr_id = ''' $MICR '''' > by '' into $Temp_String_6 > let $Temp_String_7 = 'and B.EFFDT = (select MAX (C.Effdt)' > let $Temp_String_8 = 'from ps_cust_micr_tbl C' > let $Temp_String_9 = 'where C.remit_from_cust_id = > B.remit_from_cust_id' > let $Temp_String_10 = 'and C.setid = B.setid' > let $Temp_String_11 = 'and C.micr_id = B.micr_id' > string 'and C.effdt <= ''' $AsOfToday ''')' > by '' into $Temp_String_12 > string 'and B.setid = ''SHARE'')' > by '' into $Temp_String_13 > > string $Temp_String_1 $Temp_String_2 $Temp_String_3 $Temp_String_4 > $Temp_String_5 $Temp_String_6 $Temp_String_7 $Temp_String_8 > $Temp_String_9 $Temp_String_10 $Temp_String_11 $Temp_String_12 > $Temp_String_13 > by ' ' into $Dynamic_Request_Where > > show '$Temp_String_1 ' $Temp_String_1 > show '$Temp_String_2 ' $Temp_String_2 > show '$Temp_String_3 ' $Temp_String_3 > show '$Temp_String_4 ' $Temp_String_4 > show '$Temp_String_5 ' $Temp_String_5 > show '$Temp_String_6 ' $Temp_String_6 > show '$Temp_String_7 ' $Temp_String_7 > show '$Temp_String_8 ' $Temp_String_8 > show '$Temp_String_9 ' $Temp_String_9 > show '$Temp_String_10 ' $Temp_String_10 > show '$Temp_String_11 ' $Temp_String_11 > show '$Temp_String_12 ' $Temp_String_12 > show '$Temp_String_13 ' $Temp_String_13 > show 'Before MICR ' $MICR > > begin-select on-error=SQL-Error > A.business_unit &A.business_unit, > let $CustBU = &A.business_unit > show 'A.business_unit ' &A.business_unit > let $Return = 'Y' > show ' $Return inner ' $Return > show 'inner $MICR ' $MICR > from ps_cust_data A, ps_item I > where [$Dynamic_Request_Where] > end-select > > P.S. I included the dynamic variable in an attempt to get the value > retiurned thinking that may have been my problem. > > Thanks, > > Joey > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > -- Joey Ramion joey.ramion@gmail.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 Nov 10 20:00:37 2004 Date: Wed, 10 Nov 2004 19:00:01 -0600 From: Joey Ramion Subject: Re: [sqr-users] sqr select variable problem No this is DB2 not Oracle. Thanks though! P.S. Just cause this sqr is driving me crazy I did try and failure did occur! On Wed, 10 Nov 2004 18:51:16 -0600, James Womeldorf wrote: > Just for kicks, try substituting SYSDATE for $AsOfToday. > > > > -----Original Message----- > From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org > [mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of > Joey Ramion > Sent: Wednesday, November 10, 2004 6:45 PM > To: This list is for discussion about the SQR database reporting > language from Hyperion Solutions. > Subject: Re: [sqr-users] sqr select variable problem > > Hey Krishna and thanks for the reply. > > Nope it still did not work. FYI if I remove some parts of the where, > and then have more than one returned value, it runs but of course I > need the subselects. > > It's such a strange scenario. > > Joey > > On Thu, 11 Nov 2004 11:34:03 +1100, Manakotte, Krishnadas > wrote: > > > > > > Hi Joey, > > > > Try removing these lines from main select and route through a function. I > > believe this will solve your problem if my understanding is correct > > > > let $CustBU = &A.business_unit > > show 'A.business_unit ' &A.business_unit > > let $Return = 'Y' > > > > Thank you > > krishna > > > > > > > > > > > > begin-select on-error=SQL-Error > > A.business_unit &A.business_unit, > > let $CustBU = &A.business_unit > > show 'A.business_unit ' &A.business_unit > > let $Return = 'Y' > > show ' $Return inner ' $Return > > show 'inner $MICR ' $MICR > > from ps_cust_data A, ps_item I > > where [$Dynamic_Request_Where] > > end-select > > > > -----Original Message----- > > From: Joey Ramion [mailto:joey.ramion@gmail.com] > > Sent: Thursday, 11 November 2004 11:04 AM > > To: sqr-users@sqrug.org > > Subject: [sqr-users] sqr select variable problem > > > > Hello all, > > > > I have created what appears to be a very simple select statement in > > sqr that returns only one value when run in sql plus on db2 however > > when I run in sqr I cannot get it to populate my variable $CustBU when > > I include all of the subselects. Please help!!!! > > > > let $Temp_String_1 = 'A.item = I.item' > > let $Temp_String_2 = 'and A.cust_id = I.cust_id' > > string 'and I.item_line = ' 1 '' > > by '' into $Temp_String_3 > > let $Temp_String_4 = 'and A.cust_id = (select > B.remit_from_cust_id' > > let $Temp_String_5 = 'from ps_cust_micr_tbl B' > > string 'where B.micr_id = ''' $MICR '''' > > by '' into $Temp_String_6 > > let $Temp_String_7 = 'and B.EFFDT = (select MAX (C.Effdt)' > > let $Temp_String_8 = 'from ps_cust_micr_tbl C' > > let $Temp_String_9 = 'where C.remit_from_cust_id = > > B.remit_from_cust_id' > > let $Temp_String_10 = 'and C.setid = B.setid' > > let $Temp_String_11 = 'and C.micr_id = B.micr_id' > > string 'and C.effdt <= ''' $AsOfToday ''')' > > by '' into $Temp_String_12 > > string 'and B.setid = ''SHARE'')' > > by '' into $Temp_String_13 > > > > string $Temp_String_1 $Temp_String_2 $Temp_String_3 $Temp_String_4 > > $Temp_String_5 $Temp_String_6 $Temp_String_7 $Temp_String_8 > > $Temp_String_9 $Temp_String_10 $Temp_String_11 $Temp_String_12 > > $Temp_String_13 > > by ' ' into $Dynamic_Request_Where > > > > show '$Temp_String_1 ' $Temp_String_1 > > show '$Temp_String_2 ' $Temp_String_2 > > show '$Temp_String_3 ' $Temp_String_3 > > show '$Temp_String_4 ' $Temp_String_4 > > show '$Temp_String_5 ' $Temp_String_5 > > show '$Temp_String_6 ' $Temp_String_6 > > show '$Temp_String_7 ' $Temp_String_7 > > show '$Temp_String_8 ' $Temp_String_8 > > show '$Temp_String_9 ' $Temp_String_9 > > show '$Temp_String_10 ' $Temp_String_10 > > show '$Temp_String_11 ' $Temp_String_11 > > show '$Temp_String_12 ' $Temp_String_12 > > show '$Temp_String_13 ' $Temp_String_13 > > show 'Before MICR ' $MICR > > > > begin-select on-error=SQL-Error > > A.business_unit &A.business_unit, > > let $CustBU = &A.business_unit > > show 'A.business_unit ' &A.business_unit > > let $Return = 'Y' > > show ' $Return inner ' $Return > > show 'inner $MICR ' $MICR > > from ps_cust_data A, ps_item I > > where [$Dynamic_Request_Where] > > end-select > > > > P.S. I included the dynamic variable in an attempt to get the value > > retiurned thinking that may have been my problem. > > > > Thanks, > > > > Joey > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > This e-mail and any attachment is for authorised use by the intended > recipient(s) only. It may contain proprietary material, confidential > information and/or be subject to legal privilege. It should not be copied, > disclosed to, retained or used by, any other party. If you are not an > intended recipient then please promptly delete this e-mail and any > attachment and all copies and inform the sender. Thank you. > > > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > -- > Joey Ramion > joey.ramion@gmail.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 > -- Joey Ramion joey.ramion@gmail.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 Nov 10 20:09:56 2004 From: "Peter Burton" Date: Wed, 10 Nov 2004 20:03:04 -0500 Subject: RE: [sqr-users] sqr select variable problem Joey, Did you "Show" the contents of $Dynamic_Request_Where to verify that it is = correctly built? 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 Joey Ramion Sent: Wednesday, November 10, 2004 7:04 PM To: sqr-users@sqrug.org Subject: [sqr-users] sqr select variable problem Hello all, I have created what appears to be a very simple select statement in sqr that returns only one value when run in sql plus on db2 however when I run in sqr I cannot get it to populate my variable $CustBU when I include all of the subselects. Please help!!!! let $Temp_String_1 =3D 'A.item =3D I.item' let $Temp_String_2 =3D 'and A.cust_id =3D I.cust_id' string 'and I.item_line =3D ' 1 '' by '' into $Temp_String_3 let $Temp_String_4 =3D 'and A.cust_id =3D (select B.remit_from_cust_id' let $Temp_String_5 =3D 'from ps_cust_micr_tbl B' string 'where B.micr_id =3D ''' $MICR '''' by '' into $Temp_String_6 let $Temp_String_7 =3D 'and B.EFFDT =3D (select MAX (C.Effdt)' let $Temp_String_8 =3D 'from ps_cust_micr_tbl C' let $Temp_String_9 =3D 'where C.remit_from_cust_id =3D B.remit_from_cust_i= d' let $Temp_String_10 =3D 'and C.setid =3D B.setid' let $Temp_String_11 =3D 'and C.micr_id =3D B.micr_id' string 'and C.effdt <=3D ''' $AsOfToday ''')' by '' into $Temp_String_12 string 'and B.setid =3D ''SHARE'')' by '' into $Temp_String_13 =09=09 string $Temp_String_1 $Temp_String_2 $Temp_String_3 $Temp_String_4 $Temp_String_5 $Temp_String_6 $Temp_String_7 $Temp_String_8 $Temp_String_9 $Temp_String_10 $Temp_String_11 $Temp_String_12 $Temp_String_13 by ' ' into $Dynamic_Request_Where =20=20=20=20=20=20=20=20=20=20=20 show '$Temp_String_1 ' $Temp_String_1 show '$Temp_String_2 ' $Temp_String_2 show '$Temp_String_3 ' $Temp_String_3 show '$Temp_String_4 ' $Temp_String_4 show '$Temp_String_5 ' $Temp_String_5 show '$Temp_String_6 ' $Temp_String_6 show '$Temp_String_7 ' $Temp_String_7 show '$Temp_String_8 ' $Temp_String_8 show '$Temp_String_9 ' $Temp_String_9 show '$Temp_String_10 ' $Temp_String_10 show '$Temp_String_11 ' $Temp_String_11 show '$Temp_String_12 ' $Temp_String_12 show '$Temp_String_13 ' $Temp_String_13 show 'Before MICR ' $MICR=20=20 begin-select on-error=3DSQL-Error A.business_unit &A.business_unit, let $CustBU =3D &A.business_unit show 'A.business_unit ' &A.business_unit let $Return =3D 'Y' show ' $Return inner ' $Return show 'inner $MICR ' $MICR from ps_cust_data A, ps_item I where [$Dynamic_Request_Where] end-select P.S. I included the dynamic variable in an attempt to get the value retiurned thinking that may have been my problem. Thanks, Joey _______________________________________________ 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 Wed Nov 10 20:17:44 2004 From: "Manakotte, Krishnadas" Subject: RE: [sqr-users] sqr select variable problem Date: Thu, 11 Nov 2004 12:12:16 +1100 Why I suggested that because we can't use "let" clause between one "select" statement in sqr 8.2 (this is what am using). So we have to make a function and inside that function we can put "let" clause. Otherwise we will end up in error while executing sqr. Something like this Begin-select Do >From table a, table b where [$Dynamic_Request_Where] begin-procedure let $CustBU = &A.business_unit show 'A.business_unit ' &A.business_unit let $Return = 'Y' end-procedure Is this make sense ? -----Original Message----- From: Joey Ramion [mailto:joey.ramion@gmail.com] Sent: Thursday, 11 November 2004 12:00 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: Re: [sqr-users] sqr select variable problem No this is DB2 not Oracle. Thanks though! P.S. Just cause this sqr is driving me crazy I did try and failure did occur! On Wed, 10 Nov 2004 18:51:16 -0600, James Womeldorf wrote: > Just for kicks, try substituting SYSDATE for $AsOfToday. > > > > -----Original Message----- > From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org > [mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of > Joey Ramion > Sent: Wednesday, November 10, 2004 6:45 PM > To: This list is for discussion about the SQR database reporting > language from Hyperion Solutions. > Subject: Re: [sqr-users] sqr select variable problem > > Hey Krishna and thanks for the reply. > > Nope it still did not work. FYI if I remove some parts of the where, > and then have more than one returned value, it runs but of course I > need the subselects. > > It's such a strange scenario. > > Joey > > On Thu, 11 Nov 2004 11:34:03 +1100, Manakotte, Krishnadas > wrote: > > > > > > Hi Joey, > > > > Try removing these lines from main select and route through a function. I > > believe this will solve your problem if my understanding is correct > > > > let $CustBU = &A.business_unit > > show 'A.business_unit ' &A.business_unit > > let $Return = 'Y' > > > > Thank you > > krishna > > > > > > > > > > > > begin-select on-error=SQL-Error > > A.business_unit &A.business_unit, > > let $CustBU = &A.business_unit > > show 'A.business_unit ' &A.business_unit > > let $Return = 'Y' > > show ' $Return inner ' $Return > > show 'inner $MICR ' $MICR > > from ps_cust_data A, ps_item I > > where [$Dynamic_Request_Where] > > end-select > > > > -----Original Message----- > > From: Joey Ramion [mailto:joey.ramion@gmail.com] > > Sent: Thursday, 11 November 2004 11:04 AM > > To: sqr-users@sqrug.org > > Subject: [sqr-users] sqr select variable problem > > > > Hello all, > > > > I have created what appears to be a very simple select statement in > > sqr that returns only one value when run in sql plus on db2 however > > when I run in sqr I cannot get it to populate my variable $CustBU when > > I include all of the subselects. Please help!!!! > > > > let $Temp_String_1 = 'A.item = I.item' > > let $Temp_String_2 = 'and A.cust_id = I.cust_id' > > string 'and I.item_line = ' 1 '' > > by '' into $Temp_String_3 > > let $Temp_String_4 = 'and A.cust_id = (select > B.remit_from_cust_id' > > let $Temp_String_5 = 'from ps_cust_micr_tbl B' > > string 'where B.micr_id = ''' $MICR '''' > > by '' into $Temp_String_6 > > let $Temp_String_7 = 'and B.EFFDT = (select MAX (C.Effdt)' > > let $Temp_String_8 = 'from ps_cust_micr_tbl C' > > let $Temp_String_9 = 'where C.remit_from_cust_id = > > B.remit_from_cust_id' > > let $Temp_String_10 = 'and C.setid = B.setid' > > let $Temp_String_11 = 'and C.micr_id = B.micr_id' > > string 'and C.effdt <= ''' $AsOfToday ''')' > > by '' into $Temp_String_12 > > string 'and B.setid = ''SHARE'')' > > by '' into $Temp_String_13 > > > > string $Temp_String_1 $Temp_String_2 $Temp_String_3 $Temp_String_4 > > $Temp_String_5 $Temp_String_6 $Temp_String_7 $Temp_String_8 > > $Temp_String_9 $Temp_String_10 $Temp_String_11 $Temp_String_12 > > $Temp_String_13 > > by ' ' into $Dynamic_Request_Where > > > > show '$Temp_String_1 ' $Temp_String_1 > > show '$Temp_String_2 ' $Temp_String_2 > > show '$Temp_String_3 ' $Temp_String_3 > > show '$Temp_String_4 ' $Temp_String_4 > > show '$Temp_String_5 ' $Temp_String_5 > > show '$Temp_String_6 ' $Temp_String_6 > > show '$Temp_String_7 ' $Temp_String_7 > > show '$Temp_String_8 ' $Temp_String_8 > > show '$Temp_String_9 ' $Temp_String_9 > > show '$Temp_String_10 ' $Temp_String_10 > > show '$Temp_String_11 ' $Temp_String_11 > > show '$Temp_String_12 ' $Temp_String_12 > > show '$Temp_String_13 ' $Temp_String_13 > > show 'Before MICR ' $MICR > > > > begin-select on-error=SQL-Error > > A.business_unit &A.business_unit, > > let $CustBU = &A.business_unit > > show 'A.business_unit ' &A.business_unit > > let $Return = 'Y' > > show ' $Return inner ' $Return > > show 'inner $MICR ' $MICR > > from ps_cust_data A, ps_item I > > where [$Dynamic_Request_Where] > > end-select > > > > P.S. I included the dynamic variable in an attempt to get the value > > retiurned thinking that may have been my problem. > > > > Thanks, > > > > Joey > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > This e-mail and any attachment is for authorised use by the intended > recipient(s) only. It may contain proprietary material, confidential > information and/or be subject to legal privilege. It should not be copied, > disclosed to, retained or used by, any other party. If you are not an > intended recipient then please promptly delete this e-mail and any > attachment and all copies and inform the sender. Thank you. > > > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > -- > Joey Ramion > joey.ramion@gmail.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 > -- Joey Ramion joey.ramion@gmail.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. 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 Nov 10 20:27:40 2004 Date: Wed, 10 Nov 2004 19:25:16 -0600 From: Joey Ramion Subject: Re: [sqr-users] sqr select variable problem Peter, I had not, bad of me, but upon rerun it is showing correct and with $MICR and date value showing correctly. for instance here is my first row selection, which in sql plus returns a value: A.item = I.item and A.cust_id = I.cust_id and I.item_line = 1 and A.cust_id = (select B.remit_from_cust_id from ps_cust_micr_tbl B where B.micr_id = '1119096344759630163' and B.EFFDT = (select MAX (C.Effdt) from ps_cust_micr_tbl C where C.remit_from_cust_id = B.remit_from_cust_id and C.setid = B.setid and C.micr_id = B.micr_id and C.effdt <= '2004-11-10') and B.setid = 'SHARE') I'm beginning to think this is some sort of weird DB2 problem as Oracle has no problems at all with this type of sqr. Thanks, joey On Wed, 10 Nov 2004 20:03:04 -0500, Peter Burton wrote: > Joey, > > Did you "Show" the contents of $Dynamic_Request_Where to verify that it is correctly built? > > Peter > > > > -----Original Message----- > From: sqr-users-bounces+peter_burton=hyperion.com@sqrug.org > [mailto:sqr-users-bounces+peter_burton=hyperion.com@sqrug.org]On Behalf > Of Joey Ramion > Sent: Wednesday, November 10, 2004 7:04 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] sqr select variable problem > > Hello all, > > I have created what appears to be a very simple select statement in > sqr that returns only one value when run in sql plus on db2 however > when I run in sqr I cannot get it to populate my variable $CustBU when > I include all of the subselects. Please help!!!! > > let $Temp_String_1 = 'A.item = I.item' > let $Temp_String_2 = 'and A.cust_id = I.cust_id' > string 'and I.item_line = ' 1 '' > by '' into $Temp_String_3 > let $Temp_String_4 = 'and A.cust_id = (select B.remit_from_cust_id' > let $Temp_String_5 = 'from ps_cust_micr_tbl B' > string 'where B.micr_id = ''' $MICR '''' > by '' into $Temp_String_6 > let $Temp_String_7 = 'and B.EFFDT = (select MAX (C.Effdt)' > let $Temp_String_8 = 'from ps_cust_micr_tbl C' > let $Temp_String_9 = 'where C.remit_from_cust_id = B.remit_from_cust_id' > let $Temp_String_10 = 'and C.setid = B.setid' > let $Temp_String_11 = 'and C.micr_id = B.micr_id' > string 'and C.effdt <= ''' $AsOfToday ''')' > by '' into $Temp_String_12 > string 'and B.setid = ''SHARE'')' > by '' into $Temp_String_13 > > string $Temp_String_1 $Temp_String_2 $Temp_String_3 $Temp_String_4 > $Temp_String_5 $Temp_String_6 $Temp_String_7 $Temp_String_8 > $Temp_String_9 $Temp_String_10 $Temp_String_11 $Temp_String_12 > $Temp_String_13 > by ' ' into $Dynamic_Request_Where > > show '$Temp_String_1 ' $Temp_String_1 > show '$Temp_String_2 ' $Temp_String_2 > show '$Temp_String_3 ' $Temp_String_3 > show '$Temp_String_4 ' $Temp_String_4 > show '$Temp_String_5 ' $Temp_String_5 > show '$Temp_String_6 ' $Temp_String_6 > show '$Temp_String_7 ' $Temp_String_7 > show '$Temp_String_8 ' $Temp_String_8 > show '$Temp_String_9 ' $Temp_String_9 > show '$Temp_String_10 ' $Temp_String_10 > show '$Temp_String_11 ' $Temp_String_11 > show '$Temp_String_12 ' $Temp_String_12 > show '$Temp_String_13 ' $Temp_String_13 > show 'Before MICR ' $MICR > > begin-select on-error=SQL-Error > A.business_unit &A.business_unit, > let $CustBU = &A.business_unit > show 'A.business_unit ' &A.business_unit > let $Return = 'Y' > show ' $Return inner ' $Return > show 'inner $MICR ' $MICR > from ps_cust_data A, ps_item I > where [$Dynamic_Request_Where] > end-select > > P.S. I included the dynamic variable in an attempt to get the value > retiurned thinking that may have been my problem. > > Thanks, > > Joey > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > ************************************************************************ > > If you have received this e-mail in error, please delete it and notify the sender as soon as possible. The contents of this e-mail may be confidential and the unauthorized use, copying, or dissemination of it and any attachments to it, is prohibited. > > Internet communications are not secure and Hyperion does not, therefore, accept legal responsibility for the contents of this message nor for any damage caused by viruses. The views expressed here do not necessarily represent those of Hyperion. > > For more information about Hyperion, please visit our Web site at www.hyperion.com > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > -- Joey Ramion joey.ramion@gmail.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 Nov 10 20:30:51 2004 Date: Wed, 10 Nov 2004 19:26:29 -0600 From: Joey Ramion Subject: Re: [sqr-users] sqr select variable problem Krishna, Hey and yes it makes perfect sense. I made the change earlier but it still does not work. Thanks, Joey On Thu, 11 Nov 2004 12:12:16 +1100, Manakotte, Krishnadas wrote: > Why I suggested that because we can't use "let" clause between one "select" > statement in sqr 8.2 (this is what am using). So we have to make a function > and inside that function we can put "let" clause. Otherwise we will end up > in error while executing sqr. > > Something like this > > Begin-select > > Do > > >From table a, table b > where [$Dynamic_Request_Where] > > begin-procedure > let $CustBU = &A.business_unit > show 'A.business_unit ' &A.business_unit > let $Return = 'Y' > end-procedure > > Is this make sense ? > > > > > -----Original Message----- > From: Joey Ramion [mailto:joey.ramion@gmail.com] > Sent: Thursday, 11 November 2004 12:00 PM > To: This list is for discussion about the SQR database reporting language > from Hyperion Solutions. > Subject: Re: [sqr-users] sqr select variable problem > > No this is DB2 not Oracle. Thanks though! > > P.S. Just cause this sqr is driving me crazy I did try and failure did > occur! > > On Wed, 10 Nov 2004 18:51:16 -0600, James Womeldorf > wrote: > > Just for kicks, try substituting SYSDATE for $AsOfToday. > > > > > > > > -----Original Message----- > > From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org > > [mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of > > Joey Ramion > > Sent: Wednesday, November 10, 2004 6:45 PM > > To: This list is for discussion about the SQR database reporting > > language from Hyperion Solutions. > > Subject: Re: [sqr-users] sqr select variable problem > > > > Hey Krishna and thanks for the reply. > > > > Nope it still did not work. FYI if I remove some parts of the where, > > and then have more than one returned value, it runs but of course I > > need the subselects. > > > > It's such a strange scenario. > > > > Joey > > > > On Thu, 11 Nov 2004 11:34:03 +1100, Manakotte, Krishnadas > > wrote: > > > > > > > > > Hi Joey, > > > > > > Try removing these lines from main select and route through a function. > I > > > believe this will solve your problem if my understanding is correct > > > > > > let $CustBU = &A.business_unit > > > show 'A.business_unit ' &A.business_unit > > > let $Return = 'Y' > > > > > > Thank you > > > krishna > > > > > > > > > > > > > > > > > > > > > begin-select on-error=SQL-Error > > > A.business_unit &A.business_unit, > > > let $CustBU = &A.business_unit > > > show 'A.business_unit ' &A.business_unit > > > let $Return = 'Y' > > > show ' $Return inner ' $Return > > > show 'inner $MICR ' $MICR > > > from ps_cust_data A, ps_item I > > > where [$Dynamic_Request_Where] > > > end-select > > > > > > -----Original Message----- > > > From: Joey Ramion [mailto:joey.ramion@gmail.com] > > > Sent: Thursday, 11 November 2004 11:04 AM > > > To: sqr-users@sqrug.org > > > Subject: [sqr-users] sqr select variable problem > > > > > > Hello all, > > > > > > I have created what appears to be a very simple select statement in > > > sqr that returns only one value when run in sql plus on db2 however > > > when I run in sqr I cannot get it to populate my variable $CustBU when > > > I include all of the subselects. Please help!!!! > > > > > > let $Temp_String_1 = 'A.item = I.item' > > > let $Temp_String_2 = 'and A.cust_id = I.cust_id' > > > string 'and I.item_line = ' 1 '' > > > by '' into $Temp_String_3 > > > let $Temp_String_4 = 'and A.cust_id = (select > > B.remit_from_cust_id' > > > let $Temp_String_5 = 'from ps_cust_micr_tbl B' > > > string 'where B.micr_id = ''' $MICR '''' > > > by '' into $Temp_String_6 > > > let $Temp_String_7 = 'and B.EFFDT = (select MAX (C.Effdt)' > > > let $Temp_String_8 = 'from ps_cust_micr_tbl C' > > > let $Temp_String_9 = 'where C.remit_from_cust_id = > > > B.remit_from_cust_id' > > > let $Temp_String_10 = 'and C.setid = B.setid' > > > let $Temp_String_11 = 'and C.micr_id = B.micr_id' > > > string 'and C.effdt <= ''' $AsOfToday ''')' > > > by '' into $Temp_String_12 > > > string 'and B.setid = ''SHARE'')' > > > by '' into $Temp_String_13 > > > > > > string $Temp_String_1 $Temp_String_2 $Temp_String_3 $Temp_String_4 > > > $Temp_String_5 $Temp_String_6 $Temp_String_7 $Temp_String_8 > > > $Temp_String_9 $Temp_String_10 $Temp_String_11 $Temp_String_12 > > > $Temp_String_13 > > > by ' ' into $Dynamic_Request_Where > > > > > > show '$Temp_String_1 ' $Temp_String_1 > > > show '$Temp_String_2 ' $Temp_String_2 > > > show '$Temp_String_3 ' $Temp_String_3 > > > show '$Temp_String_4 ' $Temp_String_4 > > > show '$Temp_String_5 ' $Temp_String_5 > > > show '$Temp_String_6 ' $Temp_String_6 > > > show '$Temp_String_7 ' $Temp_String_7 > > > show '$Temp_String_8 ' $Temp_String_8 > > > show '$Temp_String_9 ' $Temp_String_9 > > > show '$Temp_String_10 ' $Temp_String_10 > > > show '$Temp_String_11 ' $Temp_String_11 > > > show '$Temp_String_12 ' $Temp_String_12 > > > show '$Temp_String_13 ' $Temp_String_13 > > > show 'Before MICR ' $MICR > > > > > > begin-select on-error=SQL-Error > > > A.business_unit &A.business_unit, > > > let $CustBU = &A.business_unit > > > show 'A.business_unit ' &A.business_unit > > > let $Return = 'Y' > > > show ' $Return inner ' $Return > > > show 'inner $MICR ' $MICR > > > from ps_cust_data A, ps_item I > > > where [$Dynamic_Request_Where] > > > end-select > > > > > > P.S. I included the dynamic variable in an attempt to get the value > > > retiurned thinking that may have been my problem. > > > > > > Thanks, > > > > > > Joey > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > This e-mail and any attachment is for authorised use by the intended > > recipient(s) only. It may contain proprietary material, confidential > > information and/or be subject to legal privilege. It should not be copied, > > disclosed to, retained or used by, any other party. If you are not an > > intended recipient then please promptly delete this e-mail and any > > attachment and all copies and inform the sender. Thank you. > > > > > > > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > -- > > Joey Ramion > > joey.ramion@gmail.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 > > > > > -- > Joey Ramion > joey.ramion@gmail.com > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > -- Joey Ramion joey.ramion@gmail.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 Nov 10 20:40:46 2004 From: "Peter Burton" Date: Wed, 10 Nov 2004 20:36:54 -0500 Subject: RE: [sqr-users] sqr select variable problem Joey, What version of SQR are you running (show $SQR-VER)? What version of the client software? What version of the server software? 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 Joey Ramion Sent: Wednesday, November 10, 2004 8:25 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: Re: [sqr-users] sqr select variable problem Peter, I had not, bad of me, but upon rerun it is showing correct and with $MICR and date value showing correctly. for instance here is my first row selection, which in sql plus returns a value: A.item =3D I.item and A.cust_id =3D I.cust_id and I.item_line =3D 1 and A.cust_id =3D (select B.remit_from_cust_id from ps_cust_micr_tbl B where B.micr_id =3D '1119096344759630163' and B.EFFDT =3D (select MAX (C.Effdt) from ps_cust_micr_tbl C where C.remit_from_cust_id =3D B.remit_from_cust_id and C.setid =3D B.setid and C.micr_id =3D B.micr_id and C.effdt <=3D '2004-11-10') and B.setid =3D 'SHARE') I'm beginning to think this is some sort of weird DB2 problem as Oracle has no problems at all with this type of sqr. Thanks, joey On Wed, 10 Nov 2004 20:03:04 -0500, Peter Burton wrote: > Joey, >=20 > Did you "Show" the contents of $Dynamic_Request_Where to verify that it i= s correctly built? >=20 > Peter >=20 >=20 >=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 Joey Ramion > Sent: Wednesday, November 10, 2004 7:04 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] sqr select variable problem >=20 > Hello all, >=20 > I have created what appears to be a very simple select statement in > sqr that returns only one value when run in sql plus on db2 however > when I run in sqr I cannot get it to populate my variable $CustBU when > I include all of the subselects. Please help!!!! >=20 > let $Temp_String_1 =3D 'A.item =3D I.item' > let $Temp_String_2 =3D 'and A.cust_id =3D I.cust_id' > string 'and I.item_line =3D ' 1 '' > by '' into $Temp_String_3 > let $Temp_String_4 =3D 'and A.cust_id =3D (select B.remit_from_cu= st_id' > let $Temp_String_5 =3D 'from ps_cust_micr_tbl B' > string 'where B.micr_id =3D ''' $MICR '''' > by '' into $Temp_String_6 > let $Temp_String_7 =3D 'and B.EFFDT =3D (select MAX (C.Effdt)' > let $Temp_String_8 =3D 'from ps_cust_micr_tbl C' > let $Temp_String_9 =3D 'where C.remit_from_cust_id =3D B.remit_fr= om_cust_id' > let $Temp_String_10 =3D 'and C.setid =3D B.setid' > let $Temp_String_11 =3D 'and C.micr_id =3D B.micr_id' > string 'and C.effdt <=3D ''' $AsOfToday ''')' > by '' into $Temp_String_12 > string 'and B.setid =3D ''SHARE'')' > by '' into $Temp_String_13 >=20 > string $Temp_String_1 $Temp_String_2 $Temp_String_3 $Temp_String_4 > $Temp_String_5 $Temp_String_6 $Temp_String_7 $Temp_String_8 > $Temp_String_9 $Temp_String_10 $Temp_String_11 $Temp_String_12 > $Temp_String_13 > by ' ' into $Dynamic_Request_Where >=20 > show '$Temp_String_1 ' $Temp_String_1 > show '$Temp_String_2 ' $Temp_String_2 > show '$Temp_String_3 ' $Temp_String_3 > show '$Temp_String_4 ' $Temp_String_4 > show '$Temp_String_5 ' $Temp_String_5 > show '$Temp_String_6 ' $Temp_String_6 > show '$Temp_String_7 ' $Temp_String_7 > show '$Temp_String_8 ' $Temp_String_8 > show '$Temp_String_9 ' $Temp_String_9 > show '$Temp_String_10 ' $Temp_String_10 > show '$Temp_String_11 ' $Temp_String_11 > show '$Temp_String_12 ' $Temp_String_12 > show '$Temp_String_13 ' $Temp_String_13 > show 'Before MICR ' $MICR >=20 > begin-select on-error=3DSQL-Error > A.business_unit &A.business_unit, > let $CustBU =3D &A.business_unit > show 'A.business_unit ' &A.business_unit > let $Return =3D 'Y' > show ' $Return inner ' $Return > show 'inner $MICR ' $MICR > from ps_cust_data A, ps_item I > where [$Dynamic_Request_Where] > end-select >=20 > P.S. I included the dynamic variable in an attempt to get the value > retiurned thinking that may have been my problem. >=20 > Thanks, >=20 > Joey >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 >=20 > ************************************************************************ >=20 > If you have received this e-mail in error, please delete it and notify th= e sender as soon as possible. The contents of this e-mail may be confidenti= al and the unauthorized use, copying, or dissemination of it and any attach= ments to it, is prohibited. >=20 > Internet communications are not secure and Hyperion does not, therefore, = accept legal responsibility for the contents of this message nor for any da= mage caused by viruses. The views expressed here do not necessarily repres= ent those of Hyperion. >=20 > For more information about Hyperion, please visit our Web site at www.hyp= erion.com >=20 >=20 >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 --=20 Joey Ramion joey.ramion@gmail.com _______________________________________________ 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 Wed Nov 10 20:45:28 2004 From: "Manakotte, Krishnadas" Subject: RE: [sqr-users] sqr select variable problem Date: Thu, 11 Nov 2004 12:42:15 +1100 Ver 8.2 -----Original Message----- From: Peter Burton [mailto:Peter_Burton@hyperion.com] Sent: Thursday, 11 November 2004 12:37 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] sqr select variable problem Joey, What version of SQR are you running (show $SQR-VER)? What version of the client software? What version of the server software? Peter -----Original Message----- From: sqr-users-bounces+peter_burton=hyperion.com@sqrug.org [mailto:sqr-users-bounces+peter_burton=hyperion.com@sqrug.org]On Behalf Of Joey Ramion Sent: Wednesday, November 10, 2004 8:25 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: Re: [sqr-users] sqr select variable problem Peter, I had not, bad of me, but upon rerun it is showing correct and with $MICR and date value showing correctly. for instance here is my first row selection, which in sql plus returns a value: A.item = I.item and A.cust_id = I.cust_id and I.item_line = 1 and A.cust_id = (select B.remit_from_cust_id from ps_cust_micr_tbl B where B.micr_id = '1119096344759630163' and B.EFFDT = (select MAX (C.Effdt) from ps_cust_micr_tbl C where C.remit_from_cust_id = B.remit_from_cust_id and C.setid = B.setid and C.micr_id = B.micr_id and C.effdt <= '2004-11-10') and B.setid = 'SHARE') I'm beginning to think this is some sort of weird DB2 problem as Oracle has no problems at all with this type of sqr. Thanks, joey On Wed, 10 Nov 2004 20:03:04 -0500, Peter Burton wrote: > Joey, > > Did you "Show" the contents of $Dynamic_Request_Where to verify that it is correctly built? > > Peter > > > > -----Original Message----- > From: sqr-users-bounces+peter_burton=hyperion.com@sqrug.org > [mailto:sqr-users-bounces+peter_burton=hyperion.com@sqrug.org]On Behalf > Of Joey Ramion > Sent: Wednesday, November 10, 2004 7:04 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] sqr select variable problem > > Hello all, > > I have created what appears to be a very simple select statement in > sqr that returns only one value when run in sql plus on db2 however > when I run in sqr I cannot get it to populate my variable $CustBU when > I include all of the subselects. Please help!!!! > > let $Temp_String_1 = 'A.item = I.item' > let $Temp_String_2 = 'and A.cust_id = I.cust_id' > string 'and I.item_line = ' 1 '' > by '' into $Temp_String_3 > let $Temp_String_4 = 'and A.cust_id = (select B.remit_from_cust_id' > let $Temp_String_5 = 'from ps_cust_micr_tbl B' > string 'where B.micr_id = ''' $MICR '''' > by '' into $Temp_String_6 > let $Temp_String_7 = 'and B.EFFDT = (select MAX (C.Effdt)' > let $Temp_String_8 = 'from ps_cust_micr_tbl C' > let $Temp_String_9 = 'where C.remit_from_cust_id = B.remit_from_cust_id' > let $Temp_String_10 = 'and C.setid = B.setid' > let $Temp_String_11 = 'and C.micr_id = B.micr_id' > string 'and C.effdt <= ''' $AsOfToday ''')' > by '' into $Temp_String_12 > string 'and B.setid = ''SHARE'')' > by '' into $Temp_String_13 > > string $Temp_String_1 $Temp_String_2 $Temp_String_3 $Temp_String_4 > $Temp_String_5 $Temp_String_6 $Temp_String_7 $Temp_String_8 > $Temp_String_9 $Temp_String_10 $Temp_String_11 $Temp_String_12 > $Temp_String_13 > by ' ' into $Dynamic_Request_Where > > show '$Temp_String_1 ' $Temp_String_1 > show '$Temp_String_2 ' $Temp_String_2 > show '$Temp_String_3 ' $Temp_String_3 > show '$Temp_String_4 ' $Temp_String_4 > show '$Temp_String_5 ' $Temp_String_5 > show '$Temp_String_6 ' $Temp_String_6 > show '$Temp_String_7 ' $Temp_String_7 > show '$Temp_String_8 ' $Temp_String_8 > show '$Temp_String_9 ' $Temp_String_9 > show '$Temp_String_10 ' $Temp_String_10 > show '$Temp_String_11 ' $Temp_String_11 > show '$Temp_String_12 ' $Temp_String_12 > show '$Temp_String_13 ' $Temp_String_13 > show 'Before MICR ' $MICR > > begin-select on-error=SQL-Error > A.business_unit &A.business_unit, > let $CustBU = &A.business_unit > show 'A.business_unit ' &A.business_unit > let $Return = 'Y' > show ' $Return inner ' $Return > show 'inner $MICR ' $MICR > from ps_cust_data A, ps_item I > where [$Dynamic_Request_Where] > end-select > > P.S. I included the dynamic variable in an attempt to get the value > retiurned thinking that may have been my problem. > > Thanks, > > Joey > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > ************************************************************************ > > If you have received this e-mail in error, please delete it and notify the sender as soon as possible. The contents of this e-mail may be confidential and the unauthorized use, copying, or dissemination of it and any attachments to it, is prohibited. > > Internet communications are not secure and Hyperion does not, therefore, accept legal responsibility for the contents of this message nor for any damage caused by viruses. The views expressed here do not necessarily represent those of Hyperion. > > For more information about Hyperion, please visit our Web site at www.hyperion.com > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > -- Joey Ramion joey.ramion@gmail.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ************************************************************************ If you have received this e-mail in error, please delete it and notify the sender as soon as possible. The contents of this e-mail may be confidential and the unauthorized use, copying, or dissemination of it and any attachments to it, is prohibited. Internet communications are not secure and Hyperion does not, therefore, accept legal responsibility for the contents of this message nor for any damage caused by viruses. The views expressed here do not necessarily represent those of Hyperion. For more information about Hyperion, please visit our Web site at www.hyperion.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. 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 Nov 11 08:49:53 2004 Subject: RE: [sqr-users] sqr select variable problem Date: Thu, 11 Nov 2004 08:48:05 -0500 From: "Kaithi, Murali" Hi Joey, Remove , after &A.business_unit in your select statement as you are selecting only one column. I don't know whether it helps you or not. Murali -----Original Message----- From: sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org [mailto:sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org] On Behalf Of Joey Ramion Sent: Wednesday, November 10, 2004 7:24 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] sqr select variable problem Sure and thanks in advance for looking. This sql works no problem in sql plus but I cannot get it to return a variable in the sqr. begin-select on-error=3DSQL-Error A.business_unit &A.business_unit, let $CustBU =3D &A.business_unit show 'A.business_unit ' &A.business_unit let $Return =3D 'Y' show ' $Return inner ' $Return show 'inner $MICR ' $MICR from ps_cust_data A, ps_item I where A.item =3D I.item and A.cust_id =3D I.cust_id and I.item_line =3D 1 and A.cust_id =3D (select B.remit_from_cust_id from ps_cust_micr_tbl B where B.micr_id =3D $MICR and B.EFFDT =3D (select MAX (C.Effdt) =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 from ps_cust_micr_tbl C where C.remit_from_cust_id =3D B.remit_from_cust_id and C.setid =3D B.setid and C.micr_id =3D B.micr_id and C.effdt <=3D $AsOfToday) and B.setid =3D 'SHARE') end-select The $MICR and $AsOfToday are both populated correctly before the start of the Select. Thanks! On Wed, 10 Nov 2004 18:15:12 -0600, James Womeldorf wrote: > It is a bit late in the day here and I find this pretty confusing (but > EVERYTHING is confusing now :). > Do you have a copy of this where you do not use the dynamic sql? > Jim >=20 >=20 >=20 > -----Original Message----- > From: sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org > [mailto:sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org]On Behalf Of > Joey Ramion > Sent: Wednesday, November 10, 2004 6:04 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] sqr select variable problem >=20 > Hello all, >=20 > I have created what appears to be a very simple select statement in=20 > sqr that returns only one value when run in sql plus on db2 however=20 > when I run in sqr I cannot get it to populate my variable $CustBU when > I include all of the subselects. Please help!!!! >=20 > let $Temp_String_1 =3D 'A.item =3D I.item' > let $Temp_String_2 =3D 'and A.cust_id =3D I.cust_id' > string 'and I.item_line =3D ' 1 '' > by '' into $Temp_String_3 > let $Temp_String_4 =3D 'and A.cust_id =3D (select B.remit_from_cust_id' > let $Temp_String_5 =3D 'from ps_cust_micr_tbl B' > string 'where B.micr_id =3D ''' $MICR '''' > by '' into $Temp_String_6 > let $Temp_String_7 =3D 'and B.EFFDT =3D (select MAX (C.Effdt)' > let $Temp_String_8 =3D 'from ps_cust_micr_tbl C' > let $Temp_String_9 =3D 'where C.remit_from_cust_id =3D=20 > B.remit_from_cust_id' > let $Temp_String_10 =3D 'and C.setid =3D B.setid' > let $Temp_String_11 =3D 'and C.micr_id =3D B.micr_id' > string 'and C.effdt <=3D ''' $AsOfToday ''')' > by '' into $Temp_String_12 > string 'and B.setid =3D ''SHARE'')' > by '' into $Temp_String_13 >=20 > string $Temp_String_1 $Temp_String_2 $Temp_String_3 $Temp_String_4 > $Temp_String_5 $Temp_String_6 $Temp_String_7 $Temp_String_8 > $Temp_String_9 $Temp_String_10 $Temp_String_11 $Temp_String_12 > $Temp_String_13 > by ' ' into $Dynamic_Request_Where >=20 > show '$Temp_String_1 ' $Temp_String_1 > show '$Temp_String_2 ' $Temp_String_2 > show '$Temp_String_3 ' $Temp_String_3 > show '$Temp_String_4 ' $Temp_String_4 > show '$Temp_String_5 ' $Temp_String_5 > show '$Temp_String_6 ' $Temp_String_6 > show '$Temp_String_7 ' $Temp_String_7 > show '$Temp_String_8 ' $Temp_String_8 > show '$Temp_String_9 ' $Temp_String_9 > show '$Temp_String_10 ' $Temp_String_10 show '$Temp_String_11 '=20 > $Temp_String_11 show '$Temp_String_12 ' $Temp_String_12 show=20 > '$Temp_String_13 ' $Temp_String_13 show 'Before MICR ' $MICR >=20 > begin-select on-error=3DSQL-Error > A.business_unit &A.business_unit, > let $CustBU =3D &A.business_unit > show 'A.business_unit ' &A.business_unit > let $Return =3D 'Y' > show ' $Return inner ' $Return > show 'inner $MICR ' $MICR > from ps_cust_data A, ps_item I > where [$Dynamic_Request_Where] end-select >=20 > P.S. I included the dynamic variable in an attempt to get the value=20 > retiurned thinking that may have been my problem. >=20 > Thanks, >=20 > Joey >=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 -- Joey Ramion joey.ramion@gmail.com _______________________________________________ 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 Thu Nov 11 09:39:31 2004 From: Bob Stone Subject: RE: [sqr-users] sqr select variable problem Date: Thu, 11 Nov 2004 08:37:57 -0600 Uh, isn't the SQL supposed to not be indented? SQL flush to the left side. Your 'FROM' and 'WHERE' look to be double indented...i dont know if that's email formatting...but maybe try that. And, i dont think making your SQL dynamic would help at all. It only makes it more confusing when you send it to us. I think you'd be better off writing: BEGIN-SELECT on-error=SQL-Error A.business_unit &A.business_unit, let $CustBU = &A.business_unit show 'A.business_unit ' &A.business_unit FROM ps_cust_data A, ps_item I WHERE A.item = I.item AND A.cust_id = I.cust_id AND I.item_line = 1 AND A.cust_id = (select B.remit_from_cust_id from ps_cust_micr_tbl B where B.micr_id = $MICR and B.EFFDT = ( select MAX (C.Effdt) from ps_cust_micr_tbl C where C.remit_from_cust_id = B.remit_from_cust_id and C.setid = B.setid and C.micr_id = B.micr_id and C.effdt <= $AsOfToday) and B.setid = 'SHARE') END-SELECT **NOTE - subselects can be not against the left. but your main select should be hugging the wall there. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Joey Ramion Sent: Wednesday, November 10, 2004 6:04 PM To: sqr-users@sqrug.org Subject: [sqr-users] sqr select variable problem Hello all, I have created what appears to be a very simple select statement in sqr that returns only one value when run in sql plus on db2 however when I run in sqr I cannot get it to populate my variable $CustBU when I include all of the subselects. Please help!!!! let $Temp_String_1 = 'A.item = I.item' let $Temp_String_2 = 'and A.cust_id = I.cust_id' string 'and I.item_line = ' 1 '' by '' into $Temp_String_3 let $Temp_String_4 = 'and A.cust_id = (select B.remit_from_cust_id' let $Temp_String_5 = 'from ps_cust_micr_tbl B' string 'where B.micr_id = ''' $MICR '''' by '' into $Temp_String_6 let $Temp_String_7 = 'and B.EFFDT = (select MAX (C.Effdt)' let $Temp_String_8 = 'from ps_cust_micr_tbl C' let $Temp_String_9 = 'where C.remit_from_cust_id = B.remit_from_cust_id' let $Temp_String_10 = 'and C.setid = B.setid' let $Temp_String_11 = 'and C.micr_id = B.micr_id' string 'and C.effdt <= ''' $AsOfToday ''')' by '' into $Temp_String_12 string 'and B.setid = ''SHARE'')' by '' into $Temp_String_13 string $Temp_String_1 $Temp_String_2 $Temp_String_3 $Temp_String_4 $Temp_String_5 $Temp_String_6 $Temp_String_7 $Temp_String_8 $Temp_String_9 $Temp_String_10 $Temp_String_11 $Temp_String_12 $Temp_String_13 by ' ' into $Dynamic_Request_Where show '$Temp_String_1 ' $Temp_String_1 show '$Temp_String_2 ' $Temp_String_2 show '$Temp_String_3 ' $Temp_String_3 show '$Temp_String_4 ' $Temp_String_4 show '$Temp_String_5 ' $Temp_String_5 show '$Temp_String_6 ' $Temp_String_6 show '$Temp_String_7 ' $Temp_String_7 show '$Temp_String_8 ' $Temp_String_8 show '$Temp_String_9 ' $Temp_String_9 show '$Temp_String_10 ' $Temp_String_10 show '$Temp_String_11 ' $Temp_String_11 show '$Temp_String_12 ' $Temp_String_12 show '$Temp_String_13 ' $Temp_String_13 show 'Before MICR ' $MICR begin-select on-error=SQL-Error A.business_unit &A.business_unit, let $CustBU = &A.business_unit show 'A.business_unit ' &A.business_unit let $Return = 'Y' show ' $Return inner ' $Return show 'inner $MICR ' $MICR from ps_cust_data A, ps_item I where [$Dynamic_Request_Where] end-select P.S. I included the dynamic variable in an attempt to get the value retiurned thinking that may have been my problem. Thanks, Joey _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 11 09:50:19 2004 Date: Thu, 11 Nov 2004 08:47:41 -0600 From: Joey Ramion Subject: Re: [sqr-users] sqr select variable problem Bob, Hey and thanks. The variable was added after I had first tried withouta variable and with all of the sql flush. I am going to play with the spacing some more but I am starting to think this is a DB2 issue. Thanks for the advice. Joey On Thu, 11 Nov 2004 08:37:57 -0600, Bob Stone wrote: > Uh, isn't the SQL supposed to not be indented? SQL flush to the left side. > Your 'FROM' and 'WHERE' look to be double indented...i dont know if that's > email formatting...but maybe try that. > > And, i dont think making your SQL dynamic would help at all. It only makes > it more confusing when you send it to us. I think you'd be better off > writing: > > BEGIN-SELECT on-error=SQL-Error > A.business_unit &A.business_unit, > let $CustBU = &A.business_unit > show 'A.business_unit ' &A.business_unit > FROM ps_cust_data A, ps_item I > WHERE A.item = I.item > AND A.cust_id = I.cust_id > AND I.item_line = 1 > AND A.cust_id = (select B.remit_from_cust_id from ps_cust_micr_tbl B > > > where B.micr_id = $MICR > and B.EFFDT = ( select MAX (C.Effdt) from ps_cust_micr_tbl > C > where C.remit_from_cust_id = > B.remit_from_cust_id > and C.setid = B.setid > and C.micr_id = B.micr_id > and C.effdt <= $AsOfToday) > and B.setid = 'SHARE') > END-SELECT > > **NOTE - subselects can be not against the left. but your main select > should be hugging the wall there. > > > > > -----Original Message----- > From: sqr-users-bounces+bstone=fastenal.com@sqrug.org > [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of > Joey Ramion > Sent: Wednesday, November 10, 2004 6:04 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] sqr select variable problem > > Hello all, > > I have created what appears to be a very simple select statement in > sqr that returns only one value when run in sql plus on db2 however > when I run in sqr I cannot get it to populate my variable $CustBU when > I include all of the subselects. Please help!!!! > > let $Temp_String_1 = 'A.item = I.item' > let $Temp_String_2 = 'and A.cust_id = I.cust_id' > string 'and I.item_line = ' 1 '' > by '' into $Temp_String_3 > let $Temp_String_4 = 'and A.cust_id = (select B.remit_from_cust_id' > let $Temp_String_5 = 'from ps_cust_micr_tbl B' > string 'where B.micr_id = ''' $MICR '''' > by '' into $Temp_String_6 > let $Temp_String_7 = 'and B.EFFDT = (select MAX (C.Effdt)' > let $Temp_String_8 = 'from ps_cust_micr_tbl C' > let $Temp_String_9 = 'where C.remit_from_cust_id = > B.remit_from_cust_id' > let $Temp_String_10 = 'and C.setid = B.setid' > let $Temp_String_11 = 'and C.micr_id = B.micr_id' > string 'and C.effdt <= ''' $AsOfToday ''')' > by '' into $Temp_String_12 > string 'and B.setid = ''SHARE'')' > by '' into $Temp_String_13 > > string $Temp_String_1 $Temp_String_2 $Temp_String_3 $Temp_String_4 > $Temp_String_5 $Temp_String_6 $Temp_String_7 $Temp_String_8 > $Temp_String_9 $Temp_String_10 $Temp_String_11 $Temp_String_12 > $Temp_String_13 > by ' ' into $Dynamic_Request_Where > > show '$Temp_String_1 ' $Temp_String_1 > show '$Temp_String_2 ' $Temp_String_2 > show '$Temp_String_3 ' $Temp_String_3 > show '$Temp_String_4 ' $Temp_String_4 > show '$Temp_String_5 ' $Temp_String_5 > show '$Temp_String_6 ' $Temp_String_6 > show '$Temp_String_7 ' $Temp_String_7 > show '$Temp_String_8 ' $Temp_String_8 > show '$Temp_String_9 ' $Temp_String_9 > show '$Temp_String_10 ' $Temp_String_10 > show '$Temp_String_11 ' $Temp_String_11 > show '$Temp_String_12 ' $Temp_String_12 > show '$Temp_String_13 ' $Temp_String_13 > show 'Before MICR ' $MICR > > begin-select on-error=SQL-Error > A.business_unit &A.business_unit, > let $CustBU = &A.business_unit > show 'A.business_unit ' &A.business_unit > let $Return = 'Y' > show ' $Return inner ' $Return > show 'inner $MICR ' $MICR > from ps_cust_data A, ps_item I > where [$Dynamic_Request_Where] > end-select > > P.S. I included the dynamic variable in an attempt to get the value > retiurned thinking that may have been my problem. > > Thanks, > > Joey > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > -- Joey Ramion joey.ramion@gmail.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 Nov 11 09:53:46 2004 Date: Thu, 11 Nov 2004 08:48:23 -0600 From: Joey Ramion Subject: Re: [sqr-users] sqr select variable problem Hi Murali, I have tried the SQL with and without the & variable and neither works correctly. Thanks, joey On Thu, 11 Nov 2004 08:48:05 -0500, Kaithi, Murali wrote: > Hi Joey, > Remove , after &A.business_unit in your select statement as you are > selecting only one column. I don't know whether it helps you or not. > > Murali > > > > -----Original Message----- > From: sqr-users-bounces+murali.kaithi=spencergifts.com@sqrug.org > [mailto:sqr-users-bounces+murali.kaithi=spencergifts.com@sqrug.org] On > Behalf Of Joey Ramion > Sent: Wednesday, November 10, 2004 7:24 PM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: Re: [sqr-users] sqr select variable problem > > Sure and thanks in advance for looking. This sql works no problem in sql > plus but I cannot get it to return a variable in the sqr. > > begin-select on-error=SQL-Error > A.business_unit &A.business_unit, > let $CustBU = &A.business_unit > show 'A.business_unit ' &A.business_unit > let $Return = 'Y' > show ' $Return inner ' $Return > show 'inner $MICR ' $MICR > from ps_cust_data A, ps_item I > where A.item = I.item > and A.cust_id = I.cust_id > and I.item_line = 1 > and A.cust_id = (select B.remit_from_cust_id > from ps_cust_micr_tbl B > where B.micr_id = $MICR > > > and B.EFFDT = (select MAX > (C.Effdt) > > from ps_cust_micr_tbl C > where > C.remit_from_cust_id = B.remit_from_cust_id > and C.setid = > B.setid > and C.micr_id = > B.micr_id > and C.effdt <= > $AsOfToday) > and B.setid = 'SHARE') > end-select > > The $MICR and $AsOfToday are both populated correctly before the start > of the Select. > > Thanks! > > > On Wed, 10 Nov 2004 18:15:12 -0600, James Womeldorf > > > wrote: > > It is a bit late in the day here and I find this pretty confusing (but > > > EVERYTHING is confusing now :). > > Do you have a copy of this where you do not use the dynamic sql? > > Jim > > > > > > > > -----Original Message----- > > From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org > > [mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of > > > Joey Ramion > > Sent: Wednesday, November 10, 2004 6:04 PM > > To: sqr-users@sqrug.org > > Subject: [sqr-users] sqr select variable problem > > > > Hello all, > > > > I have created what appears to be a very simple select statement in > > sqr that returns only one value when run in sql plus on db2 however > > when I run in sqr I cannot get it to populate my variable $CustBU when > > > I include all of the subselects. Please help!!!! > > > > let $Temp_String_1 = 'A.item = I.item' > > let $Temp_String_2 = 'and A.cust_id = I.cust_id' > > string 'and I.item_line = ' 1 '' > > by '' into $Temp_String_3 > > let $Temp_String_4 = 'and A.cust_id = (select > B.remit_from_cust_id' > > let $Temp_String_5 = 'from ps_cust_micr_tbl B' > > string 'where B.micr_id = ''' $MICR '''' > > by '' into $Temp_String_6 > > let $Temp_String_7 = 'and B.EFFDT = (select MAX (C.Effdt)' > > let $Temp_String_8 = 'from ps_cust_micr_tbl C' > > let $Temp_String_9 = 'where C.remit_from_cust_id = > > B.remit_from_cust_id' > > let $Temp_String_10 = 'and C.setid = B.setid' > > let $Temp_String_11 = 'and C.micr_id = B.micr_id' > > string 'and C.effdt <= ''' $AsOfToday ''')' > > by '' into $Temp_String_12 > > string 'and B.setid = ''SHARE'')' > > by '' into $Temp_String_13 > > > > string $Temp_String_1 $Temp_String_2 $Temp_String_3 $Temp_String_4 > > $Temp_String_5 $Temp_String_6 $Temp_String_7 $Temp_String_8 > > $Temp_String_9 $Temp_String_10 $Temp_String_11 $Temp_String_12 > > $Temp_String_13 > > by ' ' into $Dynamic_Request_Where > > > > show '$Temp_String_1 ' $Temp_String_1 > > show '$Temp_String_2 ' $Temp_String_2 > > show '$Temp_String_3 ' $Temp_String_3 > > show '$Temp_String_4 ' $Temp_String_4 > > show '$Temp_String_5 ' $Temp_String_5 > > show '$Temp_String_6 ' $Temp_String_6 > > show '$Temp_String_7 ' $Temp_String_7 > > show '$Temp_String_8 ' $Temp_String_8 > > show '$Temp_String_9 ' $Temp_String_9 > > show '$Temp_String_10 ' $Temp_String_10 show '$Temp_String_11 ' > > $Temp_String_11 show '$Temp_String_12 ' $Temp_String_12 show > > '$Temp_String_13 ' $Temp_String_13 show 'Before MICR ' $MICR > > > > begin-select on-error=SQL-Error > > A.business_unit &A.business_unit, > > let $CustBU = &A.business_unit > > show 'A.business_unit ' &A.business_unit > > let $Return = 'Y' > > show ' $Return inner ' $Return > > show 'inner $MICR ' $MICR > > from ps_cust_data A, ps_item I > > where [$Dynamic_Request_Where] end-select > > > > P.S. I included the dynamic variable in an attempt to get the value > > retiurned thinking that may have been my problem. > > > > Thanks, > > > > Joey > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > -- > Joey Ramion > joey.ramion@gmail.com > > _______________________________________________ > 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 > -- Joey Ramion joey.ramion@gmail.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 Nov 11 10:02:54 2004 Date: Thu, 11 Nov 2004 09:59:01 -0500 From: "Jamie Harris" Subject: Re: [sqr-users] sqr select variable problem Joey, Murali meant to remove the comma, since you are only selecting one field fr= om that table.=20=20 begin-select on-error=3DSQL-Error A.business_unit &A.business_unit, let $CustBU =3D &A.business_unit :) ----------------------------------------------------- James Harris Junior Systems Programmer/Analyst Information Technology Division Frederick Community College ----------------------------------------------------- >>> joey.ramion@gmail.com 11/11/2004 9:48:23 AM >>> Hi Murali, I have tried the SQL with and without the & variable and neither works correctly. Thanks, joey On Thu, 11 Nov 2004 08:48:05 -0500, Kaithi, Murali wrote: > Hi Joey, > Remove , after &A.business_unit in your select statement as you are > selecting only one column. I don't know whether it helps you or not. >=20 > Murali >=20 >=20 >=20 > -----Original Message----- > From: sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org=20 > [mailto:sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org] On > Behalf Of Joey Ramion > Sent: Wednesday, November 10, 2004 7:24 PM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: Re: [sqr-users] sqr select variable problem >=20 > Sure and thanks in advance for looking. This sql works no problem in sql > plus but I cannot get it to return a variable in the sqr. >=20 > begin-select on-error=3DSQL-Error > A.business_unit &A.business_unit, > let $CustBU =3D &A.business_unit > show 'A.business_unit ' &A.business_unit > let $Return =3D 'Y' > show ' $Return inner ' $Return > show 'inner $MICR ' $MICR > from ps_cust_data A, ps_item I > where A.item =3D I.item > and A.cust_id =3D I.cust_id > and I.item_line =3D 1 > and A.cust_id =3D (select B.remit_from_cust_id > from ps_cust_micr_tbl B > where B.micr_id =3D $MICR >=20 >=20 > and B.EFFDT =3D (select MAX > (C.Effdt) >=20 > from ps_cust_micr_tbl C > where > C.remit_from_cust_id =3D B.remit_from_cust_id > and C.setid =3D > B.setid > and C.micr_id =3D > B.micr_id > and C.effdt <=3D > $AsOfToday) > and B.setid =3D 'SHARE') > end-select >=20 > The $MICR and $AsOfToday are both populated correctly before the start > of the Select. >=20 > Thanks! >=20 >=20 > On Wed, 10 Nov 2004 18:15:12 -0600, James Womeldorf >=20 >=20 > wrote: > > It is a bit late in the day here and I find this pretty confusing (but >=20 > > EVERYTHING is confusing now :). > > Do you have a copy of this where you do not use the dynamic sql? > > Jim > > > > > > > > -----Original Message----- > > From: sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org=20 > > [mailto:sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org]On Behalf Of >=20 > > Joey Ramion > > Sent: Wednesday, November 10, 2004 6:04 PM > > To: sqr-users@sqrug.org=20 > > Subject: [sqr-users] sqr select variable problem > > > > Hello all, > > > > I have created what appears to be a very simple select statement in > > sqr that returns only one value when run in sql plus on db2 however > > when I run in sqr I cannot get it to populate my variable $CustBU when >=20 > > I include all of the subselects. Please help!!!! > > > > let $Temp_String_1 =3D 'A.item =3D I.item' > > let $Temp_String_2 =3D 'and A.cust_id =3D I.cust_id' > > string 'and I.item_line =3D ' 1 '' > > by '' into $Temp_String_3 > > let $Temp_String_4 =3D 'and A.cust_id =3D (select > B.remit_from_cust_id' > > let $Temp_String_5 =3D 'from ps_cust_micr_tbl B' > > string 'where B.micr_id =3D ''' $MICR '''' > > by '' into $Temp_String_6 > > let $Temp_String_7 =3D 'and B.EFFDT =3D (select MAX (C.Effdt)' > > let $Temp_String_8 =3D 'from ps_cust_micr_tbl C' > > let $Temp_String_9 =3D 'where C.remit_from_cust_id =3D > > B.remit_from_cust_id' > > let $Temp_String_10 =3D 'and C.setid =3D B.setid' > > let $Temp_String_11 =3D 'and C.micr_id =3D B.micr_id' > > string 'and C.effdt <=3D ''' $AsOfToday ''')' > > by '' into $Temp_String_12 > > string 'and B.setid =3D ''SHARE'')' > > by '' into $Temp_String_13 > > > > string $Temp_String_1 $Temp_String_2 $Temp_String_3 $Temp_String_4 > > $Temp_String_5 $Temp_String_6 $Temp_String_7 $Temp_String_8 > > $Temp_String_9 $Temp_String_10 $Temp_String_11 $Temp_String_12 > > $Temp_String_13 > > by ' ' into $Dynamic_Request_Where > > > > show '$Temp_String_1 ' $Temp_String_1 > > show '$Temp_String_2 ' $Temp_String_2 > > show '$Temp_String_3 ' $Temp_String_3 > > show '$Temp_String_4 ' $Temp_String_4 > > show '$Temp_String_5 ' $Temp_String_5 > > show '$Temp_String_6 ' $Temp_String_6 > > show '$Temp_String_7 ' $Temp_String_7 > > show '$Temp_String_8 ' $Temp_String_8 > > show '$Temp_String_9 ' $Temp_String_9 > > show '$Temp_String_10 ' $Temp_String_10 show '$Temp_String_11 ' > > $Temp_String_11 show '$Temp_String_12 ' $Temp_String_12 show > > '$Temp_String_13 ' $Temp_String_13 show 'Before MICR ' $MICR > > > > begin-select on-error=3DSQL-Error > > A.business_unit &A.business_unit, > > let $CustBU =3D &A.business_unit > > show 'A.business_unit ' &A.business_unit > > let $Return =3D 'Y' > > show ' $Return inner ' $Return > > show 'inner $MICR ' $MICR > > from ps_cust_data A, ps_item I > > where [$Dynamic_Request_Where] end-select > > > > P.S. I included the dynamic variable in an attempt to get the value > > retiurned thinking that may have been my problem. > > > > Thanks, > > > > Joey > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org=20 > > http://www.sqrug.org/mailman/listinfo/sqr-users=20 > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org=20 > > http://www.sqrug.org/mailman/listinfo/sqr-users=20 > > >=20 > -- > Joey Ramion > joey.ramion@gmail.com=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 >=20 > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email=20 > ______________________________________________________________________ >=20 >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 >=20 --=20 Joey Ramion joey.ramion@gmail.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 Nov 11 10:13:36 2004 Subject: RE: [sqr-users] sqr select variable problem Date: Thu, 11 Nov 2004 17:10:58 +0200 From: "R Gumbo" remove the comma at the end of the statement A.business_unit &A.business_unit*,* -----Original Message----- From: Joey Ramion [mailto:joey.ramion@gmail.com] Sent: 11 November 2004 04:48 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] sqr select variable problem Hi Murali, I have tried the SQL with and without the & variable and neither works correctly. Thanks, joey On Thu, 11 Nov 2004 08:48:05 -0500, Kaithi, Murali wrote: > Hi Joey, > Remove , after &A.business_unit in your select statement as you are > selecting only one column. I don't know whether it helps you or not. >=20 > Murali >=20 >=20 >=20 > -----Original Message----- > From: sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org > [mailto:sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org] On > Behalf Of Joey Ramion > Sent: Wednesday, November 10, 2004 7:24 PM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: Re: [sqr-users] sqr select variable problem >=20 > Sure and thanks in advance for looking. This sql works no problem in sql > plus but I cannot get it to return a variable in the sqr. >=20 > begin-select on-error=3DSQL-Error > A.business_unit &A.business_unit, > let $CustBU =3D &A.business_unit > show 'A.business_unit ' &A.business_unit > let $Return =3D 'Y' > show ' $Return inner ' $Return > show 'inner $MICR ' $MICR > from ps_cust_data A, ps_item I > where A.item =3D I.item > and A.cust_id =3D I.cust_id > and I.item_line =3D 1 > and A.cust_id =3D (select B.remit_from_cust_id > from ps_cust_micr_tbl B > where B.micr_id =3D $MICR >=20 >=20 > and B.EFFDT =3D (select MAX > (C.Effdt) >=20 > from ps_cust_micr_tbl C > where > C.remit_from_cust_id =3D B.remit_from_cust_id > and C.setid =3D > B.setid > and C.micr_id =3D > B.micr_id > and C.effdt <=3D > $AsOfToday) > and B.setid =3D 'SHARE') > end-select >=20 > The $MICR and $AsOfToday are both populated correctly before the start > of the Select. >=20 > Thanks! >=20 >=20 > On Wed, 10 Nov 2004 18:15:12 -0600, James Womeldorf >=20 >=20 > wrote: > > It is a bit late in the day here and I find this pretty confusing (but >=20 > > EVERYTHING is confusing now :). > > Do you have a copy of this where you do not use the dynamic sql? > > Jim > > > > > > > > -----Original Message----- > > From: sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org > > [mailto:sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org]On Behalf Of >=20 > > Joey Ramion > > Sent: Wednesday, November 10, 2004 6:04 PM > > To: sqr-users@sqrug.org > > Subject: [sqr-users] sqr select variable problem > > > > Hello all, > > > > I have created what appears to be a very simple select statement in > > sqr that returns only one value when run in sql plus on db2 however > > when I run in sqr I cannot get it to populate my variable $CustBU when >=20 > > I include all of the subselects. Please help!!!! > > > > let $Temp_String_1 =3D 'A.item =3D I.item' > > let $Temp_String_2 =3D 'and A.cust_id =3D I.cust_id' > > string 'and I.item_line =3D ' 1 '' > > by '' into $Temp_String_3 > > let $Temp_String_4 =3D 'and A.cust_id =3D (select > B.remit_from_cust_id' > > let $Temp_String_5 =3D 'from ps_cust_micr_tbl B' > > string 'where B.micr_id =3D ''' $MICR '''' > > by '' into $Temp_String_6 > > let $Temp_String_7 =3D 'and B.EFFDT =3D (select MAX (C.Effdt)' > > let $Temp_String_8 =3D 'from ps_cust_micr_tbl C' > > let $Temp_String_9 =3D 'where C.remit_from_cust_id =3D > > B.remit_from_cust_id' > > let $Temp_String_10 =3D 'and C.setid =3D B.setid' > > let $Temp_String_11 =3D 'and C.micr_id =3D B.micr_id' > > string 'and C.effdt <=3D ''' $AsOfToday ''')' > > by '' into $Temp_String_12 > > string 'and B.setid =3D ''SHARE'')' > > by '' into $Temp_String_13 > > > > string $Temp_String_1 $Temp_String_2 $Temp_String_3 $Temp_String_4 > > $Temp_String_5 $Temp_String_6 $Temp_String_7 $Temp_String_8 > > $Temp_String_9 $Temp_String_10 $Temp_String_11 $Temp_String_12 > > $Temp_String_13 > > by ' ' into $Dynamic_Request_Where > > > > show '$Temp_String_1 ' $Temp_String_1 > > show '$Temp_String_2 ' $Temp_String_2 > > show '$Temp_String_3 ' $Temp_String_3 > > show '$Temp_String_4 ' $Temp_String_4 > > show '$Temp_String_5 ' $Temp_String_5 > > show '$Temp_String_6 ' $Temp_String_6 > > show '$Temp_String_7 ' $Temp_String_7 > > show '$Temp_String_8 ' $Temp_String_8 > > show '$Temp_String_9 ' $Temp_String_9 > > show '$Temp_String_10 ' $Temp_String_10 show '$Temp_String_11 ' > > $Temp_String_11 show '$Temp_String_12 ' $Temp_String_12 show > > '$Temp_String_13 ' $Temp_String_13 show 'Before MICR ' $MICR > > > > begin-select on-error=3DSQL-Error > > A.business_unit &A.business_unit, > > let $CustBU =3D &A.business_unit > > show 'A.business_unit ' &A.business_unit > > let $Return =3D 'Y' > > show ' $Return inner ' $Return > > show 'inner $MICR ' $MICR > > from ps_cust_data A, ps_item I > > where [$Dynamic_Request_Where] end-select > > > > P.S. I included the dynamic variable in an attempt to get the value > > retiurned thinking that may have been my problem. > > > > Thanks, > > > > Joey > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > >=20 > -- > Joey Ramion > joey.ramion@gmail.com >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ >=20 >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 --=20 Joey Ramion joey.ramion@gmail.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 Nov 11 10:38:34 2004 From: "Stuy, H.C." Date: Thu, 11 Nov 2004 16:35:55 +0100 Subject: [sqr-users] single string, multiple unstring Hi, I've a report where users can enter from a purchase order, the received poline number to print a label per poline. This works fine with the below code snippet. I'm trying to make an enhancement: User enters into a prompt, a purchase order line number, and a quantity separated by a slash (ie 1/24) to print on that label The prompt accepts multiple entries, so 1/24, 2/50, 6/100 So the figures after the '/' has to be printed onto the label of that record. I've searched the group, but i'm a probably using the wrong search keys. Please, any suggestions/help would be appreciated a lot!!!! Krgds, Erik SQR/6.1.3/PC/Windows NT 4.0/Oracle 8.0.6/Oct 05 2000/ Maximo 4.1.1 Snippet: Begin-program input $pl 'Enter Material receipts Line number, sep. by comma (max 100;empty is all)' unstring $pl by ',' into $pl1 $pl2 $pl3 $pl4 $pl5 $pl6 $pl7 $pl8 $pl9 $pl10 $pl11 $pl12 $pl13 $pl14 $pl15 $pl16 $pl17 $pl18 $pl19 $pl20 etc let $pl1 = rtrim($pl1,' ') let $pl1 = ltrim($pl1,' ') let $pl1 = '(' || '''' || $pl1 let $pl2 = rtrim($pl2,' ') let $pl2 = ltrim($pl2,' ') let $pl3 = rtrim($pl3,' ') etc let $delimiter = '''' || ',' || '''' String $pl1 $pl2 $pl3 $pl4 $pl5 $pl6 $pl7 $pl8 $pl9 $pl10 $pl11 $pl12 $pl13 $pl14 $pl15 $pl16 $pl17 $pl18 $pl19 Etc by $delimiter into $pl_codes if $pl = '' let $pl_codes = 'm.polinenum' end-if do PO end-program begin-procedure PO begin-select fields from matrectrans m , binnum b where [$where] and m.tobin=b.binno(+) and m.tostoreloc=b.storeroom(+) and m.polinenum = ANY [$pl_codes] end-select end-procedure end snippet _______________________________________________ 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 Nov 11 10:56:47 2004 From: "Murty Mirthipati Venkata Suryanarayan" Date: Thu, 11 Nov 2004 21:29:59 +0530 Subject: RE: [sqr-users] single string, multiple unstring --===============1133946632== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 content-class: urn:content-classes:message SSBzdXBwb3NlIHlvdSBhcmUgbm90IHN1YnN0cmluZ2luZyB0aGUgcG9saW5l bnVtIGludG8gc2VwYXJhdGUgdmFyaWFibGVzIGJlZm9yZSBwYXNzaW5nIGlu dG8gdGhlIGR5biBzdGF0ZW1lbnQuIFdoYXQgZG8geW91IHNheT8/DQogTXVy dHkgOykNCg0KCS0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tIA0KCUZyb206 IFN0dXksIEguQy4gW21haWx0bzpILkMuU3R1eUBib3NrYWxpcy5ubF0gDQoJ U2VudDogVGh1IDExLU5vdi0yMDA0IDEwOjM1IA0KCVRvOiAnc3FyLXVzZXJz QHNxcnVnLm9yZycgDQoJQ2M6IA0KCVN1YmplY3Q6IFtzcXItdXNlcnNdIHNp bmdsZSBzdHJpbmcsIG11bHRpcGxlIHVuc3RyaW5nDQoJDQoJDQoNCglIaSwN CgkNCglJJ3ZlIGEgcmVwb3J0IHdoZXJlIHVzZXJzIGNhbiBlbnRlciBmcm9t IGEgcHVyY2hhc2Ugb3JkZXIsIHRoZSByZWNlaXZlZA0KCXBvbGluZSBudW1i ZXIgdG8gcHJpbnQgYSBsYWJlbCBwZXIgcG9saW5lLg0KCVRoaXMgd29ya3Mg ZmluZSB3aXRoIHRoZSBiZWxvdyBjb2RlIHNuaXBwZXQuDQoJDQoJSSdtIHRy eWluZyB0byBtYWtlIGFuIGVuaGFuY2VtZW50Og0KCQ0KCVVzZXIgZW50ZXJz IGludG8gYSBwcm9tcHQsIGEgcHVyY2hhc2Ugb3JkZXIgbGluZSBudW1iZXIs IGFuZCBhIHF1YW50aXR5DQoJc2VwYXJhdGVkIGJ5IGEgc2xhc2ggKGllIDEv MjQpIHRvIHByaW50IG9uIHRoYXQgbGFiZWwNCglUaGUgcHJvbXB0IGFjY2Vw dHMgbXVsdGlwbGUgZW50cmllcywgc28gMS8yNCwgMi81MCwgNi8xMDANCglT byB0aGUgZmlndXJlcyBhZnRlciB0aGUgJy8nIGhhcyB0byBiZSBwcmludGVk IG9udG8gdGhlIGxhYmVsIG9mIHRoYXQNCglyZWNvcmQuDQoJDQoJSSd2ZSBz ZWFyY2hlZCB0aGUgZ3JvdXAsIGJ1dCBpJ20gYSBwcm9iYWJseSB1c2luZyB0 aGUgd3Jvbmcgc2VhcmNoIGtleXMuDQoJDQoJUGxlYXNlLCBhbnkgc3VnZ2Vz dGlvbnMvaGVscCB3b3VsZCBiZSBhcHByZWNpYXRlZCBhIGxvdCEhISENCgkN CglLcmdkcywNCgkNCglFcmlrDQoJU1FSLzYuMS4zL1BDL1dpbmRvd3MgTlQg NC4wL09yYWNsZSA4LjAuNi9PY3QgMDUgMjAwMC8gTWF4aW1vIDQuMS4xDQoJ DQoJU25pcHBldDoNCgkNCglCZWdpbi1wcm9ncmFtDQoJaW5wdXQgJHBsICdF bnRlciBNYXRlcmlhbCByZWNlaXB0cyBMaW5lIG51bWJlciwgc2VwLiBieSBj b21tYSAobWF4IDEwMDtlbXB0eQ0KCWlzIGFsbCknDQoJDQoJdW5zdHJpbmcg JHBsIGJ5ICcsJyBpbnRvICRwbDEgJHBsMiAkcGwzICRwbDQgJHBsNSAkcGw2 ICRwbDcgJHBsOCAkcGw5ICRwbDEwDQoJJHBsMTEgJHBsMTIgJHBsMTMgJHBs MTQgJHBsMTUgJHBsMTYgJHBsMTcgJHBsMTggJHBsMTkgJHBsMjANCglldGMN CgkNCglsZXQgJHBsMSA9IHJ0cmltKCRwbDEsJyAnKQ0KCWxldCAkcGwxID0g bHRyaW0oJHBsMSwnICcpDQoJbGV0ICRwbDEgPSAnKCcgfHwgJycnJyB8fCAk cGwxDQoJbGV0ICRwbDIgPSBydHJpbSgkcGwyLCcgJykNCglsZXQgJHBsMiA9 IGx0cmltKCRwbDIsJyAnKQ0KCWxldCAkcGwzID0gcnRyaW0oJHBsMywnICcp DQoJZXRjDQoJDQoJDQoJbGV0ICRkZWxpbWl0ZXIgPSAnJycnIHx8ICcsJyB8 fCAnJycnDQoJU3RyaW5nICRwbDEgJHBsMiAkcGwzICRwbDQgJHBsNSAkcGw2 ICRwbDcgJHBsOCAkcGw5ICRwbDEwICRwbDExICRwbDEyICRwbDEzDQoJJHBs MTQgJHBsMTUgJHBsMTYgJHBsMTcgJHBsMTggJHBsMTkNCglFdGMNCglieSAk ZGVsaW1pdGVyIGludG8gJHBsX2NvZGVzDQoJDQoJICAgICAgICBpZiAkcGwg PSAnJw0KCSAgICAgICAgIGxldCAkcGxfY29kZXMgPSAgJ20ucG9saW5lbnVt Jw0KCSAgICAgICAgZW5kLWlmDQoJDQoJIGRvIFBPDQoJZW5kLXByb2dyYW0N CgkNCgliZWdpbi1wcm9jZWR1cmUgUE8NCgliZWdpbi1zZWxlY3QNCglmaWVs ZHMNCgkNCgkNCglmcm9tIG1hdHJlY3RyYW5zIG0gLCBiaW5udW0gYg0KCXdo ZXJlIFskd2hlcmVdDQoJYW5kIG0udG9iaW49Yi5iaW5ubygrKQ0KCWFuZCBt LnRvc3RvcmVsb2M9Yi5zdG9yZXJvb20oKykNCglhbmQgbS5wb2xpbmVudW0g PSBBTlkgWyRwbF9jb2Rlc10NCgllbmQtc2VsZWN0DQoJZW5kLXByb2NlZHVy ZQ0KCQ0KCWVuZCBzbmlwcGV0DQoJDQoJX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18NCglzcXItdXNlcnMgbWFpbGlu ZyBsaXN0DQoJc3FyLXVzZXJzQHNxcnVnLm9yZw0KCWh0dHA6Ly93d3cuc3Fy dWcub3JnL21haWxtYW4vbGlzdGluZm8vc3FyLXVzZXJzDQoJDQoJDQoNCg0K RElTQ0xBSU1FUjoNCkluZm9ybWF0aW9uIGNvbnRhaW5lZCBhbmQgdHJhbnNt aXR0ZWQgYnkgdGhpcyBFLU1BSUwgaXMgcHJvcHJpZXRhcnkgdG8NCkhleGF3 YXJlIFRlY2hub2xvZ2llcyBhbmQgaXMgaW50ZW5kZWQgZm9yIHVzZSBvbmx5 IGJ5IHRoZSBpbmRpdmlkdWFsIG9yDQplbnRpdHkgdG8gd2hpY2ggaXQgaXMg YWRkcmVzc2VkIGFuZCBtYXkgY29udGFpbiBpbmZvcm1hdGlvbiB0aGF0IGlz DQpwcml2aWxlZ2VkLCBjb25maWRlbnRpYWwgb3IgZXhlbXB0IGZyb20gZGlz Y2xvc3VyZSB1bmRlciBhcHBsaWNhYmxlIGxhdy4NCklmIHRoaXMgaXMgYSBm b3J3YXJkZWQgbWVzc2FnZSwgdGhlIGNvbnRlbnQgb2YgdGhpcyBFLU1BSUwg bWF5IG5vdCBoYXZlDQpiZWVuIHNlbnQgd2l0aCB0aGUgYXV0aG9yaXR5IG9m IHRoZSBDb21wYW55LiBJZiB5b3UgYXJlIG5vdCB0aGUgaW50ZW5kZWQNCnJl Y2lwaWVudCwgYW4gYWdlbnQgb2YgdGhlIGludGVuZGVkIHJlY2lwaWVudCBv ciBhIHBlcnNvbiByZXNwb25zaWJsZQ0KZm9yIGRlbGl2ZXJpbmcgdGhlIGlu Zm9ybWF0aW9uIHRvIHRoZSBuYW1lZCByZWNpcGllbnQsIHlvdSBhcmUgbm90 aWZpZWQNCnRoYXQgYW55IHVzZSwgZGlzdHJpYnV0aW9uLCB0cmFuc21pc3Np b24sIHByaW50aW5nLCBjb3B5aW5nIG9yDQpkaXNzZW1pbmF0aW9uIG9mIHRo aXMgaW5mb3JtYXRpb24gaW4gYW55IHdheSBvciBpbiBhbnkgbWFubmVyIGlz DQpzdHJpY3RseSBwcm9oaWJpdGVkLiBJZiB5b3UgaGF2ZSByZWNlaXZlZCB0 aGlzIGNvbW11bmljYXRpb24gaW4gZXJyb3IsDQpwbGVhc2UgZGVsZXRlIHRo aXMgbWFpbCAmIG5vdGlmeSB1cyBpbW1lZGlhdGVseSBhdA0KYWRtaW5jaG5A aGV4YXdhcmUuY29tLg== --===============1133946632== 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 --===============1133946632==-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Nov 11 12:17:44 2004 From: "Murty Mirthipati Venkata Suryanarayan" Date: Thu, 11 Nov 2004 22:50:59 +0530 Subject: [sqr-users] Regarding Joey's Problem This is a multi-part message in MIME format... ----=_NextPart_ST_22_44_51_Thursday_November_11_2004_1748 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 SGkgR3V5cywNCiAgICAgICBJIGFtIHNvcnJ5IGZvciB0aGUgbGF0ZSBlbnRy eS4uLg0KICAgICAgIEpvZXksIEkgZGVsZXRlZCB0aGUgbWFpbCBzZW50IGJ5 IHlvdSByZWdhcmRpbmcgdGhlIERCMiBzZWxlY3QgcHJvYmxlbS4gSSBzdXBw b3NlIGl0J3MgeW91IG9ubHkgdG8gcG9zdCB0aGF0IHByb2JsZW0uDQogICAg ICAgVGhlIHByb2JsZW0gbWlnaHQgYmUgbm90IGNhbGxpbmcgdGhlIHByb2Nl ZHVyZSBkbyBHRVQtQ1VSUkVOVC1EQVRFVElNRSBhbHNvLiBUaGF0J3Mgd2h5 IHRoZSB2YXJpYWJsZSAkQXNPZlRvZGF5IGlzIG5vdCBmZXRjaGluZyB0aGUg dmFsdWUuDQogDQpjaGVlcnMsDQpNdXJ0eSA7KQ0KIA0KIA0KDQoJLS0tLS1P cmlnaW5hbCBNZXNzYWdlLS0tLS0gDQoJRnJvbTogTWFuYWtvdHRlLCBLcmlz aG5hZGFzIFttYWlsdG86a3Jpc2huYWRhcy5tYW5ha290dGVBVUBsb2dpY2Fj bWcuY29tXSANCglTZW50OiBNb24gMDgtTm92LTIwMDQgMTc6NDQgDQoJVG86 IFRoaXMgbGlzdCBpcyBmb3IgZGlzY3Vzc2lvbiBhYm91dCB0aGUgU1FSIGRh dGFiYXNlIHJlcG9ydGluZyBsYW5ndWFnZWZyb20gSHlwZXJpb24gU29sdXRp b25zLiANCglDYzogDQoJU3ViamVjdDogUkU6IFtzcXItdXNlcnNdIEZsYXQg ZmlsZSBoYXZpbmcgTlVMTCBMaW5lcy4uLi4uDQoJDQoJDQoNCglQbGVhc2Ug ZW5zdXJlIHRoYXQgeW91ciBzb3VyY2UgaXMgY2xlYW4uDQoJDQoJLS0tLS1P cmlnaW5hbCBNZXNzYWdlLS0tLS0NCglGcm9tOiBuaWtoaWwgc2F3YW50IFtt YWlsdG86bmlrMmNvb2xAcmVkaWZmbWFpbC5jb21dDQoJU2VudDogTW9uZGF5 LCA4IE5vdmVtYmVyIDIwMDQgMTA6MTQgUE0NCglUbzogc3FyLXVzZXJzQHNx cnVnLm9yZw0KCVN1YmplY3Q6IFtzcXItdXNlcnNdIEZsYXQgZmlsZSBoYXZp bmcgTlVMTCBMaW5lcy4uLi4uDQoJDQoJICANCglIaSwNCgkNCglXZSBhcmUg ZmFjZWQgd2l0aCBhIHN0cmFuZ2Ugc2NlbmFyaW8gaW4gb25lIG9mIG91ciBT UVJzLi4NCglUaGUgU1FSIGVzc2VudGlhbGx5IGdlbmVyYXRlcyBhIGZsYXQg ZmlsZSB0aGF0IGhhcyB0aGUgZGF0YSBleHRyYWN0KHJvd3MpIG9mDQoJYSBQ ZW9wbGVTb2Z0IFRhYmxlLg0KCVNpbXBsZS4NCgkNCglIb3dldmVyLCB3aGVu IHRoZSBleHRyYWN0IGlzIGV4YW1pbmVkIGNsb3NlbHksIGl0IGhhcyByYW5k b20gTlVMTA0KCWxpbmVzL2VudHJpZXMgKEJsYW5rIGxpbmVzIHdpdGggbm8g Y2hhcnMgb3Igc3BhY2VzLi4pDQoJV2Ugd3JpdGUgdG8gdGhlIGZpbGUgb25s eSB3aGVuIHRoZXJlIGlzIHJvdyBvZiBkYXRhIHRvIGJlIHdyaXR0ZW4uIFNv IGl0DQoJZG9lcyBub3QgZXhwbGFpbiB0aGVzZSBsaW5lcy4oNCBsaW5lcyBv dXQgb2YgMzAsMDAwIHdyaXR0ZW4pDQoJVGhlIE9QRU4sIFdSSVRFIGFuZCBl eHRyYWN0IGRhdGEgc2l6ZXMgYXJlIEZpeGVkIGFuZCBlcXVhbC4NCgkNCglJ ZiBhbnlvbmUgaGFzIGVuY291bnRlcmVkIHRoaXMvc2ltaWxhciBzaXR1YXRp b24sIHBsZWFzZSBhZHZpc2UuLg0KCQ0KCVdlIGFyZSBhdDoNCglTUVIgVmVy c2lvbjogU1FSLzQuMy40L1N1bi9TdW5PUyA1LjUuMS9PcmFjbGUgNy4zLjQv SnVuIDAzIDE5OTkNCgkNCglUSUEuLi4NCgkNCgktTmlraGlsDQoJDQoJX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18N CglzcXItdXNlcnMgbWFpbGluZyBsaXN0DQoJc3FyLXVzZXJzQHNxcnVnLm9y Zw0KCWh0dHA6Ly93d3cuc3FydWcub3JnL21haWxtYW4vbGlzdGluZm8vc3Fy LXVzZXJzDQoJDQoJVGhpcyBlLW1haWwgYW5kIGFueSBhdHRhY2htZW50IGlz IGZvciBhdXRob3Jpc2VkIHVzZSBieSB0aGUgaW50ZW5kZWQgcmVjaXBpZW50 KHMpIG9ubHkuIEl0IG1heSBjb250YWluIHByb3ByaWV0YXJ5IG1hdGVyaWFs LCBjb25maWRlbnRpYWwgaW5mb3JtYXRpb24gYW5kL29yIGJlIHN1YmplY3Qg dG8gbGVnYWwgcHJpdmlsZWdlLiBJdCBzaG91bGQgbm90IGJlIGNvcGllZCwg ZGlzY2xvc2VkIHRvLCByZXRhaW5lZCBvciB1c2VkIGJ5LCBhbnkgb3RoZXIg cGFydHkuIElmIHlvdSBhcmUgbm90IGFuIGludGVuZGVkIHJlY2lwaWVudCB0 aGVuIHBsZWFzZSBwcm9tcHRseSBkZWxldGUgdGhpcyBlLW1haWwgYW5kIGFu eSBhdHRhY2htZW50IGFuZCBhbGwgY29waWVzIGFuZCBpbmZvcm0gdGhlIHNl bmRlci4gVGhhbmsgeW91Lg0KCQ0KCV9fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fDQoJc3FyLXVzZXJzIG1haWxpbmcg bGlzdA0KCXNxci11c2Vyc0BzcXJ1Zy5vcmcNCglodHRwOi8vd3d3LnNxcnVn Lm9yZy9tYWlsbWFuL2xpc3RpbmZvL3Nxci11c2Vycw0KCQ0KCQ0KDQoNCkRJ U0NMQUlNRVI6DQpJbmZvcm1hdGlvbiBjb250YWluZWQgYW5kIHRyYW5zbWl0 dGVkIGJ5IHRoaXMgRS1NQUlMIGlzIHByb3ByaWV0YXJ5IHRvDQpIZXhhd2Fy ZSBUZWNobm9sb2dpZXMgYW5kIGlzIGludGVuZGVkIGZvciB1c2Ugb25seSBi eSB0aGUgaW5kaXZpZHVhbCBvcg0KZW50aXR5IHRvIHdoaWNoIGl0IGlzIGFk ZHJlc3NlZCBhbmQgbWF5IGNvbnRhaW4gaW5mb3JtYXRpb24gdGhhdCBpcw0K cHJpdmlsZWdlZCwgY29uZmlkZW50aWFsIG9yIGV4ZW1wdCBmcm9tIGRpc2Ns b3N1cmUgdW5kZXIgYXBwbGljYWJsZSBsYXcuDQpJZiB0aGlzIGlzIGEgZm9y d2FyZGVkIG1lc3NhZ2UsIHRoZSBjb250ZW50IG9mIHRoaXMgRS1NQUlMIG1h eSBub3QgaGF2ZQ0KYmVlbiBzZW50IHdpdGggdGhlIGF1dGhvcml0eSBvZiB0 aGUgQ29tcGFueS4gSWYgeW91IGFyZSBub3QgdGhlIGludGVuZGVkDQpyZWNp cGllbnQsIGFuIGFnZW50IG9mIHRoZSBpbnRlbmRlZCByZWNpcGllbnQgb3Ig YSBwZXJzb24gcmVzcG9uc2libGUNCmZvciBkZWxpdmVyaW5nIHRoZSBpbmZv cm1hdGlvbiB0byB0aGUgbmFtZWQgcmVjaXBpZW50LCB5b3UgYXJlIG5vdGlm aWVkDQp0aGF0IGFueSB1c2UsIGRpc3RyaWJ1dGlvbiwgdHJhbnNtaXNzaW9u LCBwcmludGluZywgY29weWluZyBvcg0KZGlzc2VtaW5hdGlvbiBvZiB0aGlz IGluZm9ybWF0aW9uIGluIGFueSB3YXkgb3IgaW4gYW55IG1hbm5lciBpcw0K c3RyaWN0bHkgcHJvaGliaXRlZC4gSWYgeW91IGhhdmUgcmVjZWl2ZWQgdGhp cyBjb21tdW5pY2F0aW9uIGluIGVycm9yLA0KcGxlYXNlIGRlbGV0ZSB0aGlz IG1haWwgJiBub3RpZnkgdXMgaW1tZWRpYXRlbHkgYXQNCmFkbWluY2huQGhl eGF3YXJlLmNvbS4= ----=_NextPart_ST_22_44_51_Thursday_November_11_2004_1748 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_ST_22_44_51_Thursday_November_11_2004_1748 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_ST_22_44_51_Thursday_November_11_2004_1748-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Nov 11 13:50:47 2004 Date: Thu, 11 Nov 2004 12:50:14 -0600 From: Joey Ramion Subject: Re: [sqr-users] Regarding Joey's Problem Hey Murty, No I use that variable in other places and within my show the correct date is there. The problem has something to do with DB2 and the subselects. Thanks, Joey On Thu, 11 Nov 2004 22:50:59 +0530, Murty Mirthipati Venkata Suryanarayan wrote: > Hi Guys, > I am sorry for the late entry... > Joey, I deleted the mail sent by you regarding the DB2 select problem. I suppose it's you only to post that problem. > The problem might be not calling the procedure do GET-CURRENT-DATETIME also. That's why the variable $AsOfToday is not fetching the value. > > cheers, > Murty ;) > > -----Original Message----- > From: Manakotte, Krishnadas [mailto:krishnadas.manakotteAU@logicacmg.com] > Sent: Mon 08-Nov-2004 17:44 > To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. > Cc: > Subject: RE: [sqr-users] Flat file having NULL Lines..... > > Please ensure that your source is clean. > > -----Original Message----- > From: nikhil sawant [mailto:nik2cool@rediffmail.com] > Sent: Monday, 8 November 2004 10:14 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] Flat file having NULL Lines..... > > Hi, > > We are faced with a strange scenario in one of our SQRs.. > The SQR essentially generates a flat file that has the data extract(rows) of > a PeopleSoft Table. > Simple. > > However, when the extract is examined closely, it has random NULL > lines/entries (Blank lines with no chars or spaces..) > We write to the file only when there is row of data to be written. So it > does not explain these lines.(4 lines out of 30,000 written) > The OPEN, WRITE and extract data sizes are Fixed and equal. > > If anyone has encountered this/similar situation, please advise.. > > We are at: > SQR Version: SQR/4.3.4/Sun/SunOS 5.5.1/Oracle 7.3.4/Jun 03 1999 > > TIA... > > -Nikhil > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. > > _______________________________________________ > 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. > 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. > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > -- Joey Ramion joey.ramion@gmail.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 Nov 11 14:05:56 2004 From: "Murty Mirthipati Venkata Suryanarayan" Date: Fri, 12 Nov 2004 00:40:54 +0530 Subject: RE: [sqr-users] Regarding Joey's Problem This is a multi-part message in MIME format... ----=_NextPart_ST_00_34_46_Friday_November_12_2004_27085 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 SWYgSSBoYWQgeW91ciBwcm9ncmFtOyBpdCB3b3VsZCBoYXZlIGJlZW4gbW9y ZSBjbGVhciBpbiB1bmRlcnN0YW5kaW5nIHRoZSBwcm9ibGVtLiANCkZZSSBJ IGFtIGFsc28gc2luayBpbiBEQjIgb25seS4NCiANCmNoZWVycywNCk11cnR5 IDspDQoNCgktLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLSANCglGcm9tOiBK b2V5IFJhbWlvbiBbbWFpbHRvOmpvZXkucmFtaW9uQGdtYWlsLmNvbV0gDQoJ U2VudDogVGh1IDExLU5vdi0yMDA0IDEzOjUwIA0KCVRvOiBUaGlzIGxpc3Qg aXMgZm9yIGRpc2N1c3Npb24gYWJvdXQgdGhlIFNRUiBkYXRhYmFzZSByZXBv cnRpbmcgbGFuZ3VhZ2Vmcm9tIEh5cGVyaW9uIFNvbHV0aW9ucy4gDQoJQ2M6 IA0KCVN1YmplY3Q6IFJlOiBbc3FyLXVzZXJzXSBSZWdhcmRpbmcgSm9leSdz IFByb2JsZW0NCgkNCgkNCg0KCUhleSBNdXJ0eSwNCgkNCglObyBJIHVzZSB0 aGF0IHZhcmlhYmxlIGluIG90aGVyIHBsYWNlcyBhbmQgd2l0aGluIG15IHNo b3cgdGhlIGNvcnJlY3QNCglkYXRlIGlzIHRoZXJlLiBUaGUgcHJvYmxlbSBo YXMgc29tZXRoaW5nIHRvIGRvIHdpdGggREIyIGFuZCB0aGUNCglzdWJzZWxl Y3RzLg0KCQ0KCVRoYW5rcywNCgkNCglKb2V5DQoJDQoJDQoJT24gVGh1LCAx MSBOb3YgMjAwNCAyMjo1MDo1OSArMDUzMCwgTXVydHkgTWlydGhpcGF0aSBW ZW5rYXRhDQoJU3VyeWFuYXJheWFuIDxtdXJ0eW1AaGV4YXdhcmUuY29tPiB3 cm90ZToNCgk+IEhpIEd1eXMsDQoJPiAgICAgICAgSSBhbSBzb3JyeSBmb3Ig dGhlIGxhdGUgZW50cnkuLi4NCgk+ICAgICAgICBKb2V5LCBJIGRlbGV0ZWQg dGhlIG1haWwgc2VudCBieSB5b3UgcmVnYXJkaW5nIHRoZSBEQjIgc2VsZWN0 IHByb2JsZW0uIEkgc3VwcG9zZSBpdCdzIHlvdSBvbmx5IHRvIHBvc3QgdGhh dCBwcm9ibGVtLg0KCT4gICAgICAgIFRoZSBwcm9ibGVtIG1pZ2h0IGJlIG5v dCBjYWxsaW5nIHRoZSBwcm9jZWR1cmUgZG8gR0VULUNVUlJFTlQtREFURVRJ TUUgYWxzby4gVGhhdCdzIHdoeSB0aGUgdmFyaWFibGUgJEFzT2ZUb2RheSBp cyBub3QgZmV0Y2hpbmcgdGhlIHZhbHVlLg0KCT4NCgk+IGNoZWVycywNCgk+ IE11cnR5IDspDQoJPg0KCT4gICAgICAgICAtLS0tLU9yaWdpbmFsIE1lc3Nh Z2UtLS0tLQ0KCT4gICAgICAgICBGcm9tOiBNYW5ha290dGUsIEtyaXNobmFk YXMgW21haWx0bzprcmlzaG5hZGFzLm1hbmFrb3R0ZUFVQGxvZ2ljYWNtZy5j b21dDQoJPiAgICAgICAgIFNlbnQ6IE1vbiAwOC1Ob3YtMjAwNCAxNzo0NA0K CT4gICAgICAgICBUbzogVGhpcyBsaXN0IGlzIGZvciBkaXNjdXNzaW9uIGFi b3V0IHRoZSBTUVIgZGF0YWJhc2UgcmVwb3J0aW5nIGxhbmd1YWdlZnJvbSBI eXBlcmlvbiBTb2x1dGlvbnMuDQoJPiAgICAgICAgIENjOg0KCT4gICAgICAg ICBTdWJqZWN0OiBSRTogW3Nxci11c2Vyc10gRmxhdCBmaWxlIGhhdmluZyBO VUxMIExpbmVzLi4uLi4NCgk+DQoJPiAgICAgICAgIFBsZWFzZSBlbnN1cmUg dGhhdCB5b3VyIHNvdXJjZSBpcyBjbGVhbi4NCgk+DQoJPiAgICAgICAgIC0t LS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQoJPiAgICAgICAgIEZyb206IG5p a2hpbCBzYXdhbnQgW21haWx0bzpuaWsyY29vbEByZWRpZmZtYWlsLmNvbV0N Cgk+ICAgICAgICAgU2VudDogTW9uZGF5LCA4IE5vdmVtYmVyIDIwMDQgMTA6 MTQgUE0NCgk+ICAgICAgICAgVG86IHNxci11c2Vyc0BzcXJ1Zy5vcmcNCgk+ ICAgICAgICAgU3ViamVjdDogW3Nxci11c2Vyc10gRmxhdCBmaWxlIGhhdmlu ZyBOVUxMIExpbmVzLi4uLi4NCgk+DQoJPiAgICAgICAgIEhpLA0KCT4NCgk+ ICAgICAgICAgV2UgYXJlIGZhY2VkIHdpdGggYSBzdHJhbmdlIHNjZW5hcmlv IGluIG9uZSBvZiBvdXIgU1FScy4uDQoJPiAgICAgICAgIFRoZSBTUVIgZXNz ZW50aWFsbHkgZ2VuZXJhdGVzIGEgZmxhdCBmaWxlIHRoYXQgaGFzIHRoZSBk YXRhIGV4dHJhY3Qocm93cykgb2YNCgk+ICAgICAgICAgYSBQZW9wbGVTb2Z0 IFRhYmxlLg0KCT4gICAgICAgICBTaW1wbGUuDQoJPg0KCT4gICAgICAgICBI b3dldmVyLCB3aGVuIHRoZSBleHRyYWN0IGlzIGV4YW1pbmVkIGNsb3NlbHks IGl0IGhhcyByYW5kb20gTlVMTA0KCT4gICAgICAgICBsaW5lcy9lbnRyaWVz IChCbGFuayBsaW5lcyB3aXRoIG5vIGNoYXJzIG9yIHNwYWNlcy4uKQ0KCT4g ICAgICAgICBXZSB3cml0ZSB0byB0aGUgZmlsZSBvbmx5IHdoZW4gdGhlcmUg aXMgcm93IG9mIGRhdGEgdG8gYmUgd3JpdHRlbi4gU28gaXQNCgk+ICAgICAg ICAgZG9lcyBub3QgZXhwbGFpbiB0aGVzZSBsaW5lcy4oNCBsaW5lcyBvdXQg b2YgMzAsMDAwIHdyaXR0ZW4pDQoJPiAgICAgICAgIFRoZSBPUEVOLCBXUklU RSBhbmQgZXh0cmFjdCBkYXRhIHNpemVzIGFyZSBGaXhlZCBhbmQgZXF1YWwu DQoJPg0KCT4gICAgICAgICBJZiBhbnlvbmUgaGFzIGVuY291bnRlcmVkIHRo aXMvc2ltaWxhciBzaXR1YXRpb24sIHBsZWFzZSBhZHZpc2UuLg0KCT4NCgk+ ICAgICAgICAgV2UgYXJlIGF0Og0KCT4gICAgICAgICBTUVIgVmVyc2lvbjog U1FSLzQuMy40L1N1bi9TdW5PUyA1LjUuMS9PcmFjbGUgNy4zLjQvSnVuIDAz IDE5OTkNCgk+DQoJPiAgICAgICAgIFRJQS4uLg0KCT4NCgk+ICAgICAgICAg LU5pa2hpbA0KCT4NCgk+ICAgICAgICAgX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18NCgk+ICAgICAgICAgc3FyLXVz ZXJzIG1haWxpbmcgbGlzdA0KCT4gICAgICAgICBzcXItdXNlcnNAc3FydWcu b3JnDQoJPiAgICAgICAgIGh0dHA6Ly93d3cuc3FydWcub3JnL21haWxtYW4v bGlzdGluZm8vc3FyLXVzZXJzDQoJPg0KCT4gICAgICAgICBUaGlzIGUtbWFp bCBhbmQgYW55IGF0dGFjaG1lbnQgaXMgZm9yIGF1dGhvcmlzZWQgdXNlIGJ5 IHRoZSBpbnRlbmRlZCByZWNpcGllbnQocykgb25seS4gSXQgbWF5IGNvbnRh aW4gcHJvcHJpZXRhcnkgbWF0ZXJpYWwsIGNvbmZpZGVudGlhbCBpbmZvcm1h dGlvbiBhbmQvb3IgYmUgc3ViamVjdCB0byBsZWdhbCBwcml2aWxlZ2UuIEl0 IHNob3VsZCBub3QgYmUgY29waWVkLCBkaXNjbG9zZWQgdG8sIHJldGFpbmVk IG9yIHVzZWQgYnksIGFueSBvdGhlciBwYXJ0eS4gSWYgeW91IGFyZSBub3Qg YW4gaW50ZW5kZWQgcmVjaXBpZW50IHRoZW4gcGxlYXNlIHByb21wdGx5IGRl bGV0ZSB0aGlzIGUtbWFpbCBhbmQgYW55IGF0dGFjaG1lbnQgYW5kIGFsbCBj b3BpZXMgYW5kIGluZm9ybSB0aGUgc2VuZGVyLiBUaGFuayB5b3UuDQoJPg0K CT4gICAgICAgICBfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fXw0KCT4gICAgICAgICBzcXItdXNlcnMgbWFpbGluZyBs aXN0DQoJPiAgICAgICAgIHNxci11c2Vyc0BzcXJ1Zy5vcmcNCgk+ICAgICAg ICAgaHR0cDovL3d3dy5zcXJ1Zy5vcmcvbWFpbG1hbi9saXN0aW5mby9zcXIt dXNlcnMNCgk+DQoJPiBESVNDTEFJTUVSOg0KCT4gSW5mb3JtYXRpb24gY29u dGFpbmVkIGFuZCB0cmFuc21pdHRlZCBieSB0aGlzIEUtTUFJTCBpcyBwcm9w cmlldGFyeSB0bw0KCT4gSGV4YXdhcmUgVGVjaG5vbG9naWVzIGFuZCBpcyBp bnRlbmRlZCBmb3IgdXNlIG9ubHkgYnkgdGhlIGluZGl2aWR1YWwgb3INCgk+ IGVudGl0eSB0byB3aGljaCBpdCBpcyBhZGRyZXNzZWQgYW5kIG1heSBjb250 YWluIGluZm9ybWF0aW9uIHRoYXQgaXMNCgk+IHByaXZpbGVnZWQsIGNvbmZp ZGVudGlhbCBvciBleGVtcHQgZnJvbSBkaXNjbG9zdXJlIHVuZGVyIGFwcGxp Y2FibGUgbGF3Lg0KCT4gSWYgdGhpcyBpcyBhIGZvcndhcmRlZCBtZXNzYWdl LCB0aGUgY29udGVudCBvZiB0aGlzIEUtTUFJTCBtYXkgbm90IGhhdmUNCgk+ IGJlZW4gc2VudCB3aXRoIHRoZSBhdXRob3JpdHkgb2YgdGhlIENvbXBhbnku IElmIHlvdSBhcmUgbm90IHRoZSBpbnRlbmRlZA0KCT4gcmVjaXBpZW50LCBh biBhZ2VudCBvZiB0aGUgaW50ZW5kZWQgcmVjaXBpZW50IG9yIGEgcGVyc29u IHJlc3BvbnNpYmxlDQoJPiBmb3IgZGVsaXZlcmluZyB0aGUgaW5mb3JtYXRp b24gdG8gdGhlIG5hbWVkIHJlY2lwaWVudCwgeW91IGFyZSBub3RpZmllZA0K CT4gdGhhdCBhbnkgdXNlLCBkaXN0cmlidXRpb24sIHRyYW5zbWlzc2lvbiwg cHJpbnRpbmcsIGNvcHlpbmcgb3INCgk+IGRpc3NlbWluYXRpb24gb2YgdGhp cyBpbmZvcm1hdGlvbiBpbiBhbnkgd2F5IG9yIGluIGFueSBtYW5uZXIgaXMN Cgk+IHN0cmljdGx5IHByb2hpYml0ZWQuIElmIHlvdSBoYXZlIHJlY2VpdmVk IHRoaXMgY29tbXVuaWNhdGlvbiBpbiBlcnJvciwNCgk+IHBsZWFzZSBkZWxl dGUgdGhpcyBtYWlsICYgbm90aWZ5IHVzIGltbWVkaWF0ZWx5IGF0DQoJPiBh ZG1pbmNobkBoZXhhd2FyZS5jb20uDQoJPiBIZXJlIHdhcyBhIG5vbiBhZG1p c3NpYmxlIG1lc3NhZ2UgcGFydCBvZiAnYXBwbGljYXRpb24vbXMtdG5lZicg TUlNRQ0KCT4gdHlwZS4gSXQgaGFzIGJlZW4gYXV0b21hdGljYWxseSBkaXNj YXJkZWQgYmVmb3JlIHNlbmRpbmcgdGhlIG1lc3NhZ2UgdG8NCgk+IHRoZSBs aXN0Lg0KCT4NCgk+DQoJPiBfX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fXw0KCT4gc3FyLXVzZXJzIG1haWxpbmcgbGlz dA0KCT4gc3FyLXVzZXJzQHNxcnVnLm9yZw0KCT4gaHR0cDovL3d3dy5zcXJ1 Zy5vcmcvbWFpbG1hbi9saXN0aW5mby9zcXItdXNlcnMNCgk+DQoJPg0KCT4N CgkNCgkNCgktLQ0KCUpvZXkgUmFtaW9uDQoJam9leS5yYW1pb25AZ21haWwu Y29tDQoJDQoJX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX18NCglzcXItdXNlcnMgbWFpbGluZyBsaXN0DQoJc3FyLXVz ZXJzQHNxcnVnLm9yZw0KCWh0dHA6Ly93d3cuc3FydWcub3JnL21haWxtYW4v bGlzdGluZm8vc3FyLXVzZXJzDQoJDQoJDQoNCg0KRElTQ0xBSU1FUjoNCklu Zm9ybWF0aW9uIGNvbnRhaW5lZCBhbmQgdHJhbnNtaXR0ZWQgYnkgdGhpcyBF LU1BSUwgaXMgcHJvcHJpZXRhcnkgdG8NCkhleGF3YXJlIFRlY2hub2xvZ2ll cyBhbmQgaXMgaW50ZW5kZWQgZm9yIHVzZSBvbmx5IGJ5IHRoZSBpbmRpdmlk dWFsIG9yDQplbnRpdHkgdG8gd2hpY2ggaXQgaXMgYWRkcmVzc2VkIGFuZCBt YXkgY29udGFpbiBpbmZvcm1hdGlvbiB0aGF0IGlzDQpwcml2aWxlZ2VkLCBj b25maWRlbnRpYWwgb3IgZXhlbXB0IGZyb20gZGlzY2xvc3VyZSB1bmRlciBh cHBsaWNhYmxlIGxhdy4NCklmIHRoaXMgaXMgYSBmb3J3YXJkZWQgbWVzc2Fn ZSwgdGhlIGNvbnRlbnQgb2YgdGhpcyBFLU1BSUwgbWF5IG5vdCBoYXZlDQpi ZWVuIHNlbnQgd2l0aCB0aGUgYXV0aG9yaXR5IG9mIHRoZSBDb21wYW55LiBJ ZiB5b3UgYXJlIG5vdCB0aGUgaW50ZW5kZWQNCnJlY2lwaWVudCwgYW4gYWdl bnQgb2YgdGhlIGludGVuZGVkIHJlY2lwaWVudCBvciBhIHBlcnNvbiByZXNw b25zaWJsZQ0KZm9yIGRlbGl2ZXJpbmcgdGhlIGluZm9ybWF0aW9uIHRvIHRo ZSBuYW1lZCByZWNpcGllbnQsIHlvdSBhcmUgbm90aWZpZWQNCnRoYXQgYW55 IHVzZSwgZGlzdHJpYnV0aW9uLCB0cmFuc21pc3Npb24sIHByaW50aW5nLCBj b3B5aW5nIG9yDQpkaXNzZW1pbmF0aW9uIG9mIHRoaXMgaW5mb3JtYXRpb24g aW4gYW55IHdheSBvciBpbiBhbnkgbWFubmVyIGlzDQpzdHJpY3RseSBwcm9o aWJpdGVkLiBJZiB5b3UgaGF2ZSByZWNlaXZlZCB0aGlzIGNvbW11bmljYXRp b24gaW4gZXJyb3IsDQpwbGVhc2UgZGVsZXRlIHRoaXMgbWFpbCAmIG5vdGlm eSB1cyBpbW1lZGlhdGVseSBhdA0KYWRtaW5jaG5AaGV4YXdhcmUuY29tLg== ----=_NextPart_ST_00_34_46_Friday_November_12_2004_27085 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_ST_00_34_46_Friday_November_12_2004_27085 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_ST_00_34_46_Friday_November_12_2004_27085-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Fri Nov 12 13:44:10 2004 From: Eduardo_Bugarin@hdm.honda.com Date: Fri, 12 Nov 2004 12:27:38 -0600 Subject: [sqr-users] Eliminate chart's Hello all I read a text file but some fields has some characters nulls for example: 180D ,TEST, TEST2 ,ETC,ETC,ETC do you know any command to get only the 180D or TEST2 without charecters nulls ???????? 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 Fri Nov 12 13:50:41 2004 From: "Aguirre, Jose" Subject: RE: [sqr-users] Eliminate chart's Date: Fri, 12 Nov 2004 12:49:51 -0600 Let $var_name =3D ltrim(rtrim($var_name,' '),' ')=20 Thanks, 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: Friday, November 12, 2004 12:28 PM To: sqr-users@sqrug.org Subject: [sqr-users] Eliminate chart's Hello all I read a text file but some fields has some characters nulls for example: 180D ,TEST, TEST2 ,ETC,ETC,ETC do you know any command to get only the 180D or TEST2 without charecters nulls ???????? 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 Fri Nov 12 13:54:23 2004 Subject: RE: [sqr-users] Eliminate chart's Date: Fri, 12 Nov 2004 11:53:00 -0700 From: "Bartlett, Dwain" do a rtirm let $xxx =3D rtirm($yyyy,'') Dwain Bartlett SABHRS Services Bureau, ITSD HR Systems Analyst (406) 444-0418 dbartlett@state.mt.us -----Original Message----- From: Eduardo_Bugarin@hdm.honda.com [mailto:Eduardo_Bugarin@hdm.honda.com] Sent: Friday, November 12, 2004 11:28 AM To: sqr-users@sqrug.org Subject: [sqr-users] Eliminate chart's Hello all I read a text file but some fields has some characters nulls for example: 180D ,TEST, TEST2 ,ETC,ETC,ETC do you know any command to get only the 180D or TEST2 without charecters nulls ???????? 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 Fri Nov 12 14:10:56 2004 Subject: RE: [sqr-users] Eliminate chart's From: Eduardo_Bugarin@hdm.honda.com Date: Fri, 12 Nov 2004 13:06:54 -0600 thank you so much |---------+---------------------------------------------------------> | | "Bartlett, Dwain" | | | Enviado por: | | | sqr-users-bounces+eduardo_bugarin=hdm.honda.co| | | m@sqrug.org | | | | | | | | | 12/11/2004 12:53 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] Eliminate chart's | >----------------------------------------------------------------------------------------------| do a rtirm let $xxx = rtirm($yyyy,'') Dwain Bartlett SABHRS Services Bureau, ITSD HR Systems Analyst (406) 444-0418 dbartlett@state.mt.us -----Original Message----- From: Eduardo_Bugarin@hdm.honda.com [mailto:Eduardo_Bugarin@hdm.honda.com] Sent: Friday, November 12, 2004 11:28 AM To: sqr-users@sqrug.org Subject: [sqr-users] Eliminate chart's Hello all I read a text file but some fields has some characters nulls for example: 180D ,TEST, TEST2 ,ETC,ETC,ETC do you know any command to get only the 180D or TEST2 without charecters nulls ???????? 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 _______________________________________________ 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 Nov 12 14:14:58 2004 From: Bob Stone Subject: RE: [sqr-users] Eliminate chart's Date: Fri, 12 Nov 2004 13:09:15 -0600 as the other guys say, you can do the ltrim and rtrims with ' '. Say you're unstringing the line by ',', just take each section, ltrim, rtrim, and remember to do a check to see if it's null after the trims. (if ltrim(rtrim($var,' '),' ') = '' do something_to_handle_all_spaces end-if) -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Eduardo_Bugarin@hdm.honda.com Sent: Friday, November 12, 2004 12:28 PM To: sqr-users@sqrug.org Subject: [sqr-users] Eliminate chart's Hello all I read a text file but some fields has some characters nulls for example: 180D ,TEST, TEST2 ,ETC,ETC,ETC do you know any command to get only the 180D or TEST2 without charecters nulls ???????? 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 Fri Nov 12 16:25:21 2004 From: "abhay sachar" Date: Sat, 13 Nov 2004 02:51:05 +0530 Subject: [sqr-users] SQR shows as Error Hi, I am running an SQR which does updates to Customer tables. It is a SQR Process, and has no report. It is running Ok, I mean does the update and all - I've added 'show' statements in the code. Those are showing the flow. But while I run it in the Process Scheduler, it shows Run Status as Error. The Distribution status is Posted. The Status of the SQR is showing as Error in the Process Monitor. Any ideas on why this could be happening?? This is what it shows on the Message Log - PeopleTools 8 - PSSQR Copyright (c) 1988-2003 PeopleSoft, Inc. All Rights Reserved Database Type: Oracle Database Name: CRMDEV84 Report Name: P_RF0054 Process Instance: 24359 Run Control ID: 11 Language Code: ENG Output Destination Type: WEB Output Destination Format: PDF Output Destination: D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84 \log_output\SQR_P_RF0054_24359 Output Directory (SQOT): D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 Log Directory (SQLG): D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 SQR Flags: -ZIFD:\psoft\crmdev84\SQR\PSSQRENG.INI Log File (SQLF): D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_RF0054_24359.out Include File (SQIN): D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\;D:\psoft\crmdev84\USER\SQR\;D:\psoft\crmdev84\SQR\;\;\ File (FILE_1): D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_RF0054_24359.PDF SQR Command = d:\psoft\CRMDEV84\bin\sqr\ORA\binw\sqrw D:\psoft\crmdev84\USER\SQR\P_RF0054.sqr */*@CRMDEV84 -oD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_RF0054_24359.out -xmb -xcb -xi -iD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\;D:\psoft\crmdev84\USER\SQR\;D:\psoft\crmdev84\SQR\;\;\ -zifD:\psoft\crmdev84\SQR\PSSQR.INI "-fD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_RF0054_24359.PDF" -PRINTER:PD CRMDEV84 24359 ASACHAR 11 Thanks, Abhay. _________________________________________________________________ Choose what you want to read. Protect your mail from spam. http://server1.msn.co.in/sp04/hotmailspamcontrol/ Win the war in 9 steps! _______________________________________________ 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 Nov 12 16:40:09 2004 From: James Womeldorf Subject: RE: [sqr-users] SQR shows as Error Date: Fri, 12 Nov 2004 15:36:43 -0600 I believe you need to call at the end of your program. Do Successful-Eoj ! Eoj.sqc Jim -----Original Message----- From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org [mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of abhay sachar Sent: Friday, November 12, 2004 3:21 PM To: sqr-users@sqrug.org Subject: [sqr-users] SQR shows as Error Hi, I am running an SQR which does updates to Customer tables. It is a SQR Process, and has no report. It is running Ok, I mean does the update and all - I've added 'show' statements in the code. Those are showing the flow. But while I run it in the Process Scheduler, it shows Run Status as Error. The Distribution status is Posted. The Status of the SQR is showing as Error in the Process Monitor. Any ideas on why this could be happening?? This is what it shows on the Message Log - PeopleTools 8 - PSSQR Copyright (c) 1988-2003 PeopleSoft, Inc. All Rights Reserved Database Type: Oracle Database Name: CRMDEV84 Report Name: P_RF0054 Process Instance: 24359 Run Control ID: 11 Language Code: ENG Output Destination Type: WEB Output Destination Format: PDF Output Destination: D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84 \log_output\SQR_P_RF0054_24359 Output Directory (SQOT): D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 Log Directory (SQLG): D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 SQR Flags: -ZIFD:\psoft\crmdev84\SQR\PSSQRENG.INI Log File (SQLF): D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_RF00 54_24359.out Include File (SQIN): D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\;D:\ps oft\crmdev84\USER\SQR\;D:\psoft\crmdev84\SQR\;\;\ File (FILE_1): D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_RF00 54_24359.PDF SQR Command = d:\psoft\CRMDEV84\bin\sqr\ORA\binw\sqrw D:\psoft\crmdev84\USER\SQR\P_RF0054.sqr */*@CRMDEV84 -oD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_RF 0054_24359.out -xmb -xcb -xi -iD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\;D:\ psoft\crmdev84\USER\SQR\;D:\psoft\crmdev84\SQR\;\;\ -zifD:\psoft\crmdev84\SQR\PSSQR.INI "-fD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_R F0054_24359.PDF" -PRINTER:PD CRMDEV84 24359 ASACHAR 11 Thanks, Abhay. _________________________________________________________________ Choose what you want to read. Protect your mail from spam. http://server1.msn.co.in/sp04/hotmailspamcontrol/ Win the war in 9 steps! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 12 16:44:41 2004 From: "abhay sachar" Subject: RE: [sqr-users] SQR shows as Error Date: Sat, 13 Nov 2004 03:11:01 +0530 What is that for? >From: James Womeldorf >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "'This list is for discussion about the SQR database reporting >languagefrom Hyperion Solutions.'" >Subject: RE: [sqr-users] SQR shows as Error >Date: Fri, 12 Nov 2004 15:36:43 -0600 > >I believe you need to call at the end of your program. > >Do Successful-Eoj ! Eoj.sqc > >Jim > >-----Original Message----- >From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org >[mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of >abhay sachar >Sent: Friday, November 12, 2004 3:21 PM >To: sqr-users@sqrug.org >Subject: [sqr-users] SQR shows as Error > > >Hi, > >I am running an SQR which does updates to Customer tables. It is a SQR >Process, and has no report. >It is running Ok, I mean does the update and all - I've added 'show' >statements in the code. >Those are showing the flow. > >But while I run it in the Process Scheduler, it shows Run Status as Error. >The Distribution status is Posted. >The Status of the SQR is showing as Error in the Process Monitor. > >Any ideas on why this could be happening?? > >This is what it shows on the Message Log - > >PeopleTools 8 - PSSQR >Copyright (c) 1988-2003 PeopleSoft, Inc. >All Rights Reserved > >Database Type: Oracle >Database Name: CRMDEV84 >Report Name: P_RF0054 >Process Instance: 24359 >Run Control ID: 11 >Language Code: ENG >Output Destination Type: WEB >Output Destination Format: PDF >Output Destination: D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84 >\log_output\SQR_P_RF0054_24359 > >Output Directory (SQOT): >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 > >Log Directory (SQLG): >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 > >SQR Flags: -ZIFD:\psoft\crmdev84\SQR\PSSQRENG.INI > >Log File (SQLF): >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_RF00 >54_24359.out > >Include File (SQIN): >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\;D:\ps >oft\crmdev84\USER\SQR\;D:\psoft\crmdev84\SQR\;\;\ > >File (FILE_1): >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_RF00 >54_24359.PDF > >SQR Command = d:\psoft\CRMDEV84\bin\sqr\ORA\binw\sqrw >D:\psoft\crmdev84\USER\SQR\P_RF0054.sqr */*@CRMDEV84 >-oD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_RF >0054_24359.out >-xmb -xcb -xi >-iD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\;D:\ >psoft\crmdev84\USER\SQR\;D:\psoft\crmdev84\SQR\;\;\ > -zifD:\psoft\crmdev84\SQR\PSSQR.INI >"-fD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_R >F0054_24359.PDF" >-PRINTER:PD CRMDEV84 24359 ASACHAR 11 > >Thanks, >Abhay. > >_________________________________________________________________ >Choose what you want to read. Protect your mail from spam. >http://server1.msn.co.in/sp04/hotmailspamcontrol/ Win the war in 9 steps! > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ NRIs - Free money transfer to India. Fly to India for free! http://acm.bridgeovertw.com/hdfc/qr/landingpage/sep04/index.htm?sitecode=610|394 Apply Now. _______________________________________________ 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 Nov 12 16:50:57 2004 Date: Fri, 12 Nov 2004 16:47:59 -0500 From: "Larry Roux" Subject: Re: [sqr-users] SQR shows as Error Check the messages. Usually this occurs when the SQR does not do an stdapi-init and stdapi-term. You get an error saying that the SQR is no longer running, but the status was not updated. Larry Roux Syracuse University lroux@syr.edu >>> sachar_abhay@hotmail.com 11/12/2004 4:21:05 PM >>> Hi, I am running an SQR which does updates to Customer tables. It is a SQR Process, and has no report. It is running Ok, I mean does the update and all - I've added 'show' statements in the code. Those are showing the flow. But while I run it in the Process Scheduler, it shows Run Status as Error. The Distribution status is Posted. The Status of the SQR is showing as Error in the Process Monitor. Any ideas on why this could be happening?? This is what it shows on the Message Log - PeopleTools 8 - PSSQR Copyright (c) 1988-2003 PeopleSoft, Inc. All Rights Reserved Database Type: Oracle Database Name: CRMDEV84 Report Name: P_RF0054 Process Instance: 24359 Run Control ID: 11 Language Code: ENG Output Destination Type: WEB Output Destination Format: PDF Output Destination: D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84 \log_output\SQR_P_RF0054_24359 Output Directory (SQOT): D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 Log Directory (SQLG): D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 SQR Flags: -ZIFD:\psoft\crmdev84\SQR\PSSQRENG.INI Log File (SQLF): D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_RF0054_24359.out Include File (SQIN): D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\;D:\psoft\crmdev84\USER\SQR\;D:\psoft\crmdev84\SQR\;\;\ File (FILE_1): D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_RF0054_24359.PDF SQR Command = d:\psoft\CRMDEV84\bin\sqr\ORA\binw\sqrw D:\psoft\crmdev84\USER\SQR\P_RF0054.sqr */*@CRMDEV84 -oD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_RF0054_24359.out -xmb -xcb -xi -iD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\;D:\psoft\crmdev84\USER\SQR\;D:\psoft\crmdev84\SQR\;\;\ -zifD:\psoft\crmdev84\SQR\PSSQR.INI "-fD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_RF0054_24359.PDF" -PRINTER:PD CRMDEV84 24359 ASACHAR 11 Thanks, Abhay. _________________________________________________________________ Choose what you want to read. Protect your mail from spam. http://server1.msn.co.in/sp04/hotmailspamcontrol/ Win the war in 9 steps! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 12 16:54:36 2004 From: James Womeldorf Subject: RE: [sqr-users] SQR shows as Error Date: Fri, 12 Nov 2004 15:48:18 -0600 It is some of PeopleSoft's magic that updates the process monitor. -----Original Message----- From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org [mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of abhay sachar Sent: Friday, November 12, 2004 3:41 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] SQR shows as Error What is that for? >From: James Womeldorf >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "'This list is for discussion about the SQR database reporting >languagefrom Hyperion Solutions.'" >Subject: RE: [sqr-users] SQR shows as Error >Date: Fri, 12 Nov 2004 15:36:43 -0600 > >I believe you need to call at the end of your program. > >Do Successful-Eoj ! Eoj.sqc > >Jim > >-----Original Message----- >From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org >[mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of >abhay sachar >Sent: Friday, November 12, 2004 3:21 PM >To: sqr-users@sqrug.org >Subject: [sqr-users] SQR shows as Error > > >Hi, > >I am running an SQR which does updates to Customer tables. It is a SQR >Process, and has no report. >It is running Ok, I mean does the update and all - I've added 'show' >statements in the code. >Those are showing the flow. > >But while I run it in the Process Scheduler, it shows Run Status as Error. >The Distribution status is Posted. >The Status of the SQR is showing as Error in the Process Monitor. > >Any ideas on why this could be happening?? > >This is what it shows on the Message Log - > >PeopleTools 8 - PSSQR >Copyright (c) 1988-2003 PeopleSoft, Inc. >All Rights Reserved > >Database Type: Oracle >Database Name: CRMDEV84 >Report Name: P_RF0054 >Process Instance: 24359 >Run Control ID: 11 >Language Code: ENG >Output Destination Type: WEB >Output Destination Format: PDF >Output Destination: D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84 >\log_output\SQR_P_RF0054_24359 > >Output Directory (SQOT): >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 > >Log Directory (SQLG): >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 > >SQR Flags: -ZIFD:\psoft\crmdev84\SQR\PSSQRENG.INI > >Log File (SQLF): >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_RF0 0 >54_24359.out > >Include File (SQIN): >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\;D:\p s >oft\crmdev84\USER\SQR\;D:\psoft\crmdev84\SQR\;\;\ > >File (FILE_1): >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_RF0 0 >54_24359.PDF > >SQR Command = d:\psoft\CRMDEV84\bin\sqr\ORA\binw\sqrw >D:\psoft\crmdev84\USER\SQR\P_RF0054.sqr */*@CRMDEV84 >-oD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_R F >0054_24359.out >-xmb -xcb -xi >-iD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\;D: \ >psoft\crmdev84\USER\SQR\;D:\psoft\crmdev84\SQR\;\;\ > -zifD:\psoft\crmdev84\SQR\PSSQR.INI >"-fD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_ R >F0054_24359.PDF" >-PRINTER:PD CRMDEV84 24359 ASACHAR 11 > >Thanks, >Abhay. > >_________________________________________________________________ >Choose what you want to read. Protect your mail from spam. >http://server1.msn.co.in/sp04/hotmailspamcontrol/ Win the war in 9 steps! > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ NRIs - Free money transfer to India. Fly to India for free! http://acm.bridgeovertw.com/hdfc/qr/landingpage/sep04/index.htm?sitecode=610 |394 Apply Now. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 12 16:57:58 2004 Date: Fri, 12 Nov 2004 16:51:30 -0500 From: "Larry Roux" Subject: RE: [sqr-users] SQR shows as Error that calls stdapi-term. that procedure updates the run status in the process scheduler tables. If you don't notify the process scheduler that you are done via that call it will show an error since it doesn't know if the SQR abended or if you just skipped the step to tell it when the job finished. Larry Roux Syracuse University lroux@syr.edu >>> sachar_abhay@hotmail.com 11/12/2004 4:41:01 PM >>> What is that for? >From: James Womeldorf >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "'This list is for discussion about the SQR database reporting >languagefrom Hyperion Solutions.'" >Subject: RE: [sqr-users] SQR shows as Error >Date: Fri, 12 Nov 2004 15:36:43 -0600 > >I believe you need to call at the end of your program. > >Do Successful-Eoj ! Eoj.sqc > >Jim > >-----Original Message----- >From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org >[mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf Of >abhay sachar >Sent: Friday, November 12, 2004 3:21 PM >To: sqr-users@sqrug.org >Subject: [sqr-users] SQR shows as Error > > >Hi, > >I am running an SQR which does updates to Customer tables. It is a SQR >Process, and has no report. >It is running Ok, I mean does the update and all - I've added 'show' >statements in the code. >Those are showing the flow. > >But while I run it in the Process Scheduler, it shows Run Status as Error. >The Distribution status is Posted. >The Status of the SQR is showing as Error in the Process Monitor. > >Any ideas on why this could be happening?? > >This is what it shows on the Message Log - > >PeopleTools 8 - PSSQR >Copyright (c) 1988-2003 PeopleSoft, Inc. >All Rights Reserved > >Database Type: Oracle >Database Name: CRMDEV84 >Report Name: P_RF0054 >Process Instance: 24359 >Run Control ID: 11 >Language Code: ENG >Output Destination Type: WEB >Output Destination Format: PDF >Output Destination: D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84 >\log_output\SQR_P_RF0054_24359 > >Output Directory (SQOT): >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 > >Log Directory (SQLG): >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 > >SQR Flags: -ZIFD:\psoft\crmdev84\SQR\PSSQRENG.INI > >Log File (SQLF): >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_RF00 >54_24359.out > >Include File (SQIN): >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\;D:\ps >oft\crmdev84\USER\SQR\;D:\psoft\crmdev84\SQR\;\;\ > >File (FILE_1): >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_RF00 >54_24359.PDF > >SQR Command = d:\psoft\CRMDEV84\bin\sqr\ORA\binw\sqrw >D:\psoft\crmdev84\USER\SQR\P_RF0054.sqr */*@CRMDEV84 >-oD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_RF >0054_24359.out >-xmb -xcb -xi >-iD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\;D:\ >psoft\crmdev84\USER\SQR\;D:\psoft\crmdev84\SQR\;\;\ > -zifD:\psoft\crmdev84\SQR\PSSQR.INI >"-fD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_R >F0054_24359.PDF" >-PRINTER:PD CRMDEV84 24359 ASACHAR 11 > >Thanks, >Abhay. > >_________________________________________________________________ >Choose what you want to read. Protect your mail from spam. >http://server1.msn.co.in/sp04/hotmailspamcontrol/ Win the war in 9 steps! > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ NRIs - Free money transfer to India. Fly to India for free! http://acm.bridgeovertw.com/hdfc/qr/landingpage/sep04/index.htm?sitecode=610|394 Apply Now. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 12 17:04:41 2004 From: "abhay sachar" Subject: RE: [sqr-users] SQR shows as Error Date: Sat, 13 Nov 2004 03:31:44 +0530 Thanks guys but that didn't help either.... This is what I have in the code - if #prcs_process_instance > 0 do Update-Prcs-Run-Status end-if do Reset ! reset.sqc Do Successful-Eoj I can't use stdapi-init and stdapi-term as we do not have the stdapi.sqc available. This is what I have in the message log - 1:49:06PM Process Request shows status of 'INITIATED' or 'PROCESSING' but no longer running 1:49:12PM Published message with Pub ID of 20070 to request to have report added in folder GENERAL 1:49:12PM Successfully posted generated files to the report repository Do I need to get the Process Scheduler server restarted? -Abhay. >From: "Larry Roux" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: >Subject: RE: [sqr-users] SQR shows as Error >Date: Fri, 12 Nov 2004 16:51:30 -0500 > >that calls stdapi-term. that procedure updates the run status in the >process scheduler tables. If you don't notify the process scheduler >that you are done via that call it will show an error since it doesn't >know if the SQR abended or if you just skipped the step to tell it when >the job finished. > > > > >Larry Roux >Syracuse University >lroux@syr.edu > > > >>> sachar_abhay@hotmail.com 11/12/2004 4:41:01 PM >>> >What is that for? > > >From: James Womeldorf > >Reply-To: "This list is for discussion about the SQR database > >reportinglanguage from Hyperion Solutions." > >To: "'This list is for discussion about the SQR database reporting > >languagefrom Hyperion Solutions.'" > >Subject: RE: [sqr-users] SQR shows as Error > >Date: Fri, 12 Nov 2004 15:36:43 -0600 > > > >I believe you need to call at the end of your program. > > > >Do Successful-Eoj ! Eoj.sqc > > > >Jim > > > >-----Original Message----- > >From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org > >[mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf >Of > >abhay sachar > >Sent: Friday, November 12, 2004 3:21 PM > >To: sqr-users@sqrug.org > >Subject: [sqr-users] SQR shows as Error > > > > > >Hi, > > > >I am running an SQR which does updates to Customer tables. It is a >SQR > >Process, and has no report. > >It is running Ok, I mean does the update and all - I've added 'show' > >statements in the code. > >Those are showing the flow. > > > >But while I run it in the Process Scheduler, it shows Run Status as >Error. > >The Distribution status is Posted. > >The Status of the SQR is showing as Error in the Process Monitor. > > > >Any ideas on why this could be happening?? > > > >This is what it shows on the Message Log - > > > >PeopleTools 8 - PSSQR > >Copyright (c) 1988-2003 PeopleSoft, Inc. > >All Rights Reserved > > > >Database Type: Oracle > >Database Name: CRMDEV84 > >Report Name: P_RF0054 > >Process Instance: 24359 > >Run Control ID: 11 > >Language Code: ENG > >Output Destination Type: WEB > >Output Destination Format: PDF > >Output Destination: D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84 > >\log_output\SQR_P_RF0054_24359 > > > >Output Directory (SQOT): > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 > > > >Log Directory (SQLG): > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 > > > >SQR Flags: -ZIFD:\psoft\crmdev84\SQR\PSSQRENG.INI > > > >Log File (SQLF): > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_RF00 > >54_24359.out > > > >Include File (SQIN): > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\;D:\ps > >oft\crmdev84\USER\SQR\;D:\psoft\crmdev84\SQR\;\;\ > > > >File (FILE_1): > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_RF00 > >54_24359.PDF > > > >SQR Command = d:\psoft\CRMDEV84\bin\sqr\ORA\binw\sqrw > >D:\psoft\crmdev84\USER\SQR\P_RF0054.sqr */*@CRMDEV84 > >-oD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_RF > >0054_24359.out > >-xmb -xcb -xi > >-iD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\;D:\ > >psoft\crmdev84\USER\SQR\;D:\psoft\crmdev84\SQR\;\;\ > > -zifD:\psoft\crmdev84\SQR\PSSQR.INI > >"-fD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_R > >F0054_24359.PDF" > >-PRINTER:PD CRMDEV84 24359 ASACHAR 11 > > > >Thanks, > >Abhay. > > > >_________________________________________________________________ > >Choose what you want to read. Protect your mail from spam. > >http://server1.msn.co.in/sp04/hotmailspamcontrol/ Win the war in 9 >steps! > > > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >http://www.sqrug.org/mailman/listinfo/sqr-users > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >http://www.sqrug.org/mailman/listinfo/sqr-users > >_________________________________________________________________ >NRIs - Free money transfer to India. Fly to India for free! >http://acm.bridgeovertw.com/hdfc/qr/landingpage/sep04/index.htm?sitecode=610|394 > >Apply Now. > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Instant personal loans. Celebrate this season with your family. http://acm.bridgeovertw.com/hdfc/pl/landingpage/sep04/index.htm?sitecode=611|395 Apply. _______________________________________________ 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 Nov 12 17:37:23 2004 Subject: RE: [sqr-users] SQR shows as Error Date: Fri, 12 Nov 2004 15:36:16 -0700 From: "Bartlett, Dwain" Why stdapi.sqc is delivered from PeopleSoft. Dwain Bartlett SABHRS Services Bureau, ITSD HR Systems Analyst (406) 444-0418 dbartlett@state.mt.us -----Original Message----- From: abhay sachar [mailto:sachar_abhay@hotmail.com] Sent: Friday, November 12, 2004 3:02 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] SQR shows as Error Thanks guys but that didn't help either.... This is what I have in the code - if #prcs_process_instance > 0 do Update-Prcs-Run-Status end-if do Reset ! reset.sqc Do Successful-Eoj I can't use stdapi-init and stdapi-term as we do not have the stdapi.sqc available. This is what I have in the message log - 1:49:06PM Process Request shows status of 'INITIATED' or 'PROCESSING' but=20 no longer running 1:49:12PM Published message with Pub ID of 20070 to request to have report=20 added in folder GENERAL 1:49:12PM Successfully posted generated files to the report repository Do I need to get the Process Scheduler server restarted? -Abhay. >From: "Larry Roux" >Reply-To: "This list is for discussion about the SQR database=20 >reportinglanguage from Hyperion Solutions." >To: >Subject: RE: [sqr-users] SQR shows as Error >Date: Fri, 12 Nov 2004 16:51:30 -0500 > >that calls stdapi-term. that procedure updates the run status in the >process scheduler tables. If you don't notify the process scheduler >that you are done via that call it will show an error since it doesn't >know if the SQR abended or if you just skipped the step to tell it when >the job finished. > > > > >Larry Roux >Syracuse University >lroux@syr.edu > > > >>> sachar_abhay@hotmail.com 11/12/2004 4:41:01 PM >>> >What is that for? > > >From: James Womeldorf > >Reply-To: "This list is for discussion about the SQR database > >reportinglanguage from Hyperion Solutions." > >To: "'This list is for discussion about the SQR database reporting > >languagefrom Hyperion Solutions.'" > >Subject: RE: [sqr-users] SQR shows as Error > >Date: Fri, 12 Nov 2004 15:36:43 -0600 > > > >I believe you need to call at the end of your program. > > > >Do Successful-Eoj ! Eoj.sqc > > > >Jim > > > >-----Original Message----- > >From: sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org > >[mailto:sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org]On Behalf >Of > >abhay sachar > >Sent: Friday, November 12, 2004 3:21 PM > >To: sqr-users@sqrug.org > >Subject: [sqr-users] SQR shows as Error > > > > > >Hi, > > > >I am running an SQR which does updates to Customer tables. It is a >SQR > >Process, and has no report. > >It is running Ok, I mean does the update and all - I've added 'show' > >statements in the code. > >Those are showing the flow. > > > >But while I run it in the Process Scheduler, it shows Run Status as >Error. > >The Distribution status is Posted. > >The Status of the SQR is showing as Error in the Process Monitor. > > > >Any ideas on why this could be happening?? > > > >This is what it shows on the Message Log - > > > >PeopleTools 8 - PSSQR > >Copyright (c) 1988-2003 PeopleSoft, Inc. > >All Rights Reserved > > > >Database Type: Oracle > >Database Name: CRMDEV84 > >Report Name: P_RF0054 > >Process Instance: 24359 > >Run Control ID: 11 > >Language Code: ENG > >Output Destination Type: WEB > >Output Destination Format: PDF > >Output Destination: D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84 > >\log_output\SQR_P_RF0054_24359 > > > >Output Directory (SQOT): > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 > > > >Log Directory (SQLG): > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 > > > >SQR Flags: -ZIFD:\psoft\crmdev84\SQR\PSSQRENG.INI > > > >Log File (SQLF): > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P _RF00 > >54_24359.out > > > >Include File (SQIN): > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\; D:\ps > >oft\crmdev84\USER\SQR\;D:\psoft\crmdev84\SQR\;\;\ > > > >File (FILE_1): > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P _RF00 > >54_24359.PDF > > > >SQR Command =3D d:\psoft\CRMDEV84\bin\sqr\ORA\binw\sqrw > >D:\psoft\crmdev84\USER\SQR\P_RF0054.sqr */*@CRMDEV84 > >-oD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 \P_RF > >0054_24359.out > >-xmb -xcb -xi > >-iD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 \;D:\ > >psoft\crmdev84\USER\SQR\;D:\psoft\crmdev84\SQR\;\;\ > > -zifD:\psoft\crmdev84\SQR\PSSQR.INI > >"-fD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_2435 9\P_R > >F0054_24359.PDF" > >-PRINTER:PD CRMDEV84 24359 ASACHAR 11 > > > >Thanks, > >Abhay. > > > >_________________________________________________________________ > >Choose what you want to read. Protect your mail from spam. > >http://server1.msn.co.in/sp04/hotmailspamcontrol/ Win the war in 9 >steps! > > > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >http://www.sqrug.org/mailman/listinfo/sqr-users > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >http://www.sqrug.org/mailman/listinfo/sqr-users > >_________________________________________________________________ >NRIs - Free money transfer to India. Fly to India for free! >http://acm.bridgeovertw.com/hdfc/qr/landingpage/sep04/index.htm?sitecod e=3D610|394 > >Apply Now. > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Instant personal loans. Celebrate this season with your family.=20 http://acm.bridgeovertw.com/hdfc/pl/landingpage/sep04/index.htm?sitecode =3D611|395=20 Apply. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 12 17:46:08 2004 From: "abhay sachar" Subject: RE: [sqr-users] SQR shows as Error Date: Sat, 13 Nov 2004 04:14:52 +0530 Yeah, right. But I can't seem to find it in the folder where it should be. I get an error if I use it in the code. -Abhay >From: "Bartlett, Dwain" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "This list is for discussion about the SQR database reporting >languagefrom Hyperion Solutions." >Subject: RE: [sqr-users] SQR shows as Error >Date: Fri, 12 Nov 2004 15:36:16 -0700 > >Why stdapi.sqc is delivered from PeopleSoft. > >Dwain Bartlett >SABHRS Services Bureau, ITSD >HR Systems Analyst >(406) 444-0418 >dbartlett@state.mt.us > > >-----Original Message----- >From: abhay sachar [mailto:sachar_abhay@hotmail.com] >Sent: Friday, November 12, 2004 3:02 PM >To: sqr-users@sqrug.org >Subject: RE: [sqr-users] SQR shows as Error > > >Thanks guys but that didn't help either.... > >This is what I have in the code - > >if #prcs_process_instance > 0 > do Update-Prcs-Run-Status >end-if >do Reset ! reset.sqc >Do Successful-Eoj > >I can't use stdapi-init and stdapi-term as we do not have the stdapi.sqc > >available. > >This is what I have in the message log - > >1:49:06PM Process Request shows status of 'INITIATED' or 'PROCESSING' >but >no longer running >1:49:12PM Published message with Pub ID of 20070 to request to have >report > added in folder GENERAL >1:49:12PM Successfully posted generated files to the report repository > >Do I need to get the Process Scheduler server restarted? > >-Abhay. > > > >From: "Larry Roux" > >Reply-To: "This list is for discussion about the SQR database > >reportinglanguage from Hyperion Solutions." > >To: > >Subject: RE: [sqr-users] SQR shows as Error > >Date: Fri, 12 Nov 2004 16:51:30 -0500 > > > >that calls stdapi-term. that procedure updates the run status in the > >process scheduler tables. If you don't notify the process scheduler > >that you are done via that call it will show an error since it doesn't > >know if the SQR abended or if you just skipped the step to tell it when > >the job finished. > > > > > > > > > >Larry Roux > >Syracuse University > >lroux@syr.edu > > > > > > >>> sachar_abhay@hotmail.com 11/12/2004 4:41:01 PM >>> > >What is that for? > > > > >From: James Womeldorf > > >Reply-To: "This list is for discussion about the SQR database > > >reportinglanguage from Hyperion Solutions." > > >To: "'This list is for discussion about the SQR database reporting > > >languagefrom Hyperion Solutions.'" > > >Subject: RE: [sqr-users] SQR shows as Error > > >Date: Fri, 12 Nov 2004 15:36:43 -0600 > > > > > >I believe you need to call at the end of your program. > > > > > >Do Successful-Eoj ! Eoj.sqc > > > > > >Jim > > > > > >-----Original Message----- > > >From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org > > >[mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf > >Of > > >abhay sachar > > >Sent: Friday, November 12, 2004 3:21 PM > > >To: sqr-users@sqrug.org > > >Subject: [sqr-users] SQR shows as Error > > > > > > > > >Hi, > > > > > >I am running an SQR which does updates to Customer tables. It is a > >SQR > > >Process, and has no report. > > >It is running Ok, I mean does the update and all - I've added 'show' > > >statements in the code. > > >Those are showing the flow. > > > > > >But while I run it in the Process Scheduler, it shows Run Status as > >Error. > > >The Distribution status is Posted. > > >The Status of the SQR is showing as Error in the Process Monitor. > > > > > >Any ideas on why this could be happening?? > > > > > >This is what it shows on the Message Log - > > > > > >PeopleTools 8 - PSSQR > > >Copyright (c) 1988-2003 PeopleSoft, Inc. > > >All Rights Reserved > > > > > >Database Type: Oracle > > >Database Name: CRMDEV84 > > >Report Name: P_RF0054 > > >Process Instance: 24359 > > >Run Control ID: 11 > > >Language Code: ENG > > >Output Destination Type: WEB > > >Output Destination Format: PDF > > >Output Destination: D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84 > > >\log_output\SQR_P_RF0054_24359 > > > > > >Output Directory (SQOT): > > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 > > > > > >Log Directory (SQLG): > > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 > > > > > >SQR Flags: -ZIFD:\psoft\crmdev84\SQR\PSSQRENG.INI > > > > > >Log File (SQLF): > > > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P >_RF00 > > >54_24359.out > > > > > >Include File (SQIN): > > > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\; >D:\ps > > >oft\crmdev84\USER\SQR\;D:\psoft\crmdev84\SQR\;\;\ > > > > > >File (FILE_1): > > > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P >_RF00 > > >54_24359.PDF > > > > > >SQR Command = d:\psoft\CRMDEV84\bin\sqr\ORA\binw\sqrw > > >D:\psoft\crmdev84\USER\SQR\P_RF0054.sqr */*@CRMDEV84 > > > >-oD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 >\P_RF > > >0054_24359.out > > >-xmb -xcb -xi > > > >-iD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 >\;D:\ > > >psoft\crmdev84\USER\SQR\;D:\psoft\crmdev84\SQR\;\;\ > > > -zifD:\psoft\crmdev84\SQR\PSSQR.INI > > > >"-fD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_2435 >9\P_R > > >F0054_24359.PDF" > > >-PRINTER:PD CRMDEV84 24359 ASACHAR 11 > > > > > >Thanks, > > >Abhay. > > > > > >_________________________________________________________________ > > >Choose what you want to read. Protect your mail from spam. > > >http://server1.msn.co.in/sp04/hotmailspamcontrol/ Win the war in 9 > >steps! > > > > > > > > >_______________________________________________ > > >sqr-users mailing list > > >sqr-users@sqrug.org > > >http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > >_______________________________________________ > > >sqr-users mailing list > > >sqr-users@sqrug.org > > >http://www.sqrug.org/mailman/listinfo/sqr-users > > > >_________________________________________________________________ > >NRIs - Free money transfer to India. Fly to India for free! > >http://acm.bridgeovertw.com/hdfc/qr/landingpage/sep04/index.htm?sitecod >e=610|394 > > > >Apply Now. > > > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >http://www.sqrug.org/mailman/listinfo/sqr-users > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >http://www.sqrug.org/mailman/listinfo/sqr-users > >_________________________________________________________________ >Instant personal loans. Celebrate this season with your family. >http://acm.bridgeovertw.com/hdfc/pl/landingpage/sep04/index.htm?sitecode >=611|395 >Apply. > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Protect your PC! Call in the experts! http://www.msn.co.in/security/ Click here now! _______________________________________________ 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 Nov 12 17:56:30 2004 Date: Fri, 12 Nov 2004 17:54:01 -0500 From: "Larry Roux" Subject: RE: [sqr-users] SQR shows as Error The key is the first error. That means that either the SQR bombed (which you have confirmed, I surmise), or that the process scheduler is not being updated. I would find out where your stdapi.sqc is and use that. If that SQC is missing you will have lots of other bombing processes, as almost every PS sqr calls it. Larry Roux Syracuse University lroux@syr.edu >>> sachar_abhay@hotmail.com 11/12/2004 5:01:44 PM >>> Thanks guys but that didn't help either.... This is what I have in the code - if #prcs_process_instance > 0 do Update-Prcs-Run-Status end-if do Reset ! reset.sqc Do Successful-Eoj I can't use stdapi-init and stdapi-term as we do not have the stdapi.sqc available. This is what I have in the message log - 1:49:06PM Process Request shows status of 'INITIATED' or 'PROCESSING' but no longer running 1:49:12PM Published message with Pub ID of 20070 to request to have report added in folder GENERAL 1:49:12PM Successfully posted generated files to the report repository Do I need to get the Process Scheduler server restarted? -Abhay. >From: "Larry Roux" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: >Subject: RE: [sqr-users] SQR shows as Error >Date: Fri, 12 Nov 2004 16:51:30 -0500 > >that calls stdapi-term. that procedure updates the run status in the >process scheduler tables. If you don't notify the process scheduler >that you are done via that call it will show an error since it doesn't >know if the SQR abended or if you just skipped the step to tell it when >the job finished. > > > > >Larry Roux >Syracuse University >lroux@syr.edu > > > >>> sachar_abhay@hotmail.com 11/12/2004 4:41:01 PM >>> >What is that for? > > >From: James Womeldorf > >Reply-To: "This list is for discussion about the SQR database > >reportinglanguage from Hyperion Solutions." > >To: "'This list is for discussion about the SQR database reporting > >languagefrom Hyperion Solutions.'" > >Subject: RE: [sqr-users] SQR shows as Error > >Date: Fri, 12 Nov 2004 15:36:43 -0600 > > > >I believe you need to call at the end of your program. > > > >Do Successful-Eoj ! Eoj.sqc > > > >Jim > > > >-----Original Message----- > >From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org > >[mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf >Of > >abhay sachar > >Sent: Friday, November 12, 2004 3:21 PM > >To: sqr-users@sqrug.org > >Subject: [sqr-users] SQR shows as Error > > > > > >Hi, > > > >I am running an SQR which does updates to Customer tables. It is a >SQR > >Process, and has no report. > >It is running Ok, I mean does the update and all - I've added 'show' > >statements in the code. > >Those are showing the flow. > > > >But while I run it in the Process Scheduler, it shows Run Status as >Error. > >The Distribution status is Posted. > >The Status of the SQR is showing as Error in the Process Monitor. > > > >Any ideas on why this could be happening?? > > > >This is what it shows on the Message Log - > > > >PeopleTools 8 - PSSQR > >Copyright (c) 1988-2003 PeopleSoft, Inc. > >All Rights Reserved > > > >Database Type: Oracle > >Database Name: CRMDEV84 > >Report Name: P_RF0054 > >Process Instance: 24359 > >Run Control ID: 11 > >Language Code: ENG > >Output Destination Type: WEB > >Output Destination Format: PDF > >Output Destination: D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84 > >\log_output\SQR_P_RF0054_24359 > > > >Output Directory (SQOT): > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 > > > >Log Directory (SQLG): > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 > > > >SQR Flags: -ZIFD:\psoft\crmdev84\SQR\PSSQRENG.INI > > > >Log File (SQLF): > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_RF00 > >54_24359.out > > > >Include File (SQIN): > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\;D:\ps > >oft\crmdev84\USER\SQR\;D:\psoft\crmdev84\SQR\;\;\ > > > >File (FILE_1): > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_RF00 > >54_24359.PDF > > > >SQR Command = d:\psoft\CRMDEV84\bin\sqr\ORA\binw\sqrw > >D:\psoft\crmdev84\USER\SQR\P_RF0054.sqr */*@CRMDEV84 > >-oD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_RF > >0054_24359.out > >-xmb -xcb -xi > >-iD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\;D:\ > >psoft\crmdev84\USER\SQR\;D:\psoft\crmdev84\SQR\;\;\ > > -zifD:\psoft\crmdev84\SQR\PSSQR.INI > >"-fD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_R > >F0054_24359.PDF" > >-PRINTER:PD CRMDEV84 24359 ASACHAR 11 > > > >Thanks, > >Abhay. > > > >_________________________________________________________________ > >Choose what you want to read. Protect your mail from spam. > >http://server1.msn.co.in/sp04/hotmailspamcontrol/ Win the war in 9 >steps! > > > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >http://www.sqrug.org/mailman/listinfo/sqr-users > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >http://www.sqrug.org/mailman/listinfo/sqr-users > >_________________________________________________________________ >NRIs - Free money transfer to India. Fly to India for free! >http://acm.bridgeovertw.com/hdfc/qr/landingpage/sep04/index.htm?sitecode=610|394 > >Apply Now. > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Instant personal loans. Celebrate this season with your family. http://acm.bridgeovertw.com/hdfc/pl/landingpage/sep04/index.htm?sitecode=611|395 Apply. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 12 18:03:40 2004 Date: Fri, 12 Nov 2004 18:00:52 -0500 From: "Larry Roux" Subject: RE: [sqr-users] SQR shows as Error One thing that might be missing too - I believe in order to use stdapi.sqc you also have to include other SQCs that set the stuff up I usually put setenv at the top and all other includes at the bottom of my code #include 'setenv.sqc' ! Set Environment Procedure (your code) #Include 'curdttim.sqc' !Get-Current-DateTime procedure #Include 'datetime.sqc' !Routines for date and time formatting #Include 'stdapi.sqc' !Update Process API Sorry to all you non-PeopleSoft people out there! Larry Roux Syracuse University lroux@syr.edu >>> sachar_abhay@hotmail.com 11/12/2004 5:44:52 PM >>> Yeah, right. But I can't seem to find it in the folder where it should be. I get an error if I use it in the code. -Abhay >From: "Bartlett, Dwain" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "This list is for discussion about the SQR database reporting >languagefrom Hyperion Solutions." >Subject: RE: [sqr-users] SQR shows as Error >Date: Fri, 12 Nov 2004 15:36:16 -0700 > >Why stdapi.sqc is delivered from PeopleSoft. > >Dwain Bartlett >SABHRS Services Bureau, ITSD >HR Systems Analyst >(406) 444-0418 >dbartlett@state.mt.us > > >-----Original Message----- >From: abhay sachar [mailto:sachar_abhay@hotmail.com] >Sent: Friday, November 12, 2004 3:02 PM >To: sqr-users@sqrug.org >Subject: RE: [sqr-users] SQR shows as Error > > >Thanks guys but that didn't help either.... > >This is what I have in the code - > >if #prcs_process_instance > 0 > do Update-Prcs-Run-Status >end-if >do Reset ! reset.sqc >Do Successful-Eoj > >I can't use stdapi-init and stdapi-term as we do not have the stdapi.sqc > >available. > >This is what I have in the message log - > >1:49:06PM Process Request shows status of 'INITIATED' or 'PROCESSING' >but >no longer running >1:49:12PM Published message with Pub ID of 20070 to request to have >report > added in folder GENERAL >1:49:12PM Successfully posted generated files to the report repository > >Do I need to get the Process Scheduler server restarted? > >-Abhay. > > > >From: "Larry Roux" > >Reply-To: "This list is for discussion about the SQR database > >reportinglanguage from Hyperion Solutions." > >To: > >Subject: RE: [sqr-users] SQR shows as Error > >Date: Fri, 12 Nov 2004 16:51:30 -0500 > > > >that calls stdapi-term. that procedure updates the run status in the > >process scheduler tables. If you don't notify the process scheduler > >that you are done via that call it will show an error since it doesn't > >know if the SQR abended or if you just skipped the step to tell it when > >the job finished. > > > > > > > > > >Larry Roux > >Syracuse University > >lroux@syr.edu > > > > > > >>> sachar_abhay@hotmail.com 11/12/2004 4:41:01 PM >>> > >What is that for? > > > > >From: James Womeldorf > > >Reply-To: "This list is for discussion about the SQR database > > >reportinglanguage from Hyperion Solutions." > > >To: "'This list is for discussion about the SQR database reporting > > >languagefrom Hyperion Solutions.'" > > >Subject: RE: [sqr-users] SQR shows as Error > > >Date: Fri, 12 Nov 2004 15:36:43 -0600 > > > > > >I believe you need to call at the end of your program. > > > > > >Do Successful-Eoj ! Eoj.sqc > > > > > >Jim > > > > > >-----Original Message----- > > >From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org > > >[mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf > >Of > > >abhay sachar > > >Sent: Friday, November 12, 2004 3:21 PM > > >To: sqr-users@sqrug.org > > >Subject: [sqr-users] SQR shows as Error > > > > > > > > >Hi, > > > > > >I am running an SQR which does updates to Customer tables. It is a > >SQR > > >Process, and has no report. > > >It is running Ok, I mean does the update and all - I've added 'show' > > >statements in the code. > > >Those are showing the flow. > > > > > >But while I run it in the Process Scheduler, it shows Run Status as > >Error. > > >The Distribution status is Posted. > > >The Status of the SQR is showing as Error in the Process Monitor. > > > > > >Any ideas on why this could be happening?? > > > > > >This is what it shows on the Message Log - > > > > > >PeopleTools 8 - PSSQR > > >Copyright (c) 1988-2003 PeopleSoft, Inc. > > >All Rights Reserved > > > > > >Database Type: Oracle > > >Database Name: CRMDEV84 > > >Report Name: P_RF0054 > > >Process Instance: 24359 > > >Run Control ID: 11 > > >Language Code: ENG > > >Output Destination Type: WEB > > >Output Destination Format: PDF > > >Output Destination: D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84 > > >\log_output\SQR_P_RF0054_24359 > > > > > >Output Directory (SQOT): > > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 > > > > > >Log Directory (SQLG): > > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 > > > > > >SQR Flags: -ZIFD:\psoft\crmdev84\SQR\PSSQRENG.INI > > > > > >Log File (SQLF): > > > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P >_RF00 > > >54_24359.out > > > > > >Include File (SQIN): > > > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\; >D:\ps > > >oft\crmdev84\USER\SQR\;D:\psoft\crmdev84\SQR\;\;\ > > > > > >File (FILE_1): > > > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P >_RF00 > > >54_24359.PDF > > > > > >SQR Command = d:\psoft\CRMDEV84\bin\sqr\ORA\binw\sqrw > > >D:\psoft\crmdev84\USER\SQR\P_RF0054.sqr */*@CRMDEV84 > > > >-oD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 >\P_RF > > >0054_24359.out > > >-xmb -xcb -xi > > > >-iD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 >\;D:\ > > >psoft\crmdev84\USER\SQR\;D:\psoft\crmdev84\SQR\;\;\ > > > -zifD:\psoft\crmdev84\SQR\PSSQR.INI > > > >"-fD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_2435 >9\P_R > > >F0054_24359.PDF" > > >-PRINTER:PD CRMDEV84 24359 ASACHAR 11 > > > > > >Thanks, > > >Abhay. > > > > > >_________________________________________________________________ > > >Choose what you want to read. Protect your mail from spam. > > >http://server1.msn.co.in/sp04/hotmailspamcontrol/ Win the war in 9 > >steps! > > > > > > > > >_______________________________________________ > > >sqr-users mailing list > > >sqr-users@sqrug.org > > >http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > >_______________________________________________ > > >sqr-users mailing list > > >sqr-users@sqrug.org > > >http://www.sqrug.org/mailman/listinfo/sqr-users > > > >_________________________________________________________________ > >NRIs - Free money transfer to India. Fly to India for free! > >http://acm.bridgeovertw.com/hdfc/qr/landingpage/sep04/index.htm?sitecod >e=610|394 > > > >Apply Now. > > > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >http://www.sqrug.org/mailman/listinfo/sqr-users > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >http://www.sqrug.org/mailman/listinfo/sqr-users > >_________________________________________________________________ >Instant personal loans. Celebrate this season with your family. >http://acm.bridgeovertw.com/hdfc/pl/landingpage/sep04/index.htm?sitecode >=611|395 >Apply. > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Protect your PC! Call in the experts! http://www.msn.co.in/security/ Click here now! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 12 18:15:07 2004 From: "abhay sachar" Subject: RE: [sqr-users] SQR shows as Error Date: Sat, 13 Nov 2004 04:43:35 +0530 I can't find stdapi.sqc and there are other sqrs running without it. Our system is already live. What they do have is this - begin-procedure terminate if #prcs_process_instance > 0 do Update-Prcs-Run-Status end-if do Reset end-procedure I know that stdapi-init and term are needed and we had it in the last client I was working on. But here, it's not there. But like I mentioned, I do have this in code - if #prcs_process_instance > 0 do Update-Prcs-Run-Status end-if do Reset ! reset.sqc Do Successful-Eoj And Larry, you had mentioned that Successful-Eoj calls stdapi-term. Also, I am calling the other sqc setenv.sqc (code) #include 'sqlerr.sqc' #include 'curdttim.sqc' ! Current Date and Time #include 'datetime.sqc' ! Routines for date and time formatting #include 'number.sqc' ! Routines to format numbers #include 'prcsapi.sqc' ! Update Process Request API #include 'prcsdef.sqc' ! Update Process Request variable declaration #include 'tranctrl.sqc' ! Transaction control #Include 'reset.sqc' !Reset printer procedure #Include 'Eoj.sqc' !#Include 'stdapi.sqc' !Update Process API And the SQR is doing all the updates and stuff... See this from the trace - (show statements' output) In Main In Get-Inactive-Addr In Get-Active-Addr In Update-Customer Rows Updated = 1.000000 Rows Updated in bo_cm_profl_dtl = 1.000000 Thanks, Abhay. >From: "Larry Roux" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: >Subject: RE: [sqr-users] SQR shows as Error >Date: Fri, 12 Nov 2004 17:54:01 -0500 > >The key is the first error. That means that either the SQR bombed >(which you have confirmed, I surmise), or that the process scheduler is >not being updated. > >I would find out where your stdapi.sqc is and use that. If that SQC is >missing you will have lots of other bombing processes, as almost every >PS sqr calls it. > > > > >Larry Roux >Syracuse University >lroux@syr.edu > > > >>> sachar_abhay@hotmail.com 11/12/2004 5:01:44 PM >>> >Thanks guys but that didn't help either.... > >This is what I have in the code - > >if #prcs_process_instance > 0 > do Update-Prcs-Run-Status >end-if >do Reset ! reset.sqc >Do Successful-Eoj > >I can't use stdapi-init and stdapi-term as we do not have the >stdapi.sqc >available. > >This is what I have in the message log - > >1:49:06PM Process Request shows status of 'INITIATED' or 'PROCESSING' >but >no longer running >1:49:12PM Published message with Pub ID of 20070 to request to have >report > added in folder GENERAL >1:49:12PM Successfully posted generated files to the report >repository > >Do I need to get the Process Scheduler server restarted? > >-Abhay. > > > >From: "Larry Roux" > >Reply-To: "This list is for discussion about the SQR database > >reportinglanguage from Hyperion Solutions." > >To: > >Subject: RE: [sqr-users] SQR shows as Error > >Date: Fri, 12 Nov 2004 16:51:30 -0500 > > > >that calls stdapi-term. that procedure updates the run status in the > >process scheduler tables. If you don't notify the process scheduler > >that you are done via that call it will show an error since it >doesn't > >know if the SQR abended or if you just skipped the step to tell it >when > >the job finished. > > > > > > > > > >Larry Roux > >Syracuse University > >lroux@syr.edu > > > > > > >>> sachar_abhay@hotmail.com 11/12/2004 4:41:01 PM >>> > >What is that for? > > > > >From: James Womeldorf > > >Reply-To: "This list is for discussion about the SQR database > > >reportinglanguage from Hyperion Solutions." > > >To: "'This list is for discussion about the SQR database reporting > > >languagefrom Hyperion Solutions.'" > > >Subject: RE: [sqr-users] SQR shows as Error > > >Date: Fri, 12 Nov 2004 15:36:43 -0600 > > > > > >I believe you need to call at the end of your program. > > > > > >Do Successful-Eoj ! Eoj.sqc > > > > > >Jim > > > > > >-----Original Message----- > > >From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org > > >[mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf > >Of > > >abhay sachar > > >Sent: Friday, November 12, 2004 3:21 PM > > >To: sqr-users@sqrug.org > > >Subject: [sqr-users] SQR shows as Error > > > > > > > > >Hi, > > > > > >I am running an SQR which does updates to Customer tables. It is a > >SQR > > >Process, and has no report. > > >It is running Ok, I mean does the update and all - I've added >'show' > > >statements in the code. > > >Those are showing the flow. > > > > > >But while I run it in the Process Scheduler, it shows Run Status as > >Error. > > >The Distribution status is Posted. > > >The Status of the SQR is showing as Error in the Process Monitor. > > > > > >Any ideas on why this could be happening?? > > > > > >This is what it shows on the Message Log - > > > > > >PeopleTools 8 - PSSQR > > >Copyright (c) 1988-2003 PeopleSoft, Inc. > > >All Rights Reserved > > > > > >Database Type: Oracle > > >Database Name: CRMDEV84 > > >Report Name: P_RF0054 > > >Process Instance: 24359 > > >Run Control ID: 11 > > >Language Code: ENG > > >Output Destination Type: WEB > > >Output Destination Format: PDF > > >Output Destination: >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84 > > >\log_output\SQR_P_RF0054_24359 > > > > > >Output Directory (SQOT): > > > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 > > > > > >Log Directory (SQLG): > > > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 > > > > > >SQR Flags: >-ZIFD:\psoft\crmdev84\SQR\PSSQRENG.INI > > > > > >Log File (SQLF): > > > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_RF00 > > >54_24359.out > > > > > >Include File (SQIN): > > > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\;D:\ps > > >oft\crmdev84\USER\SQR\;D:\psoft\crmdev84\SQR\;\;\ > > > > > >File (FILE_1): > > > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_RF00 > > >54_24359.PDF > > > > > >SQR Command = d:\psoft\CRMDEV84\bin\sqr\ORA\binw\sqrw > > >D:\psoft\crmdev84\USER\SQR\P_RF0054.sqr */*@CRMDEV84 > > > >-oD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_RF > > >0054_24359.out > > >-xmb -xcb -xi > > > >-iD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\;D:\ > > >psoft\crmdev84\USER\SQR\;D:\psoft\crmdev84\SQR\;\;\ > > > -zifD:\psoft\crmdev84\SQR\PSSQR.INI > > > >"-fD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_R > > >F0054_24359.PDF" > > >-PRINTER:PD CRMDEV84 24359 ASACHAR 11 > > > > > >Thanks, > > >Abhay. > > > > > >_________________________________________________________________ > > >Choose what you want to read. Protect your mail from spam. > > >http://server1.msn.co.in/sp04/hotmailspamcontrol/ Win the war in 9 > >steps! > > > > > > > > >_______________________________________________ > > >sqr-users mailing list > > >sqr-users@sqrug.org > > >http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > >_______________________________________________ > > >sqr-users mailing list > > >sqr-users@sqrug.org > > >http://www.sqrug.org/mailman/listinfo/sqr-users > > > >_________________________________________________________________ > >NRIs - Free money transfer to India. Fly to India for free! > >http://acm.bridgeovertw.com/hdfc/qr/landingpage/sep04/index.htm?sitecode=610|394 > > > > >Apply Now. > > > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >http://www.sqrug.org/mailman/listinfo/sqr-users > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >http://www.sqrug.org/mailman/listinfo/sqr-users > >_________________________________________________________________ >Instant personal loans. Celebrate this season with your family. >http://acm.bridgeovertw.com/hdfc/pl/landingpage/sep04/index.htm?sitecode=611|395 > >Apply. > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Instant personal loans. Celebrate this season with your family. http://acm.bridgeovertw.com/hdfc/pl/landingpage/sep04/index.htm?sitecode=611|395 Apply. _______________________________________________ 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 Nov 12 18:31:46 2004 Date: Fri, 12 Nov 2004 15:30:44 -0800 (PST) From: shailesh n Subject: [sqr-users] Reading XML file from SQR Hi, Please let me know if it is at all possible to read XML files from an SQR. Thanks, Shailesh N --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.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 Nov 12 18:46:22 2004 Date: Fri, 12 Nov 2004 18:45:25 -0500 From: "Larry Roux" Subject: RE: [sqr-users] SQR shows as Error What they may do is update the tables themselves. Look for a variable being set (ie #RUN_STATUS) or something that states whether to consider the SQR and error or a success. Also, make sure you are getting the #prcs_process_instance variable set. That usually gets set in the stdapi-init procedure so they must have a comparable one they are using. This is what one of ours might look like: #include 'setenv.sqc' ! Set Environment Procedure #include 'setup01.sqc' ! Database Specific Setup begin-program Do Init-DateTime Do Get-Current-DateTime Do StdAPI-Init if $prcs_process_instance = '' input $prcs_oprid 'Enter Operator-Id ' let $prcs_oprid = RTRIM(UPPER($prcs_oprid), ' ') input $prcs_run_cntl_id 'Enter Run Control-Id ' let $prcs_run_cntl_id = RTRIM(UPPER($prcs_run_cntl_id), ' ') end-if show 'the code would go here' Do stdapi-term end-program #Include 'curdttim.sqc' !Get-Current-DateTime procedure #Include 'datetime.sqc' !Routines for date and time formatting #Include 'stdapi.sqc' !Update Process API Larry Roux Syracuse University lroux@syr.edu >>> sachar_abhay@hotmail.com 11/12/2004 6:13:35 PM >>> I can't find stdapi.sqc and there are other sqrs running without it. Our system is already live. What they do have is this - begin-procedure terminate if #prcs_process_instance > 0 do Update-Prcs-Run-Status end-if do Reset end-procedure I know that stdapi-init and term are needed and we had it in the last client I was working on. But here, it's not there. But like I mentioned, I do have this in code - if #prcs_process_instance > 0 do Update-Prcs-Run-Status end-if do Reset ! reset.sqc Do Successful-Eoj And Larry, you had mentioned that Successful-Eoj calls stdapi-term. Also, I am calling the other sqc setenv.sqc (code) #include 'sqlerr.sqc' #include 'curdttim.sqc' ! Current Date and Time #include 'datetime.sqc' ! Routines for date and time formatting #include 'number.sqc' ! Routines to format numbers #include 'prcsapi.sqc' ! Update Process Request API #include 'prcsdef.sqc' ! Update Process Request variable declaration #include 'tranctrl.sqc' ! Transaction control #Include 'reset.sqc' !Reset printer procedure #Include 'Eoj.sqc' !#Include 'stdapi.sqc' !Update Process API And the SQR is doing all the updates and stuff... See this from the trace - (show statements' output) In Main In Get-Inactive-Addr In Get-Active-Addr In Update-Customer Rows Updated = 1.000000 Rows Updated in bo_cm_profl_dtl = 1.000000 Thanks, Abhay. >From: "Larry Roux" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: >Subject: RE: [sqr-users] SQR shows as Error >Date: Fri, 12 Nov 2004 17:54:01 -0500 > >The key is the first error. That means that either the SQR bombed >(which you have confirmed, I surmise), or that the process scheduler is >not being updated. > >I would find out where your stdapi.sqc is and use that. If that SQC is >missing you will have lots of other bombing processes, as almost every >PS sqr calls it. > > > > >Larry Roux >Syracuse University >lroux@syr.edu > > > >>> sachar_abhay@hotmail.com 11/12/2004 5:01:44 PM >>> >Thanks guys but that didn't help either.... > >This is what I have in the code - > >if #prcs_process_instance > 0 > do Update-Prcs-Run-Status >end-if >do Reset ! reset.sqc >Do Successful-Eoj > >I can't use stdapi-init and stdapi-term as we do not have the >stdapi.sqc >available. > >This is what I have in the message log - > >1:49:06PM Process Request shows status of 'INITIATED' or 'PROCESSING' >but >no longer running >1:49:12PM Published message with Pub ID of 20070 to request to have >report > added in folder GENERAL >1:49:12PM Successfully posted generated files to the report >repository > >Do I need to get the Process Scheduler server restarted? > >-Abhay. > > > >From: "Larry Roux" > >Reply-To: "This list is for discussion about the SQR database > >reportinglanguage from Hyperion Solutions." > >To: > >Subject: RE: [sqr-users] SQR shows as Error > >Date: Fri, 12 Nov 2004 16:51:30 -0500 > > > >that calls stdapi-term. that procedure updates the run status in the > >process scheduler tables. If you don't notify the process scheduler > >that you are done via that call it will show an error since it >doesn't > >know if the SQR abended or if you just skipped the step to tell it >when > >the job finished. > > > > > > > > > >Larry Roux > >Syracuse University > >lroux@syr.edu > > > > > > >>> sachar_abhay@hotmail.com 11/12/2004 4:41:01 PM >>> > >What is that for? > > > > >From: James Womeldorf > > >Reply-To: "This list is for discussion about the SQR database > > >reportinglanguage from Hyperion Solutions." > > >To: "'This list is for discussion about the SQR database reporting > > >languagefrom Hyperion Solutions.'" > > >Subject: RE: [sqr-users] SQR shows as Error > > >Date: Fri, 12 Nov 2004 15:36:43 -0600 > > > > > >I believe you need to call at the end of your program. > > > > > >Do Successful-Eoj ! Eoj.sqc > > > > > >Jim > > > > > >-----Original Message----- > > >From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org > > >[mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On Behalf > >Of > > >abhay sachar > > >Sent: Friday, November 12, 2004 3:21 PM > > >To: sqr-users@sqrug.org > > >Subject: [sqr-users] SQR shows as Error > > > > > > > > >Hi, > > > > > >I am running an SQR which does updates to Customer tables. It is a > >SQR > > >Process, and has no report. > > >It is running Ok, I mean does the update and all - I've added >'show' > > >statements in the code. > > >Those are showing the flow. > > > > > >But while I run it in the Process Scheduler, it shows Run Status as > >Error. > > >The Distribution status is Posted. > > >The Status of the SQR is showing as Error in the Process Monitor. > > > > > >Any ideas on why this could be happening?? > > > > > >This is what it shows on the Message Log - > > > > > >PeopleTools 8 - PSSQR > > >Copyright (c) 1988-2003 PeopleSoft, Inc. > > >All Rights Reserved > > > > > >Database Type: Oracle > > >Database Name: CRMDEV84 > > >Report Name: P_RF0054 > > >Process Instance: 24359 > > >Run Control ID: 11 > > >Language Code: ENG > > >Output Destination Type: WEB > > >Output Destination Format: PDF > > >Output Destination: >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84 > > >\log_output\SQR_P_RF0054_24359 > > > > > >Output Directory (SQOT): > > > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 > > > > > >Log Directory (SQLG): > > > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 > > > > > >SQR Flags: >-ZIFD:\psoft\crmdev84\SQR\PSSQRENG.INI > > > > > >Log File (SQLF): > > > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_RF00 > > >54_24359.out > > > > > >Include File (SQIN): > > > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\;D:\ps > > >oft\crmdev84\USER\SQR\;D:\psoft\crmdev84\SQR\;\;\ > > > > > >File (FILE_1): > > > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_RF00 > > >54_24359.PDF > > > > > >SQR Command = d:\psoft\CRMDEV84\bin\sqr\ORA\binw\sqrw > > >D:\psoft\crmdev84\USER\SQR\P_RF0054.sqr */*@CRMDEV84 > > > >-oD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_RF > > >0054_24359.out > > >-xmb -xcb -xi > > > >-iD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\;D:\ > > >psoft\crmdev84\USER\SQR\;D:\psoft\crmdev84\SQR\;\;\ > > > -zifD:\psoft\crmdev84\SQR\PSSQR.INI > > > >"-fD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_R > > >F0054_24359.PDF" > > >-PRINTER:PD CRMDEV84 24359 ASACHAR 11 > > > > > >Thanks, > > >Abhay. > > > > > >_________________________________________________________________ > > >Choose what you want to read. Protect your mail from spam. > > >http://server1.msn.co.in/sp04/hotmailspamcontrol/ Win the war in 9 > >steps! > > > > > > > > >_______________________________________________ > > >sqr-users mailing list > > >sqr-users@sqrug.org > > >http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > >_______________________________________________ > > >sqr-users mailing list > > >sqr-users@sqrug.org > > >http://www.sqrug.org/mailman/listinfo/sqr-users > > > >_________________________________________________________________ > >NRIs - Free money transfer to India. Fly to India for free! > >http://acm.bridgeovertw.com/hdfc/qr/landingpage/sep04/index.htm?sitecode=610|394 > > > > >Apply Now. > > > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >http://www.sqrug.org/mailman/listinfo/sqr-users > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >http://www.sqrug.org/mailman/listinfo/sqr-users > >_________________________________________________________________ >Instant personal loans. Celebrate this season with your family. >http://acm.bridgeovertw.com/hdfc/pl/landingpage/sep04/index.htm?sitecode=611|395 > >Apply. > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Instant personal loans. Celebrate this season with your family. http://acm.bridgeovertw.com/hdfc/pl/landingpage/sep04/index.htm?sitecode=611|395 Apply. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 12 19:24:16 2004 From: "abhay sachar" Subject: RE: [sqr-users] SQR shows as Error-Fixed..Thanks Date: Sat, 13 Nov 2004 05:50:40 +0530 Thanks, guys. There is similar processing happening, it's just that the procedure names and sqc names are different here. Thanks for the directions, though. -Abhay. >From: "Larry Roux" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: >Subject: RE: [sqr-users] SQR shows as Error >Date: Fri, 12 Nov 2004 18:45:25 -0500 > >What they may do is update the tables themselves. Look for a variable >being set (ie #RUN_STATUS) or something that states whether to consider >the SQR and error or a success. > >Also, make sure you are getting the #prcs_process_instance variable >set. That usually gets set in the stdapi-init procedure so they must >have a comparable one they are using. > > > >This is what one of ours might look like: > >#include 'setenv.sqc' ! Set Environment Procedure >#include 'setup01.sqc' ! Database Specific Setup > >begin-program > Do Init-DateTime > Do Get-Current-DateTime > Do StdAPI-Init > if $prcs_process_instance = '' > input $prcs_oprid 'Enter Operator-Id ' > let $prcs_oprid = RTRIM(UPPER($prcs_oprid), ' ') > input $prcs_run_cntl_id 'Enter Run Control-Id ' > let $prcs_run_cntl_id = RTRIM(UPPER($prcs_run_cntl_id), ' ') > end-if > show 'the code would go here' > Do stdapi-term >end-program > >#Include 'curdttim.sqc' !Get-Current-DateTime procedure >#Include 'datetime.sqc' !Routines for date and time formatting >#Include 'stdapi.sqc' !Update Process API > > > > >Larry Roux >Syracuse University >lroux@syr.edu > > > >>> sachar_abhay@hotmail.com 11/12/2004 6:13:35 PM >>> >I can't find stdapi.sqc and there are other sqrs running without it. >Our >system is already live. >What they do have is this - >begin-procedure terminate > if #prcs_process_instance > 0 > do Update-Prcs-Run-Status > end-if > do Reset >end-procedure > >I know that stdapi-init and term are needed and we had it in the last >client >I was working on. >But here, it's not there. > >But like I mentioned, I do have this in code - > >if #prcs_process_instance > 0 > do Update-Prcs-Run-Status >end-if >do Reset ! reset.sqc >Do Successful-Eoj > >And Larry, you had mentioned that Successful-Eoj calls stdapi-term. >Also, I am calling the other sqc > >setenv.sqc > >(code) > >#include 'sqlerr.sqc' >#include 'curdttim.sqc' ! Current Date and Time >#include 'datetime.sqc' ! Routines for date and time >formatting >#include 'number.sqc' ! Routines to format numbers >#include 'prcsapi.sqc' ! Update Process Request API >#include 'prcsdef.sqc' ! Update Process Request variable >declaration >#include 'tranctrl.sqc' ! Transaction control >#Include 'reset.sqc' !Reset printer procedure >#Include 'Eoj.sqc' >!#Include 'stdapi.sqc' !Update Process API > >And the SQR is doing all the updates and stuff... >See this from the trace - (show statements' output) >In Main >In Get-Inactive-Addr >In Get-Active-Addr >In Update-Customer >Rows Updated = 1.000000 >Rows Updated in bo_cm_profl_dtl = 1.000000 > >Thanks, >Abhay. > > >From: "Larry Roux" > >Reply-To: "This list is for discussion about the SQR database > >reportinglanguage from Hyperion Solutions." > >To: > >Subject: RE: [sqr-users] SQR shows as Error > >Date: Fri, 12 Nov 2004 17:54:01 -0500 > > > >The key is the first error. That means that either the SQR bombed > >(which you have confirmed, I surmise), or that the process scheduler >is > >not being updated. > > > >I would find out where your stdapi.sqc is and use that. If that SQC >is > >missing you will have lots of other bombing processes, as almost >every > >PS sqr calls it. > > > > > > > > > >Larry Roux > >Syracuse University > >lroux@syr.edu > > > > > > >>> sachar_abhay@hotmail.com 11/12/2004 5:01:44 PM >>> > >Thanks guys but that didn't help either.... > > > >This is what I have in the code - > > > >if #prcs_process_instance > 0 > > do Update-Prcs-Run-Status > >end-if > >do Reset ! reset.sqc > >Do Successful-Eoj > > > >I can't use stdapi-init and stdapi-term as we do not have the > >stdapi.sqc > >available. > > > >This is what I have in the message log - > > > >1:49:06PM Process Request shows status of 'INITIATED' or >'PROCESSING' > >but > >no longer running > >1:49:12PM Published message with Pub ID of 20070 to request to have > >report > > added in folder GENERAL > >1:49:12PM Successfully posted generated files to the report > >repository > > > >Do I need to get the Process Scheduler server restarted? > > > >-Abhay. > > > > > > >From: "Larry Roux" > > >Reply-To: "This list is for discussion about the SQR database > > >reportinglanguage from Hyperion Solutions." > > >To: > > >Subject: RE: [sqr-users] SQR shows as Error > > >Date: Fri, 12 Nov 2004 16:51:30 -0500 > > > > > >that calls stdapi-term. that procedure updates the run status in >the > > >process scheduler tables. If you don't notify the process >scheduler > > >that you are done via that call it will show an error since it > >doesn't > > >know if the SQR abended or if you just skipped the step to tell it > >when > > >the job finished. > > > > > > > > > > > > > > >Larry Roux > > >Syracuse University > > >lroux@syr.edu > > > > > > > > > >>> sachar_abhay@hotmail.com 11/12/2004 4:41:01 PM >>> > > >What is that for? > > > > > > >From: James Womeldorf > > > >Reply-To: "This list is for discussion about the SQR database > > > >reportinglanguage from Hyperion Solutions." > > > >To: "'This list is for discussion about the SQR database >reporting > > > >languagefrom Hyperion Solutions.'" > > > >Subject: RE: [sqr-users] SQR shows as Error > > > >Date: Fri, 12 Nov 2004 15:36:43 -0600 > > > > > > > >I believe you need to call at the end of your program. > > > > > > > >Do Successful-Eoj ! Eoj.sqc > > > > > > > >Jim > > > > > > > >-----Original Message----- > > > >From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org > > > >[mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org]On >Behalf > > >Of > > > >abhay sachar > > > >Sent: Friday, November 12, 2004 3:21 PM > > > >To: sqr-users@sqrug.org > > > >Subject: [sqr-users] SQR shows as Error > > > > > > > > > > > >Hi, > > > > > > > >I am running an SQR which does updates to Customer tables. It is >a > > >SQR > > > >Process, and has no report. > > > >It is running Ok, I mean does the update and all - I've added > >'show' > > > >statements in the code. > > > >Those are showing the flow. > > > > > > > >But while I run it in the Process Scheduler, it shows Run Status >as > > >Error. > > > >The Distribution status is Posted. > > > >The Status of the SQR is showing as Error in the Process Monitor. > > > > > > > >Any ideas on why this could be happening?? > > > > > > > >This is what it shows on the Message Log - > > > > > > > >PeopleTools 8 - PSSQR > > > >Copyright (c) 1988-2003 PeopleSoft, Inc. > > > >All Rights Reserved > > > > > > > >Database Type: Oracle > > > >Database Name: CRMDEV84 > > > >Report Name: P_RF0054 > > > >Process Instance: 24359 > > > >Run Control ID: 11 > > > >Language Code: ENG > > > >Output Destination Type: WEB > > > >Output Destination Format: PDF > > > >Output Destination: > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84 > > > >\log_output\SQR_P_RF0054_24359 > > > > > > > >Output Directory (SQOT): > > > > > > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 > > > > > > > >Log Directory (SQLG): > > > > > > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 > > > > > > > >SQR Flags: > >-ZIFD:\psoft\crmdev84\SQR\PSSQRENG.INI > > > > > > > >Log File (SQLF): > > > > > > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_RF00 > > > >54_24359.out > > > > > > > >Include File (SQIN): > > > > > > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\;D:\ps > > > >oft\crmdev84\USER\SQR\;D:\psoft\crmdev84\SQR\;\;\ > > > > > > > >File (FILE_1): > > > > > > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_RF00 > > > >54_24359.PDF > > > > > > > >SQR Command = d:\psoft\CRMDEV84\bin\sqr\ORA\binw\sqrw > > > >D:\psoft\crmdev84\USER\SQR\P_RF0054.sqr */*@CRMDEV84 > > > > > > >-oD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_RF > > > >0054_24359.out > > > >-xmb -xcb -xi > > > > > > >-iD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\;D:\ > > > >psoft\crmdev84\USER\SQR\;D:\psoft\crmdev84\SQR\;\;\ > > > > -zifD:\psoft\crmdev84\SQR\PSSQR.INI > > > > > > >"-fD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_R > > > >F0054_24359.PDF" > > > >-PRINTER:PD CRMDEV84 24359 ASACHAR 11 > > > > > > > >Thanks, > > > >Abhay. > > > > > > > >_________________________________________________________________ > > > >Choose what you want to read. Protect your mail from spam. > > > >http://server1.msn.co.in/sp04/hotmailspamcontrol/ Win the war in >9 > > >steps! > > > > > > > > > > > >_______________________________________________ > > > >sqr-users mailing list > > > >sqr-users@sqrug.org > > > >http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > >_______________________________________________ > > > >sqr-users mailing list > > > >sqr-users@sqrug.org > > > >http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > >_________________________________________________________________ > > >NRIs - Free money transfer to India. Fly to India for free! > > > >http://acm.bridgeovertw.com/hdfc/qr/landingpage/sep04/index.htm?sitecode=610|394 > > > > > > > > >Apply Now. > > > > > > > > >_______________________________________________ > > >sqr-users mailing list > > >sqr-users@sqrug.org > > >http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > >_______________________________________________ > > >sqr-users mailing list > > >sqr-users@sqrug.org > > >http://www.sqrug.org/mailman/listinfo/sqr-users > > > >_________________________________________________________________ > >Instant personal loans. Celebrate this season with your family. > >http://acm.bridgeovertw.com/hdfc/pl/landingpage/sep04/index.htm?sitecode=611|395 > > > > >Apply. > > > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >http://www.sqrug.org/mailman/listinfo/sqr-users > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >http://www.sqrug.org/mailman/listinfo/sqr-users > >_________________________________________________________________ >Instant personal loans. Celebrate this season with your family. >http://acm.bridgeovertw.com/hdfc/pl/landingpage/sep04/index.htm?sitecode=611|395 > >Apply. > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Life on the fast track! Get hooked to it! http://server1.msn.co.in/sp04/tataracing/ Meet the champs! _______________________________________________ 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 Nov 12 19:33:47 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] Reading XML file from SQR Date: Fri, 12 Nov 2004 16:32:12 -0800 An XML file is a text file, so you can read it line by line. I don't know of any SQR built-in functions that help you interpret the XML. By any chance, are you trying to application messages used by Peoplesoft? They contain compressed XML "files" in the long field of a record. -----Original Message----- From: shailesh n [mailto:nong_shail@yahoo.com] Sent: Friday, November 12, 2004 3:31 PM To: sqr-users@sqrug.org Subject: [sqr-users] Reading XML file from SQR Hi, Please let me know if it is at all possible to read XML files from an SQR. Thanks, Shailesh N --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.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 Fri Nov 12 19:36:57 2004 From: "Steve Cavill" Subject: RE: [sqr-users] Reading XML file from SQR Date: Sat, 13 Nov 2004 11:34:03 +1100 Given an XML file is just plain text, yes you can read it with ordinary read file read commands. But is it easy to interpret? That depends on how complex your XML schema is. SQR/DDO has an XML interface but in the past I found it was very limited use as you could not control the DTD used by SQR. So it could really only read XML written by SQR/DDO in the first place. I don't know if V8 has improved the SQR/DDO XML interface. 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 shailesh n Sent: Saturday, 13 November 2004 10:31 AM To: sqr-users@sqrug.org Subject: [sqr-users] Reading XML file from SQR Hi, Please let me know if it is at all possible to read XML files from an SQR. Thanks, Shailesh N --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.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 Nov 15 14:58:59 2004 Date: Mon, 15 Nov 2004 09:56:10 -0700 From: "Jaques, Dona" Subject: [sqr-users] REMOVE NON CHARACTERS Can anyone tell me how to remove all non-characters using sqr? I have tried the translate and replace function with no success. Thanks for any input! Dona =20 For example Before Value=20=20=20=20 AL-Sadar's =20 After Value ALSadars _______________________________________________ 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 15 16:29:07 2004 Date: Mon, 15 Nov 2004 16:25:02 -0500 From: "White, Denise" Subject: [sqr-users] RE: SQR shows as Error-Fixed..Thanks I don't know if this will clear up any of the confusion, but PeopleSoft doe= s not always deliver stdapi.sqc, depending on the system (and maybe the ver= sion). I have been using stdapi.sqc with HRMS all along, but a few years b= ack I had to write some SQR reports for the FDM system, and I found they di= d not have it delivered (this was version 7.5x). Instead, I had to use prc= sdef.sqc and prcsapi.sqc, and I think I also had to do a little bit more co= ding to use them than when I use stdapi.sqc. Since the procedures in the .= sqc should be generic to any PSoft system, I am not sure why they do not st= andardize on it and deliver it with all systems. Denise M. White Sr. Software Engineer HR/Payroll Systems Vicor Corporation ---------------------------------------------------------------------- Message: 1 Date: Sat, 13 Nov 2004 05:50:40 +0530 From: "abhay sachar" Subject: RE: [sqr-users] SQR shows as Error-Fixed..Thanks To: sqr-users@sqrug.org Message-ID: Content-Type: text/plain; format=3Dflowed Thanks, guys. There is similar processing happening, it's just that the procedure names= =20 and sqc names are different here. Thanks for the directions, though. -Abhay. >From: "Larry Roux" >Reply-To: "This list is for discussion about the SQR database=20 >reportinglanguage from Hyperion Solutions." >To: >Subject: RE: [sqr-users] SQR shows as Error >Date: Fri, 12 Nov 2004 18:45:25 -0500 > >What they may do is update the tables themselves. Look for a variable >being set (ie #RUN_STATUS) or something that states whether to consider >the SQR and error or a success. > >Also, make sure you are getting the #prcs_process_instance variable >set. That usually gets set in the stdapi-init procedure so they must >have a comparable one they are using. > > > >This is what one of ours might look like: > >#include 'setenv.sqc' ! Set Environment Procedure >#include 'setup01.sqc' ! Database Specific Setup > >begin-program > Do Init-DateTime > Do Get-Current-DateTime > Do StdAPI-Init > if $prcs_process_instance =3D '' > input $prcs_oprid 'Enter Operator-Id ' > let $prcs_oprid =3D RTRIM(UPPER($prcs_oprid), ' ') > input $prcs_run_cntl_id 'Enter Run Control-Id ' > let $prcs_run_cntl_id =3D RTRIM(UPPER($prcs_run_cntl_id), ' ') > end-if > show 'the code would go here' > Do stdapi-term >end-program > >#Include 'curdttim.sqc' !Get-Current-DateTime procedure >#Include 'datetime.sqc' !Routines for date and time formatting >#Include 'stdapi.sqc' !Update Process API > > > > >Larry Roux >Syracuse University >lroux@syr.edu > > > >>> sachar_abhay@hotmail.com 11/12/2004 6:13:35 PM >>> >I can't find stdapi.sqc and there are other sqrs running without it. >Our >system is already live. >What they do have is this - >begin-procedure terminate > if #prcs_process_instance > 0 > do Update-Prcs-Run-Status > end-if > do Reset >end-procedure > >I know that stdapi-init and term are needed and we had it in the last >client >I was working on. >But here, it's not there. > >But like I mentioned, I do have this in code - > >if #prcs_process_instance > 0 > do Update-Prcs-Run-Status >end-if >do Reset ! reset.sqc >Do Successful-Eoj > >And Larry, you had mentioned that Successful-Eoj calls stdapi-term. >Also, I am calling the other sqc > >setenv.sqc > >(code) > >#include 'sqlerr.sqc' >#include 'curdttim.sqc' ! Current Date and Time >#include 'datetime.sqc' ! Routines for date and time >formatting >#include 'number.sqc' ! Routines to format numbers >#include 'prcsapi.sqc' ! Update Process Request API >#include 'prcsdef.sqc' ! Update Process Request variable >declaration >#include 'tranctrl.sqc' ! Transaction control >#Include 'reset.sqc' !Reset printer procedure >#Include 'Eoj.sqc' >!#Include 'stdapi.sqc' !Update Process API > >And the SQR is doing all the updates and stuff... >See this from the trace - (show statements' output) >In Main >In Get-Inactive-Addr >In Get-Active-Addr >In Update-Customer >Rows Updated =3D 1.000000 >Rows Updated in bo_cm_profl_dtl =3D 1.000000 > >Thanks, >Abhay. > > >From: "Larry Roux" > >Reply-To: "This list is for discussion about the SQR database > >reportinglanguage from Hyperion Solutions." > >To: > >Subject: RE: [sqr-users] SQR shows as Error > >Date: Fri, 12 Nov 2004 17:54:01 -0500 > > > >The key is the first error. That means that either the SQR bombed > >(which you have confirmed, I surmise), or that the process scheduler >is > >not being updated. > > > >I would find out where your stdapi.sqc is and use that. If that SQC >is > >missing you will have lots of other bombing processes, as almost >every > >PS sqr calls it. > > > > > > > > > >Larry Roux > >Syracuse University > >lroux@syr.edu > > > > > > >>> sachar_abhay@hotmail.com 11/12/2004 5:01:44 PM >>> > >Thanks guys but that didn't help either.... > > > >This is what I have in the code - > > > >if #prcs_process_instance > 0 > > do Update-Prcs-Run-Status > >end-if > >do Reset ! reset.sqc > >Do Successful-Eoj > > > >I can't use stdapi-init and stdapi-term as we do not have the > >stdapi.sqc > >available. > > > >This is what I have in the message log - > > > >1:49:06PM Process Request shows status of 'INITIATED' or >'PROCESSING' > >but > >no longer running > >1:49:12PM Published message with Pub ID of 20070 to request to have > >report > > added in folder GENERAL > >1:49:12PM Successfully posted generated files to the report > >repository > > > >Do I need to get the Process Scheduler server restarted? > > > >-Abhay. > > > > > > >From: "Larry Roux" > > >Reply-To: "This list is for discussion about the SQR database > > >reportinglanguage from Hyperion Solutions." > > >To: > > >Subject: RE: [sqr-users] SQR shows as Error > > >Date: Fri, 12 Nov 2004 16:51:30 -0500 > > > > > >that calls stdapi-term. that procedure updates the run status in >the > > >process scheduler tables. If you don't notify the process >scheduler > > >that you are done via that call it will show an error since it > >doesn't > > >know if the SQR abended or if you just skipped the step to tell it > >when > > >the job finished. > > > > > > > > > > > > > > >Larry Roux > > >Syracuse University > > >lroux@syr.edu > > > > > > > > > >>> sachar_abhay@hotmail.com 11/12/2004 4:41:01 PM >>> > > >What is that for? > > > > > > >From: James Womeldorf > > > >Reply-To: "This list is for discussion about the SQR database > > > >reportinglanguage from Hyperion Solutions." > > > >To: "'This list is for discussion about the SQR database >reporting > > > >languagefrom Hyperion Solutions.'" > > > >Subject: RE: [sqr-users] SQR shows as Error > > > >Date: Fri, 12 Nov 2004 15:36:43 -0600 > > > > > > > >I believe you need to call at the end of your program. > > > > > > > >Do Successful-Eoj ! Eoj.sqc > > > > > > > >Jim > > > > > > > >-----Original Message----- > > > >From: sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org > > > >[mailto:sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org]On >Behalf > > >Of > > > >abhay sachar > > > >Sent: Friday, November 12, 2004 3:21 PM > > > >To: sqr-users@sqrug.org > > > >Subject: [sqr-users] SQR shows as Error > > > > > > > > > > > >Hi, > > > > > > > >I am running an SQR which does updates to Customer tables. It is >a > > >SQR > > > >Process, and has no report. > > > >It is running Ok, I mean does the update and all - I've added > >'show' > > > >statements in the code. > > > >Those are showing the flow. > > > > > > > >But while I run it in the Process Scheduler, it shows Run Status >as > > >Error. > > > >The Distribution status is Posted. > > > >The Status of the SQR is showing as Error in the Process Monitor. > > > > > > > >Any ideas on why this could be happening?? > > > > > > > >This is what it shows on the Message Log - > > > > > > > >PeopleTools 8 - PSSQR > > > >Copyright (c) 1988-2003 PeopleSoft, Inc. > > > >All Rights Reserved > > > > > > > >Database Type: Oracle > > > >Database Name: CRMDEV84 > > > >Report Name: P_RF0054 > > > >Process Instance: 24359 > > > >Run Control ID: 11 > > > >Language Code: ENG > > > >Output Destination Type: WEB > > > >Output Destination Format: PDF > > > >Output Destination: > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84 > > > >\log_output\SQR_P_RF0054_24359 > > > > > > > >Output Directory (SQOT): > > > > > > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 > > > > > > > >Log Directory (SQLG): > > > > > > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359 > > > > > > > >SQR Flags: > >-ZIFD:\psoft\crmdev84\SQR\PSSQRENG.INI > > > > > > > >Log File (SQLF): > > > > > > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_= RF00 > > > >54_24359.out > > > > > > > >Include File (SQIN): > > > > > > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\;D= :\ps > > > >oft\crmdev84\USER\SQR\;D:\psoft\crmdev84\SQR\;\;\ > > > > > > > >File (FILE_1): > > > > > > >D:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\P_= RF00 > > > >54_24359.PDF > > > > > > > >SQR Command =3D d:\psoft\CRMDEV84\bin\sqr\ORA\binw\sqrw > > > >D:\psoft\crmdev84\USER\SQR\P_RF0054.sqr */*@CRMDEV84 > > > > > > >-oD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\= P_RF > > > >0054_24359.out > > > >-xmb -xcb -xi > > > > > > >-iD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359\= ;D:\ > > > >psoft\crmdev84\USER\SQR\;D:\psoft\crmdev84\SQR\;\;\ > > > > -zifD:\psoft\crmdev84\SQR\PSSQR.INI > > > > > > >"-fD:\psoft\CRMDEV84\appserv\prcs\CRMDEV84\log_output\SQR_P_RF0054_24359= \P_R > > > >F0054_24359.PDF" > > > >-PRINTER:PD CRMDEV84 24359 ASACHAR 11 > > > > > > > >Thanks, > > > >Abhay. _______________________________________________ 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 15 16:33:51 2004 Date: Mon, 15 Nov 2004 16:32:35 -0500 From: "White, Denise" Subject: [sqr-users] Re: sqr select variable problem Hi Joey, I agree with Bob. You need to start the 'from' and the 'where' clauses in = column one. I think that people were getting too focused on figuring out y= our dynamic stuff, and overlooked a very basic rule. I also agree with rem= oving the comma from after the column you are selecting. If you are select= ing multiple variables, it is optional to use commas if you have each colum= n on a separate line (or you can put multiple columns per line if you use c= ommas), but in either case there should never be one after the last column.= Not guaranteeing that it will work then (don't have time to analyze the d= ynamic stuff!), but at least you will be following SQR syntax rules. HTH, Denise M. White Sr. Software Engineer HR/Payroll Systems Vicor Corporation ------------------------------ Message: 3 Date: Thu, 11 Nov 2004 08:47:41 -0600 From: Joey Ramion Subject: Re: [sqr-users] sqr select variable problem To: "This list is for discussion about the SQR database reporting language from Hyperion Solutions." Message-ID: Content-Type: text/plain; charset=3DUS-ASCII Bob, Hey and thanks. The variable was added after I had first tried withouta variable and with all of the sql flush. I am going to play with the spacing some more but I am starting to think this is a DB2 issue. Thanks for the advice. Joey On Thu, 11 Nov 2004 08:37:57 -0600, Bob Stone wrote: > Uh, isn't the SQL supposed to not be indented? SQL flush to the left sid= e. > Your 'FROM' and 'WHERE' look to be double indented...i dont know if that's > email formatting...but maybe try that. >=20 > And, i dont think making your SQL dynamic would help at all. It only mak= es > it more confusing when you send it to us. I think you'd be better off > writing: >=20 > BEGIN-SELECT on-error=3DSQL-Error > A.business_unit &A.business_unit, > let $CustBU =3D &A.business_unit > show 'A.business_unit ' &A.business_unit > FROM ps_cust_data A, ps_item I > WHERE A.item =3D I.item > AND A.cust_id =3D I.cust_id > AND I.item_line =3D 1 > AND A.cust_id =3D (select B.remit_from_cust_id from ps_cust_micr_tbl B >=20 >=20 > where B.micr_id =3D $MICR > and B.EFFDT =3D ( select MAX (C.Effdt) from ps_cust_micr= _tbl > C > where C.remit_from_cust_id =3D > B.remit_from_cust_id > and C.setid =3D B.setid > and C.micr_id =3D B.micr_id > and C.effdt <=3D $AsOfToday) > and B.setid =3D 'SHARE') > END-SELECT >=20 > **NOTE - subselects can be not against the left. but your main select > should be hugging the wall there. >=20 >=20 >=20 >=20 > -----Original Message----- > From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org > [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org]On Behalf Of > Joey Ramion > Sent: Wednesday, November 10, 2004 6:04 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] sqr select variable problem >=20 > Hello all, >=20 > I have created what appears to be a very simple select statement in > sqr that returns only one value when run in sql plus on db2 however > when I run in sqr I cannot get it to populate my variable $CustBU when > I include all of the subselects. Please help!!!! >=20 > let $Temp_String_1 =3D 'A.item =3D I.item' > let $Temp_String_2 =3D 'and A.cust_id =3D I.cust_id' > string 'and I.item_line =3D ' 1 '' > by '' into $Temp_String_3 > let $Temp_String_4 =3D 'and A.cust_id =3D (select B.remit_from_cu= st_id' > let $Temp_String_5 =3D 'from ps_cust_micr_tbl B' > string 'where B.micr_id =3D ''' $MICR '''' > by '' into $Temp_String_6 > let $Temp_String_7 =3D 'and B.EFFDT =3D (select MAX (C.Effdt)' > let $Temp_String_8 =3D 'from ps_cust_micr_tbl C' > let $Temp_String_9 =3D 'where C.remit_from_cust_id =3D > B.remit_from_cust_id' > let $Temp_String_10 =3D 'and C.setid =3D B.setid' > let $Temp_String_11 =3D 'and C.micr_id =3D B.micr_id' > string 'and C.effdt <=3D ''' $AsOfToday ''')' > by '' into $Temp_String_12 > string 'and B.setid =3D ''SHARE'')' > by '' into $Temp_String_13 >=20 > string $Temp_String_1 $Temp_String_2 $Temp_String_3 $Temp_String_4 > $Temp_String_5 $Temp_String_6 $Temp_String_7 $Temp_String_8 > $Temp_String_9 $Temp_String_10 $Temp_String_11 $Temp_String_12 > $Temp_String_13 > by ' ' into $Dynamic_Request_Where >=20 > show '$Temp_String_1 ' $Temp_String_1 > show '$Temp_String_2 ' $Temp_String_2 > show '$Temp_String_3 ' $Temp_String_3 > show '$Temp_String_4 ' $Temp_String_4 > show '$Temp_String_5 ' $Temp_String_5 > show '$Temp_String_6 ' $Temp_String_6 > show '$Temp_String_7 ' $Temp_String_7 > show '$Temp_String_8 ' $Temp_String_8 > show '$Temp_String_9 ' $Temp_String_9 > show '$Temp_String_10 ' $Temp_String_10 > show '$Temp_String_11 ' $Temp_String_11 > show '$Temp_String_12 ' $Temp_String_12 > show '$Temp_String_13 ' $Temp_String_13 > show 'Before MICR ' $MICR >=20 > begin-select on-error=3DSQL-Error > A.business_unit &A.business_unit, > let $CustBU =3D &A.business_unit > show 'A.business_unit ' &A.business_unit > let $Return =3D 'Y' > show ' $Return inner ' $Return > show 'inner $MICR ' $MICR > from ps_cust_data A, ps_item I > where [$Dynamic_Request_Where] > end-select >=20 > P.S. I included the dynamic variable in an attempt to get the value > retiurned thinking that may have been my problem. >=20 > Thanks, >=20 > Joey _______________________________________________ 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 15 16:52:43 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] Re: sqr select variable problem Date: Mon, 15 Nov 2004 13:51:08 -0800 I don't start my "from" in column 1. Are you sure about those rules? I thought only the selected columns had to start in column 1, and after SQR sees "from", it doesn't take any more selected columns or any more SQR code. -----Original Message----- From: White, Denise [mailto:DEWhite@vicr.com] Sent: Monday, November 15, 2004 1:33 PM To: SQR Users Group (E-mail) Subject: [sqr-users] Re: sqr select variable problem Hi Joey, I agree with Bob. You need to start the 'from' and the 'where' clauses in column one. I think that people were getting too focused on figuring out your dynamic stuff, and overlooked a very basic rule. I also agree with removing the comma from after the column you are selecting. If you are selecting multiple variables, it is optional to use commas if you have each column on a separate line (or you can put multiple columns per line if you use commas), but in either case there should never be one after the last column. Not guaranteeing that it will work then (don't have time to analyze the dynamic stuff!), but at least you will be following SQR syntax rules. HTH, Denise M. White Sr. Software Engineer HR/Payroll Systems Vicor Corporation ------------------------------ Message: 3 Date: Thu, 11 Nov 2004 08:47:41 -0600 From: Joey Ramion Subject: Re: [sqr-users] sqr select variable problem To: "This list is for discussion about the SQR database reporting language from Hyperion Solutions." Message-ID: Content-Type: text/plain; charset=US-ASCII Bob, Hey and thanks. The variable was added after I had first tried withouta variable and with all of the sql flush. I am going to play with the spacing some more but I am starting to think this is a DB2 issue. Thanks for the advice. Joey On Thu, 11 Nov 2004 08:37:57 -0600, Bob Stone wrote: > Uh, isn't the SQL supposed to not be indented? SQL flush to the left side. > Your 'FROM' and 'WHERE' look to be double indented...i dont know if that's > email formatting...but maybe try that. > > And, i dont think making your SQL dynamic would help at all. It only makes > it more confusing when you send it to us. I think you'd be better off > writing: > > BEGIN-SELECT on-error=SQL-Error > A.business_unit &A.business_unit, > let $CustBU = &A.business_unit > show 'A.business_unit ' &A.business_unit > FROM ps_cust_data A, ps_item I > WHERE A.item = I.item > AND A.cust_id = I.cust_id > AND I.item_line = 1 > AND A.cust_id = (select B.remit_from_cust_id from ps_cust_micr_tbl B > > > where B.micr_id = $MICR > and B.EFFDT = ( select MAX (C.Effdt) from ps_cust_micr_tbl > C > where C.remit_from_cust_id = > B.remit_from_cust_id > and C.setid = B.setid > and C.micr_id = B.micr_id > and C.effdt <= $AsOfToday) > and B.setid = 'SHARE') > END-SELECT > > **NOTE - subselects can be not against the left. but your main select > should be hugging the wall there. > > > > > -----Original Message----- > From: sqr-users-bounces+bstone=fastenal.com@sqrug.org > [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of > Joey Ramion > Sent: Wednesday, November 10, 2004 6:04 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] sqr select variable problem > > Hello all, > > I have created what appears to be a very simple select statement in > sqr that returns only one value when run in sql plus on db2 however > when I run in sqr I cannot get it to populate my variable $CustBU when > I include all of the subselects. Please help!!!! > > let $Temp_String_1 = 'A.item = I.item' > let $Temp_String_2 = 'and A.cust_id = I.cust_id' > string 'and I.item_line = ' 1 '' > by '' into $Temp_String_3 > let $Temp_String_4 = 'and A.cust_id = (select B.remit_from_cust_id' > let $Temp_String_5 = 'from ps_cust_micr_tbl B' > string 'where B.micr_id = ''' $MICR '''' > by '' into $Temp_String_6 > let $Temp_String_7 = 'and B.EFFDT = (select MAX (C.Effdt)' > let $Temp_String_8 = 'from ps_cust_micr_tbl C' > let $Temp_String_9 = 'where C.remit_from_cust_id = > B.remit_from_cust_id' > let $Temp_String_10 = 'and C.setid = B.setid' > let $Temp_String_11 = 'and C.micr_id = B.micr_id' > string 'and C.effdt <= ''' $AsOfToday ''')' > by '' into $Temp_String_12 > string 'and B.setid = ''SHARE'')' > by '' into $Temp_String_13 > > string $Temp_String_1 $Temp_String_2 $Temp_String_3 $Temp_String_4 > $Temp_String_5 $Temp_String_6 $Temp_String_7 $Temp_String_8 > $Temp_String_9 $Temp_String_10 $Temp_String_11 $Temp_String_12 > $Temp_String_13 > by ' ' into $Dynamic_Request_Where > > show '$Temp_String_1 ' $Temp_String_1 > show '$Temp_String_2 ' $Temp_String_2 > show '$Temp_String_3 ' $Temp_String_3 > show '$Temp_String_4 ' $Temp_String_4 > show '$Temp_String_5 ' $Temp_String_5 > show '$Temp_String_6 ' $Temp_String_6 > show '$Temp_String_7 ' $Temp_String_7 > show '$Temp_String_8 ' $Temp_String_8 > show '$Temp_String_9 ' $Temp_String_9 > show '$Temp_String_10 ' $Temp_String_10 > show '$Temp_String_11 ' $Temp_String_11 > show '$Temp_String_12 ' $Temp_String_12 > show '$Temp_String_13 ' $Temp_String_13 > show 'Before MICR ' $MICR > > begin-select on-error=SQL-Error > A.business_unit &A.business_unit, > let $CustBU = &A.business_unit > show 'A.business_unit ' &A.business_unit > let $Return = 'Y' > show ' $Return inner ' $Return > show 'inner $MICR ' $MICR > from ps_cust_data A, ps_item I > where [$Dynamic_Request_Where] > end-select > > P.S. I included the dynamic variable in an attempt to get the value > retiurned thinking that may have been my problem. > > Thanks, > > Joey _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 15 18:22:19 2004 Date: Mon, 15 Nov 2004 18:21:15 -0500 From: "Larry Roux" Subject: RE: [sqr-users] Re: sqr select variable problem correct. I put the where statement in the left most column, but rarely have the rest of the where clause over there. I like to line things up: begin-select A.FIELD1 A.FIELD2 ... from TABLE 1 A where A.FIELD = 'A' and A.FIELD2 = 'B' end-select and that works fine. Larry Roux Syracuse University lroux@syr.edu >>> Steven.Alexander@sanjoseca.gov 11/15/04 4:51 PM >>> I don't start my "from" in column 1. Are you sure about those rules? I thought only the selected columns had to start in column 1, and after SQR sees "from", it doesn't take any more selected columns or any more SQR code. -----Original Message----- From: White, Denise [mailto:DEWhite@vicr.com] Sent: Monday, November 15, 2004 1:33 PM To: SQR Users Group (E-mail) Subject: [sqr-users] Re: sqr select variable problem Hi Joey, I agree with Bob. You need to start the 'from' and the 'where' clauses in column one. I think that people were getting too focused on figuring out your dynamic stuff, and overlooked a very basic rule. I also agree with removing the comma from after the column you are selecting. If you are selecting multiple variables, it is optional to use commas if you have each column on a separate line (or you can put multiple columns per line if you use commas), but in either case there should never be one after the last column. Not guaranteeing that it will work then (don't have time to analyze the dynamic stuff!), but at least you will be following SQR syntax rules. HTH, Denise M. White Sr. Software Engineer HR/Payroll Systems Vicor Corporation ------------------------------ Message: 3 Date: Thu, 11 Nov 2004 08:47:41 -0600 From: Joey Ramion Subject: Re: [sqr-users] sqr select variable problem To: "This list is for discussion about the SQR database reporting language from Hyperion Solutions." Message-ID: Content-Type: text/plain; charset=US-ASCII Bob, Hey and thanks. The variable was added after I had first tried withouta variable and with all of the sql flush. I am going to play with the spacing some more but I am starting to think this is a DB2 issue. Thanks for the advice. Joey On Thu, 11 Nov 2004 08:37:57 -0600, Bob Stone wrote: > Uh, isn't the SQL supposed to not be indented? SQL flush to the left side. > Your 'FROM' and 'WHERE' look to be double indented...i dont know if that's > email formatting...but maybe try that. > > And, i dont think making your SQL dynamic would help at all. It only makes > it more confusing when you send it to us. I think you'd be better off > writing: > > BEGIN-SELECT on-error=SQL-Error > A.business_unit &A.business_unit, > let $CustBU = &A.business_unit > show 'A.business_unit ' &A.business_unit > FROM ps_cust_data A, ps_item I > WHERE A.item = I.item > AND A.cust_id = I.cust_id > AND I.item_line = 1 > AND A.cust_id = (select B.remit_from_cust_id from ps_cust_micr_tbl B > > > where B.micr_id = $MICR > and B.EFFDT = ( select MAX (C.Effdt) from ps_cust_micr_tbl > C > where C.remit_from_cust_id = > B.remit_from_cust_id > and C.setid = B.setid > and C.micr_id = B.micr_id > and C.effdt <= $AsOfToday) > and B.setid = 'SHARE') > END-SELECT > > **NOTE - subselects can be not against the left. but your main select > should be hugging the wall there. > > > > > -----Original Message----- > From: sqr-users-bounces+bstone=fastenal.com@sqrug.org > [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of > Joey Ramion > Sent: Wednesday, November 10, 2004 6:04 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] sqr select variable problem > > Hello all, > > I have created what appears to be a very simple select statement in > sqr that returns only one value when run in sql plus on db2 however > when I run in sqr I cannot get it to populate my variable $CustBU when > I include all of the subselects. Please help!!!! > > let $Temp_String_1 = 'A.item = I.item' > let $Temp_String_2 = 'and A.cust_id = I.cust_id' > string 'and I.item_line = ' 1 '' > by '' into $Temp_String_3 > let $Temp_String_4 = 'and A.cust_id = (select B.remit_from_cust_id' > let $Temp_String_5 = 'from ps_cust_micr_tbl B' > string 'where B.micr_id = ''' $MICR '''' > by '' into $Temp_String_6 > let $Temp_String_7 = 'and B.EFFDT = (select MAX (C.Effdt)' > let $Temp_String_8 = 'from ps_cust_micr_tbl C' > let $Temp_String_9 = 'where C.remit_from_cust_id = > B.remit_from_cust_id' > let $Temp_String_10 = 'and C.setid = B.setid' > let $Temp_String_11 = 'and C.micr_id = B.micr_id' > string 'and C.effdt <= ''' $AsOfToday ''')' > by '' into $Temp_String_12 > string 'and B.setid = ''SHARE'')' > by '' into $Temp_String_13 > > string $Temp_String_1 $Temp_String_2 $Temp_String_3 $Temp_String_4 > $Temp_String_5 $Temp_String_6 $Temp_String_7 $Temp_String_8 > $Temp_String_9 $Temp_String_10 $Temp_String_11 $Temp_String_12 > $Temp_String_13 > by ' ' into $Dynamic_Request_Where > > show '$Temp_String_1 ' $Temp_String_1 > show '$Temp_String_2 ' $Temp_String_2 > show '$Temp_String_3 ' $Temp_String_3 > show '$Temp_String_4 ' $Temp_String_4 > show '$Temp_String_5 ' $Temp_String_5 > show '$Temp_String_6 ' $Temp_String_6 > show '$Temp_String_7 ' $Temp_String_7 > show '$Temp_String_8 ' $Temp_String_8 > show '$Temp_String_9 ' $Temp_String_9 > show '$Temp_String_10 ' $Temp_String_10 > show '$Temp_String_11 ' $Temp_String_11 > show '$Temp_String_12 ' $Temp_String_12 > show '$Temp_String_13 ' $Temp_String_13 > show 'Before MICR ' $MICR > > begin-select on-error=SQL-Error > A.business_unit &A.business_unit, > let $CustBU = &A.business_unit > show 'A.business_unit ' &A.business_unit > let $Return = 'Y' > show ' $Return inner ' $Return > show 'inner $MICR ' $MICR > from ps_cust_data A, ps_item I > where [$Dynamic_Request_Where] > end-select > > P.S. I included the dynamic variable in an attempt to get the value > retiurned thinking that may have been my problem. > > Thanks, > > Joey _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 16 08:46:04 2004 From: Jeff.Steinfeldt@wellsfargo.com Subject: RE: [sqr-users] REMOVE NON CHARACTERS Date: Mon, 15 Nov 2004 14:09:50 -0600 Try this. begin-report LET $str1 = 'Mix-Pickle''Lix' DISPLAY $str1 LET $TransFrom = '-''' LET $TransTo = '' LET $str2 = TRANSLATE ($str1, $TransFrom, $TransTo) DISPLAY $str2 end-report -----Original Message----- From: sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org [mailto:sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org] On Behalf Of Jaques, Dona Sent: Monday, November 15, 2004 10:56 AM To: sqr-users@sqrug.org Subject: [sqr-users] REMOVE NON CHARACTERS Can anyone tell me how to remove all non-characters using sqr? I have tried the translate and replace function with no success. Thanks for any input! Dona For example Before Value AL-Sadar's After Value ALSadars _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 16 08:49:24 2004 Date: Mon, 15 Nov 2004 15:14:41 -0500 (EST) From: Don Mellen Subject: Re: [sqr-users] REMOVE NON CHARACTERS An answer to a similar inquery can be found in the archives at... http://www.sqrug.org/sqr-users/sqrusers_04q2/msg00328.html (the archives are an excellent resource, by the way). On Mon, 15 Nov 2004, Jaques, Dona wrote: > Can anyone tell me how to remove all non-characters using sqr? I have > tried the translate and replace function with no success. > > Thanks for any input! > > Dona > > > > For example > > Before Value > > AL-Sadar's > > > > After Value > > ALSadars > > _______________________________________________ > 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 Tue Nov 16 08:52:25 2004 Date: Mon, 15 Nov 2004 13:58:46 -0700 From: kevin.reschenberg@sparkpath.com Subject: RE: [sqr-users] REMOVE NON CHARACTERS let $x = translate($x, '', '') In your example, to remove only the hyphen and quote characters: let $x = translate($x, '-''', '') Kevin Reschenberg SparkPath Technologies, Inc. www.sparkpath.com -------- Original Message -------- Subject: [sqr-users] REMOVE NON CHARACTERS From: "Jaques, Dona" Date: Mon, November 15, 2004 8:56 am To: sqr-users@sqrug.org Can anyone tell me how to remove all non-characters using sqr? I have tried the translate and replace function with no success. Thanks for any input! Dona For example Before Value AL-Sadar's After Value ALSadars _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 16 08:56:16 2004 Subject: RE: [sqr-users] REMOVE NON CHARACTERS Date: Mon, 15 Nov 2004 15:16:33 -0600 From: "Kent Schaetzly" Have you tried using the ascii code for the characters you wish to strip an= d using DB replace function? encode '<13>' into $cr encode '<10>' into $lf encode '<9>' into $tab encode '<45>' into $dash encode '<39>' into $hyphen Let $cr_lf =3D $cr||$lf begin-select replace(replace(replace(replace(prj.proj_name,$cr_lf,''),$dash,''),$tab,''= ),$hyphen,'') from table_name where clause End-select -----Original Message----- From: sqr-users-bounces+kschaetzly=3Deprod.com@sqrug.org [mailto:sqr-users-bounces+kschaetzly=3Deprod.com@sqrug.org]On Behalf Of Jaques, Dona Sent: Monday, November 15, 2004 10:56 AM To: sqr-users@sqrug.org Subject: [sqr-users] REMOVE NON CHARACTERS Can anyone tell me how to remove all non-characters using sqr? I have tried the translate and replace function with no success. Thanks for any input! Dona =20 For example Before Value=20=20=20=20 AL-Sadar's =20 After Value ALSadars _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 16 08:59:20 2004 From: Jeff.Steinfeldt@wellsfargo.com Subject: RE: [sqr-users] REMOVE NON CHARACTERS Date: Mon, 15 Nov 2004 15:32:54 -0600 Try this, simply do not provide a translate-to value. begin-report LET $str1 = 'Mix-Pickle''Lix' DISPLAY $str1 LET $TransFrom = '-''' LET $TransTo = '' LET $str2 = TRANSLATE ($str1, $TransFrom, $TransTo) DISPLAY $str2 end-report -----Original Message----- From: sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org [mailto:sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org] On Behalf Of Jaques, Dona Sent: Monday, November 15, 2004 10:56 AM To: sqr-users@sqrug.org Subject: [sqr-users] REMOVE NON CHARACTERS Can anyone tell me how to remove all non-characters using sqr? I have tried the translate and replace function with no success. Thanks for any input! Dona For example Before Value AL-Sadar's After Value ALSadars _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 16 09:02:28 2004 Subject: RE: [sqr-users] REMOVE NON CHARACTERS Date: Mon, 15 Nov 2004 15:40:25 -0600 From: "Knapp, Richard" If the decimal ASCII value of a character falls within a certain range, keep it? 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 Jaques, Dona Sent: Monday, November 15, 2004 10:56 AM To: sqr-users@sqrug.org Subject: [sqr-users] REMOVE NON CHARACTERS Can anyone tell me how to remove all non-characters using sqr? I have tried the translate and replace function with no success. Thanks for any input! Dona =20 For example Before Value=20=20=20=20 AL-Sadar's =20 After Value ALSadars _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 16 09:05:31 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] REMOVE NON CHARACTERS Date: Mon, 15 Nov 2004 13:52:43 -0800 Translate should work if you give it a string of punctuation characters and tell it to translate them all to null. What is the exact statement you've tried? -----Original Message----- From: Jaques, Dona [mailto:djaques@acs.utah.edu] Sent: Monday, November 15, 2004 8:56 AM To: sqr-users@sqrug.org Subject: [sqr-users] REMOVE NON CHARACTERS Can anyone tell me how to remove all non-characters using sqr? I have tried the translate and replace function with no success. Thanks for any input! Dona For example Before Value AL-Sadar's After Value ALSadars _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 16 09:27:03 2004 Date: Tue, 16 Nov 2004 09:25:53 -0500 From: "White, Denise" Subject: [sqr-users] Re: sqr select variable problem Well, I was going by what I was taught, and I guess I never questioned it, = especially since I have personally never seen an SQR program that did not f= ollow that standard. (BTW, like Larry, I start 'where' in column one and t= hen sometimes do not start the other clauses in the where in column one; wh= at I thought the rule was was that the words FROM and WHERE had to start in= column 1). I was taught this back in version 2, so I just checked my Vers= ion 4 User's Guide, and this is what it says: "SQR distinguishes column names from SQR commands in a SELECT paragraph by = their indentation. Column names must be placed at the beginning of a line.= SQR commands must be indented at least one space... The word FROM must b= e the first word in a line. The rest of the SQR SELECT statement is then w= ritten freely, following SQL syntax." (SQR User's Guide, Version 4.3; 1998= SQRIBE Technologies) So I guess if it ever was a rule, it no longer is. I also tested indenting= the FROM, and it worked fine. Sorry about that! Denise M. White Sr. Software Engineer HR/Payroll Systems Vicor Corporation ------------------------------ Message: 5 Date: Mon, 15 Nov 2004 18:21:15 -0500 From: "Larry Roux" Subject: RE: [sqr-users] Re: sqr select variable problem To: Message-ID: Content-Type: text/plain; charset=3DUS-ASCII correct. I put the where statement in the left most column, but rarely have the rest of the where clause over there. I like to line things up: begin-select A.FIELD1 A.FIELD2 ... from TABLE 1 A where A.FIELD =3D 'A' and A.FIELD2 =3D 'B' end-select and that works fine. Larry Roux Syracuse University lroux@syr.edu >>> Steven.Alexander@sanjoseca.gov 11/15/04 4:51 PM >>> I don't start my "from" in column 1. Are you sure about those rules? I thought only the selected columns had to start in column 1, and after SQR sees "from", it doesn't take any more selected columns or any more SQR code. -----Original Message----- From: White, Denise [mailto:DEWhite@vicr.com] Sent: Monday, November 15, 2004 1:33 PM To: SQR Users Group (E-mail) Subject: [sqr-users] Re: sqr select variable problem Hi Joey, I agree with Bob. You need to start the 'from' and the 'where' clauses in column one. I think that people were getting too focused on figuring out your dynamic stuff, and overlooked a very basic rule. I also agree with removing the comma from after the column you are selecting. If you are selecting multiple variables, it is optional to use commas if you have each column on a separate line (or you can put multiple columns per line if you use commas), but in either case there should never be one after the last column. Not guaranteeing that it will work then (don't have time to analyze the dynamic stuff!), but at least you will be following SQR syntax rules. HTH, Denise M. White Sr. Software Engineer HR/Payroll Systems Vicor Corporation ------------------------------ Message: 3 Date: Thu, 11 Nov 2004 08:47:41 -0600 From: Joey Ramion Subject: Re: [sqr-users] sqr select variable problem To: "This list is for discussion about the SQR database reporting language from Hyperion Solutions." Message-ID: Content-Type: text/plain; charset=3DUS-ASCII Bob, Hey and thanks. The variable was added after I had first tried withouta variable and with all of the sql flush. I am going to play with the spacing some more but I am starting to think this is a DB2 issue. Thanks for the advice. Joey On Thu, 11 Nov 2004 08:37:57 -0600, Bob Stone wrote: > Uh, isn't the SQL supposed to not be indented? SQL flush to the left side. > Your 'FROM' and 'WHERE' look to be double indented...i dont know if that's > email formatting...but maybe try that. >=20 > And, i dont think making your SQL dynamic would help at all. It only makes > it more confusing when you send it to us. I think you'd be better off > writing: >=20 > BEGIN-SELECT on-error=3DSQL-Error > A.business_unit &A.business_unit, > let $CustBU =3D &A.business_unit > show 'A.business_unit ' &A.business_unit > FROM ps_cust_data A, ps_item I > WHERE A.item =3D I.item > AND A.cust_id =3D I.cust_id > AND I.item_line =3D 1 > AND A.cust_id =3D (select B.remit_from_cust_id from ps_cust_micr_tbl B >=20 >=20 > where B.micr_id =3D $MICR > and B.EFFDT =3D ( select MAX (C.Effdt) from ps_cust_micr_tbl > C > where C.remit_from_cust_id =3D > B.remit_from_cust_id > and C.setid =3D B.setid > and C.micr_id =3D B.micr_id > and C.effdt <=3D $AsOfToday) > and B.setid =3D 'SHARE') > END-SELECT >=20 > **NOTE - subselects can be not against the left. but your main select > should be hugging the wall there. >=20 >=20 >=20 >=20 > -----Original Message----- > From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org > [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org]On Behalf Of > Joey Ramion > Sent: Wednesday, November 10, 2004 6:04 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] sqr select variable problem >=20 > Hello all, >=20 > I have created what appears to be a very simple select statement in > sqr that returns only one value when run in sql plus on db2 however > when I run in sqr I cannot get it to populate my variable $CustBU when > I include all of the subselects. Please help!!!! >=20 > let $Temp_String_1 =3D 'A.item =3D I.item' > let $Temp_String_2 =3D 'and A.cust_id =3D I.cust_id' > string 'and I.item_line =3D ' 1 '' > by '' into $Temp_String_3 > let $Temp_String_4 =3D 'and A.cust_id =3D (select B.remit_from_cust_id' > let $Temp_String_5 =3D 'from ps_cust_micr_tbl B' > string 'where B.micr_id =3D ''' $MICR '''' > by '' into $Temp_String_6 > let $Temp_String_7 =3D 'and B.EFFDT =3D (select MAX (C.Effdt)' > let $Temp_String_8 =3D 'from ps_cust_micr_tbl C' > let $Temp_String_9 =3D 'where C.remit_from_cust_id =3D > B.remit_from_cust_id' > let $Temp_String_10 =3D 'and C.setid =3D B.setid' > let $Temp_String_11 =3D 'and C.micr_id =3D B.micr_id' > string 'and C.effdt <=3D ''' $AsOfToday ''')' > by '' into $Temp_String_12 > string 'and B.setid =3D ''SHARE'')' > by '' into $Temp_String_13 >=20 > string $Temp_String_1 $Temp_String_2 $Temp_String_3 $Temp_String_4 > $Temp_String_5 $Temp_String_6 $Temp_String_7 $Temp_String_8 > $Temp_String_9 $Temp_String_10 $Temp_String_11 $Temp_String_12 > $Temp_String_13 > by ' ' into $Dynamic_Request_Where >=20 > show '$Temp_String_1 ' $Temp_String_1 > show '$Temp_String_2 ' $Temp_String_2 > show '$Temp_String_3 ' $Temp_String_3 > show '$Temp_String_4 ' $Temp_String_4 > show '$Temp_String_5 ' $Temp_String_5 > show '$Temp_String_6 ' $Temp_String_6 > show '$Temp_String_7 ' $Temp_String_7 > show '$Temp_String_8 ' $Temp_String_8 > show '$Temp_String_9 ' $Temp_String_9 > show '$Temp_String_10 ' $Temp_String_10 > show '$Temp_String_11 ' $Temp_String_11 > show '$Temp_String_12 ' $Temp_String_12 > show '$Temp_String_13 ' $Temp_String_13 > show 'Before MICR ' $MICR >=20 > begin-select on-error=3DSQL-Error > A.business_unit &A.business_unit, > let $CustBU =3D &A.business_unit > show 'A.business_unit ' &A.business_unit > let $Return =3D 'Y' > show ' $Return inner ' $Return > show 'inner $MICR ' $MICR > from ps_cust_data A, ps_item I > where [$Dynamic_Request_Where] > end-select >=20 > P.S. I included the dynamic variable in an attempt to get the value > retiurned thinking that may have been my problem. >=20 > Thanks, >=20 > Joey _______________________________________________ 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 Nov 16 14:53:29 2004 From: "Murty Mirthipati Venkata Suryanarayan" Date: Wed, 17 Nov 2004 01:28:15 +0530 Subject: [sqr-users] Splitting a Row from a file --===============1030306501== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 content-class: urn:content-classes:message R3V5cywNCg0KSSBhbSB0cnlpbmcgdG8gcmVhZCBhIGRlbGltaXRlZCBmaWxl ICggZGVsaW1pdGVyIHwgc3ltYm9sICkgYW5kIHB1dCBpbnRvIHZhcmlhYmxl cy4gUGxlYXNlIGhlbHAgbWUgdG8gZG8gaW4gYSBzaW1wbGUgd2F5Lg0KDQpU aGFua3MgYSBsb3QuDQoNCldpdGggQmVzdCBSZWdhcmRzLA0KDQpNdXJ0eSA7 KQ0KDQoJIA0KDQoNCkRJU0NMQUlNRVI6DQpJbmZvcm1hdGlvbiBjb250YWlu ZWQgYW5kIHRyYW5zbWl0dGVkIGJ5IHRoaXMgRS1NQUlMIGlzIHByb3ByaWV0 YXJ5IHRvDQpIZXhhd2FyZSBUZWNobm9sb2dpZXMgYW5kIGlzIGludGVuZGVk IGZvciB1c2Ugb25seSBieSB0aGUgaW5kaXZpZHVhbCBvcg0KZW50aXR5IHRv IHdoaWNoIGl0IGlzIGFkZHJlc3NlZCBhbmQgbWF5IGNvbnRhaW4gaW5mb3Jt YXRpb24gdGhhdCBpcw0KcHJpdmlsZWdlZCwgY29uZmlkZW50aWFsIG9yIGV4 ZW1wdCBmcm9tIGRpc2Nsb3N1cmUgdW5kZXIgYXBwbGljYWJsZSBsYXcuDQpJ ZiB0aGlzIGlzIGEgZm9yd2FyZGVkIG1lc3NhZ2UsIHRoZSBjb250ZW50IG9m IHRoaXMgRS1NQUlMIG1heSBub3QgaGF2ZQ0KYmVlbiBzZW50IHdpdGggdGhl IGF1dGhvcml0eSBvZiB0aGUgQ29tcGFueS4gSWYgeW91IGFyZSBub3QgdGhl IGludGVuZGVkDQpyZWNpcGllbnQsIGFuIGFnZW50IG9mIHRoZSBpbnRlbmRl ZCByZWNpcGllbnQgb3IgYSBwZXJzb24gcmVzcG9uc2libGUNCmZvciBkZWxp dmVyaW5nIHRoZSBpbmZvcm1hdGlvbiB0byB0aGUgbmFtZWQgcmVjaXBpZW50 LCB5b3UgYXJlIG5vdGlmaWVkDQp0aGF0IGFueSB1c2UsIGRpc3RyaWJ1dGlv biwgdHJhbnNtaXNzaW9uLCBwcmludGluZywgY29weWluZyBvcg0KZGlzc2Vt aW5hdGlvbiBvZiB0aGlzIGluZm9ybWF0aW9uIGluIGFueSB3YXkgb3IgaW4g YW55IG1hbm5lciBpcw0Kc3RyaWN0bHkgcHJvaGliaXRlZC4gSWYgeW91IGhh dmUgcmVjZWl2ZWQgdGhpcyBjb21tdW5pY2F0aW9uIGluIGVycm9yLA0KcGxl YXNlIGRlbGV0ZSB0aGlzIG1haWwgJiBub3RpZnkgdXMgaW1tZWRpYXRlbHkg YXQNCmFkbWluY2huQGhleGF3YXJlLmNvbS4= --===============1030306501== 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 --===============1030306501==-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Tue Nov 16 15:05:24 2004 From: Bob Stone Subject: RE: [sqr-users] Splitting a Row from a file Date: Tue, 16 Nov 2004 14:02:34 -0600 read the file/line of file into a $var (maybe split the thing up by line, depending on how many symbols are on each line or in the file, etc). UNSTRING $line by '|' into $sym1 $sym2 $sym3 ... $max#ofSym_Per_Line UNSTRING can be split on any delimiter. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Murty Mirthipati Venkata Suryanarayan Sent: Tuesday, November 16, 2004 1:58 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] Splitting a Row from a file Guys, I am trying to read a delimited file ( delimiter | symbol ) and put into variables. Please help me to do in a simple way. Thanks a lot. With Best Regards, Murty ;) 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 Tue Nov 16 15:08:56 2004 Subject: RE: [sqr-users] Splitting a Row from a file Date: Tue, 16 Nov 2004 15:04:10 -0500 From: "Kaithi, Murali" Hi Murthy, encode '<009>' into $sep unstring $loadrecord by $sep into $x $y $z etc. Murali=20 -----Original Message----- From: sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org [mailto:sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org] On Behalf Of Murty Mirthipati Venkata Suryanarayan Sent: Tuesday, November 16, 2004 2:58 PM To: This list is for discussion about the SQR database reportinglanguagefromHyperion Solutions. Subject: [sqr-users] Splitting a Row from a file Guys, I am trying to read a delimited file ( delimiter | symbol ) and put into variables. Please help me to do in a simple way. Thanks a lot. With Best Regards, Murty ;) =09=20 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. ______________________________________________________________________ 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 Nov 16 15:12:32 2004 Date: Tue, 16 Nov 2004 14:09:16 -0600 From: Joey Ramion Subject: Re: [sqr-users] Splitting a Row from a file unstring $RecordData by $sepchar into - $DestId - $TransPayTot with $sepchar defined as "|" I am assuming you know how to read the file into $RecordData. Hope this helps. Joey On Wed, 17 Nov 2004 01:28:15 +0530, Murty Mirthipati Venkata Suryanarayan wrote: > Guys, > > I am trying to read a delimited file ( delimiter | symbol ) and put into variables. Please help me to do in a simple way. > > Thanks a lot. > > With Best Regards, > > Murty ;) > > 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 > > > -- Joey Ramion joey.ramion@gmail.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 Nov 16 15:24:40 2004 From: "Murty Mirthipati Venkata Suryanarayan" Date: Wed, 17 Nov 2004 01:59:33 +0530 Subject: RE: [sqr-users] Splitting a Row from a file This is a multi-part message in MIME format... ----=_NextPart_ST_01_53_21_Wednesday_November_17_2004_2082 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 VGhhbmtzIGEgbG90LCBndXlzLg0KVGhhbmtzIGZvciB0aGUgcXVpY2sgcmVz cG9uc2UgdG9vLg0KIA0KV2l0aCBCZXN0IFJlZ2FyZHMsDQpNdXJ0eSA7KQ0K IA0KDQoJLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0gDQoJRnJvbTogSm9l eSBSYW1pb24gW21haWx0bzpqb2V5LnJhbWlvbkBnbWFpbC5jb21dIA0KCVNl bnQ6IFR1ZSAxNi1Ob3YtMjAwNCAxNTowOSANCglUbzogVGhpcyBsaXN0IGlz IGZvciBkaXNjdXNzaW9uIGFib3V0IHRoZSBTUVIgZGF0YWJhc2UgcmVwb3J0 aW5nIGxhbmd1YWdlZnJvbSBIeXBlcmlvbiBTb2x1dGlvbnMuIA0KCUNjOiAN CglTdWJqZWN0OiBSZTogW3Nxci11c2Vyc10gU3BsaXR0aW5nIGEgUm93IGZy b20gYSBmaWxlDQoJDQoJDQoNCgl1bnN0cmluZyAkUmVjb3JkRGF0YSBieSAk c2VwY2hhciBpbnRvIC0NCgkgICAgICAkRGVzdElkIC0NCgkgICAgICAkVHJh bnNQYXlUb3QNCgkNCgl3aXRoICRzZXBjaGFyIGRlZmluZWQgYXMgInwiDQoJ DQoJSSBhbSBhc3N1bWluZyB5b3Uga25vdyBob3cgdG8gcmVhZCB0aGUgZmls ZSBpbnRvICRSZWNvcmREYXRhLg0KCQ0KCUhvcGUgdGhpcyBoZWxwcy4NCgkN CglKb2V5DQoJDQoJDQoJT24gV2VkLCAxNyBOb3YgMjAwNCAwMToyODoxNSAr MDUzMCwgTXVydHkgTWlydGhpcGF0aSBWZW5rYXRhDQoJU3VyeWFuYXJheWFu IDxtdXJ0eW1AaGV4YXdhcmUuY29tPiB3cm90ZToNCgk+IEd1eXMsDQoJPg0K CT4gSSBhbSB0cnlpbmcgdG8gcmVhZCBhIGRlbGltaXRlZCBmaWxlICggZGVs aW1pdGVyIHwgc3ltYm9sICkgYW5kIHB1dCBpbnRvIHZhcmlhYmxlcy4gUGxl YXNlIGhlbHAgbWUgdG8gZG8gaW4gYSBzaW1wbGUgd2F5Lg0KCT4NCgk+IFRo YW5rcyBhIGxvdC4NCgk+DQoJPiBXaXRoIEJlc3QgUmVnYXJkcywNCgk+DQoJ PiBNdXJ0eSA7KQ0KCT4NCgk+IERJU0NMQUlNRVI6DQoJPiBJbmZvcm1hdGlv biBjb250YWluZWQgYW5kIHRyYW5zbWl0dGVkIGJ5IHRoaXMgRS1NQUlMIGlz IHByb3ByaWV0YXJ5IHRvDQoJPiBIZXhhd2FyZSBUZWNobm9sb2dpZXMgYW5k IGlzIGludGVuZGVkIGZvciB1c2Ugb25seSBieSB0aGUgaW5kaXZpZHVhbCBv cg0KCT4gZW50aXR5IHRvIHdoaWNoIGl0IGlzIGFkZHJlc3NlZCBhbmQgbWF5 IGNvbnRhaW4gaW5mb3JtYXRpb24gdGhhdCBpcw0KCT4gcHJpdmlsZWdlZCwg Y29uZmlkZW50aWFsIG9yIGV4ZW1wdCBmcm9tIGRpc2Nsb3N1cmUgdW5kZXIg YXBwbGljYWJsZSBsYXcuDQoJPiBJZiB0aGlzIGlzIGEgZm9yd2FyZGVkIG1l c3NhZ2UsIHRoZSBjb250ZW50IG9mIHRoaXMgRS1NQUlMIG1heSBub3QgaGF2 ZQ0KCT4gYmVlbiBzZW50IHdpdGggdGhlIGF1dGhvcml0eSBvZiB0aGUgQ29t cGFueS4gSWYgeW91IGFyZSBub3QgdGhlIGludGVuZGVkDQoJPiByZWNpcGll bnQsIGFuIGFnZW50IG9mIHRoZSBpbnRlbmRlZCByZWNpcGllbnQgb3IgYSBw ZXJzb24gcmVzcG9uc2libGUNCgk+IGZvciBkZWxpdmVyaW5nIHRoZSBpbmZv cm1hdGlvbiB0byB0aGUgbmFtZWQgcmVjaXBpZW50LCB5b3UgYXJlIG5vdGlm aWVkDQoJPiB0aGF0IGFueSB1c2UsIGRpc3RyaWJ1dGlvbiwgdHJhbnNtaXNz aW9uLCBwcmludGluZywgY29weWluZyBvcg0KCT4gZGlzc2VtaW5hdGlvbiBv ZiB0aGlzIGluZm9ybWF0aW9uIGluIGFueSB3YXkgb3IgaW4gYW55IG1hbm5l ciBpcw0KCT4gc3RyaWN0bHkgcHJvaGliaXRlZC4gSWYgeW91IGhhdmUgcmVj ZWl2ZWQgdGhpcyBjb21tdW5pY2F0aW9uIGluIGVycm9yLA0KCT4gcGxlYXNl IGRlbGV0ZSB0aGlzIG1haWwgJiBub3RpZnkgdXMgaW1tZWRpYXRlbHkgYXQN Cgk+IGFkbWluY2huQGhleGF3YXJlLmNvbS4NCgk+IF9fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fDQoJPiBzcXItdXNl cnMgbWFpbGluZyBsaXN0DQoJPiBzcXItdXNlcnNAc3FydWcub3JnDQoJPiBo dHRwOi8vd3d3LnNxcnVnLm9yZy9tYWlsbWFuL2xpc3RpbmZvL3Nxci11c2Vy cw0KCT4NCgk+DQoJPg0KCQ0KCQ0KCS0tDQoJSm9leSBSYW1pb24NCglqb2V5 LnJhbWlvbkBnbWFpbC5jb20NCgkNCglfX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fXw0KCXNxci11c2VycyBtYWlsaW5n IGxpc3QNCglzcXItdXNlcnNAc3FydWcub3JnDQoJaHR0cDovL3d3dy5zcXJ1 Zy5vcmcvbWFpbG1hbi9saXN0aW5mby9zcXItdXNlcnMNCgkNCgkNCg0KDQpE SVNDTEFJTUVSOg0KSW5mb3JtYXRpb24gY29udGFpbmVkIGFuZCB0cmFuc21p dHRlZCBieSB0aGlzIEUtTUFJTCBpcyBwcm9wcmlldGFyeSB0bw0KSGV4YXdh cmUgVGVjaG5vbG9naWVzIGFuZCBpcyBpbnRlbmRlZCBmb3IgdXNlIG9ubHkg YnkgdGhlIGluZGl2aWR1YWwgb3INCmVudGl0eSB0byB3aGljaCBpdCBpcyBh ZGRyZXNzZWQgYW5kIG1heSBjb250YWluIGluZm9ybWF0aW9uIHRoYXQgaXMN CnByaXZpbGVnZWQsIGNvbmZpZGVudGlhbCBvciBleGVtcHQgZnJvbSBkaXNj bG9zdXJlIHVuZGVyIGFwcGxpY2FibGUgbGF3Lg0KSWYgdGhpcyBpcyBhIGZv cndhcmRlZCBtZXNzYWdlLCB0aGUgY29udGVudCBvZiB0aGlzIEUtTUFJTCBt YXkgbm90IGhhdmUNCmJlZW4gc2VudCB3aXRoIHRoZSBhdXRob3JpdHkgb2Yg dGhlIENvbXBhbnkuIElmIHlvdSBhcmUgbm90IHRoZSBpbnRlbmRlZA0KcmVj aXBpZW50LCBhbiBhZ2VudCBvZiB0aGUgaW50ZW5kZWQgcmVjaXBpZW50IG9y IGEgcGVyc29uIHJlc3BvbnNpYmxlDQpmb3IgZGVsaXZlcmluZyB0aGUgaW5m b3JtYXRpb24gdG8gdGhlIG5hbWVkIHJlY2lwaWVudCwgeW91IGFyZSBub3Rp ZmllZA0KdGhhdCBhbnkgdXNlLCBkaXN0cmlidXRpb24sIHRyYW5zbWlzc2lv biwgcHJpbnRpbmcsIGNvcHlpbmcgb3INCmRpc3NlbWluYXRpb24gb2YgdGhp cyBpbmZvcm1hdGlvbiBpbiBhbnkgd2F5IG9yIGluIGFueSBtYW5uZXIgaXMN CnN0cmljdGx5IHByb2hpYml0ZWQuIElmIHlvdSBoYXZlIHJlY2VpdmVkIHRo aXMgY29tbXVuaWNhdGlvbiBpbiBlcnJvciwNCnBsZWFzZSBkZWxldGUgdGhp cyBtYWlsICYgbm90aWZ5IHVzIGltbWVkaWF0ZWx5IGF0DQphZG1pbmNobkBo ZXhhd2FyZS5jb20u ----=_NextPart_ST_01_53_21_Wednesday_November_17_2004_2082 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_ST_01_53_21_Wednesday_November_17_2004_2082 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_ST_01_53_21_Wednesday_November_17_2004_2082-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Nov 17 10:06:08 2004 From: "radhika reddy" Date: Wed, 17 Nov 2004 09:04:33 -0600 Subject: [sqr-users] ORA-00980: synonym translation is no longer valid Hi, I ran my sqr yesterday and it worked fine. Today when i query one of the tables i get the following error:- (SQR 5528) ORACLE OCIStmtExecute error 980 in cursor 12: ORA-00980: synonym translation is no longer valid Has anybody seen this kind of error? Thanks. _________________________________________________________________ Check out Election 2004 for up-to-date election news, plus voter tools and more! http://special.msn.com/msn/election2004.armx _______________________________________________ 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 Nov 17 10:16:22 2004 Date: Wed, 17 Nov 2004 10:14:03 -0500 From: "Pan, Zhen" Subject: [sqr-users] query Hi=20 I have a query that I was unable to write. It is simple, but my brain is not working now... For each student, there are one or many item types. So we are identify if the student has one (say 90004), however, if the student has any 3 other item types(say 90001,90002,90003), even s/he has that 90004, we do not need it.=20 Here is the query select distinct A.PRSN_UNIV_ID,=20 A.PRSN_PRM_FULL_NM,=20 A.STU_acpt_BAL_AMT ,=20=20 A.acad_term_cd, A.STU_ITM_TYP_NBR, a.inst_cd FROM DSS_RDS.FA_STU_AWD_PROC_VW_GT A, DSS_RDS.FA_STU_AWD_PROC_VW_GT B where A.prsn_univ_id=3Db.prsn_univ_id and a.STU_ITM_TYP_NBR not in('90001','90002','90003')=20 and B.STU_ITM_TYP_NBR=3D'90004'=20 =20 I also tried select distinct A.PRSN_UNIV_ID,=20 A.PRSN_PRM_FULL_NM,=20 A.STU_acpt_BAL_AMT ,=20=20 A.acad_term_cd, A.STU_ITM_TYP_NBR, a.inst_cd FROM DSS_RDS.FA_STU_AWD_PROC_VW_GT A where A.prsn_univ_id IN (select PRSN_UNIV_ID from DSS_RDS.FA_STU_AWD_PROC_VW_GT where STU_ITM_TYP_NBR not in('90001','90002','90003'))=20 and A.STU_ITM_TYP_NBR=3D'90004'=20 =20 Both failed(they both pick the students wit/without the 3 item type that I do not want). Any suggestion is appreciated. Thanks! =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 Wed Nov 17 10:23:23 2004 Subject: RE: [sqr-users] ORA-00980: synonym translation is no longer valid Date: Wed, 17 Nov 2004 10:21:00 -0500 From: "Ven Garlapati" Reason:The synonym used is based on a table, view, or synonym that no longer exists. Your DBA might have dropped it or changed it ... Thanks. -----Original Message----- From: sqr-users-bounces+vxg=3Dcreditacceptance.com@sqrug.org [mailto:sqr-users-bounces+vxg=3Dcreditacceptance.com@sqrug.org] On Behalf Of radhika reddy Sent: Wednesday, November 17, 2004 10:05 AM To: sqr-users@sqrug.org Subject: [sqr-users] ORA-00980: synonym translation is no longer valid Hi, I ran my sqr yesterday and it worked fine. Today when i query one of the tables i get the following error:- (SQR 5528) ORACLE OCIStmtExecute error 980 in cursor 12: ORA-00980: synonym translation is no longer valid Has anybody seen this kind of error? Thanks. _________________________________________________________________ Check out Election 2004 for up-to-date election news, plus voter tools and more! http://special.msn.com/msn/election2004.armx _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 17 10:26:27 2004 From: "radhika reddy" Subject: RE: [sqr-users] ORA-00980: synonym translation is no longer valid Date: Wed, 17 Nov 2004 09:20:00 -0600 I got the answer. Database refresh is going on. Thanks. >From: "radhika reddy" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: sqr-users@sqrug.org >Subject: [sqr-users] ORA-00980: synonym translation is no longer valid >Date: Wed, 17 Nov 2004 09:04:33 -0600 > >Hi, > > I ran my sqr yesterday and it worked fine. Today when i query one of >the tables i get the following error:- > >(SQR 5528) ORACLE OCIStmtExecute error 980 in cursor 12: > ORA-00980: synonym translation is no longer valid > >Has anybody seen this kind of error? > >Thanks. > >_________________________________________________________________ >Check out Election 2004 for up-to-date election news, plus voter tools and >more! http://special.msn.com/msn/election2004.armx > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Nov 17 10:28:23 2004 Date: Wed, 17 Nov 2004 10:27:29 -0500 From: "Larry Roux" Subject: Re: [sqr-users] query try select distinct A.PRSN_UNIV_ID, A.PRSN_PRM_FULL_NM, A.STU_acpt_BAL_AMT , A.acad_term_cd, A.STU_ITM_TYP_NBR, a.inst_cd FROM DSS_RDS.FA_STU_AWD_PROC_VW_GT A, DSS_RDS.FA_STU_AWD_PROC_VW_GT B where A.prsn_univ_id=b.prsn_univ_id and B.STU_ITM_TYP_NBR='90004' and A.PRSN_UNIV_ID not in (select X.PRSN_UNIV_ID from DSS_RDS.FA_STU_AWD_PROC_VW_GT x where x.PRSN_UNIV_ID = a.PRSN_UNIV_ID and x.STU_ITM_TYP_NBR in('90001','90002','90003')) Larry Roux Syracuse University lroux@syr.edu >>> zhpan@indiana.edu 11/17/2004 10:14:03 AM >>> Hi I have a query that I was unable to write. It is simple, but my brain is not working now... For each student, there are one or many item types. So we are identify if the student has one (say 90004), however, if the student has any 3 other item types(say 90001,90002,90003), even s/he has that 90004, we do not need it. Here is the query select distinct A.PRSN_UNIV_ID, A.PRSN_PRM_FULL_NM, A.STU_acpt_BAL_AMT , A.acad_term_cd, A.STU_ITM_TYP_NBR, a.inst_cd FROM DSS_RDS.FA_STU_AWD_PROC_VW_GT A, DSS_RDS.FA_STU_AWD_PROC_VW_GT B where A.prsn_univ_id=b.prsn_univ_id and a.STU_ITM_TYP_NBR not in('90001','90002','90003') and B.STU_ITM_TYP_NBR='90004' I also tried select distinct A.PRSN_UNIV_ID, A.PRSN_PRM_FULL_NM, A.STU_acpt_BAL_AMT , A.acad_term_cd, A.STU_ITM_TYP_NBR, a.inst_cd FROM DSS_RDS.FA_STU_AWD_PROC_VW_GT A where A.prsn_univ_id IN (select PRSN_UNIV_ID from DSS_RDS.FA_STU_AWD_PROC_VW_GT where STU_ITM_TYP_NBR not in('90001','90002','90003')) and A.STU_ITM_TYP_NBR='90004' Both failed(they both pick the students wit/without the 3 item type that I do not want). Any suggestion is 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 Wed Nov 17 10:35:00 2004 From: Bob Stone Subject: RE: [sqr-users] query Date: Wed, 17 Nov 2004 09:32:49 -0600 There's a more elegant way to write this without making the limiting select in the FROM clause, but this should work. The idea is that you want to exclude those who have multiple STU_ITM_TYP_NBR. So you look at the count(*) (i put STU_ITM_TYP_NBR so you see what i'm doing), and only grab those 'having count(*) < 2'. Then you cross that with the FA_STU_AWD_PROC_VW_GT to print out what you want. *you might need more things in the where clause depending on what exactly you're lookig at. SELECT distinct a.prsn_univ_id, a.prsn_prm_full_nm, a.stu_acpt_bal_amt, a.acad_term_cd, a.STU_ITM_TYP_NBR, a.inst_cd FROM dss_rds.fas_stu_awd_proc_vw_gt a, (select prsn_univ_id, count(STU_ITM_TYP_NBR) from dss_rds.fa_stu_awd_proc_vw_gt group by prsn_univ_id having count(STU_ITM_TYP_NBR) < 2) b WHERE a.prsn_univ_id = b.prsn_univ_id The problem you had with both of them was you were looking at the ID where there existed a non 90001-3 ITM_TYP_NBR. So if a student had 90001, 90003, 90004 you'd grab all 3 of his things because his ID had a match on a non 90001-3 id (namely 90004). -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org]On Behalf Of Pan, Zhen Sent: Wednesday, November 17, 2004 9:14 AM To: sqr-users@sqrug.org Subject: [sqr-users] query Hi I have a query that I was unable to write. It is simple, but my brain is not working now... For each student, there are one or many item types. So we are identify if the student has one (say 90004), however, if the student has any 3 other item types(say 90001,90002,90003), even s/he has that 90004, we do not need it. Here is the query select distinct A.PRSN_UNIV_ID, A.PRSN_PRM_FULL_NM, A.STU_acpt_BAL_AMT , A.acad_term_cd, A.STU_ITM_TYP_NBR, a.inst_cd FROM DSS_RDS.FA_STU_AWD_PROC_VW_GT A, DSS_RDS.FA_STU_AWD_PROC_VW_GT B where A.prsn_univ_id=b.prsn_univ_id and a.STU_ITM_TYP_NBR not in('90001','90002','90003') and B.STU_ITM_TYP_NBR='90004' I also tried select distinct A.PRSN_UNIV_ID, A.PRSN_PRM_FULL_NM, A.STU_acpt_BAL_AMT , A.acad_term_cd, A.STU_ITM_TYP_NBR, a.inst_cd FROM DSS_RDS.FA_STU_AWD_PROC_VW_GT A where A.prsn_univ_id IN (select PRSN_UNIV_ID from DSS_RDS.FA_STU_AWD_PROC_VW_GT where STU_ITM_TYP_NBR not in('90001','90002','90003')) and A.STU_ITM_TYP_NBR='90004' Both failed(they both pick the students wit/without the 3 item type that I do not want). Any suggestion is 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 Wed Nov 17 10:44:44 2004 From: "the dragon" Subject: Re: [sqr-users] query Date: Wed, 17 Nov 2004 09:40:27 -0600 or.... select distinct A.PRSN_UNIV_ID, A.PRSN_PRM_FULL_NM, A.STU_acpt_BAL_AMT , A.acad_term_cd, A.STU_ITM_TYP_NBR, a.inst_cd FROM DSS_RDS.FA_STU_AWD_PROC_VW_GT A, DSS_RDS.FA_STU_AWD_PROC_VW_GT B where A.prsn_univ_id = b.prsn_univ_id and B.STU_ITM_TYP_NBR = '90004' and not exists (select 1 from DSS_RDS.FA_STU_AWD_PROC_VW_GT where PRSN_UNIV_ID = a.PRSN_UNIV_ID and STU_ITM_TYP_NBR in ('90001','90002','90003') ) might be faster. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- try select distinct A.PRSN_UNIV_ID, A.PRSN_PRM_FULL_NM, A.STU_acpt_BAL_AMT , A.acad_term_cd, A.STU_ITM_TYP_NBR, a.inst_cd FROM DSS_RDS.FA_STU_AWD_PROC_VW_GT A, DSS_RDS.FA_STU_AWD_PROC_VW_GT B where A.prsn_univ_id=b.prsn_univ_id and B.STU_ITM_TYP_NBR='90004' and A.PRSN_UNIV_ID not in (select X.PRSN_UNIV_ID from DSS_RDS.FA_STU_AWD_PROC_VW_GT x where x.PRSN_UNIV_ID = a.PRSN_UNIV_ID and x.STU_ITM_TYP_NBR in('90001','90002','90003')) 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 Wed Nov 17 13:12:04 2004 Subject: RE: [sqr-users] query Date: Wed, 17 Nov 2004 13:11:23 -0500 From: "Pan, Zhen" Thanks guys. It worked! -----Original Message----- From: sqr-users-bounces+zhpan=3Dindiana.edu@sqrug.org [mailto:sqr-users-bounces+zhpan=3Dindiana.edu@sqrug.org] On Behalf Of the dragon Sent: Wednesday, November 17, 2004 10:40 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] query or.... select distinct A.PRSN_UNIV_ID, A.PRSN_PRM_FULL_NM, A.STU_acpt_BAL_AMT , A.acad_term_cd, A.STU_ITM_TYP_NBR, a.inst_cd FROM DSS_RDS.FA_STU_AWD_PROC_VW_GT A, DSS_RDS.FA_STU_AWD_PROC_VW_GT B where A.prsn_univ_id =3D b.prsn_univ_id and B.STU_ITM_TYP_NBR =3D '90004' and not exists (select 1 from DSS_RDS.FA_STU_AWD_PROC_VW_GT where PRSN_UNIV_ID =3D a.PRSN_UNIV_ID and STU_ITM_TYP_NBR in ('90001','90002','90003') ) might be faster. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your=20 services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be=20 recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you=20 can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- try select distinct A.PRSN_UNIV_ID, A.PRSN_PRM_FULL_NM, A.STU_acpt_BAL_AMT , A.acad_term_cd, A.STU_ITM_TYP_NBR, a.inst_cd FROM DSS_RDS.FA_STU_AWD_PROC_VW_GT A, DSS_RDS.FA_STU_AWD_PROC_VW_GT B where A.prsn_univ_id=3Db.prsn_univ_id and B.STU_ITM_TYP_NBR=3D'90004' and A.PRSN_UNIV_ID not in (select X.PRSN_UNIV_ID from DSS_RDS.FA_STU_AWD_PROC_VW_GT x where x.PRSN_UNIV_ID =3D a.PRSN_UNIV_ID and x.STU_ITM_TYP_NBR in('90001','90002','90003')) Larry Roux Syracuse University lroux@syr.edu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Nov 17 14:20:12 2004 From: "radhika reddy" Date: Wed, 17 Nov 2004 13:18:54 -0600 Subject: [sqr-users] Renaming oubound file Hi, I am trying to rename my outbound file from Training.txt to Trainingxxxxxxxx where x's is MMDDYYYY. i am trying to do something like this: LET $SYSTEMDATE = EDIT(SUBSTR($sysdatetime,1,11),'MMDDYYYY') display $SYSTEMDATE ! here i am able to get 11172004 let #ret_cd = rename($File2,$NEW_FILENAME) if #ret_cd <> 0 show 'Error Renaming ' $File2 ' to ' $New_fileName ' Ret_cd = ' #ret_cd end-if where my $file2 is 'C:\Documents and Settings\lkra\Desktop\Training.txt'. I am getting the following error:- ERROR Renaming C:\Documents and Settings\lkra\Desktop\Training.txt to C:\Documents and Settings\lkra\Desktop\Training.txt11172004 Ret_cd = 13.000000 Thanks _________________________________________________________________ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Nov 17 14:26:21 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] Renaming oubound file Date: Wed, 17 Nov 2004 11:23:15 -0800 You can't append the date to the end of the file name; extensions are only three characters. You want to insert the date before the last period in the filename string. -----Original Message----- From: radhika reddy [mailto:radhika_05@hotmail.com] Sent: Wednesday, November 17, 2004 11:19 AM To: sqr-users@sqrug.org Subject: [sqr-users] Renaming oubound file Hi, I am trying to rename my outbound file from Training.txt to Trainingxxxxxxxx where x's is MMDDYYYY. i am trying to do something like this: LET $SYSTEMDATE = EDIT(SUBSTR($sysdatetime,1,11),'MMDDYYYY') display $SYSTEMDATE ! here i am able to get 11172004 let #ret_cd = rename($File2,$NEW_FILENAME) if #ret_cd <> 0 show 'Error Renaming ' $File2 ' to ' $New_fileName ' Ret_cd = ' #ret_cd end-if where my $file2 is 'C:\Documents and Settings\lkra\Desktop\Training.txt'. I am getting the following error:- ERROR Renaming C:\Documents and Settings\lkra\Desktop\Training.txt to C:\Documents and Settings\lkra\Desktop\Training.txt11172004 Ret_cd = 13.000000 Thanks _________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ 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 Nov 17 14:36:33 2004 From: "Peter Burton" Date: Wed, 17 Nov 2004 14:33:17 -0500 Subject: RE: [sqr-users] Renaming oubound file Error 13 is "Access Denied" -- the file could still be open by a process and therefore you cannot rename it. -----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 radhika reddy Sent: Wednesday, November 17, 2004 2:19 PM To: sqr-users@sqrug.org Subject: [sqr-users] Renaming oubound file Hi, I am trying to rename my outbound file from Training.txt to Trainingxxxxxxxx where x's is MMDDYYYY. i am trying to do something like this: LET $SYSTEMDATE =3D EDIT(SUBSTR($sysdatetime,1,11),'MMDDYYYY') display $SYSTEMDATE ! here i am able to get=20 11172004 let #ret_cd =3D rename($File2,$NEW_FILENAME) if #ret_cd <> 0 show 'Error Renaming ' $File2 ' to ' $New_fileName ' Ret_cd =3D '=20 #ret_cd end-if where my $file2 is 'C:\Documents and Settings\lkra\Desktop\Training.txt'. I am getting the following error:- ERROR Renaming C:\Documents and Settings\lkra\Desktop\Training.txt to C:\Documents and Settings\lkra\Desktop\Training.txt11172004 Ret_cd =3D 13.000000 Thanks _________________________________________________________________ Don't just search. Find. Check out the new MSN Search!=20 http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ************************************************************************ 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 Wed Nov 17 14:45:08 2004 From: "radhika reddy" Subject: RE: [sqr-users] Renaming oubound file Date: Wed, 17 Nov 2004 13:43:48 -0600 it's not after extension. it is like this training17112004.txt. LET $SYSTEMDATE = EDIT(SUBSTR($sysdatetime,1,11),'MMDDYYYY') display $SYSTEMDATE ! here i am able to get 11172004 LET $NEW_FILENAME = $File2 || $SYSTEMDATE let #ret_cd = rename($File2,$NEW_FILENAME) if #ret_cd <> 0 show 'Error Renaming ' $File2 ' to ' $New_fileName ' Ret_cd = ' #ret_cd end-if where my $file2 is 'C:\Documents and Settings\lkra\Desktop\Training.txt'. I am getting the following error:- ERROR Renaming C:\Documents and Settings\lkra\Desktop\Training.txt to C:\Documents and Settings\lkra\Desktop\Training.txt11172004 Ret_cd = 13.000000 >From: "Alexander, Steve" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "'This list is for discussion about the SQR database >reportinglanguagefrom Hyperion Solutions.'" >Subject: RE: [sqr-users] Renaming oubound file >Date: Wed, 17 Nov 2004 11:23:15 -0800 > >You can't append the date to the end of the file name; extensions are only >three characters. You want to insert the date before the last period in >the >filename string. > >-----Original Message----- >From: radhika reddy [mailto:radhika_05@hotmail.com] >Sent: Wednesday, November 17, 2004 11:19 AM >To: sqr-users@sqrug.org >Subject: [sqr-users] Renaming oubound file > > >Hi, > > I am trying to rename my outbound file from Training.txt to >Trainingxxxxxxxx where x's is MMDDYYYY. i am trying to do something like >this: > >LET $SYSTEMDATE = EDIT(SUBSTR($sysdatetime,1,11),'MMDDYYYY') >display $SYSTEMDATE ! here i am able to get >11172004 > >let #ret_cd = rename($File2,$NEW_FILENAME) > if #ret_cd <> 0 > show 'Error Renaming ' $File2 ' to ' $New_fileName ' Ret_cd = ' >#ret_cd > end-if > >where my $file2 is 'C:\Documents and Settings\lkra\Desktop\Training.txt'. > >I am getting the following error:- > >ERROR Renaming C:\Documents and Settings\lkra\Desktop\Training.txt to >C:\Documents and Settings\lkra\Desktop\Training.txt11172004 Ret_cd = >13.000000 > >Thanks > >_________________________________________________________________ >Don't just search. Find. Check out the new MSN Search! >http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Nov 17 14:48:34 2004 From: "Murty Mirthipati Venkata Suryanarayan" Date: Thu, 18 Nov 2004 01:23:11 +0530 Subject: RE: [sqr-users] Renaming oubound file This is a multi-part message in MIME format... ----=_NextPart_ST_01_16_59_Thursday_November_18_2004_27549 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Q2hlY2sgaW5zaWRlIHVyIGNvZGUgd2hldGhlciB0aGUgZmlsZSBpcyBjbG9z ZWQgYmVmb3JlIHJlbmFtaW5nIHRoZSBmaWxlIG5hbWUuDQogDQogDQpXaXRo IEJlc3QgUmVnYXJkcywNCk11cnR5IDspDQoNCgktLS0tLU9yaWdpbmFsIE1l c3NhZ2UtLS0tLSANCglGcm9tOiByYWRoaWthIHJlZGR5IFttYWlsdG86cmFk aGlrYV8wNUBob3RtYWlsLmNvbV0gDQoJU2VudDogV2VkIDE3LU5vdi0yMDA0 IDE0OjE4IA0KCVRvOiBzcXItdXNlcnNAc3FydWcub3JnIA0KCUNjOiANCglT dWJqZWN0OiBbc3FyLXVzZXJzXSBSZW5hbWluZyBvdWJvdW5kIGZpbGUNCgkN CgkNCg0KCUhpLA0KCQ0KCSAgIEkgYW0gdHJ5aW5nIHRvIHJlbmFtZSBteSBv dXRib3VuZCBmaWxlIGZyb20gVHJhaW5pbmcudHh0ICB0byANCglUcmFpbmlu Z3h4eHh4eHh4IHdoZXJlIHgncyBpcyBNTUREWVlZWS4gaSBhbSB0cnlpbmcg dG8gZG8gc29tZXRoaW5nIGxpa2UNCgl0aGlzOg0KCQ0KCUxFVCAkU1lTVEVN REFURSA9IEVESVQoU1VCU1RSKCRzeXNkYXRldGltZSwxLDExKSwnTU1ERFlZ WVknKQ0KCWRpc3BsYXkgJFNZU1RFTURBVEUgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAhIGhlcmUgaSBhbSBhYmxlIHRvIGdldA0KCTExMTcy MDA0DQoJDQoJbGV0ICNyZXRfY2QgPSByZW5hbWUoJEZpbGUyLCRORVdfRklM RU5BTUUpDQoJICAgaWYgI3JldF9jZCA8PiAwDQoJICAgICAgc2hvdyAnRXJy b3IgUmVuYW1pbmcgJyAkRmlsZTIgJyB0byAnICROZXdfZmlsZU5hbWUgJyBS ZXRfY2QgPSAnDQoJI3JldF9jZA0KCSAgZW5kLWlmDQoJDQoJd2hlcmUgbXkg JGZpbGUyIGlzICdDOlxEb2N1bWVudHMgYW5kIFNldHRpbmdzXGxrcmFcRGVz a3RvcFxUcmFpbmluZy50eHQnLg0KCQ0KCUkgYW0gZ2V0dGluZyB0aGUgZm9s bG93aW5nIGVycm9yOi0NCgkNCglFUlJPUiBSZW5hbWluZyBDOlxEb2N1bWVu dHMgYW5kIFNldHRpbmdzXGxrcmFcRGVza3RvcFxUcmFpbmluZy50eHQgdG8N CglDOlxEb2N1bWVudHMgYW5kIFNldHRpbmdzXGxrcmFcRGVza3RvcFxUcmFp bmluZy50eHQxMTE3MjAwNCBSZXRfY2QgPQ0KCTEzLjAwMDAwMA0KCQ0KCVRo YW5rcw0KCQ0KCV9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fDQoJRG9u4oCZdCBqdXN0 IHNlYXJjaC4gRmluZC4gQ2hlY2sgb3V0IHRoZSBuZXcgTVNOIFNlYXJjaCEN CglodHRwOi8vc2VhcmNoLm1zbi5jbGljay11cmwuY29tL2dvL29ubTAwMjAw NjM2YXZlL2RpcmVjdC8wMS8NCgkNCgkNCglfX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fXw0KCXNxci11c2VycyBtYWls aW5nIGxpc3QNCglzcXItdXNlcnNAc3FydWcub3JnDQoJaHR0cDovL3d3dy5z cXJ1Zy5vcmcvbWFpbG1hbi9saXN0aW5mby9zcXItdXNlcnMNCgkNCgkNCg0K DQpESVNDTEFJTUVSOg0KSW5mb3JtYXRpb24gY29udGFpbmVkIGFuZCB0cmFu c21pdHRlZCBieSB0aGlzIEUtTUFJTCBpcyBwcm9wcmlldGFyeSB0bw0KSGV4 YXdhcmUgVGVjaG5vbG9naWVzIGFuZCBpcyBpbnRlbmRlZCBmb3IgdXNlIG9u bHkgYnkgdGhlIGluZGl2aWR1YWwgb3INCmVudGl0eSB0byB3aGljaCBpdCBp cyBhZGRyZXNzZWQgYW5kIG1heSBjb250YWluIGluZm9ybWF0aW9uIHRoYXQg aXMNCnByaXZpbGVnZWQsIGNvbmZpZGVudGlhbCBvciBleGVtcHQgZnJvbSBk aXNjbG9zdXJlIHVuZGVyIGFwcGxpY2FibGUgbGF3Lg0KSWYgdGhpcyBpcyBh IGZvcndhcmRlZCBtZXNzYWdlLCB0aGUgY29udGVudCBvZiB0aGlzIEUtTUFJ TCBtYXkgbm90IGhhdmUNCmJlZW4gc2VudCB3aXRoIHRoZSBhdXRob3JpdHkg b2YgdGhlIENvbXBhbnkuIElmIHlvdSBhcmUgbm90IHRoZSBpbnRlbmRlZA0K cmVjaXBpZW50LCBhbiBhZ2VudCBvZiB0aGUgaW50ZW5kZWQgcmVjaXBpZW50 IG9yIGEgcGVyc29uIHJlc3BvbnNpYmxlDQpmb3IgZGVsaXZlcmluZyB0aGUg aW5mb3JtYXRpb24gdG8gdGhlIG5hbWVkIHJlY2lwaWVudCwgeW91IGFyZSBu b3RpZmllZA0KdGhhdCBhbnkgdXNlLCBkaXN0cmlidXRpb24sIHRyYW5zbWlz c2lvbiwgcHJpbnRpbmcsIGNvcHlpbmcgb3INCmRpc3NlbWluYXRpb24gb2Yg dGhpcyBpbmZvcm1hdGlvbiBpbiBhbnkgd2F5IG9yIGluIGFueSBtYW5uZXIg aXMNCnN0cmljdGx5IHByb2hpYml0ZWQuIElmIHlvdSBoYXZlIHJlY2VpdmVk IHRoaXMgY29tbXVuaWNhdGlvbiBpbiBlcnJvciwNCnBsZWFzZSBkZWxldGUg dGhpcyBtYWlsICYgbm90aWZ5IHVzIGltbWVkaWF0ZWx5IGF0DQphZG1pbmNo bkBoZXhhd2FyZS5jb20u ----=_NextPart_ST_01_16_59_Thursday_November_18_2004_27549 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_ST_01_16_59_Thursday_November_18_2004_27549 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_ST_01_16_59_Thursday_November_18_2004_27549-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Nov 17 14:54:33 2004 From: "Murty Mirthipati Venkata Suryanarayan" Date: Thu, 18 Nov 2004 01:26:45 +0530 Subject: RE: [sqr-users] Renaming oubound file This is a multi-part message in MIME format... ----=_NextPart_ST_01_20_33_Thursday_November_18_2004_21033 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 QnV0IHNob3cgc3BlYWtzIGRpZmZlcmVudGx5Lg0KIA0KV2hhdCBBbGV4YW5k ZXIgdG9sZCBtaWdodCBhbHNvIGJlIGNvcnJlY3QuIA0KRmlyc3Qgc3RyaXAg b2YgLnR4dCBmcm9tICRmaWxlMiBhbmQgdGhlbiBhcHBlbmQgdGhlIGRhdGUg KyAudHh0DQpIb3BlIHRoaXMgbWFrZXMgc29tZSBzZW5zZS4uLg0KDQoJLS0t LS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0gDQoJRnJvbTogcmFkaGlrYSByZWRk eSBbbWFpbHRvOnJhZGhpa2FfMDVAaG90bWFpbC5jb21dIA0KCVNlbnQ6IFdl ZCAxNy1Ob3YtMjAwNCAxNDo0MyANCglUbzogc3FyLXVzZXJzQHNxcnVnLm9y ZyANCglDYzogDQoJU3ViamVjdDogUkU6IFtzcXItdXNlcnNdIFJlbmFtaW5n IG91Ym91bmQgZmlsZQ0KCQ0KCQ0KDQoNCg0KCWl0J3Mgbm90IGFmdGVyIGV4 dGVuc2lvbi4gaXQgaXMgbGlrZSB0aGlzIHRyYWluaW5nMTcxMTIwMDQudHh0 Lg0KCQ0KCUxFVCAkU1lTVEVNREFURSA9IEVESVQoU1VCU1RSKCRzeXNkYXRl dGltZSwxLDExKSwnTU1ERFlZWVknKQ0KCWRpc3BsYXkgJFNZU1RFTURBVEUg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAhIGhlcmUgaSBhbSBh YmxlIHRvIGdldA0KCTExMTcyMDA0DQoJTEVUICRORVdfRklMRU5BTUUgPSAk RmlsZTIgfHwgJFNZU1RFTURBVEUNCglsZXQgI3JldF9jZCA9IHJlbmFtZSgk RmlsZTIsJE5FV19GSUxFTkFNRSkNCgkgICBpZiAjcmV0X2NkIDw+IDANCgkg ICAgICBzaG93ICdFcnJvciBSZW5hbWluZyAnICRGaWxlMiAnIHRvICcgJE5l d19maWxlTmFtZSAnIFJldF9jZCA9ICcNCgkjcmV0X2NkDQoJICBlbmQtaWYN CgkNCgl3aGVyZSBteSAkZmlsZTIgaXMgJ0M6XERvY3VtZW50cyBhbmQgU2V0 dGluZ3NcbGtyYVxEZXNrdG9wXFRyYWluaW5nLnR4dCcuDQoJDQoJSSBhbSBn ZXR0aW5nIHRoZSBmb2xsb3dpbmcgZXJyb3I6LQ0KCQ0KCUVSUk9SIFJlbmFt aW5nIEM6XERvY3VtZW50cyBhbmQgU2V0dGluZ3NcbGtyYVxEZXNrdG9wXFRy YWluaW5nLnR4dCB0bw0KCUM6XERvY3VtZW50cyBhbmQgU2V0dGluZ3NcbGty YVxEZXNrdG9wXFRyYWluaW5nLnR4dDExMTcyMDA0IFJldF9jZCA9DQoJMTMu MDAwMDAwDQoJDQoJDQoJPkZyb206ICJBbGV4YW5kZXIsIFN0ZXZlIiA8U3Rl dmVuLkFsZXhhbmRlckBzYW5qb3NlY2EuZ292Pg0KCT5SZXBseS1UbzogIlRo aXMgbGlzdCBpcyBmb3IgZGlzY3Vzc2lvbiBhYm91dCB0aGUgU1FSIGRhdGFi YXNlDQoJPnJlcG9ydGluZ2xhbmd1YWdlIGZyb20gSHlwZXJpb24gU29sdXRp b25zLiIgPHNxci11c2Vyc0BzcXJ1Zy5vcmc+DQoJPlRvOiAiJ1RoaXMgbGlz dCBpcyBmb3IgZGlzY3Vzc2lvbiBhYm91dCB0aGUgU1FSIGRhdGFiYXNlDQoJ PnJlcG9ydGluZ2xhbmd1YWdlZnJvbSBIeXBlcmlvbiBTb2x1dGlvbnMuJyIg PHNxci11c2Vyc0BzcXJ1Zy5vcmc+DQoJPlN1YmplY3Q6IFJFOiBbc3FyLXVz ZXJzXSBSZW5hbWluZyBvdWJvdW5kIGZpbGUNCgk+RGF0ZTogV2VkLCAxNyBO b3YgMjAwNCAxMToyMzoxNSAtMDgwMA0KCT4NCgk+WW91IGNhbid0IGFwcGVu ZCB0aGUgZGF0ZSB0byB0aGUgZW5kIG9mIHRoZSBmaWxlIG5hbWU7IGV4dGVu c2lvbnMgYXJlIG9ubHkNCgk+dGhyZWUgY2hhcmFjdGVycy4gIFlvdSB3YW50 IHRvIGluc2VydCB0aGUgZGF0ZSBiZWZvcmUgdGhlIGxhc3QgcGVyaW9kIGlu DQoJPnRoZQ0KCT5maWxlbmFtZSBzdHJpbmcuDQoJPg0KCT4tLS0tLU9yaWdp bmFsIE1lc3NhZ2UtLS0tLQ0KCT5Gcm9tOiByYWRoaWthIHJlZGR5IFttYWls dG86cmFkaGlrYV8wNUBob3RtYWlsLmNvbV0NCgk+U2VudDogV2VkbmVzZGF5 LCBOb3ZlbWJlciAxNywgMjAwNCAxMToxOSBBTQ0KCT5Ubzogc3FyLXVzZXJz QHNxcnVnLm9yZw0KCT5TdWJqZWN0OiBbc3FyLXVzZXJzXSBSZW5hbWluZyBv dWJvdW5kIGZpbGUNCgk+DQoJPg0KCT5IaSwNCgk+DQoJPiAgICBJIGFtIHRy eWluZyB0byByZW5hbWUgbXkgb3V0Ym91bmQgZmlsZSBmcm9tIFRyYWluaW5n LnR4dCAgdG8NCgk+VHJhaW5pbmd4eHh4eHh4eCB3aGVyZSB4J3MgaXMgTU1E RFlZWVkuIGkgYW0gdHJ5aW5nIHRvIGRvIHNvbWV0aGluZyBsaWtlDQoJPnRo aXM6DQoJPg0KCT5MRVQgJFNZU1RFTURBVEUgPSBFRElUKFNVQlNUUigkc3lz ZGF0ZXRpbWUsMSwxMSksJ01NRERZWVlZJykNCgk+ZGlzcGxheSAkU1lTVEVN REFURSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICEgaGVyZSBp IGFtIGFibGUgdG8gZ2V0DQoJPjExMTcyMDA0DQoJPg0KCT5sZXQgI3JldF9j ZCA9IHJlbmFtZSgkRmlsZTIsJE5FV19GSUxFTkFNRSkNCgk+ICAgIGlmICNy ZXRfY2QgPD4gMA0KCT4gICAgICAgc2hvdyAnRXJyb3IgUmVuYW1pbmcgJyAk RmlsZTIgJyB0byAnICROZXdfZmlsZU5hbWUgJyBSZXRfY2QgPSAnDQoJPiNy ZXRfY2QNCgk+ICAgZW5kLWlmDQoJPg0KCT53aGVyZSBteSAkZmlsZTIgaXMg J0M6XERvY3VtZW50cyBhbmQgU2V0dGluZ3NcbGtyYVxEZXNrdG9wXFRyYWlu aW5nLnR4dCcuDQoJPg0KCT5JIGFtIGdldHRpbmcgdGhlIGZvbGxvd2luZyBl cnJvcjotDQoJPg0KCT5FUlJPUiBSZW5hbWluZyBDOlxEb2N1bWVudHMgYW5k IFNldHRpbmdzXGxrcmFcRGVza3RvcFxUcmFpbmluZy50eHQgdG8NCgk+Qzpc RG9jdW1lbnRzIGFuZCBTZXR0aW5nc1xsa3JhXERlc2t0b3BcVHJhaW5pbmcu dHh0MTExNzIwMDQgUmV0X2NkID0NCgk+MTMuMDAwMDAwDQoJPg0KCT5UaGFu a3MNCgk+DQoJPl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fDQoJPkRvbid0IGp1c3Qg c2VhcmNoLiBGaW5kLiBDaGVjayBvdXQgdGhlIG5ldyBNU04gU2VhcmNoIQ0K CT5odHRwOi8vc2VhcmNoLm1zbi5jbGljay11cmwuY29tL2dvL29ubTAwMjAw NjM2YXZlL2RpcmVjdC8wMS8NCgk+DQoJPg0KCT5fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXw0KCT5zcXItdXNlcnMg bWFpbGluZyBsaXN0DQoJPnNxci11c2Vyc0BzcXJ1Zy5vcmcNCgk+aHR0cDov L3d3dy5zcXJ1Zy5vcmcvbWFpbG1hbi9saXN0aW5mby9zcXItdXNlcnMNCgk+ DQoJPl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fDQoJPnNxci11c2VycyBtYWlsaW5nIGxpc3QNCgk+c3FyLXVzZXJz QHNxcnVnLm9yZw0KCT5odHRwOi8vd3d3LnNxcnVnLm9yZy9tYWlsbWFuL2xp c3RpbmZvL3Nxci11c2Vycw0KCQ0KCV9fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fDQoJ RXhwcmVzcyB5b3Vyc2VsZiBpbnN0YW50bHkgd2l0aCBNU04gTWVzc2VuZ2Vy ISBEb3dubG9hZCB0b2RheSAtIGl0J3MgRlJFRSENCglodHRwOi8vbWVzc2Vu Z2VyLm1zbi5jbGljay11cmwuY29tL2dvL29ubTAwMjAwNDcxYXZlL2RpcmVj dC8wMS8NCgkNCgkNCglfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fXw0KCXNxci11c2VycyBtYWlsaW5nIGxpc3QNCglz cXItdXNlcnNAc3FydWcub3JnDQoJaHR0cDovL3d3dy5zcXJ1Zy5vcmcvbWFp bG1hbi9saXN0aW5mby9zcXItdXNlcnMNCgkNCgkNCg0KDQpESVNDTEFJTUVS Og0KSW5mb3JtYXRpb24gY29udGFpbmVkIGFuZCB0cmFuc21pdHRlZCBieSB0 aGlzIEUtTUFJTCBpcyBwcm9wcmlldGFyeSB0bw0KSGV4YXdhcmUgVGVjaG5v bG9naWVzIGFuZCBpcyBpbnRlbmRlZCBmb3IgdXNlIG9ubHkgYnkgdGhlIGlu ZGl2aWR1YWwgb3INCmVudGl0eSB0byB3aGljaCBpdCBpcyBhZGRyZXNzZWQg YW5kIG1heSBjb250YWluIGluZm9ybWF0aW9uIHRoYXQgaXMNCnByaXZpbGVn ZWQsIGNvbmZpZGVudGlhbCBvciBleGVtcHQgZnJvbSBkaXNjbG9zdXJlIHVu ZGVyIGFwcGxpY2FibGUgbGF3Lg0KSWYgdGhpcyBpcyBhIGZvcndhcmRlZCBt ZXNzYWdlLCB0aGUgY29udGVudCBvZiB0aGlzIEUtTUFJTCBtYXkgbm90IGhh dmUNCmJlZW4gc2VudCB3aXRoIHRoZSBhdXRob3JpdHkgb2YgdGhlIENvbXBh bnkuIElmIHlvdSBhcmUgbm90IHRoZSBpbnRlbmRlZA0KcmVjaXBpZW50LCBh biBhZ2VudCBvZiB0aGUgaW50ZW5kZWQgcmVjaXBpZW50IG9yIGEgcGVyc29u IHJlc3BvbnNpYmxlDQpmb3IgZGVsaXZlcmluZyB0aGUgaW5mb3JtYXRpb24g dG8gdGhlIG5hbWVkIHJlY2lwaWVudCwgeW91IGFyZSBub3RpZmllZA0KdGhh dCBhbnkgdXNlLCBkaXN0cmlidXRpb24sIHRyYW5zbWlzc2lvbiwgcHJpbnRp bmcsIGNvcHlpbmcgb3INCmRpc3NlbWluYXRpb24gb2YgdGhpcyBpbmZvcm1h dGlvbiBpbiBhbnkgd2F5IG9yIGluIGFueSBtYW5uZXIgaXMNCnN0cmljdGx5 IHByb2hpYml0ZWQuIElmIHlvdSBoYXZlIHJlY2VpdmVkIHRoaXMgY29tbXVu aWNhdGlvbiBpbiBlcnJvciwNCnBsZWFzZSBkZWxldGUgdGhpcyBtYWlsICYg bm90aWZ5IHVzIGltbWVkaWF0ZWx5IGF0DQphZG1pbmNobkBoZXhhd2FyZS5j b20u ----=_NextPart_ST_01_20_33_Thursday_November_18_2004_21033 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_ST_01_20_33_Thursday_November_18_2004_21033 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_ST_01_20_33_Thursday_November_18_2004_21033-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Wed Nov 17 15:00:39 2004 From: Jeff.Steinfeldt@wellsfargo.com Subject: RE: [sqr-users] Renaming oubound file Date: Wed, 17 Nov 2004 13:57:48 -0600 Try it like this: BEGIN-PROGRAM LET $dts = DateToStr(DATENOW(),'MMDDYY') LET $ext = '.ini' LET $fName = 'C:\Windows\SQR.ini' LET #pos = INSTR($fName,$ext,1) LET $fName2 = SUBSTR($fName,1,(#pos - 1)) LET $fName2 = $fName2 || $dts LET $fName2 = $fName2 || SUBSTR($fName,#pos,LENGTH($ext)) DISPLAY $fName DISPLAY $fName2 END-PROGRAM -----Original Message----- From: sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org [mailto:sqr-users-bounces+jeff.steinfeldt=wellsfargo.com@sqrug.org] On Behalf Of radhika reddy Sent: Wednesday, November 17, 2004 1:44 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Renaming oubound file it's not after extension. it is like this training17112004.txt. LET $SYSTEMDATE = EDIT(SUBSTR($sysdatetime,1,11),'MMDDYYYY') display $SYSTEMDATE ! here i am able to get 11172004 LET $NEW_FILENAME = $File2 || $SYSTEMDATE let #ret_cd = rename($File2,$NEW_FILENAME) if #ret_cd <> 0 show 'Error Renaming ' $File2 ' to ' $New_fileName ' Ret_cd = ' #ret_cd end-if where my $file2 is 'C:\Documents and Settings\lkra\Desktop\Training.txt'. I am getting the following error:- ERROR Renaming C:\Documents and Settings\lkra\Desktop\Training.txt to C:\Documents and Settings\lkra\Desktop\Training.txt11172004 Ret_cd = 13.000000 >From: "Alexander, Steve" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "'This list is for discussion about the SQR database >reportinglanguagefrom Hyperion Solutions.'" >Subject: RE: [sqr-users] Renaming oubound file >Date: Wed, 17 Nov 2004 11:23:15 -0800 > >You can't append the date to the end of the file name; extensions are >only three characters. You want to insert the date before the last >period in the filename string. > >-----Original Message----- >From: radhika reddy [mailto:radhika_05@hotmail.com] >Sent: Wednesday, November 17, 2004 11:19 AM >To: sqr-users@sqrug.org >Subject: [sqr-users] Renaming oubound file > > >Hi, > > I am trying to rename my outbound file from Training.txt to >Trainingxxxxxxxx where x's is MMDDYYYY. i am trying to do something >like >this: > >LET $SYSTEMDATE = EDIT(SUBSTR($sysdatetime,1,11),'MMDDYYYY') >display $SYSTEMDATE ! here i am able to get >11172004 > >let #ret_cd = rename($File2,$NEW_FILENAME) > if #ret_cd <> 0 > show 'Error Renaming ' $File2 ' to ' $New_fileName ' Ret_cd = ' >#ret_cd > end-if > >where my $file2 is 'C:\Documents and >Settings\lkra\Desktop\Training.txt'. > >I am getting the following error:- > >ERROR Renaming C:\Documents and Settings\lkra\Desktop\Training.txt to >C:\Documents and Settings\lkra\Desktop\Training.txt11172004 Ret_cd = >13.000000 > >Thanks > >_________________________________________________________________ >Don't just search. Find. Check out the new MSN Search! >http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ 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 Nov 17 15:06:57 2004 From: "Carlton Conley" Subject: RE: [sqr-users] Renaming oubound file Date: Wed, 17 Nov 2004 15:05:48 -0500 doesn't really matter how long the extension is, but I would guess you need to close the file before you can rename it -----Original Message----- From: sqr-users-bounces+cconley=cdg-inc.com@sqrug.org [mailto:sqr-users-bounces+cconley=cdg-inc.com@sqrug.org]On Behalf Of radhika reddy Sent: Wednesday, November 17, 2004 2:44 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Renaming oubound file it's not after extension. it is like this training17112004.txt. LET $SYSTEMDATE = EDIT(SUBSTR($sysdatetime,1,11),'MMDDYYYY') display $SYSTEMDATE ! here i am able to get 11172004 LET $NEW_FILENAME = $File2 || $SYSTEMDATE let #ret_cd = rename($File2,$NEW_FILENAME) if #ret_cd <> 0 show 'Error Renaming ' $File2 ' to ' $New_fileName ' Ret_cd = ' #ret_cd end-if where my $file2 is 'C:\Documents and Settings\lkra\Desktop\Training.txt'. I am getting the following error:- ERROR Renaming C:\Documents and Settings\lkra\Desktop\Training.txt to C:\Documents and Settings\lkra\Desktop\Training.txt11172004 Ret_cd = 13.000000 >From: "Alexander, Steve" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "'This list is for discussion about the SQR database >reportinglanguagefrom Hyperion Solutions.'" >Subject: RE: [sqr-users] Renaming oubound file >Date: Wed, 17 Nov 2004 11:23:15 -0800 > >You can't append the date to the end of the file name; extensions are only >three characters. You want to insert the date before the last period in >the >filename string. > >-----Original Message----- >From: radhika reddy [mailto:radhika_05@hotmail.com] >Sent: Wednesday, November 17, 2004 11:19 AM >To: sqr-users@sqrug.org >Subject: [sqr-users] Renaming oubound file > > >Hi, > > I am trying to rename my outbound file from Training.txt to >Trainingxxxxxxxx where x's is MMDDYYYY. i am trying to do something like >this: > >LET $SYSTEMDATE = EDIT(SUBSTR($sysdatetime,1,11),'MMDDYYYY') >display $SYSTEMDATE ! here i am able to get >11172004 > >let #ret_cd = rename($File2,$NEW_FILENAME) > if #ret_cd <> 0 > show 'Error Renaming ' $File2 ' to ' $New_fileName ' Ret_cd = ' >#ret_cd > end-if > >where my $file2 is 'C:\Documents and Settings\lkra\Desktop\Training.txt'. > >I am getting the following error:- > >ERROR Renaming C:\Documents and Settings\lkra\Desktop\Training.txt to >C:\Documents and Settings\lkra\Desktop\Training.txt11172004 Ret_cd = >13.000000 > >Thanks > >_________________________________________________________________ >Don't just search. Find. Check out the new MSN Search! >http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.796 / Virus Database: 540 - Release Date: 11/13/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.796 / Virus Database: 540 - Release Date: 11/13/2004 _______________________________________________ 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 Nov 17 21:17:05 2004 From: "radhika reddy" Subject: RE: [sqr-users] Renaming oubound file Date: Wed, 17 Nov 2004 20:15:41 -0600 Hi, That's right. After closing the file, if i rename it it's working. Thanks. >From: "Carlton Conley" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "This list is for discussion about the SQR database reportinglanguage >fromHyperion Solutions." >Subject: RE: [sqr-users] Renaming oubound file >Date: Wed, 17 Nov 2004 15:05:48 -0500 > >doesn't really matter how long the extension is, but I would guess you need >to close the file before you can rename it > >-----Original Message----- >From: sqr-users-bounces+cconley=cdg-inc.com@sqrug.org >[mailto:sqr-users-bounces+cconley=cdg-inc.com@sqrug.org]On Behalf Of >radhika reddy >Sent: Wednesday, November 17, 2004 2:44 PM >To: sqr-users@sqrug.org >Subject: RE: [sqr-users] Renaming oubound file > > > > >it's not after extension. it is like this training17112004.txt. > >LET $SYSTEMDATE = EDIT(SUBSTR($sysdatetime,1,11),'MMDDYYYY') >display $SYSTEMDATE ! here i am able to get >11172004 >LET $NEW_FILENAME = $File2 || $SYSTEMDATE >let #ret_cd = rename($File2,$NEW_FILENAME) > if #ret_cd <> 0 > show 'Error Renaming ' $File2 ' to ' $New_fileName ' Ret_cd = ' >#ret_cd > end-if > >where my $file2 is 'C:\Documents and Settings\lkra\Desktop\Training.txt'. > >I am getting the following error:- > >ERROR Renaming C:\Documents and Settings\lkra\Desktop\Training.txt to >C:\Documents and Settings\lkra\Desktop\Training.txt11172004 Ret_cd = >13.000000 > > > >From: "Alexander, Steve" > >Reply-To: "This list is for discussion about the SQR database > >reportinglanguage from Hyperion Solutions." > >To: "'This list is for discussion about the SQR database > >reportinglanguagefrom Hyperion Solutions.'" > >Subject: RE: [sqr-users] Renaming oubound file > >Date: Wed, 17 Nov 2004 11:23:15 -0800 > > > >You can't append the date to the end of the file name; extensions are >only > >three characters. You want to insert the date before the last period in > >the > >filename string. > > > >-----Original Message----- > >From: radhika reddy [mailto:radhika_05@hotmail.com] > >Sent: Wednesday, November 17, 2004 11:19 AM > >To: sqr-users@sqrug.org > >Subject: [sqr-users] Renaming oubound file > > > > > >Hi, > > > > I am trying to rename my outbound file from Training.txt to > >Trainingxxxxxxxx where x's is MMDDYYYY. i am trying to do something like > >this: > > > >LET $SYSTEMDATE = EDIT(SUBSTR($sysdatetime,1,11),'MMDDYYYY') > >display $SYSTEMDATE ! here i am able to >get > >11172004 > > > >let #ret_cd = rename($File2,$NEW_FILENAME) > > if #ret_cd <> 0 > > show 'Error Renaming ' $File2 ' to ' $New_fileName ' Ret_cd = ' > >#ret_cd > > end-if > > > >where my $file2 is 'C:\Documents and Settings\lkra\Desktop\Training.txt'. > > > >I am getting the following error:- > > > >ERROR Renaming C:\Documents and Settings\lkra\Desktop\Training.txt to > >C:\Documents and Settings\lkra\Desktop\Training.txt11172004 Ret_cd = > >13.000000 > > > >Thanks > > > >_________________________________________________________________ > >Don't just search. Find. Check out the new MSN Search! > >http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >http://www.sqrug.org/mailman/listinfo/sqr-users > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >http://www.sqrug.org/mailman/listinfo/sqr-users > >_________________________________________________________________ >Express yourself instantly with MSN Messenger! Download today - it's FREE! >http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users >--- >Incoming mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.796 / Virus Database: 540 - Release Date: 11/13/2004 > >--- >Outgoing mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.796 / Virus Database: 540 - Release Date: 11/13/2004 > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Nov 18 05:12:27 2004 Date: 18 Nov 2004 10:09:58 -0000 From: "p satheesh kumar" Subject: [sqr-users] jre was not found Hello, I am receiving the following error message. jre was not found (My machine location in /u2/bea/jdk141_05/bin/sparc/nativ= e_threads/jre. Below is the integration I am doing. 1) From cold fusion I am passing the parameters. 2) From cold fusion cgi is called.=20 3) In cgi I am forming the sqr command and executing. 4) In cgi I am writing the output of sqr commands to var/tmp/lm1=20 5) When I check var/tmp/lm1. Displays the following error message jre was not found in /u2/bea/jdk141_05/bin/sparc/native_threads/jre. My objective is to make .CSV (comma seperated value). Can anybody help me. 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 Nov 18 12:51:39 2004 From: "Murty Mirthipati Venkata Suryanarayan" Date: Thu, 18 Nov 2004 23:26:37 +0530 Subject: [sqr-users] Move Command This is a multi-part message in MIME format... ----=_NextPart_ST_23_20_25_Thursday_November_18_2004_20092 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 SGkgR3V5cywNCg0KICAgIEkgYW0gdHJ5aW5nIHRvIG9wdGltaXplIHByb2Nl c3MgdGltZSBvZiBhbiBTUVIsIGluIHdoaWNoIGFsbCB0aGUgYXNzaWdubWVu dHMgYXJlIGRvbmUgdXNpbmcgTW92ZSBjb21tYW5kLiANCg0KICAgIFdoZXRo ZXIgTW92ZSBpcyBjb3N0aWxlciB0aGFuIExldCBzdGF0ZW1lbnQgaW4gdGVy bXMgb2YgZXhlY3V0aW9uIHRpbWU/IA0KDQogICAgIEZpcnN0IG9mIGFsbCwg d2hldGhlciB0aGlzIHF1ZXN0aW9uIG1ha2VzIGFueSBzZW5zZT8NCg0KICAg ICBBbnkgaWRlYXMgYXJlIG1vc3Qgd2VsY29tZS4gVGhhbmtzIGluIGFkdmFu Y2UuICAgIA0KDQpXaXRoIEJlc3QgUmVnYXJkcywNCg0KTXVydHkgOykNCg0K IA0KDQoNCkRJU0NMQUlNRVI6DQpJbmZvcm1hdGlvbiBjb250YWluZWQgYW5k IHRyYW5zbWl0dGVkIGJ5IHRoaXMgRS1NQUlMIGlzIHByb3ByaWV0YXJ5IHRv DQpIZXhhd2FyZSBUZWNobm9sb2dpZXMgYW5kIGlzIGludGVuZGVkIGZvciB1 c2Ugb25seSBieSB0aGUgaW5kaXZpZHVhbCBvcg0KZW50aXR5IHRvIHdoaWNo IGl0IGlzIGFkZHJlc3NlZCBhbmQgbWF5IGNvbnRhaW4gaW5mb3JtYXRpb24g dGhhdCBpcw0KcHJpdmlsZWdlZCwgY29uZmlkZW50aWFsIG9yIGV4ZW1wdCBm cm9tIGRpc2Nsb3N1cmUgdW5kZXIgYXBwbGljYWJsZSBsYXcuDQpJZiB0aGlz IGlzIGEgZm9yd2FyZGVkIG1lc3NhZ2UsIHRoZSBjb250ZW50IG9mIHRoaXMg RS1NQUlMIG1heSBub3QgaGF2ZQ0KYmVlbiBzZW50IHdpdGggdGhlIGF1dGhv cml0eSBvZiB0aGUgQ29tcGFueS4gSWYgeW91IGFyZSBub3QgdGhlIGludGVu ZGVkDQpyZWNpcGllbnQsIGFuIGFnZW50IG9mIHRoZSBpbnRlbmRlZCByZWNp cGllbnQgb3IgYSBwZXJzb24gcmVzcG9uc2libGUNCmZvciBkZWxpdmVyaW5n IHRoZSBpbmZvcm1hdGlvbiB0byB0aGUgbmFtZWQgcmVjaXBpZW50LCB5b3Ug YXJlIG5vdGlmaWVkDQp0aGF0IGFueSB1c2UsIGRpc3RyaWJ1dGlvbiwgdHJh bnNtaXNzaW9uLCBwcmludGluZywgY29weWluZyBvcg0KZGlzc2VtaW5hdGlv biBvZiB0aGlzIGluZm9ybWF0aW9uIGluIGFueSB3YXkgb3IgaW4gYW55IG1h bm5lciBpcw0Kc3RyaWN0bHkgcHJvaGliaXRlZC4gSWYgeW91IGhhdmUgcmVj ZWl2ZWQgdGhpcyBjb21tdW5pY2F0aW9uIGluIGVycm9yLA0KcGxlYXNlIGRl bGV0ZSB0aGlzIG1haWwgJiBub3RpZnkgdXMgaW1tZWRpYXRlbHkgYXQNCmFk bWluY2huQGhleGF3YXJlLmNvbS4= ----=_NextPart_ST_23_20_25_Thursday_November_18_2004_20092 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_ST_23_20_25_Thursday_November_18_2004_20092 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_ST_23_20_25_Thursday_November_18_2004_20092-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Nov 18 13:05:13 2004 Subject: RE: [sqr-users] Move Command Date: Thu, 18 Nov 2004 11:02:14 -0700 From: "Bartlett, Dwain" --===============1189139640== content-class: urn:content-classes:message Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 UGVvcGxlU29mdCByZWNvbW1lbmRzIHVzaW5nIHRoZSBtb3ZlIGNvbW1hbmQg d2hlcmUgZXZlciBwb3NzaWJsZS4NCg0KRHdhaW4gQmFydGxldHQNClNBQkhS UyBTZXJ2aWNlcyBCdXJlYXUsIElUU0QNCkhSIFN5c3RlbXMgQW5hbHlzdA0K KDQwNikgNDQ0LTA0MTgNCmRiYXJ0bGV0dEBzdGF0ZS5tdC51cw0KDQoNCi0t LS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQpGcm9tOiBNdXJ0eSBNaXJ0aGlw YXRpIFZlbmthdGEgU3VyeWFuYXJheWFuIFttYWlsdG86bXVydHltQGhleGF3 YXJlLmNvbV0NClNlbnQ6IFRodXJzZGF5LCBOb3ZlbWJlciAxOCwgMjAwNCAx MDo1NyBBTQ0KVG86IFRoaXMgbGlzdCBpcyBmb3IgZGlzY3Vzc2lvbiBhYm91 dCB0aGUgU1FSIGRhdGFiYXNlIHJlcG9ydGluZ2xhbmd1YWdlDQpmcm9tIEh5 cGVyaW9uIFNvbHV0aW9ucy4NClN1YmplY3Q6IFtzcXItdXNlcnNdIE1vdmUg Q29tbWFuZA0KDQoNCkhpIEd1eXMsDQoNCiAgICBJIGFtIHRyeWluZyB0byBv cHRpbWl6ZSBwcm9jZXNzIHRpbWUgb2YgYW4gU1FSLCBpbiB3aGljaCBhbGwg dGhlIGFzc2lnbm1lbnRzIGFyZSBkb25lIHVzaW5nIE1vdmUgY29tbWFuZC4g DQoNCiAgICBXaGV0aGVyIE1vdmUgaXMgY29zdGlsZXIgdGhhbiBMZXQgc3Rh dGVtZW50IGluIHRlcm1zIG9mIGV4ZWN1dGlvbiB0aW1lPyANCg0KICAgICBG aXJzdCBvZiBhbGwsIHdoZXRoZXIgdGhpcyBxdWVzdGlvbiBtYWtlcyBhbnkg c2Vuc2U/DQoNCiAgICAgQW55IGlkZWFzIGFyZSBtb3N0IHdlbGNvbWUuIFRo YW5rcyBpbiBhZHZhbmNlLiAgICANCg0KV2l0aCBCZXN0IFJlZ2FyZHMsDQoN Ck11cnR5IDspDQoNCiANCg0KDQpESVNDTEFJTUVSOg0KSW5mb3JtYXRpb24g Y29udGFpbmVkIGFuZCB0cmFuc21pdHRlZCBieSB0aGlzIEUtTUFJTCBpcyBw cm9wcmlldGFyeSB0bw0KSGV4YXdhcmUgVGVjaG5vbG9naWVzIGFuZCBpcyBp bnRlbmRlZCBmb3IgdXNlIG9ubHkgYnkgdGhlIGluZGl2aWR1YWwgb3INCmVu dGl0eSB0byB3aGljaCBpdCBpcyBhZGRyZXNzZWQgYW5kIG1heSBjb250YWlu IGluZm9ybWF0aW9uIHRoYXQgaXMNCnByaXZpbGVnZWQsIGNvbmZpZGVudGlh bCBvciBleGVtcHQgZnJvbSBkaXNjbG9zdXJlIHVuZGVyIGFwcGxpY2FibGUg bGF3Lg0KSWYgdGhpcyBpcyBhIGZvcndhcmRlZCBtZXNzYWdlLCB0aGUgY29u dGVudCBvZiB0aGlzIEUtTUFJTCBtYXkgbm90IGhhdmUNCmJlZW4gc2VudCB3 aXRoIHRoZSBhdXRob3JpdHkgb2YgdGhlIENvbXBhbnkuIElmIHlvdSBhcmUg bm90IHRoZSBpbnRlbmRlZA0KcmVjaXBpZW50LCBhbiBhZ2VudCBvZiB0aGUg aW50ZW5kZWQgcmVjaXBpZW50IG9yIGEgcGVyc29uIHJlc3BvbnNpYmxlDQpm b3IgZGVsaXZlcmluZyB0aGUgaW5mb3JtYXRpb24gdG8gdGhlIG5hbWVkIHJl Y2lwaWVudCwgeW91IGFyZSBub3RpZmllZA0KdGhhdCBhbnkgdXNlLCBkaXN0 cmlidXRpb24sIHRyYW5zbWlzc2lvbiwgcHJpbnRpbmcsIGNvcHlpbmcgb3IN CmRpc3NlbWluYXRpb24gb2YgdGhpcyBpbmZvcm1hdGlvbiBpbiBhbnkgd2F5 IG9yIGluIGFueSBtYW5uZXIgaXMNCnN0cmljdGx5IHByb2hpYml0ZWQuIElm IHlvdSBoYXZlIHJlY2VpdmVkIHRoaXMgY29tbXVuaWNhdGlvbiBpbiBlcnJv ciwNCnBsZWFzZSBkZWxldGUgdGhpcyBtYWlsICYgbm90aWZ5IHVzIGltbWVk aWF0ZWx5IGF0DQphZG1pbmNobkBoZXhhd2FyZS5jb20uDQo= --===============1189139640== 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 --===============1189139640==-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Nov 18 13:10:20 2004 Subject: RE: [sqr-users] REMOVE NON CHARACTERS Date: Wed, 17 Nov 2004 09:40:42 -0700 From: "Jaques, Dona" Thank you everyone for responding! I decided to go with a delivered sqc that removes accents. It seems to work great! -----Original Message----- From: sqr-users-bounces+djaques=3Dacs.utah.edu@sqrug.org [mailto:sqr-users-bounces+djaques=3Dacs.utah.edu@sqrug.org] On Behalf Of Alexander, Steve Sent: Monday, November 15, 2004 2:53 PM To: 'This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions.' Subject: RE: [sqr-users] REMOVE NON CHARACTERS Translate should work if you give it a string of punctuation characters and tell it to translate them all to null. What is the exact statement you've tried? -----Original Message----- From: Jaques, Dona [mailto:djaques@acs.utah.edu] Sent: Monday, November 15, 2004 8:56 AM To: sqr-users@sqrug.org Subject: [sqr-users] REMOVE NON CHARACTERS Can anyone tell me how to remove all non-characters using sqr? I have tried the translate and replace function with no success. Thanks for any input! Dona =20 For example Before Value=20=20=20=20 AL-Sadar's =20 After Value ALSadars _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 18 13:14:55 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] Move Command Date: Thu, 18 Nov 2004 10:13:18 -0800 Move, add, subtract, multiply, and divide are currently faster than let, though let will catch-up in the next version of SQR. However, the time spent on database operations (inserts, updates, deletes, and selects) is usually several orders of magnitude greater than anything you might do with variables in memory. That's where you should focus your efforts. -----Original Message----- From: Bartlett, Dwain [mailto:dbartlett@state.mt.us] Sent: Thursday, November 18, 2004 10:02 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] Move Command PeopleSoft recommends using the move command where ever possible. Dwain Bartlett SABHRS Services Bureau, ITSD HR Systems Analyst (406) 444-0418 dbartlett@state.mt.us -----Original Message----- From: Murty Mirthipati Venkata Suryanarayan [mailto:murtym@hexaware.com] Sent: Thursday, November 18, 2004 10:57 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: [sqr-users] Move Command Hi Guys, I am trying to optimize process time of an SQR, in which all the assignments are done using Move command. Whether Move is costiler than Let statement in terms of execution time? First of all, whether this question makes any sense? Any ideas are most welcome. Thanks in advance. With Best Regards, Murty ;) 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 Thu Nov 18 13:26:40 2004 From: "Murty Mirthipati Venkata Suryanarayan" Date: Thu, 18 Nov 2004 23:59:39 +0530 Subject: [sqr-users] Elapsed time in query processing This is a multi-part message in MIME format... ----=_NextPart_ST_23_53_27_Thursday_November_18_2004_6150 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 VGhhbmtzIGEgbG90IGZvciB0aGUgcXVpY2sgaW5mbyBvbiBNb3ZlIGNvbW1h bmQgYW5kIHRoZSBvcHRpbWl6aW5nIHBvaW50cy4NCkkgYW0gY3VycmVudGx5 IHR1bmluZyB0aGUgcXVlcmllcy4gQnV0IHRoZSBEQjIgZW52aXJvbm1lbnQg aXMgbm90IGFsbG93aW5nIG1lIHRvIHNlZSB0aGUgZWxhcHNlZCB0aW1lIGZv ciBlYWNoIHF1ZXJ5IGFzIGl0IHdvdWxkIGJlIHBvc3NpYmxlIGluIE9yYWNs ZSB3aXRoIGp1c3Qgb25lIHN0YXRlbWVudCAic2V0IHRpbWVyIG9uIg0KSSBk b250IGhhdmUgYWNjZXNzIHRvIHRyYWNlIGZpbGUgdG8gYW5hbHl6ZSB0aGUg c2FtZS4gSSBoYXZlIGFjY2VzcyB0byBqdXN0IGNvbW1hbmQgY2VudGVyLg0K IA0KSSBob3BlIHRoaXMgc2hvdWxkIGJlIHBvc3NpYmxlIGluIGNvbW1hbmQg Y2VudGVyIHRvby4gQW55IGlkZWEgZ3V5cy4uDQogDQpUaGFua3MgZm9yIHRo ZSBoZWxwIGFnYWluLg0KIA0KV2l0aCBCZXN0IFJlZ2FyZHMsDQpNdXJ0eSA7 KQ0KDQoJLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0gDQoJRnJvbTogQWxl eGFuZGVyLCBTdGV2ZSBbbWFpbHRvOlN0ZXZlbi5BbGV4YW5kZXJAc2Fuam9z ZWNhLmdvdl0gDQoJU2VudDogVGh1IDE4LU5vdi0yMDA0IDEzOjEzIA0KCVRv OiAnVGhpcyBsaXN0IGlzIGZvciBkaXNjdXNzaW9uIGFib3V0IHRoZSBTUVIg ZGF0YWJhc2UgcmVwb3J0aW5nbGFuZ3VhZ2Vmcm9tIEh5cGVyaW9uIFNvbHV0 aW9ucy4nIA0KCUNjOiANCglTdWJqZWN0OiBSRTogW3Nxci11c2Vyc10gTW92 ZSBDb21tYW5kDQoJDQoJDQoNCglNb3ZlLCBhZGQsIHN1YnRyYWN0LCBtdWx0 aXBseSwgYW5kIGRpdmlkZSBhcmUgY3VycmVudGx5IGZhc3RlciB0aGFuIGxl dCwNCgl0aG91Z2ggbGV0IHdpbGwgY2F0Y2gtdXAgaW4gdGhlIG5leHQgdmVy c2lvbiBvZiBTUVIuICBIb3dldmVyLCB0aGUgdGltZQ0KCXNwZW50IG9uIGRh dGFiYXNlIG9wZXJhdGlvbnMgKGluc2VydHMsIHVwZGF0ZXMsIGRlbGV0ZXMs IGFuZCBzZWxlY3RzKSBpcw0KCXVzdWFsbHkgc2V2ZXJhbCBvcmRlcnMgb2Yg bWFnbml0dWRlIGdyZWF0ZXIgdGhhbiBhbnl0aGluZyB5b3UgbWlnaHQgZG8g d2l0aA0KCXZhcmlhYmxlcyBpbiBtZW1vcnkuICBUaGF0J3Mgd2hlcmUgeW91 IHNob3VsZCBmb2N1cyB5b3VyIGVmZm9ydHMuDQoJDQoJLS0tLS1PcmlnaW5h bCBNZXNzYWdlLS0tLS0NCglGcm9tOiBCYXJ0bGV0dCwgRHdhaW4gW21haWx0 bzpkYmFydGxldHRAc3RhdGUubXQudXNdDQoJU2VudDogVGh1cnNkYXksIE5v dmVtYmVyIDE4LCAyMDA0IDEwOjAyIEFNDQoJVG86IFRoaXMgbGlzdCBpcyBm b3IgZGlzY3Vzc2lvbiBhYm91dCB0aGUgU1FSIGRhdGFiYXNlIHJlcG9ydGlu Zw0KCWxhbmd1YWdlZnJvbSBIeXBlcmlvbiBTb2x1dGlvbnMuDQoJU3ViamVj dDogUkU6IFtzcXItdXNlcnNdIE1vdmUgQ29tbWFuZA0KCQ0KCQ0KCVBlb3Bs ZVNvZnQgcmVjb21tZW5kcyB1c2luZyB0aGUgbW92ZSBjb21tYW5kIHdoZXJl IGV2ZXIgcG9zc2libGUuDQoJDQoJRHdhaW4gQmFydGxldHQNCglTQUJIUlMg U2VydmljZXMgQnVyZWF1LCBJVFNEDQoJSFIgU3lzdGVtcyBBbmFseXN0DQoJ KDQwNikgNDQ0LTA0MTgNCglkYmFydGxldHRAc3RhdGUubXQudXMNCgkNCgkN CgktLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KCUZyb206IE11cnR5IE1p cnRoaXBhdGkgVmVua2F0YSBTdXJ5YW5hcmF5YW4gW21haWx0bzptdXJ0eW1A aGV4YXdhcmUuY29tXQ0KCVNlbnQ6IFRodXJzZGF5LCBOb3ZlbWJlciAxOCwg MjAwNCAxMDo1NyBBTQ0KCVRvOiBUaGlzIGxpc3QgaXMgZm9yIGRpc2N1c3Np b24gYWJvdXQgdGhlIFNRUiBkYXRhYmFzZSByZXBvcnRpbmdsYW5ndWFnZQ0K CWZyb20gSHlwZXJpb24gU29sdXRpb25zLg0KCVN1YmplY3Q6IFtzcXItdXNl cnNdIE1vdmUgQ29tbWFuZA0KCQ0KCQ0KCUhpIEd1eXMsDQoJDQoJICAgIEkg YW0gdHJ5aW5nIHRvIG9wdGltaXplIHByb2Nlc3MgdGltZSBvZiBhbiBTUVIs IGluIHdoaWNoIGFsbCB0aGUNCglhc3NpZ25tZW50cyBhcmUgZG9uZSB1c2lu ZyBNb3ZlIGNvbW1hbmQuDQoJDQoJICAgIFdoZXRoZXIgTW92ZSBpcyBjb3N0 aWxlciB0aGFuIExldCBzdGF0ZW1lbnQgaW4gdGVybXMgb2YgZXhlY3V0aW9u IHRpbWU/DQoJDQoJICAgICBGaXJzdCBvZiBhbGwsIHdoZXRoZXIgdGhpcyBx dWVzdGlvbiBtYWtlcyBhbnkgc2Vuc2U/DQoJDQoJICAgICBBbnkgaWRlYXMg YXJlIG1vc3Qgd2VsY29tZS4gVGhhbmtzIGluIGFkdmFuY2UuICAgDQoJDQoJ V2l0aCBCZXN0IFJlZ2FyZHMsDQoJDQoJTXVydHkgOykNCgkNCgkNCgkNCgkN CglESVNDTEFJTUVSOg0KCUluZm9ybWF0aW9uIGNvbnRhaW5lZCBhbmQgdHJh bnNtaXR0ZWQgYnkgdGhpcyBFLU1BSUwgaXMgcHJvcHJpZXRhcnkgdG8NCglI ZXhhd2FyZSBUZWNobm9sb2dpZXMgYW5kIGlzIGludGVuZGVkIGZvciB1c2Ug b25seSBieSB0aGUgaW5kaXZpZHVhbCBvcg0KCWVudGl0eSB0byB3aGljaCBp dCBpcyBhZGRyZXNzZWQgYW5kIG1heSBjb250YWluIGluZm9ybWF0aW9uIHRo YXQgaXMNCglwcml2aWxlZ2VkLCBjb25maWRlbnRpYWwgb3IgZXhlbXB0IGZy b20gZGlzY2xvc3VyZSB1bmRlciBhcHBsaWNhYmxlIGxhdy4NCglJZiB0aGlz IGlzIGEgZm9yd2FyZGVkIG1lc3NhZ2UsIHRoZSBjb250ZW50IG9mIHRoaXMg RS1NQUlMIG1heSBub3QgaGF2ZQ0KCWJlZW4gc2VudCB3aXRoIHRoZSBhdXRo b3JpdHkgb2YgdGhlIENvbXBhbnkuIElmIHlvdSBhcmUgbm90IHRoZSBpbnRl bmRlZA0KCXJlY2lwaWVudCwgYW4gYWdlbnQgb2YgdGhlIGludGVuZGVkIHJl Y2lwaWVudCBvciBhIHBlcnNvbiByZXNwb25zaWJsZQ0KCWZvciBkZWxpdmVy aW5nIHRoZSBpbmZvcm1hdGlvbiB0byB0aGUgbmFtZWQgcmVjaXBpZW50LCB5 b3UgYXJlIG5vdGlmaWVkDQoJdGhhdCBhbnkgdXNlLCBkaXN0cmlidXRpb24s IHRyYW5zbWlzc2lvbiwgcHJpbnRpbmcsIGNvcHlpbmcgb3INCglkaXNzZW1p bmF0aW9uIG9mIHRoaXMgaW5mb3JtYXRpb24gaW4gYW55IHdheSBvciBpbiBh bnkgbWFubmVyIGlzDQoJc3RyaWN0bHkgcHJvaGliaXRlZC4gSWYgeW91IGhh dmUgcmVjZWl2ZWQgdGhpcyBjb21tdW5pY2F0aW9uIGluIGVycm9yLA0KCXBs ZWFzZSBkZWxldGUgdGhpcyBtYWlsICYgbm90aWZ5IHVzIGltbWVkaWF0ZWx5 IGF0DQoJYWRtaW5jaG5AaGV4YXdhcmUuY29tLg0KCQ0KCV9fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fDQoJc3FyLXVz ZXJzIG1haWxpbmcgbGlzdA0KCXNxci11c2Vyc0BzcXJ1Zy5vcmcNCglodHRw Oi8vd3d3LnNxcnVnLm9yZy9tYWlsbWFuL2xpc3RpbmZvL3Nxci11c2Vycw0K CQ0KCQ0KDQoNCkRJU0NMQUlNRVI6DQpJbmZvcm1hdGlvbiBjb250YWluZWQg YW5kIHRyYW5zbWl0dGVkIGJ5IHRoaXMgRS1NQUlMIGlzIHByb3ByaWV0YXJ5 IHRvDQpIZXhhd2FyZSBUZWNobm9sb2dpZXMgYW5kIGlzIGludGVuZGVkIGZv ciB1c2Ugb25seSBieSB0aGUgaW5kaXZpZHVhbCBvcg0KZW50aXR5IHRvIHdo aWNoIGl0IGlzIGFkZHJlc3NlZCBhbmQgbWF5IGNvbnRhaW4gaW5mb3JtYXRp b24gdGhhdCBpcw0KcHJpdmlsZWdlZCwgY29uZmlkZW50aWFsIG9yIGV4ZW1w dCBmcm9tIGRpc2Nsb3N1cmUgdW5kZXIgYXBwbGljYWJsZSBsYXcuDQpJZiB0 aGlzIGlzIGEgZm9yd2FyZGVkIG1lc3NhZ2UsIHRoZSBjb250ZW50IG9mIHRo aXMgRS1NQUlMIG1heSBub3QgaGF2ZQ0KYmVlbiBzZW50IHdpdGggdGhlIGF1 dGhvcml0eSBvZiB0aGUgQ29tcGFueS4gSWYgeW91IGFyZSBub3QgdGhlIGlu dGVuZGVkDQpyZWNpcGllbnQsIGFuIGFnZW50IG9mIHRoZSBpbnRlbmRlZCBy ZWNpcGllbnQgb3IgYSBwZXJzb24gcmVzcG9uc2libGUNCmZvciBkZWxpdmVy aW5nIHRoZSBpbmZvcm1hdGlvbiB0byB0aGUgbmFtZWQgcmVjaXBpZW50LCB5 b3UgYXJlIG5vdGlmaWVkDQp0aGF0IGFueSB1c2UsIGRpc3RyaWJ1dGlvbiwg dHJhbnNtaXNzaW9uLCBwcmludGluZywgY29weWluZyBvcg0KZGlzc2VtaW5h dGlvbiBvZiB0aGlzIGluZm9ybWF0aW9uIGluIGFueSB3YXkgb3IgaW4gYW55 IG1hbm5lciBpcw0Kc3RyaWN0bHkgcHJvaGliaXRlZC4gSWYgeW91IGhhdmUg cmVjZWl2ZWQgdGhpcyBjb21tdW5pY2F0aW9uIGluIGVycm9yLA0KcGxlYXNl IGRlbGV0ZSB0aGlzIG1haWwgJiBub3RpZnkgdXMgaW1tZWRpYXRlbHkgYXQN CmFkbWluY2huQGhleGF3YXJlLmNvbS4= ----=_NextPart_ST_23_53_27_Thursday_November_18_2004_6150 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_ST_23_53_27_Thursday_November_18_2004_6150 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_ST_23_53_27_Thursday_November_18_2004_6150-- From sqr-users-bounces+sqrusersarch=sqrug.org@sqrug.org Thu Nov 18 13:37:20 2004 Subject: RE: [sqr-users] Move Command From: harriaj@NU.COM Date: Thu, 18 Nov 2004 13:34:38 -0500 > the time > spent on database operations (inserts, updates, deletes, and selects) is > usually several orders of magnitude greater than anything you might do with > variables in memory. That's where you should focus your efforts. I agree. If you get your SQL execution moving quickly, there is little you can do in the remainder of your SQR to slow it down much; except maybe too much array processing. Where you can (and you almost always can), combine multiple begin-select paragraphs -- that are related via bind variables -- into single paragraphs using joins instead. Let the database do as much of the work as possible. Using this strategy I've revised programs that were running in 30 - 40 minutes to reduce processing to 20 seconds and less. 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 Thu Nov 18 14:36:41 2004 From: "Murty Mirthipati Venkata Suryanarayan" Date: Fri, 19 Nov 2004 01:09:49 +0530 Subject: RE: [sqr-users] Move Command This is a multi-part message in MIME format... ----=_NextPart_ST_01_03_37_Friday_November_19_2004_8139 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 SSBhbSBhZnJhaWQgaWYgSm9pbiBtYWtlcyB0aGluZ3MgbW9yZSB3b3JzZS4N CkkgaGF2ZSBQU0FVRElUIHRhYmxlLCB3aGljaCBpcyB2YXN0IGluIHNpemUg YW5kIEkgZmVlbCBqb2luaW5nIGl0IHdpdGggdGhlIHJvb3QgdGFibGUgd2ls bCBiZSBhIHByb2JsZW0uIFNvIEkgdXNlZCBhcnJheXMgdG8gcmVhZCBkYXRh IGZyb20gUFNBVURJVCB0YWJsZSBhbmQgdGhlbiB1c2VkIHRoZSBhcnJheSBp bmZvIHdpdGggdGhlIHJvb3QgdGFibGUuDQogICBJIGRpZG4ndCBjcm9zcyBj aGVjayB0aGUgdGltaW5nIGRpZmZlcmVuY2UgYmV0d2VlbiB1c2luZyBBcnJh eXMgYW5kIHdpdGhvdXQgYXJyYXlzLg0KICAgSG9wZSB0aGlzIGdpdmVzIGEg cGljdHVyZSBvZiBteSBwcm9ncmFtLiBQbGVhc2UgbGV0IG1lIGtub3cgeW91 ciBzdWdnZXN0aW9ucyBvbiB0aGUgc2FtZS4NCiANClBTOiBQU0FVRElUIGhh cyBubyBrZXlzIGFuZCBzZWFjaCBrZXlzIGluIGl0DQoNCgktLS0tLU9yaWdp bmFsIE1lc3NhZ2UtLS0tLSANCglGcm9tOiBoYXJyaWFqQE5VLkNPTSBbbWFp bHRvOmhhcnJpYWpATlUuQ09NXSANCglTZW50OiBUaHUgMTgtTm92LTIwMDQg MTM6MzQgDQoJVG86IFRoaXMgbGlzdCBpcyBmb3IgZGlzY3Vzc2lvbiBhYm91 dCB0aGUgU1FSIGRhdGFiYXNlIHJlcG9ydGluZyBsYW5ndWFnZWZyb20gSHlw ZXJpb24gU29sdXRpb25zLiANCglDYzogDQoJU3ViamVjdDogUkU6IFtzcXIt dXNlcnNdIE1vdmUgQ29tbWFuZA0KCQ0KCQ0KDQoJPiB0aGUgdGltZQ0KCT4g c3BlbnQgb24gZGF0YWJhc2Ugb3BlcmF0aW9ucyAoaW5zZXJ0cywgdXBkYXRl cywgZGVsZXRlcywgYW5kIHNlbGVjdHMpIGlzDQoJPiB1c3VhbGx5IHNldmVy YWwgb3JkZXJzIG9mIG1hZ25pdHVkZSBncmVhdGVyIHRoYW4gYW55dGhpbmcg eW91IG1pZ2h0IGRvDQoJd2l0aA0KCT4gdmFyaWFibGVzIGluIG1lbW9yeS4g IFRoYXQncyB3aGVyZSB5b3Ugc2hvdWxkIGZvY3VzIHlvdXIgZWZmb3J0cy4N CgkNCglJIGFncmVlLiAgSWYgeW91IGdldCB5b3VyIFNRTCBleGVjdXRpb24g bW92aW5nIHF1aWNrbHksIHRoZXJlIGlzIGxpdHRsZSB5b3UNCgljYW4gZG8g aW4gdGhlIHJlbWFpbmRlciBvZg0KCXlvdXIgU1FSIHRvIHNsb3cgaXQgZG93 biBtdWNoOyBleGNlcHQgbWF5YmUgdG9vIG11Y2ggYXJyYXkgcHJvY2Vzc2lu Zy4NCglXaGVyZSB5b3UgY2FuIChhbmQNCgl5b3UgYWxtb3N0IGFsd2F5cyBj YW4pLCBjb21iaW5lIG11bHRpcGxlIGJlZ2luLXNlbGVjdCBwYXJhZ3JhcGhz IC0tIHRoYXQNCglhcmUgcmVsYXRlZCB2aWEgYmluZA0KCXZhcmlhYmxlcyAt LSBpbnRvIHNpbmdsZSBwYXJhZ3JhcGhzIHVzaW5nIGpvaW5zIGluc3RlYWQu ICBMZXQgdGhlIGRhdGFiYXNlDQoJZG8gYXMgbXVjaCBvZiB0aGUgd29yaw0K CWFzIHBvc3NpYmxlLiAgVXNpbmcgdGhpcyBzdHJhdGVneSBJJ3ZlIHJldmlz ZWQgcHJvZ3JhbXMgdGhhdCB3ZXJlIHJ1bm5pbmcNCglpbiAzMCAtIDQwIG1p bnV0ZXMgdG8gcmVkdWNlDQoJcHJvY2Vzc2luZyB0byAyMCBzZWNvbmRzIGFu ZCBsZXNzLg0KCQ0KCUFuZHJldyA6KQ0KCVJlcG9ydGluZyBIZXJvDQoJWCAz NTIzDQoJDQoJDQoJDQoJKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg0KCVRo aXMgZS1tYWlsLCBpbmNsdWRpbmcgYW55IGZpbGVzIG9yIGF0dGFjaG1lbnRz IHRyYW5zbWl0dGVkIHdpdGggaXQsIGlzIGNvbmZpZGVudGlhbCBhbmQgaW50 ZW5kZWQgZm9yIGEgc3BlY2lmaWMgcHVycG9zZSBhbmQgZm9yIHVzZSBvbmx5 IGJ5IHRoZSBpbmRpdmlkdWFsIG9yIGVudGl0eSB0byB3aG9tIGl0IGlzIGFk ZHJlc3NlZC4gIEFueSBkaXNjbG9zdXJlLCBjb3B5aW5nIG9yIGRpc3RyaWJ1 dGlvbiBvZiB0aGlzIGUtbWFpbCBvciB0aGUgdGFraW5nIG9mIGFueSBhY3Rp b24gYmFzZWQgb24gaXRzIGNvbnRlbnRzLCBvdGhlciB0aGFuIGZvciBpdHMg aW50ZW5kZWQgcHVycG9zZSwgaXMgc3RyaWN0bHkgcHJvaGliaXRlZC4gIElm IHlvdSBoYXZlIHJlY2VpdmVkIHRoaXMgZS1tYWlsIGluIGVycm9yLCBwbGVh c2Ugbm90aWZ5IHRoZSBzZW5kZXIgaW1tZWRpYXRlbHkgYW5kIGRlbGV0ZSBp dCBmcm9tIHlvdXIgc3lzdGVtLiAgQW55IHZpZXdzIG9yIG9waW5pb25zIGV4 cHJlc3NlZCBpbiB0aGlzIGUtbWFpbCBhcmUgbm90IG5lY2Vzc2FyaWx5IHRo b3NlIG9mIE5vcnRoZWFzdCBVdGlsaXRpZXMsIGl0cyBzdWJzaWRpYXJpZXMg YW5kIGFmZmlsaWF0ZXMgKE5VKS4gIEUtbWFpbCB0cmFuc21pc3Npb24gY2Fu bm90IGJlIGd1YXJhbnRlZWQgdG8gYmUgZXJyb3ItZnJlZSBvciBzZWN1cmUg b3IgZnJlZSBmcm9tIHZpcnVzZXMsIGFuZCBOVSBkaXNjbGFpbXMgYWxsIGxp YWJpbGl0eSBmb3IgYW55IHJlc3VsdGluZyBkYW1hZ2UsIGVycm9ycywgb3Ig b21pc3Npb25zLg0KCSoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioNCgkNCgkN CglfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fXw0KCXNxci11c2VycyBtYWlsaW5nIGxpc3QNCglzcXItdXNlcnNAc3Fy dWcub3JnDQoJaHR0cDovL3d3dy5zcXJ1Zy5vcmcvbWFpbG1hbi9saXN0aW5m by9zcXItdXNlcnMNCgkNCgkNCg0KDQpESVNDTEFJTUVSOg0KSW5mb3JtYXRp b24gY29udGFpbmVkIGFuZCB0cmFuc21pdHRlZCBieSB0aGlzIEUtTUFJTCBp cyBwcm9wcmlldGFyeSB0bw0KSGV4YXdhcmUgVGVjaG5vbG9naWVzIGFuZCBp cyBpbnRlbmRlZCBmb3IgdXNlIG9ubHkgYnkgdGhlIGluZGl2aWR1YWwgb3IN CmVudGl0eSB0byB3aGljaCBpdCBpcyBhZGRyZXNzZWQgYW5kIG1heSBjb250 YWluIGluZm9ybWF0aW9uIHRoYXQgaXMNCnByaXZpbGVnZWQsIGNvbmZpZGVu dGlhbCBvciBleGVtcHQgZnJvbSBkaXNjbG9zdXJlIHVuZGVyIGFwcGxpY2Fi bGUgbGF3Lg0KSWYgdGhpcyBpcyBhIGZvcndhcmRlZCBtZXNzYWdlLCB0aGUg Y29udGVudCBvZiB0aGlzIEUtTUFJTCBtYXkgbm90IGhhdmUNCmJlZW4gc2Vu dCB3aXRoIHRoZSBhdXRob3JpdHkgb2YgdGhlIENvbXBhbnkuIElmIHlvdSBh cmUgbm90IHRoZSBpbnRlbmRlZA0KcmVjaXBpZW50LCBhbiBhZ2VudCBvZiB0 aGUgaW50ZW5kZWQgcmVjaXBpZW50IG9yIGEgcGVyc29uIHJlc3BvbnNpYmxl DQpmb3IgZGVsaXZlcmluZyB0aGUgaW5mb3JtYXRpb24gdG8gdGhlIG5hbWVk IHJlY2lwaWVudCwgeW91IGFyZSBub3RpZmllZA0KdGhhdCBhbnkgdXNlLCBk aXN0cmlidXRpb24sIHRyYW5zbWlzc2lvbiwgcHJpbnRpbmcsIGNvcHlpbmcg b3INCmRpc3NlbWluYXRpb24gb2YgdGhpcyBpbmZvcm1hdGlvbiBpbiBhbnkg d2F5IG9yIGluIGFueSBtYW5uZXIgaXMNCnN0cmljdGx5IHByb2hpYml0ZWQu IElm