From sqr-users-bounces@sqrug.org Fri Jan 01 00:02:31 2010 Date: Fri, 1 Jan 2010 00:00:05 -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.23 $ $Date: 2006/07/27 16:28:24 $ This document gathers in one location information about the sqr-users mail list. It includes instructions for changing your subscription settings (including unsubscribing), as well are guidelines for using the list. ______________________________________________________________________ Table of Contents 1. Changes Since Previous Version 2. Introduction 2.1 sqr-users Mailing List 2.2 sqr-users Hints and Guidelines Document 2.3 Related Mailing Lists 3. Interacting with the list server 3.1 Subscribing to the list 3.2 Unsubscribing from the list 3.3 When your email address changes 3.4 Digests 3.5 Obtaining your password 3.6 Problems 4. Posting to the sqr-users List 4.1 General Guidelines 4.2 Posting a Message 4.3 Replying to a Message 5. Job Announcements ______________________________________________________________________ 1. Changes Since Previous Version Changes since the version dated 2005/08/19: o Added note about spam filtering and sender verification systems blocking subscription confirmation messages. 2. Introduction 2.1. sqr-users Mailing List The sqr-users mailing list was created to enable discussion related to the SQR database language from Hyperion (and to other products in the SQR product suite). Note: SQR used to be published by SQRIBE Technologies, which was merged into Brio Technology on August 3, 1999. Brio Technology changed its name to Brio Software in October 2001. On October 16, 2003, Hyperion acquired Brio Software. SQR and related applications have also been called "Brio.Report" and "Brio Reports". The mailing list is provided as a service of Ray Ontko & Co. A searchable archive of past postings to the mailing list is available from the SQR Users Group web site . 2.2. sqr-users Hints and Guidelines Document This document gives various hints and guidelines about the sqr-users mailing list. It will be posted approximately monthly to the mailing list so that new users can see it (and existing users can find it easily). An HTML version of the document is always available at http://www.sqrug.org/sqr-users/sqr-users-hints.html. If you have comments or suggestions about this document, please contact me directly at the address listed in the title section. This document is Copyright (C) 1999-2004 by Ray Ontko & Co. It may be freely copied and distributed provided it is not modified in any way and it retains the original copyright notice. 2.3. Related Mailing Lists Here are some mailing lists that cover topics relating to SQR in some way. sqr-jobs : SQR Jobs This list may be used for posting SQR-related resumes, recruitments, job announcements, project announcments, help- wanted, work-wanted ads, etc. To join, follow the link above, or send any message to "sqr-jobs-subscribe@yahoogroups.com". peoplesoft-fans : PeopleSoft Fans Moderated list covering technical and functional aspects of PeopleSoft. To join, follow the link above, or send any message to "peoplesoft-fans-subscribe@yahoogroups.com". psusers : PeopleSoft Users For questions related to any aspect of PeopleSoft (including PeopleSoft-specific SQR issues). This list has merged with the Peoplesoft Fans mailing list and is no longer active, but the message achive can still be found at the link above. HyperionSQR : Hyperion- SQR List for discussion of SQR, SQR Developer (formerly called Brio.Report and Report Builder), and SQR iServer. To join, follow the link above, or send any message to "HyperionSQR- subscribe@yahoogroups.com". rm-users : Report- Mart Users List for discussion of Brio Portal (previously called ReportMart). To join, follow the link above, or send a message containing the word "subscribe" in the body to "rm-users- request@sqrug.org". brioportalusersgroup : Brio Portal Users Group list List for discussion of Brio Portal. To join, follow the link above, or send any message to "brioportalusersgroup- subscribe@yahoogroups.com". brio-l : OpenITx Brio List List for technical and functional discussion of all Brio products (but most messages are currently about Brio Intelligence). To join, follow the link above. briousers : Brio.Enter- prise Users List for discussion of the Brio.Enterprise (now called Intelligence) product. To join, follow the link above, or send any message to "briousers-subscribe@yahoogroups.com". briolist : Brio List List for discussion of Brio Intelligence. To join, follow the link above, or send any message to "briolist- subscribe@yahoogroups.com". 3. Interacting with the list server The sqr-users mailing list is hosted using the Mailman list server package. All of the Mailman functions described below are accessed from the sqr-users List Info page, "http://www.sqrug.org/mailman/listinfo/sqr-users". 3.1. Subscribing to the list To subscribe to the mailing list, enter your e-mail address in the box at the top of the "Subscribing to sqr-users" section on the sqr-users List Info page, then choose a password to assign to your subscription and enter it in both "Password" boxes. This password is used to allow you to securely make changes to your subscription over the web. This password will be e-mailed back to you at varous times, so you should not use the same password as you are using elsewhere. Once you have filled in the password, click the "Subscribe" button. You should soon receive an e-mail message from the list server requesting confirmation of your subscription request. Once you have replied to this message and your subscription has been processed, you will receive a "welcome" message giving you more information on the list server, and as well as a reminder of the subscription password you chose. Many sites are now implementing spam filtering and/or sender verification systems, which can prevent your confirmation message from getting delivered to you. You may need check for a message from "sqr- users-request[-AT-]sqrug.org" caught in the filter, or add that address to your list of authorized senders, in order to complete the confirmation process. 3.2. Unsubscribing from the list To unsubscribe from the list, go to the sqr-users List Info page, enter your e-mail address in the "sqr-users Subscribers" section near the bottom of the page, and click the "Unsubscribe or edit options" button. You will then see the "member options" page; fill in your password at the top of the page and click "Log in". (If you have forgotton your password, see the ``Obtaining your Password'' section, below). This will take you to the "membership configuration" page. In the middle of that page, there will be an "Unsubscribing from sqr- users" section; simply turn on the "Yes, I really want to unsubscribe" checkbox and click the "Unsubscribe" button. You should get a page back saying that the removal was successful (as well as a confirmation email message). The removal will take effect immediately; there is no need to send in a confirmation e-mail message. If you don't know your password, you can choose to unsubscribe using e-mail confirmation. Instead of entering the password on the "member options" page, just click the "Unsubscribe" button found just below the "Log In" button. You will then see a page noting that a confirmation e-mail has been sent; once you follow the confirmation instructions in that e-mail your removal will be complete. 3.3. When your email address changes If your e-mail address changes -- for example, if your company changes names, or if your mail administrator changes the way your name is spelled out or abbreviated -- you will need to update your subscription to match your new address before you can post to the list (see the ``Posting'' section, below). To do this, simply log in to your "membership configuration" page (see the directions for logging in to this page in the ``Unsubscribing'' section, above). At the top of that page you'll see a "Changing your membership information" section. Fill out the text boxes and click the "Change My Address and Name" button. You will be sent a confirmation e-mail, and once you have responded to that e-mail your subscription will be updated and you can begin posting from your new address. 3.4. Digests You can request to get your messages in digest form (one large message containing all of the posts made each day). To do this, log in to your "membership configuration" page (see the directions on doing this in the ``Unsubscribing'' section, above). At the bottom of the page, you will see a section titled "Your sqr-users Subscription Options". Change the "Set Digest Mode" option (the second option in the list) to "On" and click the "Submit My Changes" button at the bottom of the page. You actually have a choice of two different digest formats, "MIME" or "Plain Text". The MIME format sends each individual list message as a separate MIME attachment to the digest; the plain text format consists of one large text message, with all of the individual messages run together. Which format you will want to use depends on your mail- reading software (and personal preference). If you are not sure which format will work best, you can just leave the default setting of "MIME" and see if the next morning's digest is easy to read in your mail reader -- you can change to the other format at any time using that same web page. If you use digests, you should not just "reply" to the digest mailing. Instead, be sure your message's subject header matches the subject in the original posting to which you are replying, and that you don't include a quoted copy of the entire digest in your post. To restore normal distribution, simply follow the above instructions choosing the "Off" setting for the Digest option. 3.5. Obtaining your password You will not be able to change your subscription options without your password. If you have forgotten your password, simply click the "Email My Password to Me" button on the "member options" page and your password will be emailed to you. You will also be e-mailed a copy of your password at the beginning of each month, as part of a "mailing list memberships reminder" message from the Mailman software. 3.6. Problems If the above instructions do not work, please contact the list manager at "sqr-users-manager@sqrug.org". (Do not send a message to the list itself -- no one there can help you with your problem!) Please include a description of what you were trying to do and what exactly happened when you made the attempt. 4. Posting to the sqr-users List In order to post to the mailing list, you must be subscribed to it (see directions above). More specifically, in order for Mailman to recognize that this message was sent by a subscriber, the return address on your message much exactly match the addresss you used to subscribe -- if you have more than one address you will need to be sure that you are sending from the correct one. (See the ``When you email address changes'' section, above, if your e-mail address has changed since you subscribed.) 4.1. General Guidelines For any message you send to the list, please: o make sure your mail software is not requesting a "Return Receipt". (If a "Return Receipt Requested" message is sent to the list, several dozen receipt messages will be sent out to the mailing list as other subscribers' mail systems repond....) o do not send messages in HTML or other special formats. (These are not usable by many subscribers, especially those who receive their messages in digest format.) The list server will delete these special attachments from your message and send you a warning notice. Also, if you are trying to send (for example) SQR source code files, make sure your mail-reader software is assigning proper MIME types to your attachments or they may not be distributed. o keep in mind that over 500 people will receive your message, and that it will appear in the list archives. Try to keep your messages on-topic and relatively short. Consider sending your message directly to particular people if it won't interest many of the list's subscribers. o ignore abusive and inappropriate messages that get sent to the list, rather than getting drawn into a debate. The very nature of these messages will cause most subscribers to automatically discredit them -- no "response" is necessary. To the contrary, any response will only "add fuel to the fire," prolonging the controversy and further interupting the normal conversation on the list. 4.2. Posting a Message Once you are subscribed, you can post to the list by sending a message to "sqr-users@sqrug.org". Be sure your subject heading describes your specific problem or question (i.e. don't just use "SQR Question"). In the body of your message, please include the following information: o SQR product name and version number (see notes below) o Operating system name and version number o Database name and version number o Application name (i.e. PeopleSoft) and a version number, if any Also, include a short code sample whenever possible. It's much easier for other people to understand what you are trying to do when they can see the actual code. (At the same time, be careful not to post confidential or proprietary code, since the posting will be placed in a public web archive.) Note that your question should relate to SQR or other Brio Report product in some way. Don't ask questions about PeopleSoft, for example, unless you are having SQR-related issues. (For PeopleSoft- specific questions, see other lists mentioned in the ``Related Mailing Lists'' section.) In 2001, PeopleSoft purchased from Brio the rights to the source code for SQR and began releasing its own line of SQR. PeopleSoft's SQR version numbering is different from Brio/Hyperion's, so it's very important to mention whether you are using Hyperion's "SQR" or "SQR for PeopleSoft". (This info is included automatically if you include the full SQR version-id string as described below.) To get the version-id string for your copy of SQR, you can run the following program: begin-program show $sqr-ver end-program This will produce a line that looks something like this: SQR/3.0.15/Intel/SCO Unix R3.2 V5.0/Oracle 7.2.2.3/Sep 25 1996 Include the full line of output in your message. Note that the oper- ating system and database version numbers listed here are the ones under which this copy of SQR was compiled, so you'll still need to include this information for your own environment. In a command-line environment (Unix, etc.), you can also get this version-id string by saying sqr -id 4.3. Replying to a Message Messages sent out on the list have a Reply-To header pointing to the list. This means that you should be able to simply use your mail reader's "reply" function to send a reply to the list. Generally, all answers to questions sent out on the list should be public replies, so that other subscribers can benefit. In those cases where a private reply is appropriate, be sure to over-ride the default Reply-To address. If your message is not actually a reply to the earlier message, please do not use the "reply" function. Instead, address a new e-mail message to the list as described in the previous section. (This is because the list archives will incorrectly show the new message in the original thread if you use "reply".) You should quote enough lines from the original message that later readers can understand your answer even if they missed the original question. At the same time, you should remove any unnecessary lines from the quote in order to make your message shorter and easier to understand. (Remember that some people read the mailing list in digest form, and the digests become much larger if unnecessary lines are quoted.) 5. Job Announcements Please do not post job announcements on the sqr-users list, but use the sqr-jobs list instead. (See ``Related Mailing Lists'' for more information on this list.) A large number of sqr-users subscribers do not want to receive job announcements (for various reasons) and such posts tend to cause a lot of disruption of the discussion on the list. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 12 10:44:34 2010 Date: Tue, 12 Jan 2010 07:41:42 -0800 From: "Abdul Mahboob" Subject: [sqr-users] can SQR export to Excel? Hi everyone, We have SQR 8.5 and wanted to know if we can export to Excel. "PLEASE" thanks AR Mahboob >>> Nathan Stratton Treadway 12/31/2009 9:00 PM >>> sqr-users Mailing List Hints and Guidelines Nathan Stratton Treadway, Ray Ontko & Co. (nathanst@ontko.com) $Revision: 1.23 $ $Date: 2006/07/27 16:28:24 $ This document gathers in one location information about the sqr-users mail list. It includes instructions for changing your subscription settings (including unsubscribing), as well are guidelines for using the list. ______________________________________________________________________ Table of Contents 1. Changes Since Previous Version 2. Introduction 2.1 sqr-users Mailing List 2.2 sqr-users Hints and Guidelines Document 2.3 Related Mailing Lists 3. Interacting with the list server 3.1 Subscribing to the list 3.2 Unsubscribing from the list 3.3 When your email address changes 3.4 Digests 3.5 Obtaining your password 3.6 Problems 4. Posting to the sqr-users List 4.1 General Guidelines 4.2 Posting a Message 4.3 Replying to a Message 5. Job Announcements ______________________________________________________________________ 1. Changes Since Previous Version Changes since the version dated 2005/08/19: o Added note about spam filtering and sender verification systems blocking subscription confirmation messages. 2. Introduction 2.1. sqr-users Mailing List The sqr-users mailing list was created to enable discussion related to the SQR database language from Hyperion (and to other products in the SQR product suite). Note: SQR used to be published by SQRIBE Technologies, which was merged into Brio Technology on August 3, 1999. Brio Technology changed its name to Brio Software in October 2001. On October 16, 2003, Hyperion acquired Brio Software. SQR and related applications have also been called "Brio.Report" and "Brio Reports". The mailing list is provided as a service of Ray Ontko & Co. A searchable archive of past postings to the mailing list is available from the SQR Users Group web site . 2.2. sqr-users Hints and Guidelines Document This document gives various hints and guidelines about the sqr-users mailing list. It will be posted approximately monthly to the mailing list so that new users can see it (and existing users can find it easily). An HTML version of the document is always available at http://www.sqrug.org/sqr-users/sqr-users-hints.html. If you have comments or suggestions about this document, please contact me directly at the address listed in the title section. This document is Copyright (C) 1999-2004 by Ray Ontko & Co. It may be freely copied and distributed provided it is not modified in any way and it retains the original copyright notice. 2.3. Related Mailing Lists Here are some mailing lists that cover topics relating to SQR in some way. sqr-jobs : SQR Jobs This list may be used for posting SQR-related resumes, recruitments, job announcements, project announcments, help- wanted, work-wanted ads, etc. To join, follow the link above, or send any message to "sqr-jobs-subscribe@yahoogroups.com". peoplesoft-fans : PeopleSoft Fans Moderated list covering technical and functional aspects of PeopleSoft. To join, follow the link above, or send any message to "peoplesoft-fans-subscribe@yahoogroups.com". psusers : PeopleSoft Users For questions related to any aspect of PeopleSoft (including PeopleSoft-specific SQR issues). This list has merged with the Peoplesoft Fans mailing list and is no longer active, but the message achive can still be found at the link above. HyperionSQR : Hyperion- SQR List for discussion of SQR, SQR Developer (formerly called Brio.Report and Report Builder), and SQR iServer. To join, follow the link above, or send any message to "HyperionSQR- subscribe@yahoogroups.com". rm-users : Report- Mart Users List for discussion of Brio Portal (previously called ReportMart). To join, follow the link above, or send a message containing the word "subscribe" in the body to "rm-users- request@sqrug.org". brioportalusersgroup : Brio Portal Users Group list List for discussion of Brio Portal. To join, follow the link above, or send any message to "brioportalusersgroup- subscribe@yahoogroups.com". brio-l : OpenITx Brio List List for technical and functional discussion of all Brio products (but most messages are currently about Brio Intelligence). To join, follow the link above. briousers : Brio.Enter- prise Users List for discussion of the Brio.Enterprise (now called Intelligence) product. To join, follow the link above, or send any message to "briousers-subscribe@yahoogroups.com". briolist : Brio List List for discussion of Brio Intelligence. To join, follow the link above, or send any message to "briolist- subscribe@yahoogroups.com". 3. Interacting with the list server The sqr-users mailing list is hosted using the Mailman list server package. All of the Mailman functions described below are accessed from the sqr-users List Info page, "http://www.sqrug.org/mailman/listinfo/sqr-users". 3.1. Subscribing to the list To subscribe to the mailing list, enter your e-mail address in the box at the top of the "Subscribing to sqr-users" section on the sqr-users List Info page, then choose a password to assign to your subscription and enter it in both "Password" boxes. This password is used to allow you to securely make changes to your subscription over the web. This password will be e-mailed back to you at varous times, so you should not use the same password as you are using elsewhere. Once you have filled in the password, click the "Subscribe" button. You should soon receive an e-mail message from the list server requesting confirmation of your subscription request. Once you have replied to this message and your subscription has been processed, you will receive a "welcome" message giving you more information on the list server, and as well as a reminder of the subscription password you chose. Many sites are now implementing spam filtering and/or sender verification systems, which can prevent your confirmation message from getting delivered to you. You may need check for a message from "sqr- users-request[-AT-]sqrug.org" caught in the filter, or add that address to your list of authorized senders, in order to complete the confirmation process. 3.2. Unsubscribing from the list To unsubscribe from the list, go to the sqr-users List Info page, enter your e-mail address in the "sqr-users Subscribers" section near the bottom of the page, and click the "Unsubscribe or edit options" button. You will then see the "member options" page; fill in your password at the top of the page and click "Log in". (If you have forgotton your password, see the ``Obtaining your Password'' section, below). This will take you to the "membership configuration" page. In the middle of that page, there will be an "Unsubscribing from sqr- users" section; simply turn on the "Yes, I really want to unsubscribe" checkbox and click the "Unsubscribe" button. You should get a page back saying that the removal was successful (as well as a confirmation email message). The removal will take effect immediately; there is no need to send in a confirmation e-mail message. If you don't know your password, you can choose to unsubscribe using e-mail confirmation. Instead of entering the password on the "member options" page, just click the "Unsubscribe" button found just below the "Log In" button. You will then see a page noting that a confirmation e-mail has been sent; once you follow the confirmation instructions in that e-mail your removal will be complete. 3.3. When your email address changes If your e-mail address changes -- for example, if your company changes names, or if your mail administrator changes the way your name is spelled out or abbreviated -- you will need to update your subscription to match your new address before you can post to the list (see the ``Posting'' section, below). To do this, simply log in to your "membership configuration" page (see the directions for logging in to this page in the ``Unsubscribing'' section, above). At the top of that page you'll see a "Changing your membership information" section. Fill out the text boxes and click the "Change My Address and Name" button. You will be sent a confirmation e-mail, and once you have responded to that e-mail your subscription will be updated and you can begin posting from your new address. 3.4. Digests You can request to get your messages in digest form (one large message containing all of the posts made each day). To do this, log in to your "membership configuration" page (see the directions on doing this in the ``Unsubscribing'' section, above). At the bottom of the page, you will see a section titled "Your sqr-users Subscription Options". Change the "Set Digest Mode" option (the second option in the list) to "On" and click the "Submit My Changes" button at the bottom of the page. You actually have a choice of two different digest formats, "MIME" or "Plain Text". The MIME format sends each individual list message as a separate MIME attachment to the digest; the plain text format consists of one large text message, with all of the individual messages run together. Which format you will want to use depends on your mail- reading software (and personal preference). If you are not sure which format will work best, you can just leave the default setting of "MIME" and see if the next morning's digest is easy to read in your mail reader -- you can change to the other format at any time using that same web page. If you use digests, you should not just "reply" to the digest mailing. Instead, be sure your message's subject header matches the subject in the original posting to which you are replying, and that you don't include a quoted copy of the entire digest in your post. To restore normal distribution, simply follow the above instructions choosing the "Off" setting for the Digest option. 3.5. Obtaining your password You will not be able to change your subscription options without your password. If you have forgotten your password, simply click the "Email My Password to Me" button on the "member options" page and your password will be emailed to you. You will also be e-mailed a copy of your password at the beginning of each month, as part of a "mailing list memberships reminder" message from the Mailman software. 3.6. Problems If the above instructions do not work, please contact the list manager at "sqr-users-manager@sqrug.org". (Do not send a message to the list itself -- no one there can help you with your problem!) Please include a description of what you were trying to do and what exactly happened when you made the attempt. 4. Posting to the sqr-users List In order to post to the mailing list, you must be subscribed to it (see directions above). More specifically, in order for Mailman to recognize that this message was sent by a subscriber, the return address on your message much exactly match the addresss you used to subscribe -- if you have more than one address you will need to be sure that you are sending from the correct one. (See the ``When you email address changes'' section, above, if your e-mail address has changed since you subscribed.) 4.1. General Guidelines For any message you send to the list, please: o make sure your mail software is not requesting a "Return Receipt". (If a "Return Receipt Requested" message is sent to the list, several dozen receipt messages will be sent out to the mailing list as other subscribers' mail systems repond....) o do not send messages in HTML or other special formats. (These are not usable by many subscribers, especially those who receive their messages in digest format.) The list server will delete these special attachments from your message and send you a warning notice. Also, if you are trying to send (for example) SQR source code files, make sure your mail-reader software is assigning proper MIME types to your attachments or they may not be distributed. o keep in mind that over 500 people will receive your message, and that it will appear in the list archives. Try to keep your messages on-topic and relatively short. Consider sending your message directly to particular people if it won't interest many of the list's subscribers. o ignore abusive and inappropriate messages that get sent to the list, rather than getting drawn into a debate. The very nature of these messages will cause most subscribers to automatically discredit them -- no "response" is necessary. To the contrary, any response will only "add fuel to the fire," prolonging the controversy and further interupting the normal conversation on the list. 4.2. Posting a Message Once you are subscribed, you can post to the list by sending a message to "sqr-users@sqrug.org". Be sure your subject heading describes your specific problem or question (i.e. don't just use "SQR Question"). In the body of your message, please include the following information: o SQR product name and version number (see notes below) o Operating system name and version number o Database name and version number o Application name (i.e. PeopleSoft) and a version number, if any Also, include a short code sample whenever possible. It's much easier for other people to understand what you are trying to do when they can see the actual code. (At the same time, be careful not to post confidential or proprietary code, since the posting will be placed in a public web archive.) Note that your question should relate to SQR or other Brio Report product in some way. Don't ask questions about PeopleSoft, for example, unless you are having SQR-related issues. (For PeopleSoft- specific questions, see other lists mentioned in the ``Related Mailing Lists'' section.) In 2001, PeopleSoft purchased from Brio the rights to the source code for SQR and began releasing its own line of SQR. PeopleSoft's SQR version numbering is different from Brio/Hyperion's, so it's very important to mention whether you are using Hyperion's "SQR" or "SQR for PeopleSoft". (This info is included automatically if you include the full SQR version-id string as described below.) To get the version-id string for your copy of SQR, you can run the following program: begin-program show $sqr-ver end-program This will produce a line that looks something like this: SQR/3.0.15/Intel/SCO Unix R3.2 V5.0/Oracle 7.2.2.3/Sep 25 1996 Include the full line of output in your message. Note that the oper- ating system and database version numbers listed here are the ones under which this copy of SQR was compiled, so you'll still need to include this information for your own environment. In a command-line environment (Unix, etc.), you can also get this version-id string by saying sqr -id 4.3. Replying to a Message Messages sent out on the list have a Reply-To header pointing to the list. This means that you should be able to simply use your mail reader's "reply" function to send a reply to the list. Generally, all answers to questions sent out on the list should be public replies, so that other subscribers can benefit. In those cases where a private reply is appropriate, be sure to over-ride the default Reply-To address. If your message is not actually a reply to the earlier message, please do not use the "reply" function. Instead, address a new e-mail message to the list as described in the previous section. (This is because the list archives will incorrectly show the new message in the original thread if you use "reply".) You should quote enough lines from the original message that later readers can understand your answer even if they missed the original question. At the same time, you should remove any unnecessary lines from the quote in order to make your message shorter and easier to understand. (Remember that some people read the mailing list in digest form, and the digests become much larger if unnecessary lines are quoted.) 5. Job Announcements Please do not post job announcements on the sqr-users list, but use the sqr-jobs list instead. (See ``Related Mailing Lists'' for more information on this list.) A large number of sqr-users subscribers do not want to receive job announcements (for various reasons) and such posts tend to cause a lot of disruption of the discussion on the list. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 12 10:55:08 2010 Subject: RE: [sqr-users] can SQR export to Excel? Date: Tue, 12 Jan 2010 10:50:12 -0500 From: "Simon, Jason (MBS)" Yes it can. I have built many reports that do just this using a helper file that converts your data into xml through procedures. There are two sources for these files on can be found on the Roy Onthko and Associates and the other one can be found on the source forge site. I use the latter because it has a pretty good user manual. It has worked out pretty well for me. The only issues I have run into is remembering that tab names must be less than 31 characters, I keep mine to 28 or less. Also, pay attention that you are using a procedure specific to date, number or character.=20=20 Author: David Vandiver http://sourceforge.net/projects/sqr2xml Hope this helps! Jason -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of Abdul Mahboob Sent: Tuesday, January 12, 2010 10:42 AM To: sqr-users@sqrug.org Subject: [sqr-users] can SQR export to Excel? Hi everyone, We have SQR 8.5 and wanted to know if we can export to Excel. "PLEASE" thanks AR Mahboob >>> Nathan Stratton Treadway 12/31/2009 9:00 PM >>> sqr-users Mailing List Hints and Guidelines Nathan Stratton Treadway, Ray Ontko & Co. (nathanst@ontko.com) $Revision: 1.23 $ $Date: 2006/07/27 16:28:24 $ This document gathers in one location information about the sqr-users mail list. It includes instructions for changing your subscription settings (including unsubscribing), as well are guidelines for using the list. ______________________________________________________________________ Table of Contents 1. Changes Since Previous Version 2. Introduction 2.1 sqr-users Mailing List 2.2 sqr-users Hints and Guidelines Document 2.3 Related Mailing Lists 3. Interacting with the list server 3.1 Subscribing to the list 3.2 Unsubscribing from the list 3.3 When your email address changes 3.4 Digests 3.5 Obtaining your password 3.6 Problems 4. Posting to the sqr-users List 4.1 General Guidelines 4.2 Posting a Message 4.3 Replying to a Message 5. Job Announcements ______________________________________________________________________ 1. Changes Since Previous Version Changes since the version dated 2005/08/19: o Added note about spam filtering and sender verification systems blocking subscription confirmation messages. 2. Introduction 2.1. sqr-users Mailing List The sqr-users mailing list was created to enable discussion related to the SQR database language from Hyperion (and to other products in the SQR product suite). Note: SQR used to be published by SQRIBE Technologies, which was merged into Brio Technology on August 3, 1999. Brio Technology changed its name to Brio Software in October 2001. On October 16, 2003, Hyperion acquired Brio Software. SQR and related applications have also been called "Brio.Report" and "Brio Reports". The mailing list is provided as a service of Ray Ontko & Co. A searchable archive of past postings to the mailing list is available from the SQR Users Group web site . 2.2. sqr-users Hints and Guidelines Document This document gives various hints and guidelines about the sqr-users mailing list. It will be posted approximately monthly to the mailing list so that new users can see it (and existing users can find it easily). An HTML version of the document is always available at http://www.sqrug.org/sqr-users/sqr-users-hints.html. If you have comments or suggestions about this document, please contact me directly at the address listed in the title section. This document is Copyright (C) 1999-2004 by Ray Ontko & Co. It may be freely copied and distributed provided it is not modified in any way and it retains the original copyright notice. 2.3. Related Mailing Lists Here are some mailing lists that cover topics relating to SQR in some way. sqr-jobs : SQR Jobs This list may be used for posting SQR-related resumes, recruitments, job announcements, project announcments, help- wanted, work-wanted ads, etc. To join, follow the link above, or send any message to "sqr-jobs-subscribe@yahoogroups.com". peoplesoft-fans : PeopleSoft Fans Moderated list covering technical and functional aspects of PeopleSoft. To join, follow the link above, or send any message to "peoplesoft-fans-subscribe@yahoogroups.com". psusers : PeopleSoft Users For questions related to any aspect of PeopleSoft (including PeopleSoft-specific SQR issues). This list has merged with the Peoplesoft Fans mailing list and is no longer active, but the message achive can still be found at the link above. HyperionSQR : Hyperion- SQR List for discussion of SQR, SQR Developer (formerly called Brio.Report and Report Builder), and SQR iServer. To join, follow the link above, or send any message to "HyperionSQR- subscribe@yahoogroups.com". rm-users : Report- Mart Users List for discussion of Brio Portal (previously called ReportMart). To join, follow the link above, or send a message containing the word "subscribe" in the body to "rm-users- request@sqrug.org". brioportalusersgroup : Brio Portal Users Group list List for discussion of Brio Portal. To join, follow the link above, or send any message to "brioportalusersgroup- subscribe@yahoogroups.com". brio-l : OpenITx Brio List List for technical and functional discussion of all Brio products (but most messages are currently about Brio Intelligence). To join, follow the link above. briousers : Brio.Enter- prise Users List for discussion of the Brio.Enterprise (now called Intelligence) product. To join, follow the link above, or send any message to "briousers-subscribe@yahoogroups.com". briolist : Brio List List for discussion of Brio Intelligence. To join, follow the link above, or send any message to "briolist- subscribe@yahoogroups.com". 3. Interacting with the list server The sqr-users mailing list is hosted using the Mailman list server package. All of the Mailman functions described below are accessed from the sqr-users List Info page, "http://www.sqrug.org/mailman/listinfo/sqr-users". 3.1. Subscribing to the list To subscribe to the mailing list, enter your e-mail address in the box at the top of the "Subscribing to sqr-users" section on the sqr-users List Info page, then choose a password to assign to your subscription and enter it in both "Password" boxes. This password is used to allow you to securely make changes to your subscription over the web. This password will be e-mailed back to you at varous times, so you should not use the same password as you are using elsewhere. Once you have filled in the password, click the "Subscribe" button. You should soon receive an e-mail message from the list server requesting confirmation of your subscription request. Once you have replied to this message and your subscription has been processed, you will receive a "welcome" message giving you more information on the list server, and as well as a reminder of the subscription password you chose. Many sites are now implementing spam filtering and/or sender verification systems, which can prevent your confirmation message from getting delivered to you. You may need check for a message from "sqr- users-request[-AT-]sqrug.org" caught in the filter, or add that address to your list of authorized senders, in order to complete the confirmation process. 3.2. Unsubscribing from the list To unsubscribe from the list, go to the sqr-users List Info page, enter your e-mail address in the "sqr-users Subscribers" section near the bottom of the page, and click the "Unsubscribe or edit options" button. You will then see the "member options" page; fill in your password at the top of the page and click "Log in". (If you have forgotton your password, see the ``Obtaining your Password'' section, below). This will take you to the "membership configuration" page. In the middle of that page, there will be an "Unsubscribing from sqr- users" section; simply turn on the "Yes, I really want to unsubscribe" checkbox and click the "Unsubscribe" button. You should get a page back saying that the removal was successful (as well as a confirmation email message). The removal will take effect immediately; there is no need to send in a confirmation e-mail message. If you don't know your password, you can choose to unsubscribe using e-mail confirmation. Instead of entering the password on the "member options" page, just click the "Unsubscribe" button found just below the "Log In" button. You will then see a page noting that a confirmation e-mail has been sent; once you follow the confirmation instructions in that e-mail your removal will be complete. 3.3. When your email address changes If your e-mail address changes -- for example, if your company changes names, or if your mail administrator changes the way your name is spelled out or abbreviated -- you will need to update your subscription to match your new address before you can post to the list (see the ``Posting'' section, below). To do this, simply log in to your "membership configuration" page (see the directions for logging in to this page in the ``Unsubscribing'' section, above). At the top of that page you'll see a "Changing your membership information" section. Fill out the text boxes and click the "Change My Address and Name" button. You will be sent a confirmation e-mail, and once you have responded to that e-mail your subscription will be updated and you can begin posting from your new address. 3.4. Digests You can request to get your messages in digest form (one large message containing all of the posts made each day). To do this, log in to your "membership configuration" page (see the directions on doing this in the ``Unsubscribing'' section, above). At the bottom of the page, you will see a section titled "Your sqr-users Subscription Options". Change the "Set Digest Mode" option (the second option in the list) to "On" and click the "Submit My Changes" button at the bottom of the page. You actually have a choice of two different digest formats, "MIME" or "Plain Text". The MIME format sends each individual list message as a separate MIME attachment to the digest; the plain text format consists of one large text message, with all of the individual messages run together. Which format you will want to use depends on your mail- reading software (and personal preference). If you are not sure which format will work best, you can just leave the default setting of "MIME" and see if the next morning's digest is easy to read in your mail reader -- you can change to the other format at any time using that same web page. If you use digests, you should not just "reply" to the digest mailing. Instead, be sure your message's subject header matches the subject in the original posting to which you are replying, and that you don't include a quoted copy of the entire digest in your post. To restore normal distribution, simply follow the above instructions choosing the "Off" setting for the Digest option. 3.5. Obtaining your password You will not be able to change your subscription options without your password. If you have forgotten your password, simply click the "Email My Password to Me" button on the "member options" page and your password will be emailed to you. You will also be e-mailed a copy of your password at the beginning of each month, as part of a "mailing list memberships reminder" message from the Mailman software. 3.6. Problems If the above instructions do not work, please contact the list manager at "sqr-users-manager@sqrug.org". (Do not send a message to the list itself -- no one there can help you with your problem!) Please include a description of what you were trying to do and what exactly happened when you made the attempt. 4. Posting to the sqr-users List In order to post to the mailing list, you must be subscribed to it (see directions above). More specifically, in order for Mailman to recognize that this message was sent by a subscriber, the return address on your message much exactly match the addresss you used to subscribe -- if you have more than one address you will need to be sure that you are sending from the correct one. (See the ``When you email address changes'' section, above, if your e-mail address has changed since you subscribed.) 4.1. General Guidelines For any message you send to the list, please: o make sure your mail software is not requesting a "Return Receipt". (If a "Return Receipt Requested" message is sent to the list, several dozen receipt messages will be sent out to the mailing list as other subscribers' mail systems repond....) o do not send messages in HTML or other special formats. (These are not usable by many subscribers, especially those who receive their messages in digest format.) The list server will delete these special attachments from your message and send you a warning notice. Also, if you are trying to send (for example) SQR source code files, make sure your mail-reader software is assigning proper MIME types to your attachments or they may not be distributed. o keep in mind that over 500 people will receive your message, and that it will appear in the list archives. Try to keep your messages on-topic and relatively short. Consider sending your message directly to particular people if it won't interest many of the list's subscribers. o ignore abusive and inappropriate messages that get sent to the list, rather than getting drawn into a debate. The very nature of these messages will cause most subscribers to automatically discredit them -- no "response" is necessary. To the contrary, any response will only "add fuel to the fire," prolonging the controversy and further interupting the normal conversation on the list. 4.2. Posting a Message Once you are subscribed, you can post to the list by sending a message to "sqr-users@sqrug.org". Be sure your subject heading describes your specific problem or question (i.e. don't just use "SQR Question"). In the body of your message, please include the following information: o SQR product name and version number (see notes below) o Operating system name and version number o Database name and version number o Application name (i.e. PeopleSoft) and a version number, if any Also, include a short code sample whenever possible. It's much easier for other people to understand what you are trying to do when they can see the actual code. (At the same time, be careful not to post confidential or proprietary code, since the posting will be placed in a public web archive.) Note that your question should relate to SQR or other Brio Report product in some way. Don't ask questions about PeopleSoft, for example, unless you are having SQR-related issues. (For PeopleSoft- specific questions, see other lists mentioned in the ``Related Mailing Lists'' section.) In 2001, PeopleSoft purchased from Brio the rights to the source code for SQR and began releasing its own line of SQR. PeopleSoft's SQR version numbering is different from Brio/Hyperion's, so it's very important to mention whether you are using Hyperion's "SQR" or "SQR for PeopleSoft". (This info is included automatically if you include the full SQR version-id string as described below.) To get the version-id string for your copy of SQR, you can run the following program: begin-program show $sqr-ver end-program This will produce a line that looks something like this: SQR/3.0.15/Intel/SCO Unix R3.2 V5.0/Oracle 7.2.2.3/Sep 25 1996 Include the full line of output in your message. Note that the oper- ating system and database version numbers listed here are the ones under which this copy of SQR was compiled, so you'll still need to include this information for your own environment. In a command-line environment (Unix, etc.), you can also get this version-id string by saying sqr -id 4.3. Replying to a Message Messages sent out on the list have a Reply-To header pointing to the list. This means that you should be able to simply use your mail reader's "reply" function to send a reply to the list. Generally, all answers to questions sent out on the list should be public replies, so that other subscribers can benefit. In those cases where a private reply is appropriate, be sure to over-ride the default Reply-To address. If your message is not actually a reply to the earlier message, please do not use the "reply" function. Instead, address a new e-mail message to the list as described in the previous section. (This is because the list archives will incorrectly show the new message in the original thread if you use "reply".) You should quote enough lines from the original message that later readers can understand your answer even if they missed the original question. At the same time, you should remove any unnecessary lines from the quote in order to make your message shorter and easier to understand. (Remember that some people read the mailing list in digest form, and the digests become much larger if unnecessary lines are quoted.) 5. Job Announcements Please do not post job announcements on the sqr-users list, but use the sqr-jobs list instead. (See ``Related Mailing Lists'' for more information on this list.) A large number of sqr-users subscribers do not want to receive job announcements (for various reasons) and such posts tend to cause a lot of disruption of the discussion on the list. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 12 12:06:03 2010 Date: Tue, 12 Jan 2010 09:03:23 -0800 From: "Abdul Mahboob" Subject: RE: [sqr-users] can SQR export to Excel? Jason, thank you.=20 AR Mahboob >>> "Simon, Jason (MBS)" 1/12/2010 7:50 AM= >>> Yes it can. I have built many reports that do just this using a helper file that converts your data into xml through procedures. There are two sources for these files on can be found on the Roy Onthko and Associates and the other one can be found on the source forge site. I use the latter because it has a pretty good user manual. It has worked out pretty well for me. The only issues I have run into is remembering that tab names must be less than 31 characters, I keep mine to 28 or less. Also, pay attention that you are using a procedure specific to date, number or character.=20=20 Author: David Vandiver http://sourceforge.net/projects/sqr2xml=20 Hope this helps! Jason -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org=20 [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of Abdul Mahboob Sent: Tuesday, January 12, 2010 10:42 AM To: sqr-users@sqrug.org=20 Subject: [sqr-users] can SQR export to Excel? Hi everyone, We have SQR 8.5 and wanted to know if we can export to Excel. "PLEASE" thanks AR Mahboob >>> Nathan Stratton Treadway 12/31/2009 9:00 PM >>> sqr-users Mailing List Hints and Guidelines Nathan Stratton Treadway, Ray Ontko & Co. (nathanst@ontko.com) $Revision: 1.23 $ $Date: 2006/07/27 16:28:24 $ This document gathers in one location information about the sqr-users mail list. It includes instructions for changing your subscription settings (including unsubscribing), as well are guidelines for using the list. ______________________________________________________________________ Table of Contents 1. Changes Since Previous Version 2. Introduction 2.1 sqr-users Mailing List 2.2 sqr-users Hints and Guidelines Document 2.3 Related Mailing Lists 3. Interacting with the list server 3.1 Subscribing to the list 3.2 Unsubscribing from the list 3.3 When your email address changes 3.4 Digests 3.5 Obtaining your password 3.6 Problems 4. Posting to the sqr-users List 4.1 General Guidelines 4.2 Posting a Message 4.3 Replying to a Message 5. Job Announcements ______________________________________________________________________ 1. Changes Since Previous Version Changes since the version dated 2005/08/19: o Added note about spam filtering and sender verification systems blocking subscription confirmation messages. 2. Introduction 2.1. sqr-users Mailing List The sqr-users mailing list was created to enable discussion related to the SQR database language from Hyperion (and to other products in the SQR product suite). Note: SQR used to be published by SQRIBE Technologies, which was merged into Brio Technology on August 3, 1999. Brio Technology changed its name to Brio Software in October 2001. On October 16, 2003, Hyperion acquired Brio Software. SQR and related applications have also been called "Brio.Report" and "Brio Reports". The mailing list is provided as a service of Ray Ontko & Co. A searchable archive of past postings to the mailing list is available from the SQR Users Group web site . 2.2. sqr-users Hints and Guidelines Document This document gives various hints and guidelines about the sqr-users mailing list. It will be posted approximately monthly to the mailing list so that new users can see it (and existing users can find it easily). An HTML version of the document is always available at http://www.sqrug.org/sqr-users/sqr-users-hints.html. If you have comments or suggestions about this document, please contact me directly at the address listed in the title section. This document is Copyright (C) 1999-2004 by Ray Ontko & Co. It may be freely copied and distributed provided it is not modified in any way and it retains the original copyright notice. 2.3. Related Mailing Lists Here are some mailing lists that cover topics relating to SQR in some way. sqr-jobs : SQR Jobs This list may be used for posting SQR-related resumes, recruitments, job announcements, project announcments, help- wanted, work-wanted ads, etc. To join, follow the link above, or send any message to "sqr-jobs-subscribe@yahoogroups.com". peoplesoft-fans : PeopleSoft Fans Moderated list covering technical and functional aspects of PeopleSoft. To join, follow the link above, or send any message to "peoplesoft-fans-subscribe@yahoogroups.com". psusers : PeopleSoft Users For questions related to any aspect of PeopleSoft (including PeopleSoft-specific SQR issues). This list has merged with the Peoplesoft Fans mailing list and is no longer active, but the message achive can still be found at the link above. HyperionSQR : Hyperion- SQR List for discussion of SQR, SQR Developer (formerly called Brio.Report and Report Builder), and SQR iServer. To join, follow the link above, or send any message to "HyperionSQR- subscribe@yahoogroups.com". rm-users : Report- Mart Users List for discussion of Brio Portal (previously called ReportMart). To join, follow the link above, or send a message containing the word "subscribe" in the body to "rm-users- request@sqrug.org". brioportalusersgroup : Brio Portal Users Group list List for discussion of Brio Portal. To join, follow the link above, or send any message to "brioportalusersgroup- subscribe@yahoogroups.com". brio-l : OpenITx Brio List List for technical and functional discussion of all Brio products (but most messages are currently about Brio Intelligence). To join, follow the link above. briousers : Brio.Enter- prise Users List for discussion of the Brio.Enterprise (now called Intelligence) product. To join, follow the link above, or send any message to "briousers-subscribe@yahoogroups.com". briolist : Brio List List for discussion of Brio Intelligence. To join, follow the link above, or send any message to "briolist- subscribe@yahoogroups.com". 3. Interacting with the list server The sqr-users mailing list is hosted using the Mailman list server package. All of the Mailman functions described below are accessed from the sqr-users List Info page, "http://www.sqrug.org/mailman/listinfo/sqr-users". 3.1. Subscribing to the list To subscribe to the mailing list, enter your e-mail address in the box at the top of the "Subscribing to sqr-users" section on the sqr-users List Info page, then choose a password to assign to your subscription and enter it in both "Password" boxes. This password is used to allow you to securely make changes to your subscription over the web. This password will be e-mailed back to you at varous times, so you should not use the same password as you are using elsewhere. Once you have filled in the password, click the "Subscribe" button. You should soon receive an e-mail message from the list server requesting confirmation of your subscription request. Once you have replied to this message and your subscription has been processed, you will receive a "welcome" message giving you more information on the list server, and as well as a reminder of the subscription password you chose. Many sites are now implementing spam filtering and/or sender verification systems, which can prevent your confirmation message from getting delivered to you. You may need check for a message from "sqr- users-request[-AT-]sqrug.org" caught in the filter, or add that address to your list of authorized senders, in order to complete the confirmation process. 3.2. Unsubscribing from the list To unsubscribe from the list, go to the sqr-users List Info page, enter your e-mail address in the "sqr-users Subscribers" section near the bottom of the page, and click the "Unsubscribe or edit options" button. You will then see the "member options" page; fill in your password at the top of the page and click "Log in". (If you have forgotton your password, see the ``Obtaining your Password'' section, below). This will take you to the "membership configuration" page. In the middle of that page, there will be an "Unsubscribing from sqr- users" section; simply turn on the "Yes, I really want to unsubscribe" checkbox and click the "Unsubscribe" button. You should get a page back saying that the removal was successful (as well as a confirmation email message). The removal will take effect immediately; there is no need to send in a confirmation e-mail message. If you don't know your password, you can choose to unsubscribe using e-mail confirmation. Instead of entering the password on the "member options" page, just click the "Unsubscribe" button found just below the "Log In" button. You will then see a page noting that a confirmation e-mail has been sent; once you follow the confirmation instructions in that e-mail your removal will be complete. 3.3. When your email address changes If your e-mail address changes -- for example, if your company changes names, or if your mail administrator changes the way your name is spelled out or abbreviated -- you will need to update your subscription to match your new address before you can post to the list (see the ``Posting'' section, below). To do this, simply log in to your "membership configuration" page (see the directions for logging in to this page in the ``Unsubscribing'' section, above). At the top of that page you'll see a "Changing your membership information" section. Fill out the text boxes and click the "Change My Address and Name" button. You will be sent a confirmation e-mail, and once you have responded to that e-mail your subscription will be updated and you can begin posting from your new address. 3.4. Digests You can request to get your messages in digest form (one large message containing all of the posts made each day). To do this, log in to your "membership configuration" page (see the directions on doing this in the ``Unsubscribing'' section, above). At the bottom of the page, you will see a section titled "Your sqr-users Subscription Options". Change the "Set Digest Mode" option (the second option in the list) to "On" and click the "Submit My Changes" button at the bottom of the page. You actually have a choice of two different digest formats, "MIME" or "Plain Text". The MIME format sends each individual list message as a separate MIME attachment to the digest; the plain text format consists of one large text message, with all of the individual messages run together. Which format you will want to use depends on your mail- reading software (and personal preference). If you are not sure which format will work best, you can just leave the default setting of "MIME" and see if the next morning's digest is easy to read in your mail reader -- you can change to the other format at any time using that same web page. If you use digests, you should not just "reply" to the digest mailing. Instead, be sure your message's subject header matches the subject in the original posting to which you are replying, and that you don't include a quoted copy of the entire digest in your post. To restore normal distribution, simply follow the above instructions choosing the "Off" setting for the Digest option. 3.5. Obtaining your password You will not be able to change your subscription options without your password. If you have forgotten your password, simply click the "Email My Password to Me" button on the "member options" page and your password will be emailed to you. You will also be e-mailed a copy of your password at the beginning of each month, as part of a "mailing list memberships reminder" message from the Mailman software. 3.6. Problems If the above instructions do not work, please contact the list manager at "sqr-users-manager@sqrug.org". (Do not send a message to the list itself -- no one there can help you with your problem!) Please include a description of what you were trying to do and what exactly happened when you made the attempt. 4. Posting to the sqr-users List In order to post to the mailing list, you must be subscribed to it (see directions above). More specifically, in order for Mailman to recognize that this message was sent by a subscriber, the return address on your message much exactly match the addresss you used to subscribe -- if you have more than one address you will need to be sure that you are sending from the correct one. (See the ``When you email address changes'' section, above, if your e-mail address has changed since you subscribed.) 4.1. General Guidelines For any message you send to the list, please: o make sure your mail software is not requesting a "Return Receipt". (If a "Return Receipt Requested" message is sent to the list, several dozen receipt messages will be sent out to the mailing list as other subscribers' mail systems repond....) o do not send messages in HTML or other special formats. (These are not usable by many subscribers, especially those who receive their messages in digest format.) The list server will delete these special attachments from your message and send you a warning notice. Also, if you are trying to send (for example) SQR source code files, make sure your mail-reader software is assigning proper MIME types to your attachments or they may not be distributed. o keep in mind that over 500 people will receive your message, and that it will appear in the list archives. Try to keep your messages on-topic and relatively short. Consider sending your message directly to particular people if it won't interest many of the list's subscribers. o ignore abusive and inappropriate messages that get sent to the list, rather than getting drawn into a debate. The very nature of these messages will cause most subscribers to automatically discredit them -- no "response" is necessary. To the contrary, any response will only "add fuel to the fire," prolonging the controversy and further interupting the normal conversation on the list. 4.2. Posting a Message Once you are subscribed, you can post to the list by sending a message to "sqr-users@sqrug.org". Be sure your subject heading describes your specific problem or question (i.e. don't just use "SQR Question"). In the body of your message, please include the following information: o SQR product name and version number (see notes below) o Operating system name and version number o Database name and version number o Application name (i.e. PeopleSoft) and a version number, if any Also, include a short code sample whenever possible. It's much easier for other people to understand what you are trying to do when they can see the actual code. (At the same time, be careful not to post confidential or proprietary code, since the posting will be placed in a public web archive.) Note that your question should relate to SQR or other Brio Report product in some way. Don't ask questions about PeopleSoft, for example, unless you are having SQR-related issues. (For PeopleSoft- specific questions, see other lists mentioned in the ``Related Mailing Lists'' section.) In 2001, PeopleSoft purchased from Brio the rights to the source code for SQR and began releasing its own line of SQR. PeopleSoft's SQR version numbering is different from Brio/Hyperion's, so it's very important to mention whether you are using Hyperion's "SQR" or "SQR for PeopleSoft". (This info is included automatically if you include the full SQR version-id string as described below.) To get the version-id string for your copy of SQR, you can run the following program: begin-program show $sqr-ver end-program This will produce a line that looks something like this: SQR/3.0.15/Intel/SCO Unix R3.2 V5.0/Oracle 7.2.2.3/Sep 25 1996 Include the full line of output in your message. Note that the oper- ating system and database version numbers listed here are the ones under which this copy of SQR was compiled, so you'll still need to include this information for your own environment. In a command-line environment (Unix, etc.), you can also get this version-id string by saying sqr -id 4.3. Replying to a Message Messages sent out on the list have a Reply-To header pointing to the list. This means that you should be able to simply use your mail reader's "reply" function to send a reply to the list. Generally, all answers to questions sent out on the list should be public replies, so that other subscribers can benefit. In those cases where a private reply is appropriate, be sure to over-ride the default Reply-To address. If your message is not actually a reply to the earlier message, please do not use the "reply" function. Instead, address a new e-mail message to the list as described in the previous section. (This is because the list archives will incorrectly show the new message in the original thread if you use "reply".) You should quote enough lines from the original message that later readers can understand your answer even if they missed the original question. At the same time, you should remove any unnecessary lines from the quote in order to make your message shorter and easier to understand. (Remember that some people read the mailing list in digest form, and the digests become much larger if unnecessary lines are quoted.) 5. Job Announcements Please do not post job announcements on the sqr-users list, but use the sqr-jobs list instead. (See ``Related Mailing Lists'' for more information on this list.) A large number of sqr-users subscribers do not want to receive job announcements (for various reasons) and such posts tend to cause a lot of disruption of the discussion on the list. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jan 13 13:18:54 2010 Date: Wed, 13 Jan 2010 16:16:38 -0200 From: Alvaro Soares Subject: [sqr-users] How to print "Hello World!" in PDF file without ask username/password ?? Hi All I am trying to build an simple example in SQR 9.3 to print out in an PDF output file the string "Hello World!", but every time I user the command : C:\FOLDER> sqr hello.sqr -printer:pd Appears a window asking for username and password. I don't need to connect to any database. How can I do that ? My code is the following ! This program simply prints a "Hello". ! It does not need database connection. ! Begin-Setup Declare-Report Detalhes Printer-Type = pd End-Declare End-Setup begin-report do main end-report begin-procedure main ! To create the output file name let $out_file = 'Outputfile_HelloWorld' || '.pdf' new-report $out_file print 'Hello World!!' (1,1) end-procedure Thanks! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jan 13 13:26:58 2010 Date: Wed, 13 Jan 2010 13:24:27 -0500 Subject: Re: [sqr-users] How to print "Hello World!" in PDF file without ask username/password ?? From: Don Mellen It's a command line flag -xl ( as in X Login) You'll still need the base of the login for your flavor of SQR. For oracle it'd be the slash, like... sqr hello.sqr / -xl -printer:pd On Wed, Jan 13, 2010 at 1:16 PM, Alvaro Soares wrote: > Hi All > > I am trying to build an simple example in SQR 9.3 to print out in an > PDF output file the string "Hello World!", but every time I user the > command > : > > > C:\FOLDER> sqr hello.sqr -printer:pd > > Appears a window asking for username and password. > > I don't need to connect to any database. How can I do that ? > > My code is the following > > > ! This program simply prints a "Hello". > ! It does not need database connection. > ! > > Begin-Setup > > Declare-Report Detalhes > Printer-Type = pd > End-Declare > > End-Setup > > > begin-report > do main > end-report > > begin-procedure main > > ! To create the output file name > > let $out_file = 'Outputfile_HelloWorld' || '.pdf' > > new-report $out_file > > > print 'Hello World!!' (1,1) > > > end-procedure > > > > > Thanks! > > _______________________________________________ > 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" (Terry Pratchett) _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jan 14 15:36:24 2010 Date: Thu, 14 Jan 2010 14:33:32 -0600 From: "Ojha, Dipin" Subject: [sqr-users] Problems with large numbers I have a query that brings back numbers which I am trying to print in a .cs= v file. I am using the Portal's output for .csv and the hyperion version is= 8.3 When I open the .csv output in excel it just drops the last 3 digits and pr= ints 0 . for e.g. my query returns 420003140099207929 but the output displa= ys 420003140099207000. Could anybody help me with this? I would appreciate = any input form your end. =20 Thanks, Dipin _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you. _____________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jan 14 16:05:43 2010 From: "Ray, Christine Marie" Date: Thu, 14 Jan 2010 16:02:43 -0500 Subject: [sqr-users] RE: Problems with large numbers According to Microsoft (http://office.microsoft.com/en-us/excel/HP051992911= 033.aspx) The maximum limit for number precision is 15 digits and your numb= er has 18 digits. This is not an SQR or CSV issue, but an Excel issue.=20= =20 I don't think you are going to be able to avoid this in Excel. Hope this helps.=20 Christine Ray Indiana University Bloomington -----Original Message----- From: sqr-users-bounces+chmray=3Dindiana.edu@sqrug.org [mailto:sqr-users-bo= unces+chmray=3Dindiana.edu@sqrug.org] On Behalf Of Ojha, Dipin Sent: Thursday, January 14, 2010 3:34 PM To: This list is for discussion about the SQR database reportinglanguage fr= om Hyperion Solutions. Subject: [sqr-users] Problems with large numbers I have a query that brings back numbers which I am trying to print in a .cs= v file. I am using the Portal's output for .csv and the hyperion version is= 8.3 When I open the .csv output in excel it just drops the last 3 digits and pr= ints 0 . for e.g. my query returns 420003140099207929 but the output displa= ys 420003140099207000. Could anybody help me with this? I would appreciate = any input form your end. =20 Thanks, Dipin _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you. _____________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jan 14 16:09:13 2010 From: "franck.masson" Subject: Re:[sqr-users] Problems with large numbers Date: Thu, 14 Jan 2010 22:04:52 +0100 (CET) it is an excell limitation.(you can easily reproduce it by a cut and past o= f your value in excell) the maximum precision on a Reel Number is with 15 digit. does this number come from a Number field in your dataBase or a text Field > Message du 14/01/10 21:36 > De : "Ojha, Dipin"=20 > A : "This list is for discussion about the SQR database reportinglanguage= from Hyperion Solutions."=20 > Copie =C3=A0 :=20 > Objet : [sqr-users] Problems with large numbers > >=20 > I have a query that brings back numbers which I am trying to print in a .= csv file. I am using the Portal's output for .csv and the hyperion version = is 8.3 >=20 > When I open the .csv output in excel it just drops the last 3 digits and = prints 0 . for e.g. my query returns 420003140099207929 but the output disp= lays 420003140099207000. Could anybody help me with this? I would appreciat= e any input form your end. >=20 >=20 >=20 > Thanks, >=20 > Dipin >=20 > _____________ >=20 > The information contained in this message is proprietary and/or confident= ial. If you are not the intended recipient, please: (i) delete the message = and all copies; (ii) do not disclose, distribute or use the message in any = manner; and (iii) notify the sender immediately. In addition, please be awa= re that any message addressed to our domain is subject to archiving and rev= iew by persons other than the intended recipient. Thank you. > _____________ >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 >=20 Une messagerie gratuite, garantie =C3=A0 vie et des services en plus, =C3= =A7a vous tente ? Je cr=C3=A9e ma bo=C3=AEte mail www.laposte.net _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jan 14 16:12:46 2010 Subject: RE: [sqr-users] RE: Problems with large numbers Date: Thu, 14 Jan 2010 15:08:07 -0600 From: "Ojha, Dipin" Is there any other way I can print this? -----Original Message----- From: sqr-users-bounces+dipin.ojha=3Dfnis.com@sqrug.org [mailto:sqr-users-b= ounces+dipin.ojha=3Dfnis.com@sqrug.org] On Behalf Of Ray, Christine Marie Sent: Thursday, January 14, 2010 4:03 PM To: This list is for discussion about the SQR database reportinglanguagefro= m Hyperion Solutions. Subject: [sqr-users] RE: Problems with large numbers According to Microsoft (http://office.microsoft.com/en-us/excel/HP051992911= 033.aspx) The maximum limit for number precision is 15 digits and your numb= er has 18 digits. This is not an SQR or CSV issue, but an Excel issue.=20= =20 I don't think you are going to be able to avoid this in Excel. Hope this helps.=20 Christine Ray Indiana University Bloomington -----Original Message----- From: sqr-users-bounces+chmray=3Dindiana.edu@sqrug.org [mailto:sqr-users-bo= unces+chmray=3Dindiana.edu@sqrug.org] On Behalf Of Ojha, Dipin Sent: Thursday, January 14, 2010 3:34 PM To: This list is for discussion about the SQR database reportinglanguage fr= om Hyperion Solutions. Subject: [sqr-users] Problems with large numbers I have a query that brings back numbers which I am trying to print in a .cs= v file. I am using the Portal's output for .csv and the hyperion version is= 8.3 When I open the .csv output in excel it just drops the last 3 digits and pr= ints 0 . for e.g. my query returns 420003140099207929 but the output displa= ys 420003140099207000. Could anybody help me with this? I would appreciate = any input form your end. =20 Thanks, Dipin _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. 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 _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you. _____________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jan 14 16:16:08 2010 Subject: RE: [sqr-users] RE: Problems with large numbers Date: Thu, 14 Jan 2010 16:08:48 -0500 From: "Simon, Jason (MBS)" Convert it to a string and put some kind of hidden character at the front or end of the value so that excel will see it as a string. This also means that you will also have to do your calculations in SQR prior to sending the data to excel.=20=20 Just a thought and I hope it helps! http://sqrhelpers.wordpress.com/ Thanks=20 Jason -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of Ray, Christine Marie Sent: Thursday, January 14, 2010 4:03 PM To: This list is for discussion about the SQR database reportinglanguagefrom Hyperion Solutions. Subject: [sqr-users] RE: Problems with large numbers According to Microsoft (http://office.microsoft.com/en-us/excel/HP051992911033.aspx) The maximum limit for number precision is 15 digits and your number has 18 digits. This is not an SQR or CSV issue, but an Excel issue.=20=20 I don't think you are going to be able to avoid this in Excel. Hope this helps.=20 Christine Ray Indiana University Bloomington -----Original Message----- From: sqr-users-bounces+chmray=3Dindiana.edu@sqrug.org [mailto:sqr-users-bounces+chmray=3Dindiana.edu@sqrug.org] On Behalf Of Ojha, Dipin Sent: Thursday, January 14, 2010 3:34 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: [sqr-users] Problems with large numbers I have a query that brings back numbers which I am trying to print in a .csv file. I am using the Portal's output for .csv and the hyperion version is 8.3 When I open the .csv output in excel it just drops the last 3 digits and prints 0 . for e.g. my query returns 420003140099207929 but the output displays 420003140099207000. Could anybody help me with this? I would appreciate any input form your end. =20 Thanks, Dipin _____________ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. _____________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jan 14 16:19:53 2010 Subject: RE: [sqr-users] Problems with large numbers Date: Thu, 14 Jan 2010 15:11:13 -0600 From: "Ojha, Dipin" --===============0311198027== Content-class: urn:content-classes:message Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 SXQgY29tZXMgZnJvbSBhIG51bWJlciBmaWVsZC4NCg0KLS0tLS1PcmlnaW5h bCBNZXNzYWdlLS0tLS0NCkZyb206IHNxci11c2Vycy1ib3VuY2VzK2RpcGlu Lm9qaGE9Zm5pcy5jb21Ac3FydWcub3JnIFttYWlsdG86c3FyLXVzZXJzLWJv dW5jZXMrZGlwaW4ub2poYT1mbmlzLmNvbUBzcXJ1Zy5vcmddIE9uIEJlaGFs ZiBPZiBmcmFuY2subWFzc29uDQpTZW50OiBUaHVyc2RheSwgSmFudWFyeSAx NCwgMjAxMCA0OjA1IFBNDQpUbzogVGhpcyBsaXN0IGlzIGZvciBkaXNjdXNz aW9uIGFib3V0IHRoZSBTUVIgZGF0YWJhc2UgcmVwb3J0aW5nIGxhbmd1YWdl ZnJvbSBIeXBlcmlvbiBTb2x1dGlvbnMuDQpTdWJqZWN0OiBSZTpbc3FyLXVz ZXJzXSBQcm9ibGVtcyB3aXRoIGxhcmdlIG51bWJlcnMNCg0KaXQgaXMgYW4g ZXhjZWxsIGxpbWl0YXRpb24uKHlvdSBjYW4gZWFzaWx5IHJlcHJvZHVjZSBp dCBieSBhIGN1dCBhbmQgcGFzdCBvZiB5b3VyIHZhbHVlIGluIGV4Y2VsbCkN CnRoZSBtYXhpbXVtIHByZWNpc2lvbiBvbiBhIFJlZWwgTnVtYmVyIGlzIHdp dGggMTUgZGlnaXQuDQpkb2VzIHRoaXMgbnVtYmVyIGNvbWUgZnJvbSBhIE51 bWJlciBmaWVsZCBpbiB5b3VyIGRhdGFCYXNlIG9yIGEgdGV4dCBGaWVsZA0K DQoNCg0KDQo+IE1lc3NhZ2UgZHUgMTQvMDEvMTAgMjE6MzYNCj4gRGUgOiAi T2poYSwgRGlwaW4iIA0KPiBBIDogIlRoaXMgbGlzdCBpcyBmb3IgZGlzY3Vz c2lvbiBhYm91dCB0aGUgU1FSIGRhdGFiYXNlIHJlcG9ydGluZ2xhbmd1YWdl IGZyb20gSHlwZXJpb24gU29sdXRpb25zLiIgDQo+IENvcGllIMOgIDogDQo+ IE9iamV0IDogW3Nxci11c2Vyc10gUHJvYmxlbXMgd2l0aCBsYXJnZSBudW1i ZXJzDQo+DQo+IA0KPiBJIGhhdmUgYSBxdWVyeSB0aGF0IGJyaW5ncyBiYWNr IG51bWJlcnMgd2hpY2ggSSBhbSB0cnlpbmcgdG8gcHJpbnQgaW4gYSAuY3N2 IGZpbGUuIEkgYW0gdXNpbmcgdGhlIFBvcnRhbCdzIG91dHB1dCBmb3IgLmNz diBhbmQgdGhlIGh5cGVyaW9uIHZlcnNpb24gaXMgOC4zDQo+IA0KPiBXaGVu IEkgb3BlbiB0aGUgLmNzdiBvdXRwdXQgaW4gZXhjZWwgaXQganVzdCBkcm9w cyB0aGUgbGFzdCAzIGRpZ2l0cyBhbmQgcHJpbnRzIDAgLiBmb3IgZS5nLiBt eSBxdWVyeSByZXR1cm5zIDQyMDAwMzE0MDA5OTIwNzkyOSBidXQgdGhlIG91 dHB1dCBkaXNwbGF5cyA0MjAwMDMxNDAwOTkyMDcwMDAuIENvdWxkIGFueWJv ZHkgaGVscCBtZSB3aXRoIHRoaXM/IEkgd291bGQgYXBwcmVjaWF0ZSBhbnkg aW5wdXQgZm9ybSB5b3VyIGVuZC4NCj4gDQo+IA0KPiANCj4gVGhhbmtzLA0K PiANCj4gRGlwaW4NCj4gDQo+IF9fX19fX19fX19fX18NCj4gDQo+IFRoZSBp bmZvcm1hdGlvbiBjb250YWluZWQgaW4gdGhpcyBtZXNzYWdlIGlzIHByb3By aWV0YXJ5IGFuZC9vciBjb25maWRlbnRpYWwuIElmIHlvdSBhcmUgbm90IHRo ZSBpbnRlbmRlZCByZWNpcGllbnQsIHBsZWFzZTogKGkpIGRlbGV0ZSB0aGUg bWVzc2FnZSBhbmQgYWxsIGNvcGllczsgKGlpKSBkbyBub3QgZGlzY2xvc2Us IGRpc3RyaWJ1dGUgb3IgdXNlIHRoZSBtZXNzYWdlIGluIGFueSBtYW5uZXI7 IGFuZCAoaWlpKSBub3RpZnkgdGhlIHNlbmRlciBpbW1lZGlhdGVseS4gSW4g YWRkaXRpb24sIHBsZWFzZSBiZSBhd2FyZSB0aGF0IGFueSBtZXNzYWdlIGFk ZHJlc3NlZCB0byBvdXIgZG9tYWluIGlzIHN1YmplY3QgdG8gYXJjaGl2aW5n IGFuZCByZXZpZXcgYnkgcGVyc29ucyBvdGhlciB0aGFuIHRoZSBpbnRlbmRl ZCByZWNpcGllbnQuIFRoYW5rIHlvdS4NCj4gX19fX19fX19fX19fXw0KPiAN Cj4gX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX18NCj4gc3FyLXVzZXJzIG1haWxpbmcgbGlzdA0KPiBzcXItdXNlcnNA c3FydWcub3JnDQo+IGh0dHA6Ly93d3cuc3FydWcub3JnL21haWxtYW4vbGlz dGluZm8vc3FyLXVzZXJzDQo+IA0KPiANCg0KVW5lIG1lc3NhZ2VyaWUgZ3Jh dHVpdGUsIGdhcmFudGllIMOgIHZpZSBldCBkZXMgc2VydmljZXMgZW4gcGx1 cywgw6dhIHZvdXMgdGVudGUgPw0KSmUgY3LDqWUgbWEgYm/DrnRlIG1haWwg d3d3LmxhcG9zdGUubmV0DQoNCl9fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fDQpzcXItdXNlcnMgbWFpbGluZyBsaXN0 DQpzcXItdXNlcnNAc3FydWcub3JnDQpodHRwOi8vd3d3LnNxcnVnLm9yZy9t YWlsbWFuL2xpc3RpbmZvL3Nxci11c2Vycw0KCl9fX19fX19fX19fX18KClRo ZSBpbmZvcm1hdGlvbiBjb250YWluZWQgaW4gdGhpcyBtZXNzYWdlIGlzIHBy b3ByaWV0YXJ5IGFuZC9vciBjb25maWRlbnRpYWwuIElmIHlvdSBhcmUgbm90 IHRoZSBpbnRlbmRlZCByZWNpcGllbnQsIHBsZWFzZTogKGkpIGRlbGV0ZSB0 aGUgbWVzc2FnZSBhbmQgYWxsIGNvcGllczsgKGlpKSBkbyBub3QgZGlzY2xv c2UsIGRpc3RyaWJ1dGUgb3IgdXNlIHRoZSBtZXNzYWdlIGluIGFueSBtYW5u ZXI7IGFuZCAoaWlpKSBub3RpZnkgdGhlIHNlbmRlciBpbW1lZGlhdGVseS4g SW4gYWRkaXRpb24sIHBsZWFzZSBiZSBhd2FyZSB0aGF0IGFueSBtZXNzYWdl IGFkZHJlc3NlZCB0byBvdXIgZG9tYWluIGlzIHN1YmplY3QgdG8gYXJjaGl2 aW5nIGFuZCByZXZpZXcgYnkgcGVyc29ucyBvdGhlciB0aGFuIHRoZSBpbnRl bmRlZCByZWNpcGllbnQuIFRoYW5rIHlvdS4KX19fX19fX19fX19fXwo= --===============0311198027== 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 --===============0311198027==-- From sqr-users-bounces@sqrug.org Thu Jan 14 16:23:14 2010 From: "Ray, Christine Marie" Date: Thu, 14 Jan 2010 16:13:20 -0500 Subject: RE: [sqr-users] RE: Problems with large numbers You could force excel to see it as a character. The limit in Excel for cha= racters is 32,767 characters. http://office.microsoft.com/en-us/excel/HP051992911033.aspx Christine Ray Indiana University Bloomington FMS Administration 400 East Seventh Street Bloomington, IN 47405 Poplars 529 812-856-2411 -----Original Message----- From: sqr-users-bounces+chmray=3Dindiana.edu@sqrug.org [mailto:sqr-users-bo= unces+chmray=3Dindiana.edu@sqrug.org] On Behalf Of Ojha, Dipin Sent: Thursday, January 14, 2010 4:08 PM To: This list is for discussion about the SQR database reportinglanguage fr= om Hyperion Solutions. Subject: RE: [sqr-users] RE: Problems with large numbers Is there any other way I can print this? -----Original Message----- From: sqr-users-bounces+dipin.ojha=3Dfnis.com@sqrug.org [mailto:sqr-users-b= ounces+dipin.ojha=3Dfnis.com@sqrug.org] On Behalf Of Ray, Christine Marie Sent: Thursday, January 14, 2010 4:03 PM To: This list is for discussion about the SQR database reportinglanguagefro= m Hyperion Solutions. Subject: [sqr-users] RE: Problems with large numbers According to Microsoft (http://office.microsoft.com/en-us/excel/HP051992911= 033.aspx) The maximum limit for number precision is 15 digits and your numb= er has 18 digits. This is not an SQR or CSV issue, but an Excel issue.=20= =20 I don't think you are going to be able to avoid this in Excel. Hope this helps.=20 Christine Ray Indiana University Bloomington -----Original Message----- From: sqr-users-bounces+chmray=3Dindiana.edu@sqrug.org [mailto:sqr-users-bo= unces+chmray=3Dindiana.edu@sqrug.org] On Behalf Of Ojha, Dipin Sent: Thursday, January 14, 2010 3:34 PM To: This list is for discussion about the SQR database reportinglanguage fr= om Hyperion Solutions. Subject: [sqr-users] Problems with large numbers I have a query that brings back numbers which I am trying to print in a .cs= v file. I am using the Portal's output for .csv and the hyperion version is= 8.3 When I open the .csv output in excel it just drops the last 3 digits and pr= ints 0 . for e.g. my query returns 420003140099207929 but the output displa= ys 420003140099207000. Could anybody help me with this? I would appreciate = any input form your end. =20 Thanks, Dipin _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. 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 _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you. _____________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jan 14 17:19:24 2010 From: "Barry E. Cohen" Date: Thu, 14 Jan 2010 17:16:26 -0500 Subject: RE: [sqr-users] Problems with large numbers --===============1835247829== Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 V3JpdGUgb3IganVzdCByZW5hbWUgdGhlIGZpbGUgYXMgYSAiLnR4dCIgZmls ZS4gV2hlbiB5b3Ugb3BlbiBpdCB3aXRoIEV4Y2VsIHRoZSAiVGV4dCBJbXBv cnQgV2l6YXJkIiB3aWxsIG9wZW4sIHlvdSBjYW4gdGhlbiB0ZWxsIEV4Y2Vs IHRoYXQgdGhlIG9mZmVuZGluZyBkYXRhIGNvbHVtbiBpcyBUZXh0IGRhdGEs IGFuZCBpdCB3aWxsIGJlIHRyZWF0ZWQgYXMgc3VjaC4gWW91IHdvbid0IGJl IGFibGUgdG8gZG8gYW55IG1hdGhlbWF0aWNzIG9yIG1hdGhlbWF0aWNhbCBl dmFsdWF0aW9ucyBvbiB0aGUgdmFsdWVzIHRob3VnaC4NCg0KX19fX19fX19f X19fX19fX19fX19fDQpCYXJyeSBFLiBDb2hlbg0KU2VuaW9yIFByb2dyYW1t ZXIgQW5hbHlzdA0KVW5pdmlzaW9uIEhSIGFuZCBGaW5hbmNpYWwgU3lzdGVt cw0KIA0KT2ZmaWNlOiAyMDEtMjg3LTQyODcNCkNlbGw6ICAgMjAxLTgwNS0y NTk4DQogDQpQbGVhc2UgY29uc2lkZXIgdGhlIGVudmlyb25tZW50IGJlZm9y ZSBwcmludGluZyB0aGlzIGVtYWlsDQoNCi0tLS0tT3JpZ2luYWwgTWVzc2Fn ZS0tLS0tDQpGcm9tOiBzcXItdXNlcnMtYm91bmNlcytiY29oZW49dW5pdmlz aW9uLm5ldEBzcXJ1Zy5vcmcgW21haWx0bzpzcXItdXNlcnMtYm91bmNlcyti Y29oZW49dW5pdmlzaW9uLm5ldEBzcXJ1Zy5vcmddIE9uIEJlaGFsZiBPZiBP amhhLCBEaXBpbg0KU2VudDogVGh1cnNkYXksIEphbnVhcnkgMTQsIDIwMTAg NDoxMSBQTQ0KVG86IFRoaXMgbGlzdCBpcyBmb3IgZGlzY3Vzc2lvbiBhYm91 dCB0aGUgU1FSIGRhdGFiYXNlIHJlcG9ydGluZ2xhbmd1YWdlIGZyb20gSHlw ZXJpb24gU29sdXRpb25zLg0KU3ViamVjdDogUkU6IFtzcXItdXNlcnNdIFBy b2JsZW1zIHdpdGggbGFyZ2UgbnVtYmVycw0KDQpJdCBjb21lcyBmcm9tIGEg bnVtYmVyIGZpZWxkLg0KDQotLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0K RnJvbTogc3FyLXVzZXJzLWJvdW5jZXMrZGlwaW4ub2poYT1mbmlzLmNvbUBz cXJ1Zy5vcmcgW21haWx0bzpzcXItdXNlcnMtYm91bmNlcytkaXBpbi5vamhh PWZuaXMuY29tQHNxcnVnLm9yZ10gT24gQmVoYWxmIE9mIGZyYW5jay5tYXNz b24NClNlbnQ6IFRodXJzZGF5LCBKYW51YXJ5IDE0LCAyMDEwIDQ6MDUgUE0N ClRvOiBUaGlzIGxpc3QgaXMgZm9yIGRpc2N1c3Npb24gYWJvdXQgdGhlIFNR UiBkYXRhYmFzZSByZXBvcnRpbmcgbGFuZ3VhZ2Vmcm9tIEh5cGVyaW9uIFNv bHV0aW9ucy4NClN1YmplY3Q6IFJlOltzcXItdXNlcnNdIFByb2JsZW1zIHdp dGggbGFyZ2UgbnVtYmVycw0KDQppdCBpcyBhbiBleGNlbGwgbGltaXRhdGlv bi4oeW91IGNhbiBlYXNpbHkgcmVwcm9kdWNlIGl0IGJ5IGEgY3V0IGFuZCBw YXN0IG9mIHlvdXIgdmFsdWUgaW4gZXhjZWxsKSB0aGUgbWF4aW11bSBwcmVj aXNpb24gb24gYSBSZWVsIE51bWJlciBpcyB3aXRoIDE1IGRpZ2l0Lg0KZG9l cyB0aGlzIG51bWJlciBjb21lIGZyb20gYSBOdW1iZXIgZmllbGQgaW4geW91 ciBkYXRhQmFzZSBvciBhIHRleHQgRmllbGQNCg0KDQoNCg0KPiBNZXNzYWdl IGR1IDE0LzAxLzEwIDIxOjM2DQo+IERlIDogIk9qaGEsIERpcGluIiANCj4g QSA6ICJUaGlzIGxpc3QgaXMgZm9yIGRpc2N1c3Npb24gYWJvdXQgdGhlIFNR UiBkYXRhYmFzZSByZXBvcnRpbmdsYW5ndWFnZSBmcm9tIEh5cGVyaW9uIFNv bHV0aW9ucy4iIA0KPiBDb3BpZSDDoCA6IA0KPiBPYmpldCA6IFtzcXItdXNl cnNdIFByb2JsZW1zIHdpdGggbGFyZ2UgbnVtYmVycw0KPg0KPiANCj4gSSBo YXZlIGEgcXVlcnkgdGhhdCBicmluZ3MgYmFjayBudW1iZXJzIHdoaWNoIEkg YW0gdHJ5aW5nIHRvIHByaW50IGluIA0KPiBhIC5jc3YgZmlsZS4gSSBhbSB1 c2luZyB0aGUgUG9ydGFsJ3Mgb3V0cHV0IGZvciAuY3N2IGFuZCB0aGUgaHlw ZXJpb24gDQo+IHZlcnNpb24gaXMgOC4zDQo+IA0KPiBXaGVuIEkgb3BlbiB0 aGUgLmNzdiBvdXRwdXQgaW4gZXhjZWwgaXQganVzdCBkcm9wcyB0aGUgbGFz dCAzIGRpZ2l0cyBhbmQgcHJpbnRzIDAgLiBmb3IgZS5nLiBteSBxdWVyeSBy ZXR1cm5zIDQyMDAwMzE0MDA5OTIwNzkyOSBidXQgdGhlIG91dHB1dCBkaXNw bGF5cyA0MjAwMDMxNDAwOTkyMDcwMDAuIENvdWxkIGFueWJvZHkgaGVscCBt ZSB3aXRoIHRoaXM/IEkgd291bGQgYXBwcmVjaWF0ZSBhbnkgaW5wdXQgZm9y bSB5b3VyIGVuZC4NCj4gDQo+IA0KPiANCj4gVGhhbmtzLA0KPiANCj4gRGlw aW4NCj4gDQo+IF9fX19fX19fX19fX18NCj4gDQo+IFRoZSBpbmZvcm1hdGlv biBjb250YWluZWQgaW4gdGhpcyBtZXNzYWdlIGlzIHByb3ByaWV0YXJ5IGFu ZC9vciBjb25maWRlbnRpYWwuIElmIHlvdSBhcmUgbm90IHRoZSBpbnRlbmRl ZCByZWNpcGllbnQsIHBsZWFzZTogKGkpIGRlbGV0ZSB0aGUgbWVzc2FnZSBh bmQgYWxsIGNvcGllczsgKGlpKSBkbyBub3QgZGlzY2xvc2UsIGRpc3RyaWJ1 dGUgb3IgdXNlIHRoZSBtZXNzYWdlIGluIGFueSBtYW5uZXI7IGFuZCAoaWlp KSBub3RpZnkgdGhlIHNlbmRlciBpbW1lZGlhdGVseS4gSW4gYWRkaXRpb24s IHBsZWFzZSBiZSBhd2FyZSB0aGF0IGFueSBtZXNzYWdlIGFkZHJlc3NlZCB0 byBvdXIgZG9tYWluIGlzIHN1YmplY3QgdG8gYXJjaGl2aW5nIGFuZCByZXZp ZXcgYnkgcGVyc29ucyBvdGhlciB0aGFuIHRoZSBpbnRlbmRlZCByZWNpcGll bnQuIFRoYW5rIHlvdS4NCj4gX19fX19fX19fX19fXw0KPiANCj4gX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18NCj4g c3FyLXVzZXJzIG1haWxpbmcgbGlzdA0KPiBzcXItdXNlcnNAc3FydWcub3Jn DQo+IGh0dHA6Ly93d3cuc3FydWcub3JnL21haWxtYW4vbGlzdGluZm8vc3Fy LXVzZXJzDQo+IA0KPiANCg0KVW5lIG1lc3NhZ2VyaWUgZ3JhdHVpdGUsIGdh cmFudGllIMOgIHZpZSBldCBkZXMgc2VydmljZXMgZW4gcGx1cywgw6dhIHZv dXMgdGVudGUgPw0KSmUgY3LDqWUgbWEgYm/DrnRlIG1haWwgd3d3LmxhcG9z dGUubmV0DQoNCl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fDQpzcXItdXNlcnMgbWFpbGluZyBsaXN0DQpzcXItdXNl cnNAc3FydWcub3JnDQpodHRwOi8vd3d3LnNxcnVnLm9yZy9tYWlsbWFuL2xp c3RpbmZvL3Nxci11c2Vycw0KDQpfX19fX19fX19fX19fDQoNClRoZSBpbmZv cm1hdGlvbiBjb250YWluZWQgaW4gdGhpcyBtZXNzYWdlIGlzIHByb3ByaWV0 YXJ5IGFuZC9vciBjb25maWRlbnRpYWwuIElmIHlvdSBhcmUgbm90IHRoZSBp bnRlbmRlZCByZWNpcGllbnQsIHBsZWFzZTogKGkpIGRlbGV0ZSB0aGUgbWVz c2FnZSBhbmQgYWxsIGNvcGllczsgKGlpKSBkbyBub3QgZGlzY2xvc2UsIGRp c3RyaWJ1dGUgb3IgdXNlIHRoZSBtZXNzYWdlIGluIGFueSBtYW5uZXI7IGFu ZCAoaWlpKSBub3RpZnkgdGhlIHNlbmRlciBpbW1lZGlhdGVseS4gSW4gYWRk aXRpb24sIHBsZWFzZSBiZSBhd2FyZSB0aGF0IGFueSBtZXNzYWdlIGFkZHJl c3NlZCB0byBvdXIgZG9tYWluIGlzIHN1YmplY3QgdG8gYXJjaGl2aW5nIGFu ZCByZXZpZXcgYnkgcGVyc29ucyBvdGhlciB0aGFuIHRoZSBpbnRlbmRlZCBy ZWNpcGllbnQuIFRoYW5rIHlvdS4NCl9fX19fX19fX19fX18NClRoZSBpbmZv cm1hdGlvbiBjb250YWluZWQgaW4gdGhpcyBlLW1haWwgYW5kIGFueSBhdHRh Y2hlZCAKZG9jdW1lbnRzIG1heSBiZSBwcml2aWxlZ2VkLCBjb25maWRlbnRp YWwgYW5kIHByb3RlY3RlZCBmcm9tIApkaXNjbG9zdXJlLiAgSWYgeW91IGFy ZSBub3QgdGhlIGludGVuZGVkIHJlY2lwaWVudCB5b3UgbWF5IG5vdCAKcmVh ZCwgY29weSwgZGlzdHJpYnV0ZSBvciB1c2UgdGhpcyBpbmZvcm1hdGlvbi4g IElmIHlvdSBoYXZlIApyZWNlaXZlZCB0aGlzIGNvbW11bmljYXRpb24gaW4g ZXJyb3IsIHBsZWFzZSBub3RpZnkgdGhlIHNlbmRlciAKaW1tZWRpYXRlbHkg YnkgcmVwbHlpbmcgdG8gdGhpcyBtZXNzYWdlIGFuZCB0aGVuIGRlbGV0ZSBp dCAKZnJvbSB5b3VyIHN5c3RlbQo= --===============1835247829== 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 --===============1835247829==-- From sqr-users-bounces@sqrug.org Fri Jan 15 09:27:44 2010 Subject: RE: [sqr-users] RE: Problems with large numbers Date: Fri, 15 Jan 2010 08:24:41 -0600 From: "Ojha, Dipin" Thanks Jason. How do I do this? Begin-Select Number &Number=3DString =46rom Table. -----Original Message----- From: sqr-users-bounces+dipin.ojha=3Dfnis.com@sqrug.org [mailto:sqr-users-b= ounces+dipin.ojha=3Dfnis.com@sqrug.org] On Behalf Of Simon, Jason (MBS) Sent: Thursday, January 14, 2010 4:09 PM To: This list is for discussion about the SQR database reportinglanguage fr= omHyperion Solutions. Subject: RE: [sqr-users] RE: Problems with large numbers Convert it to a string and put some kind of hidden character at the front or end of the value so that excel will see it as a string. This also means that you will also have to do your calculations in SQR prior to sending the data to excel.=20=20 Just a thought and I hope it helps! http://sqrhelpers.wordpress.com/ Thanks=20 Jason -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of Ray, Christine Marie Sent: Thursday, January 14, 2010 4:03 PM To: This list is for discussion about the SQR database reportinglanguagefrom Hyperion Solutions. Subject: [sqr-users] RE: Problems with large numbers According to Microsoft (http://office.microsoft.com/en-us/excel/HP051992911033.aspx) The maximum limit for number precision is 15 digits and your number has 18 digits. This is not an SQR or CSV issue, but an Excel issue.=20=20 I don't think you are going to be able to avoid this in Excel. Hope this helps.=20 Christine Ray Indiana University Bloomington -----Original Message----- From: sqr-users-bounces+chmray=3Dindiana.edu@sqrug.org [mailto:sqr-users-bounces+chmray=3Dindiana.edu@sqrug.org] On Behalf Of Ojha, Dipin Sent: Thursday, January 14, 2010 3:34 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: [sqr-users] Problems with large numbers I have a query that brings back numbers which I am trying to print in a .csv file. I am using the Portal's output for .csv and the hyperion version is 8.3 When I open the .csv output in excel it just drops the last 3 digits and prints 0 . for e.g. my query returns 420003140099207929 but the output displays 420003140099207000. Could anybody help me with this? I would appreciate any input form your end. =20 Thanks, Dipin _____________ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. 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 _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you. _____________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jan 15 09:44:47 2010 Subject: RE: [sqr-users] RE: Problems with large numbers Date: Fri, 15 Jan 2010 08:42:02 -0600 From: "Ojha, Dipin" Looks like it does not take string, I tried with Text and still prints 000 = in place of 929 at the end of the large number. -----Original Message----- From: sqr-users-bounces+dipin.ojha=3Dfnis.com@sqrug.org [mailto:sqr-users-b= ounces+dipin.ojha=3Dfnis.com@sqrug.org] On Behalf Of Ojha, Dipin Sent: Friday, January 15, 2010 9:25 AM To: This list is for discussion about the SQR database reportinglanguage fr= omHyperion Solutions. Subject: RE: [sqr-users] RE: Problems with large numbers Thanks Jason. How do I do this? Begin-Select Number &Number=3DString =46rom Table. -----Original Message----- From: sqr-users-bounces+dipin.ojha=3Dfnis.com@sqrug.org [mailto:sqr-users-b= ounces+dipin.ojha=3Dfnis.com@sqrug.org] On Behalf Of Simon, Jason (MBS) Sent: Thursday, January 14, 2010 4:09 PM To: This list is for discussion about the SQR database reportinglanguage fr= omHyperion Solutions. Subject: RE: [sqr-users] RE: Problems with large numbers Convert it to a string and put some kind of hidden character at the front or end of the value so that excel will see it as a string. This also means that you will also have to do your calculations in SQR prior to sending the data to excel.=20=20 Just a thought and I hope it helps! http://sqrhelpers.wordpress.com/ Thanks=20 Jason -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of Ray, Christine Marie Sent: Thursday, January 14, 2010 4:03 PM To: This list is for discussion about the SQR database reportinglanguagefrom Hyperion Solutions. Subject: [sqr-users] RE: Problems with large numbers According to Microsoft (http://office.microsoft.com/en-us/excel/HP051992911033.aspx) The maximum limit for number precision is 15 digits and your number has 18 digits. This is not an SQR or CSV issue, but an Excel issue.=20=20 I don't think you are going to be able to avoid this in Excel. Hope this helps.=20 Christine Ray Indiana University Bloomington -----Original Message----- From: sqr-users-bounces+chmray=3Dindiana.edu@sqrug.org [mailto:sqr-users-bounces+chmray=3Dindiana.edu@sqrug.org] On Behalf Of Ojha, Dipin Sent: Thursday, January 14, 2010 3:34 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: [sqr-users] Problems with large numbers I have a query that brings back numbers which I am trying to print in a .csv file. I am using the Portal's output for .csv and the hyperion version is 8.3 When I open the .csv output in excel it just drops the last 3 digits and prints 0 . for e.g. my query returns 420003140099207929 but the output displays 420003140099207000. Could anybody help me with this? I would appreciate any input form your end. =20 Thanks, Dipin _____________ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. 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 _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you. _____________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you. _____________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jan 15 09:48:42 2010 Subject: RE: [sqr-users] RE: Problems with large numbers Date: Fri, 15 Jan 2010 09:45:19 -0500 From: "Simon, Jason (MBS)" I would use the below string function. Also by adding this character non breaking space below you will not be able to calculate it in excel until it is removed. So you will need to make sure that you are doing all your calculations in SQR.=20 After you have calculated all of your numbers to their final answer I would use the below function to create a string.=20 Let $CharNonBreakingSpace =3D chr(160) !you can make this shorter I just wanted to spell it out for simplicity's sake.=20 Let $MyAnswer =3D To_Char(#Number) Let $MyAnswer =3D $CharNonBreakingSpace ||$MyAnswer This is the To_Char Function from the help file.=20 -->>This is the function that converts a number to a string. -->>Converts source_value to a string, using maximum precision. -->>Syntax: dst_var =3D to_char(source_value) -->>source_value =3D decimal, float, or integer literal, column, variable, or -->>expression -->>dst_var =3D text variable -->>Example: let $string =3D to_char(#number) Hope this helps! Jason http://sqrhelpers.wordpress.com/ -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of Ojha, Dipin Sent: Friday, January 15, 2010 9:25 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] RE: Problems with large numbers Thanks Jason. How do I do this? Begin-Select Number &Number=3DString =46rom Table. -----Original Message----- From: sqr-users-bounces+dipin.ojha=3Dfnis.com@sqrug.org [mailto:sqr-users-bounces+dipin.ojha=3Dfnis.com@sqrug.org] On Behalf Of Simon, Jason (MBS) Sent: Thursday, January 14, 2010 4:09 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] RE: Problems with large numbers Convert it to a string and put some kind of hidden character at the front or end of the value so that excel will see it as a string. This also means that you will also have to do your calculations in SQR prior to sending the data to excel.=20=20 Just a thought and I hope it helps! http://sqrhelpers.wordpress.com/ Thanks=20 Jason -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of Ray, Christine Marie Sent: Thursday, January 14, 2010 4:03 PM To: This list is for discussion about the SQR database reportinglanguagefrom Hyperion Solutions. Subject: [sqr-users] RE: Problems with large numbers According to Microsoft (http://office.microsoft.com/en-us/excel/HP051992911033.aspx) The maximum limit for number precision is 15 digits and your number has 18 digits. This is not an SQR or CSV issue, but an Excel issue.=20=20 I don't think you are going to be able to avoid this in Excel. Hope this helps.=20 Christine Ray Indiana University Bloomington -----Original Message----- From: sqr-users-bounces+chmray=3Dindiana.edu@sqrug.org [mailto:sqr-users-bounces+chmray=3Dindiana.edu@sqrug.org] On Behalf Of Ojha, Dipin Sent: Thursday, January 14, 2010 3:34 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: [sqr-users] Problems with large numbers I have a query that brings back numbers which I am trying to print in a .csv file. I am using the Portal's output for .csv and the hyperion version is 8.3 When I open the .csv output in excel it just drops the last 3 digits and prints 0 . for e.g. my query returns 420003140099207929 but the output displays 420003140099207000. Could anybody help me with this? I would appreciate any input form your end. =20 Thanks, Dipin _____________ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. 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 _____________ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. _____________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jan 15 09:51:51 2010 Subject: RE: [sqr-users] RE: Problems with large numbers Date: Fri, 15 Jan 2010 08:45:46 -0600 From: "Ojha, Dipin" Hi Christine, How do I force excel to see it as a character? Is there anything I can add = to my SQR (no calculations for that column)? Thanks. -----Original Message----- From: sqr-users-bounces+dipin.ojha=3Dfnis.com@sqrug.org [mailto:sqr-users-b= ounces+dipin.ojha=3Dfnis.com@sqrug.org] On Behalf Of Ray, Christine Marie Sent: Thursday, January 14, 2010 4:13 PM To: This list is for discussion about the SQR database reportinglanguagefro= m Hyperion Solutions. Subject: RE: [sqr-users] RE: Problems with large numbers You could force excel to see it as a character. The limit in Excel for cha= racters is 32,767 characters. http://office.microsoft.com/en-us/excel/HP051992911033.aspx Christine Ray Indiana University Bloomington FMS Administration 400 East Seventh Street Bloomington, IN 47405 Poplars 529 812-856-2411 -----Original Message----- From: sqr-users-bounces+chmray=3Dindiana.edu@sqrug.org [mailto:sqr-users-bo= unces+chmray=3Dindiana.edu@sqrug.org] On Behalf Of Ojha, Dipin Sent: Thursday, January 14, 2010 4:08 PM To: This list is for discussion about the SQR database reportinglanguage fr= om Hyperion Solutions. Subject: RE: [sqr-users] RE: Problems with large numbers Is there any other way I can print this? -----Original Message----- From: sqr-users-bounces+dipin.ojha=3Dfnis.com@sqrug.org [mailto:sqr-users-b= ounces+dipin.ojha=3Dfnis.com@sqrug.org] On Behalf Of Ray, Christine Marie Sent: Thursday, January 14, 2010 4:03 PM To: This list is for discussion about the SQR database reportinglanguagefro= m Hyperion Solutions. Subject: [sqr-users] RE: Problems with large numbers According to Microsoft (http://office.microsoft.com/en-us/excel/HP051992911= 033.aspx) The maximum limit for number precision is 15 digits and your numb= er has 18 digits. This is not an SQR or CSV issue, but an Excel issue.=20= =20 I don't think you are going to be able to avoid this in Excel. Hope this helps.=20 Christine Ray Indiana University Bloomington -----Original Message----- From: sqr-users-bounces+chmray=3Dindiana.edu@sqrug.org [mailto:sqr-users-bo= unces+chmray=3Dindiana.edu@sqrug.org] On Behalf Of Ojha, Dipin Sent: Thursday, January 14, 2010 3:34 PM To: This list is for discussion about the SQR database reportinglanguage fr= om Hyperion Solutions. Subject: [sqr-users] Problems with large numbers I have a query that brings back numbers which I am trying to print in a .cs= v file. I am using the Portal's output for .csv and the hyperion version is= 8.3 When I open the .csv output in excel it just drops the last 3 digits and pr= ints 0 . for e.g. my query returns 420003140099207929 but the output displa= ys 420003140099207000. Could anybody help me with this? I would appreciate = any input form your end. =20 Thanks, Dipin _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. 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 _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. 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 _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you. _____________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jan 15 09:55:01 2010 Subject: RE: [sqr-users] RE: Problems with large numbers Date: Fri, 15 Jan 2010 09:46:33 -0500 From: "Simon, Jason (MBS)" You will need to leave your variable as a number and use the example I sent you.=20 -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of Ojha, Dipin Sent: Friday, January 15, 2010 9:42 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] RE: Problems with large numbers Looks like it does not take string, I tried with Text and still prints 000 in place of 929 at the end of the large number. -----Original Message----- From: sqr-users-bounces+dipin.ojha=3Dfnis.com@sqrug.org [mailto:sqr-users-bounces+dipin.ojha=3Dfnis.com@sqrug.org] On Behalf Of Ojha, Dipin Sent: Friday, January 15, 2010 9:25 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] RE: Problems with large numbers Thanks Jason. How do I do this? Begin-Select Number &Number=3DString =46rom Table. -----Original Message----- From: sqr-users-bounces+dipin.ojha=3Dfnis.com@sqrug.org [mailto:sqr-users-bounces+dipin.ojha=3Dfnis.com@sqrug.org] On Behalf Of Simon, Jason (MBS) Sent: Thursday, January 14, 2010 4:09 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] RE: Problems with large numbers Convert it to a string and put some kind of hidden character at the front or end of the value so that excel will see it as a string. This also means that you will also have to do your calculations in SQR prior to sending the data to excel.=20=20 Just a thought and I hope it helps! http://sqrhelpers.wordpress.com/ Thanks=20 Jason -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of Ray, Christine Marie Sent: Thursday, January 14, 2010 4:03 PM To: This list is for discussion about the SQR database reportinglanguagefrom Hyperion Solutions. Subject: [sqr-users] RE: Problems with large numbers According to Microsoft (http://office.microsoft.com/en-us/excel/HP051992911033.aspx) The maximum limit for number precision is 15 digits and your number has 18 digits. This is not an SQR or CSV issue, but an Excel issue.=20=20 I don't think you are going to be able to avoid this in Excel. Hope this helps.=20 Christine Ray Indiana University Bloomington -----Original Message----- From: sqr-users-bounces+chmray=3Dindiana.edu@sqrug.org [mailto:sqr-users-bounces+chmray=3Dindiana.edu@sqrug.org] On Behalf Of Ojha, Dipin Sent: Thursday, January 14, 2010 3:34 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: [sqr-users] Problems with large numbers I have a query that brings back numbers which I am trying to print in a .csv file. I am using the Portal's output for .csv and the hyperion version is 8.3 When I open the .csv output in excel it just drops the last 3 digits and prints 0 . for e.g. my query returns 420003140099207929 but the output displays 420003140099207000. Could anybody help me with this? I would appreciate any input form your end. =20 Thanks, Dipin _____________ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. 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 _____________ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. _____________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _____________ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. _____________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jan 15 10:03:04 2010 Subject: RE: [sqr-users] RE: Problems with large numbers Date: Fri, 15 Jan 2010 09:00:17 -0600 From: "Ojha, Dipin" Thanks for your information Jason. I have one more question to ask- There i= s one more column that is long and is a Char datatype. It stores both numbe= rs and characters. I am seeing the same thing (the last 3 digits are printi= ng as 0) in that field as well. How do I get around it if it is a char fiel= d? -----Original Message----- From: sqr-users-bounces+dipin.ojha=3Dfnis.com@sqrug.org [mailto:sqr-users-b= ounces+dipin.ojha=3Dfnis.com@sqrug.org] On Behalf Of Simon, Jason (MBS) Sent: Friday, January 15, 2010 9:45 AM To: This list is for discussion about the SQR database reportinglanguage fr= omHyperion Solutions. Subject: RE: [sqr-users] RE: Problems with large numbers I would use the below string function. Also by adding this character non breaking space below you will not be able to calculate it in excel until it is removed. So you will need to make sure that you are doing all your calculations in SQR.=20 After you have calculated all of your numbers to their final answer I would use the below function to create a string.=20 Let $CharNonBreakingSpace =3D chr(160) !you can make this shorter I just wanted to spell it out for simplicity's sake.=20 Let $MyAnswer =3D To_Char(#Number) Let $MyAnswer =3D $CharNonBreakingSpace ||$MyAnswer This is the To_Char Function from the help file.=20 -->>This is the function that converts a number to a string. -->>Converts source_value to a string, using maximum precision. -->>Syntax: dst_var =3D to_char(source_value) -->>source_value =3D decimal, float, or integer literal, column, variable, or -->>expression -->>dst_var =3D text variable -->>Example: let $string =3D to_char(#number) Hope this helps! Jason http://sqrhelpers.wordpress.com/ -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of Ojha, Dipin Sent: Friday, January 15, 2010 9:25 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] RE: Problems with large numbers Thanks Jason. How do I do this? Begin-Select Number &Number=3DString =46rom Table. -----Original Message----- From: sqr-users-bounces+dipin.ojha=3Dfnis.com@sqrug.org [mailto:sqr-users-bounces+dipin.ojha=3Dfnis.com@sqrug.org] On Behalf Of Simon, Jason (MBS) Sent: Thursday, January 14, 2010 4:09 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] RE: Problems with large numbers Convert it to a string and put some kind of hidden character at the front or end of the value so that excel will see it as a string. This also means that you will also have to do your calculations in SQR prior to sending the data to excel.=20=20 Just a thought and I hope it helps! http://sqrhelpers.wordpress.com/ Thanks=20 Jason -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of Ray, Christine Marie Sent: Thursday, January 14, 2010 4:03 PM To: This list is for discussion about the SQR database reportinglanguagefrom Hyperion Solutions. Subject: [sqr-users] RE: Problems with large numbers According to Microsoft (http://office.microsoft.com/en-us/excel/HP051992911033.aspx) The maximum limit for number precision is 15 digits and your number has 18 digits. This is not an SQR or CSV issue, but an Excel issue.=20=20 I don't think you are going to be able to avoid this in Excel. Hope this helps.=20 Christine Ray Indiana University Bloomington -----Original Message----- From: sqr-users-bounces+chmray=3Dindiana.edu@sqrug.org [mailto:sqr-users-bounces+chmray=3Dindiana.edu@sqrug.org] On Behalf Of Ojha, Dipin Sent: Thursday, January 14, 2010 3:34 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: [sqr-users] Problems with large numbers I have a query that brings back numbers which I am trying to print in a .csv file. I am using the Portal's output for .csv and the hyperion version is 8.3 When I open the .csv output in excel it just drops the last 3 digits and prints 0 . for e.g. my query returns 420003140099207929 but the output displays 420003140099207000. Could anybody help me with this? I would appreciate any input form your end. =20 Thanks, Dipin _____________ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. 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 _____________ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. 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 _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you. _____________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jan 15 10:14:56 2010 Subject: RE: [sqr-users] RE: Problems with large numbers Date: Fri, 15 Jan 2010 10:11:46 -0500 From: "Simon, Jason (MBS)" My experience when opening up csv files in excel is that each cell is evaluated separately to see if it is a string or a number and then excel formats it according to that finding. Thus when it detects a string you will see all the characters in the cell but if it is a number you will only see the first 15 and the remainder will be zero's or truncated. Use the below code to check for a number. You can then create an if statement to read if the &field returned is a number or a string and format the numbers appropriately using the earlier code I sent you. -->>Isnumber Returns one (1) if source_value is a number; otherwise, -->>returns zero (0). A number is defined to be of the form: [Sign] [Digits] -->> [.Digits] [E] e [Sign] Digits]. Leading and trailing blanks are ignored. -->>Syntax: dst_var =3D isnumber(source_value) -->>source_value =3D text literal, column, variable, or expression -->>dst_var =3D decimal, float, or integer variable -->>Example: let #isnumber =3D isnumber($string) Thanks Jason http://sqrhelpers.wordpress.com/ -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of Ojha, Dipin Sent: Friday, January 15, 2010 10:00 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] RE: Problems with large numbers Thanks for your information Jason. I have one more question to ask- There is one more column that is long and is a Char datatype. It stores both numbers and characters. I am seeing the same thing (the last 3 digits are printing as 0) in that field as well. How do I get around it if it is a char field? -----Original Message----- From: sqr-users-bounces+dipin.ojha=3Dfnis.com@sqrug.org [mailto:sqr-users-bounces+dipin.ojha=3Dfnis.com@sqrug.org] On Behalf Of Simon, Jason (MBS) Sent: Friday, January 15, 2010 9:45 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] RE: Problems with large numbers I would use the below string function. Also by adding this character non breaking space below you will not be able to calculate it in excel until it is removed. So you will need to make sure that you are doing all your calculations in SQR.=20 After you have calculated all of your numbers to their final answer I would use the below function to create a string.=20 Let $CharNonBreakingSpace =3D chr(160) !you can make this shorter I just wanted to spell it out for simplicity's sake.=20 Let $MyAnswer =3D To_Char(#Number) Let $MyAnswer =3D $CharNonBreakingSpace ||$MyAnswer This is the To_Char Function from the help file.=20 -->>This is the function that converts a number to a string. -->>Converts source_value to a string, using maximum precision. -->>Syntax: dst_var =3D to_char(source_value) -->>source_value =3D decimal, float, or integer literal, column, variable, or -->>expression -->>dst_var =3D text variable -->>Example: let $string =3D to_char(#number) Hope this helps! Jason http://sqrhelpers.wordpress.com/ -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of Ojha, Dipin Sent: Friday, January 15, 2010 9:25 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] RE: Problems with large numbers Thanks Jason. How do I do this? Begin-Select Number &Number=3DString =46rom Table. -----Original Message----- From: sqr-users-bounces+dipin.ojha=3Dfnis.com@sqrug.org [mailto:sqr-users-bounces+dipin.ojha=3Dfnis.com@sqrug.org] On Behalf Of Simon, Jason (MBS) Sent: Thursday, January 14, 2010 4:09 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] RE: Problems with large numbers Convert it to a string and put some kind of hidden character at the front or end of the value so that excel will see it as a string. This also means that you will also have to do your calculations in SQR prior to sending the data to excel.=20=20 Just a thought and I hope it helps! http://sqrhelpers.wordpress.com/ Thanks=20 Jason -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of Ray, Christine Marie Sent: Thursday, January 14, 2010 4:03 PM To: This list is for discussion about the SQR database reportinglanguagefrom Hyperion Solutions. Subject: [sqr-users] RE: Problems with large numbers According to Microsoft (http://office.microsoft.com/en-us/excel/HP051992911033.aspx) The maximum limit for number precision is 15 digits and your number has 18 digits. This is not an SQR or CSV issue, but an Excel issue.=20=20 I don't think you are going to be able to avoid this in Excel. Hope this helps.=20 Christine Ray Indiana University Bloomington -----Original Message----- From: sqr-users-bounces+chmray=3Dindiana.edu@sqrug.org [mailto:sqr-users-bounces+chmray=3Dindiana.edu@sqrug.org] On Behalf Of Ojha, Dipin Sent: Thursday, January 14, 2010 3:34 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: [sqr-users] Problems with large numbers I have a query that brings back numbers which I am trying to print in a .csv file. I am using the Portal's output for .csv and the hyperion version is 8.3 When I open the .csv output in excel it just drops the last 3 digits and prints 0 . for e.g. my query returns 420003140099207929 but the output displays 420003140099207000. Could anybody help me with this? I would appreciate any input form your end. =20 Thanks, Dipin _____________ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. 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 _____________ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. 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 _____________ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. _____________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jan 15 10:30:54 2010 Date: Fri, 15 Jan 2010 09:27:41 -0600 From: "William Beckner" Subject: RE: [sqr-users] RE: Problems with large numbers If you wrap your variable with double-quotes, put an '=3D' (equals) in fron= t of the leading double-quote. This will force Excel to treat the column i= n a CSV file as a string instead of a number. For example: =20 LET $NumberVar =3D TO_CHAR(#NumberVar) LET $Print =3D '=3D"' || $NumberVar || '" WRITE #CSVOut FROM $Print This has worked for me also to suppress the stripping of leading zeroes in = certain fields. =20 William Beckner (Just call me Bill) Consultant Office of Information Technology City Colleges of Chicago Office: 312-553-3235 Cell: 312-735-8097 >>> "Ojha, Dipin" 1/15/2010 8:45 AM >>> Hi Christine, How do I force excel to see it as a character? Is there anything I can add = to my SQR (no calculations for that column)? Thanks. -----Original Message----- From: sqr-users-bounces+dipin.ojha=3Dfnis.com@sqrug.org [mailto:sqr-users-b= ounces+dipin.ojha=3Dfnis.com@sqrug.org] On Behalf Of Ray, Christine Marie Sent: Thursday, January 14, 2010 4:13 PM To: This list is for discussion about the SQR database reportinglanguagefro= m Hyperion Solutions. Subject: RE: [sqr-users] RE: Problems with large numbers You could force excel to see it as a character. The limit in Excel for cha= racters is 32,767 characters. http://office.microsoft.com/en-us/excel/HP051992911033.aspx=20 Christine Ray Indiana University Bloomington FMS Administration 400 East Seventh Street Bloomington, IN 47405 Poplars 529 812-856-2411 -----Original Message----- From: sqr-users-bounces+chmray=3Dindiana.edu@sqrug.org [mailto:sqr-users-bo= unces+chmray=3Dindiana.edu@sqrug.org] On Behalf Of Ojha, Dipin Sent: Thursday, January 14, 2010 4:08 PM To: This list is for discussion about the SQR database reportinglanguage fr= om Hyperion Solutions. Subject: RE: [sqr-users] RE: Problems with large numbers Is there any other way I can print this? -----Original Message----- From: sqr-users-bounces+dipin.ojha=3Dfnis.com@sqrug.org [mailto:sqr-users-b= ounces+dipin.ojha=3Dfnis.com@sqrug.org] On Behalf Of Ray, Christine Marie Sent: Thursday, January 14, 2010 4:03 PM To: This list is for discussion about the SQR database reportinglanguagefro= m Hyperion Solutions. Subject: [sqr-users] RE: Problems with large numbers According to Microsoft (http://office.microsoft.com/en-us/excel/HP051992911= 033.aspx) The maximum limit for number precision is 15 digits and your numb= er has 18 digits. This is not an SQR or CSV issue, but an Excel issue.=20= =20 I don't think you are going to be able to avoid this in Excel. Hope this helps.=20 Christine Ray Indiana University Bloomington -----Original Message----- From: sqr-users-bounces+chmray=3Dindiana.edu@sqrug.org [mailto:sqr-users-bo= unces+chmray=3Dindiana.edu@sqrug.org] On Behalf Of Ojha, Dipin Sent: Thursday, January 14, 2010 3:34 PM To: This list is for discussion about the SQR database reportinglanguage fr= om Hyperion Solutions. Subject: [sqr-users] Problems with large numbers I have a query that brings back numbers which I am trying to print in a .cs= v file. I am using the Portal's output for .csv and the hyperion version is= 8.3 When I open the .csv output in excel it just drops the last 3 digits and pr= ints 0 . for e.g. my query returns 420003140099207929 but the output displa= ys 420003140099207000. Could anybody help me with this? I would appreciate = any input form your end. Thanks, Dipin _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you. _____________ _______________________________________________ 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 _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you. _____________ _______________________________________________ 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 _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you. _____________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jan 15 10:34:10 2010 From: John Hesse Date: Fri, 15 Jan 2010 10:28:59 -0500 Subject: [sqr-users] Printing text on an image I'm trying to figure out how to print text on top of an image. Basically w= hat I want to do is print a page (8 =BD X 11) size image of a form and then= print data on that form in the proper boxes. Any suggestions would be muc= h appreciated. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jan 15 11:07:19 2010 Subject: RE: [sqr-users] RE: Problems with large numbers Date: Fri, 15 Jan 2010 11:03:56 -0500 From: "Simon, Jason (MBS)" Very nice!=20 Thanks this is going on my snippet list!=20 -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of William Beckner Sent: Friday, January 15, 2010 10:28 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] RE: Problems with large numbers If you wrap your variable with double-quotes, put an '=3D' (equals) in front of the leading double-quote. This will force Excel to treat the column in a CSV file as a string instead of a number. For example: =20 LET $NumberVar =3D TO_CHAR(#NumberVar) LET $Print =3D '=3D"' || $NumberVar || '" WRITE #CSVOut FROM $Print This has worked for me also to suppress the stripping of leading zeroes in certain fields. =20 William Beckner (Just call me Bill) Consultant Office of Information Technology City Colleges of Chicago Office: 312-553-3235 Cell: 312-735-8097 >>> "Ojha, Dipin" 1/15/2010 8:45 AM >>> Hi Christine, How do I force excel to see it as a character? Is there anything I can add to my SQR (no calculations for that column)? Thanks. -----Original Message----- From: sqr-users-bounces+dipin.ojha=3Dfnis.com@sqrug.org [mailto:sqr-users-bounces+dipin.ojha=3Dfnis.com@sqrug.org] On Behalf Of Ray, Christine Marie Sent: Thursday, January 14, 2010 4:13 PM To: This list is for discussion about the SQR database reportinglanguagefrom Hyperion Solutions. Subject: RE: [sqr-users] RE: Problems with large numbers You could force excel to see it as a character. The limit in Excel for characters is 32,767 characters. http://office.microsoft.com/en-us/excel/HP051992911033.aspx=20 Christine Ray Indiana University Bloomington FMS Administration 400 East Seventh Street Bloomington, IN 47405 Poplars 529 812-856-2411 -----Original Message----- From: sqr-users-bounces+chmray=3Dindiana.edu@sqrug.org [mailto:sqr-users-bounces+chmray=3Dindiana.edu@sqrug.org] On Behalf Of Ojha, Dipin Sent: Thursday, January 14, 2010 4:08 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] RE: Problems with large numbers Is there any other way I can print this? -----Original Message----- From: sqr-users-bounces+dipin.ojha=3Dfnis.com@sqrug.org [mailto:sqr-users-bounces+dipin.ojha=3Dfnis.com@sqrug.org] On Behalf Of Ray, Christine Marie Sent: Thursday, January 14, 2010 4:03 PM To: This list is for discussion about the SQR database reportinglanguagefrom Hyperion Solutions. Subject: [sqr-users] RE: Problems with large numbers According to Microsoft (http://office.microsoft.com/en-us/excel/HP051992911033.aspx) The maximum limit for number precision is 15 digits and your number has 18 digits. This is not an SQR or CSV issue, but an Excel issue.=20=20 I don't think you are going to be able to avoid this in Excel. Hope this helps.=20 Christine Ray Indiana University Bloomington -----Original Message----- From: sqr-users-bounces+chmray=3Dindiana.edu@sqrug.org [mailto:sqr-users-bounces+chmray=3Dindiana.edu@sqrug.org] On Behalf Of Ojha, Dipin Sent: Thursday, January 14, 2010 3:34 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: [sqr-users] Problems with large numbers I have a query that brings back numbers which I am trying to print in a .csv file. I am using the Portal's output for .csv and the hyperion version is 8.3 When I open the .csv output in excel it just drops the last 3 digits and prints 0 . for e.g. my query returns 420003140099207929 but the output displays 420003140099207000. Could anybody help me with this? I would appreciate any input form your end. Thanks, Dipin _____________ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. _____________ _______________________________________________ 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 _____________ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. _____________ _______________________________________________ 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 _____________ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. _____________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jan 15 12:14:51 2010 Subject: RE: [sqr-users] RE: Problems with large numbers Date: Fri, 15 Jan 2010 11:12:01 -0600 From: "Ojha, Dipin" Thank you so much for your valuable information. -----Original Message----- From: sqr-users-bounces+dipin.ojha=3Dfnis.com@sqrug.org [mailto:sqr-users-b= ounces+dipin.ojha=3Dfnis.com@sqrug.org] On Behalf Of Simon, Jason (MBS) Sent: Friday, January 15, 2010 10:12 AM To: This list is for discussion about the SQR database reportinglanguage fr= omHyperion Solutions. Subject: RE: [sqr-users] RE: Problems with large numbers My experience when opening up csv files in excel is that each cell is evaluated separately to see if it is a string or a number and then excel formats it according to that finding. Thus when it detects a string you will see all the characters in the cell but if it is a number you will only see the first 15 and the remainder will be zero's or truncated. Use the below code to check for a number. You can then create an if statement to read if the &field returned is a number or a string and format the numbers appropriately using the earlier code I sent you. -->>Isnumber Returns one (1) if source_value is a number; otherwise, -->>returns zero (0). A number is defined to be of the form: [Sign] [Digits] -->> [.Digits] [E] e [Sign] Digits]. Leading and trailing blanks are ignored. -->>Syntax: dst_var =3D isnumber(source_value) -->>source_value =3D text literal, column, variable, or expression -->>dst_var =3D decimal, float, or integer variable -->>Example: let #isnumber =3D isnumber($string) Thanks Jason http://sqrhelpers.wordpress.com/ -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of Ojha, Dipin Sent: Friday, January 15, 2010 10:00 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] RE: Problems with large numbers Thanks for your information Jason. I have one more question to ask- There is one more column that is long and is a Char datatype. It stores both numbers and characters. I am seeing the same thing (the last 3 digits are printing as 0) in that field as well. How do I get around it if it is a char field? -----Original Message----- From: sqr-users-bounces+dipin.ojha=3Dfnis.com@sqrug.org [mailto:sqr-users-bounces+dipin.ojha=3Dfnis.com@sqrug.org] On Behalf Of Simon, Jason (MBS) Sent: Friday, January 15, 2010 9:45 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] RE: Problems with large numbers I would use the below string function. Also by adding this character non breaking space below you will not be able to calculate it in excel until it is removed. So you will need to make sure that you are doing all your calculations in SQR.=20 After you have calculated all of your numbers to their final answer I would use the below function to create a string.=20 Let $CharNonBreakingSpace =3D chr(160) !you can make this shorter I just wanted to spell it out for simplicity's sake.=20 Let $MyAnswer =3D To_Char(#Number) Let $MyAnswer =3D $CharNonBreakingSpace ||$MyAnswer This is the To_Char Function from the help file.=20 -->>This is the function that converts a number to a string. -->>Converts source_value to a string, using maximum precision. -->>Syntax: dst_var =3D to_char(source_value) -->>source_value =3D decimal, float, or integer literal, column, variable, or -->>expression -->>dst_var =3D text variable -->>Example: let $string =3D to_char(#number) Hope this helps! Jason http://sqrhelpers.wordpress.com/ -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of Ojha, Dipin Sent: Friday, January 15, 2010 9:25 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] RE: Problems with large numbers Thanks Jason. How do I do this? Begin-Select Number &Number=3DString =46rom Table. -----Original Message----- From: sqr-users-bounces+dipin.ojha=3Dfnis.com@sqrug.org [mailto:sqr-users-bounces+dipin.ojha=3Dfnis.com@sqrug.org] On Behalf Of Simon, Jason (MBS) Sent: Thursday, January 14, 2010 4:09 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] RE: Problems with large numbers Convert it to a string and put some kind of hidden character at the front or end of the value so that excel will see it as a string. This also means that you will also have to do your calculations in SQR prior to sending the data to excel.=20=20 Just a thought and I hope it helps! http://sqrhelpers.wordpress.com/ Thanks=20 Jason -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of Ray, Christine Marie Sent: Thursday, January 14, 2010 4:03 PM To: This list is for discussion about the SQR database reportinglanguagefrom Hyperion Solutions. Subject: [sqr-users] RE: Problems with large numbers According to Microsoft (http://office.microsoft.com/en-us/excel/HP051992911033.aspx) The maximum limit for number precision is 15 digits and your number has 18 digits. This is not an SQR or CSV issue, but an Excel issue.=20=20 I don't think you are going to be able to avoid this in Excel. Hope this helps.=20 Christine Ray Indiana University Bloomington -----Original Message----- From: sqr-users-bounces+chmray=3Dindiana.edu@sqrug.org [mailto:sqr-users-bounces+chmray=3Dindiana.edu@sqrug.org] On Behalf Of Ojha, Dipin Sent: Thursday, January 14, 2010 3:34 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: [sqr-users] Problems with large numbers I have a query that brings back numbers which I am trying to print in a .csv file. I am using the Portal's output for .csv and the hyperion version is 8.3 When I open the .csv output in excel it just drops the last 3 digits and prints 0 . for e.g. my query returns 420003140099207929 but the output displays 420003140099207000. Could anybody help me with this? I would appreciate any input form your end. =20 Thanks, Dipin _____________ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. 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 _____________ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. 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 _____________ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. 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 _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you. _____________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 19 12:06:15 2010 Date: Tue, 19 Jan 2010 12:03:32 -0500 From: Rajesh Subramaniam Subject: [sqr-users] How to replace a null value with a default value, while inserting records into database?? - Rajesh Hi, I am working on a section of the code which inserts phone numbers into a table. But, when I run the program I get an error because while inserting the phone numbers some of the phone numbers read are null values. So, if the phone number is null, I have to insert '0000000' so that the program does not fail The code snippet is as follows- begin-sql on-error=ora-err insert into dmg.client_phone_nbrs (cpn_crs_id, cpn_area_code, cpn_phone_nbr) select distinct prd_crs_id, to_number(substr(prd_col3,1,3)), to_number(substr(prd_col3,4,7)) from dmg.paris_revenue_data where prd_record_type = 3 and rpad(prd_col3,10,'0') != '0000000000' and not exists (select 'x' from dmg.client_phone_nbrs where prd_crs_id = cpn_crs_id and to_number(substr(prd_col3,4,7)) = cpn_phone_nbr) end-sql In the above code I have to check for null values when inserting into "cpn_phone_nbr" and if the phone number read while insertion is null I have to insert ''0000000' as place holder I tried using nvl() function but this does not work. Any suggestion would be greatly appreciated. Thanks, Rajesh. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 19 12:11:26 2010 Subject: RE: [sqr-users] How to replace a null value with a default value, while inserting records into database?? - Rajesh Date: Tue, 19 Jan 2010 12:08:29 -0500 From: "Simon, Jason (MBS)" Have you tried using an isblank() to check the field for nulls or empty spaces? -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of Rajesh Subramaniam Sent: Tuesday, January 19, 2010 12:04 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: [sqr-users] How to replace a null value with a default value,while inserting records into database?? - Rajesh Hi, I am working on a section of the code which inserts phone numbers into a table. But, when I run the program I get an error because while inserting the phone numbers some of the phone numbers read are null values. So, if the phone number is null, I have to insert '0000000' so that the program does not fail The code snippet is as follows- begin-sql on-error=3Dora-err insert into dmg.client_phone_nbrs (cpn_crs_id, cpn_area_code, cpn_phone_nbr) select distinct prd_crs_id, to_number(substr(prd_col3,1,3)), to_number(substr(prd_col3,4,7)) from dmg.paris_revenue_data where prd_record_type =3D 3 and rpad(prd_col3,10,'0') !=3D '0000000000' and not exists (select 'x' from dmg.client_phone_nbrs where prd_crs_id =3D cpn_crs_id and to_number(substr(prd_col3,4,7)) =3D cpn_phone_nbr) end-sql In the above code I have to check for null values when inserting into "cpn_phone_nbr" and if the phone number read while insertion is null I have to insert ''0000000' as place holder I tried using nvl() function but this does not work. Any suggestion would be greatly appreciated. Thanks, Rajesh. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 19 12:18:16 2010 Subject: RE: [sqr-users] How to replace a null value with a default value,while inserting records into database?? - Rajesh Date: Tue, 19 Jan 2010 12:14:41 -0500 From: "Putney II, Zynon E" Add prd_col3 is not null to the select statement? If nvl() isn't=0D working, then you aren't getting a null value. You might want to=0D consider masking the specific names of our database tables when you post=0D code snippets online for all to view. =0D =0D ________________________________=0D Zynon E. Putney II=0D Paychex, Inc.=0D Information Technology * Enterprise Business Solutions=0D 150 Sawgrass Drive * Rochester, New York 14620=0D =0D -----Original Message-----=0D From: sqr-users-bounces+zputney=3Dpaychex.com@sqrug.org=0D [mailto:sqr-users-bounces+zputney=3Dpaychex.com@sqrug.org] On Behalf Of=0D Rajesh Subramaniam=0D Sent: Tuesday, January 19, 2010 12:04 PM=0D To: This list is for discussion about the SQR database reporting=0D languagefrom Hyperion Solutions.=0D Subject: [sqr-users] How to replace a null value with a default=0D value,while inserting records into database?? - Rajesh=0D =0D Hi,=0D =0D I am working on a section of the code which inserts phone numbers into a=0D table. But, when I run the program I get an error because while=0D inserting the phone numbers some of the phone numbers read are null=0D values.=0D =0D So, if the phone number is null, I have to insert '0000000' so that the=0D program does not fail=0D =0D The code snippet is as follows-=0D =0D begin-sql on-error=3Dora-err=0D insert into dmg.client_phone_nbrs=0D (cpn_crs_id,=0D cpn_area_code,=0D cpn_phone_nbr)=0D select distinct=0D prd_crs_id,=0D to_number(substr(prd_col3,1,3)),=0D to_number(substr(prd_col3,4,7))=0D from dmg.paris_revenue_data=0D where prd_record_type =3D 3=0D and rpad(prd_col3,10,'0') !=3D '0000000000'=0D and not exists (select 'x'=0D from dmg.client_phone_nbrs=0D where prd_crs_id =3D cpn_crs_id=0D and to_number(substr(prd_col3,4,7)) =3D=0D cpn_phone_nbr) end-sql In the above code I have to check for null values=0D when inserting into "cpn_phone_nbr" and if the phone number read while=0D insertion is null I have to insert ''0000000' as place holder=0D =0D I tried using nvl() function but this does not work.=0D =0D Any suggestion would be greatly appreciated.=0D =0D Thanks,=0D Rajesh.=0D =0D _______________________________________________=0D sqr-users mailing list=0D sqr-users@sqrug.org=0D http://www.sqrug.org/mailman/listinfo/sqr-users=0D =0D =0D -----------------------------------------=0D The information contained in this message may be privileged, confidential, and protected from disclosure. If the reader of this message is not the intended recipient, or any employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. =0D =0D Thank you. Paychex, Inc. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 19 12:54:46 2010 Date: Tue, 19 Jan 2010 12:52:07 -0500 Subject: Re: [sqr-users] How to replace a null value with a default value,while inserting records into database?? - Rajesh From: Rajesh Subramaniam Yup, sorry about that. I usually do it but this time totally forgot to mask the names. On Tue, Jan 19, 2010 at 12:14 PM, Putney II, Zynon E wrote: > Add prd_col3 is not null to the select statement? If nvl() isn't > working, then you aren't getting a null value. You might want to > consider masking the specific names of our database tables when you post > code snippets online for all to view. > > ________________________________ > Zynon E. Putney II > Paychex, Inc. > Information Technology * Enterprise Business Solutions > 150 Sawgrass Drive * Rochester, New York 14620 > > -----Original Message----- > From: sqr-users-bounces+zputney=paychex.com@sqrug.org > [mailto:sqr-users-bounces+zputney = > paychex.com@sqrug.org] On Behalf Of > Rajesh Subramaniam > Sent: Tuesday, January 19, 2010 12:04 PM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: [sqr-users] How to replace a null value with a default > value,while inserting records into database?? - Rajesh > > Hi, > > I am working on a section of the code which inserts phone numbers into a > table. But, when I run the program I get an error because while > inserting the phone numbers some of the phone numbers read are null > values. > > So, if the phone number is null, I have to insert '0000000' so that the > program does not fail > > The code snippet is as follows- > > begin-sql on-error=ora-err > insert into dmg.client_phone_nbrs > (cpn_crs_id, > cpn_area_code, > cpn_phone_nbr) > select distinct > prd_crs_id, > to_number(substr(prd_col3,1,3)), > to_number(substr(prd_col3,4,7)) > from dmg.paris_revenue_data > where prd_record_type = 3 > and rpad(prd_col3,10,'0') != '0000000000' > and not exists (select 'x' > from dmg.client_phone_nbrs > where prd_crs_id = cpn_crs_id > and to_number(substr(prd_col3,4,7)) = > cpn_phone_nbr) end-sql In the above code I have to check for null values > when inserting into "cpn_phone_nbr" and if the phone number read while > insertion is null I have to insert ''0000000' as place holder > > I tried using nvl() function but this does not work. > > Any suggestion would be greatly appreciated. > > Thanks, > Rajesh. > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > ----------------------------------------- > The information contained in this message may be privileged, > confidential, and protected from disclosure. If the reader of this > message is not the intended recipient, or any employee or agent > responsible for delivering this message to the intended recipient, > you are hereby notified that any dissemination, distribution, or > copying of this communication is strictly prohibited. If you have > received this communication in error, please notify us immediately > by replying to the message and deleting it from your computer. > > Thank you. Paychex, Inc. > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 19 13:12:02 2010 Date: Tue, 19 Jan 2010 13:09:21 -0500 Subject: Re: [sqr-users] How to replace a null value with a default value,while inserting records into database?? - Rajesh From: Rajesh Subramaniam Hi, The point is that, I am modifying this code in case I get null values for phone number while inserting the records into the table. And if I get null values, I would have to replace the null value with the default value of '0000000'. So, that is why I used nvl() on the select statement like- select distinct column 1, nvl(to_number(substr(column 2,1,3)),'000000')), to_number(substr(column 3,4,7)) from table 1 I was trying to see whether this syntax is correct or there is an alternate function I can use. -Rajesh. On Tue, Jan 19, 2010 at 12:14 PM, Putney II, Zynon E wrote: > Add prd_col3 is not null to the select statement? If nvl() isn't > working, then you aren't getting a null value. You might want to > consider masking the specific names of our database tables when you post > code snippets online for all to view. > > ________________________________ > Zynon E. Putney II > Paychex, Inc. > Information Technology * Enterprise Business Solutions > 150 Sawgrass Drive * Rochester, New York 14620 > > -----Original Message----- > From: sqr-users-bounces+zputney=paychex.com@sqrug.org > [mailto:sqr-users-bounces+zputney = > paychex.com@sqrug.org] On Behalf Of > Rajesh Subramaniam > Sent: Tuesday, January 19, 2010 12:04 PM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: [sqr-users] How to replace a null value with a default > value,while inserting records into database?? - Rajesh > > Hi, > > I am working on a section of the code which inserts phone numbers into a > table. But, when I run the program I get an error because while > inserting the phone numbers some of the phone numbers read are null > values. > > So, if the phone number is null, I have to insert '0000000' so that the > program does not fail > > The code snippet is as follows- > > begin-sql on-error=ora-err > insert into dmg.client_phone_nbrs > (cpn_crs_id, > cpn_area_code, > cpn_phone_nbr) > select distinct > prd_crs_id, > to_number(substr(prd_col3,1,3)), > to_number(substr(prd_col3,4,7)) > from dmg.paris_revenue_data > where prd_record_type = 3 > and rpad(prd_col3,10,'0') != '0000000000' > and not exists (select 'x' > from dmg.client_phone_nbrs > where prd_crs_id = cpn_crs_id > and to_number(substr(prd_col3,4,7)) = > cpn_phone_nbr) end-sql In the above code I have to check for null values > when inserting into "cpn_phone_nbr" and if the phone number read while > insertion is null I have to insert ''0000000' as place holder > > I tried using nvl() function but this does not work. > > Any suggestion would be greatly appreciated. > > Thanks, > Rajesh. > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > ----------------------------------------- > The information contained in this message may be privileged, > confidential, and protected from disclosure. If the reader of this > message is not the intended recipient, or any employee or agent > responsible for delivering this message to the intended recipient, > you are hereby notified that any dissemination, distribution, or > copying of this communication is strictly prohibited. If you have > received this communication in error, please notify us immediately > by replying to the message and deleting it from your computer. > > Thank you. Paychex, Inc. > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 19 13:23:09 2010 Subject: RE: [sqr-users] How to replace a null value with a default value,while inserting records into database?? - Rajesh Date: Tue, 19 Jan 2010 13:19:04 -0500 From: "Putney II, Zynon E" Try this instead? This would be in the insert procedure: let $data_found =3D 'false' Select=20 Columns.... Let $data_found =3D 'true' =46rom tables Where clause and column_name is not null End-sql If $data_found then ---insert values Else ---insert '0000000' End if Let $data_found =3D false =20=20 ________________________________ Zynon E. Putney II Paychex, Inc. Information Technology * Enterprise Business Solutions 150 Sawgrass Drive * Rochester, New York 14620 -----Original Message----- From: sqr-users-bounces+zputney=3Dpaychex.com@sqrug.org [mailto:sqr-users-bounces+zputney=3Dpaychex.com@sqrug.org] On Behalf Of Rajesh Subramaniam Sent: Tuesday, January 19, 2010 1:09 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] How to replace a null value with a default value,while inserting records into database?? - Rajesh Hi, The point is that, I am modifying this code in case I get null values for phone number while inserting the records into the table. And if I get null values, I would have to replace the null value with the default value of '0000000'. So, that is why I used nvl() on the select statement like- select distinct column 1, nvl(to_number(substr(column 2,1,3)),'000000')), to_number(substr(column 3,4,7)) from table 1 I was trying to see whether this syntax is correct or there is an alternate function I can use. -Rajesh. On Tue, Jan 19, 2010 at 12:14 PM, Putney II, Zynon E wrote: > Add prd_col3 is not null to the select statement? If nvl() isn't=20 > working, then you aren't getting a null value. You might want to=20 > consider masking the specific names of our database tables when you=20 > post code snippets online for all to view. > > ________________________________ > Zynon E. Putney II > Paychex, Inc. > Information Technology * Enterprise Business Solutions 150 Sawgrass=20 > Drive * Rochester, New York 14620 > > -----Original Message----- > From: sqr-users-bounces+zputney=3Dpaychex.com@sqrug.org > [mailto:sqr-users-bounces+zputney =3D=20 > paychex.com@sqrug.org] On Behalf Of Rajesh Subramaniam > Sent: Tuesday, January 19, 2010 12:04 PM > To: This list is for discussion about the SQR database reporting=20 > languagefrom Hyperion Solutions. > Subject: [sqr-users] How to replace a null value with a default=20 > value,while inserting records into database?? - Rajesh > > Hi, > > I am working on a section of the code which inserts phone numbers into > a table. But, when I run the program I get an error because while=20 > inserting the phone numbers some of the phone numbers read are null=20 > values. > > So, if the phone number is null, I have to insert '0000000' so that=20 > the program does not fail > > The code snippet is as follows- > > begin-sql on-error=3Dora-err > insert into dmg.client_phone_nbrs > (cpn_crs_id, > cpn_area_code, > cpn_phone_nbr) > select distinct > prd_crs_id, > to_number(substr(prd_col3,1,3)), > to_number(substr(prd_col3,4,7)) > from dmg.paris_revenue_data > where prd_record_type =3D 3 > and rpad(prd_col3,10,'0') !=3D '0000000000' > and not exists (select 'x' > from dmg.client_phone_nbrs > where prd_crs_id =3D cpn_crs_id > and to_number(substr(prd_col3,4,7)) =3D > cpn_phone_nbr) end-sql In the above code I have to check for null=20 > values when inserting into "cpn_phone_nbr" and if the phone number=20 > read while insertion is null I have to insert ''0000000' as place=20 > holder > > I tried using nvl() function but this does not work. > > Any suggestion would be greatly appreciated. > > Thanks, > Rajesh. > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > ----------------------------------------- > The information contained in this message may be privileged,=20 > confidential, and protected from disclosure. If the reader of this=20 > message is not the intended recipient, or any employee or agent=20 > responsible for delivering this message to the intended recipient, you > are hereby notified that any dissemination, distribution, or copying=20 > of this communication is strictly prohibited. If you have received=20 > this communication in error, please notify us immediately by replying=20 > to the message and deleting it from your computer. > > Thank you. Paychex, Inc. > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 19 13:31:19 2010 Date: Tue, 19 Jan 2010 13:29:11 -0500 Subject: Re: [sqr-users] How to replace a null value with a default value,while inserting records into database?? - Rajesh From: Don Mellen I believe what you were trying to do would look more like.... select distinct column_1, to_number(substr( nvl(column_2,'0000000000') ,1,3)), to_number(substr( nvl(column_2,'0000000000') ,4,7)) from table_1 On Tue, Jan 19, 2010 at 1:09 PM, Rajesh Subramaniam wrote: > Hi, > > The point is that, I am modifying this code in case I get null values for > phone number while inserting the records into the table. And if I get null > values, I would have to replace the null value with the default value of > '0000000'. > > So, that is why I used nvl() on the select statement like- > > select distinct > column 1, > nvl(to_number(substr(column 2,1,3)),'000000')), > to_number(substr(column 3,4,7)) > from table 1 > > I was trying to see whether this syntax is correct or there is an alternate > function I can use. > > -Rajesh. > > On Tue, Jan 19, 2010 at 12:14 PM, Putney II, Zynon E >wrote: > > > Add prd_col3 is not null to the select statement? If nvl() isn't > > working, then you aren't getting a null value. You might want to > > consider masking the specific names of our database tables when you post > > code snippets online for all to view. > > > > ________________________________ > > Zynon E. Putney II > > Paychex, Inc. > > Information Technology * Enterprise Business Solutions > > 150 Sawgrass Drive * Rochester, New York 14620 > > > > -----Original Message----- > > From: sqr-users-bounces+zputney=paychex.com@sqrug.org > > [mailto:sqr-users-bounces+zputney = > > paychex.com@sqrug.org] On Behalf Of > > Rajesh Subramaniam > > Sent: Tuesday, January 19, 2010 12:04 PM > > To: This list is for discussion about the SQR database reporting > > languagefrom Hyperion Solutions. > > Subject: [sqr-users] How to replace a null value with a default > > value,while inserting records into database?? - Rajesh > > > > Hi, > > > > I am working on a section of the code which inserts phone numbers into a > > table. But, when I run the program I get an error because while > > inserting the phone numbers some of the phone numbers read are null > > values. > > > > So, if the phone number is null, I have to insert '0000000' so that the > > program does not fail > > > > The code snippet is as follows- > > > > begin-sql on-error=ora-err > > insert into dmg.client_phone_nbrs > > (cpn_crs_id, > > cpn_area_code, > > cpn_phone_nbr) > > select distinct > > prd_crs_id, > > to_number(substr(prd_col3,1,3)), > > to_number(substr(prd_col3,4,7)) > > from dmg.paris_revenue_data > > where prd_record_type = 3 > > and rpad(prd_col3,10,'0') != '0000000000' > > and not exists (select 'x' > > from dmg.client_phone_nbrs > > where prd_crs_id = cpn_crs_id > > and to_number(substr(prd_col3,4,7)) = > > cpn_phone_nbr) end-sql In the above code I have to check for null values > > when inserting into "cpn_phone_nbr" and if the phone number read while > > insertion is null I have to insert ''0000000' as place holder > > > > I tried using nvl() function but this does not work. > > > > Any suggestion would be greatly appreciated. > > > > Thanks, > > Rajesh. > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > ----------------------------------------- > > The information contained in this message may be privileged, > > confidential, and protected from disclosure. If the reader of this > > message is not the intended recipient, or any employee or agent > > responsible for delivering this message to the intended recipient, > > you are hereby notified that any dissemination, distribution, or > > copying of this communication is strictly prohibited. If you have > > received this communication in error, please notify us immediately > > by replying to the message and deleting it from your computer. > > > > Thank you. Paychex, Inc. > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > 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" (Terry Pratchett) _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 19 14:36:33 2010 Date: Tue, 19 Jan 2010 14:33:42 -0500 Subject: Re: [sqr-users] How to replace a null value with a default value,while inserting records into database?? - Rajesh From: Rajesh Subramaniam Thanks, will try it out and let you know. On Tue, Jan 19, 2010 at 1:19 PM, Putney II, Zynon E wrote: > Try this instead? This would be in the insert procedure: > > let $data_found = 'false' > > Select > Columns.... > > Let $data_found = 'true' > > From tables > Where clause > and column_name is not null > > End-sql > > If $data_found then > ---insert values > Else > ---insert '0000000' > End if > > Let $data_found = false > > ________________________________ > Zynon E. Putney II > Paychex, Inc. > Information Technology * Enterprise Business Solutions > 150 Sawgrass Drive * Rochester, New York 14620 > > > > -----Original Message----- > From: sqr-users-bounces+zputney=paychex.com@sqrug.org > [mailto:sqr-users-bounces+zputney = > paychex.com@sqrug.org] On Behalf Of > Rajesh Subramaniam > Sent: Tuesday, January 19, 2010 1:09 PM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: Re: [sqr-users] How to replace a null value with a default > value,while inserting records into database?? - Rajesh > > Hi, > > The point is that, I am modifying this code in case I get null values > for phone number while inserting the records into the table. And if I > get null values, I would have to replace the null value with the default > value of '0000000'. > > So, that is why I used nvl() on the select statement like- > > select distinct > column 1, > nvl(to_number(substr(column 2,1,3)),'000000')), > to_number(substr(column 3,4,7)) > from table 1 > > I was trying to see whether this syntax is correct or there is an > alternate function I can use. > > -Rajesh. > > On Tue, Jan 19, 2010 at 12:14 PM, Putney II, Zynon E > wrote: > > > Add prd_col3 is not null to the select statement? If nvl() isn't > > working, then you aren't getting a null value. You might want to > > consider masking the specific names of our database tables when you > > post code snippets online for all to view. > > > > ________________________________ > > Zynon E. Putney II > > Paychex, Inc. > > Information Technology * Enterprise Business Solutions 150 Sawgrass > > Drive * Rochester, New York 14620 > > > > -----Original Message----- > > From: sqr-users-bounces+zputney=paychex.com@sqrug.org > > [mailto:sqr-users-bounces+zputney = > > paychex.com@sqrug.org] On Behalf Of Rajesh Subramaniam > > Sent: Tuesday, January 19, 2010 12:04 PM > > To: This list is for discussion about the SQR database reporting > > languagefrom Hyperion Solutions. > > Subject: [sqr-users] How to replace a null value with a default > > value,while inserting records into database?? - Rajesh > > > > Hi, > > > > I am working on a section of the code which inserts phone numbers into > > > a table. But, when I run the program I get an error because while > > inserting the phone numbers some of the phone numbers read are null > > values. > > > > So, if the phone number is null, I have to insert '0000000' so that > > the program does not fail > > > > The code snippet is as follows- > > > > begin-sql on-error=ora-err > > insert into dmg.client_phone_nbrs > > (cpn_crs_id, > > cpn_area_code, > > cpn_phone_nbr) > > select distinct > > prd_crs_id, > > to_number(substr(prd_col3,1,3)), > > to_number(substr(prd_col3,4,7)) > > from dmg.paris_revenue_data > > where prd_record_type = 3 > > and rpad(prd_col3,10,'0') != '0000000000' > > and not exists (select 'x' > > from dmg.client_phone_nbrs > > where prd_crs_id = cpn_crs_id > > and to_number(substr(prd_col3,4,7)) = > > cpn_phone_nbr) end-sql In the above code I have to check for null > > values when inserting into "cpn_phone_nbr" and if the phone number > > read while insertion is null I have to insert ''0000000' as place > > holder > > > > I tried using nvl() function but this does not work. > > > > Any suggestion would be greatly appreciated. > > > > Thanks, > > Rajesh. > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > ----------------------------------------- > > The information contained in this message may be privileged, > > confidential, and protected from disclosure. If the reader of this > > message is not the intended recipient, or any employee or agent > > responsible for delivering this message to the intended recipient, you > > > are hereby notified that any dissemination, distribution, or copying > > of this communication is strictly prohibited. If you have received > > this communication in error, please notify us immediately by replying > > to the message and deleting it from your computer. > > > > Thank you. Paychex, Inc. > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 19 14:39:42 2010 Date: Tue, 19 Jan 2010 14:35:22 -0500 Subject: Re: [sqr-users] How to replace a null value with a default value,while inserting records into database?? - Rajesh From: Rajesh Subramaniam Oh, okay. I thought that mine would work since I did not get any error but did not test it yet. But, yeah will keep your suggestion in mind. On Tue, Jan 19, 2010 at 1:29 PM, Don Mellen wrote: > I believe what you were trying to do would look more like.... > > select distinct > column_1, > to_number(substr( nvl(column_2,'0000000000') ,1,3)), > to_number(substr( nvl(column_2,'0000000000') ,4,7)) > from table_1 > > > On Tue, Jan 19, 2010 at 1:09 PM, Rajesh Subramaniam >wrote: > > > Hi, > > > > The point is that, I am modifying this code in case I get null values for > > phone number while inserting the records into the table. And if I get > null > > values, I would have to replace the null value with the default value of > > '0000000'. > > > > So, that is why I used nvl() on the select statement like- > > > > select distinct > > column 1, > > nvl(to_number(substr(column 2,1,3)),'000000')), > > to_number(substr(column 3,4,7)) > > from table 1 > > > > I was trying to see whether this syntax is correct or there is an > alternate > > function I can use. > > > > -Rajesh. > > > > On Tue, Jan 19, 2010 at 12:14 PM, Putney II, Zynon E < > zputney@paychex.com > > >wrote: > > > > > Add prd_col3 is not null to the select statement? If nvl() isn't > > > working, then you aren't getting a null value. You might want to > > > consider masking the specific names of our database tables when you > post > > > code snippets online for all to view. > > > > > > ________________________________ > > > Zynon E. Putney II > > > Paychex, Inc. > > > Information Technology * Enterprise Business Solutions > > > 150 Sawgrass Drive * Rochester, New York 14620 > > > > > > -----Original Message----- > > > From: sqr-users-bounces+zputney=paychex.com@sqrug.org > > > [mailto:sqr-users-bounces+zputney = > > > paychex.com@sqrug.org] On Behalf Of > > > Rajesh Subramaniam > > > Sent: Tuesday, January 19, 2010 12:04 PM > > > To: This list is for discussion about the SQR database reporting > > > languagefrom Hyperion Solutions. > > > Subject: [sqr-users] How to replace a null value with a default > > > value,while inserting records into database?? - Rajesh > > > > > > Hi, > > > > > > I am working on a section of the code which inserts phone numbers into > a > > > table. But, when I run the program I get an error because while > > > inserting the phone numbers some of the phone numbers read are null > > > values. > > > > > > So, if the phone number is null, I have to insert '0000000' so that the > > > program does not fail > > > > > > The code snippet is as follows- > > > > > > begin-sql on-error=ora-err > > > insert into dmg.client_phone_nbrs > > > (cpn_crs_id, > > > cpn_area_code, > > > cpn_phone_nbr) > > > select distinct > > > prd_crs_id, > > > to_number(substr(prd_col3,1,3)), > > > to_number(substr(prd_col3,4,7)) > > > from dmg.paris_revenue_data > > > where prd_record_type = 3 > > > and rpad(prd_col3,10,'0') != '0000000000' > > > and not exists (select 'x' > > > from dmg.client_phone_nbrs > > > where prd_crs_id = cpn_crs_id > > > and to_number(substr(prd_col3,4,7)) = > > > cpn_phone_nbr) end-sql In the above code I have to check for null > values > > > when inserting into "cpn_phone_nbr" and if the phone number read while > > > insertion is null I have to insert ''0000000' as place holder > > > > > > I tried using nvl() function but this does not work. > > > > > > Any suggestion would be greatly appreciated. > > > > > > Thanks, > > > Rajesh. > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > ----------------------------------------- > > > The information contained in this message may be privileged, > > > confidential, and protected from disclosure. If the reader of this > > > message is not the intended recipient, or any employee or agent > > > responsible for delivering this message to the intended recipient, > > > you are hereby notified that any dissemination, distribution, or > > > copying of this communication is strictly prohibited. If you have > > > received this communication in error, please notify us immediately > > > by replying to the message and deleting it from your computer. > > > > > > Thank you. Paychex, Inc. > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > _______________________________________________ > > 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" > (Terry Pratchett) > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 19 16:57:23 2010 Date: Tue, 19 Jan 2010 16:54:32 -0500 Subject: Re: [sqr-users] How to replace a null value with a default value,while inserting records into database?? - Rajesh From: Rajesh Subramaniam Hi Don, You were right I was using wrong syntax of nvl() function. So my change did not work. I tried your suggestion and it worked. This is also why the nvl() function was not workin for me initially (before I posted my query here) Thanks a lot. -Rajesh. On Tue, Jan 19, 2010 at 1:29 PM, Don Mellen wrote: > I believe what you were trying to do would look more like.... > > select distinct > column_1, > to_number(substr( nvl(column_2,'0000000000') ,1,3)), > to_number(substr( nvl(column_2,'0000000000') ,4,7)) > from table_1 > > > On Tue, Jan 19, 2010 at 1:09 PM, Rajesh Subramaniam >wrote: > > > Hi, > > > > The point is that, I am modifying this code in case I get null values for > > phone number while inserting the records into the table. And if I get > null > > values, I would have to replace the null value with the default value of > > '0000000'. > > > > So, that is why I used nvl() on the select statement like- > > > > select distinct > > column 1, > > nvl(to_number(substr(column 2,1,3)),'000000')), > > to_number(substr(column 3,4,7)) > > from table 1 > > > > I was trying to see whether this syntax is correct or there is an > alternate > > function I can use. > > > > -Rajesh. > > > > On Tue, Jan 19, 2010 at 12:14 PM, Putney II, Zynon E < > zputney@paychex.com > > >wrote: > > > > > Add prd_col3 is not null to the select statement? If nvl() isn't > > > working, then you aren't getting a null value. You might want to > > > consider masking the specific names of our database tables when you > post > > > code snippets online for all to view. > > > > > > ________________________________ > > > Zynon E. Putney II > > > Paychex, Inc. > > > Information Technology * Enterprise Business Solutions > > > 150 Sawgrass Drive * Rochester, New York 14620 > > > > > > -----Original Message----- > > > From: sqr-users-bounces+zputney=paychex.com@sqrug.org > > > [mailto:sqr-users-bounces+zputney = > > > paychex.com@sqrug.org] On Behalf Of > > > Rajesh Subramaniam > > > Sent: Tuesday, January 19, 2010 12:04 PM > > > To: This list is for discussion about the SQR database reporting > > > languagefrom Hyperion Solutions. > > > Subject: [sqr-users] How to replace a null value with a default > > > value,while inserting records into database?? - Rajesh > > > > > > Hi, > > > > > > I am working on a section of the code which inserts phone numbers into > a > > > table. But, when I run the program I get an error because while > > > inserting the phone numbers some of the phone numbers read are null > > > values. > > > > > > So, if the phone number is null, I have to insert '0000000' so that the > > > program does not fail > > > > > > The code snippet is as follows- > > > > > > begin-sql on-error=ora-err > > > insert into dmg.client_phone_nbrs > > > (cpn_crs_id, > > > cpn_area_code, > > > cpn_phone_nbr) > > > select distinct > > > prd_crs_id, > > > to_number(substr(prd_col3,1,3)), > > > to_number(substr(prd_col3,4,7)) > > > from dmg.paris_revenue_data > > > where prd_record_type = 3 > > > and rpad(prd_col3,10,'0') != '0000000000' > > > and not exists (select 'x' > > > from dmg.client_phone_nbrs > > > where prd_crs_id = cpn_crs_id > > > and to_number(substr(prd_col3,4,7)) = > > > cpn_phone_nbr) end-sql In the above code I have to check for null > values > > > when inserting into "cpn_phone_nbr" and if the phone number read while > > > insertion is null I have to insert ''0000000' as place holder > > > > > > I tried using nvl() function but this does not work. > > > > > > Any suggestion would be greatly appreciated. > > > > > > Thanks, > > > Rajesh. > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > ----------------------------------------- > > > The information contained in this message may be privileged, > > > confidential, and protected from disclosure. If the reader of this > > > message is not the intended recipient, or any employee or agent > > > responsible for delivering this message to the intended recipient, > > > you are hereby notified that any dissemination, distribution, or > > > copying of this communication is strictly prohibited. If you have > > > received this communication in error, please notify us immediately > > > by replying to the message and deleting it from your computer. > > > > > > Thank you. Paychex, Inc. > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > _______________________________________________ > > 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" > (Terry Pratchett) > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jan 20 15:07:11 2010 Subject: Re: [sqr-users] Printing text on an image From: don.barclay@srs.gov Date: Wed, 20 Jan 2010 15:04:58 -0500 Hi John, I've been able to do something similar to what you are requesting. We print a image for letter letterheads, printing a nearly full size image (we can't go edge to edge), and then printing the letter on top of it. Are you having problems printing the image? Don _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jan 21 13:34:51 2010 From: John Hesse Date: Thu, 21 Jan 2010 13:32:01 -0500 Subject: RE: [sqr-users] Printing text on an image Don,=20 Yes, problem printing the image. I keep getting the error "Invalid chart/im= age size or placement". I have verified that my image exists in the direct= ory specified and that the image size is 600 X 441 px. Here's a code snipp= et. print-image (5,5) type=3Djpeg-file source=3D'c:\batch\img.jpeg' image-size=3D(600, 441) Thanks, John -----Original Message----- From: sqr-users-bounces+john.hesse=3Dinfor.com@sqrug.org [mailto:sqr-users-= bounces+john.hesse=3Dinfor.com@sqrug.org] On Behalf Of don.barclay@srs.gov Sent: Wednesday, January 20, 2010 3:05 PM To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Subject: Re: [sqr-users] Printing text on an image Hi John, I've been able to do something similar to what you are requesting. We=20 print a image for letter letterheads, printing a nearly full size image=20 (we can't go edge to edge), and then printing the letter on top of it. Are= =20 you having problems printing the image? Don _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jan 21 13:40:33 2010 Subject: RE: [sqr-users] Printing text on an image Date: Thu, 21 Jan 2010 13:37:31 -0500 From: "Simon, Jason (MBS)" When I used an image size that large it gave me the same error. Make it really small by adjusting the size down to 25x20 and see if it shows up then make changes from there.=20=20 -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of John Hesse Sent: Thursday, January 21, 2010 1:32 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] Printing text on an image Don,=20 Yes, problem printing the image. I keep getting the error "Invalid chart/image size or placement". I have verified that my image exists in the directory specified and that the image size is 600 X 441 px. Here's a code snippet. print-image (5,5) type=3Djpeg-file source=3D'c:\batch\img.jpeg' image-size=3D(600, 441) Thanks, John -----Original Message----- From: sqr-users-bounces+john.hesse=3Dinfor.com@sqrug.org [mailto:sqr-users-bounces+john.hesse=3Dinfor.com@sqrug.org] On Behalf Of don.barclay@srs.gov Sent: Wednesday, January 20, 2010 3:05 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: Re: [sqr-users] Printing text on an image Hi John, I've been able to do something similar to what you are requesting. We=20 print a image for letter letterheads, printing a nearly full size image=20 (we can't go edge to edge), and then printing the letter on top of it. Are=20 you having problems printing the image? Don _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jan 21 15:21:59 2010 Subject: RE: [sqr-users] Printing text on an image From: don.barclay@srs.gov Date: Thu, 21 Jan 2010 15:19:54 -0500 Hi John, The image size is not in pixels, it's columns and lines. For my full page letterhead, I used (115, 59), and printed the image at the top left (1,1), instead of (5,5). I agree with Simon, start with a much smaller size for the image, and build up from there. Don > > Don, > > Yes, problem printing the image. I keep getting the error "Invalid > chart/image size or placement". I have verified that my image > exists in the directory specified and that the image size is 600 X > 441 px. Here's a code snippet. > > print-image (5,5) > type=jpeg-file > source='c:\batch\img.jpeg' > image-size=(600, 441) > > Thanks, > John _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jan 22 08:11:45 2010 From: John Hesse Date: Fri, 22 Jan 2010 08:08:26 -0500 Subject: RE: [sqr-users] Printing text on an image Thanks guys, reducing the image-size at least gets something to show up. N= ow the issue I have is that the image is blank. On the page I only get the= outline or border of the image but the actual image itself is not there. = Also on some pages it prints the empty box where the image should be over t= he text and on some I can see the text on top of the image. Any more sugge= stions? John -----Original Message----- From: sqr-users-bounces+john.hesse=3Dinfor.com@sqrug.org [mailto:sqr-users-= bounces+john.hesse=3Dinfor.com@sqrug.org] On Behalf Of don.barclay@srs.gov Sent: Thursday, January 21, 2010 3:20 PM To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Subject: RE: [sqr-users] Printing text on an image Hi John, The image size is not in pixels, it's columns and lines. For my full page= =20 letterhead, I used (115, 59), and printed the image at the top left (1,1),= =20 instead of (5,5). I agree with Simon, start with a much smaller size for the image, and=20 build up from there. Don >=20 > Don,=20 >=20 > Yes, problem printing the image. I keep getting the error "Invalid=20 > chart/image size or placement". I have verified that my image=20 > exists in the directory specified and that the image size is 600 X=20 > 441 px. Here's a code snippet. >=20 > print-image (5,5) > type=3Djpeg-file > source=3D'c:\batch\img.jpeg' > image-size=3D(600, 441) >=20 > Thanks, > John _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jan 22 10:58:06 2010 Subject: RE: [sqr-users] Printing text on an image From: don.barclay@srs.gov Date: Fri, 22 Jan 2010 10:56:01 -0500 Hi John, Is the image printing at all? Or are you getting outlines on some pages and no outlines on other pages? You might be having page control issues (make sure you print the image at the top of the page, and then print your text at the top of the page, and then issue a new page command for the next page). Is the outline a box with a "X" marked through it? If so, you have the wrong image format. I use a bmp when running the process directly through SQR (when creating an SPF file), and a jpg when running in PeopleSoft (creating a PDF). _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jan 22 12:59:32 2010 From: John Hesse Date: Fri, 22 Jan 2010 12:56:45 -0500 Subject: RE: [sqr-users] Printing text on an image It is only printing the outline on all pages. I have tried both bmp and jp= eg. -----Original Message----- From: sqr-users-bounces+john.hesse=3Dinfor.com@sqrug.org [mailto:sqr-users-= bounces+john.hesse=3Dinfor.com@sqrug.org] On Behalf Of don.barclay@srs.gov Sent: Friday, January 22, 2010 10:56 AM To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Subject: RE: [sqr-users] Printing text on an image Hi John, Is the image printing at all? Or are you getting outlines on some pages=20 and no outlines on other pages? You might be having page control issues= =20 (make sure you print the image at the top of the page, and then print your= =20 text at the top of the page, and then issue a new page command for the=20 next page). Is the outline a box with a "X" marked through it? If so, you have the=20 wrong image format. I use a bmp when running the process directly through= =20 SQR (when creating an SPF file), and a jpg when running in PeopleSoft=20 (creating a PDF). _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jan 22 13:06:59 2010 Subject: RE: [sqr-users] Printing text on an image From: don.barclay@srs.gov Date: Fri, 22 Jan 2010 13:04:52 -0500 Hmmm. One other thing to try. I declare the image in the setup section: declare-image letter-bmp type = bmp-file !used by SPF image-size = (115,59) !columns, rows source = '{IMPORTPREFIX}images\SRNS Memo.bmp' end-declare declare-image letter-jpg type = jpeg-file image-size = (115,59) source = '{IMPORTPREFIX}images\SRNS Memo.JPG' end-declare And then use the following command to place the image on the page: print-image letter-jpg () If that isn't working for you, I'm not sure what else to try. Are you sure that the program has access to the path that contains the image? Don > It is only printing the outline on all pages. I have tried both bmpand jpeg. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jan 22 13:31:40 2010 Subject: RE: [sqr-users] Printing text on an image Date: Fri, 22 Jan 2010 13:21:22 -0500 From: "Putney II, Zynon E" Could the permissions on the file be locked down where the program can't=0D read it?=0D =0D =0D -----Original Message-----=0D From: sqr-users-bounces+zputney=3Dpaychex.com@sqrug.org=0D [mailto:sqr-users-bounces+zputney=3Dpaychex.com@sqrug.org] On Behalf Of=0D don.barclay@srs.gov=0D Sent: Friday, January 22, 2010 1:05 PM=0D To: This list is for discussion about the SQR database reporting=0D languagefrom Hyperion Solutions.=0D Subject: RE: [sqr-users] Printing text on an image=0D =0D Hmmm. One other thing to try. I declare the image in the setup=0D section:=0D =0D declare-image letter-bmp=0D type =3D bmp-file !used by SPF=0D image-size =3D (115,59) !columns, rows=0D source =3D '{IMPORTPREFIX}images\SRNS Memo.bmp'=0D end-declare=0D =0D declare-image letter-jpg=0D type =3D jpeg-file=0D image-size =3D (115,59)=0D source =3D '{IMPORTPREFIX}images\SRNS Memo.JPG'=0D end-declare=0D =0D And then use the following command to place the image on the page:=0D =0D print-image letter-jpg ()=0D =0D If that isn't working for you, I'm not sure what else to try. Are you=0D sure that the program has access to the path that contains the image?=0D =0D Don=0D =0D > It is only printing the outline on all pages. I have tried both =0D > bmpand=0D jpeg.=0D =0D _______________________________________________=0D sqr-users mailing list=0D sqr-users@sqrug.org=0D http://www.sqrug.org/mailman/listinfo/sqr-users=0D =0D =0D -----------------------------------------=0D The information contained in this message may be privileged, confidential, and protected from disclosure. If the reader of this message is not the intended recipient, or any employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. =0D =0D Thank you. Paychex, Inc. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jan 22 13:36:58 2010 From: John Hesse Date: Fri, 22 Jan 2010 13:34:30 -0500 Subject: RE: [sqr-users] Printing text on an image Don, The path to the image was the problem. Once I moved the image into the dir= ectory where SQR is running I am now seeing it on the page. Thanks for you help. John -----Original Message----- From: sqr-users-bounces+john.hesse=3Dinfor.com@sqrug.org [mailto:sqr-users-= bounces+john.hesse=3Dinfor.com@sqrug.org] On Behalf Of don.barclay@srs.gov Sent: Friday, January 22, 2010 1:05 PM To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Subject: RE: [sqr-users] Printing text on an image Hmmm. One other thing to try. I declare the image in the setup section: declare-image letter-bmp type =3D bmp-file !used by SPF image-size =3D (115,59) !columns, rows source =3D '{IMPORTPREFIX}images\SRNS Memo.bmp' end-declare =20 declare-image letter-jpg type =3D jpeg-file image-size =3D (115,59) source =3D '{IMPORTPREFIX}images\SRNS Memo.JPG' end-declare And then use the following command to place the image on the page: print-image letter-jpg () If that isn't working for you, I'm not sure what else to try. Are you=20 sure that the program has access to the path that contains the image? Don > It is only printing the outline on all pages. I have tried both bmpand= =20 jpeg. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jan 22 22:32:15 2010 Date: Wed, 20 Jan 2010 11:46:00 -0500 From: Ritu Shastri Subject: [sqr-users] General network error/communication link failure Hi Everyone: Has anyone encountered the below error when running a sqr? We are using sql server 2000 sp4 and our database is on a cluster. Any workarounds/solutions/comments are welcome. NJ_TFESU.SQR (SQR 5528) ODBC SQL dbftch error 10054 in cursor 6: [Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionRead (recv()). (SQR 5528) ODBC SQL dbftch error 11 in cursor 6: [Microsoft][ODBC SQL Server Driver][DBNETLIB]General network error. Check your network documentation. Error on line 602: (SQR 3725) Bad return fetching row from database. SQR for PeopleSoft: Program Aborting. (SQR 5528) ODBC SQL dbxact: SQLTransact error 0 in cursor 0: [Microsoft][ODBC SQL Server Driver]Communication link failure Ritu Shastri Associate Director - Information Systems Department of Information Technology New Jersey City University Ph: 201-200-3273 E-mail: rshastri@njcu.edu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 26 17:23:34 2010 Date: Tue, 26 Jan 2010 17:21:21 -0500 From: "M. Eraso" Subject: [sqr-users] CONNECT BY error when using dynamic where clause Hello, I am working on a report that's using the CONNECT BY functionality in Oracle (I think it's Oracle only?). This report apparently works in production using Windows / SQR 6 / Oracle 9.2 but I cannot get it to work using Windows / SQR 8.3.2 / Oracle 10g. The syntax is SELECT LEVEL, columns FROM table [$fully_dynamic_where_clause] CONNECT BY PRIOR child = parent START WITH level = 1 ORDER SIBLINGS BY x,y,z and I get the following error. This happens during the initial compile before asking for parameters, and the SQL printed to the screen ends at the "FROM table" and ignores the rest of the SQL. (SQR 5528) ORACLE OCIStmtExecute error 1788 in cursor 1: ORA-01788: CONNECT BY clause required in this query block There was an email to this list on 11/23/2005 (subject: "Connect by clause problem") that was similar and her problem was resolved by doing away with her dynamic clause but that won't be easy in my case. Has anyone had success using dynamic clauses and connect by? Is this a known issue that's solved in a later version of SQR? Through some testing I've noticed a few things... This works: let $x ='1' ... FROM table WHERE 1 = $x CONNECT BY... This does not work: let $where = 'WHERE 1=1' ... FROM table [$where] CONNECT BY... _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 26 17:34:46 2010 Date: Tue, 26 Jan 2010 17:32:01 -0500 Subject: Re: [sqr-users] CONNECT BY error when using dynamic where clause From: Don Mellen Have you tried... let $where = '1=1' ... FROM table WHERE [$where] CONNECT BY... On Tue, Jan 26, 2010 at 5:21 PM, M. Eraso wrote: > Hello, > > I am working on a report that's using the CONNECT BY functionality in > Oracle > (I think it's Oracle only?). This report apparently works in production > using Windows / SQR 6 / Oracle 9.2 but I cannot get it to work using > Windows > / SQR 8.3.2 / Oracle 10g. > > The syntax is > > SELECT LEVEL, columns > FROM table > [$fully_dynamic_where_clause] > CONNECT BY PRIOR child = parent START WITH level = 1 > ORDER SIBLINGS BY x,y,z > > and I get the following error. This happens during the initial compile > before asking for parameters, and the SQL printed to the screen ends at the > "FROM table" and ignores the rest of the SQL. > > (SQR 5528) ORACLE OCIStmtExecute error 1788 in cursor 1: > ORA-01788: CONNECT BY clause required in this query block > > There was an email to this list on 11/23/2005 (subject: "Connect by clause > problem") that was similar and her problem was resolved by doing away with > her dynamic clause but that won't be easy in my case. Has anyone had > success > using dynamic clauses and connect by? Is this a known issue that's solved > in > a later version of SQR? > > Through some testing I've noticed a few things... > > This works: > let $x ='1' > ... > FROM table > WHERE 1 = $x > CONNECT BY... > > This does not work: > let $where = 'WHERE 1=1' > ... > FROM table > [$where] > CONNECT BY... > > _______________________________________________ > 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" (Terry Pratchett) _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 26 17:49:56 2010 Date: Tue, 26 Jan 2010 17:47:12 -0500 Subject: Re: [sqr-users] CONNECT BY error when using dynamic where clause From: "M. Eraso" Yeah. Basically it seems that if I use the square brackets at all I get the error I mentioned earlier. In the case below if I remove the brackets (e.g. WHERE $where) then I get this error: (SQR 5528) ORACLE OCIStmtExecute error 920 in cursor 1: ORA-00920: invalid relational operator On Tue, Jan 26, 2010 at 5:32 PM, Don Mellen wrote: > Have you tried... > > let $where = '1=1' > ... > FROM table > WHERE [$where] > CONNECT BY... > > > On Tue, Jan 26, 2010 at 5:21 PM, M. Eraso wrote: > > > Hello, > > > > I am working on a report that's using the CONNECT BY functionality in > > Oracle > > (I think it's Oracle only?). This report apparently works in production > > using Windows / SQR 6 / Oracle 9.2 but I cannot get it to work using > > Windows > > / SQR 8.3.2 / Oracle 10g. > > > > The syntax is > > > > SELECT LEVEL, columns > > FROM table > > [$fully_dynamic_where_clause] > > CONNECT BY PRIOR child = parent START WITH level = 1 > > ORDER SIBLINGS BY x,y,z > > > > and I get the following error. This happens during the initial compile > > before asking for parameters, and the SQL printed to the screen ends at > the > > "FROM table" and ignores the rest of the SQL. > > > > (SQR 5528) ORACLE OCIStmtExecute error 1788 in cursor 1: > > ORA-01788: CONNECT BY clause required in this query block > > > > There was an email to this list on 11/23/2005 (subject: "Connect by > clause > > problem") that was similar and her problem was resolved by doing away > with > > her dynamic clause but that won't be easy in my case. Has anyone had > > success > > using dynamic clauses and connect by? Is this a known issue that's solved > > in > > a later version of SQR? > > > > Through some testing I've noticed a few things... > > > > This works: > > let $x ='1' > > ... > > FROM table > > WHERE 1 = $x > > CONNECT BY... > > > > This does not work: > > let $where = 'WHERE 1=1' > > ... > > FROM table > > [$where] > > CONNECT BY... > > > > _______________________________________________ > > 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" > (Terry Pratchett) > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 26 18:17:58 2010 Subject: RE: [sqr-users] CONNECT BY error when using dynamic where clause Date: Tue, 26 Jan 2010 15:09:28 -0800 From: "Alexander, Steven" Most of the discussions of "start with ... connect by" on the web put the "start with" clause first. That may be a requirement for Oracle 10g. Here is an interesting article about combining "start with ... connect by" with "where" clauses. http://stackoverflow.com/questions/1081570/optimizing-oracle-connect-by- when-used-with-where-clause -----Original Message----- From: sqr-users-bounces+steven.alexander=3Dsanjoseca.gov@sqrug.org [mailto:sqr-users-bounces+steven.alexander=3Dsanjoseca.gov@sqrug.org] On Behalf Of M. Eraso Sent: Tuesday, January 26, 2010 2:47 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] CONNECT BY error when using dynamic where clause Yeah. Basically it seems that if I use the square brackets at all I get the error I mentioned earlier. In the case below if I remove the brackets (e.g. WHERE $where) then I get this error: (SQR 5528) ORACLE OCIStmtExecute error 920 in cursor 1: ORA-00920: invalid relational operator On Tue, Jan 26, 2010 at 5:32 PM, Don Mellen wrote: > Have you tried... > > let $where =3D '1=3D1' > ... > FROM table > WHERE [$where] > CONNECT BY... > > > On Tue, Jan 26, 2010 at 5:21 PM, M. Eraso wrote: > > > Hello, > > > > I am working on a report that's using the CONNECT BY functionality in > > Oracle > > (I think it's Oracle only?). This report apparently works in production > > using Windows / SQR 6 / Oracle 9.2 but I cannot get it to work using > > Windows > > / SQR 8.3.2 / Oracle 10g. > > > > The syntax is > > > > SELECT LEVEL, columns > > FROM table > > [$fully_dynamic_where_clause] > > CONNECT BY PRIOR child =3D parent START WITH level =3D 1 > > ORDER SIBLINGS BY x,y,z > > > > and I get the following error. This happens during the initial compile > > before asking for parameters, and the SQL printed to the screen ends at > the > > "FROM table" and ignores the rest of the SQL. > > > > (SQR 5528) ORACLE OCIStmtExecute error 1788 in cursor 1: > > ORA-01788: CONNECT BY clause required in this query block > > > > There was an email to this list on 11/23/2005 (subject: "Connect by > clause > > problem") that was similar and her problem was resolved by doing away > with > > her dynamic clause but that won't be easy in my case. Has anyone had > > success > > using dynamic clauses and connect by? Is this a known issue that's solved > > in > > a later version of SQR? > > > > Through some testing I've noticed a few things... > > > > This works: > > let $x =3D'1' > > ... > > FROM table > > WHERE 1 =3D $x > > CONNECT BY... > > > > This does not work: > > let $where =3D 'WHERE 1=3D1' > > ... > > FROM table > > [$where] > > CONNECT BY... > > > > _______________________________________________ > > 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" > (Terry Pratchett) > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 26 19:23:26 2010 Date: Tue, 26 Jan 2010 18:21:29 -0600 From: Richi Subject: Re: [sqr-users] CONNECT BY error when using dynamic where clause How could oracle know at compile time what the parent child relationships are in a dynamic where ? (I know it says oracle, but really?) Richard At 04:21 PM 1/26/2010, you wrote: >Hello, > >I am working on a report that's using the CONNECT BY functionality in Oracle >(I think it's Oracle only?). This report apparently works in production >using Windows / SQR 6 / Oracle 9.2 but I cannot get it to work using Windows >/ SQR 8.3.2 / Oracle 10g. > >The syntax is > >SELECT LEVEL, columns >FROM table >[$fully_dynamic_where_clause] >CONNECT BY PRIOR child = parent START WITH level = 1 >ORDER SIBLINGS BY x,y,z > >and I get the following error. This happens during the initial compile >before asking for parameters, and the SQL printed to the screen ends at the >"FROM table" and ignores the rest of the SQL. > >(SQR 5528) ORACLE OCIStmtExecute error 1788 in cursor 1: > ORA-01788: CONNECT BY clause required in this query block > >There was an email to this list on 11/23/2005 (subject: "Connect by clause >problem") that was similar and her problem was resolved by doing away with >her dynamic clause but that won't be easy in my case. Has anyone had success >using dynamic clauses and connect by? Is this a known issue that's solved in >a later version of SQR? > >Through some testing I've noticed a few things... > >This works: >let $x ='1' >.... >FROM table >WHERE 1 = $x >CONNECT BY... > >This does not work: >let $where = 'WHERE 1=1' >.... >FROM table >[$where] >CONNECT BY... > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users Richard Knapp http://members.socket.net/~rknapp 2812 Pine Dr. Columbia, MO 65202 573-814-3348 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Feb 01 00:02:34 2010 Date: Mon, 1 Feb 2010 00:00:05 -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.23 $ $Date: 2006/07/27 16:28:24 $ This document gathers in one location information about the sqr-users mail list. It includes instructions for changing your subscription settings (including unsubscribing), as well are guidelines for using the list. ______________________________________________________________________ Table of Contents 1. Changes Since Previous Version 2. Introduction 2.1 sqr-users Mailing List 2.2 sqr-users Hints and Guidelines Document 2.3 Related Mailing Lists 3. Interacting with the list server 3.1 Subscribing to the list 3.2 Unsubscribing from the list 3.3 When your email address changes 3.4 Digests 3.5 Obtaining your password 3.6 Problems 4. Posting to the sqr-users List 4.1 General Guidelines 4.2 Posting a Message 4.3 Replying to a Message 5. Job Announcements ______________________________________________________________________ 1. Changes Since Previous Version Changes since the version dated 2005/08/19: o Added note about spam filtering and sender verification systems blocking subscription confirmation messages. 2. Introduction 2.1. sqr-users Mailing List The sqr-users mailing list was created to enable discussion related to the SQR database language from Hyperion (and to other products in the SQR product suite). Note: SQR used to be published by SQRIBE Technologies, which was merged into Brio Technology on August 3, 1999. Brio Technology changed its name to Brio Software in October 2001. On October 16, 2003, Hyperion acquired Brio Software. SQR and related applications have also been called "Brio.Report" and "Brio Reports". The mailing list is provided as a service of Ray Ontko & Co. A searchable archive of past postings to the mailing list is available from the SQR Users Group web site . 2.2. sqr-users Hints and Guidelines Document This document gives various hints and guidelines about the sqr-users mailing list. It will be posted approximately monthly to the mailing list so that new users can see it (and existing users can find it easily). An HTML version of the document is always available at http://www.sqrug.org/sqr-users/sqr-users-hints.html. If you have comments or suggestions about this document, please contact me directly at the address listed in the title section. This document is Copyright (C) 1999-2004 by Ray Ontko & Co. It may be freely copied and distributed provided it is not modified in any way and it retains the original copyright notice. 2.3. Related Mailing Lists Here are some mailing lists that cover topics relating to SQR in some way. sqr-jobs : SQR Jobs This list may be used for posting SQR-related resumes, recruitments, job announcements, project announcments, help- wanted, work-wanted ads, etc. To join, follow the link above, or send any message to "sqr-jobs-subscribe@yahoogroups.com". peoplesoft-fans : PeopleSoft Fans Moderated list covering technical and functional aspects of PeopleSoft. To join, follow the link above, or send any message to "peoplesoft-fans-subscribe@yahoogroups.com". psusers : PeopleSoft Users For questions related to any aspect of PeopleSoft (including PeopleSoft-specific SQR issues). This list has merged with the Peoplesoft Fans mailing list and is no longer active, but the message achive can still be found at the link above. HyperionSQR : Hyperion- SQR List for discussion of SQR, SQR Developer (formerly called Brio.Report and Report Builder), and SQR iServer. To join, follow the link above, or send any message to "HyperionSQR- subscribe@yahoogroups.com". rm-users : Report- Mart Users List for discussion of Brio Portal (previously called ReportMart). To join, follow the link above, or send a message containing the word "subscribe" in the body to "rm-users- request@sqrug.org". brioportalusersgroup : Brio Portal Users Group list List for discussion of Brio Portal. To join, follow the link above, or send any message to "brioportalusersgroup- subscribe@yahoogroups.com". brio-l : OpenITx Brio List List for technical and functional discussion of all Brio products (but most messages are currently about Brio Intelligence). To join, follow the link above. briousers : Brio.Enter- prise Users List for discussion of the Brio.Enterprise (now called Intelligence) product. To join, follow the link above, or send any message to "briousers-subscribe@yahoogroups.com". briolist : Brio List List for discussion of Brio Intelligence. To join, follow the link above, or send any message to "briolist- subscribe@yahoogroups.com". 3. Interacting with the list server The sqr-users mailing list is hosted using the Mailman list server package. All of the Mailman functions described below are accessed from the sqr-users List Info page, "http://www.sqrug.org/mailman/listinfo/sqr-users". 3.1. Subscribing to the list To subscribe to the mailing list, enter your e-mail address in the box at the top of the "Subscribing to sqr-users" section on the sqr-users List Info page, then choose a password to assign to your subscription and enter it in both "Password" boxes. This password is used to allow you to securely make changes to your subscription over the web. This password will be e-mailed back to you at varous times, so you should not use the same password as you are using elsewhere. Once you have filled in the password, click the "Subscribe" button. You should soon receive an e-mail message from the list server requesting confirmation of your subscription request. Once you have replied to this message and your subscription has been processed, you will receive a "welcome" message giving you more information on the list server, and as well as a reminder of the subscription password you chose. Many sites are now implementing spam filtering and/or sender verification systems, which can prevent your confirmation message from getting delivered to you. You may need check for a message from "sqr- users-request[-AT-]sqrug.org" caught in the filter, or add that address to your list of authorized senders, in order to complete the confirmation process. 3.2. Unsubscribing from the list To unsubscribe from the list, go to the sqr-users List Info page, enter your e-mail address in the "sqr-users Subscribers" section near the bottom of the page, and click the "Unsubscribe or edit options" button. You will then see the "member options" page; fill in your password at the top of the page and click "Log in". (If you have forgotton your password, see the ``Obtaining your Password'' section, below). This will take you to the "membership configuration" page. In the middle of that page, there will be an "Unsubscribing from sqr- users" section; simply turn on the "Yes, I really want to unsubscribe" checkbox and click the "Unsubscribe" button. You should get a page back saying that the removal was successful (as well as a confirmation email message). The removal will take effect immediately; there is no need to send in a confirmation e-mail message. If you don't know your password, you can choose to unsubscribe using e-mail confirmation. Instead of entering the password on the "member options" page, just click the "Unsubscribe" button found just below the "Log In" button. You will then see a page noting that a confirmation e-mail has been sent; once you follow the confirmation instructions in that e-mail your removal will be complete. 3.3. When your email address changes If your e-mail address changes -- for example, if your company changes names, or if your mail administrator changes the way your name is spelled out or abbreviated -- you will need to update your subscription to match your new address before you can post to the list (see the ``Posting'' section, below). To do this, simply log in to your "membership configuration" page (see the directions for logging in to this page in the ``Unsubscribing'' section, above). At the top of that page you'll see a "Changing your membership information" section. Fill out the text boxes and click the "Change My Address and Name" button. You will be sent a confirmation e-mail, and once you have responded to that e-mail your subscription will be updated and you can begin posting from your new address. 3.4. Digests You can request to get your messages in digest form (one large message containing all of the posts made each day). To do this, log in to your "membership configuration" page (see the directions on doing this in the ``Unsubscribing'' section, above). At the bottom of the page, you will see a section titled "Your sqr-users Subscription Options". Change the "Set Digest Mode" option (the second option in the list) to "On" and click the "Submit My Changes" button at the bottom of the page. You actually have a choice of two different digest formats, "MIME" or "Plain Text". The MIME format sends each individual list message as a separate MIME attachment to the digest; the plain text format consists of one large text message, with all of the individual messages run together. Which format you will want to use depends on your mail- reading software (and personal preference). If you are not sure which format will work best, you can just leave the default setting of "MIME" and see if the next morning's digest is easy to read in your mail reader -- you can change to the other format at any time using that same web page. If you use digests, you should not just "reply" to the digest mailing. Instead, be sure your message's subject header matches the subject in the original posting to which you are replying, and that you don't include a quoted copy of the entire digest in your post. To restore normal distribution, simply follow the above instructions choosing the "Off" setting for the Digest option. 3.5. Obtaining your password You will not be able to change your subscription options without your password. If you have forgotten your password, simply click the "Email My Password to Me" button on the "member options" page and your password will be emailed to you. You will also be e-mailed a copy of your password at the beginning of each month, as part of a "mailing list memberships reminder" message from the Mailman software. 3.6. Problems If the above instructions do not work, please contact the list manager at "sqr-users-manager@sqrug.org". (Do not send a message to the list itself -- no one there can help you with your problem!) Please include a description of what you were trying to do and what exactly happened when you made the attempt. 4. Posting to the sqr-users List In order to post to the mailing list, you must be subscribed to it (see directions above). More specifically, in order for Mailman to recognize that this message was sent by a subscriber, the return address on your message much exactly match the addresss you used to subscribe -- if you have more than one address you will need to be sure that you are sending from the correct one. (See the ``When you email address changes'' section, above, if your e-mail address has changed since you subscribed.) 4.1. General Guidelines For any message you send to the list, please: o make sure your mail software is not requesting a "Return Receipt". (If a "Return Receipt Requested" message is sent to the list, several dozen receipt messages will be sent out to the mailing list as other subscribers' mail systems repond....) o do not send messages in HTML or other special formats. (These are not usable by many subscribers, especially those who receive their messages in digest format.) The list server will delete these special attachments from your message and send you a warning notice. Also, if you are trying to send (for example) SQR source code files, make sure your mail-reader software is assigning proper MIME types to your attachments or they may not be distributed. o keep in mind that over 500 people will receive your message, and that it will appear in the list archives. Try to keep your messages on-topic and relatively short. Consider sending your message directly to particular people if it won't interest many of the list's subscribers. o ignore abusive and inappropriate messages that get sent to the list, rather than getting drawn into a debate. The very nature of these messages will cause most subscribers to automatically discredit them -- no "response" is necessary. To the contrary, any response will only "add fuel to the fire," prolonging the controversy and further interupting the normal conversation on the list. 4.2. Posting a Message Once you are subscribed, you can post to the list by sending a message to "sqr-users@sqrug.org". Be sure your subject heading describes your specific problem or question (i.e. don't just use "SQR Question"). In the body of your message, please include the following information: o SQR product name and version number (see notes below) o Operating system name and version number o Database name and version number o Application name (i.e. PeopleSoft) and a version number, if any Also, include a short code sample whenever possible. It's much easier for other people to understand what you are trying to do when they can see the actual code. (At the same time, be careful not to post confidential or proprietary code, since the posting will be placed in a public web archive.) Note that your question should relate to SQR or other Brio Report product in some way. Don't ask questions about PeopleSoft, for example, unless you are having SQR-related issues. (For PeopleSoft- specific questions, see other lists mentioned in the ``Related Mailing Lists'' section.) In 2001, PeopleSoft purchased from Brio the rights to the source code for SQR and began releasing its own line of SQR. PeopleSoft's SQR version numbering is different from Brio/Hyperion's, so it's very important to mention whether you are using Hyperion's "SQR" or "SQR for PeopleSoft". (This info is included automatically if you include the full SQR version-id string as described below.) To get the version-id string for your copy of SQR, you can run the following program: begin-program show $sqr-ver end-program This will produce a line that looks something like this: SQR/3.0.15/Intel/SCO Unix R3.2 V5.0/Oracle 7.2.2.3/Sep 25 1996 Include the full line of output in your message. Note that the oper- ating system and database version numbers listed here are the ones under which this copy of SQR was compiled, so you'll still need to include this information for your own environment. In a command-line environment (Unix, etc.), you can also get this version-id string by saying sqr -id 4.3. Replying to a Message Messages sent out on the list have a Reply-To header pointing to the list. This means that you should be able to simply use your mail reader's "reply" function to send a reply to the list. Generally, all answers to questions sent out on the list should be public replies, so that other subscribers can benefit. In those cases where a private reply is appropriate, be sure to over-ride the default Reply-To address. If your message is not actually a reply to the earlier message, please do not use the "reply" function. Instead, address a new e-mail message to the list as described in the previous section. (This is because the list archives will incorrectly show the new message in the original thread if you use "reply".) You should quote enough lines from the original message that later readers can understand your answer even if they missed the original question. At the same time, you should remove any unnecessary lines from the quote in order to make your message shorter and easier to understand. (Remember that some people read the mailing list in digest form, and the digests become much larger if unnecessary lines are quoted.) 5. Job Announcements Please do not post job announcements on the sqr-users list, but use the sqr-jobs list instead. (See ``Related Mailing Lists'' for more information on this list.) A large number of sqr-users subscribers do not want to receive job announcements (for various reasons) and such posts tend to cause a lot of disruption of the discussion on the list. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Feb 04 17:21:44 2010 Date: Thu, 4 Feb 2010 16:18:54 -0600 From: "William Haggerty" Subject: [sqr-users] SQR Windows Viewer settings I have an SQT that is showing the correct data, and the formatting looks ok. The problem is that when the Windows viewer starts up, the window does not show the whole report. There is a grey area on the right side of the viewport. I would like to get rid of that. I have the number of columns set to 250. I would be ok with a scroll bar at the bottom, right now, that is not showing. What I am asking for is some tips on how I can get a better presentation. I have seen some posts about a 'setup02b.sqc' or something like that. I don't have any 'sqc' files in my installation. Software Version: Hyperion SQR Reporting Viewer 9.3.1.0.0.857 PC/Windows 200 Jul 11 2007 Here is my setup: Begin-Setup Declare-Layout Default max-columns=3D250 orientation=3Dlandscape End-Declare End-Setup =20 Thanks in Advance!! Bill =20 =20 =20 =20 -------------------------------------------------------------------------- CONFIDENTIALITY NOTICE: This email, including any attachments, contains inf= ormation from Redstone Federal Credit Union which may be confidential or pr= ivileged. The information is intended to be for the use of the individual o= r entity named above. If you are not the intended recipient, be aware that = any disclosure, copying, distribution or use of the contents of this inform= ation is prohibited. If you have received this email in error, please notif= y the sender immediately by "reply to sender only" message and destroy all = electronic and hard copies of the communication, including attachments.=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Feb 08 12:30:57 2010 From: "Merritt, Bruce" Date: Mon, 8 Feb 2010 10:25:28 -0700 Subject: [sqr-users] Executing An SQR with Cron Process on Rad Hat Linus Has anyone come across a problem using the Cron process on Red Hat Linux wh= ile trying to execute an SQR application. I can get scripts to run through= the cron but when it tries to execute and SQR it aborts. There are no oth= er error messages or logs that might explain what is going on. SQR vers 6,2 Thanks _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Feb 08 13:15:32 2010 Date: Mon, 08 Feb 2010 13:13:09 -0500 From: Marina Piatibratov Subject: Re: [sqr-users] Executing An SQR with Cron Process on Rad Hat Linus As far as I know SQR is not running on Linux. May be I'm wrong... --Marina Merritt, Bruce wrote: > Has anyone come across a problem using the Cron process on Red Hat Linux while trying to execute an SQR application. I can get scripts to run through the cron but when it tries to execute and SQR it aborts. There are no other error messages or logs that might explain what is going on. > > SQR vers 6,2 > > 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@sqrug.org Mon Feb 08 13:20:18 2010 Date: Mon, 8 Feb 2010 13:17:30 -0500 Subject: Re: [sqr-users] Executing An SQR with Cron Process on Rad Hat Linus From: Leon Shraibman it is running at my company On Feb 8, 2010 1:16 PM, "Marina Piatibratov" wrote: As far as I know SQR is not running on Linux. May be I'm wrong... --Marina Merritt, Bruce wrote: > > Has anyone come across a problem using the Cron process on Red Hat Linux... _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Feb 08 13:23:31 2010 Date: Mon, 8 Feb 2010 13:18:54 -0500 Subject: Re: [sqr-users] Executing An SQR with Cron Process on Rad Hat Linus From: Leon Shraibman Could you describe your problem On Feb 8, 2010 1:17 PM, "Leon Shraibman" wrote: it is running at my company > > On Feb 8, 2010 1:16 PM, "Marina Piatibratov" wrote: > > As far as I know S... Merritt, Bruce wrote: > > Has anyone come across a problem using the Cron process on Red Hat Linux... _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Feb 08 13:26:59 2010 Date: Mon, 8 Feb 2010 13:23:50 -0500 Subject: Re: [sqr-users] Executing An SQR with Cron Process on Rad Hat Linus From: Don Mellen Is it possible that the environment/user that the cron job runs under can't find the sqr executable? On Mon, Feb 8, 2010 at 1:17 PM, Leon Shraibman wrote: > it is running at my company > > On Feb 8, 2010 1:16 PM, "Marina Piatibratov" wrote: > > As far as I know SQR is not running on Linux. > May be I'm wrong... > > --Marina > > > > Merritt, Bruce wrote: > > > > Has anyone come across a problem using the Cron process on Red Hat > Linux... > > _______________________________________________ > 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" (Terry Pratchett) _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Feb 08 15:21:55 2010 From: "Merritt, Bruce" Date: Mon, 8 Feb 2010 13:14:19 -0700 Subject: RE: [sqr-users] Executing An SQR with Cron Process on Rad Hat Linus If we log in as user A and execute the command /dayq.script The script executes with no errors. If we execute the same script in the cron, running as user A, the process a= borts.=20 The crontab line being executed is: #1-59 6-18 * * * /dayq.script 1>/dev/null 2>/dev/null The script executes up to the point where the sqr program is executed. The = only error reported by the cron is the word abort. Thanks Bruce -----Original Message----- From: sqr-users-bounces+bruce.merritt=3Dcolostate-pueblo.edu@sqrug.org [mai= lto:sqr-users-bounces+bruce.merritt=3Dcolostate-pueblo.edu@sqrug.org] On Be= half Of Leon Shraibman Sent: Monday, February 08, 2010 11:19 AM To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Subject: Re: [sqr-users] Executing An SQR with Cron Process on Rad Hat Linus Could you describe your problem On Feb 8, 2010 1:17 PM, "Leon Shraibman" wrote: it is running at my company > > On Feb 8, 2010 1:16 PM, "Marina Piatibratov" wrote: > > As far as I know S... Merritt, Bruce wrote: > > Has anyone come across a problem using the Cron process on Red Hat Linux... _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Feb 08 15:36:10 2010 Date: Mon, 8 Feb 2010 15:33:33 -0500 Subject: Re: RE: [sqr-users] Executing An SQR with Cron Process on Rad Hat Linus From: Leon Shraibman Check permissions. If you can run script as user and no issues same should be via cron. I use autosys no problem On Feb 8, 2010 3:22 PM, "Merritt, Bruce" wrote: If we log in as user A and execute the command /dayq.script The script executes with no errors. If we execute the same script in the cron, running as user A, the process aborts. The crontab line being executed is: #1-59 6-18 * * * /dayq.script 1>/dev/null 2>/dev/null The script executes up to the point where the sqr program is executed. The only error reported by the cron is the word abort. Thanks Bruce -----Original Message----- From: sqr-users-bounces+bruce.merritt=colostate-pueblo.edu@sqrug.org [... _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://ww... _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Feb 08 16:35:09 2010 From: the dragon Subject: RE: [sqr-users] Executing An SQR with Cron Process on Rad Hat Linus Date: Mon, 8 Feb 2010 15:32:21 -0600 Is the cron job set up and executed by the same user that can log on and ex= ecute the script? Versus being run by root? Is it possible that some envi= ronment variables which are executed by the .profile are not being populate= d when run as cron? =20 peace, clark =20 ----------long sig follows; read at your own risk--------------- 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 finite and the only real asset that you have, and once used it can never be=20 recovered, so don't waste it by giving it away.=20 I work to live; I don't live to work.=20 "Time is the coin of your life. It is the only coin you have, and only=20 you can determine how it will be spent. Be careful lest you let other=20 people spend it for you." -- Carl Sandburg (1878 - 1967)=20 "It is impossible to defeat an ignorant man in argument." -- William G. McA= doo=20 "Religion is regarded by the common people as true, by the wise as false, a= nd=20 by the rulers as useful." -- Seneca=20 "I distrust those people who know so well what God wants them to do because= =20 I notice it always coincides with their own desires." - Susan B. Anthony =20 "Does religion calm your fears of death?" "No, but death will calm my fear= =20 of religions." SIGNATURE : Do not meddle in the affairs of dragons, for you are crunchy and taste good= =20 with ketchup. You've got to be a Spirit; don't need no Ghosts. Do or Do Not; There is NO Try. Any clod can have facts, but having an opinion is an art ! A conclusion is simply the place where someone got tired of thinking. When a continuing state of defiance and disorder can not be checked by the= =20 rules, then new and sometimes drastic rules must be forged to maintain=20 order; the alternative is anarchy. M. Clark Willis III - Sr Systems Analyst, Sr Consultant, PeopleSoft Admin a= nd Security expert, Tech Architect and team lead. ceprn@hotmail.com=20 aolim:ceprn YIM:ceprn Help stamp out SPAM!! http://www.cauce.org The senders of unsolicited commercial e-mail to me at any site are liable= =20 for a $500 per message cost under USC 47, which may be found at=20 http://www.law.cornell.edu/uscode/47 NOTICE: The information contained in this message is protected under Unite= d=20 States and international copyright laws and is intended for the personal an= d=20 confidential use of the addressee. If you are not the addressee or an agen= t=20 of the addressee, you are hereby notified that you have received this=20 message in error and that any review, dissemination, distribution, taking o= f=20 any action in reliance upon or copying of this message without the express= =20 written permission of the sender or his agent is strictly prohibited and in= =20 violation of referenced statutes. If you have received this message in=20 error, please notify me (the sender) immediately and you are instructed to= =20 delete this message from any computer it resides on, including mail servers. Contents of this message, in it's entirety, (c) 2000 - 2010=20 M. Clark Willis III / Dragon Enterprises inc. All rights reserved. =20 > From: bruce.merritt@colostate-pueblo.edu > To: sqr-users@sqrug.org > Date: Mon, 8 Feb 2010 13:14:19 -0700 > Subject: RE: [sqr-users] Executing An SQR with Cron Process on Rad Hat Li= nus >=20 > If we log in as user A and execute the command >=20 > /dayq.script >=20 > The script executes with no errors. >=20 > If we execute the same script in the cron, running as user A, the process= aborts.=20 >=20 > The crontab line being executed is: > #1-59 6-18 * * * /dayq.script 1>/dev/null 2>/dev/null >=20 > The script executes up to the point where the sqr program is executed. Th= e only error reported by the cron is the word abort. >=20 > Thanks >=20 > Bruce >=20 >=20 >=20 > -----Original Message----- > From: sqr-users-bounces+bruce.merritt=3Dcolostate-pueblo.edu@sqrug.org [m= ailto:sqr-users-bounces+bruce.merritt=3Dcolostate-pueblo.edu@sqrug.org] On = Behalf Of Leon Shraibman > Sent: Monday, February 08, 2010 11:19 AM > To: This list is for discussion about the SQR database reporting language= from Hyperion Solutions. > Subject: Re: [sqr-users] Executing An SQR with Cron Process on Rad Hat Li= nus >=20 > Could you describe your problem >=20 > On Feb 8, 2010 1:17 PM, "Leon Shraibman" wrote: >=20 > it is running at my company >=20 >=20 > > > > On Feb 8, 2010 1:16 PM, "Marina Piatibratov" wrote: > > > > As far as I know S... >=20 >=20 >=20 > Merritt, Bruce wrote: > > > > Has anyone come across a problem using the Cron process on Red Hat > Linux... >=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=09=09=20=09=20=20=20=09=09=20=20 _________________________________________________________________ Hotmail: Powerful Free email with security by Microsoft. http://clk.atdmt.com/GBL/go/201469230/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Feb 08 23:49:40 2010 Date: Mon, 8 Feb 2010 23:47:01 -0500 From: Lakshaman katram Subject: [sqr-users] Running SQR from Windows Hi, I guess I can run SQR report from MS Access. Have any one knows how to all the run control parameters? My question is I can use MS access as a front end for SQR reports. Is thst right? Instead of running the SQR from PS page I want to run it from MS Access. I have no idea how to pass all the runcontrol parametrs. Can any one help me? Thanks in advance. Lakshman _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Feb 09 09:27:49 2010 From: "Barry E. Cohen" Date: Tue, 9 Feb 2010 09:24:05 -0500 Subject: RE: [sqr-users] Running SQR from Windows =46rom within your MS Access app call a .bat that starts sqrw... start /wait e:\xxx\xxx999\sqrbin\windows\sqrw e:\xxx\xxx999\sqr\emptblin %u= ser%/%password%@dbname -XCB -Ie:\xxx\xxx999\folder\;e:\xxx\xxx999\sqr\ -Fe:= \file_folder\out\ -Oe:\file_folder\out\emptblin.log -Me:\xxx\xxx999\sqr\all= maxes.max _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems =20 Office: 201-287-4287 =20 Please consider the environment before printing this email -----Original Message----- From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto:sqr-users-= bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of Lakshaman katram Sent: Monday, February 08, 2010 11:47 PM To: sqr-users@sqrug.org Subject: [sqr-users] Running SQR from Windows Hi, I guess I can run SQR report from MS Access. Have any one knows how to all the run control parameters? My question is I can use MS access as a front end for SQR reports. Is thst right? Instead of running the SQR from PS page I want to run it from MS Access. I have no idea how to pass all the runcontrol parametrs. Can any one help me? Thanks in advance. Lakshman _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users The information contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it from your system _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Feb 09 09:46:58 2010 Subject: RE: [sqr-users] Running SQR from Windows Date: Tue, 9 Feb 2010 08:43:07 -0600 From: "William Haggerty" Lakshman, We have Windows program that calls a SQR report like this: [BINPATH]SQR7WT.EXE [BATS]!!!!REPLACE!!!!.SQT [SQRU]/[SQRP][SQRD] -ZIV -XCB -O[TEMP]SQR.LOG -F[TEMP] The software automatically replaces the strings in brackets with the correct information. The -ZIV switch makes it so the viewer shows the report. ( You don't have to use this, it could just make a report or file.) We add extra strings at the end that end up as inputs to the SQR. ( Using BATCH-MODE on the inputs.) I would suggest looking into the 'Shell()' function in Access. HopeThatHelps!! Bill -----Original Message----- From: sqr-users-bounces+whaggerty=3Dredfcu.org@sqrug.org [mailto:sqr-users-bounces+whaggerty=3Dredfcu.org@sqrug.org] On Behalf Of Lakshaman katram Sent: Monday, February 08, 2010 10:47 PM To: sqr-users@sqrug.org Subject: [sqr-users] Running SQR from Windows Hi, I guess I can run SQR report from MS Access. Have any one knows how to all the run control parameters? My question is I can use MS access as a front end for SQR reports. Is thst right? Instead of running the SQR from PS page I want to run it from MS Access. I have no idea how to pass all the runcontrol parametrs. Can any one help me? Thanks in advance. Lakshman _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users =20 -------------------------------------------------------------------------- CONFIDENTIALITY NOTICE: This email, including any attachments, contains inf= ormation from Redstone Federal Credit Union which may be confidential or pr= ivileged. The information is intended to be for the use of the individual o= r entity named above. If you are not the intended recipient, be aware that = any disclosure, copying, distribution or use of the contents of this inform= ation is prohibited. If you have received this email in error, please notif= y the sender immediately by "reply to sender only" message and destroy all = electronic and hard copies of the communication, including attachments.=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Feb 09 23:15:34 2010 Date: Tue, 9 Feb 2010 23:12:39 -0500 Subject: Re: [sqr-users] Running SQR from Windows From: Lakshaman katram Thank you very much for your quick response. So I can pass the values from access pages right. just like run control values from peoplesoft pages. Thanks Lakshman. On Tue, Feb 9, 2010 at 9:24 AM, Barry E. Cohen wrote: > From within your MS Access app call a .bat that starts sqrw... > > start /wait e:\xxx\xxx999\sqrbin\windows\sqrw e:\xxx\xxx999\sqr\emptblin > %user%/%password%@dbname -XCB -Ie:\xxx\xxx999\folder\;e:\xxx\xxx999\sqr\ > -Fe:\file_folder\out\ -Oe:\file_folder\out\emptblin.log > -Me:\xxx\xxx999\sqr\allmaxes.max > > > _____________________ > Barry E. Cohen > Senior Programmer Analyst > Univision HR and Financial Systems > > Office: 201-287-4287 > > Please consider the environment before printing this email > -----Original Message----- > From: sqr-users-bounces+bcohen=univision.net@sqrug.org [mailto: > sqr-users-bounces+bcohen =univision.net@ > sqrug.org] On Behalf Of Lakshaman katram > Sent: Monday, February 08, 2010 11:47 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] Running SQR from Windows > > Hi, > > I guess I can run SQR report from MS Access. Have any one knows how to all > the run control parameters? > My question is I can use MS access as a front end for SQR reports. Is thst > right? > Instead of running the SQR from PS page I want to run it from MS Access. > I have no idea how to pass all the runcontrol parametrs. > Can any one help me? > > Thanks in advance. > Lakshman > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > The information contained in this e-mail and any attached > documents may be privileged, confidential and protected from > disclosure. If you are not the intended recipient you may not > read, copy, distribute or use this information. If you have > received this communication in error, please notify the sender > immediately by replying to this message and then delete it > from your system > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Feb 09 23:18:38 2010 Date: Tue, 9 Feb 2010 23:13:05 -0500 Subject: Re: [sqr-users] Running SQR from Windows From: Lakshaman katram Thank you very much for your quick response. So I can pass the values from access pages right. just like run control values from peoplesoft pages On Tue, Feb 9, 2010 at 9:43 AM, William Haggerty wrote: > Lakshman, > We have Windows program that calls a SQR report like this: > [BINPATH]SQR7WT.EXE [BATS]!!!!REPLACE!!!!.SQT [SQRU]/[SQRP][SQRD] -ZIV > -XCB -O[TEMP]SQR.LOG -F[TEMP] > > The software automatically replaces the strings in brackets with the > correct information. > The -ZIV switch makes it so the viewer shows the report. ( You don't > have to use this, it could just make a report or file.) > We add extra strings at the end that end up as inputs to the SQR. ( > Using BATCH-MODE on the inputs.) > I would suggest looking into the 'Shell()' function in Access. > > HopeThatHelps!! > Bill > > -----Original Message----- > From: sqr-users-bounces+whaggerty=redfcu.org@sqrug.org > [mailto:sqr-users-bounces+whaggerty = > redfcu.org@sqrug.org] On Behalf Of > Lakshaman katram > Sent: Monday, February 08, 2010 10:47 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] Running SQR from Windows > > Hi, > > I guess I can run SQR report from MS Access. Have any one knows how to > all > the run control parameters? > My question is I can use MS access as a front end for SQR reports. Is > thst > right? > Instead of running the SQR from PS page I want to run it from MS Access. > I have no idea how to pass all the runcontrol parametrs. > Can any one help me? > > Thanks in advance. > Lakshman > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > -------------------------------------------------------------------------- > CONFIDENTIALITY NOTICE: This email, including any attachments, contains > information from Redstone Federal Credit Union which may be confidential or > privileged. The information is intended to be for the use of the individual > or entity named above. If you are not the intended recipient, be aware that > any disclosure, copying, distribution or use of the contents of this > information is prohibited. If you have received this email in error, please > notify the sender immediately by "reply to sender only" message and destroy > all electronic and hard copies of the communication, including attachments. > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Feb 10 23:52:30 2010 From: "Barry E. Cohen" Date: Wed, 10 Feb 2010 23:49:38 -0500 Subject: RE: [sqr-users] Running SQR from Windows Yes, I don't have the documentation in front of me, but there is a command = line flag for passing in variables. I know that we do it for a few of our SQRs that are run this way. _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems =20 Office: 201-287-4287 =20 Please consider the environment before printing this email -----Original Message----- From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto:sqr-users-= bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of Lakshaman katram Sent: Tuesday, February 09, 2010 11:13 PM To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Subject: Re: [sqr-users] Running SQR from Windows Thank you very much for your quick response. So I can pass the values from access pages right. just like run control values from peoplesoft pages. Thanks Lakshman. On Tue, Feb 9, 2010 at 9:24 AM, Barry E. Cohen wrote: > From within your MS Access app call a .bat that starts sqrw... > > start /wait e:\xxx\xxx999\sqrbin\windows\sqrw e:\xxx\xxx999\sqr\emptblin > %user%/%password%@dbname -XCB -Ie:\xxx\xxx999\folder\;e:\xxx\xxx999\sqr\ > -Fe:\file_folder\out\ -Oe:\file_folder\out\emptblin.log > -Me:\xxx\xxx999\sqr\allmaxes.max > > > _____________________ > Barry E. Cohen > Senior Programmer Analyst > Univision HR and Financial Systems > > Office: 201-287-4287 > > Please consider the environment before printing this email > -----Original Message----- > From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto: > sqr-users-bounces+bcohen =3Dunivision.net@ > sqrug.org] On Behalf Of Lakshaman katram > Sent: Monday, February 08, 2010 11:47 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] Running SQR from Windows > > Hi, > > I guess I can run SQR report from MS Access. Have any one knows how to all > the run control parameters? > My question is I can use MS access as a front end for SQR reports. Is thst > right? > Instead of running the SQR from PS page I want to run it from MS Access. > I have no idea how to pass all the runcontrol parametrs. > Can any one help me? > > Thanks in advance. > Lakshman > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > The information contained in this e-mail and any attached > documents may be privileged, confidential and protected from > disclosure. If you are not the intended recipient you may not > read, copy, distribute or use this information. If you have > received this communication in error, please notify the sender > immediately by replying to this message and then delete it > from your system > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users The information contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it from your system _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Feb 11 08:55:42 2010 Date: Thu, 11 Feb 2010 09:52:04 -0400 From: "PeterG Clark" Subject: RE: [sqr-users] Running SQR from Windows After all command flags are specified, you can then append "answers" to ASK= or INPUT commands within the SQR in the same sequence they are expected by= your program. Alternatively, after the command flags, you can append @file to specify a f= ile that contains the "answers" (one per line). In both cases, all ASK arguments must be provided before the INPUT argument= s. >>> "Barry E. Cohen" 2010/02/11 00:49 >>> Yes, I don't have the documentation in front of me, but there is a command = line flag for passing in variables. I know that we do it for a few of our SQRs that are run this way. _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems =20 Office: 201-287-4287 =20 Please consider the environment before printing this email -----Original Message----- From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto:sqr-users-= bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of Lakshaman katram Sent: Tuesday, February 09, 2010 11:13 PM To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Subject: Re: [sqr-users] Running SQR from Windows Thank you very much for your quick response. So I can pass the values from access pages right. just like run control values from peoplesoft pages. Thanks Lakshman. On Tue, Feb 9, 2010 at 9:24 AM, Barry E. Cohen wrote: > From within your MS Access app call a .bat that starts sqrw... > > start /wait e:\xxx\xxx999\sqrbin\windows\sqrw e:\xxx\xxx999\sqr\emptblin > %user%/%password%@dbname -XCB -Ie:\xxx\xxx999\folder\;e:\xxx\xxx999\sqr\ > -Fe:\file_folder\out\ -Oe:\file_folder\out\emptblin.log > -Me:\xxx\xxx999\sqr\allmaxes.max > > > _____________________ > Barry E. Cohen > Senior Programmer Analyst > Univision HR and Financial Systems > > Office: 201-287-4287 > > Please consider the environment before printing this email > -----Original Message----- > From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto: > sqr-users-bounces+bcohen =3Dunivision.net@ > sqrug.org] On Behalf Of Lakshaman katram > Sent: Monday, February 08, 2010 11:47 PM > To: sqr-users@sqrug.org=20 > Subject: [sqr-users] Running SQR from Windows > > Hi, > > I guess I can run SQR report from MS Access. Have any one knows how to all > the run control parameters? > My question is I can use MS access as a front end for SQR reports. Is thst > right? > Instead of running the SQR from PS page I want to run it from MS Access. > I have no idea how to pass all the runcontrol parametrs. > Can any one help me? > > Thanks in advance. > Lakshman > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 > > The information contained in this e-mail and any attached > documents may be privileged, confidential and protected from > disclosure. If you are not the intended recipient you may not > read, copy, distribute or use this information. If you have > received this communication in error, please notify the sender > immediately by replying to this message and then delete it > from your system > > _______________________________________________ > 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 The information contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it from your system _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Feb 11 14:45:25 2010 Date: Thu, 11 Feb 2010 14:42:35 -0500 From: "Simon, Jason (MBS)" Subject: [sqr-users] How can I sneak a text file into a load-lookup? Hey Everyone, I need some help please. I have to use a text file with about 3k rows in it to exclude data from my final output in a report. This text file changes on a daily basis. A text file was thought to be the easiest way for the end users to add and remove names from the list. :( Normally, I would just loop through the data one row at a time comparing the two text fields to each other and setting a include flag based on the comparison. As you can already see though the time it takes to do this comparison is way too long. If I can somehow get this text file into a load-lookup I can do this comparison much faster. I was thinking that if I could build a query that uses a fake table like dual and trick the load-lookup into accepting it my life would be much easier.=20=20=20 =20 Notes: I cannot create tables or do any other changes that require admin rights. We use both oracle and sql server databases.=20 =20 Please HELP! Thanks Jason http://sqrhelpers.wordpress.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Feb 11 14:49:42 2010 Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? Date: Thu, 11 Feb 2010 14:46:46 -0500 From: "Simon, Jason (MBS)" The results I have to compare it to has about 50k rows.=20 -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of Simon, Jason (MBS) Sent: Thursday, February 11, 2010 2:43 PM To: sqr-users@sqrug.org Subject: [sqr-users] How can I sneak a text file into a load-lookup? Hey Everyone, I need some help please. I have to use a text file with about 3k rows in it to exclude data from my final output in a report. This text file changes on a daily basis. A text file was thought to be the easiest way for the end users to add and remove names from the list. :( Normally, I would just loop through the data one row at a time comparing the two text fields to each other and setting a include flag based on the comparison. As you can already see though the time it takes to do this comparison is way too long. If I can somehow get this text file into a load-lookup I can do this comparison much faster. I was thinking that if I could build a query that uses a fake table like dual and trick the load-lookup into accepting it my life would be much easier.=20=20=20 =20 Notes: I cannot create tables or do any other changes that require admin rights. We use both oracle and sql server databases.=20 =20 Please HELP! Thanks Jason http://sqrhelpers.wordpress.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Feb 11 15:19:27 2010 Date: Thu, 11 Feb 2010 15:16:21 -0500 Subject: Re: [sqr-users] How can I sneak a text file into a load-lookup? From: Leon Shraibman create a table load into table use lookup. 3k rows 2 mind to load another 10 sec to lookup On Feb 11, 2010 2:46 PM, "Simon, Jason (MBS)" < Jason.Simon@mortgagefamily.com> wrote: Hey Everyone, I need some help please. I have to use a text file with about 3k rows in it to exclude data from my final output in a report. This text file changes on a daily basis. A text file was thought to be the easiest way for the end users to add and remove names from the list. :( Normally, I would just loop through the data one row at a time comparing the two text fields to each other and setting a include flag based on the comparison. As you can already see though the time it takes to do this comparison is way too long. If I can somehow get this text file into a load-lookup I can do this comparison much faster. I was thinking that if I could build a query that uses a fake table like dual and trick the load-lookup into accepting it my life would be much easier. Notes: I cannot create tables or do any other changes that require admin rights. We use both oracle and sql server databases. Please HELP! Thanks Jason http://sqrhelpers.wordpress.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Feb 11 15:22:23 2010 Date: Thu, 11 Feb 2010 15:17:40 -0500 Subject: Re: [sqr-users] How can I sneak a text file into a load-lookup? From: Leon Shraibman Oops did not see notes. Create a temp table? On Feb 11, 2010 2:46 PM, "Simon, Jason (MBS)" < Jason.Simon@mortgagefamily.com> wrote: Hey Everyone, I need some help please. I have to use a text file with about 3k rows in it to exclude data from my final output in a report. This text file changes on a daily basis. A text file was thought to be the easiest way for the end users to add and remove names from the list. :( Normally, I would just loop through the data one row at a time comparing the two text fields to each other and setting a include flag based on the comparison. As you can already see though the time it takes to do this comparison is way too long. If I can somehow get this text file into a load-lookup I can do this comparison much faster. I was thinking that if I could build a query that uses a fake table like dual and trick the load-lookup into accepting it my life would be much easier. Notes: I cannot create tables or do any other changes that require admin rights. We use both oracle and sql server databases. Please HELP! Thanks Jason http://sqrhelpers.wordpress.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Feb 11 15:30:56 2010 Date: Thu, 11 Feb 2010 15:28:22 -0500 Subject: Re: [sqr-users] How can I sneak a text file into a load-lookup? From: Don Mellen Instead of a load-lookup, you could simply load the data from the file into your own array, and write a function to look up the data from there. On Thu, Feb 11, 2010 at 3:17 PM, Leon Shraibman wrote: > Oops did not see notes. Create a temp table? > > On Feb 11, 2010 2:46 PM, "Simon, Jason (MBS)" < > Jason.Simon@mortgagefamily.com> wrote: > > Hey Everyone, > > I need some help please. I have to use a text file with > about 3k rows in it to exclude data from my final output in a report. > This text file changes on a daily basis. A text file was thought to be > the easiest way for the end users to add and remove names from the list. > :( Normally, I would just loop through the data one row at a time > comparing the two text fields to each other and setting a include flag > based on the comparison. As you can already see though the time it > takes to do this comparison is way too long. If I can somehow get this > text file into a load-lookup I can do this comparison much faster. I > was thinking that if I could build a query that uses a fake table like > dual and trick the load-lookup into accepting it my life would be much > easier. > > > > Notes: I cannot create tables or do any other changes that require > admin rights. We use both oracle and sql server databases. > > > > Please HELP! > > Thanks > > Jason > > http://sqrhelpers.wordpress.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 > -- ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" (Terry Pratchett) _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Feb 11 15:41:29 2010 Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? Date: Thu, 11 Feb 2010 15:38:38 -0500 From: "Simon, Jason (MBS)" Normally I would do just that. But in order to compare a single field from each array I currently have two loops going on simultaneously. The first one which is 50k and the second inner loop which is 3k.=20=20=20 -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of Don Mellen Sent: Thursday, February 11, 2010 3:28 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] How can I sneak a text file into a load-lookup? Instead of a load-lookup, you could simply load the data from the file into your own array, and write a function to look up the data from there. On Thu, Feb 11, 2010 at 3:17 PM, Leon Shraibman wrote: > Oops did not see notes. Create a temp table? > > On Feb 11, 2010 2:46 PM, "Simon, Jason (MBS)" < > Jason.Simon@mortgagefamily.com> wrote: > > Hey Everyone, > > I need some help please. I have to use a text file with > about 3k rows in it to exclude data from my final output in a report. > This text file changes on a daily basis. A text file was thought to be > the easiest way for the end users to add and remove names from the list. > :( Normally, I would just loop through the data one row at a time > comparing the two text fields to each other and setting a include flag > based on the comparison. As you can already see though the time it > takes to do this comparison is way too long. If I can somehow get this > text file into a load-lookup I can do this comparison much faster. I > was thinking that if I could build a query that uses a fake table like > dual and trick the load-lookup into accepting it my life would be much > easier. > > > > Notes: I cannot create tables or do any other changes that require > admin rights. We use both oracle and sql server databases. > > > > Please HELP! > > Thanks > > Jason > > http://sqrhelpers.wordpress.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 > --=20 ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" (Terry Pratchett) _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Feb 11 15:44:58 2010 From: "franck.masson" Subject: Re: [sqr-users] How can I sneak a text file into a load-lookup? Date: Thu, 11 Feb 2010 21:40:53 +0100 (CET) Hi, have you tried to load your text file in an array then for each line you retreive from the database loop through this array t= o know to use it or not. another solution in the same way as above is to store the content of your f= ile in an array where each line will be a concatenation of the multiple line of your text f= ile=20 my_array[1]=3D'$'||line1||'$'||line2||..... Franck, > Message du 11/02/10 21:22 > De : "Leon Shraibman"=20 > A : "This list is for discussion about the SQR database reporting languag= e from Hyperion Solutions."=20 > Copie =C3=A0 :=20 > Objet : Re: [sqr-users] How can I sneak a text file into a load-lookup? > >=20 > Oops did not see notes. Create a temp table? >=20 > On Feb 11, 2010 2:46 PM, "Simon, Jason (MBS)" < > Jason.Simon@mortgagefamily.com> wrote: >=20 > Hey Everyone, >=20 > I need some help please. I have to use a text file with > about 3k rows in it to exclude data from my final output in a report. > This text file changes on a daily basis. A text file was thought to be > the easiest way for the end users to add and remove names from the list. > :( Normally, I would just loop through the data one row at a time > comparing the two text fields to each other and setting a include flag > based on the comparison. As you can already see though the time it > takes to do this comparison is way too long. If I can somehow get this > text file into a load-lookup I can do this comparison much faster. I > was thinking that if I could build a query that uses a fake table like > dual and trick the load-lookup into accepting it my life would be much > easier. >=20 >=20 >=20 > Notes: I cannot create tables or do any other changes that require > admin rights. We use both oracle and sql server databases. >=20 >=20 >=20 > Please HELP! >=20 > Thanks >=20 > Jason >=20 > http://sqrhelpers.wordpress.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 Une messagerie gratuite, garantie =C3=A0 vie et des services en plus, =C3= =A7a vous tente ? Je cr=C3=A9e ma bo=C3=AEte mail www.laposte.net _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Feb 11 16:11:44 2010 Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? Date: Thu, 11 Feb 2010 16:08:21 -0500 From: "Simon, Jason (MBS)" Hey Leon, Thanks for your reply. I am going to ask the DBA's about adding temp table= s but they are very tight on who has access to create and drop tables in th= e databases. Wish me luck.=20 Thanks Frank, I do put the text file in an array. However, I have not put a lo= op in the SQL itself. Do you believe this will speed it up? I didn't think= it would make much difference since it would still be looping through the = same number of rows.=20 Can you expand a little on your second idea? I am familiar with how to con= catenate a string but I am not sure I follow your thought. Are you saying = to do an instr on the one row which would be in the array thereby you only = have one line to compare instead of 3k? That is a novel idea I will have t= o try that.=20 Thanks Jason=20 http://sqrhelpers.wordpress.com/ -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:= sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of = franck.masson Sent: Thursday, February 11, 2010 3:41 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: Re: [sqr-users] How can I sneak a text file into a load-lookup? Hi, have you tried to load your text file in an array then for each line you retreive from the database loop through this array t= o know to use it or not. another solution in the same way as above is to store the content of your f= ile in an array where each line will be a concatenation of the multiple line of your text f= ile=20 my_array[1]=3D'$'||line1||'$'||line2||..... Franck, > Message du 11/02/10 21:22 > De : "Leon Shraibman"=20 > A : "This list is for discussion about the SQR database reporting languag= e from Hyperion Solutions."=20 > Copie =E0 :=20 > Objet : Re: [sqr-users] How can I sneak a text file into a load-lookup? > >=20 > Oops did not see notes. Create a temp table? >=20 > On Feb 11, 2010 2:46 PM, "Simon, Jason (MBS)" < > Jason.Simon@mortgagefamily.com> wrote: >=20 > Hey Everyone, >=20 > I need some help please. I have to use a text file with > about 3k rows in it to exclude data from my final output in a report. > This text file changes on a daily basis. A text file was thought to be > the easiest way for the end users to add and remove names from the list. > :( Normally, I would just loop through the data one row at a time > comparing the two text fields to each other and setting a include flag > based on the comparison. As you can already see though the time it > takes to do this comparison is way too long. If I can somehow get this > text file into a load-lookup I can do this comparison much faster. I > was thinking that if I could build a query that uses a fake table like > dual and trick the load-lookup into accepting it my life would be much > easier. >=20 >=20 >=20 > Notes: I cannot create tables or do any other changes that require > admin rights. We use both oracle and sql server databases. >=20 >=20 >=20 > Please HELP! >=20 > Thanks >=20 > Jason >=20 > http://sqrhelpers.wordpress.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 Une messagerie gratuite, garantie =E0 vie et des services en plus, =E7a vou= s tente ? Je cr=E9e ma bo=EEte mail www.laposte.net _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Feb 11 16:21:00 2010 Date: Thu, 11 Feb 2010 16:18:03 -0500 Subject: Re: RE: [sqr-users] How can I sneak a text file into a load-lookup? From: Leon Shraibman Temp tables only exist while SQR is running. In sybase they are ## On Feb 11, 2010 4:12 PM, "Simon, Jason (MBS)" < Jason.Simon@mortgagefamily.com> wrote: Hey Leon, Thanks for your reply. I am going to ask the DBA's about adding temp tables but they are very tight on who has access to create and drop tables in the databases. Wish me luck. Thanks Frank, I do put the text file in an array. However, I have not put a loop in the SQL itself. Do you believe this will speed it up? I didn't think it would make much difference since it would still be looping through the same number of rows. Can you expand a little on your second idea? I am familiar with how to concatenate a string but I am not sure I follow your thought. Are you saying to do an instr on the one row which would be in the array thereby you only have one line to compare instead of 3k? That is a novel idea I will have to try that. Thanks Jason http://sqrhelpers.wordpress.com/ -----Original Message----- From: sqr-users-bounces+jason.simon=mortgagefamily.com@sqrug.org [mailto:... _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Feb 11 16:24:09 2010 From: "franck.masson" Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? Date: Thu, 11 Feb 2010 22:18:55 +0100 (CET) hi simon, the option 1 was=20 begin-select=20 sss ddd do find_it if ok .... end-if the option 2 you have understood the principle the benefice will depend of the size of each line within your text file Franck, > Message du 11/02/10 22:11 > De : "Simon, Jason (MBS)"=20 > A : "This list is for discussion about the SQR database reportinglanguage= from Hyperion Solutions."=20 > Copie =C3=A0 :=20 > Objet : RE: [sqr-users] How can I sneak a text file into a load-lookup? > >=20 > Hey Leon, > Thanks for your reply. I am going to ask the DBA's about adding temp tabl= es but they are very tight on who has access to create and drop tables in t= he databases. Wish me luck.=20 >=20 > Thanks Frank, > I do put the text file in an array. However, I have not put a loop in the= SQL itself. Do you believe this will speed it up? I didn't think it would = make much difference since it would still be looping through the same numbe= r of rows.=20 >=20 > Can you expand a little on your second idea? I am familiar with how to co= ncatenate a string but I am not sure I follow your thought. Are you saying = to do an instr on the one row which would be in the array thereby you only = have one line to compare instead of 3k? That is a novel idea I will have to= try that.=20 >=20 > Thanks > Jason=20 > http://sqrhelpers.wordpress.com/ >=20 > -----Original Message----- > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailt= o:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf O= f franck.masson > Sent: Thursday, February 11, 2010 3:41 PM > To: This list is for discussion about the SQR database reporting language= from Hyperion Solutions. > Subject: Re: [sqr-users] How can I sneak a text file into a load-lookup? >=20 > Hi, >=20 > have you tried to load your text file in an array > then for each line you retreive from the database loop through this array= to know to use it or not. >=20 > another solution in the same way as above is to store the content of your= file in an array > where each line will be a concatenation of the multiple line of your text= file=20 > my_array[1]=3D'$'||line1||'$'||line2||..... >=20 > Franck, >=20 >=20 >=20 > > Message du 11/02/10 21:22 > > De : "Leon Shraibman"=20 > > A : "This list is for discussion about the SQR database reporting langu= age from Hyperion Solutions."=20 > > Copie =C3=A0 :=20 > > Objet : Re: [sqr-users] How can I sneak a text file into a load-lookup? > > > >=20 > > Oops did not see notes. Create a temp table? > >=20 > > On Feb 11, 2010 2:46 PM, "Simon, Jason (MBS)" < > > Jason.Simon@mortgagefamily.com> wrote: > >=20 > > Hey Everyone, > >=20 > > I need some help please. I have to use a text file with > > about 3k rows in it to exclude data from my final output in a report. > > This text file changes on a daily basis. A text file was thought to be > > the easiest way for the end users to add and remove names from the list. > > :( Normally, I would just loop through the data one row at a time > > comparing the two text fields to each other and setting a include flag > > based on the comparison. As you can already see though the time it > > takes to do this comparison is way too long. If I can somehow get this > > text file into a load-lookup I can do this comparison much faster. I > > was thinking that if I could build a query that uses a fake table like > > dual and trick the load-lookup into accepting it my life would be much > > easier. > >=20 > >=20 > >=20 > > Notes: I cannot create tables or do any other changes that require > > admin rights. We use both oracle and sql server databases. > >=20 > >=20 > >=20 > > Please HELP! > >=20 > > Thanks > >=20 > > Jason > >=20 > > http://sqrhelpers.wordpress.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 >=20 > Une messagerie gratuite, garantie =C3=A0 vie et des services en plus, =C3= =A7a vous tente ? > Je cr=C3=A9e ma bo=C3=AEte mail www.laposte.net >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 >=20 Une messagerie gratuite, garantie =C3=A0 vie et des services en plus, =C3= =A7a vous tente ? Je cr=C3=A9e ma bo=C3=AEte mail www.laposte.net _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Feb 11 16:28:37 2010 Subject: RE: RE: [sqr-users] How can I sneak a text file into a load-lookup? Date: Thu, 11 Feb 2010 16:23:55 -0500 From: "Simon, Jason (MBS)" I am looking in an old SQL Server resource guide but don't quite understand what it is saying. I will definitely look at it though. How does it know to drop the table when the report is finished? Do you have to code the drop into the SQR? Thanks and I really appreciate your help! Thanks again! Jason -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of Leon Shraibman Sent: Thursday, February 11, 2010 4:18 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: RE: [sqr-users] How can I sneak a text file into a load-lookup? Temp tables only exist while SQR is running. In sybase they are ## On Feb 11, 2010 4:12 PM, "Simon, Jason (MBS)" < Jason.Simon@mortgagefamily.com> wrote: Hey Leon, Thanks for your reply. I am going to ask the DBA's about adding temp tables but they are very tight on who has access to create and drop tables in the databases. Wish me luck. Thanks Frank, I do put the text file in an array. However, I have not put a loop in the SQL itself. Do you believe this will speed it up? I didn't think it would make much difference since it would still be looping through the same number of rows. Can you expand a little on your second idea? I am familiar with how to concatenate a string but I am not sure I follow your thought. Are you saying to do an instr on the one row which would be in the array thereby you only have one line to compare instead of 3k? That is a novel idea I will have to try that. Thanks Jason http://sqrhelpers.wordpress.com/ -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:... _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Feb 11 16:31:57 2010 Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? Date: Thu, 11 Feb 2010 16:25:34 -0500 From: "Simon, Jason (MBS)" The character string will probably be 6600 characters long. 300 names x an= average of 22 characters.=20 -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:= sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of = franck.masson Sent: Thursday, February 11, 2010 4:19 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? hi simon, the option 1 was=20 begin-select=20 sss ddd do find_it if ok .... end-if the option 2 you have understood the principle the benefice will depend of the size of each line within your text file Franck, > Message du 11/02/10 22:11 > De : "Simon, Jason (MBS)"=20 > A : "This list is for discussion about the SQR database reportinglanguage= from Hyperion Solutions."=20 > Copie =E0 :=20 > Objet : RE: [sqr-users] How can I sneak a text file into a load-lookup? > >=20 > Hey Leon, > Thanks for your reply. I am going to ask the DBA's about adding temp tabl= es but they are very tight on who has access to create and drop tables in t= he databases. Wish me luck.=20 >=20 > Thanks Frank, > I do put the text file in an array. However, I have not put a loop in the= SQL itself. Do you believe this will speed it up? I didn't think it would = make much difference since it would still be looping through the same numbe= r of rows.=20 >=20 > Can you expand a little on your second idea? I am familiar with how to co= ncatenate a string but I am not sure I follow your thought. Are you saying = to do an instr on the one row which would be in the array thereby you only = have one line to compare instead of 3k? That is a novel idea I will have to= try that.=20 >=20 > Thanks > Jason=20 > http://sqrhelpers.wordpress.com/ >=20 > -----Original Message----- > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailt= o:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf O= f franck.masson > Sent: Thursday, February 11, 2010 3:41 PM > To: This list is for discussion about the SQR database reporting language= from Hyperion Solutions. > Subject: Re: [sqr-users] How can I sneak a text file into a load-lookup? >=20 > Hi, >=20 > have you tried to load your text file in an array > then for each line you retreive from the database loop through this array= to know to use it or not. >=20 > another solution in the same way as above is to store the content of your= file in an array > where each line will be a concatenation of the multiple line of your text= file=20 > my_array[1]=3D'$'||line1||'$'||line2||..... >=20 > Franck, >=20 >=20 >=20 > > Message du 11/02/10 21:22 > > De : "Leon Shraibman"=20 > > A : "This list is for discussion about the SQR database reporting langu= age from Hyperion Solutions."=20 > > Copie =E0 :=20 > > Objet : Re: [sqr-users] How can I sneak a text file into a load-lookup? > > > >=20 > > Oops did not see notes. Create a temp table? > >=20 > > On Feb 11, 2010 2:46 PM, "Simon, Jason (MBS)" < > > Jason.Simon@mortgagefamily.com> wrote: > >=20 > > Hey Everyone, > >=20 > > I need some help please. I have to use a text file with > > about 3k rows in it to exclude data from my final output in a report. > > This text file changes on a daily basis. A text file was thought to be > > the easiest way for the end users to add and remove names from the list. > > :( Normally, I would just loop through the data one row at a time > > comparing the two text fields to each other and setting a include flag > > based on the comparison. As you can already see though the time it > > takes to do this comparison is way too long. If I can somehow get this > > text file into a load-lookup I can do this comparison much faster. I > > was thinking that if I could build a query that uses a fake table like > > dual and trick the load-lookup into accepting it my life would be much > > easier. > >=20 > >=20 > >=20 > > Notes: I cannot create tables or do any other changes that require > > admin rights. We use both oracle and sql server databases. > >=20 > >=20 > >=20 > > Please HELP! > >=20 > > Thanks > >=20 > > Jason > >=20 > > http://sqrhelpers.wordpress.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 >=20 > Une messagerie gratuite, garantie =E0 vie et des services en plus, =E7a v= ous tente ? > Je cr=E9e ma bo=EEte mail www.laposte.net >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 >=20 Une messagerie gratuite, garantie =E0 vie et des services en plus, =E7a vou= s tente ? Je cr=E9e ma bo=EEte mail www.laposte.net _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Feb 11 16:37:14 2010 From: "franck.masson" Subject: RE: RE: [sqr-users] How can I sneak a text file into a load-lookup? Date: Thu, 11 Feb 2010 22:34:33 +0100 (CET) your tmp table be drop automatically when the oracle session end / when sqr= end look at=20 http://www.oracle-base.com/articles/8i/TemporaryTables.php > Message du 11/02/10 22:28 > De : "Simon, Jason (MBS)"=20 > A : "This list is for discussion about the SQR database reportinglanguage= from Hyperion Solutions."=20 > Copie =C3=A0 :=20 > Objet : RE: RE: [sqr-users] How can I sneak a text file into a load-looku= p? > >=20 > I am looking in an old SQL Server resource guide but don't quite > understand what it is saying. I will definitely look at it though. How > does it know to drop the table when the report is finished? Do you have > to code the drop into the SQR? Thanks and I really appreciate your > help! >=20 > Thanks again! > Jason >=20 > -----Original Message----- > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org > [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On > Behalf Of Leon Shraibman > Sent: Thursday, February 11, 2010 4:18 PM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: Re: RE: [sqr-users] How can I sneak a text file into a > load-lookup? >=20 > Temp tables only exist while SQR is running. In sybase they are ## >=20 > On Feb 11, 2010 4:12 PM, "Simon, Jason (MBS)" < > Jason.Simon@mortgagefamily.com> wrote: >=20 > Hey Leon, > Thanks for your reply. I am going to ask the DBA's about adding > temp > tables but they are very tight on who has access to create and drop > tables > in the databases. Wish me luck. >=20 > Thanks Frank, > I do put the text file in an array. However, I have not put a > loop > in the SQL itself. Do you believe this will speed it up? I didn't think > it > would make much difference since it would still be looping through the > same > number of rows. >=20 > Can you expand a little on your second idea? I am familiar with > how > to concatenate a string but I am not sure I follow your thought. Are > you > saying to do an instr on the one row which would be in the array thereby > you > only have one line to compare instead of 3k? That is a novel idea I > will > have to try that. >=20 >=20 > Thanks > Jason > http://sqrhelpers.wordpress.com/ >=20 > -----Original Message----- > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org > [mailto:... >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 >=20 Une messagerie gratuite, garantie =C3=A0 vie et des services en plus, =C3= =A7a vous tente ? Je cr=C3=A9e ma bo=C3=AEte mail www.laposte.net _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Feb 11 16:42:02 2010 From: "franck.masson" Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? Date: Thu, 11 Feb 2010 22:36:57 +0100 (CET) you have=20 3000 lines with a string of 22 Characters or 3000 lines with a string of 6600 Char. ? > Message du 11/02/10 22:32 > De : "Simon, Jason (MBS)"=20 > A : "This list is for discussion about the SQR database reportinglanguage= from Hyperion Solutions."=20 > Copie =C3=A0 :=20 > Objet : RE: [sqr-users] How can I sneak a text file into a load-lookup? > >=20 > The character string will probably be 6600 characters long. 300 names x a= n average of 22 characters.=20 >=20 > -----Original Message----- > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailt= o:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf O= f franck.masson > Sent: Thursday, February 11, 2010 4:19 PM > To: This list is for discussion about the SQR database reporting language= from Hyperion Solutions. > Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? >=20 > hi simon, >=20 > the option 1 was=20 > begin-select=20 > sss > ddd > do find_it > if ok > .... > end-if >=20 >=20 > the option 2 you have understood the principle > the benefice will depend of the size of each line within your text file >=20 > Franck, >=20 >=20 >=20 > > Message du 11/02/10 22:11 > > De : "Simon, Jason (MBS)"=20 > > A : "This list is for discussion about the SQR database reportinglangua= ge from Hyperion Solutions."=20 > > Copie =C3=A0 :=20 > > Objet : RE: [sqr-users] How can I sneak a text file into a load-lookup? > > > >=20 > > Hey Leon, > > Thanks for your reply. I am going to ask the DBA's about adding temp ta= bles but they are very tight on who has access to create and drop tables in= the databases. Wish me luck.=20 > >=20 > > Thanks Frank, > > I do put the text file in an array. However, I have not put a loop in t= he SQL itself. Do you believe this will speed it up? I didn't think it woul= d make much difference since it would still be looping through the same num= ber of rows.=20 > >=20 > > Can you expand a little on your second idea? I am familiar with how to = concatenate a string but I am not sure I follow your thought. Are you sayin= g to do an instr on the one row which would be in the array thereby you onl= y have one line to compare instead of 3k? That is a novel idea I will have = to try that.=20 > >=20 > > Thanks > > Jason=20 > > http://sqrhelpers.wordpress.com/ > >=20 > > -----Original Message----- > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mai= lto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf= Of franck.masson > > Sent: Thursday, February 11, 2010 3:41 PM > > To: This list is for discussion about the SQR database reporting langua= gefrom Hyperion Solutions. > > Subject: Re: [sqr-users] How can I sneak a text file into a load-lookup? > >=20 > > Hi, > >=20 > > have you tried to load your text file in an array > > then for each line you retreive from the database loop through this arr= ay to know to use it or not. > >=20 > > another solution in the same way as above is to store the content of yo= ur file in an array > > where each line will be a concatenation of the multiple line of your te= xt file=20 > > my_array[1]=3D'$'||line1||'$'||line2||..... > >=20 > > Franck, > >=20 > >=20 > >=20 > > > Message du 11/02/10 21:22 > > > De : "Leon Shraibman"=20 > > > A : "This list is for discussion about the SQR database reporting lan= guage from Hyperion Solutions."=20 > > > Copie =C3=A0 :=20 > > > Objet : Re: [sqr-users] How can I sneak a text file into a load-looku= p? > > > > > >=20 > > > Oops did not see notes. Create a temp table? > > >=20 > > > On Feb 11, 2010 2:46 PM, "Simon, Jason (MBS)" < > > > Jason.Simon@mortgagefamily.com> wrote: > > >=20 > > > Hey Everyone, > > >=20 > > > I need some help please. I have to use a text file with > > > about 3k rows in it to exclude data from my final output in a report. > > > This text file changes on a daily basis. A text file was thought to be > > > the easiest way for the end users to add and remove names from the li= st. > > > :( Normally, I would just loop through the data one row at a time > > > comparing the two text fields to each other and setting a include flag > > > based on the comparison. As you can already see though the time it > > > takes to do this comparison is way too long. If I can somehow get this > > > text file into a load-lookup I can do this comparison much faster. I > > > was thinking that if I could build a query that uses a fake table like > > > dual and trick the load-lookup into accepting it my life would be much > > > easier. > > >=20 > > >=20 > > >=20 > > > Notes: I cannot create tables or do any other changes that require > > > admin rights. We use both oracle and sql server databases. > > >=20 > > >=20 > > >=20 > > > Please HELP! > > >=20 > > > Thanks > > >=20 > > > Jason > > >=20 > > > http://sqrhelpers.wordpress.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 > >=20 > > Une messagerie gratuite, garantie =C3=A0 vie et des services en plus, = =C3=A7a vous tente ? > > Je cr=C3=A9e ma bo=C3=AEte mail www.laposte.net > >=20 > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > >=20 > >=20 > >=20 > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > >=20 > >=20 >=20 > Une messagerie gratuite, garantie =C3=A0 vie et des services en plus, =C3= =A7a vous tente ? > Je cr=C3=A9e ma bo=C3=AEte mail www.laposte.net >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 >=20 Une messagerie gratuite, garantie =C3=A0 vie et des services en plus, =C3= =A7a vous tente ? Je cr=C3=A9e ma bo=C3=AEte mail www.laposte.net _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Feb 11 19:06:55 2010 From: "Barry E. Cohen" Date: Thu, 11 Feb 2010 19:04:06 -0500 Subject: [sqr-users] RE: How can I sneak a text file into a load-lookup? Since you're in Oracle, ask the DBA to create an "External Table" with your= text file as its source... http://www.oracle-developer.net/display.php?id=3D204 _____________________ Barry E. Cohen Senior Programmer Analyst Univision HR and Financial Systems =20 Office: 201-287-4287 =20 Please consider the environment before printing this email -----Original Message----- From: sqr-users-bounces+bcohen=3Dunivision.net@sqrug.org [mailto:sqr-users-= bounces+bcohen=3Dunivision.net@sqrug.org] On Behalf Of Simon, Jason (MBS) Sent: Thursday, February 11, 2010 2:43 PM To: sqr-users@sqrug.org Subject: [sqr-users] How can I sneak a text file into a load-lookup? Hey Everyone, I need some help please. I have to use a text file with about 3k rows in it to exclude data from my final output in a report. This text file changes on a daily basis. A text file was thought to be the easiest way for the end users to add and remove names from the list. :( Normally, I would just loop through the data one row at a time comparing the two text fields to each other and setting a include flag based on the comparison. As you can already see though the time it takes to do this comparison is way too long. If I can somehow get this text file into a load-lookup I can do this comparison much faster. I was thinking that if I could build a query that uses a fake table like dual and trick the load-lookup into accepting it my life would be much easier.=20=20=20 =20 Notes: I cannot create tables or do any other changes that require admin rights. We use both oracle and sql server databases.=20 =20 Please HELP! Thanks Jason http://sqrhelpers.wordpress.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users The information contained in this e-mail and any attached documents may be privileged, confidential and protected from disclosure. If you are not the intended recipient you may not read, copy, distribute or use this information. If you have received this communication in error, please notify the sender immediately by replying to this message and then delete it from your system _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Feb 11 23:10:40 2010 Date: Thu, 11 Feb 2010 23:08:27 -0500 Subject: Re: [sqr-users] Running SQR from Windows From: Lakshaman katram Thanks Barry. On Wed, Feb 10, 2010 at 11:49 PM, Barry E. Cohen wrote: > Yes, I don't have the documentation in front of me, but there is a command > line flag for passing in variables. > I know that we do it for a few of our SQRs that are run this way. > > _____________________ > Barry E. Cohen > Senior Programmer Analyst > Univision HR and Financial Systems > > Office: 201-287-4287 > > Please consider the environment before printing this email > -----Original Message----- > From: sqr-users-bounces+bcohen=univision.net@sqrug.org [mailto: > sqr-users-bounces+bcohen =univision.net@ > sqrug.org] On Behalf Of Lakshaman katram > Sent: Tuesday, February 09, 2010 11:13 PM > To: This list is for discussion about the SQR database reporting language > from Hyperion Solutions. > Subject: Re: [sqr-users] Running SQR from Windows > > Thank you very much for your quick response. > So I can pass the values from access pages right. just like run control > values from peoplesoft pages. > > Thanks > Lakshman. > On Tue, Feb 9, 2010 at 9:24 AM, Barry E. Cohen > wrote: > > > From within your MS Access app call a .bat that starts sqrw... > > > > start /wait e:\xxx\xxx999\sqrbin\windows\sqrw e:\xxx\xxx999\sqr\emptblin > > %user%/%password%@dbname -XCB -Ie:\xxx\xxx999\folder\;e:\xxx\xxx999\sqr\ > > -Fe:\file_folder\out\ -Oe:\file_folder\out\emptblin.log > > -Me:\xxx\xxx999\sqr\allmaxes.max > > > > > > _____________________ > > Barry E. Cohen > > Senior Programmer Analyst > > Univision HR and Financial Systems > > > > Office: 201-287-4287 > > > > Please consider the environment before printing this email > > -----Original Message----- > > From: sqr-users-bounces+bcohen=univision.net@sqrug.org [mailto: > > sqr-users-bounces+bcohen =univision.net@ > > sqrug.org] On Behalf Of Lakshaman katram > > Sent: Monday, February 08, 2010 11:47 PM > > To: sqr-users@sqrug.org > > Subject: [sqr-users] Running SQR from Windows > > > > Hi, > > > > I guess I can run SQR report from MS Access. Have any one knows how to > all > > the run control parameters? > > My question is I can use MS access as a front end for SQR reports. Is > thst > > right? > > Instead of running the SQR from PS page I want to run it from MS Access. > > I have no idea how to pass all the runcontrol parametrs. > > Can any one help me? > > > > Thanks in advance. > > Lakshman > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > The information contained in this e-mail and any attached > > documents may be privileged, confidential and protected from > > disclosure. If you are not the intended recipient you may not > > read, copy, distribute or use this information. If you have > > received this communication in error, please notify the sender > > immediately by replying to this message and then delete it > > from your system > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > The information contained in this e-mail and any attached > documents may be privileged, confidential and protected from > disclosure. If you are not the intended recipient you may not > read, copy, distribute or use this information. If you have > received this communication in error, please notify the sender > immediately by replying to this message and then delete it > from your system > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Feb 12 12:40:06 2010 Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? Date: Fri, 12 Feb 2010 12:37:00 -0500 From: "Simon, Jason (MBS)" Hey Frank, I will be concatenating about 300 rows with about 22 characters into a sin= gle string that will consist of about 6600 characters. Then I would do an = instr function to check for the name returned from the database is in the c= oncatenated string. The number of rows could climb to as much as 800 rows = over times.=20 Thanks Jason -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:= sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of = franck.masson Sent: Thursday, February 11, 2010 4:37 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? you have=20 3000 lines with a string of 22 Characters or 3000 lines with a string of 6600 Char. ? > Message du 11/02/10 22:32 > De : "Simon, Jason (MBS)"=20 > A : "This list is for discussion about the SQR database reportinglanguage= from Hyperion Solutions."=20 > Copie =E0 :=20 > Objet : RE: [sqr-users] How can I sneak a text file into a load-lookup? > >=20 > The character string will probably be 6600 characters long. 300 names x a= n average of 22 characters.=20 >=20 > -----Original Message----- > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailt= o:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf O= f franck.masson > Sent: Thursday, February 11, 2010 4:19 PM > To: This list is for discussion about the SQR database reporting language= from Hyperion Solutions. > Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? >=20 > hi simon, >=20 > the option 1 was=20 > begin-select=20 > sss > ddd > do find_it > if ok > .... > end-if >=20 >=20 > the option 2 you have understood the principle > the benefice will depend of the size of each line within your text file >=20 > Franck, >=20 >=20 >=20 > > Message du 11/02/10 22:11 > > De : "Simon, Jason (MBS)"=20 > > A : "This list is for discussion about the SQR database reportinglangua= ge from Hyperion Solutions."=20 > > Copie =E0 :=20 > > Objet : RE: [sqr-users] How can I sneak a text file into a load-lookup? > > > >=20 > > Hey Leon, > > Thanks for your reply. I am going to ask the DBA's about adding temp ta= bles but they are very tight on who has access to create and drop tables in= the databases. Wish me luck.=20 > >=20 > > Thanks Frank, > > I do put the text file in an array. However, I have not put a loop in t= he SQL itself. Do you believe this will speed it up? I didn't think it woul= d make much difference since it would still be looping through the same num= ber of rows.=20 > >=20 > > Can you expand a little on your second idea? I am familiar with how to = concatenate a string but I am not sure I follow your thought. Are you sayin= g to do an instr on the one row which would be in the array thereby you onl= y have one line to compare instead of 3k? That is a novel idea I will have = to try that.=20 > >=20 > > Thanks > > Jason=20 > > http://sqrhelpers.wordpress.com/ > >=20 > > -----Original Message----- > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mai= lto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf= Of franck.masson > > Sent: Thursday, February 11, 2010 3:41 PM > > To: This list is for discussion about the SQR database reporting langua= gefrom Hyperion Solutions. > > Subject: Re: [sqr-users] How can I sneak a text file into a load-lookup? > >=20 > > Hi, > >=20 > > have you tried to load your text file in an array > > then for each line you retreive from the database loop through this arr= ay to know to use it or not. > >=20 > > another solution in the same way as above is to store the content of yo= ur file in an array > > where each line will be a concatenation of the multiple line of your te= xt file=20 > > my_array[1]=3D'$'||line1||'$'||line2||..... > >=20 > > Franck, > >=20 > >=20 > >=20 > > > Message du 11/02/10 21:22 > > > De : "Leon Shraibman"=20 > > > A : "This list is for discussion about the SQR database reporting lan= guage from Hyperion Solutions."=20 > > > Copie =E0 :=20 > > > Objet : Re: [sqr-users] How can I sneak a text file into a load-looku= p? > > > > > >=20 > > > Oops did not see notes. Create a temp table? > > >=20 > > > On Feb 11, 2010 2:46 PM, "Simon, Jason (MBS)" < > > > Jason.Simon@mortgagefamily.com> wrote: > > >=20 > > > Hey Everyone, > > >=20 > > > I need some help please. I have to use a text file with > > > about 3k rows in it to exclude data from my final output in a report. > > > This text file changes on a daily basis. A text file was thought to be > > > the easiest way for the end users to add and remove names from the li= st. > > > :( Normally, I would just loop through the data one row at a time > > > comparing the two text fields to each other and setting a include flag > > > based on the comparison. As you can already see though the time it > > > takes to do this comparison is way too long. If I can somehow get this > > > text file into a load-lookup I can do this comparison much faster. I > > > was thinking that if I could build a query that uses a fake table like > > > dual and trick the load-lookup into accepting it my life would be much > > > easier. > > >=20 > > >=20 > > >=20 > > > Notes: I cannot create tables or do any other changes that require > > > admin rights. We use both oracle and sql server databases. > > >=20 > > >=20 > > >=20 > > > Please HELP! > > >=20 > > > Thanks > > >=20 > > > Jason > > >=20 > > > http://sqrhelpers.wordpress.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 > >=20 > > Une messagerie gratuite, garantie =E0 vie et des services en plus, =E7a= vous tente ? > > Je cr=E9e ma bo=EEte mail www.laposte.net > >=20 > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > >=20 > >=20 > >=20 > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > >=20 > >=20 >=20 > Une messagerie gratuite, garantie =E0 vie et des services en plus, =E7a v= ous tente ? > Je cr=E9e ma bo=EEte mail www.laposte.net >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 >=20 Une messagerie gratuite, garantie =E0 vie et des services en plus, =E7a vou= s tente ? Je cr=E9e ma bo=EEte mail www.laposte.net _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Feb 12 12:59:07 2010 From: the dragon Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? Date: Fri, 12 Feb 2010 11:55:28 -0600 How are you concatenating the names? Because that might lead to false posi= tives... =20 peace, clark 'the dragon' willis =20 > Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? > Date: Fri, 12 Feb 2010 12:37:00 -0500 > From: Jason.Simon@mortgagefamily.com > To: sqr-users@sqrug.org >=20 > Hey Frank, > I will be concatenating about 300 rows with about 22 characters into a si= ngle string that will consist of about 6600 characters. Then I would do an = instr function to check for the name returned from the database is in the c= oncatenated string. The number of rows could climb to as much as 800 rows o= ver times.=20 >=20 > Thanks > Jason >=20 > -----Original Message----- > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailt= o:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf O= f franck.masson > Sent: Thursday, February 11, 2010 4:37 PM > To: This list is for discussion about the SQR database reporting language= from Hyperion Solutions. > Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? >=20 > you have=20 > 3000 lines with a string of 22 Characters > or > 3000 lines with a string of 6600 Char. ? >=20 >=20 >=20 > > Message du 11/02/10 22:32 > > De : "Simon, Jason (MBS)"=20 > > A : "This list is for discussion about the SQR database reportinglangua= ge from Hyperion Solutions."=20 > > Copie =E0 :=20 > > Objet : RE: [sqr-users] How can I sneak a text file into a load-lookup? > > > >=20 > > The character string will probably be 6600 characters long. 300 names x= an average of 22 characters.=20 > >=20 > > -----Original Message----- > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mai= lto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf= Of franck.masson > > Sent: Thursday, February 11, 2010 4:19 PM > > To: This list is for discussion about the SQR database reporting langua= gefrom Hyperion Solutions. > > Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? > >=20 > > hi simon, > >=20 > > the option 1 was=20 > > begin-select=20 > > sss > > ddd > > do find_it > > if ok > > .... > > end-if > >=20 > >=20 > > the option 2 you have understood the principle > > the benefice will depend of the size of each line within your text file > >=20 > > Franck, > >=20 > >=20 > >=20 > > > Message du 11/02/10 22:11 > > > De : "Simon, Jason (MBS)"=20 > > > A : "This list is for discussion about the SQR database reportinglang= uage from Hyperion Solutions."=20 > > > Copie =E0 :=20 > > > Objet : RE: [sqr-users] How can I sneak a text file into a load-looku= p? > > > > > >=20 > > > Hey Leon, > > > Thanks for your reply. I am going to ask the DBA's about adding temp = tables but they are very tight on who has access to create and drop tables = in the databases. Wish me luck.=20 > > >=20 > > > Thanks Frank, > > > I do put the text file in an array. However, I have not put a loop in= the SQL itself. Do you believe this will speed it up? I didn't think it wo= uld make much difference since it would still be looping through the same n= umber of rows.=20 > > >=20 > > > Can you expand a little on your second idea? I am familiar with how t= o concatenate a string but I am not sure I follow your thought. Are you say= ing to do an instr on the one row which would be in the array thereby you o= nly have one line to compare instead of 3k? That is a novel idea I will hav= e to try that.=20 > > >=20 > > > Thanks > > > Jason=20 > > > http://sqrhelpers.wordpress.com/ > > >=20 > > > -----Original Message----- > > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [m= ailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Beha= lf Of franck.masson > > > Sent: Thursday, February 11, 2010 3:41 PM > > > To: This list is for discussion about the SQR database reporting lang= uagefrom Hyperion Solutions. > > > Subject: Re: [sqr-users] How can I sneak a text file into a load-look= up? > > >=20 > > > Hi, > > >=20 > > > have you tried to load your text file in an array > > > then for each line you retreive from the database loop through this a= rray to know to use it or not. > > >=20 > > > another solution in the same way as above is to store the content of = your file in an array > > > where each line will be a concatenation of the multiple line of your = text file=20 > > > my_array[1]=3D'$'||line1||'$'||line2||..... > > >=20 > > > Franck, > > >=20 > > >=20 > > >=20 > > > > Message du 11/02/10 21:22 > > > > De : "Leon Shraibman"=20 > > > > A : "This list is for discussion about the SQR database reporting l= anguage from Hyperion Solutions."=20 > > > > Copie =E0 :=20 > > > > Objet : Re: [sqr-users] How can I sneak a text file into a load-loo= kup? > > > > > > > >=20 > > > > Oops did not see notes. Create a temp table? > > > >=20 > > > > On Feb 11, 2010 2:46 PM, "Simon, Jason (MBS)" < > > > > Jason.Simon@mortgagefamily.com> wrote: > > > >=20 > > > > Hey Everyone, > > > >=20 > > > > I need some help please. I have to use a text file with > > > > about 3k rows in it to exclude data from my final output in a repor= t. > > > > This text file changes on a daily basis. A text file was thought to= be > > > > the easiest way for the end users to add and remove names from the = list. > > > > :( Normally, I would just loop through the data one row at a time > > > > comparing the two text fields to each other and setting a include f= lag > > > > based on the comparison. As you can already see though the time it > > > > takes to do this comparison is way too long. If I can somehow get t= his > > > > text file into a load-lookup I can do this comparison much faster. I > > > > was thinking that if I could build a query that uses a fake table l= ike > > > > dual and trick the load-lookup into accepting it my life would be m= uch > > > > easier. > > > >=20 > > > >=20 > > > >=20 > > > > Notes: I cannot create tables or do any other changes that require > > > > admin rights. We use both oracle and sql server databases. > > > >=20 > > > >=20 > > > >=20 > > > > Please HELP! > > > >=20 > > > > Thanks > > > >=20 > > > > Jason > > > >=20 > > > > http://sqrhelpers.wordpress.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 > > >=20 > > > Une messagerie gratuite, garantie =E0 vie et des services en plus, = =E7a vous tente ? > > > Je cr=E9e ma bo=EEte mail www.laposte.net > > >=20 > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > >=20 > > >=20 > > >=20 > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > >=20 > > >=20 > >=20 > > Une messagerie gratuite, garantie =E0 vie et des services en plus, =E7a= vous tente ? > > Je cr=E9e ma bo=EEte mail www.laposte.net > >=20 > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > >=20 > >=20 > >=20 > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > >=20 > >=20 >=20 > Une messagerie gratuite, garantie =E0 vie et des services en plus, =E7a v= ous tente ? > Je cr=E9e ma bo=EEte mail www.laposte.net >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users =20=09=09=20=09=20=20=20=09=09=20=20 _________________________________________________________________ Hotmail: Free, trusted and rich email service. http://clk.atdmt.com/GBL/go/201469228/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Feb 12 13:03:08 2010 Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? Date: Fri, 12 Feb 2010 13:00:11 -0500 From: "Simon, Jason (MBS)" I was going to concatenate them together with a pipe or @ symbol at the beg= inning and end so that we wouldn't get a positive match across two names.= =20 -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:= sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of = the dragon Sent: Friday, February 12, 2010 12:55 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? How are you concatenating the names? Because that might lead to false posi= tives... =20 peace, clark 'the dragon' willis =20 > Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? > Date: Fri, 12 Feb 2010 12:37:00 -0500 > From: Jason.Simon@mortgagefamily.com > To: sqr-users@sqrug.org >=20 > Hey Frank, > I will be concatenating about 300 rows with about 22 characters into a si= ngle string that will consist of about 6600 characters. Then I would do an = instr function to check for the name returned from the database is in the c= oncatenated string. The number of rows could climb to as much as 800 rows o= ver times.=20 >=20 > Thanks > Jason >=20 > -----Original Message----- > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailt= o:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf O= f franck.masson > Sent: Thursday, February 11, 2010 4:37 PM > To: This list is for discussion about the SQR database reporting language= from Hyperion Solutions. > Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? >=20 > you have=20 > 3000 lines with a string of 22 Characters > or > 3000 lines with a string of 6600 Char. ? >=20 >=20 >=20 > > Message du 11/02/10 22:32 > > De : "Simon, Jason (MBS)"=20 > > A : "This list is for discussion about the SQR database reportinglangua= ge from Hyperion Solutions."=20 > > Copie =E0 :=20 > > Objet : RE: [sqr-users] How can I sneak a text file into a load-lookup? > > > >=20 > > The character string will probably be 6600 characters long. 300 names x= an average of 22 characters.=20 > >=20 > > -----Original Message----- > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mai= lto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf= Of franck.masson > > Sent: Thursday, February 11, 2010 4:19 PM > > To: This list is for discussion about the SQR database reporting langua= gefrom Hyperion Solutions. > > Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? > >=20 > > hi simon, > >=20 > > the option 1 was=20 > > begin-select=20 > > sss > > ddd > > do find_it > > if ok > > .... > > end-if > >=20 > >=20 > > the option 2 you have understood the principle > > the benefice will depend of the size of each line within your text file > >=20 > > Franck, > >=20 > >=20 > >=20 > > > Message du 11/02/10 22:11 > > > De : "Simon, Jason (MBS)"=20 > > > A : "This list is for discussion about the SQR database reportinglang= uage from Hyperion Solutions."=20 > > > Copie =E0 :=20 > > > Objet : RE: [sqr-users] How can I sneak a text file into a load-looku= p? > > > > > >=20 > > > Hey Leon, > > > Thanks for your reply. I am going to ask the DBA's about adding temp = tables but they are very tight on who has access to create and drop tables = in the databases. Wish me luck.=20 > > >=20 > > > Thanks Frank, > > > I do put the text file in an array. However, I have not put a loop in= the SQL itself. Do you believe this will speed it up? I didn't think it wo= uld make much difference since it would still be looping through the same n= umber of rows.=20 > > >=20 > > > Can you expand a little on your second idea? I am familiar with how t= o concatenate a string but I am not sure I follow your thought. Are you say= ing to do an instr on the one row which would be in the array thereby you o= nly have one line to compare instead of 3k? That is a novel idea I will hav= e to try that.=20 > > >=20 > > > Thanks > > > Jason=20 > > > http://sqrhelpers.wordpress.com/ > > >=20 > > > -----Original Message----- > > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [m= ailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Beha= lf Of franck.masson > > > Sent: Thursday, February 11, 2010 3:41 PM > > > To: This list is for discussion about the SQR database reporting lang= uagefrom Hyperion Solutions. > > > Subject: Re: [sqr-users] How can I sneak a text file into a load-look= up? > > >=20 > > > Hi, > > >=20 > > > have you tried to load your text file in an array > > > then for each line you retreive from the database loop through this a= rray to know to use it or not. > > >=20 > > > another solution in the same way as above is to store the content of = your file in an array > > > where each line will be a concatenation of the multiple line of your = text file=20 > > > my_array[1]=3D'$'||line1||'$'||line2||..... > > >=20 > > > Franck, > > >=20 > > >=20 > > >=20 > > > > Message du 11/02/10 21:22 > > > > De : "Leon Shraibman"=20 > > > > A : "This list is for discussion about the SQR database reporting l= anguage from Hyperion Solutions."=20 > > > > Copie =E0 :=20 > > > > Objet : Re: [sqr-users] How can I sneak a text file into a load-loo= kup? > > > > > > > >=20 > > > > Oops did not see notes. Create a temp table? > > > >=20 > > > > On Feb 11, 2010 2:46 PM, "Simon, Jason (MBS)" < > > > > Jason.Simon@mortgagefamily.com> wrote: > > > >=20 > > > > Hey Everyone, > > > >=20 > > > > I need some help please. I have to use a text file with > > > > about 3k rows in it to exclude data from my final output in a repor= t. > > > > This text file changes on a daily basis. A text file was thought to= be > > > > the easiest way for the end users to add and remove names from the = list. > > > > :( Normally, I would just loop through the data one row at a time > > > > comparing the two text fields to each other and setting a include f= lag > > > > based on the comparison. As you can already see though the time it > > > > takes to do this comparison is way too long. If I can somehow get t= his > > > > text file into a load-lookup I can do this comparison much faster. I > > > > was thinking that if I could build a query that uses a fake table l= ike > > > > dual and trick the load-lookup into accepting it my life would be m= uch > > > > easier. > > > >=20 > > > >=20 > > > >=20 > > > > Notes: I cannot create tables or do any other changes that require > > > > admin rights. We use both oracle and sql server databases. > > > >=20 > > > >=20 > > > >=20 > > > > Please HELP! > > > >=20 > > > > Thanks > > > >=20 > > > > Jason > > > >=20 > > > > http://sqrhelpers.wordpress.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 > > >=20 > > > Une messagerie gratuite, garantie =E0 vie et des services en plus, = =E7a vous tente ? > > > Je cr=E9e ma bo=EEte mail www.laposte.net > > >=20 > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > >=20 > > >=20 > > >=20 > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > >=20 > > >=20 > >=20 > > Une messagerie gratuite, garantie =E0 vie et des services en plus, =E7a= vous tente ? > > Je cr=E9e ma bo=EEte mail www.laposte.net > >=20 > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > >=20 > >=20 > >=20 > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > >=20 > >=20 >=20 > Une messagerie gratuite, garantie =E0 vie et des services en plus, =E7a v= ous tente ? > Je cr=E9e ma bo=EEte mail www.laposte.net >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users =20=09=09=20=09=20=20=20=09=09=20=20 _________________________________________________________________ Hotmail: Free, trusted and rich email service. http://clk.atdmt.com/GBL/go/201469228/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Feb 15 11:33:32 2010 Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? Date: Mon, 15 Feb 2010 11:30:26 -0500 From: "Simon, Jason (MBS)" Hey All, Thanks for everyones input so far. I have am now able to create temp table= s on our SQL Server but am running into an error when I try to call the loa= d-lookup. I think it has to do with Temp tables needing the hash # prefix = on them. :( Below is the load lookup command and the error production repo= rting studio 931 is generating.=20 load-lookup name=3DCheckExclude table=3D#temp_Exclude key=3DField_1 return_value=3DField2 rows=3D10 (SQR 1303) Error in SQL (perhaps missing &name after expression): SELECT DISTINCT Field_1, Field2 FROM ? (SQR 1304) Check SELECT columns, expressions and 'where' clause for syntax. SQR: Program Aborting. Thanks Again! Jason -----Original Message----- From: Simon, Jason (MBS)=20 Sent: Friday, February 12, 2010 1:00 PM To: 'This list is for discussion about the SQR database reportinglanguage f= rom Hyperion Solutions.' Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? I was going to concatenate them together with a pipe or @ symbol at the beg= inning and end so that we wouldn't get a positive match across two names.= =20 -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:= sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of = the dragon Sent: Friday, February 12, 2010 12:55 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? How are you concatenating the names? Because that might lead to false posi= tives... =20 peace, clark 'the dragon' willis =20 > Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? > Date: Fri, 12 Feb 2010 12:37:00 -0500 > From: Jason.Simon@mortgagefamily.com > To: sqr-users@sqrug.org >=20 > Hey Frank, > I will be concatenating about 300 rows with about 22 characters into a si= ngle string that will consist of about 6600 characters. Then I would do an = instr function to check for the name returned from the database is in the c= oncatenated string. The number of rows could climb to as much as 800 rows o= ver times.=20 >=20 > Thanks > Jason >=20 > -----Original Message----- > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailt= o:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf O= f franck.masson > Sent: Thursday, February 11, 2010 4:37 PM > To: This list is for discussion about the SQR database reporting language= from Hyperion Solutions. > Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? >=20 > you have=20 > 3000 lines with a string of 22 Characters > or > 3000 lines with a string of 6600 Char. ? >=20 >=20 >=20 > > Message du 11/02/10 22:32 > > De : "Simon, Jason (MBS)"=20 > > A : "This list is for discussion about the SQR database reportinglangua= ge from Hyperion Solutions."=20 > > Copie =E0 :=20 > > Objet : RE: [sqr-users] How can I sneak a text file into a load-lookup? > > > >=20 > > The character string will probably be 6600 characters long. 300 names x= an average of 22 characters.=20 > >=20 > > -----Original Message----- > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mai= lto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf= Of franck.masson > > Sent: Thursday, February 11, 2010 4:19 PM > > To: This list is for discussion about the SQR database reporting langua= gefrom Hyperion Solutions. > > Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? > >=20 > > hi simon, > >=20 > > the option 1 was=20 > > begin-select=20 > > sss > > ddd > > do find_it > > if ok > > .... > > end-if > >=20 > >=20 > > the option 2 you have understood the principle > > the benefice will depend of the size of each line within your text file > >=20 > > Franck, > >=20 > >=20 > >=20 > > > Message du 11/02/10 22:11 > > > De : "Simon, Jason (MBS)"=20 > > > A : "This list is for discussion about the SQR database reportinglang= uage from Hyperion Solutions."=20 > > > Copie =E0 :=20 > > > Objet : RE: [sqr-users] How can I sneak a text file into a load-looku= p? > > > > > >=20 > > > Hey Leon, > > > Thanks for your reply. I am going to ask the DBA's about adding temp = tables but they are very tight on who has access to create and drop tables = in the databases. Wish me luck.=20 > > >=20 > > > Thanks Frank, > > > I do put the text file in an array. However, I have not put a loop in= the SQL itself. Do you believe this will speed it up? I didn't think it wo= uld make much difference since it would still be looping through the same n= umber of rows.=20 > > >=20 > > > Can you expand a little on your second idea? I am familiar with how t= o concatenate a string but I am not sure I follow your thought. Are you say= ing to do an instr on the one row which would be in the array thereby you o= nly have one line to compare instead of 3k? That is a novel idea I will hav= e to try that.=20 > > >=20 > > > Thanks > > > Jason=20 > > > http://sqrhelpers.wordpress.com/ > > >=20 > > > -----Original Message----- > > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [m= ailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Beha= lf Of franck.masson > > > Sent: Thursday, February 11, 2010 3:41 PM > > > To: This list is for discussion about the SQR database reporting lang= uagefrom Hyperion Solutions. > > > Subject: Re: [sqr-users] How can I sneak a text file into a load-look= up? > > >=20 > > > Hi, > > >=20 > > > have you tried to load your text file in an array > > > then for each line you retreive from the database loop through this a= rray to know to use it or not. > > >=20 > > > another solution in the same way as above is to store the content of = your file in an array > > > where each line will be a concatenation of the multiple line of your = text file=20 > > > my_array[1]=3D'$'||line1||'$'||line2||..... > > >=20 > > > Franck, > > >=20 > > >=20 > > >=20 > > > > Message du 11/02/10 21:22 > > > > De : "Leon Shraibman"=20 > > > > A : "This list is for discussion about the SQR database reporting l= anguage from Hyperion Solutions."=20 > > > > Copie =E0 :=20 > > > > Objet : Re: [sqr-users] How can I sneak a text file into a load-loo= kup? > > > > > > > >=20 > > > > Oops did not see notes. Create a temp table? > > > >=20 > > > > On Feb 11, 2010 2:46 PM, "Simon, Jason (MBS)" < > > > > Jason.Simon@mortgagefamily.com> wrote: > > > >=20 > > > > Hey Everyone, > > > >=20 > > > > I need some help please. I have to use a text file with > > > > about 3k rows in it to exclude data from my final output in a repor= t. > > > > This text file changes on a daily basis. A text file was thought to= be > > > > the easiest way for the end users to add and remove names from the = list. > > > > :( Normally, I would just loop through the data one row at a time > > > > comparing the two text fields to each other and setting a include f= lag > > > > based on the comparison. As you can already see though the time it > > > > takes to do this comparison is way too long. If I can somehow get t= his > > > > text file into a load-lookup I can do this comparison much faster. I > > > > was thinking that if I could build a query that uses a fake table l= ike > > > > dual and trick the load-lookup into accepting it my life would be m= uch > > > > easier. > > > >=20 > > > >=20 > > > >=20 > > > > Notes: I cannot create tables or do any other changes that require > > > > admin rights. We use both oracle and sql server databases. > > > >=20 > > > >=20 > > > >=20 > > > > Please HELP! > > > >=20 > > > > Thanks > > > >=20 > > > > Jason > > > >=20 > > > > http://sqrhelpers.wordpress.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 > > >=20 > > > Une messagerie gratuite, garantie =E0 vie et des services en plus, = =E7a vous tente ? > > > Je cr=E9e ma bo=EEte mail www.laposte.net > > >=20 > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > >=20 > > >=20 > > >=20 > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > >=20 > > >=20 > >=20 > > Une messagerie gratuite, garantie =E0 vie et des services en plus, =E7a= vous tente ? > > Je cr=E9e ma bo=EEte mail www.laposte.net > >=20 > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > >=20 > >=20 > >=20 > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > >=20 > >=20 >=20 > Une messagerie gratuite, garantie =E0 vie et des services en plus, =E7a v= ous tente ? > Je cr=E9e ma bo=EEte mail www.laposte.net >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users =20=09=09=20=09=20=20=20=09=09=20=20 _________________________________________________________________ Hotmail: Free, trusted and rich email service. http://clk.atdmt.com/GBL/go/201469228/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Feb 15 16:44:37 2010 Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? Date: Mon, 15 Feb 2010 16:41:25 -0500 From: "Simon, Jason (MBS)" Hey All, Okay so I am about to throw this computer out the window! I have solved a= ll but one of my issues fixed. I can create and delete a table as well as = populate that table with the data from a text file we'll call this text tab= le. This new text table is not in the same database that I am pulling my d= ataset from so I need to load the table we'll call this data table. So now = I am trying to load my text table into a load-lookup which should be simple= enough but it is giving me an error now, grrr. When I was working with th= e DBA's he asked for my sql and then gave me rights to create this table in= the tempdb. Now I can drop it and create it without any problems as well a= s load data and query against the table. But when I try to load the data in= to a load-lookup I get the errors below. I have tried many different ways = of naming the table, doing a select statement in the table spot creating al= ias and calling the fields using the alias but all fail. I am thinking thi= s has to do with the table being in the tempdb but am not sure. I know I c= an probably use the concatenate solution frank suggested but I would really= like to understand what I am doing wrong so that I can do this correct.=20 Thanks for any help or direction provided.=20 jason MAKE TABLE SQL begin-sql CREATE TABLE tempload (Field_1 CHAR(140) NOT NULL, Field2 CHAR(140) NOT NULL ) end-sql=20 LOAD-LOOKUP COMMAND load-lookup name=3DCheckUsers table=3Dtempload key=3DField_1 return_value=3DField2 Rows=3D3 where=3D'(NOT Field_1 IS NULL)' Sort=3DSI ERRORS GENERATED SQR 5528) ODBC SQL dbsql: SQLPrepare error 208 in cursor 14: [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'temp= load'. (SQR 5528) ODBC SQL dbsql: SQLPrepare error 8180 in cursor 14: [Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could not be= prepared. SQL: SELECT DISTINCT Field_1, Field2 FROM tempload WHERE (NOT Field_1 IS NU= LL) Error on line 1714: (SQR 2605) Cannot compile SQL for LOAD-LOOKUP table 'checkusers'. Errors were found in the program file. SQR: Program Aborting. -----Original Message----- From: Simon, Jason (MBS)=20 Sent: Monday, February 15, 2010 11:30 AM To: Simon, Jason (MBS); 'This list is for discussion about the SQR database= reportinglanguage from Hyperion Solutions.' Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? Hey All, Thanks for everyones input so far. I have am now able to create temp table= s on our SQL Server but am running into an error when I try to call the loa= d-lookup. I think it has to do with Temp tables needing the hash # prefix = on them. :( Below is the load lookup command and the error production repo= rting studio 931 is generating.=20 load-lookup name=3DCheckExclude table=3D#temp_Exclude key=3DField_1 return_value=3DField2 rows=3D10 (SQR 1303) Error in SQL (perhaps missing &name after expression): SELECT DISTINCT Field_1, Field2 FROM ? (SQR 1304) Check SELECT columns, expressions and 'where' clause for syntax. SQR: Program Aborting. Thanks Again! Jason -----Original Message----- From: Simon, Jason (MBS)=20 Sent: Friday, February 12, 2010 1:00 PM To: 'This list is for discussion about the SQR database reportinglanguage f= rom Hyperion Solutions.' Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? I was going to concatenate them together with a pipe or @ symbol at the beg= inning and end so that we wouldn't get a positive match across two names.= =20 -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:= sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of = the dragon Sent: Friday, February 12, 2010 12:55 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? How are you concatenating the names? Because that might lead to false posi= tives... =20 peace, clark 'the dragon' willis =20 > Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? > Date: Fri, 12 Feb 2010 12:37:00 -0500 > From: Jason.Simon@mortgagefamily.com > To: sqr-users@sqrug.org >=20 > Hey Frank, > I will be concatenating about 300 rows with about 22 characters into a si= ngle string that will consist of about 6600 characters. Then I would do an = instr function to check for the name returned from the database is in the c= oncatenated string. The number of rows could climb to as much as 800 rows o= ver times.=20 >=20 > Thanks > Jason >=20 > -----Original Message----- > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailt= o:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf O= f franck.masson > Sent: Thursday, February 11, 2010 4:37 PM > To: This list is for discussion about the SQR database reporting language= from Hyperion Solutions. > Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? >=20 > you have=20 > 3000 lines with a string of 22 Characters > or > 3000 lines with a string of 6600 Char. ? >=20 >=20 >=20 > > Message du 11/02/10 22:32 > > De : "Simon, Jason (MBS)"=20 > > A : "This list is for discussion about the SQR database reportinglangua= ge from Hyperion Solutions."=20 > > Copie =E0 :=20 > > Objet : RE: [sqr-users] How can I sneak a text file into a load-lookup? > > > >=20 > > The character string will probably be 6600 characters long. 300 names x= an average of 22 characters.=20 > >=20 > > -----Original Message----- > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mai= lto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf= Of franck.masson > > Sent: Thursday, February 11, 2010 4:19 PM > > To: This list is for discussion about the SQR database reporting langua= gefrom Hyperion Solutions. > > Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? > >=20 > > hi simon, > >=20 > > the option 1 was=20 > > begin-select=20 > > sss > > ddd > > do find_it > > if ok > > .... > > end-if > >=20 > >=20 > > the option 2 you have understood the principle > > the benefice will depend of the size of each line within your text file > >=20 > > Franck, > >=20 > >=20 > >=20 > > > Message du 11/02/10 22:11 > > > De : "Simon, Jason (MBS)"=20 > > > A : "This list is for discussion about the SQR database reportinglang= uage from Hyperion Solutions."=20 > > > Copie =E0 :=20 > > > Objet : RE: [sqr-users] How can I sneak a text file into a load-looku= p? > > > > > >=20 > > > Hey Leon, > > > Thanks for your reply. I am going to ask the DBA's about adding temp = tables but they are very tight on who has access to create and drop tables = in the databases. Wish me luck.=20 > > >=20 > > > Thanks Frank, > > > I do put the text file in an array. However, I have not put a loop in= the SQL itself. Do you believe this will speed it up? I didn't think it wo= uld make much difference since it would still be looping through the same n= umber of rows.=20 > > >=20 > > > Can you expand a little on your second idea? I am familiar with how t= o concatenate a string but I am not sure I follow your thought. Are you say= ing to do an instr on the one row which would be in the array thereby you o= nly have one line to compare instead of 3k? That is a novel idea I will hav= e to try that.=20 > > >=20 > > > Thanks > > > Jason=20 > > > http://sqrhelpers.wordpress.com/ > > >=20 > > > -----Original Message----- > > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [m= ailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Beha= lf Of franck.masson > > > Sent: Thursday, February 11, 2010 3:41 PM > > > To: This list is for discussion about the SQR database reporting lang= uagefrom Hyperion Solutions. > > > Subject: Re: [sqr-users] How can I sneak a text file into a load-look= up? > > >=20 > > > Hi, > > >=20 > > > have you tried to load your text file in an array > > > then for each line you retreive from the database loop through this a= rray to know to use it or not. > > >=20 > > > another solution in the same way as above is to store the content of = your file in an array > > > where each line will be a concatenation of the multiple line of your = text file=20 > > > my_array[1]=3D'$'||line1||'$'||line2||..... > > >=20 > > > Franck, > > >=20 > > >=20 > > >=20 > > > > Message du 11/02/10 21:22 > > > > De : "Leon Shraibman"=20 > > > > A : "This list is for discussion about the SQR database reporting l= anguage from Hyperion Solutions."=20 > > > > Copie =E0 :=20 > > > > Objet : Re: [sqr-users] How can I sneak a text file into a load-loo= kup? > > > > > > > >=20 > > > > Oops did not see notes. Create a temp table? > > > >=20 > > > > On Feb 11, 2010 2:46 PM, "Simon, Jason (MBS)" < > > > > Jason.Simon@mortgagefamily.com> wrote: > > > >=20 > > > > Hey Everyone, > > > >=20 > > > > I need some help please. I have to use a text file with > > > > about 3k rows in it to exclude data from my final output in a repor= t. > > > > This text file changes on a daily basis. A text file was thought to= be > > > > the easiest way for the end users to add and remove names from the = list. > > > > :( Normally, I would just loop through the data one row at a time > > > > comparing the two text fields to each other and setting a include f= lag > > > > based on the comparison. As you can already see though the time it > > > > takes to do this comparison is way too long. If I can somehow get t= his > > > > text file into a load-lookup I can do this comparison much faster. I > > > > was thinking that if I could build a query that uses a fake table l= ike > > > > dual and trick the load-lookup into accepting it my life would be m= uch > > > > easier. > > > >=20 > > > >=20 > > > >=20 > > > > Notes: I cannot create tables or do any other changes that require > > > > admin rights. We use both oracle and sql server databases. > > > >=20 > > > >=20 > > > >=20 > > > > Please HELP! > > > >=20 > > > > Thanks > > > >=20 > > > > Jason > > > >=20 > > > > http://sqrhelpers.wordpress.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 > > >=20 > > > Une messagerie gratuite, garantie =E0 vie et des services en plus, = =E7a vous tente ? > > > Je cr=E9e ma bo=EEte mail www.laposte.net > > >=20 > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > >=20 > > >=20 > > >=20 > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > >=20 > > >=20 > >=20 > > Une messagerie gratuite, garantie =E0 vie et des services en plus, =E7a= vous tente ? > > Je cr=E9e ma bo=EEte mail www.laposte.net > >=20 > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > >=20 > >=20 > >=20 > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > >=20 > >=20 >=20 > Une messagerie gratuite, garantie =E0 vie et des services en plus, =E7a v= ous tente ? > Je cr=E9e ma bo=EEte mail www.laposte.net >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users =20=09=09=20=09=20=20=20=09=09=20=20 _________________________________________________________________ Hotmail: Free, trusted and rich email service. http://clk.atdmt.com/GBL/go/201469228/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Feb 15 17:00:35 2010 Date: Mon, 15 Feb 2010 16:57:18 -0500 Subject: Re: [sqr-users] How can I sneak a text file into a load-lookup? From: Don Mellen Top 'o the head. Are you doing the load-lookup in the body of the program? If it's in the "Begin-Setup", the table won't exist when it tries to "load" the array. Are you sure the "load-lookup" gets called *after* you've created the table? On Mon, Feb 15, 2010 at 4:41 PM, Simon, Jason (MBS) < Jason.Simon@mortgagefamily.com> wrote: > Hey All, > Okay so I am about to throw this computer out the window! I have > solved all but one of my issues fixed. I can create and delete a table as > well as populate that table with the data from a text file we'll call this > text table. This new text table is not in the same database that I am > pulling my dataset from so I need to load the table we'll call this data > table. So now I am trying to load my text table into a load-lookup which > should be simple enough but it is giving me an error now, grrr. When I w= as > working with the DBA's he asked for my sql and then gave me rights to cre= ate > this table in the tempdb. Now I can drop it and create it without any > problems as well as load data and query against the table. But when I try= to > load the data into a load-lookup I get the errors below. I have tried ma= ny > different ways of naming the table, doing a select statement in the table > spot creating alias and calling the fields using the alias but all fail. = I > am thinking this has to do with the table being in the tempdb but am not > sure. I know I can probably use the concatenate solution frank suggested > but I would really like to understand what I am doing wrong so that I can= do > this correct. > > Thanks for any help or direction provided. > jason > > MAKE TABLE SQL > begin-sql > CREATE TABLE tempload > (Field_1 CHAR(140) NOT NULL, > Field2 CHAR(140) NOT NULL > ) > end-sql > > > > LOAD-LOOKUP COMMAND > load-lookup > name=3DCheckUsers > table=3Dtempload > key=3DField_1 > return_value=3DField2 > Rows=3D3 > where=3D'(NOT Field_1 IS NULL)' > Sort=3DSI > > > > ERRORS GENERATED > SQR 5528) ODBC SQL dbsql: SQLPrepare error 208 in cursor 14: > [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name > 'tempload'. > (SQR 5528) ODBC SQL dbsql: SQLPrepare error 8180 in cursor 14: > [Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could not be > prepared. > > SQL: SELECT DISTINCT Field_1, Field2 FROM tempload WHERE (NOT Field_1 IS > NULL) > > Error on line 1714: > (SQR 2605) Cannot compile SQL for LOAD-LOOKUP table 'checkusers'. > > Errors were found in the program file. > > SQR: Program Aborting. > > > > > > > > > -----Original Message----- > From: Simon, Jason (MBS) > Sent: Monday, February 15, 2010 11:30 AM > To: Simon, Jason (MBS); 'This list is for discussion about the SQR databa= se > reportinglanguage from Hyperion Solutions.' > Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? > > Hey All, > Thanks for everyones input so far. I have am now able to create te= mp > tables on our SQL Server but am running into an error when I try to call = the > load-lookup. I think it has to do with Temp tables needing the hash # > prefix on them. :( Below is the load lookup command and the error > production reporting studio 931 is generating. > > > > load-lookup > name=3DCheckExclude > table=3D#temp_Exclude > key=3DField_1 > return_value=3DField2 > rows=3D10 > > > (SQR 1303) Error in SQL (perhaps missing &name after expression): > SELECT DISTINCT Field_1, Field2 FROM ? > (SQR 1304) Check SELECT columns, expressions and 'where' clause for synta= x. > > SQR: Program Aborting. > > > Thanks Again! > Jason > > > -----Original Message----- > From: Simon, Jason (MBS) > Sent: Friday, February 12, 2010 1:00 PM > To: 'This list is for discussion about the SQR database reportinglanguage > from Hyperion Solutions.' > Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? > > I was going to concatenate them together with a pipe or @ symbol at the > beginning and end so that we wouldn't get a positive match across two nam= es. > > -----Original Message----- > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailt= o: > sqr-users-bounces+jason.simon =3D > mortgagefamily.com@sqrug.org] On Behalf Of the dragon > Sent: Friday, February 12, 2010 12:55 PM > To: sqr-users@sqrug.org > Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? > > > How are you concatenating the names? Because that might lead to false > positives... > > > > peace, > > clark 'the dragon' willis > > > > > > Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? > > Date: Fri, 12 Feb 2010 12:37:00 -0500 > > From: Jason.Simon@mortgagefamily.com > > To: sqr-users@sqrug.org > > > > Hey Frank, > > I will be concatenating about 300 rows with about 22 characters into a > single string that will consist of about 6600 characters. Then I would do= an > instr function to check for the name returned from the database is in the > concatenated string. The number of rows could climb to as much as 800 rows > over times. > > > > Thanks > > Jason > > > > -----Original Message----- > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org[mail= to: > sqr-users-bounces+jason.simon =3D > mortgagefamily.com@sqrug.org] On Behalf Of franck.masson > > Sent: Thursday, February 11, 2010 4:37 PM > > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > > Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? > > > > you have > > 3000 lines with a string of 22 Characters > > or > > 3000 lines with a string of 6600 Char. ? > > > > > > > > > Message du 11/02/10 22:32 > > > De : "Simon, Jason (MBS)" > > > A : "This list is for discussion about the SQR database > reportinglanguage from Hyperion Solutions." > > > Copie =E0 : > > > Objet : RE: [sqr-users] How can I sneak a text file into a load-looku= p? > > > > > > > > > The character string will probably be 6600 characters long. 300 names= x > an average of 22 characters. > > > > > > -----Original Message----- > > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org[ma= ilto: > sqr-users-bounces+jason.simon =3D > mortgagefamily.com@sqrug.org] On Behalf Of franck.masson > > > Sent: Thursday, February 11, 2010 4:19 PM > > > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > > > Subject: RE: [sqr-users] How can I sneak a text file into a > load-lookup? > > > > > > hi simon, > > > > > > the option 1 was > > > begin-select > > > sss > > > ddd > > > do find_it > > > if ok > > > .... > > > end-if > > > > > > > > > the option 2 you have understood the principle > > > the benefice will depend of the size of each line within your text fi= le > > > > > > Franck, > > > > > > > > > > > > > Message du 11/02/10 22:11 > > > > De : "Simon, Jason (MBS)" > > > > A : "This list is for discussion about the SQR database > reportinglanguage from Hyperion Solutions." > > > > Copie =E0 : > > > > Objet : RE: [sqr-users] How can I sneak a text file into a > load-lookup? > > > > > > > > > > > > Hey Leon, > > > > Thanks for your reply. I am going to ask the DBA's about adding temp > tables but they are very tight on who has access to create and drop tables > in the databases. Wish me luck. > > > > > > > > Thanks Frank, > > > > I do put the text file in an array. However, I have not put a loop = in > the SQL itself. Do you believe this will speed it up? I didn't think it > would make much difference since it would still be looping through the sa= me > number of rows. > > > > > > > > Can you expand a little on your second idea? I am familiar with how > to concatenate a string but I am not sure I follow your thought. Are you > saying to do an instr on the one row which would be in the array thereby = you > only have one line to compare instead of 3k? That is a novel idea I will > have to try that. > > > > > > > > Thanks > > > > Jason > > > > http://sqrhelpers.wordpress.com/ > > > > > > > > -----Original Message----- > > > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org[= mailto: > sqr-users-bounces+jason.simon =3D > mortgagefamily.com@sqrug.org] On Behalf Of franck.masson > > > > Sent: Thursday, February 11, 2010 3:41 PM > > > > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > > > > Subject: Re: [sqr-users] How can I sneak a text file into a > load-lookup? > > > > > > > > Hi, > > > > > > > > have you tried to load your text file in an array > > > > then for each line you retreive from the database loop through this > array to know to use it or not. > > > > > > > > another solution in the same way as above is to store the content of > your file in an array > > > > where each line will be a concatenation of the multiple line of your > text file > > > > my_array[1]=3D'$'||line1||'$'||line2||..... > > > > > > > > Franck, > > > > > > > > > > > > > > > > > Message du 11/02/10 21:22 > > > > > De : "Leon Shraibman" > > > > > A : "This list is for discussion about the SQR database reporting > language from Hyperion Solutions." > > > > > Copie =E0 : > > > > > Objet : Re: [sqr-users] How can I sneak a text file into a > load-lookup? > > > > > > > > > > > > > > > Oops did not see notes. Create a temp table? > > > > > > > > > > On Feb 11, 2010 2:46 PM, "Simon, Jason (MBS)" < > > > > > Jason.Simon@mortgagefamily.com> wrote: > > > > > > > > > > Hey Everyone, > > > > > > > > > > I need some help please. I have to use a text file with > > > > > about 3k rows in it to exclude data from my final output in a > report. > > > > > This text file changes on a daily basis. A text file was thought = to > be > > > > > the easiest way for the end users to add and remove names from the > list. > > > > > :( Normally, I would just loop through the data one row at a time > > > > > comparing the two text fields to each other and setting a include > flag > > > > > based on the comparison. As you can already see though the time it > > > > > takes to do this comparison is way too long. If I can somehow get > this > > > > > text file into a load-lookup I can do this comparison much faster. > I > > > > > was thinking that if I could build a query that uses a fake table > like > > > > > dual and trick the load-lookup into accepting it my life would be > much > > > > > easier. > > > > > > > > > > > > > > > > > > > > Notes: I cannot create tables or do any other changes that require > > > > > admin rights. We use both oracle and sql server databases. > > > > > > > > > > > > > > > > > > > > Please HELP! > > > > > > > > > > Thanks > > > > > > > > > > Jason > > > > > > > > > > http://sqrhelpers.wordpress.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 > > > > > > > > > > > > > > > > > > Une messagerie gratuite, garantie =E0 vie et des services en plus, = =E7a > vous tente ? > > > > Je cr=E9e ma bo=EEte mail www.laposte.net > > > > > > > > _______________________________________________ > > > > sqr-users mailing list > > > > sqr-users@sqrug.org > > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > > > > > > > _______________________________________________ > > > > sqr-users mailing list > > > > sqr-users@sqrug.org > > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > > > > > Une messagerie gratuite, garantie =E0 vie et des services en plus, = =E7a > vous tente ? > > > Je cr=E9e ma bo=EEte mail www.laposte.net > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > Une messagerie gratuite, garantie =E0 vie et des services en plus, =E7a= vous > tente ? > > Je cr=E9e ma bo=EEte mail www.laposte.net > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > _________________________________________________________________ > Hotmail: Free, trusted and rich email service. > http://clk.atdmt.com/GBL/go/201469228/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 > --=20 ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" (Terry Pratchett) _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Feb 15 17:04:23 2010 From: the dragon Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? Date: Mon, 15 Feb 2010 16:01:34 -0600 Just a thought - but it looks like you're over engineering here. If you ca= n create the table and load the table, you should be able to select from it= in your sqr - thus eliminating the need for a look up - sure it's faster t= hat way, but if the table is small, or indexed, it shouldn't be that much s= lower than a look up, My philosophy is always KISS... =20 Do you need to "dot" the schema onto the front of the table name? =20 Not field_1 is null? field_1 is not null ?? =20 peace, clark 'the dragon' willis =20 > Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? > Date: Mon, 15 Feb 2010 16:41:25 -0500 > From: Jason.Simon@mortgagefamily.com > To: Jason.Simon@mortgagefamily.com; sqr-users@sqrug.org >=20 > Hey All, > Okay so I am about to throw this computer out the window! I have solved a= ll but one of my issues fixed. I can create and delete a table as well as p= opulate that table with the data from a text file we'll call this text tabl= e. This new text table is not in the same database that I am pulling my dat= aset from so I need to load the table we'll call this data table. So now I = am trying to load my text table into a load-lookup which should be simple e= nough but it is giving me an error now, grrr. When I was working with the D= BA's he asked for my sql and then gave me rights to create this table in th= e tempdb. Now I can drop it and create it without any problems as well as l= oad data and query against the table. But when I try to load the data into = a load-lookup I get the errors below. I have tried many different ways of n= aming the table, doing a select statement in the table spot creating alias = and calling the fields using the alias but all fail. I am thinking this has= to do with the table being in the tempdb but am not sure. I know I can pro= bably use the concatenate solution frank suggested but I would really like = to understand what I am doing wrong so that I can do this correct.=20 >=20 > Thanks for any help or direction provided.=20 > jason >=20 > MAKE TABLE SQL > begin-sql > CREATE TABLE tempload > (Field_1 CHAR(140) NOT NULL, > Field2 CHAR(140) NOT NULL > ) > end-sql=20 >=20 >=20 >=20 > LOAD-LOOKUP COMMAND > load-lookup > name=3DCheckUsers > table=3Dtempload > key=3DField_1 > return_value=3DField2 > Rows=3D3 > where=3D'(NOT Field_1 IS NULL)' > Sort=3DSI >=20 >=20 >=20 > ERRORS GENERATED > SQR 5528) ODBC SQL dbsql: SQLPrepare error 208 in cursor 14: > [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'templ= oad'. > (SQR 5528) ODBC SQL dbsql: SQLPrepare error 8180 in cursor 14: > [Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could not be = prepared. >=20 > SQL: SELECT DISTINCT Field_1, Field2 FROM tempload WHERE (NOT Field_1 IS = NULL) >=20 > Error on line 1714: > (SQR 2605) Cannot compile SQL for LOAD-LOOKUP table 'checkusers'. >=20 > Errors were found in the program file. >=20 > SQR: Program Aborting. >=20 >=20 >=20 > -----Original Message----- >=20 > Hey All, > Thanks for everyones input so far. I have am now able to create temp tabl= es on our SQL Server but am running into an error when I try to call the lo= ad-lookup. I think it has to do with Temp tables needing the hash # prefix = on them. :( Below is the load lookup command and the error production repor= ting studio 931 is generating.=20 >=20 >=20 >=20 > load-lookup > name=3DCheckExclude > table=3D#temp_Exclude > key=3DField_1 > return_value=3DField2 > rows=3D10 >=20 >=20 > (SQR 1303) Error in SQL (perhaps missing &name after expression): > SELECT DISTINCT Field_1, Field2 FROM ? > (SQR 1304) Check SELECT columns, expressions and 'where' clause for synta= x. >=20 > SQR: Program Aborting. >=20 >=20 > Thanks Again! > Jason >=20 >=20 > -----Original Message----- >=20 > I was going to concatenate them together with a pipe or @ symbol at the b= eginning and end so that we wouldn't get a positive match across two names.= =20 >=20 > -----Original Message----- >=20 >=20 > How are you concatenating the names? Because that might lead to false pos= itives... >=20 > peace, >=20 > clark 'the dragon' willis >=20 >=20 >=20 >=20 > >=20 > > Hey Frank, > > I will be concatenating about 300 rows with about 22 characters into a = single string that will consist of about 6600 characters. Then I would do a= n instr function to check for the name returned from the database is in the= concatenated string. The number of rows could climb to as much as 800 rows= over times.=20 > >=20 > > Thanks > > Jason > >=20 > > -----Original Message----- > >=20 > > you have=20 > > 3000 lines with a string of 22 Characters > > or > > 3000 lines with a string of 6600 Char. ? > >=20 > >=20 > >=20 > > > Message du 11/02/10 22:32 > > > De : "Simon, Jason (MBS)"=20 > > > A : "This list is for discussion about the SQR database reportinglang= uage from Hyperion Solutions."=20 > > > Copie =E0 :=20 > > > Objet : RE: [sqr-users] How can I sneak a text file into a load-looku= p? > > > > > >=20 > > > The character string will probably be 6600 characters long. 300 names= x an average of 22 characters.=20 > > >=20 > > > -----Original Message----- > > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [m= ailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Beha= lf Of franck.masson > > > Sent: Thursday, February 11, 2010 4:19 PM > > > To: This list is for discussion about the SQR database reporting lang= uagefrom Hyperion Solutions. > > > Subject: RE: [sqr-users] How can I sneak a text file into a load-look= up? > > >=20 > > > hi simon, > > >=20 > > > the option 1 was=20 > > > begin-select=20 > > > sss > > > ddd > > > do find_it > > > if ok > > > .... > > > end-if > > >=20 > > >=20 > > > the option 2 you have understood the principle > > > the benefice will depend of the size of each line within your text fi= le > > >=20 > > > Franck, > > >=20 > > >=20 > > >=20 > > > > Message du 11/02/10 22:11 > > > > De : "Simon, Jason (MBS)"=20 > > > > A : "This list is for discussion about the SQR database reportingla= nguage from Hyperion Solutions."=20 > > > > Copie =E0 :=20 > > > > Objet : RE: [sqr-users] How can I sneak a text file into a load-loo= kup? > > > > > > > >=20 > > > > Hey Leon, > > > > Thanks for your reply. I am going to ask the DBA's about adding tem= p tables but they are very tight on who has access to create and drop table= s in the databases. Wish me luck.=20 > > > >=20 > > > > Thanks Frank, > > > > I do put the text file in an array. However, I have not put a loop = in the SQL itself. Do you believe this will speed it up? I didn't think it = would make much difference since it would still be looping through the same= number of rows.=20 > > > >=20 > > > > Can you expand a little on your second idea? I am familiar with how= to concatenate a string but I am not sure I follow your thought. Are you s= aying to do an instr on the one row which would be in the array thereby you= only have one line to compare instead of 3k? That is a novel idea I will h= ave to try that.=20 > > > >=20 > > > > Thanks > > > > Jason=20 > > > > http://sqrhelpers.wordpress.com/ > > > >=20 > > > > -----Original Message----- > > > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org = [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Be= half Of franck.masson > > > > Sent: Thursday, February 11, 2010 3:41 PM > > > > To: This list is for discussion about the SQR database reporting la= nguagefrom Hyperion Solutions. > > > > Subject: Re: [sqr-users] How can I sneak a text file into a load-lo= okup? > > > >=20 > > > > Hi, > > > >=20 > > > > have you tried to load your text file in an array > > > > then for each line you retreive from the database loop through this= array to know to use it or not. > > > >=20 > > > > another solution in the same way as above is to store the content o= f your file in an array > > > > where each line will be a concatenation of the multiple line of you= r text file=20 > > > > my_array[1]=3D'$'||line1||'$'||line2||..... > > > >=20 > > > > Franck, > > > >=20 > > > >=20 > > > >=20 > > > > > Message du 11/02/10 21:22 > > > > > De : "Leon Shraibman"=20 > > > > > A : "This list is for discussion about the SQR database reporting= language from Hyperion Solutions."=20 > > > > > Copie =E0 :=20 > > > > > Objet : Re: [sqr-users] How can I sneak a text file into a load-l= ookup? > > > > > > > > > >=20 > > > > > Oops did not see notes. Create a temp table? > > > > >=20 > > > > > On Feb 11, 2010 2:46 PM, "Simon, Jason (MBS)" < > > > > > Jason.Simon@mortgagefamily.com> wrote: > > > > >=20 > > > > > Hey Everyone, > > > > >=20 > > > > > I need some help please. I have to use a text file with > > > > > about 3k rows in it to exclude data from my final output in a rep= ort. > > > > > This text file changes on a daily basis. A text file was thought = to be > > > > > the easiest way for the end users to add and remove names from th= e list. > > > > > :( Normally, I would just loop through the data one row at a time > > > > > comparing the two text fields to each other and setting a include= flag > > > > > based on the comparison. As you can already see though the time it > > > > > takes to do this comparison is way too long. If I can somehow get= this > > > > > text file into a load-lookup I can do this comparison much faster= . I > > > > > was thinking that if I could build a query that uses a fake table= like > > > > > dual and trick the load-lookup into accepting it my life would be= much > > > > > easier. > > > > >=20 > > > > >=20 > > > > >=20 > > > > > Notes: I cannot create tables or do any other changes that require > > > > > admin rights. We use both oracle and sql server databases. > > > > >=20 > > > > >=20 > > > > >=20 > > > > > Please HELP! > > > > >=20 > > > > > Thanks > > > > >=20 > > > > > Jason > > > > >=20 > > > > > http://sqrhelpers.wordpress.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 > > > >=20 > > > > Une messagerie gratuite, garantie =E0 vie et des services en plus, = =E7a vous tente ? > > > > Je cr=E9e ma bo=EEte mail www.laposte.net > > > >=20 > > > > _______________________________________________ > > > > sqr-users mailing list > > > > sqr-users@sqrug.org > > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > >=20 > > > >=20 > > > >=20 > > > > _______________________________________________ > > > > sqr-users mailing list > > > > sqr-users@sqrug.org > > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > >=20 > > > >=20 > > >=20 > > > Une messagerie gratuite, garantie =E0 vie et des services en plus, = =E7a vous tente ? > > > Je cr=E9e ma bo=EEte mail www.laposte.net > > >=20 > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > >=20 > > >=20 > > >=20 > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > >=20 > > >=20 > >=20 > > Une messagerie gratuite, garantie =E0 vie et des services en plus, =E7a= vous tente ? > > Je cr=E9e ma bo=EEte mail www.laposte.net > >=20 > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > >=20 > >=20 > >=20 > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 > _________________________________________________________________ > Hotmail: Free, trusted and rich email service. > http://clk.atdmt.com/GBL/go/201469228/direct/01/ >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users =20=09=09=20=09=20=20=20=09=09=20=20 _________________________________________________________________ Hotmail: Free, trusted and rich email service. http://clk.atdmt.com/GBL/go/201469228/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Feb 15 20:18:26 2010 Date: Mon, 15 Feb 2010 20:15:45 -0500 Subject: Re: RE: [sqr-users] How can I sneak a text file into a load-lookup? From: Leon Shraibman I did a benchmark test comparing lookup vs select. My main table has around 400k records. My lookup has about 20k records. Using lookup I "shaved" off 15 min On Feb 15, 2010 5:05 PM, "the dragon" wrote: Just a thought - but it looks like you're over engineering here. If you can create the table and load the table, you should be able to select from it in your sqr - thus eliminating the need for a look up - sure it's faster that way, but if the table is small, or indexed, it shouldn't be that much slower than a look up, My philosophy is always KISS... Do you need to "dot" the schema onto the front of the table name? Not field_1 is null? field_1 is not null ?? peace, clark 'the dragon' willis > Subject: RE: [sqr-users] How can I sneak a text file int... > Date: Mon, 15 Feb 2010 16:41:25 -0500 > From: Jason.Simon@mortgagefamily.com > To: Jason.Simon@mortgagefamily.com; sqr-users@sqrug.org > > Hey All, > Okay so I am about to throw this computer out the window! I have solved all but one ... > Hey All, > Thanks for everyones input so far. I have am now able to create temp tables on our SQL ... > I was going to concatenate them together with a pipe or @ symbol at the beginning and end so that ... > How are you concatenating the names? Because that might lead to false positives... > > peace, > ... > > Hey Frank, > > I will be concatenating about 300 rows with about 22 characters into a single str... > > you have > > 3000 lines with a string of 22 Characters > > or > > 3000 lines with a string of 6... _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Feb 16 08:24:20 2010 Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? Date: Tue, 16 Feb 2010 08:19:35 -0500 From: "Simon, Jason (MBS)" Thanks Don. I create the table in a procedure in the body then later in th= e same procedure I query the new table and print the results then still in = the same procedure I do a load-lookup.=20 =20 ________________________________ From: Don Mellen [mailto:donm@ontko.com]=20 Sent: Monday, February 15, 2010 4:57 PM To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Cc: Simon, Jason (MBS) Subject: Re: [sqr-users] How can I sneak a text file into a load-lookup? =20 Top 'o the head. =20 Are you doing the load-lookup in the body of the program? If it's in the "Begin-Setup", the table won't exist when it tries to "load"= the array. =20 Are you sure the "load-lookup" gets called *after* you've created the table? On Mon, Feb 15, 2010 at 4:41 PM, Simon, Jason (MBS) wrote: Hey All, Okay so I am about to throw this computer out the window! I have so= lved all but one of my issues fixed. I can create and delete a table as we= ll as populate that table with the data from a text file we'll call this te= xt table. This new text table is not in the same database that I am pullin= g my dataset from so I need to load the table we'll call this data table. S= o now I am trying to load my text table into a load-lookup which should be = simple enough but it is giving me an error now, grrr. When I was working w= ith the DBA's he asked for my sql and then gave me rights to create this ta= ble in the tempdb. Now I can drop it and create it without any problems as = well as load data and query against the table. But when I try to load the d= ata into a load-lookup I get the errors below. I have tried many different= ways of naming the table, doing a select statement in the table spot creat= ing alias and calling the fields using the alias but all fail. I am thinki= ng this has to do with the table being in the tempdb but am not sure. I kn= ow I can probably use the concatenate solution frank suggested but I would = really like to understand what I am doing wrong so that I can do this corre= ct. Thanks for any help or direction provided. jason MAKE TABLE SQL begin-sql CREATE TABLE tempload (Field_1 CHAR(140) NOT NULL, Field2 CHAR(140) NOT NULL ) end-sql LOAD-LOOKUP COMMAND load-lookup name=3DCheckUsers table=3Dtempload key=3DField_1 return_value=3DField2 Rows=3D3 where=3D'(NOT Field_1 IS NULL)' Sort=3DSI ERRORS GENERATED SQR 5528) ODBC SQL dbsql: SQLPrepare error 208 in cursor 14: [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'templ= oad'. (SQR 5528) ODBC SQL dbsql: SQLPrepare error 8180 in cursor 14: [Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could not be = prepared. SQL: SELECT DISTINCT Field_1, Field2 FROM tempload WHERE (NOT Field_1 IS NU= LL) Error on line 1714: (SQR 2605) Cannot compile SQL for LOAD-LOOKUP table 'checkusers'. Errors were found in the program file. SQR: Program Aborting. -----Original Message----- From: Simon, Jason (MBS) Sent: Monday, February 15, 2010 11:30 AM To: Simon, Jason (MBS); 'This list is for discussion about the SQR database= reportinglanguage from Hyperion Solutions.' Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? Hey All, Thanks for everyones input so far. I have am now able to create temp= tables on our SQL Server but am running into an error when I try to call t= he load-lookup. I think it has to do with Temp tables needing the hash # p= refix on them. :( Below is the load lookup command and the error productio= n reporting studio 931 is generating. load-lookup name=3DCheckExclude table=3D#temp_Exclude key=3DField_1 return_value=3DField2 rows=3D10 (SQR 1303) Error in SQL (perhaps missing &name after expression): SELECT DISTINCT Field_1, Field2 FROM ? (SQR 1304) Check SELECT columns, expressions and 'where' clause for syntax. SQR: Program Aborting. Thanks Again! Jason -----Original Message----- From: Simon, Jason (MBS) Sent: Friday, February 12, 2010 1:00 PM To: 'This list is for discussion about the SQR database reportinglanguage f= rom Hyperion Solutions.' Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? I was going to concatenate them together with a pipe or @ symbol at the beg= inning and end so that we wouldn't get a positive match across two names. -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:= sqr-users-bounces+jason.simon =3Dm= ortgagefamily.com@sqrug.org] On Behalf Of the dragon Sent: Friday, February 12, 2010 12:55 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? How are you concatenating the names? Because that might lead to false posi= tives... peace, clark 'the dragon' willis > Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? > Date: Fri, 12 Feb 2010 12:37:00 -0500 > From: Jason.Simon@mortgagefamily.com > To: sqr-users@sqrug.org > > Hey Frank, > I will be concatenating about 300 rows with about 22 characters into a si= ngle string that will consist of about 6600 characters. Then I would do an = instr function to check for the name returned from the database is in the c= oncatenated string. The number of rows could climb to as much as 800 rows o= ver times. > > Thanks > Jason > > -----Original Message----- > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailt= o:sqr-users-bounces+jason.simon = =3Dmortgagefamily.com@sqrug.org] On Behalf Of franck.masson > Sent: Thursday, February 11, 2010 4:37 PM > To: This list is for discussion about the SQR database reporting language= from Hyperion Solutions. > Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? > > you have > 3000 lines with a string of 22 Characters > or > 3000 lines with a string of 6600 Char. ? > > > > > Message du 11/02/10 22:32 > > De : "Simon, Jason (MBS)" > > A : "This list is for discussion about the SQR database reportinglangua= ge from Hyperion Solutions." > > Copie =E0 : > > Objet : RE: [sqr-users] How can I sneak a text file into a load-lookup? > > > > > > The character string will probably be 6600 characters long. 300 names x= an average of 22 characters. > > > > -----Original Message----- > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mai= lto:sqr-users-bounces+jason.simon = =3Dmortgagefamily.com@sqrug.org] On Behalf Of franck.masson > > Sent: Thursday, February 11, 2010 4:19 PM > > To: This list is for discussion about the SQR database reporting langua= gefrom Hyperion Solutions. > > Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? > > > > hi simon, > > > > the option 1 was > > begin-select > > sss > > ddd > > do find_it > > if ok > > .... > > end-if > > > > > > the option 2 you have understood the principle > > the benefice will depend of the size of each line within your text file > > > > Franck, > > > > > > > > > Message du 11/02/10 22:11 > > > De : "Simon, Jason (MBS)" > > > A : "This list is for discussion about the SQR database reportinglang= uage from Hyperion Solutions." > > > Copie =E0 : > > > Objet : RE: [sqr-users] How can I sneak a text file into a load-looku= p? > > > > > > > > > Hey Leon, > > > Thanks for your reply. I am going to ask the DBA's about adding temp = tables but they are very tight on who has access to create and drop tables = in the databases. Wish me luck. > > > > > > Thanks Frank, > > > I do put the text file in an array. However, I have not put a loop in= the SQL itself. Do you believe this will speed it up? I didn't think it wo= uld make much difference since it would still be looping through the same n= umber of rows. > > > > > > Can you expand a little on your second idea? I am familiar with how t= o concatenate a string but I am not sure I follow your thought. Are you say= ing to do an instr on the one row which would be in the array thereby you o= nly have one line to compare instead of 3k? That is a novel idea I will hav= e to try that. > > > > > > Thanks > > > Jason > > > http://sqrhelpers.wordpress.com/ > > > > > > -----Original Message----- > > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [m= ailto:sqr-users-bounces+jason.simon =3Dmortgagefamily.com@sqrug.org] On Behalf Of franck.masson > > > Sent: Thursday, February 11, 2010 3:41 PM > > > To: This list is for discussion about the SQR database reporting lang= uagefrom Hyperion Solutions. > > > Subject: Re: [sqr-users] How can I sneak a text file into a load-look= up? > > > > > > Hi, > > > > > > have you tried to load your text file in an array > > > then for each line you retreive from the database loop through this a= rray to know to use it or not. > > > > > > another solution in the same way as above is to store the content of = your file in an array > > > where each line will be a concatenation of the multiple line of your = text file > > > my_array[1]=3D'$'||line1||'$'||line2||..... > > > > > > Franck, > > > > > > > > > > > > > Message du 11/02/10 21:22 > > > > De : "Leon Shraibman" > > > > A : "This list is for discussion about the SQR database reporting l= anguage from Hyperion Solutions." > > > > Copie =E0 : > > > > Objet : Re: [sqr-users] How can I sneak a text file into a load-loo= kup? > > > > > > > > > > > > Oops did not see notes. Create a temp table? > > > > > > > > On Feb 11, 2010 2:46 PM, "Simon, Jason (MBS)" < > > > > Jason.Simon@mortgagefamily.com> wrote: > > > > > > > > Hey Everyone, > > > > > > > > I need some help please. I have to use a text file with > > > > about 3k rows in it to exclude data from my final output in a repor= t. > > > > This text file changes on a daily basis. A text file was thought to= be > > > > the easiest way for the end users to add and remove names from the = list. > > > > :( Normally, I would just loop through the data one row at a time > > > > comparing the two text fields to each other and setting a include f= lag > > > > based on the comparison. As you can already see though the time it > > > > takes to do this comparison is way too long. If I can somehow get t= his > > > > text file into a load-lookup I can do this comparison much faster. I > > > > was thinking that if I could build a query that uses a fake table l= ike > > > > dual and trick the load-lookup into accepting it my life would be m= uch > > > > easier. > > > > > > > > > > > > > > > > Notes: I cannot create tables or do any other changes that require > > > > admin rights. We use both oracle and sql server databases. > > > > > > > > > > > > > > > > Please HELP! > > > > > > > > Thanks > > > > > > > > Jason > > > > > > > > http://sqrhelpers.wordpress.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 > > > > > > > > > > > > > > Une messagerie gratuite, garantie =E0 vie et des services en plus, = =E7a vous tente ? > > > Je cr=E9e ma bo=EEte mail www.laposte.net > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > Une messagerie gratuite, garantie =E0 vie et des services en plus, =E7a= vous tente ? > > Je cr=E9e ma bo=EEte mail www.laposte.net > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > Une messagerie gratuite, garantie =E0 vie et des services en plus, =E7a v= ous tente ? > Je cr=E9e ma bo=EEte mail www.laposte.net > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Hotmail: Free, trusted and rich email service. http://clk.atdmt.com/GBL/go/201469228/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 --=20 ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" (T= erry Pratchett) _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Feb 16 08:29:14 2010 Subject: RE: RE: [sqr-users] How can I sneak a text file into a load-lookup? Date: Tue, 16 Feb 2010 08:23:46 -0500 From: "Simon, Jason (MBS)" Thanks Leon! The I would just join the two tables if I could but the DBAs will not let me create a table in the reporting database so I am having to create it in another less critical database. The first being an oracle database and the second that I am trying to create my load lookup in is an MS SQL database. I have also tried using the schema dot table name and that does not seem to work either. :( Thanks for your help! -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of Leon Shraibman Sent: Monday, February 15, 2010 8:16 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: RE: [sqr-users] How can I sneak a text file into a load-lookup? I did a benchmark test comparing lookup vs select. My main table has around 400k records. My lookup has about 20k records. Using lookup I "shaved" off 15 min On Feb 15, 2010 5:05 PM, "the dragon" wrote: Just a thought - but it looks like you're over engineering here. If you can create the table and load the table, you should be able to select from it in your sqr - thus eliminating the need for a look up - sure it's faster that way, but if the table is small, or indexed, it shouldn't be that much slower than a look up, My philosophy is always KISS... Do you need to "dot" the schema onto the front of the table name? Not field_1 is null? field_1 is not null ?? peace, clark 'the dragon' willis > Subject: RE: [sqr-users] How can I sneak a text file int... > Date: Mon, 15 Feb 2010 16:41:25 -0500 > From: Jason.Simon@mortgagefamily.com > To: Jason.Simon@mortgagefamily.com; sqr-users@sqrug.org > > Hey All, > Okay so I am about to throw this computer out the window! I have solved all but one ... > Hey All, > Thanks for everyones input so far. I have am now able to create temp tables on our SQL ... > I was going to concatenate them together with a pipe or @ symbol at the beginning and end so that ... > How are you concatenating the names? Because that might lead to false positives... > > peace, > ... > > Hey Frank, > > I will be concatenating about 300 rows with about 22 characters into a single str... > > you have > > 3000 lines with a string of 22 Characters > > or > > 3000 lines with a string of 6... _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Feb 16 09:09:46 2010 From: the dragon Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? Date: Tue, 16 Feb 2010 08:06:04 -0600 How are you running the program now, and how will you be running it in the = future? If this is a PS application, and you'll be running against the DB = from within the application, then you'll be running as the schema owner and= the DBAs can't keep you from creating a temp table. But there is a politi= cal downside of that. =20 peace, clark 'the dragon' willis =20 > Subject: RE: RE: [sqr-users] How can I sneak a text file into a load-look= up? > Date: Tue, 16 Feb 2010 08:23:46 -0500 > From: Jason.Simon@mortgagefamily.com > To: sqr-users@sqrug.org >=20 > Thanks Leon! The I would just join the two tables if I could but the > DBAs will not let me create a table in the reporting database so I am > having to create it in another less critical database. The first being > an oracle database and the second that I am trying to create my load > lookup in is an MS SQL database. I have also tried using the schema dot > table name and that does not seem to work either. :( >=20 > Thanks for your help! >=20 >=20 >=20 > -----Original Message----- >=20 > I did a benchmark test comparing lookup vs select. My main table has > around > 400k records. My lookup has about 20k records. Using lookup I "shaved" > off > 15 min >=20 > On Feb 15, 2010 5:05 PM, "the dragon" wrote: >=20 >=20 > Just a thought - but it looks like you're over engineering here. If you > can > create the table and load the table, you should be able to select from > it in > your sqr - thus eliminating the need for a look up - sure it's faster > that > way, but if the table is small, or indexed, it shouldn't be that much > slower > than a look up, My philosophy is always KISS... >=20 >=20 >=20 > Do you need to "dot" the schema onto the front of the table name? >=20 >=20 >=20 > Not field_1 is null? field_1 is not null ?? >=20 >=20 >=20 >=20 > peace, >=20 > clark 'the dragon' willis >=20 >=20 >=20 >=20=09=09=20=09=20=20=20=09=09=20=20 _________________________________________________________________ Hotmail: Trusted email with Microsoft=92s powerful SPAM protection. http://clk.atdmt.com/GBL/go/201469226/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Feb 16 09:15:05 2010 Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? Date: Tue, 16 Feb 2010 09:02:18 -0500 From: "Simon, Jason (MBS)" I just did a test and I can load another table in the database fine. It is = just the table I recently dropped and then recreated that I cannot do a loa= d lookup on. I am going to get with the dba to see what is different betwee= n this table and the table I am able to do a load lookup on.=20=20 -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:= sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of = Simon, Jason (MBS) Sent: Tuesday, February 16, 2010 8:20 AM To: Don Mellen; This list is for discussion about the SQR database reportin= g languagefrom Hyperion Solutions. Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? Thanks Don. I create the table in a procedure in the body then later in th= e same procedure I query the new table and print the results then still in = the same procedure I do a load-lookup.=20 =20 ________________________________ From: Don Mellen [mailto:donm@ontko.com]=20 Sent: Monday, February 15, 2010 4:57 PM To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Cc: Simon, Jason (MBS) Subject: Re: [sqr-users] How can I sneak a text file into a load-lookup? =20 Top 'o the head. =20 Are you doing the load-lookup in the body of the program? If it's in the "Begin-Setup", the table won't exist when it tries to "load"= the array. =20 Are you sure the "load-lookup" gets called *after* you've created the table? On Mon, Feb 15, 2010 at 4:41 PM, Simon, Jason (MBS) wrote: Hey All, Okay so I am about to throw this computer out the window! I have so= lved all but one of my issues fixed. I can create and delete a table as we= ll as populate that table with the data from a text file we'll call this te= xt table. This new text table is not in the same database that I am pullin= g my dataset from so I need to load the table we'll call this data table. S= o now I am trying to load my text table into a load-lookup which should be = simple enough but it is giving me an error now, grrr. When I was working w= ith the DBA's he asked for my sql and then gave me rights to create this ta= ble in the tempdb. Now I can drop it and create it without any problems as = well as load data and query against the table. But when I try to load the d= ata into a load-lookup I get the errors below. I have tried many different= ways of naming the table, doing a select statement in the table spot creat= ing alias and calling the fields using the alias but all fail. I am thinki= ng this has to do with the table being in the tempdb but am not sure. I kn= ow I can probably use the concatenate solution frank suggested but I would = really like to understand what I am doing wrong so that I can do this corre= ct. Thanks for any help or direction provided. jason MAKE TABLE SQL begin-sql CREATE TABLE tempload (Field_1 CHAR(140) NOT NULL, Field2 CHAR(140) NOT NULL ) end-sql LOAD-LOOKUP COMMAND load-lookup name=3DCheckUsers table=3Dtempload key=3DField_1 return_value=3DField2 Rows=3D3 where=3D'(NOT Field_1 IS NULL)' Sort=3DSI ERRORS GENERATED SQR 5528) ODBC SQL dbsql: SQLPrepare error 208 in cursor 14: [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'templ= oad'. (SQR 5528) ODBC SQL dbsql: SQLPrepare error 8180 in cursor 14: [Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could not be = prepared. SQL: SELECT DISTINCT Field_1, Field2 FROM tempload WHERE (NOT Field_1 IS NU= LL) Error on line 1714: (SQR 2605) Cannot compile SQL for LOAD-LOOKUP table 'checkusers'. Errors were found in the program file. SQR: Program Aborting. -----Original Message----- From: Simon, Jason (MBS) Sent: Monday, February 15, 2010 11:30 AM To: Simon, Jason (MBS); 'This list is for discussion about the SQR database= reportinglanguage from Hyperion Solutions.' Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? Hey All, Thanks for everyones input so far. I have am now able to create temp= tables on our SQL Server but am running into an error when I try to call t= he load-lookup. I think it has to do with Temp tables needing the hash # p= refix on them. :( Below is the load lookup command and the error productio= n reporting studio 931 is generating. load-lookup name=3DCheckExclude table=3D#temp_Exclude key=3DField_1 return_value=3DField2 rows=3D10 (SQR 1303) Error in SQL (perhaps missing &name after expression): SELECT DISTINCT Field_1, Field2 FROM ? (SQR 1304) Check SELECT columns, expressions and 'where' clause for syntax. SQR: Program Aborting. Thanks Again! Jason -----Original Message----- From: Simon, Jason (MBS) Sent: Friday, February 12, 2010 1:00 PM To: 'This list is for discussion about the SQR database reportinglanguage f= rom Hyperion Solutions.' Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? I was going to concatenate them together with a pipe or @ symbol at the beg= inning and end so that we wouldn't get a positive match across two names. -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:= sqr-users-bounces+jason.simon =3Dm= ortgagefamily.com@sqrug.org] On Behalf Of the dragon Sent: Friday, February 12, 2010 12:55 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? How are you concatenating the names? Because that might lead to false posi= tives... peace, clark 'the dragon' willis > Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? > Date: Fri, 12 Feb 2010 12:37:00 -0500 > From: Jason.Simon@mortgagefamily.com > To: sqr-users@sqrug.org > > Hey Frank, > I will be concatenating about 300 rows with about 22 characters into a si= ngle string that will consist of about 6600 characters. Then I would do an = instr function to check for the name returned from the database is in the c= oncatenated string. The number of rows could climb to as much as 800 rows o= ver times. > > Thanks > Jason > > -----Original Message----- > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailt= o:sqr-users-bounces+jason.simon = =3Dmortgagefamily.com@sqrug.org] On Behalf Of franck.masson > Sent: Thursday, February 11, 2010 4:37 PM > To: This list is for discussion about the SQR database reporting language= from Hyperion Solutions. > Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? > > you have > 3000 lines with a string of 22 Characters > or > 3000 lines with a string of 6600 Char. ? > > > > > Message du 11/02/10 22:32 > > De : "Simon, Jason (MBS)" > > A : "This list is for discussion about the SQR database reportinglangua= ge from Hyperion Solutions." > > Copie =E0 : > > Objet : RE: [sqr-users] How can I sneak a text file into a load-lookup? > > > > > > The character string will probably be 6600 characters long. 300 names x= an average of 22 characters. > > > > -----Original Message----- > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mai= lto:sqr-users-bounces+jason.simon = =3Dmortgagefamily.com@sqrug.org] On Behalf Of franck.masson > > Sent: Thursday, February 11, 2010 4:19 PM > > To: This list is for discussion about the SQR database reporting langua= gefrom Hyperion Solutions. > > Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? > > > > hi simon, > > > > the option 1 was > > begin-select > > sss > > ddd > > do find_it > > if ok > > .... > > end-if > > > > > > the option 2 you have understood the principle > > the benefice will depend of the size of each line within your text file > > > > Franck, > > > > > > > > > Message du 11/02/10 22:11 > > > De : "Simon, Jason (MBS)" > > > A : "This list is for discussion about the SQR database reportinglang= uage from Hyperion Solutions." > > > Copie =E0 : > > > Objet : RE: [sqr-users] How can I sneak a text file into a load-looku= p? > > > > > > > > > Hey Leon, > > > Thanks for your reply. I am going to ask the DBA's about adding temp = tables but they are very tight on who has access to create and drop tables = in the databases. Wish me luck. > > > > > > Thanks Frank, > > > I do put the text file in an array. However, I have not put a loop in= the SQL itself. Do you believe this will speed it up? I didn't think it wo= uld make much difference since it would still be looping through the same n= umber of rows. > > > > > > Can you expand a little on your second idea? I am familiar with how t= o concatenate a string but I am not sure I follow your thought. Are you say= ing to do an instr on the one row which would be in the array thereby you o= nly have one line to compare instead of 3k? That is a novel idea I will hav= e to try that. > > > > > > Thanks > > > Jason > > > http://sqrhelpers.wordpress.com/ > > > > > > -----Original Message----- > > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [m= ailto:sqr-users-bounces+jason.simon =3Dmortgagefamily.com@sqrug.org] On Behalf Of franck.masson > > > Sent: Thursday, February 11, 2010 3:41 PM > > > To: This list is for discussion about the SQR database reporting lang= uagefrom Hyperion Solutions. > > > Subject: Re: [sqr-users] How can I sneak a text file into a load-look= up? > > > > > > Hi, > > > > > > have you tried to load your text file in an array > > > then for each line you retreive from the database loop through this a= rray to know to use it or not. > > > > > > another solution in the same way as above is to store the content of = your file in an array > > > where each line will be a concatenation of the multiple line of your = text file > > > my_array[1]=3D'$'||line1||'$'||line2||..... > > > > > > Franck, > > > > > > > > > > > > > Message du 11/02/10 21:22 > > > > De : "Leon Shraibman" > > > > A : "This list is for discussion about the SQR database reporting l= anguage from Hyperion Solutions." > > > > Copie =E0 : > > > > Objet : Re: [sqr-users] How can I sneak a text file into a load-loo= kup? > > > > > > > > > > > > Oops did not see notes. Create a temp table? > > > > > > > > On Feb 11, 2010 2:46 PM, "Simon, Jason (MBS)" < > > > > Jason.Simon@mortgagefamily.com> wrote: > > > > > > > > Hey Everyone, > > > > > > > > I need some help please. I have to use a text file with > > > > about 3k rows in it to exclude data from my final output in a repor= t. > > > > This text file changes on a daily basis. A text file was thought to= be > > > > the easiest way for the end users to add and remove names from the = list. > > > > :( Normally, I would just loop through the data one row at a time > > > > comparing the two text fields to each other and setting a include f= lag > > > > based on the comparison. As you can already see though the time it > > > > takes to do this comparison is way too long. If I can somehow get t= his > > > > text file into a load-lookup I can do this comparison much faster. I > > > > was thinking that if I could build a query that uses a fake table l= ike > > > > dual and trick the load-lookup into accepting it my life would be m= uch > > > > easier. > > > > > > > > > > > > > > > > Notes: I cannot create tables or do any other changes that require > > > > admin rights. We use both oracle and sql server databases. > > > > > > > > > > > > > > > > Please HELP! > > > > > > > > Thanks > > > > > > > > Jason > > > > > > > > http://sqrhelpers.wordpress.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 > > > > > > > > > > > > > > Une messagerie gratuite, garantie =E0 vie et des services en plus, = =E7a vous tente ? > > > Je cr=E9e ma bo=EEte mail www.laposte.net > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > Une messagerie gratuite, garantie =E0 vie et des services en plus, =E7a= vous tente ? > > Je cr=E9e ma bo=EEte mail www.laposte.net > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > Une messagerie gratuite, garantie =E0 vie et des services en plus, =E7a v= ous tente ? > Je cr=E9e ma bo=EEte mail www.laposte.net > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Hotmail: Free, trusted and rich email service. http://clk.atdmt.com/GBL/go/201469228/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 --=20 ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" (T= erry Pratchett) _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Feb 16 09:19:55 2010 Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? Date: Tue, 16 Feb 2010 09:12:43 -0500 From: "Simon, Jason (MBS)" This is production reporting 931 that is packaged with the Hyperion suite. We are not using it in conjunction with PS. We schedule it using the standard workspace scheduler that provides access rights less than the owner. :( What is weird is that I can load another table just fine just not the table I created.=20 Thanks again Jason=20 -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of the dragon Sent: Tuesday, February 16, 2010 9:06 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? How are you running the program now, and how will you be running it in the future? If this is a PS application, and you'll be running against the DB from within the application, then you'll be running as the schema owner and the DBAs can't keep you from creating a temp table. But there is a political downside of that. =20 peace, clark 'the dragon' willis =20 > Subject: RE: RE: [sqr-users] How can I sneak a text file into a load-lookup? > Date: Tue, 16 Feb 2010 08:23:46 -0500 > From: Jason.Simon@mortgagefamily.com > To: sqr-users@sqrug.org >=20 > Thanks Leon! The I would just join the two tables if I could but the > DBAs will not let me create a table in the reporting database so I am > having to create it in another less critical database. The first being > an oracle database and the second that I am trying to create my load > lookup in is an MS SQL database. I have also tried using the schema dot > table name and that does not seem to work either. :( >=20 > Thanks for your help! >=20 >=20 >=20 > -----Original Message----- >=20 > I did a benchmark test comparing lookup vs select. My main table has > around > 400k records. My lookup has about 20k records. Using lookup I "shaved" > off > 15 min >=20 > On Feb 15, 2010 5:05 PM, "the dragon" wrote: >=20 >=20 > Just a thought - but it looks like you're over engineering here. If you > can > create the table and load the table, you should be able to select from > it in > your sqr - thus eliminating the need for a look up - sure it's faster > that > way, but if the table is small, or indexed, it shouldn't be that much > slower > than a look up, My philosophy is always KISS... >=20 >=20 >=20 > Do you need to "dot" the schema onto the front of the table name? >=20 >=20 >=20 > Not field_1 is null? field_1 is not null ?? >=20 >=20 >=20 >=20 > peace, >=20 > clark 'the dragon' willis >=20 >=20 >=20 >=20=09=09=20=09=20=20=20=09=09=20=20 _________________________________________________________________ Hotmail: Trusted email with Microsoft's powerful SPAM protection. http://clk.atdmt.com/GBL/go/201469226/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Feb 16 10:32:42 2010 From: Ed Kelly Date: Tue, 16 Feb 2010 15:29:56 +0000 Subject: [sqr-users] How can I sneak a text file into a load-lookup? My first thought was, as someone else mentioned, that you were creating=20 and then trying to reference the table within the body of the program. Tha= t is definitely a problem. However, if you look at the error message, it l= ooks like the compiler is have problems with the table name. I think this= is a secondary issue that you must also address. I believe the compiler i= s trying to treat the table name as a variable because there is a pound sig= n (#) preceding it. Since the 'variable' is not resolving into a string th= at can be used in the FROM clause, you are getting the 1303 error message.= =20=20 I would suggest two things: 1) as mentioned previously, move the CREATE sta= tement to your setup section, and 2) put the LOAD-LOOKUP command in an exec= utable section (preferably an initialization procedure) with the table name= enclosed in single quotes.=20=20 Why are these things important? Well there are a couple things you need to= keep in mind. (Pardon me, but I'm going to over simplify a bit here to ex= plain the concept). For the purposes of this discussion, let's assume that= we are not using any dynamic SQL in this program. SQR processes in two ph= ases, a compile phase followed my an execution phase. One of the primary t= asks that is performed during the compile Phase is a parsing of the SQL sta= tements found in the executable sections of the program. What it does is p= ass the SQL statements to the DBMS to validate the syntax and to ensure tha= t the table/view/column names exist within the database to which you are co= nnected. So, if you have a CREATE or ALTER statement within an executable = procedure, then that table/view does not exist at compile time, and therefo= re the compilation phase will fail. Setup sections are special to SQR in t= hat they are actually compiled *and executed* during the compile phase. So= if you move the CREATE statement to the setup section, the table will actu= ally be created prior to the parsing of the executable commands. The second issue deals with LOAD-LOOKUP command and its use of variables. = When used within executable sections of your SQR program, LOAD-LOOKUP comma= nds allow the use of variables. In your case, however, you want the pound = sign to be passed verbatim to the DBMS, and not to be interpreted as a vari= able name. The simple way to do this is to enclose the argument within sin= gle quotes. Syntactically, there are a couple ways to do this, but the mos= t straight forward approach would be to code it similar to the following: t= able=3D'#temp_Exclude'.=20 >>> By the way, for those folks who may need to do this within a PeopleSoft=20 application, I would recommend that you add a custom setup section=20 within your program. This section should immediately follow the include statement for whichever standard setup section you are using. For=20 example: #include 'setenv.sqc' ! Set environment #include 'setup31.sqc' ! Printer and page-size initialization=20 (Portrait Mode) Begin-Setup ! Custom setup section Begin-SQL Create Table MyTable ... End-SQL End-SETUP ---------------------------------------------------------------------------= -- Hey All, Thanks for everyones input so far. I have am now able to create temp tables= on our SQL Server but am running into an error when I try to call the load= -lookup. I think it has to do with Temp tables needing the hash # prefix o= n them. :( Below is the load lookup command and the error production repor= ting studio 931 is generating.=20 =20 load-lookup name=3DCheckExclude table=3D#temp_Exclude key=3DField_1 return_value=3DField2 rows=3D10 =20 (SQR 1303) Error in SQL (perhaps missing &name after expression): SELECT DISTINCT Field_1, Field2 FROM ? (SQR 1304) Check SELECT columns, expressions and 'where' clause for syntax. SQR: Program Aborting. =20 =20 =20=09=09=20=09=20=20=20=09=09=20=20 _________________________________________________________________ Hotmail: Free, trusted and rich email service. http://clk.atdmt.com/GBL/go/201469228/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Feb 16 11:52:03 2010 Subject: RE: [sqr-users] How can I sneak a text file into a load-lookup? Date: Tue, 16 Feb 2010 11:46:13 -0500 From: "Simon, Jason (MBS)" Thank you Ed! This made perfect sense, in my begin-setup I was dropping the table and in the body I was creating it was never in the database when it tried to compile the and check the syntax on the load lookup.=20=20 I really appreciate the time you took to write this email and explain to me why I was seeing errors that I was. I can say for sure now that I need to pay much closer attention to the order of operations in SQR. Thanks again! Jason -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of Ed Kelly Sent: Tuesday, February 16, 2010 10:30 AM To: sqr-users@sqrug.org Subject: [sqr-users] How can I sneak a text file into a load-lookup? My first thought was, as someone else mentioned, that you were creating=20 and then trying to reference the table within the body of the program. That is definitely a problem. However, if you look at the error message, it looks like the compiler is have problems with the table name. I think this is a secondary issue that you must also address. I believe the compiler is trying to treat the table name as a variable because there is a pound sign (#) preceding it. Since the 'variable' is not resolving into a string that can be used in the FROM clause, you are getting the 1303 error message.=20=20 I would suggest two things: 1) as mentioned previously, move the CREATE statement to your setup section, and 2) put the LOAD-LOOKUP command in an executable section (preferably an initialization procedure) with the table name enclosed in single quotes.=20=20 Why are these things important? Well there are a couple things you need to keep in mind. (Pardon me, but I'm going to over simplify a bit here to explain the concept). For the purposes of this discussion, let's assume that we are not using any dynamic SQL in this program. SQR processes in two phases, a compile phase followed my an execution phase. One of the primary tasks that is performed during the compile Phase is a parsing of the SQL statements found in the executable sections of the program. What it does is pass the SQL statements to the DBMS to validate the syntax and to ensure that the table/view/column names exist within the database to which you are connected. So, if you have a CREATE or ALTER statement within an executable procedure, then that table/view does not exist at compile time, and therefore the compilation phase will fail. Setup sections are special to SQR in that they are actually compiled *and executed* during the compile phase. So if you move the CREATE statement to the setup section, the table will actually be created prior to the parsing of the executable commands. The second issue deals with LOAD-LOOKUP command and its use of variables. When used within executable sections of your SQR program, LOAD-LOOKUP commands allow the use of variables. In your case, however, you want the pound sign to be passed verbatim to the DBMS, and not to be interpreted as a variable name. The simple way to do this is to enclose the argument within single quotes. Syntactically, there are a couple ways to do this, but the most straight forward approach would be to code it similar to the following: table=3D'#temp_Exclude'.=20 >>> By the way, for those folks who may need to do this within a PeopleSoft=20 application, I would recommend that you add a custom setup section=20 within your program. This section should immediately follow the include statement for whichever standard setup section you are using. For=20 example: #include 'setenv.sqc' ! Set environment #include 'setup31.sqc' ! Printer and page-size initialization=20 (Portrait Mode) Begin-Setup ! Custom setup section Begin-SQL Create Table MyTable ... End-SQL End-SETUP ------------------------------------------------------------------------ ----- Hey All, Thanks for everyones input so far. I have am now able to create temp tables on our SQL Server but am running into an error when I try to call the load-lookup. I think it has to do with Temp tables needing the hash # prefix on them. :( Below is the load lookup command and the error production reporting studio 931 is generating.=20 =20 load-lookup name=3DCheckExclude table=3D#temp_Exclude key=3DField_1 return_value=3DField2 rows=3D10 =20 (SQR 1303) Error in SQL (perhaps missing &name after expression): SELECT DISTINCT Field_1, Field2 FROM ? (SQR 1304) Check SELECT columns, expressions and 'where' clause for syntax. SQR: Program Aborting. =20 =20 =20=09=09=20=09=20=20=20=09=09=20=20 _________________________________________________________________ Hotmail: Free, trusted and rich email service. http://clk.atdmt.com/GBL/go/201469228/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Feb 17 11:15:46 2010 From: Bruce Burnell Date: Wed, 17 Feb 2010 08:12:45 -0800 Subject: [sqr-users] RE: How can I sneak a text file into a load-lookup? As I read this thread, I am thinking that in the beginning, you said that the text file is being used because it was the easiest way for the users to add and remove from a list. Perhaps that is the part that needs re-thinking? If the users were entered the data into a table, this would be a non-issue. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Feb 17 11:22:57 2010 Subject: RE: [sqr-users] RE: How can I sneak a text file into a load-lookup? Date: Wed, 17 Feb 2010 11:20:00 -0500 From: "Simon, Jason (MBS)" I am in agreement but there is lot of work that goes into getting the table approved to be added to the database. The easiest part is creating the database. It is the steps required for approval that takes the most time and work. I have figured it out with the help of many of the users on this listing and will be posting my final findings on my blog so that others can use what I have found.=20 Thanks Jason -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of Bruce Burnell Sent: Wednesday, February 17, 2010 11:13 AM To: sqr-users@sqrug.org Subject: [sqr-users] RE: How can I sneak a text file into a load-lookup? As I read this thread, I am thinking that in the beginning, you said that the text file is being used because it was the easiest way for the users to add and remove from a list. Perhaps that is the part that needs re-thinking? If the users were entered the data into a table, this would be a non-issue. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Feb 19 15:06:51 2010 Date: Fri, 19 Feb 2010 14:03:58 -0600 (CST) From: rlharris4@verizon.net Subject: [sqr-users] Oracle error running SQR on Linux Anyone encounterd/solved this issue before? Just trying to run a simple test SQR against the HR example schema. I can connect with SQL*Plus and run the query but when I try to run the SQR I get the following error. Hyperion SQR Production Reporting Server - 11.1.1.1.0.920 Copyright (c) 1994, 2008 Oracle and/or its affiliates. All rights reserved. (SQR 5528) ORACLE OCIEnvNlsCreate error 154415440 in cursor 0: (SQR 5528) ORACLE OCIServerAttach error 154415440 in cursor 0: ] (SQR 4701) Cannot logon to the database. SQR: Program Aborting. Environment: Oracle Enterprise Linux 5 Oracle 11g SQR 11 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Feb 23 16:07:27 2010 Date: Tue, 23 Feb 2010 16:03:59 -0500 From: "Jamie Harris" Subject: [sqr-users] SQL Server 2008 and commit =20 We're in the process of upgrading Peoplesoft and as part of that we are usi= ng SQL Server 2008 in the new Peoplesoft 9.0 environment.=20=20 =20 All of my SQRs work fine on the old server (which is SQL Server 2000) -- bu= t on the new server I get this error: Transaction count after EXECUTE indicates a mismatching number of BEGIN and= COMMIT statements. Previous count =3D 1, current count =3D 0.=20 Here is a sample program that demonstrates this problem. My output shows th= e '1', and then the error. Why can't I begin a new transaction? If I inspec= t @@TRANCOUNT before this, it's a one. But the 'begin transaction' should i= ncrease that to two and I would have nested transactions. If I comment the= 'begin transaction' part, I get the error on the commit. If I comment bot= h the begin and the commit, my program runs. But I'd kind of like to be ab= le to define transactions and commit them when necessary. What am I missi= ng here? begin-program show '1' begin-sql begin transaction end-sql show '2' begin-sql commit transaction end-sql show '3' end-program ----------------------------------------------------- James Harris Enterprise Application Analyst/Programmer Information Technology Division Frederick Community College=20 ----------------------------------------------------- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Feb 23 16:21:23 2010 From: Larry Roux Date: Tue, 23 Feb 2010 16:18:17 -0500 Subject: RE: [sqr-users] SQL Server 2008 and commit Do you have any includes? I believe that SQR, (or a PeopleSoft include) cr= eates a transaction at the start. When we were on Sybase and wanted to hav= e our own commits we had to start with a couple commits then we could do ou= r own transactional processing. Try this: begin-program show '0' begin-sql commit transaction end-sql show '1' begin-sql begin transaction end-sql show '2' begin-sql commit transaction end-sql show '3' end-program -----Original Message----- From: sqr-users-bounces+lroux=3Dsyr.edu@sqrug.org [mailto:sqr-users-bounces= +lroux=3Dsyr.edu@sqrug.org] On Behalf Of Jamie Harris Sent: Tuesday, February 23, 2010 4:04 PM To: sqr-users@sqrug.org Subject: [sqr-users] SQL Server 2008 and commit =20 We're in the process of upgrading Peoplesoft and as part of that we are usi= ng SQL Server 2008 in the new Peoplesoft 9.0 environment.=20=20 =20 All of my SQRs work fine on the old server (which is SQL Server 2000) -- bu= t on the new server I get this error: Transaction count after EXECUTE indicates a mismatching number of BEGIN and= COMMIT statements. Previous count =3D 1, current count =3D 0.=20 Here is a sample program that demonstrates this problem. My output shows th= e '1', and then the error. Why can't I begin a new transaction? If I inspec= t @@TRANCOUNT before this, it's a one. But the 'begin transaction' should i= ncrease that to two and I would have nested transactions. If I comment the= 'begin transaction' part, I get the error on the commit. If I comment bot= h the begin and the commit, my program runs. But I'd kind of like to be ab= le to define transactions and commit them when necessary. What am I missi= ng here? begin-program show '1' begin-sql begin transaction end-sql show '2' begin-sql commit transaction end-sql show '3' end-program ----------------------------------------------------- James Harris Enterprise Application Analyst/Programmer Information Technology Division Frederick Community College=20 ----------------------------------------------------- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Feb 23 16:31:29 2010 Date: Tue, 23 Feb 2010 16:28:19 -0500 From: "Jamie Harris" Subject: RE: [sqr-users] SQL Server 2008 and commit As soon as I hit the first "commit" I get the error. In this case I'm lite= rally running the program you've pasted below -- with no includes thrown in= .=20=20 =20 =20 =20 ----------------------------------------------------- James Harris Enterprise Application Analyst/Programmer Information Technology Division Frederick Community College=20 ----------------------------------------------------- >>> Larry Roux 2/23/2010 4:18 PM >>> Do you have any includes? I believe that SQR, (or a PeopleSoft include) cr= eates a transaction at the start. When we were on Sybase and wanted to hav= e our own commits we had to start with a couple commits then we could do ou= r own transactional processing. Try this: begin-program show '0' begin-sql commit transaction end-sql show '1' begin-sql begin transaction end-sql show '2' begin-sql commit transaction end-sql show '3' end-program -----Original Message----- From: sqr-users-bounces+lroux=3Dsyr.edu@sqrug.org [mailto:sqr-users-bounces= +lroux=3Dsyr.edu@sqrug.org] On Behalf Of Jamie Harris Sent: Tuesday, February 23, 2010 4:04 PM To: sqr-users@sqrug.org Subject: [sqr-users] SQL Server 2008 and commit We're in the process of upgrading Peoplesoft and as part of that we are usi= ng SQL Server 2008 in the new Peoplesoft 9.0 environment.=20=20 All of my SQRs work fine on the old server (which is SQL Server 2000) -- bu= t on the new server I get this error: Transaction count after EXECUTE indicates a mismatching number of BEGIN and= COMMIT statements. Previous count =3D 1, current count =3D 0.=20 Here is a sample program that demonstrates this problem. My output shows th= e '1', and then the error. Why can't I begin a new transaction? If I inspec= t @@TRANCOUNT before this, it's a one. But the 'begin transaction' should i= ncrease that to two and I would have nested transactions. If I comment the= 'begin transaction' part, I get the error on the commit. If I comment bot= h the begin and the commit, my program runs. But I'd kind of like to be ab= le to define transactions and commit them when necessary. What am I missi= ng here? begin-program show '1' begin-sql begin transaction end-sql show '2' begin-sql commit transaction end-sql show '3' end-program ----------------------------------------------------- James Harris Enterprise Application Analyst/Programmer Information Technology Division Frederick Community College=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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Feb 23 16:38:14 2010 Date: Tue, 23 Feb 2010 16:35:02 -0500 From: "Jamie Harris" Subject: RE: [sqr-users] SQL Server 2008 and commit =20 Also, the database itself seems to allow nested transactions, if I run the = following: =20 select @@TRANCOUNT begin transaction select @@TRANCOUNT begin transaction select @@TRANCOUNT commit transaction select @@TRANCOUNT commit transaction select @@TRANCOUNT I get 0 1 2 1 0 as it goes through the different layers of transactions. I= should be able to do the same in my SQR. :) =20 =20 ----------------------------------------------------- James Harris Enterprise Application Analyst/Programmer Information Technology Division Frederick Community College=20 ----------------------------------------------------- >>> Larry Roux 2/23/2010 4:18 PM >>> Do you have any includes? I believe that SQR, (or a PeopleSoft include) cr= eates a transaction at the start. When we were on Sybase and wanted to hav= e our own commits we had to start with a couple commits then we could do ou= r own transactional processing. Try this: begin-program show '0' begin-sql commit transaction end-sql show '1' begin-sql begin transaction end-sql show '2' begin-sql commit transaction end-sql show '3' end-program -----Original Message----- From: sqr-users-bounces+lroux=3Dsyr.edu@sqrug.org [mailto:sqr-users-bounces= +lroux=3Dsyr.edu@sqrug.org] On Behalf Of Jamie Harris Sent: Tuesday, February 23, 2010 4:04 PM To: sqr-users@sqrug.org Subject: [sqr-users] SQL Server 2008 and commit We're in the process of upgrading Peoplesoft and as part of that we are usi= ng SQL Server 2008 in the new Peoplesoft 9.0 environment.=20=20 All of my SQRs work fine on the old server (which is SQL Server 2000) -- bu= t on the new server I get this error: Transaction count after EXECUTE indicates a mismatching number of BEGIN and= COMMIT statements. Previous count =3D 1, current count =3D 0.=20 Here is a sample program that demonstrates this problem. My output shows th= e '1', and then the error. Why can't I begin a new transaction? If I inspec= t @@TRANCOUNT before this, it's a one. But the 'begin transaction' should i= ncrease that to two and I would have nested transactions. If I comment the= 'begin transaction' part, I get the error on the commit. If I comment bot= h the begin and the commit, my program runs. But I'd kind of like to be ab= le to define transactions and commit them when necessary. What am I missi= ng here? begin-program show '1' begin-sql begin transaction end-sql show '2' begin-sql commit transaction end-sql show '3' end-program ----------------------------------------------------- James Harris Enterprise Application Analyst/Programmer Information Technology Division Frederick Community College=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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Feb 24 11:20:33 2010 Date: Wed, 24 Feb 2010 11:17:21 -0500 From: "George Jansen" Subject: RE: [sqr-users] SQL Server 2008 and commit Is it possible that you have to nest these within the same begin-sql/end-sq= l frame?=20 >>> "Jamie Harris" 2/23/2010 4:35 PM >>> Also, the database itself seems to allow nested transactions, if I run the = following: =20 select @@TRANCOUNT begin transaction select @@TRANCOUNT begin transaction select @@TRANCOUNT commit transaction select @@TRANCOUNT commit transaction select @@TRANCOUNT I get 0 1 2 1 0 as it goes through the different layers of transactions. I= should be able to do the same in my SQR. :) =20 =20 ----------------------------------------------------- James Harris Enterprise Application Analyst/Programmer Information Technology Division Frederick Community College=20 ----------------------------------------------------- >>> Larry Roux 2/23/2010 4:18 PM >>> Do you have any includes? I believe that SQR, (or a PeopleSoft include) cr= eates a transaction at the start. When we were on Sybase and wanted to hav= e our own commits we had to start with a couple commits then we could do ou= r own transactional processing. Try this: begin-program show '0' begin-sql commit transaction end-sql show '1' begin-sql begin transaction end-sql show '2' begin-sql commit transaction end-sql show '3' end-program -----Original Message----- From: sqr-users-bounces+lroux=3Dsyr.edu@sqrug.org [mailto:sqr-users-bounces= +lroux=3Dsyr.edu@sqrug.org] On Behalf Of Jamie Harris Sent: Tuesday, February 23, 2010 4:04 PM To: sqr-users@sqrug.org=20 Subject: [sqr-users] SQL Server 2008 and commit We're in the process of upgrading Peoplesoft and as part of that we are usi= ng SQL Server 2008 in the new Peoplesoft 9.0 environment.=20=20 All of my SQRs work fine on the old server (which is SQL Server 2000) -- bu= t on the new server I get this error: Transaction count after EXECUTE indicates a mismatching number of BEGIN and= COMMIT statements. Previous count =3D 1, current count =3D 0.=20 Here is a sample program that demonstrates this problem. My output shows th= e '1', and then the error. Why can't I begin a new transaction? If I inspec= t @@TRANCOUNT before this, it's a one. But the 'begin transaction' should i= ncrease that to two and I would have nested transactions. If I comment the= 'begin transaction' part, I get the error on the commit. If I comment bot= h the begin and the commit, my program runs. But I'd kind of like to be ab= le to define transactions and commit them when necessary. What am I missi= ng here? begin-program show '1' begin-sql begin transaction end-sql show '2' begin-sql commit transaction end-sql show '3' end-program ----------------------------------------------------- James Harris Enterprise Application Analyst/Programmer Information Technology Division Frederick Community College=20 ----------------------------------------------------- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Feb 24 16:50:59 2010 Date: Wed, 24 Feb 2010 16:47:26 -0500 From: "Jamie Harris" Subject: RE: [sqr-users] SQL Server 2008 and commit =20 I've tried that as well. =20 I just now noticed that if I simply use the SQR "commit" command it seems t= o work. However, according to the SQR help that command doesn't work on SQ= L Server, it says to use the 'commit transaction' command within a begin-sq= l block.=20=20=20 =20 "Note: The COMMIT command can be used with DB2, Informix, ODBC, and ORACLE.= (Microsoft SQL Server is accessible with SQR Server for ODBC.) For SYBASE = and Microsoft SQL Server, use BEGIN TRANSACTION and COMMIT TRANSACTION with= in SQL paragraphs as in the code segment shown below. " =20 What I just now noticed is that 'commit' works in ODBC...which is how SQR i= s connecting to our database anyway. I think I can get away with just usin= g that.=20=20 =20 ----------------------------------------------------- James Harris Enterprise Application Analyst/Programmer Information Technology Division Frederick Community College=20 ----------------------------------------------------- >>> "George Jansen" 2/24/2010 11:17 AM >>> Is it possible that you have to nest these within the same begin-sql/end-sq= l frame?=20 >>> "Jamie Harris" 2/23/2010 4:35 PM >>> Also, the database itself seems to allow nested transactions, if I run the = following: select @@TRANCOUNT begin transaction select @@TRANCOUNT begin transaction select @@TRANCOUNT commit transaction select @@TRANCOUNT commit transaction select @@TRANCOUNT I get 0 1 2 1 0 as it goes through the different layers of transactions. I= should be able to do the same in my SQR. :) ----------------------------------------------------- James Harris Enterprise Application Analyst/Programmer Information Technology Division Frederick Community College=20 ----------------------------------------------------- >>> Larry Roux 2/23/2010 4:18 PM >>> Do you have any includes? I believe that SQR, (or a PeopleSoft include) cr= eates a transaction at the start. When we were on Sybase and wanted to hav= e our own commits we had to start with a couple commits then we could do ou= r own transactional processing. Try this: begin-program show '0' begin-sql commit transaction end-sql show '1' begin-sql begin transaction end-sql show '2' begin-sql commit transaction end-sql show '3' end-program -----Original Message----- From: sqr-users-bounces+lroux=3Dsyr.edu@sqrug.org [mailto:sqr-users-bounces= +lroux=3Dsyr.edu@sqrug.org] On Behalf Of Jamie Harris Sent: Tuesday, February 23, 2010 4:04 PM To: sqr-users@sqrug.org=20 Subject: [sqr-users] SQL Server 2008 and commit We're in the process of upgrading Peoplesoft and as part of that we are usi= ng SQL Server 2008 in the new Peoplesoft 9.0 environment.=20=20 All of my SQRs work fine on the old server (which is SQL Server 2000) -- bu= t on the new server I get this error: Transaction count after EXECUTE indicates a mismatching number of BEGIN and= COMMIT statements. Previous count =3D 1, current count =3D 0.=20 Here is a sample program that demonstrates this problem. My output shows th= e '1', and then the error. Why can't I begin a new transaction? If I inspec= t @@TRANCOUNT before this, it's a one. But the 'begin transaction' should i= ncrease that to two and I would have nested transactions. If I comment the= 'begin transaction' part, I get the error on the commit. If I comment bot= h the begin and the commit, my program runs. But I'd kind of like to be ab= le to define transactions and commit them when necessary. What am I missi= ng here? begin-program show '1' begin-sql begin transaction end-sql show '2' begin-sql commit transaction end-sql show '3' end-program ----------------------------------------------------- James Harris Enterprise Application Analyst/Programmer Information Technology Division Frederick Community College=20 ----------------------------------------------------- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Feb 25 20:54:33 2010 From: Jason Simon Date: Thu, 25 Feb 2010 20:51:34 -0500 Subject: [sqr-users] Lookup not reading Input variable Hey All, Has anyone ever had an issue where the variable you are passing to a lookup function is not being evaluated correctly? I have a lookup that I know is being loaded, I check the error file and it shows all the rows loaded and I can run a query against the table I loaded in the load lookup and it will return the values correctly. But when I use the lookup function later in the report and pass the same value in the form of a variable that is coming out of an array it does not recognize the values it is being passed, that is to say that the values being passed should be found and I should be receiving a returned value but I do not. I did a test to make it as simple as possible and I put the value of N in the key value and a value of S in the return value. If I query against the original table that I passed to the load lookup and do a lookup inside the query I get the return value I expect. But if I later in the report I lookup in a different query against a different database I do not get a returned value. Also if i just try to do a lookup and pass in a static value of N I expect to have a return value of S but I get a null back instead because it didn't find a match. Is there something I need to do to cleanse the value that I am passing to the lookup or load lookup function. Thanks Jason _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Feb 26 05:54:59 2010 From: "franck.masson" Subject: Re:[sqr-users] Lookup not reading Input variable Date: Fri, 26 Feb 2010 11:51:28 +0100 (CET) Hi what is your Version , Database/midleware and operating system ? Franck, > Message du 26/02/10 02:54 > De : "Jason Simon" > A : sqr-users@sqrug.org > Copie =C3=A0 : > Objet : [sqr-users] Lookup not reading Input variable > > > Hey All, > Has anyone ever had an issue where the variable you are passing to a > lookup function is not being evaluated correctly? > > I have a lookup that I know is being loaded, I check the error file and it > shows all the rows loaded and I can run a query against the table I loaded > in the load lookup and it will return the values correctly. But when I > use the lookup function later in the report and pass the same value in the > form of a variable that is coming out of an array it does not recognize t= he > values it is being passed, that is to say that the values being passed > should be found and I should be receiving a returned value but I do not. I > did a test to make it as simple as possible and I put the value of N > in the key value and a value of S in the return value. If I query > against the original table that I passed to the load lookup and do a look= up > inside the query I get the return value I expect. But if I later in the > report I lookup in a different query against a different database I do not > get a returned value. Also if i just try to do a lookup and pass in a > static value of N I expect to have a return value of S but I > get a null back instead because it didn't find a match. Is there something > I need to do to cleanse the value that I am passing to the lookup or load > lookup function. > > Thanks > Jason > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > >=20 Une messagerie gratuite, garantie =C3=A0 vie et des services en plus, =C3= =A7a vous tente ? Je cr=C3=A9e ma bo=C3=AEte mail www.laposte.net _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Feb 26 08:28:40 2010 Subject: RE: [sqr-users] Lookup not reading Input variable Date: Fri, 26 Feb 2010 08:24:06 -0500 From: "Simon, Jason (MBS)" Hey Frank, We are running Production Reporting 931 and I am using SQL 8.00.2050 my ma= chine is running XP pro and the scheduler is running windows 2000. Thanks for your help! Jason -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:= sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of = franck.masson Sent: Friday, February 26, 2010 5:51 AM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: Re:[sqr-users] Lookup not reading Input variable Hi what is your Version , Database/midleware and operating system ? Franck, > Message du 26/02/10 02:54 > De : "Jason Simon" > A : sqr-users@sqrug.org > Copie =E0 : > Objet : [sqr-users] Lookup not reading Input variable > > > Hey All, > Has anyone ever had an issue where the variable you are passing to a > lookup function is not being evaluated correctly? > > I have a lookup that I know is being loaded, I check the error file and it > shows all the rows loaded and I can run a query against the table I loaded > in the load lookup and it will return the values correctly. But when I > use the lookup function later in the report and pass the same value in the > form of a variable that is coming out of an array it does not recognize t= he > values it is being passed, that is to say that the values being passed > should be found and I should be receiving a returned value but I do not. I > did a test to make it as simple as possible and I put the value of N > in the key value and a value of S in the return value. If I query > against the original table that I passed to the load lookup and do a look= up > inside the query I get the return value I expect. But if I later in the > report I lookup in a different query against a different database I do not > get a returned value. Also if i just try to do a lookup and pass in a > static value of N I expect to have a return value of S but I > get a null back instead because it didn't find a match. Is there something > I need to do to cleanse the value that I am passing to the lookup or load > lookup function. > > Thanks > Jason > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > >=20 Une messagerie gratuite, garantie =E0 vie et des services en plus, =E7a vou= s tente ? Je cr=E9e ma bo=EEte mail www.laposte.net _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Feb 26 14:15:00 2010 Date: Fri, 26 Feb 2010 14:12:16 -0500 Subject: Re: [sqr-users] Lookup not reading Input variable From: Don Mellen The only time I've had a "Load-Lookup" / "Lookup" not work was when either the code table for the "Load-Lookup" or the query table in the main part of the report had extra space(s) on the end of the code, or there was a case difference (i.e the key value and lookup value didn't match). If you passed the Lookup a static value of 'N', and you're sure the value in the table for your Load-Lookup had a key value that was 'N' with no spaces, then I'm not sure off-hand why it's not working. On Fri, Feb 26, 2010 at 8:24 AM, Simon, Jason (MBS) < Jason.Simon@mortgagefamily.com> wrote: > Hey Frank, > We are running Production Reporting 931 and I am using SQL 8.00.20= 50 > my machine is running XP pro and the scheduler is running windows 2000. > > Thanks for your help! > Jason > > -----Original Message----- > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailt= o: > sqr-users-bounces+jason.simon =3D > mortgagefamily.com@sqrug.org] On Behalf Of franck.masson > Sent: Friday, February 26, 2010 5:51 AM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: Re:[sqr-users] Lookup not reading Input variable > > Hi > what is your Version , Database/midleware and operating system ? > > Franck, > > > > > > Message du 26/02/10 02:54 > > De : "Jason Simon" > > A : sqr-users@sqrug.org > > Copie =E0 : > > Objet : [sqr-users] Lookup not reading Input variable > > > > > > Hey All, > > Has anyone ever had an issue where the variable you are passing to a > > lookup function is not being evaluated correctly? > > > > I have a lookup that I know is being loaded, I check the error file and > it > > shows all the rows loaded and I can run a query against the table I > loaded > > in the load lookup and it will return the values correctly. But when I > > use the lookup function later in the report and pass the same value in > the > > form of a variable that is coming out of an array it does not recognize > the > > values it is being passed, that is to say that the values being passed > > should be found and I should be receiving a returned value but I do not. > I > > did a test to make it as simple as possible and I put the value of N > > in the key value and a value of S in the return value. If I query > > against the original table that I passed to the load lookup and do a > lookup > > inside the query I get the return value I expect. But if I later in the > > report I lookup in a different query against a different database I do > not > > get a returned value. Also if i just try to do a lookup and pass in a > > static value of N I expect to have a return value of S but I > > get a null back instead because it didn't find a match. Is there > something > > I need to do to cleanse the value that I am passing to the lookup or lo= ad > > lookup function. > > > > Thanks > > Jason > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > Une messagerie gratuite, garantie =E0 vie et des services en plus, =E7a v= ous > tente ? > Je cr=E9e ma bo=EEte mail www.laposte.net > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > 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 ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" (Terry Pratchett) _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Feb 26 14:25:59 2010 Subject: RE: [sqr-users] Lookup not reading Input variable Date: Fri, 26 Feb 2010 14:22:13 -0500 From: "Simon, Jason (MBS)" Thanks Don, I have really been struggling with getting the load lookups and the = lookup to work. The way I have it set up is that I open a text file and r= ead it row by row passing the values to a temp table one at a time. Once I= am done reading the text file then I do a query to see what is in the temp= table. Then I call the load lookup function. I then query the temp table= and call the lookup and it works as it is supposed to. But if later I do a= lookup and pass a value to it it won't recognize it. Do you think it could= do with the data type in the temp table vs. the data type that is being pa= ssed to the lookup?=20 Thanks Jason -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:= sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of = Don Mellen Sent: Friday, February 26, 2010 2:12 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: Re: [sqr-users] Lookup not reading Input variable The only time I've had a "Load-Lookup" / "Lookup" not work was when either the code table for the "Load-Lookup" or the query table in the main part of the report had extra space(s) on the end of the code, or there was a case difference (i.e the key value and lookup value didn't match). If you passed the Lookup a static value of 'N', and you're sure the value in the table for your Load-Lookup had a key value that was 'N' with no spaces, then I'm not sure off-hand why it's not working. On Fri, Feb 26, 2010 at 8:24 AM, Simon, Jason (MBS) < Jason.Simon@mortgagefamily.com> wrote: > Hey Frank, > We are running Production Reporting 931 and I am using SQL 8.00.20= 50 > my machine is running XP pro and the scheduler is running windows 2000. > > Thanks for your help! > Jason > > -----Original Message----- > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailt= o: > sqr-users-bounces+jason.simon =3D > mortgagefamily.com@sqrug.org] On Behalf Of franck.masson > Sent: Friday, February 26, 2010 5:51 AM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: Re:[sqr-users] Lookup not reading Input variable > > Hi > what is your Version , Database/midleware and operating system ? > > Franck, > > > > > > Message du 26/02/10 02:54 > > De : "Jason Simon" > > A : sqr-users@sqrug.org > > Copie =E0 : > > Objet : [sqr-users] Lookup not reading Input variable > > > > > > Hey All, > > Has anyone ever had an issue where the variable you are passing to a > > lookup function is not being evaluated correctly? > > > > I have a lookup that I know is being loaded, I check the error file and > it > > shows all the rows loaded and I can run a query against the table I > loaded > > in the load lookup and it will return the values correctly. But when I > > use the lookup function later in the report and pass the same value in > the > > form of a variable that is coming out of an array it does not recognize > the > > values it is being passed, that is to say that the values being passed > > should be found and I should be receiving a returned value but I do not. > I > > did a test to make it as simple as possible and I put the value of N > > in the key value and a value of S in the return value. If I query > > against the original table that I passed to the load lookup and do a > lookup > > inside the query I get the return value I expect. But if I later in the > > report I lookup in a different query against a different database I do > not > > get a returned value. Also if i just try to do a lookup and pass in a > > static value of N I expect to have a return value of S but I > > get a null back instead because it didn't find a match. Is there > something > > I need to do to cleanse the value that I am passing to the lookup or lo= ad > > lookup function. > > > > Thanks > > Jason > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > Une messagerie gratuite, garantie =E0 vie et des services en plus, =E7a v= ous > tente ? > Je cr=E9e ma bo=EEte mail www.laposte.net > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > 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 ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" (Terry Pratchett) _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Feb 26 14:46:17 2010 Date: Fri, 26 Feb 2010 14:43:35 -0500 Subject: Re: [sqr-users] Lookup not reading Input variable From: Don Mellen That's very possible. Have you tried showing the temp table value with delimeters on each end (to see any extra spaces) and then doing the same with the table values that you pass to the lookup? Are you doing any processing (trim(),upper(),etc.) on the key value in the load-lookup call? On Fri, Feb 26, 2010 at 2:22 PM, Simon, Jason (MBS) < Jason.Simon@mortgagefamily.com> wrote: > Thanks Don, > I have really been struggling with getting the load lookups and the > lookup to work. The way I have it set up is that I open a text file and > read it row by row passing the values to a temp table one at a time. Onc= e I > am done reading the text file then I do a query to see what is in the temp > table. Then I call the load lookup function. I then query the temp table > and call the lookup and it works as it is supposed to. But if later I do a > lookup and pass a value to it it won't recognize it. Do you think it could > do with the data type in the temp table vs. the data type that is being > passed to the lookup? > > Thanks > Jason > > -----Original Message----- > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailt= o: > sqr-users-bounces+jason.simon =3D > mortgagefamily.com@sqrug.org] On Behalf Of Don Mellen > Sent: Friday, February 26, 2010 2:12 PM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: Re: [sqr-users] Lookup not reading Input variable > > The only time I've had a "Load-Lookup" / "Lookup" not work was when either > the code table for the "Load-Lookup" or the query table in the main part = of > the report had extra space(s) on the end of the code, or there was a case > difference (i.e the key value and lookup value didn't match). > > If you passed the Lookup a static value of 'N', and you're sure the value > in > the table for your Load-Lookup had a key value that was 'N' with no space= s, > then I'm not sure off-hand why it's not working. > > On Fri, Feb 26, 2010 at 8:24 AM, Simon, Jason (MBS) < > Jason.Simon@mortgagefamily.com> wrote: > > > Hey Frank, > > We are running Production Reporting 931 and I am using SQL > 8.00.2050 > > my machine is running XP pro and the scheduler is running windows 2000. > > > > Thanks for your help! > > Jason > > > > -----Original Message----- > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org[mail= to: > > sqr-users-bounces+jason.simon =3D > > mortgagefamily.com@sqrug.org] On Behalf Of franck.masson > > Sent: Friday, February 26, 2010 5:51 AM > > To: This list is for discussion about the SQR database reporting > > languagefrom Hyperion Solutions. > > Subject: Re:[sqr-users] Lookup not reading Input variable > > > > Hi > > what is your Version , Database/midleware and operating system ? > > > > Franck, > > > > > > > > > > > Message du 26/02/10 02:54 > > > De : "Jason Simon" > > > A : sqr-users@sqrug.org > > > Copie =E0 : > > > Objet : [sqr-users] Lookup not reading Input variable > > > > > > > > > Hey All, > > > Has anyone ever had an issue where the variable you are passing to a > > > lookup function is not being evaluated correctly? > > > > > > I have a lookup that I know is being loaded, I check the error file a= nd > > it > > > shows all the rows loaded and I can run a query against the table I > > loaded > > > in the load lookup and it will return the values correctly. But when I > > > use the lookup function later in the report and pass the same value in > > the > > > form of a variable that is coming out of an array it does not recogni= ze > > the > > > values it is being passed, that is to say that the values being passed > > > should be found and I should be receiving a returned value but I do > not. > > I > > > did a test to make it as simple as possible and I put the value of N > > > in the key value and a value of S in the return value. If I query > > > against the original table that I passed to the load lookup and do a > > lookup > > > inside the query I get the return value I expect. But if I later in t= he > > > report I lookup in a different query against a different database I do > > not > > > get a returned value. Also if i just try to do a lookup and pass in a > > > static value of N I expect to have a return value of S but I > > > get a null back instead because it didn't find a match. Is there > > something > > > I need to do to cleanse the value that I am passing to the lookup or > load > > > lookup function. > > > > > > Thanks > > > Jason > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > Une messagerie gratuite, garantie =E0 vie et des services en plus, =E7a= vous > > tente ? > > Je cr=E9e ma bo=EEte mail www.laposte.net > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > _______________________________________________ > > 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" > (Terry Pratchett) > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > 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 ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" (Terry Pratchett) _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Feb 26 15:33:44 2010 Subject: RE: [sqr-users] Lookup not reading Input variable Date: Fri, 26 Feb 2010 15:30:27 -0500 From: "Simon, Jason (MBS)" I tried that yesterday but I will try it again right now.=20 -----Original Message----- From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailto:= sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org] On Behalf Of = Don Mellen Sent: Friday, February 26, 2010 2:44 PM To: This list is for discussion about the SQR database reporting languagefr= om Hyperion Solutions. Subject: Re: [sqr-users] Lookup not reading Input variable That's very possible. Have you tried showing the temp table value with delimeters on each end (to= see any extra spaces) and then doing the same with the table values that y= ou pass to the lookup? Are you doing any processing (trim(),upper(),etc.) on the key value in the = load-lookup call? On Fri, Feb 26, 2010 at 2:22 PM, Simon, Jason (MBS) < Jason.Simon@mortgagef= amily.com> wrote: > Thanks Don, > I have really been struggling with getting the load lookups and the > lookup to work. The way I have it set up is that I open a text file and > read it row by row passing the values to a temp table one at a time.=20= =20 > Once I am done reading the text file then I do a query to see what is=20 > in the temp table. Then I call the load lookup function. I then=20 > query the temp table and call the lookup and it works as it is=20 > supposed to. But if later I do a lookup and pass a value to it it=20 > won't recognize it. Do you think it could do with the data type in the=20 > temp table vs. the data type that is being passed to the lookup? > > Thanks > Jason > > -----Original Message----- > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org [mailt= o: > sqr-users-bounces+jason.simon =3D > mortgagefamily.com@sqrug.org] On Behalf Of Don Mellen > Sent: Friday, February 26, 2010 2:12 PM > To: This list is for discussion about the SQR database reporting=20 > languagefrom Hyperion Solutions. > Subject: Re: [sqr-users] Lookup not reading Input variable > > The only time I've had a "Load-Lookup" / "Lookup" not work was when=20 > either the code table for the "Load-Lookup" or the query table in the=20 > main part of the report had extra space(s) on the end of the code, or=20 > there was a case difference (i.e the key value and lookup value didn't ma= tch). > > If you passed the Lookup a static value of 'N', and you're sure the=20 > value in the table for your Load-Lookup had a key value that was 'N'=20 > with no spaces, then I'm not sure off-hand why it's not working. > > On Fri, Feb 26, 2010 at 8:24 AM, Simon, Jason (MBS) <=20 > Jason.Simon@mortgagefamily.com> wrote: > > > Hey Frank, > > We are running Production Reporting 931 and I am using SQL > 8.00.2050 > > my machine is running XP pro and the scheduler is running windows 2000. > > > > Thanks for your help! > > Jason > > > > -----Original Message----- > > From: sqr-users-bounces+jason.simon=3Dmortgagefamily.com@sqrug.org[mail= to: > > sqr-users-bounces+jason.simon =3D > > mortgagefamily.com@sqrug.org] On Behalf Of franck.masson > > Sent: Friday, February 26, 2010 5:51 AM > > To: This list is for discussion about the SQR database reporting=20 > > languagefrom Hyperion Solutions. > > Subject: Re:[sqr-users] Lookup not reading Input variable > > > > Hi > > what is your Version , Database/midleware and operating system ? > > > > Franck, > > > > > > > > > > > Message du 26/02/10 02:54 > > > De : "Jason Simon" > > > A : sqr-users@sqrug.org > > > Copie =E0 : > > > Objet : [sqr-users] Lookup not reading Input variable > > > > > > > > > Hey All, > > > Has anyone ever had an issue where the variable you are passing to=20 > > > a lookup function is not being evaluated correctly? > > > > > > I have a lookup that I know is being loaded, I check the error=20 > > > file and > > it > > > shows all the rows loaded and I can run a query against the table=20 > > > I > > loaded > > > in the load lookup and it will return the values correctly. But=20 > > > when I use the lookup function later in the report and pass the=20 > > > same value in > > the > > > form of a variable that is coming out of an array it does not=20 > > > recognize > > the > > > values it is being passed, that is to say that the values being=20 > > > passed should be found and I should be receiving a returned value=20 > > > but I do > not. > > I > > > did a test to make it as simple as possible and I put the value of=20 > > > N in the key value and a value of S in the return value. If I=20 > > > query against the original table that I passed to the load lookup=20 > > > and do a > > lookup > > > inside the query I get the return value I expect. But if I later=20 > > > in the report I lookup in a different query against a different=20 > > > database I do > > not > > > get a returned value. Also if i just try to do a lookup and pass=20 > > > in a static value of N I expect to have a return value of S but I=20 > > > get a null back instead because it didn't find a match. Is there > > something > > > I need to do to cleanse the value that I am passing to the lookup=20 > > > or > load > > > lookup function. > > > > > > Thanks > > > Jason > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > Une messagerie gratuite, garantie =E0 vie et des services en plus, =E7a= =20 > > vous tente ? > > Je cr=E9e ma bo=EEte mail www.laposte.net > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > -- > ---------------------------------------------------------------------- > - Donald Mellen | Ray Ontko & Co. - Richmond, IN -=20 > http://www.ontko.com/ donm@ontko.com | "In the beginning, there was=20 > nothing, which exploded" > (Terry Pratchett) > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > 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/ don= m@ontko.com | "In the beginning, there was nothing, which exploded" (Terry Pratchett) _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Feb 26 16:11:40 2010 Subject: RE: [sqr-users] Lookup not reading Input variable Date: Fri, 26 Feb 2010 16:08:24 -0500 From: "Simon, Jason (MBS)" Hey Don, This is the SQR that I am using to try and get the lookup function to work= . The last procedure is the one that is looking to match the letter A.=20= =20 Begin-Setup Declare-Layout Default Orientation =3D Landscape Paper-Size =3D (Legal) Top-Margin =3D 0.250 Bottom-Margin =3D 0.250 Left-Margin =3D 0.20 Right-Margin =3D 0.20 Line-Height =3D 10 Char-Width =3D 1 End-Declare !--------------------------------------------------------------------------= ------------------------------- ! Temp Table deletion / Creation !--------------------------------------------------------------------------= ------------------------------- begin-sql on-error=3DSKIP IF EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE=3D'BASE TABLE' AND TABLE_NAME=3D'TempTable' ) Delete TempTable ELSE CREATE TABLE TempTable (Field1 CHAR(140) NOT NULL, Field2 CHAR(140) NOT NULL ) end-sql End-Setup Begin-Heading 8 name =3D Summary End-Heading Begin-Program Let $SnglQT =3D chr(39) Let #ExcludeRow =3D 0 ! This is Keeps track of the number = of lines cycled through Let #TotalExcluded =3D 0 ! This is keeps track of the TOTAL n= umber of rows minus the header row Do Error_Log Do set_columns_TPs Do Get_Tps_To_Exclude Do Load_Exclude_Lookup Do Check_Lookup Do Pass_Variable_To_Lookup End-Program Begin-Procedure Error_Log Let #step =3D 0 Let $Report_Error_Log_File =3D '\\Path\Load Lookup.err' Let #Report_Error_Log =3D 1 Let $Error1 =3D 'File '||$today|| ' Opened Successfully' Let $Error2 =3D 'Error Opening File: '||$today Let $ErrorDate =3D 'Date ' ||$today open $Report_Error_Log_File as #Report_Error_Log For-Writing record=3D1= 000000:vary Status=3D#filesStatus Let $Files_Opened =3D 'Y' If #fileStatus !=3D 0 Write 1 From $Error2 Write 1 From $ErrorDate Else Write 1 From $Error1 Write 1 From $ErrorDate End-If End-Procedure Error_Log begin-procedure set_columns_TPs Let #col1 =3D 1 Let #col2 =3D #col1 + 60 Let #col3 =3D #col2 + 60 Let #col4 =3D #col3 + 40 Let #col5 =3D #col4 + 60 Let #col6 =3D #col5 + 50 Let #col7 =3D #col6 + 120 Let #col8 =3D #col7 + 60 Let #col9 =3D #col8 + 60 Let #col10 =3D #col9 + 60 Let #col11 =3D #col10 + 60 Let #col12 =3D #col11 + 60 Let #col13 =3D #col12 + 60 Let #col14 =3D #col13 + 60 Let #col15 =3D #col14 + 60 Let #col16 =3D #col15 + 0 Let #col17 =3D #col16 + 0 Let #col18 =3D #col17 + 0 Let #col19 =3D #col18 + 0 Let #col20 =3D #col19 + 0 Let #col21 =3D #col20 + 0 Let #col22 =3D #col21 + 0 Let #col23 =3D #col22 + 0 Let #col24 =3D #col23 + 0 Let #col25 =3D #col24 + 0 Let #col26 =3D #col25 + 0 Let #col27 =3D #col26 + 0 Let #col28 =3D #col27 + 0 Let #col29 =3D #col28 + 0 Let #col30 =3D #col29 + 0 Let #col31 =3D #col30 + 0 Let #col32 =3D #col31 + 0 Let #col33 =3D #col32 + 0 Let #col34 =3D #col33 + 0 Let #col35 =3D #col34 + 0 Add 1 to #step end-procedure set_columns_TPs Begin-Procedure Get_Tps_To_Exclude Print ' ~~~~~~~~~~~~~~~~~~~~~~ START Exclude'(+1,#col1) Let #ExcludeRow =3D 0 Let #ExcludeFileNum =3D 5 Let $ExcludeFile =3D '\\Path\Include.TXT' open $ExcludeFile as #ExcludeFileNum For-Reading record=3D100:vary while Not #end-file !Checks for the= end of the file so we do not read a blank line Read #ExcludeFileNum into $ExcludeString:2000 status=3D= #ExcludeReadStat If #end-file Break End-If If #ExcludeReadStat <> 0 Let $Error1 =3D 'Bad Return from t= he Read command, errno=3D'||to_char(#ExcludeReadStat)||' Record # =3D ' ||t= o_char(#ExcludeRow+1) Write 1 From $Error1 Else If (#ExcludeRow =3D 0) Add 1 to #ExcludeRow = !this removes the header row from the text file we are reading. Else write 1 from 'Starting Ex= clude Pull'. Unstring $ExcludeString b= y '|' into $ExcludeName $ExcludeFlag If $ExcludeName <> '' !--------------------------------------------------------------------------= ------------------------------- ! MS SQL INSERT !--------------------------------------------------------------------------= ------------------------------- ! Let $ExcludeName =3D ''''|| $ExcludeName ||'''' Let $ExcludeFlag = =3D ''''|| $ExcludeFlag ||'''' Let $whereInsertA =3D 'I= NSERT INTO TempTable (Field1, Field2) VALUES('||$ExcludeName||','||$Exclude= Flag||');' Print 'Exclude Insert SQL' (+1,#col1) Print $whereInsertA (+1,#col1) begin-sql on-error= =3DERROR_PROC [$whereInsertA] end-sql Do ERROR_PROC ! !--------------------------------------------------------------------------= ------------------------------- write 1 from $Exclud= eString:2000 Add 1 to #ExcludeRow Add 1 to #TotalExclu= ded Else End-If End-If End-If end-while Close 5 Let #end-file =3D 0 ! we must reset the end of file flag to 0 so that = we can read from the next file we want to read. Print ' ~~~~~~~~~~~~~~~~~~~~~~ END Get Exclude'(+1,#col1) End-Procedure Get_Tps_