From sqr-users-bounces@sqrug.org Sun Oct 01 00:02:21 2006 Date: Sun, 1 Oct 2006 00:00:03 -0400 From: Nathan Stratton Treadway Subject: [sqr-users] Monthly sqr-users Hints Posting sqr-users Mailing List Hints and Guidelines Nathan Stratton Treadway, Ray Ontko & Co. (nathanst@ontko.com) $Revision: 1.22 $ $Date: 2005/08/19 05:12:40 $ This document gathers in one location information about the sqr-users mail list. It includes instructions for changing your subscription settings (including unsubscribing), as well are guidelines for using the list. ______________________________________________________________________ Table of Contents 1. Changes Since Previous Version 2. Introduction 2.1 sqr-users Mailing List 2.2 sqr-users Hints and Guidelines Document 2.3 Related Mailing Lists 3. Interacting with the list server 3.1 Subscribing to the list 3.2 Unsubscribing from the list 3.3 When your email address changes 3.4 Digests 3.5 Obtaining your password 3.6 Problems 4. Posting to the sqr-users List 4.1 General Guidelines 4.2 Posting a Message 4.3 Replying to a Message 5. Job Announcements ______________________________________________________________________ 1. Changes Since Previous Version Changes since the version dated 2005/08/19: o Added note about spam filtering and sender verification systems blocking subscription confirmation messages. 2. Introduction 2.1. sqr-users Mailing List The sqr-users mailing list was created to enable discussion related to the SQR database language from Hyperion (and to other products in the SQR product suite). Note: SQR used to be published by SQRIBE Technologies, which was merged into Brio Technology on August 3, 1999. Brio Technology changed its name to Brio Software in October 2001. On October 16, 2003, Hyperion acquired Brio Software. SQR and related applications have also been called "Brio.Report" and "Brio Reports". The mailing list is provided as a service of Ray Ontko & Co. A searchable archive of past postings to the mailing list is available from the SQR Users Group web site . 2.2. sqr-users Hints and Guidelines Document This document gives various hints and guidelines about the sqr-users mailing list. It will be posted approximately monthly to the mailing list so that new users can see it (and existing users can find it easily). An HTML version of the document is always available at http://www.sqrug.org/sqr-users/sqr-users-hints.html. If you have comments or suggestions about this document, please contact me directly at the address listed in the title section. This document is Copyright (C) 1999-2004 by Ray Ontko & Co. It may be freely copied and distributed provided it is not modified in any way and it retains the original copyright notice. 2.3. Related Mailing Lists Here are some mailing lists that cover topics relating to SQR in some way. sqr-jobs : SQR Jobs This list may be used for posting SQR-related resumes, recruitments, job announcements, project announcments, help- wanted, work-wanted ads, etc. To join, follow the link above, or send any message to "sqr-jobs-subscribe@yahoogroups.com". peoplesoft-fans : PeopleSoft Fans Moderated list covering technical and functional aspects of PeopleSoft. To join, follow the link above, or send any message to "peoplesoft-fans-subscribe@yahoogroups.com". psusers : PeopleSoft Users For questions related to any aspect of PeopleSoft (including PeopleSoft-specific SQR issues). This list has merged with the Peoplesoft Fans mailing list and is no longer active, but the message achive can still be found at the link above. HyperionSQR : Hyperion- SQR List for discussion of SQR, SQR Developer (formerly called Brio.Report and Report Builder), and SQR iServer. To join, follow the link above, or send any message to "HyperionSQR- subscribe@yahoogroups.com". rm-users : Report- Mart Users List for discussion of Brio Portal (previously called ReportMart). To join, follow the link above, or send a message containing the word "subscribe" in the body to "rm-users- request@sqrug.org". brioportalusersgroup : Brio Portal Users Group list List for discussion of Brio Portal. To join, follow the link above, or send any message to "brioportalusersgroup- subscribe@yahoogroups.com". brio-l : OpenITx Brio List List for technical and functional discussion of all Brio products (but most messages are currently about Brio Intelligence). To join, follow the link above. briousers : Brio.Enter- prise Users List for discussion of the Brio.Enterprise (now called Intelligence) product. To join, follow the link above, or send any message to "briousers-subscribe@yahoogroups.com". briolist : Brio List List for discussion of Brio Intelligence. To join, follow the link above, or send any message to "briolist- subscribe@yahoogroups.com". 3. Interacting with the list server The sqr-users mailing list is hosted using the Mailman list server package. All of the Mailman functions described below are accessed from the sqr-users List Info page, "http://www.sqrug.org/mailman/listinfo/sqr-users". 3.1. Subscribing to the list To subscribe to the mailing list, enter your e-mail address in the box at the top of the "Subscribing to sqr-users" section on the sqr-users List Info page, then choose a password to assign to your subscription and enter it in both "Password" boxes. This password is used to allow you to securely make changes to your subscription over the web. This password will be e-mailed back to you at varous times, so you should not use the same password as you are using elsewhere. Once you have filled in the password, click the "Subscribe" button. You should soon receive an e-mail message from the list server requesting confirmation of your subscription request. Once you have replied to this message and your subscription has been processed, you will receive a "welcome" message giving you more information on the list server, and as well as a reminder of the subscription password you chose. Many sites are now implementing spam filtering and/or sender verification systems, which can prevent your confirmation message from getting delivered to you. You may need check for a message from "sqr- users-request[-AT-]sqrug.org" caught in the filter, or add that address to your list of authorized senders, in order to complete the confirmation process. 3.2. Unsubscribing from the list To unsubscribe from the list, go to the sqr-users List Info page, enter your e-mail address in the "sqr-users Subscribers" section near the bottom of the page, and click the "Unsubscribe or edit options" button. You will then see the "member options" page; fill in your password at the top of the page and click "Log in". (If you have forgotton your password, see the ``Obtaining your Password'' section, below). This will take you to the "membership configuration" page. In the middle of that page, there will be an "Unsubscribing from sqr- users" section; simply turn on the "Yes, I really want to unsubscribe" checkbox and click the "Unsubscribe" button. You should get a page back saying that the removal was successful (as well as a confirmation email message). The removal will take effect immediately; there is no need to send in a confirmation e-mail message. If you don't know your password, you can choose to unsubscribe using e-mail confirmation. Instead of entering the password on the "member options" page, just click the "Unsubscribe" button found just below the "Log In" button. You will then see a page noting that a confirmation e-mail has been sent; once you follow the confirmation instructions in that e-mail your removal will be complete. 3.3. When your email address changes If your e-mail address changes -- for example, if your company changes names, or if your mail administrator changes the way your name is spelled out or abbreviated -- you will need to update your subscription to match your new address before you can post to the list (see the ``Posting'' section, below). To do this, simply log in to your "membership configuration" page (see the directions for logging in to this page in the ``Unsubscribing'' section, above). At the top of that page you'll see a "Changing your membership information" section. Fill out the text boxes and click the "Change My Address and Name" button. You will be sent a confirmation e-mail, and once you have responded to that e-mail your subscription will be updated and you can begin posting from your new address. 3.4. Digests You can request to get your messages in digest form (one large message containing all of the posts made each day). To do this, log in to your "membership configuration" page (see the directions on doing this in the ``Unsubscribing'' section, above). At the bottom of the page, you will see a section titled "Your sqr-users Subscription Options". Change the "Set Digest Mode" option (the second option in the list) to "On" and click the "Submit My Changes" button at the bottom of the page. You actually have a choice of two different digest formats, "MIME" or "Plain Text". The MIME format sends each individual list message as a separate MIME attachment to the digest; the plain text format consists of one large text message, with all of the individual messages run together. Which format you will want to use depends on your mail- reading software (and personal preference). If you are not sure which format will work best, you can just leave the default setting of "MIME" and see if the next morning's digest is easy to read in your mail reader -- you can change to the other format at any time using that same web page. If you use digests, you should not just "reply" to the digest mailing. Instead, be sure your message's subject header matches the subject in the original posting to which you are replying, and that you don't include a quoted copy of the entire digest in your post. To restore normal distribution, simply follow the above instructions choosing the "Off" setting for the Digest option. 3.5. Obtaining your password You will not be able to change your subscription options without your password. If you have forgotten your password, simply click the "Email My Password to Me" button on the "member options" page and your password will be emailed to you. You will also be e-mailed a copy of your password at the beginning of each month, as part of a "mailing list memberships reminder" message from the Mailman software. 3.6. Problems If the above instructions do not work, please contact the list manager at "sqr-users-manager@sqrug.org". (Do not send a message to the list itself -- no one there can help you with your problem!) Please include a description of what you were trying to do and what exactly happened when you made the attempt. 4. Posting to the sqr-users List In order to post to the mailing list, you must be subscribed to it (see directions above). More specifically, in order for Mailman to recognize that this message was sent by a subscriber, the return address on your message much exactly match the addresss you used to subscribe -- if you have more than one address you will need to be sure that you are sending from the correct one. (See the ``When you email address changes'' section, above, if your e-mail address has changed since you subscribed.) 4.1. General Guidelines For any message you send to the list, please: o make sure your mail software is not requesting a "Return Receipt". (If a "Return Receipt Requested" message is sent to the list, several dozen receipt messages will be sent out to the mailing list as other subscribers' mail systems repond....) o do not send messages in HTML or other special formats. (These are not usable by many subscribers, especially those who receive their messages in digest format.) The list server will delete these special attachments from your message and send you a warning notice. Also, if you are trying to send (for example) SQR source code files, make sure your mail-reader software is assigning proper MIME types to your attachments or they may not be distributed. o keep in mind that over 500 people will receive your message, and that it will appear in the list archives. Try to keep your messages on-topic and relatively short. Consider sending your message directly to particular people if it won't interest many of the list's subscribers. o ignore abusive and inappropriate messages that get sent to the list, rather than getting drawn into a debate. The very nature of these messages will cause most subscribers to automatically discredit them -- no "response" is necessary. To the contrary, any response will only "add fuel to the fire," prolonging the controversy and further interupting the normal conversation on the list. 4.2. Posting a Message Once you are subscribed, you can post to the list by sending a message to "sqr-users@sqrug.org". Be sure your subject heading describes your specific problem or question (i.e. don't just use "SQR Question"). In the body of your message, please include the following information: o SQR product name and version number (see notes below) o Operating system name and version number o Database name and version number o Application name (i.e. PeopleSoft) and a version number, if any Also, include a short code sample whenever possible. It's much easier for other people to understand what you are trying to do when they can see the actual code. (At the same time, be careful not to post confidential or proprietary code, since the posting will be placed in a public web archive.) Note that your question should relate to SQR or other Brio Report product in some way. Don't ask questions about PeopleSoft, for example, unless you are having SQR-related issues. (For PeopleSoft- specific questions, see other lists mentioned in the ``Related Mailing Lists'' section.) In 2001, PeopleSoft purchased from Brio the rights to the source code for SQR and began releasing its own line of SQR. PeopleSoft's SQR version numbering is different from Brio/Hyperion's, so it's very important to mention whether you are using Hyperion's "SQR" or "SQR for PeopleSoft". (This info is included automatically if you include the full SQR version-id string as described below.) To get the version-id string for your copy of SQR, you can run the following program: begin-program show $sqr-ver end-program This will produce a line that looks something like this: SQR/3.0.15/Intel/SCO Unix R3.2 V5.0/Oracle 7.2.2.3/Sep 25 1996 Include the full line of output in your message. Note that the oper- ating system and database version numbers listed here are the ones under which this copy of SQR was compiled, so you'll still need to include this information for your own environment. In a command-line environment (Unix, etc.), you can also get this version-id string by saying sqr -id 4.3. Replying to a Message Messages sent out on the list have a Reply-To header pointing to the list. This means that you should be able to simply use your mail reader's "reply" function to send a reply to the list. Generally, all answers to questions sent out on the list should be public replies, so that other subscribers can benefit. In those cases where a private reply is appropriate, be sure to over-ride the default Reply-To address. If your message is not actually a reply to the earlier message, please do not use the "reply" function. Instead, address a new e-mail message to the list as described in the previous section. (This is because the list archives will incorrectly show the new message in the original thread if you use "reply".) You should quote enough lines from the original message that later readers can understand your answer even if they missed the original question. At the same time, you should remove any unnecessary lines from the quote in order to make your message shorter and easier to understand. (Remember that some people read the mailing list in digest form, and the digests become much larger if unnecessary lines are quoted.) 5. Job Announcements Please do not post job announcements on the sqr-users list, but use the sqr-jobs list instead. (See ``Related Mailing Lists'' for more information on this list.) A large number of sqr-users subscribers do not want to receive job announcements (for various reasons) and such posts tend to cause a lot of disruption of the discussion on the list. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Oct 02 05:32:35 2006 Subject: RE: [sqr-users] Re: DUAL table: String2Em: String to Decimal ObjectConversion Error Date: Mon, 2 Oct 2006 05:28:22 -0400 From: "Peter Burton" All, The problem here is that Oracle 9.2.0.3 changed they way they return numerical values without specifying a scale. SQR Server 8.1 was modified to handle both the old and new mechanisms. Oracle provided a work-around -- alter system set event=3D'10499 trace name context forever,level 1'=20 COMMENT=3D'return 0 for the scale if NUMBER created without specifying the scale' SCOPE=3DSPFILE but that fix will not work in Oracle 10g -- this was by design from Oracle. Therefore, you need to upgrade you version of SQR Server to at least 8.1 or always return a character and then have SQR convert it a number before you use it. Peter -----Original Message----- From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org] On Behalf Of Nathan Stratton Treadway Sent: Friday, September 29, 2006 10:02 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: [sqr-users] Re: DUAL table: String2Em: String to Decimal ObjectConversion Error On Wed, Sep 27, 2006 at 03:34:35PM -0300, April Wells wrote: > I keep getting the above error ((SQR 6806) String2Em: String to Decimal=20 > Object Conversion Error.) > when I select from DUAL. We've recently migrated our databases from Oracle=20 > 8 to 10G which I know causes this error, and I was able to fix the error in=20 > my main SQR programs in a normal select (by putting a TO_CHAR around=20 > numeric fields with no scale), but I can't seem to resolve this error when=20 > selecting from the DUAL table. > ie. >=20 > .... > $seq_type =3D ID_SEQ.NEXTVAL >=20 > BEGIN-SELECT ON-ERROR=3Dfatal_error > [$seq_type] &new_seq=3DNUMBER > FROM DUAL > END-SELECT >=20 > .... > (SQR 6806) String2Em: String to Decimal Object Conversion Error. >=20 > Any suggestions greatly appreciated! You don't mention exactly what different approaches you tried, or if you really are doing something "fancy" that would require the use of dynamic SQL as you show here... so I'll just stick to the "simple" answer: when I have been using SQR v6.2 against Oracle 9i, I was able to use the following code to read from a sequence: begin-select round(ID_SEQ.NEXTVAL) &new_seq from dual end-select Note in particular that if you use ROUND() instead of TO_CHAR(), the value returned by Oracle will be of a numeric datatype rather than character, so you don't need to say "=3DNUMBER" in the SQR. (Actually, if you tried to assign the result of a TO_CHAR() into "&new_seq=3DNUMBER", I assume you got a type-mismatch error from SQR anyway.) If you do actually need to use dynamic SQL for some reason, you should be able to do so by just moving the ROUND() expression into the dynamic portion. In any case, this error is caused by the datatype of the column or expression that's being selected; the fact that you are selection from DUAL instead of some other table shouldn't matter. Hope that helps. Nathan ------------------------------------------------------------------------ ---- Nathan Stratton Treadway - nathanst@ontko.com - Mid-Atlantic region Ray Ontko & Co. - Software consulting services - http://www.ontko.com/ GPG Key: http://www.ontko.com/~nathanst/gpg_key.txt ID: 1023D/ECFB6239 Key fingerprint =3D 6AD8 485E 20B9 5C71 231C 0C32 15F3 ADCD ECFB 6239 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users If you have received this e-mail in error, please delete it and notify the = sender as soon as possible. The contents of this e-mail may be confidential= and the unauthorized use, copying, or dissemination of it and any attachme= nts to it, is prohibited. Internet communications are not secure and Hyperi= on does not, therefore, accept legal responsibility for the contents of thi= s message nor for any damage caused by viruses. The views expressed here do= not necessarily represent those of Hyperion. For more information about Hy= perion, please visit our Web site at: www.hyperion.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Oct 02 14:36:44 2006 Date: Mon, 2 Oct 2006 14:34:21 -0400 From: Nathan Stratton Treadway Subject: [sqr-users] Re: DUAL table: String2Em: String to Decimal ObjectConversion Error On Mon, Oct 02, 2006 at 05:28:22AM -0400, Peter Burton wrote: > The problem here is that Oracle 9.2.0.3 changed they way they return > numerical values without specifying a scale. SQR Server 8.1 was [...] > Therefore, you need to upgrade you version of SQR Server to at least 8.1 > or always return a character and then have SQR convert it a number > before you use it. At the client site where I ran into this problem they did end up implementing the "event 10499" fix eventually (and they will have upgraded to SQR v8.x before they move to Oracle v10.x.) -- and thus I no longer need to use source-code changes to work around the String2Em error, and don't have an environment in which I can test the long-term operation of such changes. However, while I was waiting for the EVENT fix to be implemented, I was able to get the SQR programs to work again against the Oracle 9 instances by using ROUND() on the columns/expressions that were producing the error. This seems to work by specifying an explict scale for the expression, which avoids the "unspecified-scale" situation that triggers the problem. I can certainly see how using TO_CHAR() would also avoid the error, but I'm wondering if you know of any specific situations where the ROUND() workaround would fail and _only_ TO_CHAR() would work? Thanks. Nathan ---------------------------------------------------------------------------- Nathan Stratton Treadway - nathanst@ontko.com - Mid-Atlantic region Ray Ontko & Co. - Software consulting services - http://www.ontko.com/ GPG Key: http://www.ontko.com/~nathanst/gpg_key.txt ID: 1023D/ECFB6239 Key fingerprint = 6AD8 485E 20B9 5C71 231C 0C32 15F3 ADCD ECFB 6239 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Oct 04 11:01:29 2006 Date: Wed, 04 Oct 2006 11:58:27 -0300 From: "PeterG Clark" Subject: [sqr-users] Number to Character Hi folks, Normally, this would be the sort of thing I would like to play with until I= got it working, but I am pressed for time and turning to the tremendous kn= owledge base on this list :-) I have a Number(25) field on a table (Oracle) that I know will never contai= n more than three significant digits (i.e. 999) and I need to get it into a= 3 character field on a flatfile ... i.e. if the column contains 7, I need = to put 007 in the flatfile field, if it contains 29, I need 029 to be in th= e flatfile field, 0 needs to be 000, 567 needs to be 567, etc. Anything I've tried with edits, to_char's, pads and trims isn't working ...= or at least I am not hitting the right combination. Thanks in advance. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Oct 04 11:15:17 2006 From: "Don Duwe" Subject: RE: [sqr-users] Number to Character Date: Wed, 4 Oct 2006 11:11:16 -0400 MOVE ?? TO $?? 999 -----Original Message----- From: sqr-users-bounces+dduwe=nookind.com@sqrug.org [mailto:sqr-users-bounces+dduwe=nookind.com@sqrug.org]On Behalf Of PeterG Clark Sent: Wednesday, October 04, 2006 10:58 AM To: sqr-users@sqrug.org Subject: [sqr-users] Number to Character Hi folks, Normally, this would be the sort of thing I would like to play with until I got it working, but I am pressed for time and turning to the tremendous knowledge base on this list :-) I have a Number(25) field on a table (Oracle) that I know will never contain more than three significant digits (i.e. 999) and I need to get it into a 3 character field on a flatfile ... i.e. if the column contains 7, I need to put 007 in the flatfile field, if it contains 29, I need 029 to be in the flatfile field, 0 needs to be 000, 567 needs to be 567, etc. Anything I've tried with edits, to_char's, pads and trims isn't working ... or at least I am not hitting the right combination. Thanks in advance. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Oct 04 11:24:59 2006 Subject: RE: [sqr-users] Number to Character Date: Wed, 4 Oct 2006 11:12:56 -0400 From: "Kaithi, Murali" Move #variable to $variable 099=20 Murali -----Original Message----- From: sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org [mailto:sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org] On Behalf Of PeterG Clark Sent: Wednesday, October 04, 2006 10:58 AM To: sqr-users@sqrug.org Subject: [sqr-users] Number to Character Hi folks, Normally, this would be the sort of thing I would like to play with until I got it working, but I am pressed for time and turning to the tremendous knowledge base on this list :-) I have a Number(25) field on a table (Oracle) that I know will never contain more than three significant digits (i.e. 999) and I need to get it into a 3 character field on a flatfile ... i.e. if the column contains 7, I need to put 007 in the flatfile field, if it contains 29, I need 029 to be in the flatfile field, 0 needs to be 000, 567 needs to be 567, etc. Anything I've tried with edits, to_char's, pads and trims isn't working ... or at least I am not hitting the right combination. Thanks in advance. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ________________________________________________________________________ This Email has been scanned for all viruses by PAETEC Email Scanning Servic= es, utilizing MessageLabs proprietary SkyScan infrastructure. For more info= rmation on a proactive anti-virus service working around the clock, around = the globe, visit http://www.paetec.com. ________________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Oct 04 11:20:21 2006 Subject: RE: [sqr-users] Number to Character Date: Wed, 4 Oct 2006 08:15:53 -0700 From: "Janakiraman, Vijayakumar" Hi, You can perform this through oracle sql. select lpad(to_char(),3,'0') from dual Substitute the number and run the query.=20 Thanks, Vijayakumar.J Desk:469-229-7465 -----Original Message----- From: sqr-users-bounces+vijayakumar.janakiraman=3Dcingular.com@sqrug.org [mailto:sqr-users-bounces+vijayakumar.janakiraman=3Dcingular.com@sqrug.org ] On Behalf Of Don Duwe Sent: Wednesday, October 04, 2006 10:11 AM To: SQR USERS Subject: RE: [sqr-users] Number to Character MOVE ?? TO $?? 999 -----Original Message----- From: sqr-users-bounces+dduwe=3Dnookind.com@sqrug.org [mailto:sqr-users-bounces+dduwe=3Dnookind.com@sqrug.org]On Behalf Of PeterG Clark Sent: Wednesday, October 04, 2006 10:58 AM To: sqr-users@sqrug.org Subject: [sqr-users] Number to Character Hi folks, Normally, this would be the sort of thing I would like to play with until I got it working, but I am pressed for time and turning to the tremendous knowledge base on this list :-) I have a Number(25) field on a table (Oracle) that I know will never contain more than three significant digits (i.e. 999) and I need to get it into a 3 character field on a flatfile ... i.e. if the column contains 7, I need to put 007 in the flatfile field, if it contains 29, I need 029 to be in the flatfile field, 0 needs to be 000, 567 needs to be 567, etc. Anything I've tried with edits, to_char's, pads and trims isn't working ... or at least I am not hitting the right combination. Thanks in advance. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Oct 04 13:52:25 2006 Date: Wed, 4 Oct 2006 15:19:33 -0230 From: "Ryan, David" Subject: [sqr-users] SQR User Guide Folks, =20 I've just joined this group, and I've noticed various references to the 'SQR3 User Guide'. I user SQR for PeopleSoft, and have been referencing the documentation provided with PeopleBooks, but would like some additional documentation. Does anyone know where I can obtain a copy of the SQR User Guide.. =20 many thanks, =20 David The information contained in this email is strictly confidential and subjec= t to the Confidentiality Notice at http://www.stratosglobal.com/email-priva= cy.html _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Oct 04 13:59:36 2006 Subject: Re: [sqr-users] SQR User Guide From: Roger.Harris@certegy.com Date: Wed, 4 Oct 2006 13:56:38 -0400 Here is the link to Hyperion's tech docs. SQR is near the bottom of the page. http://dev.hyperion.com/resource_library/technical_documentation/ Roger L. Harris Programmer Analyst Sr Product Development Certegy Check Services Fidelity National Information Services, Inc 11601 N. Roosevelt Blvd St Petersburg, FL 33716 (727) 227-5850 direct (800) 215-6280 x75850 toll free (727) 570-4917 Fax |---------+----------------------------------------------------> | | "Ryan, David" | | | | | | Sent by: | | | sqr-users-bounces+roger.harris=certegy.co| | | m@sqrug.org | | | | | | | | | 10/04/2006 03:19 PM | | | Please respond to "This list is for | | | discussion about the SQR database | | | reporting language from Hyperion | | | Solutions." | |---------+----------------------------------------------------> >---------------------------------------------------------------------------------------------| | | | To: sqr-users@sqrug.org | | cc: | | Subject: [sqr-users] SQR User Guide | >---------------------------------------------------------------------------------------------| Folks, I've just joined this group, and I've noticed various references to the 'SQR3 User Guide'. I user SQR for PeopleSoft, and have been referencing the documentation provided with PeopleBooks, but would like some additional documentation. Does anyone know where I can obtain a copy of the SQR User Guide.. many thanks, David The information contained in this email is strictly confidential and subject to the Confidentiality Notice at http://www.stratosglobal.com/email-privacy.html _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------------ This message contains information from Certegy, Inc which may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e:mail postmaster@certegy.com. ============================================================================== _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Oct 04 14:32:22 2006 Subject: RE: [sqr-users] Number to Character Date: Wed, 4 Oct 2006 14:29:25 -0400 From: "Violet Martin" This code comes directly from a flat file I am creating: Let $GPA =3D EDIT((&HS.EXT_GPA*100),'0000') Violet Martin -----Original Message----- From: sqr-users-bounces+vmartin=3Dvccs.edu@sqrug.org [mailto:sqr-users-bounces+vmartin=3Dvccs.edu@sqrug.org] On Behalf Of PeterG Clark Sent: Wednesday, October 04, 2006 10:58 AM To: sqr-users@sqrug.org Subject: [sqr-users] Number to Character Hi folks, Normally, this would be the sort of thing I would like to play with until I got it working, but I am pressed for time and turning to the tremendous knowledge base on this list :-) I have a Number(25) field on a table (Oracle) that I know will never contain more than three significant digits (i.e. 999) and I need to get it into a 3 character field on a flatfile ... i.e. if the column contains 7, I need to put 007 in the flatfile field, if it contains 29, I need 029 to be in the flatfile field, 0 needs to be 000, 567 needs to be 567, etc. Anything I've tried with edits, to_char's, pads and trims isn't working ... or at least I am not hitting the right combination. Thanks in advance. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Oct 04 14:50:29 2006 Date: Wed, 4 Oct 2006 16:17:51 -0230 From: "Ryan, David" Subject: [sqr-users] Reading from a tab delimited file Hello, =20 I'm trying to read from a tab delimited .txt file and insert values into variables. I do not now know what the length of each field within the file is. Could someone provide an example that would allow me to=20 start at the beginning of a line, read from the beginning to the first tab, insert into a variable; read from the first tab to second tab, insert into a variable.....and so on... =20 thanks =20 =20 The information contained in this email is strictly confidential and subjec= t to the Confidentiality Notice at http://www.stratosglobal.com/email-priva= cy.html _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Oct 04 14:57:41 2006 Subject: RE: [sqr-users] Reading from a tab delimited file Date: Wed, 4 Oct 2006 14:54:53 -0400 From: "Overcashier, Patricia" Her is the code. I read int the file and unstring it by the tab into variableks.=20=20 encode <09> into $tab open 'MasterMatch.TXT' as 1 for-reading record=3D1500 status=3D#filestat ! read 1 into $in_rec:1500 status=3D#filestat =20 unstring $in_rec by $tab into $EmplId $Last_Name $Location $Empl_Type $Email_Addr -----Original Message----- From: sqr-users-bounces+patricia.overcashier=3Daam.com@sqrug.org [mailto:sqr-users-bounces+patricia.overcashier=3Daam.com@sqrug.org] On Behalf Of Ryan, David Sent: Wednesday, October 04, 2006 2:48 PM To: sqr-users@sqrug.org Subject: [sqr-users] Reading from a tab delimited file Hello, =20 I'm trying to read from a tab delimited .txt file and insert values into variables. I do not now know what the length of each field within the file is. Could someone provide an example that would allow me to=20 start at the beginning of a line, read from the beginning to the first tab, insert into a variable; read from the first tab to second tab, insert into a variable.....and so on... =20 thanks =20 =20 The information contained in this email is strictly confidential and subject to the Confidentiality Notice at http://www.stratosglobal.com/email-privacy.html _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Oct 04 15:03:52 2006 Subject: RE: [sqr-users] Reading from a tab delimited file Date: Wed, 4 Oct 2006 14:00:56 -0500 From: "Aguirre, Jose" 1-First open the file: !----------------------------------------------------------------------! ! Procedure: Open-Flat-File ! ! Desc: This procedure opens the file that will be read from. ! !----------------------------------------------------------------------! begin-procedure Open-Flat-File DISPLAY ' Open-Flat-File ' =09 let $newfile =3D 'folder_path\file.txt' open $newfile as 1 for-reading record=3D700:vary status=3D#secondfile if #secondfile !=3D 0 let $error_lit =3D 'error opening file' display $error_lit (0,+2) display $file () else let $file_open =3D 'Y' display 'successful opening file' end-if=20=20=20=20=20 END-PROCEDURE=20=20 2- Extract the data: !----------------------------------------------------------------------! ! Procedure: Extract-Row ! ! Desc: This procedure reads the data from the flat file. ! !----------------------------------------------------------------------! begin-procedure Extract-Row =20=20 DISPLAY ' Extract-Row ' while not #end-file let $RecordData =3D ' ' read 1 into $RecordData:500 Let $RecordData =3D ltrim(rtrim($RecordData,' '),' ') let #space =3D instr($RecordData,' ',1)=20=20=20=20 extract $var1 from $RecordData 0 5 (position and char. Length) extract $var2 from $RecordData 11 6 extract $var3 from $RecordData 20 5=20=20=20 =20=20=20=20 Let $var1 =3D ltrim(rtrim($var1,' '),' ') Let $var2 =3D ltrim(rtrim($2,' '),' ') Let $var3 =3D ltrim(rtrim($var3,' '),' ')......and so on. DISPLAY ' END-Extract-Row ' end-procedure Good luck, Jos=E9 A. Aguirre -----Original Message----- From: sqr-users-bounces+jaguir=3Dlsuhsc.edu@sqrug.org [mailto:sqr-users-bou= nces+jaguir=3Dlsuhsc.edu@sqrug.org] On Behalf Of Ryan, David Sent: Wednesday, October 04, 2006 1:48 PM To: sqr-users@sqrug.org Subject: [sqr-users] Reading from a tab delimited file Hello, =20 I'm trying to read from a tab delimited .txt file and insert values into va= riables. I do not now know what the length of each field within the file is. Could someone provide an example that would allow me to start at the beginn= ing of a line, read from the beginning to the first tab, insert into a vari= able; read from the first tab to second tab, insert into a variable.....and= so on... =20 thanks =20 =20 The information contained in this email is strictly confidential and subjec= t to the Confidentiality Notice at http://www.stratosglobal.com/email-priva= cy.html _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Oct 06 10:38:52 2006 Date: Fri, 6 Oct 2006 09:36:03 -0500 From: "Bob Helm" Subject: [sqr-users] barcode limits - sqr6 If I understand barcodes in sqr, there is a limit of 30 characters that can= be encoded into a barcode.=20 Is this correct, or can I fit a lot more data into a barcode? Thanks for any info, Bob Mediware Information Systems, Inc. Medication Management Division bob.helm@mediware.com This message (including any attachments) constitutes a confidential communi= cation and/or contains confidential information intended for a specific ind= ividual and purpose, and is protected by law. If you are not the intended= recipient, please notify the sender by return email and delete this messag= e and any attachments. Any disclosure, copying, or distribution of this me= ssage, or the taking of any action based on it, is strictly prohibited. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Oct 06 10:47:47 2006 Subject: RE: [sqr-users] barcode limits - sqr6 Date: Fri, 6 Oct 2006 09:45:33 -0500 From: "Knapp, Richard" It depends on the type of barcode but 30 characters is the upper limit for all types in the 4.3 documentation. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Bob Helm Sent: Friday, October 06, 2006 9:36 AM To: SQR Users (E-mail) Subject: [sqr-users] barcode limits - sqr6 If I understand barcodes in sqr, there is a limit of 30 characters that can be encoded into a barcode.=20 Is this correct, or can I fit a lot more data into a barcode? Thanks for any info, Bob Mediware Information Systems, Inc. Medication Management Division bob.helm@mediware.com This message (including any attachments) constitutes a confidential communication and/or contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please notify the sender by return email and delete this message and any attachments. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Oct 06 11:10:19 2006 Date: Fri, 06 Oct 2006 11:07:59 -0400 From: Donald Mellen Subject: Re: [sqr-users] barcode limits - sqr6 Yes, in SQR 6.x, 30 characters is the upper limit for the following barcodes ... 3 of 9 (code 39) Extended 3 of 9 Interleaved 2 of 5 Code 128 Codabar MSI Plessey Code 93 Extended 93 HIBC these limits were raised to 100 in sqr 8.2 HTH, Don Bob Helm wrote: > If I understand barcodes in sqr, there is a limit of 30 characters that can be encoded into a barcode. > Is this correct, or can I fit a lot more data into a barcode? > > Thanks for any info, > Bob > > > > Mediware Information Systems, Inc. > Medication Management Division > bob.helm@mediware.com > > This message (including any attachments) constitutes a confidential communication and/or contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please notify the sender by return email and delete this message and any attachments. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > -- ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Oct 09 11:28:54 2006 Date: Mon, 9 Oct 2006 08:26:10 -0700 (PDT) From: sagar minn Subject: [sqr-users] printing Landscape Legal size paper Hi, I'm trying to print to Legal Size paper in landscape. But unalbe to do so. I'm using sqr 8.2 nd trying to print to HP laser printer. Any help is greatly appreciated. Thanks Sagar --------------------------------- Stay in the know. Pulse on the new Yahoo.com. Check it out. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Oct 09 11:41:45 2006 Subject: RE: [sqr-users] printing Landscape Legal size paper Date: Mon, 9 Oct 2006 10:39:09 -0500 From: "Aguirre, Jose" I have not seen an .SQC with Legal size settings - but you could append -ZI= V in the SQR flag in the process definition options panel/page. This way -= SQR VIEWER will be invoked in order to print the format desired. Jos=E9 A. Aguirre -----Original Message----- From: sqr-users-bounces+jaguir=3Dlsuhsc.edu@sqrug.org [mailto:sqr-users-bou= nces+jaguir=3Dlsuhsc.edu@sqrug.org] On Behalf Of sagar minn Sent: Monday, October 09, 2006 10:26 AM To: sqr-users@sqrug.org Subject: [sqr-users] printing Landscape Legal size paper Hi, =20=20=20 I'm trying to print to Legal Size paper in landscape. But unalbe to do so= . I'm using sqr 8.2 nd trying to print to HP laser printer. Any help is gre= atly appreciated. Thanks =20=20=20 Sagar =20=09=09 --------------------------------- Stay in the know. Pulse on the new Yahoo.com. Check it out.=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Oct 09 11:47:13 2006 Subject: RE: [sqr-users] printing Landscape Legal size paper Date: Mon, 9 Oct 2006 10:44:50 -0500 From: "Knapp, Richard" Or you could prepend the printer control sequences that select the legal pa= per tray to your text document if you are _NOT_ printing from a windows env= ironment. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-b= ounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Aguirre, Jose Sent: Monday, October 09, 2006 10:39 AM To: This list is for discussion about the SQR database reportinglanguage fr= omHyperion Solutions. Subject: RE: [sqr-users] printing Landscape Legal size paper I have not seen an .SQC with Legal size settings - but you could append -ZI= V in the SQR flag in the process definition options panel/page. This way -= SQR VIEWER will be invoked in order to print the format desired. Jos=E9 A. Aguirre -----Original Message----- From: sqr-users-bounces+jaguir=3Dlsuhsc.edu@sqrug.org [mailto:sqr-users-bou= nces+jaguir=3Dlsuhsc.edu@sqrug.org] On Behalf Of sagar minn Sent: Monday, October 09, 2006 10:26 AM To: sqr-users@sqrug.org Subject: [sqr-users] printing Landscape Legal size paper Hi, =20=20=20 I'm trying to print to Legal Size paper in landscape. But unalbe to do so= . I'm using sqr 8.2 nd trying to print to HP laser printer. Any help is gre= atly appreciated. Thanks =20=20=20 Sagar =20=09=09 --------------------------------- Stay in the know. Pulse on the new Yahoo.com. Check it out.=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 Mon Oct 09 11:58:47 2006 Date: Mon, 9 Oct 2006 08:55:52 -0700 (PDT) From: sagar minn Subject: RE: [sqr-users] printing Landscape Legal size paper I'm using the following script in my code and I'm using unix declare-layout landscape2 paper-size= (8.5,14,legal) orientation = landscape top-margin = 0.2 bottom-margin = 0.05 left-margin = 0.25 max-columns = 260 char-width = 4.32 line-height = 10 end-declare but somehow when I run it the pdf report generated is still in portrait and letter. Is there any default settings which must be overwritten. Thanks Vinil Vinil --------------------------------- How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Oct 09 12:03:42 2006 Subject: RE: [sqr-users] printing Landscape Legal size paper Date: Mon, 9 Oct 2006 11:01:16 -0500 From: "Knapp, Richard" Sorry. I thought you were trying to get the printer to print legal landscape. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of sagar minn Sent: Monday, October 09, 2006 10:56 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] printing Landscape Legal size paper I'm using the following script in my code and I'm using unix declare-layout landscape2 paper-size=3D (8.5,14,legal) orientation =3D landscape top-margin =3D 0.2 bottom-margin =3D 0.05 left-margin =3D 0.25 max-columns =3D 260 char-width =3D 4.32 line-height =3D 10 end-declare but somehow when I run it the pdf report generated is still in portrait and letter. Is there any default settings which must be overwritten. =20=20=20 Thanks =20=20=20 Vinil =20=20=20 Vinil =20=09=09 --------------------------------- How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call rates. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Oct 09 13:20:12 2006 Date: Mon, 9 Oct 2006 10:17:32 -0700 (PDT) From: sagar minn Subject: RE: [sqr-users] printing Landscape Legal size paper Hi Richard, Sorry for confusing you and everyone else. I'm actually trying to get the printer to print legal landscape. Can you send me an example script for the printer control sequences Thanks Sagar --------------------------------- How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Oct 09 15:14:55 2006 Subject: RE: [sqr-users] printing Landscape Legal size paper Date: Mon, 9 Oct 2006 14:12:43 -0500 From: "Knapp, Richard" Sagar, I looked but could not find an example although I have done this myself. My contribution has been wiped from the collective memory. How quickly they forget. As long as your printer is an HP or speaks HP Printer Control Language (many do) and you are not printing via a windows machine, you can begin your document with PCL control sequences. You can look these up on the HP web site. They allow you to control any of the features the printer(s) support. All sequences employ the escape character which you can encode with chr(27). Everything else in the sequence must be verbatim as it appears in the HP documentation - caps are caps, etc.. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of sagar minn Sent: Monday, October 09, 2006 12:18 PM To: sqr users Subject: RE: [sqr-users] printing Landscape Legal size paper Hi Richard, =20=20=20 Sorry for confusing you and everyone else. =20=20=20 I'm actually trying to get the printer to print legal landscape. =20=20=20 Can you send me an example script for the printer control sequences=20 Thanks =20=20=20 Sagar =20=09=09 --------------------------------- How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call rates. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Oct 09 15:22:21 2006 Subject: RE: [sqr-users] printing Landscape Legal size paper Date: Mon, 9 Oct 2006 14:19:36 -0500 From: "Bob Helm" I think this would work... In some kind of initialization procedure: encode '<27>&l3A' into $legal_size Then let it be the very first thing you print: print $legal_size (1,1) HTH, Bob -----Original Message----- From: sqr-users-bounces+bob.helm=3Dmediware.com@sqrug.org [mailto:sqr-users-bounces+bob.helm=3Dmediware.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Monday, October 09, 2006 2:13 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] printing Landscape Legal size paper Sagar, I looked but could not find an example although I have done this myself. My contribution has been wiped from the collective memory. How quickly they forget. As long as your printer is an HP or speaks HP Printer Control Language (many do) and you are not printing via a windows machine, you can begin your document with PCL control sequences. You can look these up on the HP web site. They allow you to control any of the features the printer(s) support. All sequences employ the escape character which you can encode with chr(27). Everything else in the sequence must be verbatim as it appears in the HP documentation - caps are caps, etc.. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of sagar minn Sent: Monday, October 09, 2006 12:18 PM To: sqr users Subject: RE: [sqr-users] printing Landscape Legal size paper Hi Richard, =20=20=20 Sorry for confusing you and everyone else. =20=20=20 I'm actually trying to get the printer to print legal landscape. =20=20=20 Can you send me an example script for the printer control sequences=20 Thanks =20=20=20 Sagar =20=09=09 --------------------------------- How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call rates. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Oct 09 15:26:15 2006 Subject: RE: [sqr-users] printing Landscape Legal size paper Date: Mon, 9 Oct 2006 12:22:06 -0700 From: "McCown, Larry" Below is the code I use for landscape. Not sure if you could just change the Paper-size to (11, 14) for legal? Hope this helps Larry begin-setup DECLARE-LAYOUT DEFAULT PAPER-SIZE =3D (11, 8.5) ORIENTATION =3D LANDSCAPE LEFT-MARGIN =3D 0.25 TOP-MARGIN =3D 0.50 RIGHT-MARGIN =3D 0.05=20=20 bottom-margin =3D 0.05=20 END-DECLARE DECLARE-PRINTER HPLASERJET TYPE =3D HPLASERJET=20=20=20=20 POINT-SIZE =3D 6 END-DECLARE Declare-Image LOGO=20 TYPE =3D BMP-FILE SOURCE =3D 'f:\sqr4\LOGO.BMP' IMAGE-SIZE =3D (25,3)=20 END-DECLARE #DEFINE WIDTH 156 #DEFINE HEADLINERS 5 #DEFINE FOOTLINES 5 !#sqr-max-lines=20 end-setup -----Original Message----- From: sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org [mailto:sqr-users-bounces+larry.mccown=3Dngc.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Monday, October 09, 2006 12:13 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] printing Landscape Legal size paper Sagar, I looked but could not find an example although I have done this myself. My contribution has been wiped from the collective memory. How quickly they forget. As long as your printer is an HP or speaks HP Printer Control Language (many do) and you are not printing via a windows machine, you can begin your document with PCL control sequences. You can look these up on the HP web site. They allow you to control any of the features the printer(s) support. All sequences employ the escape character which you can encode with chr(27). Everything else in the sequence must be verbatim as it appears in the HP documentation - caps are caps, etc.. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of sagar minn Sent: Monday, October 09, 2006 12:18 PM To: sqr users Subject: RE: [sqr-users] printing Landscape Legal size paper Hi Richard, =20=20=20 Sorry for confusing you and everyone else. =20=20=20 I'm actually trying to get the printer to print legal landscape. =20=20=20 Can you send me an example script for the printer control sequences Thanks =20=20=20 Sagar =20=09=09 --------------------------------- How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call rates. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Oct 09 17:13:27 2006 Date: Mon, 9 Oct 2006 17:10:31 -0400 From: "Vaidyanathan, Ramakrishnan \(GE, Corporate, consultant\)" Subject: [sqr-users] Invoking dos commands thru sqr Hi All, Iam trying to use a dos sort command in sqr. it shud sort the file a= nd redirect the output to another file. I tried but its not working for me. Let $cmd_sort =3D 'Sort /+16 ' || $file1 || '>' || $file2 Iam not getting any error msg. The file is not sorted and iam not getting a= ny sorted output file. Please help Thanks Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Oct 09 17:27:56 2006 Subject: RE: [sqr-users] Invoking dos commands thru sqr Date: Mon, 9 Oct 2006 16:25:48 -0500 From: "Knapp, Richard" Invoke the command interpreter with the /C flag so let $cmd =3D cmd /C ... (your commands) Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Monday, October 09, 2006 4:11 PM To: sqr-users@sqrug.org Subject: [sqr-users] Invoking dos commands thru sqr Hi All, Iam trying to use a dos sort command in sqr. it shud sort the file and redirect the output to another file. I tried but its not working for me. Let $cmd_sort =3D 'Sort /+16 ' || $file1 || '>' || $file2 Iam not getting any error msg. The file is not sorted and iam not getting any sorted output file. Please help Thanks Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Oct 09 17:47:54 2006 Subject: RE: [sqr-users] Invoking dos commands thru sqr Date: Mon, 9 Oct 2006 17:45:08 -0400 From: "Vaidyanathan, Ramakrishnan \(GE, Corporate, consultant\)" I tried that also now its putting a blank sorted file..There is no data in = the second file.. Let $cmd =3D '/C Sort /+16 ' || $file1 || '>' || $file2 -----Original Message----- From: sqr-users-bounces+ramakrishnan.vaidyanathan=3Dge.com@sqrug.org [mailto:sqr-users-bounces+ramakrishnan.vaidyanathan=3Dge.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Monday, October 09, 2006 5:26 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Invoking dos commands thru sqr Invoke the command interpreter with the /C flag so let $cmd =3D cmd /C ... (your commands) Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Monday, October 09, 2006 4:11 PM To: sqr-users@sqrug.org Subject: [sqr-users] Invoking dos commands thru sqr Hi All, Iam trying to use a dos sort command in sqr. it shud sort the file and redirect the output to another file. I tried but its not working for me. Let $cmd_sort =3D 'Sort /+16 ' || $file1 || '>' || $file2 Iam not getting any error msg. The file is not sorted and iam not getting any sorted output file. Please help Thanks Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Oct 09 21:13:56 2006 Subject: RE: [sqr-users] Invoking dos commands thru sqr Date: Mon, 9 Oct 2006 20:11:06 -0500 From: "Jim Womeldorf" I have had the best luck pointing the command to the correct folder something like this: LET $PATH =3D GETENV('comspec') LET #L =3D LENGTH($PATH) WHILE 1 IF SUBSTR($PATH, #L,1) =3D '\' BREAK END-IF LET #L =3D #L - 1 END-WHILE LET $PATH =3D SUBSTR($PATH,1,#L) LET $CMD =3D $path || 'Sort /+16 ' || $file1 || '>' || $file2 Jim =20=20 -----Original Message----- From: sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org] On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate, consultant) Sent: Monday, October 09, 2006 4:45 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] Invoking dos commands thru sqr I tried that also now its putting a blank sorted file..There is no data in the second file.. Let $cmd =3D '/C Sort /+16 ' || $file1 || '>' || $file2 -----Original Message----- From: sqr-users-bounces+ramakrishnan.vaidyanathan=3Dge.com@sqrug.org [mailto:sqr-users-bounces+ramakrishnan.vaidyanathan=3Dge.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Monday, October 09, 2006 5:26 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Invoking dos commands thru sqr Invoke the command interpreter with the /C flag so let $cmd =3D cmd /C ... (your commands) Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Monday, October 09, 2006 4:11 PM To: sqr-users@sqrug.org Subject: [sqr-users] Invoking dos commands thru sqr Hi All, Iam trying to use a dos sort command in sqr. it shud sort the file and redirect the output to another file. I tried but its not working for me. Let $cmd_sort =3D 'Sort /+16 ' || $file1 || '>' || $file2 Iam not getting any error msg. The file is not sorted and iam not getting any sorted output file. Please help Thanks Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Oct 10 08:19:12 2006 From: "Bambach, Tom" Subject: RE: [sqr-users] Invoking dos commands thru sqr Date: Tue, 10 Oct 2006 08:15:43 -0400 Below procedure works on Windows & UNIX Input file must be closed first begin-procedure sort-file let $syscmd = 'sort ' || $dat_file_tmpx || ' /O ' || $dat_file_tmps display $syscmd CALL SYSTEM USING $syscmd #stat WAIT if #stat <> 0 : : : end-procedure sort-file -----Original Message----- From: Vaidyanathan, Ramakrishnan (GE, Corporate, consultant) [mailto:ramakrishnan.vaidyanathan@ge.com] Sent: Monday, October 09, 2006 5:11 PM To: sqr-users@sqrug.org Subject: [sqr-users] Invoking dos commands thru sqr Hi All, Iam trying to use a dos sort command in sqr. it shud sort the file and redirect the output to another file. I tried but its not working for me. Let $cmd_sort = 'Sort /+16 ' || $file1 || '>' || $file2 Iam not getting any error msg. The file is not sorted and iam not getting any sorted output file. Please help Thanks Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Oct 10 09:32:57 2006 Date: Tue, 10 Oct 2006 06:30:04 -0700 From: David Donnelly Subject: [sqr-users] Re: Invoking dos commands thru sqr Ram, Here are some ideas. First, please display $cmd_sort so we can see that your filenames are properly constructed. Next, how are you executing this? Are you waiting for the sort to finish? call system using $cmd_sort #statusvar wait ?? Did you check the statusvar value? Sometimes I have better luck using a batch file containing start/wait commands, and invoking the batch file. What is the file you are trying to sort? If it's one you're making in the current SQR, did you close it first? If you don't have good results yet, use a simpler, short dos command (like 'dir') as a test and see if you get the output. This will help isolate whether the problem is in the invocation, or in the filename and sort command. Try it without the > $file2 redirection and see if you see the output. Dave Dave Donnelly ISIS BioComp phone (951) 677-2446 fax (775) 314-7897 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Oct 10 10:48:39 2006 Date: Tue, 10 Oct 2006 07:45:55 -0700 (PDT) From: sagar minn Subject: RE: [sqr-users] printing Landscape Legal size paper Hi, Thank you all for your response, using your suggestio9n I got one part of my report working, I was able to change my report orientation to landscape and paper size to legal. Now second part: I'm still not able to print in legal size landscape orientation, when I print the pdf report created from my sqr program it generates a letter size landscape orientation page. I'm printing this report from a windows machine, while the sqr runs on a unix platform. Also I include the following flag in my run command sqrt -PRINTER :PD --> which causes printer type to be PDF I don't know if this s causing problem.. Thanks again. Sagar --------------------------------- How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Oct 10 11:13:21 2006 From: "Kim Meyrowitz" Date: Tue, 10 Oct 2006 11:10:40 -0400 Subject: [sqr-users] #current-column This doesn't seem like this should be a hard issue but I have two pieces of text that I am trying to print. Basically, the text had to be split up due to data constraints, but I want to display it as if it was one continous line... Example: start of text 1 5.00 63.00 45.00 xxxxxxxx start of text 2 here What happens with my stuff is that it starts printing on top of text that is already there. I tried using #currrent-column (even adding +10 to it), but it still overwrites existing text. Here is a code snippet I have been working with... while #arr_cnt <= 0 let comments = cmmts.prtl_string(1) if $is_doc = 'Y' let $hdr_dscr = ' ' let $hdr_dscr = $comments||{CR_CODE}||$hdr_dscr end-if if #arr_cnt <= 0 let #start_column = {PURPOSE_X} let #start_line = {PURPOSE_Y} else let #start_column = #current-column + 10 let #start_line = #current-line end-if do wrap_with_cr($hdr_dscr, #start_line, #start_column, 100, {MAX_PURPOSE_LINES_P1}, 1, 8, 'regular', 5, 8, 'F', $addl_purpose) print 'HERE I AM ' () (note, this line keeps over writing existing text, even when I tried inserting the current-column and/or added an additional value to to the current-column to make it move over) let #arr_cnt = #arr_cnt + 1 end-while When I have displayed the value of the current column, it does change - for example it will enter the wrap_with_cr procedure with a value of 10 and before I print 'HERE I AM', it will have a value of 27, but that still over writes text. Seems like an simple task, so why is it overwritting stuff? Thanks in advance! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Oct 11 10:22:13 2006 Date: Wed, 11 Oct 2006 07:19:25 -0700 (PDT) From: prashanth reddy Subject: [sqr-users] same file different directories Hi, I'm working on interface where it writes 4 files to one directory. My requirement is writing one of the 4 files in two different places. Ex: file1, file2, file 3 and file4 are written in c:\data, file3 should also be written in c:\data\new. Thanks & Regards Prashanth __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Oct 11 10:29:33 2006 Subject: RE: [sqr-users] same file different directories Date: Wed, 11 Oct 2006 15:26:44 +0100 From: "Simpson, Don I \(UK\)" Prashanth, Either open 2 file channels to the "two paths" file and WRITE to both (i.e. file3 and file5), or WRITE to one, then after closing it, use system commands to copy the file to the other. Regards, Don Simpson BAE Systems -----Original Message----- From: sqr-users-bounces+don.i.simpson=3Dbaesystems.com@sqrug.org [mailto:sqr-users-bounces+don.i.simpson=3Dbaesystems.com@sqrug.org] On Behalf Of prashanth reddy Sent: 11 October 2006 15:19 To: sqr-users@sqrug.org Subject: [sqr-users] same file different directories *** WARNING *** This mail has originated outside your organization, either from an external partner or the Global Internet.=20 Keep this in mind if you answer this message.=20 Hi, I'm working on interface where it writes 4 files to one directory. My requirement is writing one of the 4 files in two different places. Ex: file1, file2, file 3 and file4 are written in c:\data, file3 should also be written in c:\data\new.=20 Thanks & Regards Prashanth=20 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Oct 11 10:55:26 2006 From: "the dragon" Subject: RE: [sqr-users] same file different directories Date: Wed, 11 Oct 2006 09:52:40 -0500 OK... so explicitly names the paths.... And quit using that crappy Windoze OS :-D peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hi, I'm working on interface where it writes 4 files to one directory. My requirement is writing one of the 4 files in two different places. Ex: file1, file2, file 3 and file4 are written in c:\data, file3 should also be written in c:\data\new. Thanks & Regards Prashanth _________________________________________________________________ All-in-one security and maintenance for your PC.  Get a free 90-day trial! http://clk.atdmt.com/MSN/go/msnnkwlo0050000001msn/direct/01/?href=http://www.windowsonecare.com/?sc_cid=msn_hotmail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Oct 11 17:14:44 2006 Date: Wed, 11 Oct 2006 17:11:59 -0400 From: "Vaidyanathan, Ramakrishnan \(GE, Corporate, consultant\)" Subject: [sqr-users] Encountering an error... Hi All, Iam executing a sqr and the program takes long time to complete. In betwee= n the sqr errors out saying "(SQR 3725) Bad Return Fetching Row From The Da= tabase". Iam not encountering this error every time. This happens occasionally. Coul= d u pls tell what could be the possible reason? Thanks In Advance Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Oct 11 17:23:48 2006 Subject: Re: [sqr-users] Encountering an error... From: Kaz.Narayanan@averydennison.com Date: Wed, 11 Oct 2006 14:14:44 -0700 Vaidyanathan, Your select statements in the SQR could be 1. a Cartesian product. 2. The extents in the Database is not enough. talk to your DBA. Regards K.M.Narayanan "Vaidyanathan, Ramakrishnan \(GE, Corporate, consultant\)" Sent by: sqr-users-bounces+kaz.narayanan=averydennison.com@sqrug.org 10/11/2006 02:11 PM Please respond to "This list is for discussion about the SQR database reporting language from Hyperion Solutions." To: cc: Subject: [sqr-users] Encountering an error... Hi All, Iam executing a sqr and the program takes long time to complete. In between the sqr errors out saying "(SQR 3725) Bad Return Fetching Row From The Database". Iam not encountering this error every time. This happens occasionally. Could u pls tell what could be the possible reason? Thanks In Advance Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users -------------------------------- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Oct 11 17:31:06 2006 Subject: RE: [sqr-users] Encountering an error... Date: Wed, 11 Oct 2006 17:28:14 -0400 From: "Vaidyanathan, Ramakrishnan \(GE, Corporate, consultant\)" But the same sqr works fine other times...Iam getting this some times... -----Original Message-----=0D From: sqr-users-bounces+ramakrishnan.vaidyanathan=3Dge.com@sqrug.org [mailto:sqr-users-bounces+ramakrishnan.vaidyanathan=3Dge.com@sqrug.org]On Behalf Of Kaz.Narayanan@averydennison.com Sent: Wednesday, October 11, 2006 5:15 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] Encountering an error... Vaidyanathan, Your select statements in the SQR could be 1. a Cartesian product. 2. The extents in the Database is not enough. talk to your DBA. Regards K.M.Narayanan "Vaidyanathan, Ramakrishnan \(GE, Corporate, consultant\)"=20 Sent by: sqr-users-bounces+kaz.narayanan=3Daverydennison.com@sqrug.org 10/11/2006 02:11 PM Please respond to "This list is for discussion about the SQR database=20 reporting language from Hyperion Solutions." =20 To: cc:=20 Subject: [sqr-users] Encountering an error... Hi All, Iam executing a sqr and the program takes long time to complete. In=20 between the sqr errors out saying "(SQR 3725) Bad Return Fetching Row From= =20 The Database". Iam not encountering this error every time. This happens occasionally.=20 Could u pls tell what could be the possible reason? Thanks In Advance Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users -------------------------------- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Oct 11 18:06:04 2006 From: "the dragon" Subject: RE: [sqr-users] Encountering an error... Date: Wed, 11 Oct 2006 17:03:24 -0500 you connection is timing out or your rollback segment is filling up. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hi All, Iam executing a sqr and the program takes long time to complete. In between the sqr errors out saying "(SQR 3725) Bad Return Fetching Row From The Database". Iam not encountering this error every time. This happens occasionally. Could u pls tell what could be the possible reason? Thanks In Advance Ram _________________________________________________________________ Search—Your way, your world, right now! http://imagine-windowslive.com/minisites/searchlaunch/?locale=en-us&FORM=WLMTAG _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Oct 11 18:09:28 2006 From: "the dragon" Subject: RE: [sqr-users] Encountering an error... Date: Wed, 11 Oct 2006 17:05:47 -0500 from an oracle perspective, if you're using a shared temp table space, and something else is running, you could be running out of space. Most DBAs will *NOT* extend this because in most cases it's not required - check your code - maybe have the dba do an explain plan on it, or choose a time when other proceses are not running. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- But the same sqr works fine other times...Iam getting this some times... -----Original Message----- Vaidyanathan, Your select statements in the SQR could be 1. a Cartesian product. 2. The extents in the Database is not enough. talk to your DBA. Regards K.M.Narayanan _________________________________________________________________ Be seen and heard with Windows Live Messenger and Microsoft LifeCams http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://www.microsoft.com/hardware/digitalcommunication/default.mspx?locale=en-us&source=hmtagline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Oct 12 09:07:35 2006 Date: Thu, 12 Oct 2006 09:05:05 -0400 From: "White . Denise" Subject: [sqr-users] RE: Encountering an error... Hi Ram, That error message is a kind of generic one, that could mean any one of a number of different things. I have seen this happen in the past due to data contention - when someone was in the system updating data that the program was trying to select. As you can see from the other replies, there are other reasons that could also cause it. Denise M. White EBS Programmer/Analyst III Dynamics Research Corporation ------------------------------ Message: 4 Date: Wed, 11 Oct 2006 17:11:59 -0400 From: "Vaidyanathan, Ramakrishnan \(GE, Corporate, consultant\)" Subject: [sqr-users] Encountering an error... To: Message-ID: =09 Content-Type: text/plain; charset=3D"iso-8859-1" Hi All, Iam executing a sqr and the program takes long time to complete. In between the sqr errors out saying "(SQR 3725) Bad Return Fetching Row =46rom The Database". Iam not encountering this error every time. This happens occasionally. Could u pls tell what could be the possible reason? Thanks In Advance Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Oct 12 09:11:33 2006 Date: Thu, 12 Oct 2006 09:08:21 -0400 From: "Vaidyanathan, Ramakrishnan \(GE, Corporate, consultant\)" Subject: [sqr-users] Reg Num Formatting Hi All, I have a file that has the amounts displayed in the Mainframe format i.e i= t has A's, B's, { etc signs to display the numbers. I have converted it int= o appropriate number values. For eg the result that i get after conversion = is 00728436. I want it to be displayed as 7284.36. Total length of the fiel= d is 8 (6.2) (6 real no and 2 decvimal point.) Is there any edit mask to ac= complish this. Thanks in advance Ram=20=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Oct 12 09:19:05 2006 Date: Thu, 12 Oct 2006 09:16:39 -0400 From: "Larry Roux" Subject: Re: [sqr-users] Reg Num Formatting An easy ( and perhaps not the most elegant) way is: Let #tempvar = ''00728436' Let #tempvar = #tempvar * .01 Let $outvar = edit(#tempvar,'999999.99') Larry Roux Information Systems Syracuse University lroux@syr.edu >>> ramakrishnan.vaidyanathan@ge.com 10/12/2006 9:08 AM >>> Hi All, I have a file that has the amounts displayed in the Mainframe format i.e it has A's, B's, { etc signs to display the numbers. I have converted it into appropriate number values. For eg the result that i get after conversion is 00728436. I want it to be displayed as 7284.36. Total length of the field is 8 (6.2) (6 real no and 2 decvimal point.) Is there any edit mask to accomplish this. Thanks in advance Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Oct 12 09:30:18 2006 From: "Angelika Scheffera" Subject: RE: [sqr-users] Reg Num Formatting Date: Thu, 12 Oct 2006 08:27:22 -0500 Ram, Try this: print #number_var () edit 999999.99 Kind regards, Angelika -----Original Message----- From: sqr-users-bounces+angelika_scheffera=msn.com@sqrug.org [mailto:sqr-users-bounces+angelika_scheffera=msn.com@sqrug.org] On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Thursday, October 12, 2006 8:08 AM To: sqr-users@sqrug.org Subject: [sqr-users] Reg Num Formatting Hi All, I have a file that has the amounts displayed in the Mainframe format i.e it has A's, B's, { etc signs to display the numbers. I have converted it into appropriate number values. For eg the result that i get after conversion is 00728436. I want it to be displayed as 7284.36. Total length of the field is 8 (6.2) (6 real no and 2 decvimal point.) Is there any edit mask to accomplish this. Thanks in advance Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Oct 13 08:09:53 2006 Date: Fri, 13 Oct 2006 08:06:15 -0400 From: "Overcashier, Patricia" Subject: [sqr-users] quickest way to count how many commas are in a string I have a string called $selectlist I need to know how many commas are in it. Once I know I can unstring it by commas into the right number of variables and then use those variables What is the simplest way to get a count of the commas? Thanks! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Oct 13 08:24:53 2006 Subject: RE: [sqr-users] quickest way to count how many commas are in a string Date: Fri, 13 Oct 2006 13:20:43 +0100 From: "Simpson, Don I \(UK\)" I haven't tried this myself, but it should/might work. Copy your string into a second temporary variable. Do a REPLACE on this string to change all ',' to '' (null). Get the length of your original and the "replaced" temporary string. The difference in length is the number of commas. Regards, Don Simpson BAE Systems=20 -----Original Message----- From: sqr-users-bounces+don.i.simpson=3Dbaesystems.com@sqrug.org [mailto:sqr-users-bounces+don.i.simpson=3Dbaesystems.com@sqrug.org] On Behalf Of Overcashier, Patricia Sent: 13 October 2006 13:06 To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] quickest way to count how many commas are in a string *** WARNING *** This mail has originated outside your organization, either from an external partner or the Global Internet.=20 Keep this in mind if you answer this message. I have a string called $selectlist I need to know how many commas are in it. Once I know I can unstring it by commas into the right number of variables and then use those variables What is the simplest way to get a count of the commas? Thanks! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Oct 13 08:39:06 2006 Subject: RE: [sqr-users] quickest way to count how many commas are in a string Date: Fri, 13 Oct 2006 08:34:44 -0400 From: "Peter Burton" Don, Good idea .. Begin-Report Input $A Let #C =3D Length($A) - Length(Replace($A, ',', '')) Show #C End-Report=20 Peter -----Original Message----- From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org] On Behalf Of Simpson, Don I (UK) Sent: Friday, October 13, 2006 8:21 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] quickest way to count how many commas are in a string I haven't tried this myself, but it should/might work. Copy your string into a second temporary variable. Do a REPLACE on this string to change all ',' to '' (null). Get the length of your original and the "replaced" temporary string. The difference in length is the number of commas. Regards, Don Simpson BAE Systems=20 -----Original Message----- From: sqr-users-bounces+don.i.simpson=3Dbaesystems.com@sqrug.org [mailto:sqr-users-bounces+don.i.simpson=3Dbaesystems.com@sqrug.org] On Behalf Of Overcashier, Patricia Sent: 13 October 2006 13:06 To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] quickest way to count how many commas are in a string *** WARNING *** This mail has originated outside your organization, either from an external partner or the Global Internet.=20 Keep this in mind if you answer this message. I have a string called $selectlist I need to know how many commas are in it. Once I know I can unstring it by commas into the right number of variables and then use those variables What is the simplest way to get a count of the commas? Thanks! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users If you have received this e-mail in error, please delete it and notify the = sender as soon as possible. The contents of this e-mail may be confidential= and the unauthorized use, copying, or dissemination of it and any attachme= nts to it, is prohibited. Internet communications are not secure and Hyperi= on does not, therefore, accept legal responsibility for the contents of thi= s message nor for any damage caused by viruses. The views expressed here do= not necessarily represent those of Hyperion. For more information about Hy= perion, please visit our Web site at: www.hyperion.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Oct 13 08:55:20 2006 Subject: RE: [sqr-users] quickest way to count how many commas are in a string Date: Fri, 13 Oct 2006 18:21:07 +0530 From: Cool Trick... Kaushik -----Original Message----- From: sqr-users-bounces+r.kaushik=3Diflexsolutions.com@sqrug.org [mailto:sqr-users-bounces+r.kaushik=3Diflexsolutions.com@sqrug.org] On Behalf Of Peter Burton Sent: Friday, October 13, 2006 6:05 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] quickest way to count how many commas are in a string Don, Good idea .. Begin-Report Input $A Let #C =3D Length($A) - Length(Replace($A, ',', '')) Show #C End-Report=20 Peter -----Original Message----- From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org] On Behalf Of Simpson, Don I (UK) Sent: Friday, October 13, 2006 8:21 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] quickest way to count how many commas are in a string I haven't tried this myself, but it should/might work. Copy your string into a second temporary variable. Do a REPLACE on this string to change all ',' to '' (null). Get the length of your original and the "replaced" temporary string. The difference in length is the number of commas. Regards, Don Simpson BAE Systems=20 -----Original Message----- From: sqr-users-bounces+don.i.simpson=3Dbaesystems.com@sqrug.org [mailto:sqr-users-bounces+don.i.simpson=3Dbaesystems.com@sqrug.org] On Behalf Of Overcashier, Patricia Sent: 13 October 2006 13:06 To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] quickest way to count how many commas are in a string *** WARNING *** This mail has originated outside your organization, either from an external partner or the Global Internet.=20 Keep this in mind if you answer this message. I have a string called $selectlist I need to know how many commas are in it. Once I know I can unstring it by commas into the right number of variables and then use those variables What is the simplest way to get a count of the commas? Thanks! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users If you have received this e-mail in error, please delete it and notify the sender as soon as possible. The contents of this e-mail may be confidential and the unauthorized use, copying, or dissemination of it and any attachments to it, is prohibited. Internet communications are not secure and Hyperion does not, therefore, accept legal responsibility for the contents of this message nor for any damage caused by viruses. The views expressed here do not necessarily represent those of Hyperion. For more information about Hyperion, please visit our Web site at: www.hyperion.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users DISCLAIMER: This message contains privileged and confidential information and is intend= ed only for the individual named.If you are not the intended recipient you = should not disseminate,distribute,store,print, copy or deliver this message= .Please notify the sender immediately by e-mail if you have received this e= -mail by mistake and delete this e-mail from your system.E-mail transmissio= n cannot be guaranteed to be secure or error-free as information could be i= ntercepted,corrupted,lost,destroyed,arrive late or incomplete or contain vi= ruses.The sender therefore does not accept liability for any errors or omis= sions in the contents of this message which arise as a result of e-mail tra= nsmission. If verification is required please request a hard-copy version. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Oct 13 08:58:56 2006 Subject: RE: [sqr-users] quickest way to count how many commas are in a string Date: Fri, 13 Oct 2006 08:55:03 -0400 From: "Overcashier, Patricia" Excellent! Works like a charm! Thanks! -----Original Message----- From: sqr-users-bounces+patricia.overcashier=3Daam.com@sqrug.org [mailto:sqr-users-bounces+patricia.overcashier=3Daam.com@sqrug.org] On Behalf Of Peter Burton Sent: Friday, October 13, 2006 8:35 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] quickest way to count how many commas are in a string Don, Good idea .. Begin-Report Input $A Let #C =3D Length($A) - Length(Replace($A, ',', '')) Show #C End-Report=20 Peter -----Original Message----- From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org] On Behalf Of Simpson, Don I (UK) Sent: Friday, October 13, 2006 8:21 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] quickest way to count how many commas are in a string I haven't tried this myself, but it should/might work. Copy your string into a second temporary variable. Do a REPLACE on this string to change all ',' to '' (null). Get the length of your original and the "replaced" temporary string. The difference in length is the number of commas. Regards, Don Simpson BAE Systems=20 -----Original Message----- From: sqr-users-bounces+don.i.simpson=3Dbaesystems.com@sqrug.org [mailto:sqr-users-bounces+don.i.simpson=3Dbaesystems.com@sqrug.org] On Behalf Of Overcashier, Patricia Sent: 13 October 2006 13:06 To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] quickest way to count how many commas are in a string *** WARNING *** This mail has originated outside your organization, either from an external partner or the Global Internet.=20 Keep this in mind if you answer this message. I have a string called $selectlist I need to know how many commas are in it. Once I know I can unstring it by commas into the right number of variables and then use those variables What is the simplest way to get a count of the commas? Thanks! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users If you have received this e-mail in error, please delete it and notify the sender as soon as possible. The contents of this e-mail may be confidential and the unauthorized use, copying, or dissemination of it and any attachments to it, is prohibited. Internet communications are not secure and Hyperion does not, therefore, accept legal responsibility for the contents of this message nor for any damage caused by viruses. The views expressed here do not necessarily represent those of Hyperion. For more information about Hyperion, please visit our Web site at: www.hyperion.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Oct 13 09:07:03 2006 From: "the dragon" Subject: RE: [sqr-users] quickest way to count how many commas are in a string Date: Fri, 13 Oct 2006 08:03:39 -0500 I guess my question is why would you need this? A comma deliminated file should always have the same number of commas in it, for every row. If not, you wouldn't really know what data goes with what variable anyway, and that statement goes if you don't know how many commas are in the row of data. If I have the row Clark, the dragon, Willis, 48, PeopleSloth Admin and any of those commas were missing, I wouldn't know what values would get placed into the corresponding variables, because I would never know which comma was missing. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- I have a string called $selectlist I need to know how many commas are in it. Once I know I can unstring it by commas into the right number of variables and then use those variables What is the simplest way to get a count of the commas? Thanks! _________________________________________________________________ The next generation of Search—say hello! http://imagine-windowslive.com/minisites/searchlaunch/?locale=en-us&FORM=WLMTAG _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Oct 13 09:14:33 2006 Subject: RE: [sqr-users] quickest way to count how many commas are in a string Date: Fri, 13 Oct 2006 09:11:52 -0400 From: "Overcashier, Patricia" The variable that I am dissecting does not come from a file.=20 I need to know how many columns are in the primary index for the record name in the audit table. Through a previous query, all of the column names of the primary index for the record are in one variable. I am splitting them out and then using them as separate columns in a dynamic select statement. Hope that helps clarify it. -----Original Message----- From: sqr-users-bounces+patricia.overcashier=3Daam.com@sqrug.org [mailto:sqr-users-bounces+patricia.overcashier=3Daam.com@sqrug.org] On Behalf Of the dragon Sent: Friday, October 13, 2006 9:04 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] quickest way to count how many commas are in a string I guess my question is why would you need this? A comma deliminated file=20 should always have the same number of commas in it, for every row. If not,=20 you wouldn't really know what data goes with what variable anyway, and that=20 statement goes if you don't know how many commas are in the row of data. If I have the row Clark, the dragon, Willis, 48, PeopleSloth Admin and any=20 of those commas were missing, I wouldn't know what values would get placed=20 into the corresponding variables, because I would never know which comma was=20 missing. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your=20 services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be=20 recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you=20 can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- I have a string called $selectlist I need to know how many commas are in it. Once I know I can unstring it by commas into the right number of variables and then use those variables What is the simplest way to get a count of the commas? Thanks! _________________________________________________________________ The next generation of Search-say hello!=20=20 http://imagine-windowslive.com/minisites/searchlaunch/?locale=3Den-us&FORM =3DWLMTAG _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Oct 13 10:30:54 2006 Date: Fri, 13 Oct 2006 10:27:41 -0400 From: "George Jansen" Subject: RE: [sqr-users] quickest way to count how many commas are in a string It seems to me that the route SQL -> string -> SQL is a bit cumbersome. You have a dynamic select statement, but what are you selecting? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Oct 13 11:05:32 2006 Date: Fri, 13 Oct 2006 11:02:50 -0400 From: "Vaidyanathan, Ramakrishnan \(GE, Corporate, consultant\)" Subject: [sqr-users] Edit mask Hi All Is there any way to edit mask the number such that the last 2 digits shud = always be a decimal portion. For eg if i have a number 1234 then it shud be= masked in suach a way that the result shud be 12.34. If the no is 123456 t= hen result shud be 1234.56. Is there any way to acheive this? Thanks In Advance Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Oct 13 12:26:21 2006 Date: Fri, 13 Oct 2006 13:23:53 -0300 From: "PeterG Clark" Subject: Re: [sqr-users] Edit mask Larry Roux provided the solution. Let #tempvar =3D ''00728436' Let #tempvar =3D #tempvar * .01=20=20 Let $outvar =3D edit(#tempvar,'999999.99') I'll try to explain in simple terms. Multipling by .01 moves the implied decimal within the variable to the seco= nd position. Then when edited as above or with a print command, the decimal= point will print where you are wanting it. example: your field (let's call it #field) contains "00728436^" (^ =3D implied de= cimal position) "let #field =3D #field * .01" moves the implied decimal position to "007284= ^36" Then when you edit, the decimal point will print between the 4 and the 3 (w= here the implied decimal position moved to after the multiply) >>> ramakrishnan.vaidyanathan@ge.com 2006/10/13 12:02:50 >>> Hi All Is there any way to edit mask the number such that the last 2 digits shud = always be a decimal portion. For eg if i have a number 1234 then it shud be= masked in suach a way that the result shud be 12.34. If the no is 123456 t= hen result shud be 1234.56. Is there any way to acheive this? Thanks In Advance Ram _______________________________________________ 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 Sat Oct 14 08:26:29 2006 Date: Sat, 14 Oct 2006 17:53:47 +0530 From: Subject: [sqr-users] selecting all rows from a table without specifying the column names Dear all, I would like to know whether I can retrieve all rows of a table using, I do not want to code in all the column names.. Begin-select * =46rom table_name End-select If so , how are the print positions assigned? Thanks in advance for all responses. :) Kaushik _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Oct 16 07:05:38 2006 Date: Mon, 16 Oct 2006 08:02:09 -0300 From: "PeterG Clark" Subject: Re: [sqr-users] selecting all rows from a table without specifying the column names No, you cannot use the asterisk. The SQR reference manual is quite clear on this in the section describing t= he BEGIN-SELECT. >>> R.Kaushik@iflexsolutions.com 2006/10/14 09:23:47 >>> Dear all, I would like to know whether I can retrieve all rows of a table using, I do not want to code in all the column names.. Begin-select * =46rom table_name End-select If so , how are the print positions assigned? Thanks in advance for all responses. :) Kaushik _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Oct 16 08:08:50 2006 Subject: RE: [sqr-users] quickest way to count how many commas are in a string Date: Mon, 16 Oct 2006 08:04:32 -0400 From: "Overcashier, Patricia" You are right. After actually pulling it off, I found an easier way.=20=20 But this is what I was originally trying to do. I was going against the user_ind_columns to get the columns of the primary key to use in a select statement.=20=20 I get the tablename from my audit table (select recname from psaudit), but want to display the primary keys on a report. Begin-select Column_name Table_name $table_name =3D &table_name $column1 =3D &column_name =46rom user_ind_columns Where index_name =3D 'PS_'||$recname Order by column_position End-select Then I use the column names as a dynamic select Begin-select [$column1] [$column2] From=20 [$table_name] End-select There were a lot more twists and turns to get through this, but since then I have recoded and simplified it greatly.=20=20 Thanks all for your help. -----Original Message----- From: sqr-users-bounces+patricia.overcashier=3Daam.com@sqrug.org [mailto:sqr-users-bounces+patricia.overcashier=3Daam.com@sqrug.org] On Behalf Of George Jansen Sent: Friday, October 13, 2006 10:28 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] quickest way to count how many commas are in a string It seems to me that the route SQL -> string -> SQL is a bit cumbersome. You have a dynamic select statement, but what are you selecting? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Oct 16 10:01:41 2006 Date: Mon, 16 Oct 2006 08:58:56 -0500 From: "Kelly Cookson" Subject: [sqr-users] Changing font family and font size line by line Newbie here...=20 I'd like to be able to change the font family and font size on a line by line basis. For example, I'd like to print the first line of a report heading in 14pt Arial font, then print the next line of the heading in 12pt Times New Roman font. How can I do this? Thanks in advance, Kelly _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Oct 16 10:04:48 2006 Date: Mon, 16 Oct 2006 10:00:17 -0400 From: "Vaidyanathan, Ramakrishnan \(GE, Corporate, consultant\)" Subject: [sqr-users] Error encountered Hi All, Iam getting the following error when i execute the below code Error -=20 (SQR 6006) String 2Em - String To Decimal Object Conversion Error=20 Code - BEGIN-SELECT COUNTM &COUNTTMR LET #COUNT =3D &COUNTTMR LET $COUNT =3D ROUND(#COUNT,0) !Others,Matchingrows,302635 Let $WRITE_SUM_LINE =3D 'Others' ||'^'||'Matchingrows'|| '^' || $COUNT Write 99107 From $WRITE_SUM_LINE FROM ( SELECT COUNT(1) COUNTM FROM PS_GE_QA_CMP_LINE_DTL WHERE DRIVER_CODE =3D $upp_filepath ) END-SELECT Thanks in Advance Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Oct 16 10:09:45 2006 Subject: RE: [sqr-users] Error encountered Date: Mon, 16 Oct 2006 09:06:55 -0500 From: "Knapp, Richard" Check the archives. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Monday, October 16, 2006 9:00 AM To: sqr-users@sqrug.org Subject: [sqr-users] Error encountered Hi All, Iam getting the following error when i execute the below code Error -=20 (SQR 6006) String 2Em - String To Decimal Object Conversion Error=20 Code - BEGIN-SELECT COUNTM &COUNTTMR LET #COUNT =3D &COUNTTMR LET $COUNT =3D ROUND(#COUNT,0) !Others,Matchingrows,302635 Let $WRITE_SUM_LINE =3D 'Others' ||'^'||'Matchingrows'|| '^' || $COUNT Write 99107 From $WRITE_SUM_LINE FROM ( SELECT COUNT(1) COUNTM FROM PS_GE_QA_CMP_LINE_DTL WHERE DRIVER_CODE =3D $upp_filepath ) END-SELECT Thanks in Advance Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Oct 16 10:12:52 2006 Subject: RE: [sqr-users] Error encountered Date: Mon, 16 Oct 2006 09:07:10 -0500 From: "Bob Helm" I think it's in the LET $COUNT =3D ROUND(#COUNT,0) line. Maybe try LET $COUNT =3D to_char(ROUND(#COUNT,0)) -----Original Message----- From: sqr-users-bounces+bob.helm=3Dmediware.com@sqrug.org [mailto:sqr-users-bounces+bob.helm=3Dmediware.com@sqrug.org]On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Monday, October 16, 2006 9:00 AM To: sqr-users@sqrug.org Subject: [sqr-users] Error encountered Hi All, Iam getting the following error when i execute the below code Error -=20 (SQR 6006) String 2Em - String To Decimal Object Conversion Error=20 Code - BEGIN-SELECT COUNTM &COUNTTMR LET #COUNT =3D &COUNTTMR LET $COUNT =3D ROUND(#COUNT,0) !Others,Matchingrows,302635 Let $WRITE_SUM_LINE =3D 'Others' ||'^'||'Matchingrows'|| '^' || $COUNT Write 99107 From $WRITE_SUM_LINE FROM ( SELECT COUNT(1) COUNTM FROM PS_GE_QA_CMP_LINE_DTL WHERE DRIVER_CODE =3D $upp_filepath ) END-SELECT Thanks in Advance Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Oct 16 10:16:08 2006 From: "Angelika Scheffera" Subject: RE: [sqr-users] Error encountered Date: Mon, 16 Oct 2006 09:12:10 -0500 Good morning, Instead of using the LET command try using the MOVE command. Kind regards, Angelika -----Original Message----- From: sqr-users-bounces+angelika_scheffera=msn.com@sqrug.org [mailto:sqr-users-bounces+angelika_scheffera=msn.com@sqrug.org] On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Monday, October 16, 2006 9:00 AM To: sqr-users@sqrug.org Subject: [sqr-users] Error encountered Hi All, Iam getting the following error when i execute the below code Error - (SQR 6006) String 2Em - String To Decimal Object Conversion Error Code - BEGIN-SELECT COUNTM &COUNTTMR LET #COUNT = &COUNTTMR LET $COUNT = ROUND(#COUNT,0) !Others,Matchingrows,302635 Let $WRITE_SUM_LINE = 'Others' ||'^'||'Matchingrows'|| '^' || $COUNT Write 99107 From $WRITE_SUM_LINE FROM ( SELECT COUNT(1) COUNTM FROM PS_GE_QA_CMP_LINE_DTL WHERE DRIVER_CODE = $upp_filepath ) END-SELECT Thanks in Advance Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Oct 16 10:19:32 2006 From: "Angelika Scheffera" Subject: RE: [sqr-users] Changing font family and font size line by line Date: Mon, 16 Oct 2006 09:15:46 -0500 Kelly, Lookup the ALTER-PRINTER command. Would go something like this: alter-printer font=4 ! Helvetica point-size=8 ! Font size Kind regards, Angelika -----Original Message----- From: sqr-users-bounces+angelika_scheffera=msn.com@sqrug.org [mailto:sqr-users-bounces+angelika_scheffera=msn.com@sqrug.org] On Behalf Of Kelly Cookson Sent: Monday, October 16, 2006 8:59 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] Changing font family and font size line by line Newbie here... I'd like to be able to change the font family and font size on a line by line basis. For example, I'd like to print the first line of a report heading in 14pt Arial font, then print the next line of the heading in 12pt Times New Roman font. How can I do this? Thanks in advance, Kelly _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Oct 16 10:28:58 2006 Subject: RE: [sqr-users] Error encountered Date: Mon, 16 Oct 2006 10:26:17 -0400 From: "Vaidyanathan, Ramakrishnan \(GE, Corporate, consultant\)" hi all, Even after using to_char function Iam getting the same error. Thanks Ram -----Original Message----- From: sqr-users-bounces+ramakrishnan.vaidyanathan=3Dge.com@sqrug.org [mailto:sqr-users-bounces+ramakrishnan.vaidyanathan=3Dge.com@sqrug.org]On Behalf Of Bob Helm Sent: Monday, October 16, 2006 10:07 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Error encountered I think it's in the LET $COUNT =3D ROUND(#COUNT,0) line. Maybe try LET $COUNT =3D to_char(ROUND(#COUNT,0)) -----Original Message----- From: sqr-users-bounces+bob.helm=3Dmediware.com@sqrug.org [mailto:sqr-users-bounces+bob.helm=3Dmediware.com@sqrug.org]On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Monday, October 16, 2006 9:00 AM To: sqr-users@sqrug.org Subject: [sqr-users] Error encountered Hi All, Iam getting the following error when i execute the below code Error -=20 (SQR 6006) String 2Em - String To Decimal Object Conversion Error=20 Code - BEGIN-SELECT COUNTM &COUNTTMR LET #COUNT =3D &COUNTTMR LET $COUNT =3D ROUND(#COUNT,0) !Others,Matchingrows,302635 Let $WRITE_SUM_LINE =3D 'Others' ||'^'||'Matchingrows'|| '^' || $COUNT Write 99107 From $WRITE_SUM_LINE FROM ( SELECT COUNT(1) COUNTM FROM PS_GE_QA_CMP_LINE_DTL WHERE DRIVER_CODE =3D $upp_filepath ) END-SELECT Thanks in Advance Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Oct 16 11:00:04 2006 From: "Angelika Scheffera" Subject: RE: [sqr-users] Error encountered Date: Mon, 16 Oct 2006 09:57:26 -0500 Did you try the MOVE command instead of the LET? Replace: LET #COUNT = &COUNTTMR LET $COUNT = ROUND(#COUNT,0) With: MOVE &COUNTTMR TO #COUNT LET #COUNT = ROUND(#COUNT,0) MOVE #COUNT TO $COUNT Kind regards, Angelika -----Original Message----- From: sqr-users-bounces+angelika_scheffera=msn.com@sqrug.org [mailto:sqr-users-bounces+angelika_scheffera=msn.com@sqrug.org] On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Monday, October 16, 2006 9:26 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Error encountered hi all, Even after using to_char function Iam getting the same error. Thanks Ram -----Original Message----- From: sqr-users-bounces+ramakrishnan.vaidyanathan=ge.com@sqrug.org [mailto:sqr-users-bounces+ramakrishnan.vaidyanathan=ge.com@sqrug.org]On Behalf Of Bob Helm Sent: Monday, October 16, 2006 10:07 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Error encountered I think it's in the LET $COUNT = ROUND(#COUNT,0) line. Maybe try LET $COUNT = to_char(ROUND(#COUNT,0)) -----Original Message----- From: sqr-users-bounces+bob.helm=mediware.com@sqrug.org [mailto:sqr-users-bounces+bob.helm=mediware.com@sqrug.org]On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Monday, October 16, 2006 9:00 AM To: sqr-users@sqrug.org Subject: [sqr-users] Error encountered Hi All, Iam getting the following error when i execute the below code Error - (SQR 6006) String 2Em - String To Decimal Object Conversion Error Code - BEGIN-SELECT COUNTM &COUNTTMR LET #COUNT = &COUNTTMR LET $COUNT = ROUND(#COUNT,0) !Others,Matchingrows,302635 Let $WRITE_SUM_LINE = 'Others' ||'^'||'Matchingrows'|| '^' || $COUNT Write 99107 From $WRITE_SUM_LINE FROM ( SELECT COUNT(1) COUNTM FROM PS_GE_QA_CMP_LINE_DTL WHERE DRIVER_CODE = $upp_filepath ) END-SELECT Thanks in Advance Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Oct 16 11:12:19 2006 Subject: RE: [sqr-users] Error encountered Date: Mon, 16 Oct 2006 11:09:26 -0400 From: "Peter Burton" Ram, The problem here is that Oracle 9.2.0.3 changed they way they return numerical values without specifying a scale. SQR Server 8.1 was modified to handle both the old and new mechanisms. Oracle provided a work-around -- alter system set event=3D'10499 trace name context forever,level 1'=20 COMMENT=3D'return 0 for the scale if NUMBER created without specifying the scale' SCOPE=3DSPFILE but that fix will not work in Oracle 10g -- this was by design from Oracle. Therefore, you have three options: 1) Upgrade you version of SQR Server to at least 8.1 2) Modify your SQL to return it as a character strings 3) Modify your SQL to use the Oracle ROUND() function Peter -----Original Message----- From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org] On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Monday, October 16, 2006 10:00 AM To: sqr-users@sqrug.org Subject: [sqr-users] Error encountered Hi All, Iam getting the following error when i execute the below code Error -=20 (SQR 6006) String 2Em - String To Decimal Object Conversion Error=20 Code - BEGIN-SELECT COUNTM &COUNTTMR LET #COUNT =3D &COUNTTMR LET $COUNT =3D ROUND(#COUNT,0) !Others,Matchingrows,302635 Let $WRITE_SUM_LINE =3D 'Others' ||'^'||'Matchingrows'|| '^' || $COUNT Write 99107 From $WRITE_SUM_LINE FROM ( SELECT COUNT(1) COUNTM FROM PS_GE_QA_CMP_LINE_DTL WHERE DRIVER_CODE =3D $upp_filepath ) END-SELECT Thanks in Advance Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users If you have received this e-mail in error, please delete it and notify the = sender as soon as possible. The contents of this e-mail may be confidential= and the unauthorized use, copying, or dissemination of it and any attachme= nts to it, is prohibited. Internet communications are not secure and Hyperi= on does not, therefore, accept legal responsibility for the contents of thi= s message nor for any damage caused by viruses. The views expressed here do= not necessarily represent those of Hyperion. For more information about Hy= perion, please visit our Web site at: www.hyperion.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Oct 16 12:32:10 2006 From: "Paul Hoyte" Subject: =?US-ASCII?B?UkU6IFtzcXItdXNlcnNdIENoYW5naW5nIGZvbnQgZmFtaWx5IGFuZCBmb250IHNpemUgbGluZSBieSBsaW5l?= Date: Mon, 16 Oct 2006 12:29:49 -0400 Use the alter-printer command before each line that you want to change.... alter-printer font=xx point-size=xx >----- ------- Original Message ------- ----- >From: "Kelly Cookson" >To: "This list is for discussion about the SQR >database reportinglanguage from > Hyperion Solutions." >Sent: Mon, 16 Oct 2006 08:58:56 > >Newbie here... > >I'd like to be able to change the font family and >font size on a line by >line basis. For example, I'd like to print the >first line of a report >heading in 14pt Arial font, then print the next >line of the heading in >12pt Times New Roman font. How can I do this? > >Thanks in advance, >Kelly > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/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 Oct 17 10:59:06 2006 Date: Tue, 17 Oct 2006 09:54:55 -0500 From: "Sam McBride" Subject: [sqr-users] Temp Table Error I'm trying to create and use a temp table in an SQR program. Everything seems to work ok until I try to select from the table. When I try to use the selected columns in an expression, I get the following error: (SQR 4048) Function or operator '=3D' must be a string or date argument. This only happens for numeric colums. For instance=20 if &std_hours =3D 0 generates this error=20 if &std_hours =3D '0' does not and the program runs and seems to do the calculations correctly. Does anyone know why I can't use numeric columms this way? Why do I have to treat a numeric value as a string and why does that work?=20 Thanks in advance for your help=20=20 Sam McBride Peoplesoft HR/Payroll 817.415.1425 sam.mcbride@radioshack.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Oct 17 11:17:07 2006 From: "Angelika Scheffera" Subject: RE: [sqr-users] Temp Table Error Date: Tue, 17 Oct 2006 10:14:30 -0500 Sam, Have you tried moving the variable &std_hours into a number variable? i.e. Move &std_hours to #std_hours If #std_hours = 0 Angelika -----Original Message----- From: sqr-users-bounces+angelika_scheffera=msn.com@sqrug.org [mailto:sqr-users-bounces+angelika_scheffera=msn.com@sqrug.org] On Behalf Of Sam McBride Sent: Tuesday, October 17, 2006 9:55 AM To: sqr-users@sqrug.org Subject: [sqr-users] Temp Table Error I'm trying to create and use a temp table in an SQR program. Everything seems to work ok until I try to select from the table. When I try to use the selected columns in an expression, I get the following error: (SQR 4048) Function or operator '=' must be a string or date argument. This only happens for numeric colums. For instance if &std_hours = 0 generates this error if &std_hours = '0' does not and the program runs and seems to do the calculations correctly. Does anyone know why I can't use numeric columms this way? Why do I have to treat a numeric value as a string and why does that work? Thanks in advance for your help Sam McBride Peoplesoft HR/Payroll 817.415.1425 sam.mcbride@radioshack.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Oct 23 14:31:50 2006 Date: Tue, 17 Oct 2006 12:30:28 -0400 From: "Overcashier, Patricia" Subject: [sqr-users] how to remove a single quote from a name Hi everyone, I select a last name and before comparing it I remove all special character= s. Thanks to all of your help, I can do that successfully. The only character that I seem to struggle with removing is the single quote I have the name O'Hara I want it to be OHara I am using translate to remove all of the other oddities. let $lname =3D translate(lower($lname),'=E0=E1=E2=E7=E8=E9=EA=F1=F3=F6=ED',= 'aaaceeenooi') I have tried this: find ''' in $lname 0 #pos My errors happen here. I can't find th= e single quote to get rid of it. if #pos > 0 let #pso2 =3D #pos + 1 let $newlname =3D substr(lname,0,#pos)||substr($lname,#pos2) end-if Thanks again, Patti Overcashier Information Technology - PeopleSoft American Axle & Manufacturing, Inc. Detroit Gear Plant 3 1840 Holbrook Detroit, MI 48212 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Oct 17 12:53:55 2006 Date: Tue, 17 Oct 2006 13:51:13 -0300 From: "PeterG Clark" Subject: Re: [sqr-users] Temp Table Error Is it possible that std_hours is not defined as a numeric column in your te= mp table CREATE statement? >>> Sam.McBride@radioshack.com 2006/10/17 11:54:55 >>> I'm trying to create and use a temp table in an SQR program. Everything seems to work ok until I try to select from the table. When I try to use the selected columns in an expression, I get the following error: (SQR 4048) Function or operator '=3D' must be a string or date argument. This only happens for numeric colums. For instance=20 if &std_hours =3D 0 generates this error=20 if &std_hours =3D '0' does not and the program runs and seems to do the calculations correctly. Does anyone know why I can't use numeric columms this way? Why do I have to treat a numeric value as a string and why does that work?=20 Thanks in advance for your help=20=20 Sam McBride Peoplesoft HR/Payroll 817.415.1425 sam.mcbride@radioshack.com=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Oct 17 14:23:42 2006 From: "the dragon" Subject: RE: [sqr-users] Temp Table Error Date: Tue, 17 Oct 2006 13:20:58 -0500 Sam, I agree with Peter - it looks like the column you are selecting from in the temp table has been defined as a character column. Angelika - that would probably work, but should not be necessary; you should be able to do that compare with the sqr column variable without modifying it if it is coming from a numeric column. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- I'm trying to create and use a temp table in an SQR program. Everything seems to work ok until I try to select from the table. When I try to use the selected columns in an expression, I get the following error: (SQR 4048) Function or operator '=' must be a string or date argument. This only happens for numeric colums. For instance if &std_hours = 0 generates this error if &std_hours = '0' does not and the program runs and seems to do the calculations correctly. Does anyone know why I can't use numeric columms this way? Why do I have to treat a numeric value as a string and why does that work? Thanks in advance for your help Sam McBride Peoplesoft HR/Payroll 817.415.1425 sam.mcbride@radioshack.com _________________________________________________________________ Use your PC to make calls at very low rates https://voiceoam.pcs.v2s.live.com/partnerredirect.aspx _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Oct 17 14:39:49 2006 Subject: RE: [sqr-users] Temp Table Error Date: Tue, 17 Oct 2006 13:37:10 -0500 From: "Sam McBride" Clark, I can verify that when the table is created, the columns are defined as decimal. I also did a describe on the table after it was created and all the columns in question are "number". I can move the values directly to a numeric variable without modification and the comparisons work fine. Maybe it's an SQR "feature?" Sam -----Original Message----- From: the dragon [mailto:ceprn@hotmail.com]=20 Sent: Tuesday, October 17, 2006 1:21 PM To: sqr-users@sqrug.org Cc: Sam McBride Subject: RE: [sqr-users] Temp Table Error Sam, I agree with Peter - it looks like the column you are selecting from in the temp table has been defined as a character column. Angelika - that would probably work, but should not be necessary; you should be able to do that compare with the sqr column variable without modifying it if it is coming from a numeric column. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- I'm trying to create and use a temp table in an SQR program. Everything seems to work ok until I try to select from the table. When I try to use the selected columns in an expression, I get the following error: (SQR 4048) Function or operator '=3D' must be a string or date argument. This only happens for numeric colums. For instance if &std_hours =3D 0 generates this error if &std_hours =3D '0' does not and the program runs and seems to do the calculations correctly. Does anyone know why I can't use numeric columms this way? Why do I have to treat a numeric value as a string and why does that work? Thanks in advance for your help Sam McBride Peoplesoft HR/Payroll 817.415.1425 sam.mcbride@radioshack.com _________________________________________________________________ Use your PC to make calls at very low rates https://voiceoam.pcs.v2s.live.com/partnerredirect.aspx _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Oct 17 14:52:01 2006 Date: Tue, 17 Oct 2006 14:49:32 -0400 From: Donald Mellen Subject: Re: [sqr-users] Temp Table Error If you have dynamic sql in your select, most especially in the "from" portion, sqr will many times "convert" all the columns to strings unless you specify the type on the column. Something like.... begin-select my_number_col &std_hours=number .... from my_temp_table ...yadda yadda yadda should work for you. (The previous was indented for readability purposes only). HTH, Don Sam McBride wrote: > Clark, > > I can verify that when the table is created, the columns are defined as > decimal. I also did a describe on the table after it was created and all > the columns in question are "number". I can move the values directly to > a numeric variable without modification and the comparisons work fine. > Maybe it's an SQR "feature?" > > Sam > > -----Original Message----- > From: the dragon [mailto:ceprn@hotmail.com] > Sent: Tuesday, October 17, 2006 1:21 PM > To: sqr-users@sqrug.org > Cc: Sam McBride > Subject: RE: [sqr-users] Temp Table Error > > Sam, > > I agree with Peter - it looks like the column you are selecting from in > the temp table has been defined as a character column. > > Angelika - that would probably work, but should not be necessary; you > should be able to do that compare with the sqr column variable without > modifying it if it is coming from a numeric column. > > peace, > clark 'the dragon' willis > > > > PSA: Salary <> Slavery. If you earn a salary, your employer is renting > your services for 40 hours a week, not purchasing your soul. Your time > is the only real finite asset that you have, and once used it can never > be recovered, so don't waste it by giving it away. > > I work to live; I don't live to work. > > "Time is the coin of your life. It is the only coin you have, and only > you can determine how it will be spent. Be careful lest you let other > people spend it for you." > > Carl Sandburg > (1878 - 1967) > > ----Original Message Follows---- > > I'm trying to create and use a temp table in an SQR program. Everything > seems to work ok until I try to select from the table. When I try to > use the selected columns in an expression, I get the following error: > (SQR 4048) Function or operator '=' must be a string or date argument. > This only happens for numeric colums. For instance > > if &std_hours = 0 generates this error > if &std_hours = '0' does not and the program runs and seems to do the > calculations correctly. > > Does anyone know why I can't use numeric columms this way? Why do I > have to treat a numeric value as a string and why does that work? > > Thanks in advance for your help > Sam McBride > Peoplesoft HR/Payroll > 817.415.1425 > sam.mcbride@radioshack.com > > _________________________________________________________________ > Use your PC to make calls at very low rates > https://voiceoam.pcs.v2s.live.com/partnerredirect.aspx > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > -- ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Oct 17 14:55:17 2006 From: "Angelika Scheffera" Subject: RE: [sqr-users] Temp Table Error Date: Tue, 17 Oct 2006 13:50:02 -0500 Clark, Hehehe.... It probably is a feature. Angelika -----Original Message----- From: sqr-users-bounces+angelika_scheffera=msn.com@sqrug.org [mailto:sqr-users-bounces+angelika_scheffera=msn.com@sqrug.org] On Behalf Of Sam McBride Sent: Tuesday, October 17, 2006 1:37 PM To: the dragon; sqr-users@sqrug.org Subject: RE: [sqr-users] Temp Table Error Clark, I can verify that when the table is created, the columns are defined as decimal. I also did a describe on the table after it was created and all the columns in question are "number". I can move the values directly to a numeric variable without modification and the comparisons work fine. Maybe it's an SQR "feature?" Sam -----Original Message----- From: the dragon [mailto:ceprn@hotmail.com] Sent: Tuesday, October 17, 2006 1:21 PM To: sqr-users@sqrug.org Cc: Sam McBride Subject: RE: [sqr-users] Temp Table Error Sam, I agree with Peter - it looks like the column you are selecting from in the temp table has been defined as a character column. Angelika - that would probably work, but should not be necessary; you should be able to do that compare with the sqr column variable without modifying it if it is coming from a numeric column. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- I'm trying to create and use a temp table in an SQR program. Everything seems to work ok until I try to select from the table. When I try to use the selected columns in an expression, I get the following error: (SQR 4048) Function or operator '=' must be a string or date argument. This only happens for numeric colums. For instance if &std_hours = 0 generates this error if &std_hours = '0' does not and the program runs and seems to do the calculations correctly. Does anyone know why I can't use numeric columms this way? Why do I have to treat a numeric value as a string and why does that work? Thanks in advance for your help Sam McBride Peoplesoft HR/Payroll 817.415.1425 sam.mcbride@radioshack.com _________________________________________________________________ Use your PC to make calls at very low rates https://voiceoam.pcs.v2s.live.com/partnerredirect.aspx _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Oct 17 15:07:57 2006 From: "Angelika Scheffera" Subject: RE: [sqr-users] Temp Table Error Date: Tue, 17 Oct 2006 14:05:09 -0500 Don, Thanks for the explanation, I looked through SQR docs and couldn't find it.... There's your why Sam! Kind regards, Angelika -----Original Message----- From: sqr-users-bounces+angelika_scheffera=msn.com@sqrug.org [mailto:sqr-users-bounces+angelika_scheffera=msn.com@sqrug.org] On Behalf Of Donald Mellen Sent: Tuesday, October 17, 2006 1:50 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] Temp Table Error If you have dynamic sql in your select, most especially in the "from" portion, sqr will many times "convert" all the columns to strings unless you specify the type on the column. Something like.... begin-select my_number_col &std_hours=number .... from my_temp_table ...yadda yadda yadda should work for you. (The previous was indented for readability purposes only). HTH, Don Sam McBride wrote: > Clark, > > I can verify that when the table is created, the columns are defined as > decimal. I also did a describe on the table after it was created and all > the columns in question are "number". I can move the values directly to > a numeric variable without modification and the comparisons work fine. > Maybe it's an SQR "feature?" > > Sam > > -----Original Message----- > From: the dragon [mailto:ceprn@hotmail.com] > Sent: Tuesday, October 17, 2006 1:21 PM > To: sqr-users@sqrug.org > Cc: Sam McBride > Subject: RE: [sqr-users] Temp Table Error > > Sam, > > I agree with Peter - it looks like the column you are selecting from in > the temp table has been defined as a character column. > > Angelika - that would probably work, but should not be necessary; you > should be able to do that compare with the sqr column variable without > modifying it if it is coming from a numeric column. > > peace, > clark 'the dragon' willis > > > > PSA: Salary <> Slavery. If you earn a salary, your employer is renting > your services for 40 hours a week, not purchasing your soul. Your time > is the only real finite asset that you have, and once used it can never > be recovered, so don't waste it by giving it away. > > I work to live; I don't live to work. > > "Time is the coin of your life. It is the only coin you have, and only > you can determine how it will be spent. Be careful lest you let other > people spend it for you." > > Carl Sandburg > (1878 - 1967) > > ----Original Message Follows---- > > I'm trying to create and use a temp table in an SQR program. Everything > seems to work ok until I try to select from the table. When I try to > use the selected columns in an expression, I get the following error: > (SQR 4048) Function or operator '=' must be a string or date argument. > This only happens for numeric colums. For instance > > if &std_hours = 0 generates this error > if &std_hours = '0' does not and the program runs and seems to do the > calculations correctly. > > Does anyone know why I can't use numeric columms this way? Why do I > have to treat a numeric value as a string and why does that work? > > Thanks in advance for your help > Sam McBride > Peoplesoft HR/Payroll > 817.415.1425 > sam.mcbride@radioshack.com > > _________________________________________________________________ > Use your PC to make calls at very low rates > https://voiceoam.pcs.v2s.live.com/partnerredirect.aspx > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > -- ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Oct 17 16:08:42 2006 Date: Tue, 17 Oct 2006 16:05:51 -0400 From: "Everett Carr" Subject: RE: [sqr-users] Temp Table Error for sqr numeric comparisions as well as date, you need to move the buffer vars into sqr vars ie let #somenbr = &sometable.numberfield if @comenbr = 0 blah-blah end-if will work >>> "Angelika Scheffera" 10/17/2006 2:50 PM >>> Clark, Hehehe.... It probably is a feature. Angelika -----Original Message----- From: sqr-users-bounces+angelika_scheffera=msn.com@sqrug.org [mailto:sqr-users-bounces+angelika_scheffera=msn.com@sqrug.org] On Behalf Of Sam McBride Sent: Tuesday, October 17, 2006 1:37 PM To: the dragon; sqr-users@sqrug.org Subject: RE: [sqr-users] Temp Table Error Clark, I can verify that when the table is created, the columns are defined as decimal. I also did a describe on the table after it was created and all the columns in question are "number". I can move the values directly to a numeric variable without modification and the comparisons work fine. Maybe it's an SQR "feature?" Sam -----Original Message----- From: the dragon [mailto:ceprn@hotmail.com] Sent: Tuesday, October 17, 2006 1:21 PM To: sqr-users@sqrug.org Cc: Sam McBride Subject: RE: [sqr-users] Temp Table Error Sam, I agree with Peter - it looks like the column you are selecting from in the temp table has been defined as a character column. Angelika - that would probably work, but should not be necessary; you should be able to do that compare with the sqr column variable without modifying it if it is coming from a numeric column. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- I'm trying to create and use a temp table in an SQR program. Everything seems to work ok until I try to select from the table. When I try to use the selected columns in an expression, I get the following error: (SQR 4048) Function or operator '=' must be a string or date argument. This only happens for numeric colums. For instance if &std_hours = 0 generates this error if &std_hours = '0' does not and the program runs and seems to do the calculations correctly. Does anyone know why I can't use numeric columms this way? Why do I have to treat a numeric value as a string and why does that work? Thanks in advance for your help Sam McBride Peoplesoft HR/Payroll 817.415.1425 sam.mcbride@radioshack.com _________________________________________________________________ Use your PC to make calls at very low rates https://voiceoam.pcs.v2s.live.com/partnerredirect.aspx _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Oct 18 09:37:37 2006 Date: Wed, 18 Oct 2006 06:34:38 -0700 From: David Donnelly Subject: [sqr-users] Re: Temp Table Error Sam, If you are creating the temp table during the run of the SQR program, and it does not exist at compile time, then the SQR compiler has no idea what it looks like when it generates code. If the temp table is always the same, you could just leave it around between runs and empty it each time. Otherwise you'll have to use dynamic SQR one way or another. One way is to have a "model" table, if you can construct one that looks similar enough, and use from [model:$realtablename] and the other is to use dynamic columns, as has been suggested by others, and tell SQR the type. Regards, Dave _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Oct 18 10:36:37 2006 Date: Wed, 18 Oct 2006 09:32:23 -0500 From: "Sam McBride" Subject: [sqr-users] RE: Temp Table Error Thanks Donald, your solution worked. Message: 6 Date: Tue, 17 Oct 2006 14:49:32 -0400 From: Donald Mellen Subject: Re: [sqr-users] Temp Table Error To: "This list is for discussion about the SQR database reporting language from Hyperion Solutions." Message-ID: <453525BC.4010804@ontko.com> Content-Type: text/plain; charset=3DISO-8859-1; format=3Dflowed If you have dynamic sql in your select, most especially in the "from" portion, sqr will many times "convert" all the columns to strings unless you specify the type on the column. Something like.... begin-select my_number_col &std_hours=3Dnumber .... from my_temp_table ...yadda yadda yadda should work for you. (The previous was indented for readability purposes only). HTH, Don _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Oct 18 10:57:41 2006 Subject: RE: [sqr-users] Temp Table Error Date: Wed, 18 Oct 2006 09:54:56 -0500 From: "Sumana.Akella" (SQR 4045) Function or operator 'dateadd' requires date argument. LET $max_wrkday_date =3D dateadd($PAY_END_DT, 'day', 14) Can some one please let me know why the dateaddfunction is throwing and error Thanks Sumana =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Oct 18 11:01:27 2006 Subject: RE: [sqr-users] Temp Table Error Date: Wed, 18 Oct 2006 07:58:07 -0700 From: "Janakiraman, Vijayakumar" The $Pay_End_DT has to be a date variable. Declare it as a date variable in Begin-Setup section.=20 Thanks, Vijayakumar.J -----Original Message----- From: sqr-users-bounces+vijayakumar.janakiraman=3Dcingular.com@sqrug.org [mailto:sqr-users-bounces+vijayakumar.janakiraman=3Dcingular.com@sqrug.org ] On Behalf Of Sumana.Akella Sent: Wednesday, October 18, 2006 9:55 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Temp Table Error (SQR 4045) Function or operator 'dateadd' requires date argument. LET $max_wrkday_date =3D dateadd($PAY_END_DT, 'day', 14) Can some one please let me know why the dateaddfunction is throwing and error Thanks Sumana =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Oct 18 11:06:13 2006 Subject: RE: [sqr-users] Temp Table Error Date: Wed, 18 Oct 2006 10:03:53 -0500 From: "Knapp, Richard" Just a wild guess here but I say you need to have a date argument in the function. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Sumana.Akella Sent: Wednesday, October 18, 2006 9:55 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Temp Table Error (SQR 4045) Function or operator 'dateadd' requires date argument. LET $max_wrkday_date =3D dateadd($PAY_END_DT, 'day', 14) Can some one please let me know why the dateaddfunction is throwing and error Thanks Sumana =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Oct 18 11:09:54 2006 From: "Anya Mendenhall" Date: Wed, 18 Oct 2006 11:04:09 -0400 Subject: [sqr-users] PLEASE UNSUSCRIBE ME FROM THIS LIST -----Original Message----- From: sqr-users-bounces+agueniss=gwu.edu@sqrug.org [mailto:sqr-users-bounces+agueniss=gwu.edu@sqrug.org] On Behalf Of Janakiraman, Vijayakumar Sent: Wednesday, October 18, 2006 10:58 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] Temp Table Error The $Pay_End_DT has to be a date variable. Declare it as a date variable in Begin-Setup section. Thanks, Vijayakumar.J -----Original Message----- From: sqr-users-bounces+vijayakumar.janakiraman=cingular.com@sqrug.org [mailto:sqr-users-bounces+vijayakumar.janakiraman=cingular.com@sqrug.org ] On Behalf Of Sumana.Akella Sent: Wednesday, October 18, 2006 9:55 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Temp Table Error (SQR 4045) Function or operator 'dateadd' requires date argument. LET $max_wrkday_date = dateadd($PAY_END_DT, 'day', 14) Can some one please let me know why the dateaddfunction is throwing and error Thanks Sumana _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Oct 18 11:13:36 2006 Date: Wed, 18 Oct 2006 10:07:26 -0500 From: "Sumana.Akella" Subject: [sqr-users] Dateadd Thanks I realized that but I can't declare $Pay_End_DT as a Date variable as such I had to come up with a work around, something like this.... begin-procedure obtain-max-wrkday-dt show 'Procedure obtain-max-wrkday-dt' =20=20=20=20=20 begin-select to_char((to_date($pay_end_dt_HH-YYYY-MM-DD ,'YYYY-MM-DD')+14), 'YYYY-MM-DD') &max_wrkday_date FROM DUAL end-select well It did work for me :) Sumana=20 -----Original Message----- From: sqr-users-bounces+sumana.akella=3Dkiewit.com@sqrug.org [mailto:sqr-users-bounces+sumana.akella=3Dkiewit.com@sqrug.org] On Behalf Of Janakiraman, Vijayakumar Sent: Wednesday, October 18, 2006 9:58 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Temp Table Error The $Pay_End_DT has to be a date variable. Declare it as a date variable in Begin-Setup section.=20 Thanks, Vijayakumar.J -----Original Message----- From: sqr-users-bounces+vijayakumar.janakiraman=3Dcingular.com@sqrug.org [mailto:sqr-users-bounces+vijayakumar.janakiraman=3Dcingular.com@sqrug.org ] On Behalf Of Sumana.Akella Sent: Wednesday, October 18, 2006 9:55 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Temp Table Error (SQR 4045) Function or operator 'dateadd' requires date argument. LET $max_wrkday_date =3D dateadd($PAY_END_DT, 'day', 14) Can some one please let me know why the dateaddfunction is throwing and error Thanks Sumana =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 Oct 18 11:17:09 2006 From: "Angelika Scheffera" Subject: RE: [sqr-users] PLEASE UNSUSCRIBE ME FROM THIS LIST Date: Wed, 18 Oct 2006 10:12:58 -0500 Go to http://www.sqrug.org/mailman/listinfo/sqr-users to unsubscribe _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Oct 18 12:39:47 2006 From: "Karver" Subject: RE: [sqr-users] Getting complete listing of SQR code Date: Thu, 19 Oct 2006 00:37:53 +0800 Oops! Looks like I missed this one. Well, in case Mr Gallagher has spent the last 18 months trying to find my SQR Tree program ;-) it's available at http://www.angelfire.com/biz7/sqrtree (sorry about the ads). Regards Wayne Ivory wivory@kagi.com -----Original Message----- From: sqr-users-bounces+basic=gateway.net.au@sqrug.org [mailto:sqr-users-bounces+basic=gateway.net.au@sqrug.org]On Behalf Of jwillson@dssltd.com Sent: Saturday, 16 April 2005 5:03 AM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: Re: [sqr-users] Getting complete listing of SQR code In cases like this, you can establish a mirror of the mainframe SQRs by putting the source code through a tool like SQR Tree. It won't help on error identification but the tree like visual allows you to drill down into the includes and trace the code. See "dash board" white paper at http://www.dssltd.com for some examples or search SQRUG for SQR Tree. I have a legitmate copy but can not remember the author. (Not at my regular site). John Willson "Gallagher, Neil (IT HR Support)" said: > We run SQRs as batch jobs on a z/OS mainframe. When we have a syntax > error, the diagnostics show line numbers, but we do not get a full > listing that expands all the included members. > > > > Is there any way to get a full listing? > > > > Neil Gallagher > > UNUM Provident Corporation > > Corporate HR Systems Support Team > > (207) 575-8046 > > Mailstop T211 > > Colonel Westbrook Executive Park > > Westbrook, Maine 04092 > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > -- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users -- Internal Virus Database is out-of-date. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.9.1 - Release Date: 1/04/2005 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/476 - Release Date: 14/10/2006 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Oct 18 12:43:14 2006 Date: Wed, 18 Oct 2006 18:39:27 +0200 From: "Yannick DEFOLIE" Subject: [sqr-users] hello Hello i'm French=20 My name is Yannick and I don't speak English very well ( sorry ) I want to print in russia with sqr and i dont know how do ? who can help me=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Oct 18 12:52:07 2006 From: "Franck Masson" Subject: RE: [sqr-users] hello Date: Wed, 18 Oct 2006 18:48:15 +0200 This is a multi-part message in MIME format... ------=_NextPart_000_0034_01C6F2E5.F93301E0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi Yannick, Do not worry in this user-group there are also french People. What is your version of SQR ? What will be your ouput format ? Postcript, PCL/HP, PDF , LinePrinter Regards Franck Masson (based in Paris) Email: Franck.Masson2002@laposte.net -----Original Message----- From: sqr-users-bounces+franck.masson2002=laposte.net@sqrug.org [mailto:sqr-users-bounces+franck.masson2002=laposte.net@sqrug.org]On Behalf Of Yannick DEFOLIE Sent: mercredi 18 octobre 2006 18:39 To: sqr-users@sqrug.org Subject: [sqr-users] hello Hello i'm French My name is Yannick and I don't speak English very well ( sorry ) I want to print in russia with sqr and i dont know how do ? who can help me _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------=_NextPart_000_0034_01C6F2E5.F93301E0 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/ms-tnef' MIME type. It has been automatically discarded before sending the message to the list. ------=_NextPart_000_0034_01C6F2E5.F93301E0 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------=_NextPart_000_0034_01C6F2E5.F93301E0-- From sqr-users-bounces@sqrug.org Wed Oct 18 13:07:27 2006 Subject: RE: [sqr-users] hello Date: Wed, 18 Oct 2006 19:04:32 +0200 From: "Yannick DEFOLIE" Hi Franck=20 My version of Sqr 4.3.4 PRINTER_TYPE HPLASERJET Thank you=20 -----Message d'origine----- De : sqr-users-bounces+ydefolie=3Dintergestion.fr@sqrug.org [mailto:sqr-use= rs-bounces+ydefolie=3Dintergestion.fr@sqrug.org] De la part de Franck Masson Envoy=E9 : mercredi 18 octobre 2006 18:48 =C0 : 'This list is for discussion about the SQR database reportinglanguage= from Hyperion Solutions.' Objet : RE: [sqr-users] hello Hi Yannick, Do not worry in this user-group there are also french People. What is your version of SQR ? What will be your ouput format ? Postcript, PCL/HP, PDF , LinePrinter=20 Regards Franck Masson (based in Paris) Email: Franck.Masson2002@laposte.net -----Original Message----- From: sqr-users-bounces+franck.masson2002=3Dlaposte.net@sqrug.org [mailto:sqr-users-bounces+franck.masson2002=3Dlaposte.net@sqrug.org]On Behalf Of Yannick DEFOLIE Sent: mercredi 18 octobre 2006 18:39 To: sqr-users@sqrug.org Subject: [sqr-users] hello Hello i'm French My name is Yannick and I don't speak English very well ( sorry ) I want to = print in russia with sqr and i dont know how do ? who can help me=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Oct 19 06:58:49 2006 From: "sri kanth" Date: Thu, 19 Oct 2006 16:24:38 +0530 Subject: [sqr-users] Generating XMl file from SQR Can anybody help me out in this regard. Currently we are generating a flat text file,now instead of text file XML file needs to be generated. Thanks in advance. Regards, Srikanth _________________________________________________________________ The next best thing! Messenger Video Conversation. Click here! http://join.msn.com/messenger/overview2000 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Oct 19 14:59:40 2006 From: "Franck Masson" Subject: RE: [sqr-users] hello Date: Thu, 19 Oct 2006 20:15:24 +0200 This is a multi-part message in MIME format... ------=_NextPart_000_009F_01C6F3BB.763F6D60 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: Quoted-Printable Hi Yannick, as you are using HP output To deliver the output to the printer you have to do it in 2 step run your report (sqrw myreport.sqr .....) send the output to the printer ( print myreport.lis) to be able to print Russian you have to verify if your printer have the proper russian font loaded. open a txt file and type some russian sentence then send this txt file to the printer ( printer test.txt) if you get your russian sentence on the printer then your configuration is correct. and you should be able to print properly your output from sqr regards Franck -----Original Message----- From: sqr-users-bounces+franck.masson2002=3Dlaposte.net@sqrug.org [mailto:sqr-users-bounces+franck.masson2002=3Dlaposte.net@sqrug.org]On Behalf Of Yannick DEFOLIE Sent: mercredi 18 octobre 2006 19:05 To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] hello Hi Franck=20 My version of Sqr 4.3.4 PRINTER_TYPE HPLASERJET Thank you=20 -----Message d'origine----- De : sqr-users-bounces+ydefolie=3Dintergestion.fr@sqrug.org [mailto:sqr-users-bounces+ydefolie=3Dintergestion.fr@sqrug.org] De la part = de Franck Masson Envoy=E9 : mercredi 18 octobre 2006 18:48 =C0 : 'This list is for discussion about the SQR database reportinglanguagefrom Hyperion Solutions.' Objet : RE: [sqr-users] hello Hi Yannick, Do not worry in this user-group there are also french People. What is your version of SQR ? What will be your ouput format ? Postcript, PCL/HP, PDF , LinePrinter=20 Regards Franck Masson (based in Paris) Email: Franck.Masson2002@laposte.net -----Original Message----- From: sqr-users-bounces+franck.masson2002=3Dlaposte.net@sqrug.org [mailto:sqr-users-bounces+franck.masson2002=3Dlaposte.net@sqrug.org]On Behalf Of Yannick DEFOLIE Sent: mercredi 18 octobre 2006 18:39 To: sqr-users@sqrug.org Subject: [sqr-users] hello Hello i'm French My name is Yannick and I don't speak English very well ( sorry ) I want to print in russia with sqr and i dont know how do ? who can help me=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 ------=_NextPart_000_009F_01C6F3BB.763F6D60 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/ms-tnef' MIME type. It has been automatically discarded before sending the message to the list. ------=_NextPart_000_009F_01C6F3BB.763F6D60 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------=_NextPart_000_009F_01C6F3BB.763F6D60-- From sqr-users-bounces@sqrug.org Fri Oct 20 09:59:16 2006 Date: Fri, 20 Oct 2006 08:56:41 -0500 From: "Kelly Cookson" Subject: [sqr-users] Line spacing question When I try to use certain fonts, single-spaced lines get squashed together, with the bottoms of letters overlapping the tops of letters in the next line. I can't always double-space (advance 2 lines) because that takes up too many lines on some of the forms I need to create. This seems like a pretty serious limitation for what is supposed to be a modern report writing language. How do other people handle this problem? I've search the sqr-users list archive and found this question has been asked several times before, usually with no response.=20 Thanks, Kelly=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Oct 20 10:06:14 2006 From: "the dragon" Subject: RE: [sqr-users] Line spacing question Date: Fri, 20 Oct 2006 09:03:30 -0500 check your line height setting peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) It is impossible to defeat an ignorant man in argument. William G. McAdoo ----Original Message Follows---- When I try to use certain fonts, single-spaced lines get squashed together, with the bottoms of letters overlapping the tops of letters in the next line. I can't always double-space (advance 2 lines) because that takes up too many lines on some of the forms I need to create. This seems like a pretty serious limitation for what is supposed to be a modern report writing language. How do other people handle this problem? I've search the sqr-users list archive and found this question has been asked several times before, usually with no response. Thanks, Kelly _________________________________________________________________ Add a Yahoo! contact to Windows Live Messenger for a chance to win a free trip! http://www.imagine-windowslive.com/minisites/yahoo/default.aspx?locale=en-us&hmtagline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Oct 27 16:35:01 2006 From: "the dragon" Subject: RE: [sqr-users] how to remove a single quote from a name Date: Mon, 23 Oct 2006 13:35:08 -0500 If you're using a somewhat current version of PS, isn't there an sqc that inclused that code? Like in the rotname.sqc series? peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) It is impossible to defeat an ignorant man in argument. William G. McAdoo ----Original Message Follows---- Hi everyone, I select a last name and before comparing it I remove all special characters. Thanks to all of your help, I can do that successfully. The only character that I seem to struggle with removing is the single quote I have the name O'Hara I want it to be OHara I am using translate to remove all of the other oddities. let $lname = translate(lower($lname),'àáâçèéêñóöí','aaaceeenooi') I have tried this: find ''' in $lname 0 #pos My errors happen here. I can't find the single quote to get rid of it. if #pos > 0 let #pso2 = #pos + 1 let $newlname = substr(lname,0,#pos)||substr($lname,#pos2) end-if Thanks again, Patti Overcashier Information Technology - PeopleSoft American Axle & Manufacturing, Inc. Detroit Gear Plant 3 1840 Holbrook Detroit, MI 48212 _________________________________________________________________ Stay in touch with old friends and meet new ones with Windows Live Spaces http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Oct 27 16:38:15 2006 From: "Dwight Schrute" Subject: RE: [sqr-users] how to remove a single quote from a name Date: Mon, 23 Oct 2006 13:40:53 -0500 You must use four quotes ('''') instead of three. >From: "Overcashier, Patricia" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "This list is for discussion about the SQR database reportinglanguage >fromHyperion Solutions." >Subject: [sqr-users] how to remove a single quote from a name >Date: Tue, 17 Oct 2006 12:30:28 -0400 > >Hi everyone, >I select a last name and before comparing it I remove all special >characters. >Thanks to all of your help, I can do that successfully. >The only character that I seem to struggle with removing is the single >quote > >I have the name O'Hara >I want it to be OHara >I am using translate to remove all of the other oddities. >let $lname = translate(lower($lname),'àáâçèéêñóöí','aaaceeenooi') > >I have tried this: > find ''' in $lname 0 #pos My errors happen here. I can't find >the single quote to get rid of it. > if #pos > 0 > let #pso2 = #pos + 1 > let $newlname = substr(lname,0,#pos)||substr($lname,#pos2) > end-if > >Thanks again, > >Patti Overcashier >Information Technology - PeopleSoft >American Axle & Manufacturing, Inc. >Detroit Gear Plant 3 >1840 Holbrook >Detroit, MI 48212 > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Add a Yahoo! contact to Windows Live Messenger for a chance to win a free trip! http://www.imagine-windowslive.com/minisites/yahoo/default.aspx?locale=en-us&hmtagline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Oct 27 16:41:38 2006 Subject: RE: [sqr-users] how to remove a single quote from a name Date: Mon, 23 Oct 2006 14:49:31 -0400 From: "Kaithi, Murali" Four consecutive single quotes becomes one single quote Eg: '''' Murali=20 -----Original Message----- From: sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org [mailto:= sqr-users-bounces+murali.kaithi=3Dspencergifts.com@sqrug.org] On Behalf Of = Overcashier, Patricia Sent: Tuesday, October 17, 2006 12:30 PM To: This list is for discussion about the SQR database reportinglanguage fr= omHyperion Solutions. Subject: [sqr-users] how to remove a single quote from a name Hi everyone, I select a last name and before comparing it I remove all special character= s. Thanks to all of your help, I can do that successfully. The only character that I seem to struggle with removing is the single quote I have the name O'Hara I want it to be OHara I am using translate to remove all of the other oddities. let $lname =3D translate(lower($lname),'=E0=E1=E2=E7=E8=E9=EA=F1=F3=F6=ED',= 'aaaceeenooi') I have tried this: find ''' in $lname 0 #pos My errors happen here. I can't find th= e single quote to get rid of it. if #pos > 0 let #pso2 =3D #pos + 1 let $newlname =3D substr(lname,0,#pos)||substr($lname,#pos2) end-if Thanks again, Patti Overcashier Information Technology - PeopleSoft American Axle & Manufacturing, Inc. Detroit Gear Plant 3 1840 Holbrook Detroit, MI 48212 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ________________________________________________________________________ This Email has been scanned for all viruses by PAETEC Email Scanning Servic= es, utilizing MessageLabs proprietary SkyScan infrastructure. For more info= rmation on a proactive anti-virus service working around the clock, around = the globe, visit http://www.paetec.com. ________________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Oct 27 16:44:50 2006 From: "Alexander, Steven" Subject: RE: [sqr-users] how to remove a single quote from a name Date: Mon, 23 Oct 2006 13:41:55 -0700 A single quote is '''' - the first quote to start the string, the second quote to be a quote, the third quote to say you really mean it, and the fourth quote to end the string. So, if you wanted to have a literal value in your program for O'Hara, you would type 'O''Hara'. -----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 Overcashier, Patricia Sent: Tuesday, October 17, 2006 9:30 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] how to remove a single quote from a name Hi everyone, I select a last name and before comparing it I remove all special characters. Thanks to all of your help, I can do that successfully. The only character that I seem to struggle with removing is the single quote I have the name O'Hara I want it to be OHara I am using translate to remove all of the other oddities. let $lname =3D translate(lower($lname),'=E0=E1=E2=E7=E8=E9=EA=F1=F3=F6=ED',= 'aaaceeenooi') I have tried this: find ''' in $lname 0 #pos My errors happen here. I can't find the single quote to get rid of it. if #pos > 0 let #pso2 =3D #pos + 1 let $newlname =3D substr(lname,0,#pos)||substr($lname,#pos2) end-if Thanks again, Patti Overcashier Information Technology - PeopleSoft American Axle & Manufacturing, Inc. Detroit Gear Plant 3 1840 Holbrook Detroit, MI 48212 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Oct 27 16:48:18 2006 Subject: RE: [sqr-users] how to remove a single quote from a name Date: Mon, 23 Oct 2006 17:23:51 -0400 From: "Ray, Christine Marie" I'd be interested in the solution for this as well. Christine Ray Indiana University Bloomington FMS Administration -----Original Message----- From: sqr-users-bounces+chmray=3Dindiana.edu@sqrug.org [mailto:sqr-users-bo= unces+chmray=3Dindiana.edu@sqrug.org] On Behalf Of Overcashier, Patricia Sent: Tuesday, October 17, 2006 12:30 PM To: This list is for discussion about the SQR database reportinglanguage fr= omHyperion Solutions. Subject: [sqr-users] how to remove a single quote from a name Hi everyone, I select a last name and before comparing it I remove all special character= s. Thanks to all of your help, I can do that successfully. The only character that I seem to struggle with removing is the single quote I have the name O'Hara I want it to be OHara I am using translate to remove all of the other oddities. let $lname =3D translate(lower($lname),'=E0=E1=E2=E7=E8=E9=EA=F1=F3=F6=ED',= 'aaaceeenooi') I have tried this: find ''' in $lname 0 #pos My errors happen here. I can't find th= e single quote to get rid of it. if #pos > 0 let #pso2 =3D #pos + 1 let $newlname =3D substr(lname,0,#pos)||substr($lname,#pos2) end-if Thanks again, Patti Overcashier Information Technology - PeopleSoft American Axle & Manufacturing, Inc. Detroit Gear Plant 3 1840 Holbrook Detroit, MI 48212 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Oct 24 09:29:37 2006 Date: Tue, 24 Oct 2006 13:26:53 +0000 (GMT) From: john.tucker@oracle.com Subject: [sqr-users] Re: sqr-users Digest, Vol 32, Issue 17 I believe that the answer is simple, but I'm sure you'll get other replies if I'm wrong. Just change ''' to ''''. The fourth ' is required so that SQR knows that you mean the character ' rather than just meaning to indicate the start or end of a string. What it's seeing right now is the first ' as the start of a string, and then the next two consecutive 's as saying "I mean '." Then, it doesn't see a final ' to end the string, so it gets confused. Hopefully that makes sense... -John T. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Oct 27 17:14:12 2006 Date: Tue, 24 Oct 2006 11:03:29 -0300 From: "PeterG Clark" Subject: Re: [sqr-users] how to remove a single quote from a name I think you can use the translate for that as well: let $q =3D chr(39) let $null =3D '' let $lname =3D translate($lname,$q,$null) I haven't tested it, but give it a shot :-) >>> Patricia.Overcashier@aam.com 2006/10/17 13:30:28 >>> Hi everyone, I select a last name and before comparing it I remove all special character= s. Thanks to all of your help, I can do that successfully. The only character that I seem to struggle with removing is the single quote I have the name O'Hara I want it to be OHara I am using translate to remove all of the other oddities. let $lname =3D translate(lower($lname),'=E0=E1=E2=E7=E8=E9=EA=F1=F3=F6=ED',= 'aaaceeenooi') I have tried this: find ''' in $lname 0 #pos My errors happen here. I can't find th= e single quote to get rid of it. if #pos > 0 let #pso2 =3D #pos + 1 let $newlname =3D substr(lname,0,#pos)||substr($lname,#pos2) end-if Thanks again, Patti Overcashier Information Technology - PeopleSoft American Axle & Manufacturing, Inc. Detroit Gear Plant 3 1840 Holbrook Detroit, MI 48212 _______________________________________________ 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 Oct 24 12:04:44 2006 Date: Tue, 24 Oct 2006 09:01:52 -0700 From: "Leanne Harrisburg" Subject: [sqr-users] RE: sqr-users Digest, Vol 32, Issue 17 I had a similar request from a user. I ended up encoding the apostrophe li= ke this: ! Encode an apostrophe=20 Encode '<039>' Into $Apost Then I searched for the apostrophe in the name field and proceeded from the= re. Find $Apost in $Name 0 #Apost_Pos Leanne Harrisburg National University Senior Programmer/Analyst Voice: (619) 563-2635 =20 =20 -----Original Message----- From: sqr-users-bounces+lharrisb=3Dnu.edu@sqrug.org [mailto:sqr-users-bounc= es+lharrisb=3Dnu.edu@sqrug.org] On Behalf Of sqr-users-request@sqrug.org Sent: Tuesday, October 24, 2006 3:05 AM To: sqr-users@sqrug.org Subject: sqr-users Digest, Vol 32, Issue 17 Send sqr-users mailing list submissions to sqr-users@sqrug.org To subscribe or unsubscribe via the World Wide Web, visit http://www.sqrug.org/mailman/listinfo/sqr-users or, via email, send a message with subject or body 'help' to sqr-users-request@sqrug.org You can reach the person managing the list at sqr-users-owner@sqrug.org When replying, please edit your Subject line so it is more specific than "Re: Contents of sqr-users digest..." Today's Topics: 1. how to remove a single quote from a name (Overcashier, Patricia) ---------------------------------------------------------------------- Message: 1 Date: Tue, 17 Oct 2006 12:30:28 -0400 From: "Overcashier, Patricia" Subject: [sqr-users] how to remove a single quote from a name To: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." Message-ID: Content-Type: text/plain; charset=3D"iso-8859-1" Hi everyone, I select a last name and before comparing it I remove all special character= s. Thanks to all of your help, I can do that successfully. The only character that I seem to struggle with removing is the single quote I have the name O'Hara I want it to be OHara I am using translate to remove all of the other oddities. let $lname =3D translate(lower($lname),'=E0=E1=E2=E7=E8=E9=EA=F1=F3=F6=ED',= 'aaaceeenooi') I have tried this: find ''' in $lname 0 #pos My errors happen here. I can't find th= e single quote to get rid of it. if #pos > 0 let #pso2 =3D #pos + 1 let $newlname =3D substr(lname,0,#pos)||substr($lname,#pos2) end-if Thanks again, Patti Overcashier Information Technology - PeopleSoft American Axle & Manufacturing, Inc. Detroit Gear Plant 3 1840 Holbrook Detroit, MI 48212 ------------------------------ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users End of sqr-users Digest, Vol 32, Issue 17 ***************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Oct 24 12:11:17 2006 Subject: RE: [sqr-users] RE: sqr-users Digest, Vol 32, Issue 17 Date: Tue, 24 Oct 2006 12:08:39 -0400 From: "Overcashier, Patricia" Very clever. Thank you. -----Original Message----- From: sqr-users-bounces+patricia.overcashier=3Daam.com@sqrug.org [mailto:sq= r-users-bounces+patricia.overcashier=3Daam.com@sqrug.org] On Behalf Of Lean= ne Harrisburg Sent: Tuesday, October 24, 2006 12:02 PM To: sqr-users@sqrug.org Subject: [sqr-users] RE: sqr-users Digest, Vol 32, Issue 17 I had a similar request from a user. I ended up encoding the apostrophe li= ke this: ! Encode an apostrophe=20 Encode '<039>' Into $Apost Then I searched for the apostrophe in the name field and proceeded from the= re. Find $Apost in $Name 0 #Apost_Pos Leanne Harrisburg National University Senior Programmer/Analyst Voice: (619) 563-2635 =20 =20 -----Original Message----- From: sqr-users-bounces+lharrisb=3Dnu.edu@sqrug.org [mailto:sqr-users-bounc= es+lharrisb=3Dnu.edu@sqrug.org] On Behalf Of sqr-users-request@sqrug.org Sent: Tuesday, October 24, 2006 3:05 AM To: sqr-users@sqrug.org Subject: sqr-users Digest, Vol 32, Issue 17 Send sqr-users mailing list submissions to sqr-users@sqrug.org To subscribe or unsubscribe via the World Wide Web, visit http://www.sqrug.org/mailman/listinfo/sqr-users or, via email, send a message with subject or body 'help' to sqr-users-request@sqrug.org You can reach the person managing the list at sqr-users-owner@sqrug.org When replying, please edit your Subject line so it is more specific than "Re: Contents of sqr-users digest..." Today's Topics: 1. how to remove a single quote from a name (Overcashier, Patricia) ---------------------------------------------------------------------- Message: 1 Date: Tue, 17 Oct 2006 12:30:28 -0400 From: "Overcashier, Patricia" Subject: [sqr-users] how to remove a single quote from a name To: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." Message-ID: Content-Type: text/plain; charset=3D"iso-8859-1" Hi everyone, I select a last name and before comparing it I remove all special character= s. Thanks to all of your help, I can do that successfully. The only character that I seem to struggle with removing is the single quote I have the name O'Hara I want it to be OHara I am using translate to remove all of the other oddities. let $lname =3D translate(lower($lname),'=E0=E1=E2=E7=E8=E9=EA=F1=F3=F6=ED',= 'aaaceeenooi') I have tried this: find ''' in $lname 0 #pos My errors happen here. I can't find th= e single quote to get rid of it. if #pos > 0 let #pso2 =3D #pos + 1 let $newlname =3D substr(lname,0,#pos)||substr($lname,#pos2) end-if Thanks again, Patti Overcashier Information Technology - PeopleSoft American Axle & Manufacturing, Inc. Detroit Gear Plant 3 1840 Holbrook Detroit, MI 48212 ------------------------------ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users End of sqr-users Digest, Vol 32, Issue 17 ***************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Oct 27 17:18:11 2006 Date: Tue, 24 Oct 2006 12:30:28 -0400 From: "Barry E. Cohen" Subject: RE: [sqr-users] how to remove a single quote from a name Hello, I just code it like this > let $lname =3D translate($lname, '''', '') Best, Barry > -----Original Message----- > From: sqr-users-bounces+barryecohen=3Dpobox.com@sqrug.org > [mailto:sqr-users-bounces+barryecohen=3Dpobox.com@sqrug.org]On Behalf Of > Overcashier, Patricia > Sent: Tuesday, October 17, 2006 12:30 PM > To: This list is for discussion about the SQR database reportinglanguage > from Hyperion Solutions. > Subject: [sqr-users] how to remove a single quote from a name > > > Hi everyone, > I select a last name and before comparing it I remove all special > characters. > Thanks to all of your help, I can do that successfully. > The only character that I seem to struggle with removing is the > single quote > > I have the name O'Hara > I want it to be OHara > I am using translate to remove all of the other oddities. > let $lname =3D translate(lower($lname),'=E0=E1=E2=E7=E8=E9=EA=F1=F3=F6=ED= ','aaaceeenooi') > > I have tried this: > find ''' in $lname 0 #pos My errors happen here. I > can't find the single quote to get rid of it. > if #pos > 0 > let #pso2 =3D #pos + 1 > let $newlname =3D substr(lname,0,#pos)||substr($lname,#pos2) > end-if > > Thanks again, > > Patti Overcashier > Information Technology - PeopleSoft > American Axle & Manufacturing, Inc. > Detroit Gear Plant 3 > 1840 Holbrook > Detroit, MI 48212 > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/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 Oct 24 12:34:15 2006 Date: Tue, 24 Oct 2006 09:31:41 -0700 (PDT) From: ven g Subject: [sqr-users] Excel cell limitation Hello all: I am new to this forum.... My sqr program is producing a CSV file report ... in one of the field, a 16 digit number is inserted ... but EXCEL truncates the last digit and puts a 0 in its place ... for instance if my sqr program inserts a value of 1234567890123456 in the csv field, then the excel makes it as "1234567890123450" so, the last digit is replaced with a 0 ... does any one know how to resolve this issue? Thanks in advance. Vg --------------------------------- Get your own web address for just $1.99/1st yr. We'll help. Yahoo! Small Business. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Oct 24 12:41:50 2006 Date: Tue, 24 Oct 2006 09:39:01 -0700 (PDT) From: ven g Subject: [sqr-users] parameters values? Hello: can some one tell me the values of these parameters means? I never used a batch file to run a sqr program before ... sqrw.exe 50Promo_TEST.sqr testbankdb/rpttest@orarpt -xcb '215' '531' '2' 'N' 'testbankdb' 'testbankdb' '' '' Thanks Vg --------------------------------- Stay in the know. Pulse on the new Yahoo.com. Check it out. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Oct 24 12:49:19 2006 From: "Joe" Subject: RE: [sqr-users] parameters values? Date: Tue, 24 Oct 2006 10:46:12 -0600 Looks to me like the SQR you are trying to run (50Promo_TEST.sqr) prompts for input and '215' '531' '2' 'N' 'testbankdb' 'testbankdb' '' '' are the input values. Look at the SQR in question and see if it is prompting for input. HTH, Joe Johnson Software Developer Ernest Health, Inc. -----Original Message----- From: sqr-users-bounces+joejohnson=ernesthealth.com@sqrug.org [mailto:sqr-users-bounces+joejohnson=ernesthealth.com@sqrug.org] On Behalf Of ven g Sent: Tuesday, October 24, 2006 10:39 AM To: sqr-users@sqrug.org Subject: [sqr-users] parameters values? Hello: can some one tell me the values of these parameters means? I never used a batch file to run a sqr program before ... sqrw.exe 50Promo_TEST.sqr testbankdb/rpttest@orarpt -xcb '215' '531' '2' 'N' 'testbankdb' 'testbankdb' '' '' Thanks Vg --------------------------------- Stay in the know. Pulse on the new Yahoo.com. Check it out. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Oct 24 13:23:45 2006 From: "the dragon" Subject: RE: [sqr-users] Excel cell limitation Date: Tue, 24 Oct 2006 12:20:33 -0500 While this is an EXCEL issue and not an SQR issue - my guess is this, based upon the following experience.... I think excel is interpretting the 16 digit number as a credit card (since credit cards are 16 digits long) and is using the 0 as a security feature... The reason I think this may be happening is that I was using excel for tracking my credit card information in case the cards were ever stolen, and I noticed this happening; the last digit being replaced as a 0. I am not certain how to fix it - perhaps treating it like a character or doing something manual when you open the file... peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) It is impossible to defeat an ignorant man in argument. William G. McAdoo ----Original Message Follows---- Hello all: I am new to this forum.... My sqr program is producing a CSV file report ... in one of the field, a 16 digit number is inserted ... but EXCEL truncates the last digit and puts a 0 in its place ... for instance if my sqr program inserts a value of 1234567890123456 in the csv field, then the excel makes it as "1234567890123450" so, the last digit is replaced with a 0 ... does any one know how to resolve this issue? Thanks in advance. Vg _________________________________________________________________ Try Search Survival Kits: Fix up your home and better handle your cash with Live Search! http://imagine-windowslive.com/search/kits/default.aspx?kit=improve&locale=en-US&source=hmtagline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Oct 24 13:27:10 2006 From: "the dragon" Subject: RE: [sqr-users] parameters values? Date: Tue, 24 Oct 2006 12:23:13 -0500 I recommend getting a copy of the SQR language reference manual which is downloadable from hyperion. You can also go to Amazon.com and search for SQR. There is a good book writtne by Landis, I believe. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) It is impossible to defeat an ignorant man in argument. William G. McAdoo ----Original Message Follows---- Hello: can some one tell me the values of these parameters means? I never used a batch file to run a sqr program before ... sqrw.exe 50Promo_TEST.sqr testbankdb/rpttest@orarpt -xcb '215' '531' '2' 'N' 'testbankdb' 'testbankdb' '' '' Thanks Vg _________________________________________________________________ Try the next generation of search with Windows Live Search today! http://imagine-windowslive.com/minisites/searchlaunch/?locale=en-us&source=hmtagline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Oct 24 13:32:44 2006 Date: Tue, 24 Oct 2006 10:30:10 -0700 (PDT) From: ven g Subject: RE: [sqr-users] Excel cell limitation you can have a loan # which is more than 15 digits ... so, need not be a credit card #. excell is not that smart to differentiate credit card # or some other # thanks for your opinion though. the dragon wrote: While this is an EXCEL issue and not an SQR issue - my guess is this, based upon the following experience.... I think excel is interpretting the 16 digit number as a credit card (since credit cards are 16 digits long) and is using the 0 as a security feature... The reason I think this may be happening is that I was using excel for tracking my credit card information in case the cards were ever stolen, and I noticed this happening; the last digit being replaced as a 0. I am not certain how to fix it - perhaps treating it like a character or doing something manual when you open the file... peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) It is impossible to defeat an ignorant man in argument. William G. McAdoo ----Original Message Follows---- Hello all: I am new to this forum.... My sqr program is producing a CSV file report ... in one of the field, a 16 digit number is inserted ... but EXCEL truncates the last digit and puts a 0 in its place ... for instance if my sqr program inserts a value of 1234567890123456 in the csv field, then the excel makes it as "1234567890123450" so, the last digit is replaced with a 0 ... does any one know how to resolve this issue? Thanks in advance. Vg _________________________________________________________________ Try Search Survival Kits: Fix up your home and better handle your cash with Live Search! http://imagine-windowslive.com/search/kits/default.aspx?kit=improve&locale=en-US&source=hmtagline --------------------------------- Get your email and more, right on the new Yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Oct 24 13:37:50 2006 Subject: RE: [sqr-users] Excel cell limitation Date: Tue, 24 Oct 2006 10:34:20 -0700 From: "Lynds,Rick" Actually this is a limitation in Excel - Numbers are limited to 15 digits of precision. (You can check this under help in "Microsoft Excel Specifications - number precision".) Rick -----Original Message----- From: sqr-users-bounces+rlynds=3Dmwdh2o.com@sqrug.org [mailto:sqr-users-bounces+rlynds=3Dmwdh2o.com@sqrug.org] On Behalf Of the dragon Sent: Tuesday, October 24, 2006 10:21 AM To: sqr-users@sqrug.org Cc: vrkpg@yahoo.com Subject: RE: [sqr-users] Excel cell limitation While this is an EXCEL issue and not an SQR issue - my guess is this, based upon the following experience.... I think excel is interpretting the 16 digit number as a credit card (since credit cards are 16 digits long) and is using the 0 as a security feature... The reason I think this may be happening is that I was using excel for tracking my credit card information in case the cards were ever stolen, and I noticed this happening; the last digit being replaced as a 0. I am not certain how to fix it - perhaps treating it like a character or doing something manual when you open the file... peace, clark 'the dragon' willis _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Oct 24 13:41:28 2006 Subject: RE: [sqr-users] Excel cell limitation From: Roger.Harris@certegy.com Date: Tue, 24 Oct 2006 13:34:20 -0400 You are right, it is an Excel "feature"? Same as truncating leading zeros "0" in cell with all digits which leads to the solution. Format the cell output like this: ="xxxxxxxxxxxxxxxx". To see this try putting this line into a text file with .csv extension: ="1234567890123456",9987654321032165 Then open the file with Excel. The first cell will have 1234567890123456 and the second will be 9987654321032160. Roger L. Harris Programmer Analyst Sr Product Development Certegy Check Services Fidelity National Information Services, Inc 11601 N. Roosevelt Blvd St Petersburg, FL 33716 (727) 227-5850 direct (800) 215-6280 x75850 toll free (727) 570-4917 Fax |---------+----------------------------------------------------> | | "the dragon" | | | Sent by: | | | sqr-users-bounces+roger.harris=certegy.co| | | m@sqrug.org | | | | | | | | | 10/24/2006 01:20 PM | | | Please respond to "This list is for | | | discussion about the SQR database | | | reporting language from Hyperion | | | Solutions." | |---------+----------------------------------------------------> >---------------------------------------------------------------------------------------------| | | | To: sqr-users@sqrug.org | | cc: vrkpg@yahoo.com | | Subject: RE: [sqr-users] Excel cell limitation | >---------------------------------------------------------------------------------------------| While this is an EXCEL issue and not an SQR issue - my guess is this, based upon the following experience.... I think excel is interpretting the 16 digit number as a credit card (since credit cards are 16 digits long) and is using the 0 as a security feature... The reason I think this may be happening is that I was using excel for tracking my credit card information in case the cards were ever stolen, and I noticed this happening; the last digit being replaced as a 0. I am not certain how to fix it - perhaps treating it like a character or doing something manual when you open the file... peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) It is impossible to defeat an ignorant man in argument. William G. McAdoo ----Original Message Follows---- Hello all: I am new to this forum.... My sqr program is producing a CSV file report ... in one of the field, a 16 digit number is inserted ... but EXCEL truncates the last digit and puts a 0 in its place ... for instance if my sqr program inserts a value of 1234567890123456 in the csv field, then the excel makes it as "1234567890123450" so, the last digit is replaced with a 0 ... does any one know how to resolve this issue? Thanks in advance. Vg _________________________________________________________________ Try Search Survival Kits: Fix up your home and better handle your cash with Live Search! http://imagine-windowslive.com/search/kits/default.aspx?kit=improve&locale=en-US&source=hmtagline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------------ This message contains information from Certegy, Inc which may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e:mail postmaster@certegy.com. ============================================================================== _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Oct 24 13:45:08 2006 Subject: RE: [sqr-users] Excel cell limitation Date: Tue, 24 Oct 2006 10:35:53 -0700 From: "Lynds,Rick" If you do need to have numbers that are larger than 15 digits - you will probably need to treat them as text fields. Rick=20 -----Original Message----- From: sqr-users-bounces+rlynds=3Dmwdh2o.com@sqrug.org [mailto:sqr-users-bounces+rlynds=3Dmwdh2o.com@sqrug.org] On Behalf Of ven g Sent: Tuesday, October 24, 2006 10:30 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Excel cell limitation you can have a loan # which is more than 15 digits ... so, need not be a credit card #.=20 excell is not that smart to differentiate credit card # or some other # =20=20=20 thanks for your opinion though. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Oct 27 16:31:50 2006 Date: Tue, 24 Oct 2006 13:36:43 -0400 From: "White . Denise" Subject: [sqr-users] RE: ow to remove a single quote from a name Hi Patti, I suspect you need one more quote in there, for a total of four. In a lite= ral string, you need to put two single quotes in order to get them to resol= ve to one. Therefore, four quotes would give you: one to start the quoted = literal, two to resolve to the one you are looking for, and one to end the = quoted literal. HTH, Denise M. White EBS Programmer/Analyst III Dynamics Research Corporation ---------------------------------------------------------------------- Message: 1 Date: Tue, 17 Oct 2006 12:30:28 -0400 From: "Overcashier, Patricia" Subject: [sqr-users] how to remove a single quote from a name To: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." Message-ID: Content-Type: text/plain; charset=3D"iso-8859-1" Hi everyone, I select a last name and before comparing it I remove all special character= s. Thanks to all of your help, I can do that successfully. The only character that I seem to struggle with removing is the single quote I have the name O'Hara I want it to be OHara I am using translate to remove all of the other oddities. let $lname =3D translate(lower($lname),'=E0=E1=E2=E7=E8=E9=EA=F1=F3=F6=ED',= 'aaaceeenooi') I have tried this: find ''' in $lname 0 #pos My errors happen here. I can't find th= e single quote to get rid of it. if #pos > 0 let #pso2 =3D #pos + 1 let $newlname =3D substr(lname,0,#pos)||substr($lname,#pos2) end-if Thanks again, Patti Overcashier Information Technology - PeopleSoft American Axle & Manufacturing, Inc. Detroit Gear Plant 3 1840 Holbrook Detroit, MI 48212 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Oct 24 15:00:24 2006 Subject: RE: [sqr-users] Excel cell limitation Date: Tue, 24 Oct 2006 14:57:55 -0400 From: "Ray, Christine Marie" When we need to make Excel treat a number as a character we use:=20 '=3D"' || $variable || '"'=20=20=20=20 Christine Ray Indiana University Bloomington FMS Administration Poplars 833 =20 -----Original Message----- From: sqr-users-bounces+chmray=3Dindiana.edu@sqrug.org [mailto:sqr-users-bounces+chmray=3Dindiana.edu@sqrug.org] On Behalf Of ven g Sent: Tuesday, October 24, 2006 12:32 PM To: sqr-users@sqrug.org Subject: [sqr-users] Excel cell limitation Hello all: =20=20=20 I am new to this forum.... My sqr program is producing a CSV file report ... in one of the field, a 16 digit number is inserted ... but EXCEL truncates the last digit and puts a 0 in its place ... for instance if my sqr program inserts a value of 1234567890123456 in the csv field, then the excel makes it as "1234567890123450" so, the last digit is replaced with a 0 ... does any one know how to resolve this issue? Thanks in advance. Vg =20=09=09=09=09 --------------------------------- Get your own web address for just $1.99/1st yr. We'll help. Yahoo! Small Business. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Oct 24 15:42:19 2006 Date: Tue, 24 Oct 2006 15:40:09 -0400 From: "Laura Mayer" Subject: [sqr-users] if statement syntax Good afternoon, I'm trying to say=20 if $HasInactiveRow =3D 'Y' or $IsResident=3D'N' AND $comment<>'New To Bldg'= =20 Does this have to be in parentheses or something for it to evaluate all tog= ether? Thanks in advance. Laura _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Oct 24 15:54:31 2006 From: "the dragon" Subject: RE: [sqr-users] if statement syntax Date: Tue, 24 Oct 2006 14:51:40 -0500 That depends on how you want it processed... with no parens, it processes from L to R. If you logic has to be either the first condition or the second condition and the third condition, then it is fine... If you want it any other way, such as either condition1 or (cond 2 and cond 3) then you need parens peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) It is impossible to defeat an ignorant man in argument. William G. McAdoo ----Original Message Follows---- Good afternoon, I'm trying to say if $HasInactiveRow = 'Y' or $IsResident='N' AND $comment<>'New To Bldg' Does this have to be in parentheses or something for it to evaluate all together? Thanks in advance. Laura _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Get FREE company branded e-mail accounts and business Web site from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/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 Oct 24 16:02:17 2006 Date: Tue, 24 Oct 2006 15:58:54 -0400 From: "Laura Mayer" Subject: RE: [sqr-users] if statement syntax Great! Thanks for the clarification Laura >>> "the dragon" 10/24/2006 3:51 PM >>> That depends on how you want it processed... with no parens, it processes= =20 from L to R. If you logic has to be either the first condition or the second condition= =20 and the third condition, then it is fine... If you want it any other way, such as either condition1 or (cond 2 and cond= =20 3) then you need parens peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your= =20 services for 40 hours a week, not purchasing your soul. Your time is the=20 only real finite asset that you have, and once used it can never be=20 recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you= =20 can determine how it will be spent. Be careful lest you let other people=20 spend it for you." Carl Sandburg (1878 - 1967) It is impossible to defeat an ignorant man in argument. William G. McAdoo ----Original Message Follows---- Good afternoon, I'm trying to say if $HasInactiveRow =3D 'Y' or $IsResident=3D'N' AND $comment<>'New To Bldg' Does this have to be in parentheses or something for it to evaluate all=20 together? Thanks in advance. Laura _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _________________________________________________________________ Get FREE company branded e-mail accounts and business Web site from=20 Microsoft Office Live=20 http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Oct 24 16:24:38 2006 Subject: RE: [sqr-users] if statement syntax Date: Tue, 24 Oct 2006 15:21:12 -0500 From: "Jim Womeldorf" If you use parentheses you will be certain as to the order of evaluation of statements like these. The innermost parentheses will be evaluated first, then the next set on out to the outermost ones. It also makes your code more readable by someone else.=20 E.g. do you mean if ($HasInactiveRow =3D 'Y' or $IsResident=3D'N') AND $comment<>'New To Bldg'=20 or=20 if $HasInactiveRow =3D 'Y' or ($IsResident=3D'N' AND $comment<>'New To Bldg') -----Original Message----- From: sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org] On Behalf Of Laura Mayer Sent: Tuesday, October 24, 2006 2:40 PM To: sqr-users@sqrug.org Subject: [sqr-users] if statement syntax Good afternoon, I'm trying to say=20 if $HasInactiveRow =3D 'Y' or $IsResident=3D'N' AND $comment<>'New To Bldg'= =20 Does this have to be in parentheses or something for it to evaluate all together? Thanks in advance. Laura _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Oct 24 18:52:15 2006 From: "the dragon" Subject: RE: [sqr-users] if statement syntax Date: Tue, 24 Oct 2006 17:49:14 -0500 OK, I'd like to change my answer...... I'd like to suggest that you always group your logical expressions with parenthesis in the order you want the logical statement evaluated. I use parenthesis when I use an if statement, even if I only have 1 or or 1 and; it just makes it easier to read and separates it into a logical (no pun intended) grouping. OK, expanding... As I guess I was getting sqr confused with some other language, according to the sqr language reference manual I have, logical functions are processed in this hierarchy in SQR: || +,- (sign prefix) ^ *,/,% +,- >, <, >=, <=, <>, !=, = not and or, xor NOTE : anything on a given line above or below, if it's the same type gets processed left to right, ie 5 + 6 - 7. goes (5+6) - 7 aka 11 - 7 for Oracle, the sequence is +, - (sign prefix) *, / +, -, || =, !=, <, >, <=, >=, IS NULL, LIKE, BETWEEN, IN NOT AND OR So, as my dba friend pointed out to me as we were doing testing while chatting on the phone, in your statement "if $HasInactiveRow = 'Y' or $IsResident='N' AND $comment<>'New To Bldg'" this would be processed (as it sits) as... 1) $HasInactiveRow = 'Y' evaluates to true or false 2) $IsResident='N' evaluates to true or false 3) $comment<>'New To Bldg' evaluates to true or false 4) true from 2 AND true from 3 have to evaluate to true 5) true from 1 or true from 4 will give you a true condition for this if statement and allow further processing. As you can also see, if statements in sqr will process in a slightly different precedence than where clauses in oracle, so keep that in mind. hope this confuses. :-p peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) It is impossible to defeat an ignorant man in argument. William G. McAdoo ----Original Message Follows---- That depends on how you want it processed... with no parens, it processes from L to R. If you logic has to be either the first condition or the second condition and the third condition, then it is fine... If you want it any other way, such as either condition1 or (cond 2 and cond 3) then you need parens peace, clark 'the dragon' willis ----Original Message Follows---- Good afternoon, I'm trying to say if $HasInactiveRow = 'Y' or $IsResident='N' AND $comment<>'New To Bldg' Does this have to be in parentheses or something for it to evaluate all together? Thanks in advance. Laura _________________________________________________________________ Add a Yahoo! contact to Windows Live Messenger for a chance to win a free trip! http://www.imagine-windowslive.com/minisites/yahoo/default.aspx?locale=en-us&hmtagline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Oct 25 13:42:13 2006 Date: Wed, 25 Oct 2006 13:39:47 -0400 From: "Laura Mayer" Subject: RE: [sqr-users] if statement syntax Yikes! I liked your first answer better :) And here I thought I was asking a simple one sentence answer.=20 Thanks for taking the time to clarify.=20 >>> ceprn@hotmail.com 10/24/2006 6:49 PM >>> OK, I'd like to change my answer...... I'd like to suggest that you always group your logical expressions with=20 parenthesis in the order you want the logical statement evaluated. I use= =20 parenthesis when I use an if statement, even if I only have 1 or or 1 and;= =20 it just makes it easier to read and separates it into a logical (no pun=20 intended) grouping. OK, expanding... As I guess I was getting sqr confused with some other=20 language, according to the sqr language reference manual I have, logical=20 functions are processed in this hierarchy in SQR: || +,- (sign prefix) ^ *,/,% +,- >, <, >=3D, <=3D, <>, !=3D, =3D not and or, xor NOTE : anything on a given line above or below, if it's the same type gets= =20 processed left to right, ie 5 + 6 - 7. goes (5+6) - 7 aka 11 - 7 for Oracle, the sequence is +, - (sign prefix) *, / +, -, || =3D, !=3D, <, >, <=3D, >=3D, IS NULL, LIKE, BETWEEN, IN NOT AND OR So, as my dba friend pointed out to me as we were doing testing while=20 chatting on the phone, in your statement "if $HasInactiveRow =3D 'Y' or=20 $IsResident=3D'N' AND $comment<>'New To Bldg'" this would be processed (as it sits) as... 1) $HasInactiveRow =3D 'Y' evaluates to true or false 2) $IsResident=3D'N' evaluates to true or false 3) $comment<>'New To Bldg' evaluates to true or false 4) true from 2 AND true from 3 have to evaluate to true 5) true from 1 or true from 4 will give you a true condition for this if=20 statement and allow further processing. As you can also see, if statements in sqr will process in a slightly=20 different precedence than where clauses in oracle, so keep that in mind. hope this confuses. :-p peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your= =20 services for 40 hours a week, not purchasing your soul. Your time is the=20 only real finite asset that you have, and once used it can never be=20 recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you= =20 can determine how it will be spent. Be careful lest you let other people=20 spend it for you." Carl Sandburg (1878 - 1967) It is impossible to defeat an ignorant man in argument. William G. McAdoo ----Original Message Follows---- That depends on how you want it processed... with no parens, it processes= =20 from L to R. If you logic has to be either the first condition or the second condition= =20 and the third condition, then it is fine... If you want it any other way, such as either condition1 or (cond 2 and cond= =20 3) then you need parens peace, clark 'the dragon' willis ----Original Message Follows---- Good afternoon, I'm trying to say if $HasInactiveRow =3D 'Y' or $IsResident=3D'N' AND $comment<>'New To Bldg' Does this have to be in parentheses or something for it to evaluate all=20 together? Thanks in advance. Laura _________________________________________________________________ Add a Yahoo! contact to Windows Live Messenger for a chance to win a free= =20 trip!=20 http://www.imagine-windowslive.com/minisites/yahoo/default.aspx?locale=3Den= -us&hmtagline=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 Oct 25 14:40:57 2006 Date: Wed, 25 Oct 2006 11:38:16 -0700 (PDT) From: John Czekaj Subject: [sqr-users] Executing UNIX shell scripts from inside an SQR program I have a client who is attempting to invoke a UNIX shell script from inside= an SQR. Sometimes these shell scripts copy files into archive directories= and send emails. Other times there are other UNIX commands being executed= . They are having two issues: =20 (1) The SQRs they are being initiated via the Process Scheduler (ADP Enterp= rise Version 4C running on a Sun box using Solaris 9). When the shell scri= pts are run, any output that goes to STDOUT is going into the Process Sched= uler log file instead of the initiating SQR's log file, which is what used = to happen when they were running SQR V3. They are now running SQR V8.1 =20 (2) Apparently, the shell scripts themselves cannot be more than 200 lines = long. If they are longer, they just quit at the point of the 200th line. =20 Is there a way to redirect STDOUT to write to the initiating SQR log file i= nstead of the Process Scheduler log file? Is there some environment settin= g that controls the size of a command file that is executed by a CALL SYSTE= M command? =20 If anyone has any insight on these issues and/or workarounds, I would appre= ciate the information. Thanks in advance for your help. =20 John =20 John Czekaj Senior Upgrade Specialist ADP National Accounts - Upgrade & Patch Services _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Oct 25 15:05:14 2006 From: SandlerA@DFO-MPO.GC.CA Date: Wed, 25 Oct 2006 15:02:25 -0400 Subject: [sqr-users] Using a variable in an Input statement for the prompt Does anyone know if is possible for the prompt of an input statement to be a variable. I am validating user input and would like to echo back to the user in the prompt part of what was input. =20 I am using SQR version 6.1.3 with Maximo. I cannot use SHOW because all show commands are written to the log (and not to the screen). Also, I must work with this version of SQR; upgrading is not possible. =20 Thank you,=20 Aaron Sandler MIMS Technical Team |=C9quipe technique SGIE Canadian Coast Guard|Garde c=F4ti=E8re canadienne Government of Canada| Gouvernement du Canada _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Oct 25 15:27:15 2006 Date: Wed, 25 Oct 2006 12:24:40 -0700 (PDT) From: John Czekaj Subject: Re: [sqr-users] Using a variable in an Input statement for the prompt Aaron, Are you executing this SQR interactively. If so, SHOW statements are writt= en to both the screen and to the log file. Perhaps you have a command line= argument that is preventing the SHOW commands from displaying on the scree= n. Just a couple of thoughts. =20 John Czekaj Senior Upgrade Specialist ADP National Accounts - Upgrade and Patch Services ----- Original Message ---- From: "SandlerA@DFO-MPO.GC.CA" To: sqr-users@sqrug.org Sent: Wednesday, October 25, 2006 3:02:25 PM Subject: [sqr-users] Using a variable in an Input statement for the prompt Does anyone know if is possible for the prompt of an input statement to be a variable. I am validating user input and would like to echo back to the user in the prompt part of what was input. I am using SQR version 6.1.3 with Maximo. I cannot use SHOW because all show commands are written to the log (and not to the screen). Also, I must work with this version of SQR; upgrading is not possible. Thank you,=20 Aaron Sandler MIMS Technical Team |=C9quipe technique SGIE Canadian Coast Guard|Garde c=F4ti=E8re canadienne Government of Canada| Gouvernement du Canada _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Oct 25 16:39:51 2006 Subject: RE: [sqr-users] Using a variable in an Input statement for the prompt Date: Wed, 25 Oct 2006 16:37:30 -0400 From: "Ray, Christine Marie" I like using the display command. Is this command available in your version= of SQR? display $variable If you want to add text to the output: Let $line =3D 'text to display: ' || $variable 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 SandlerA@DFO-MPO.GC.CA Sent: Wednesday, October 25, 2006 3:02 PM To: sqr-users@sqrug.org Subject: [sqr-users] Using a variable in an Input statement for the prompt Does anyone know if is possible for the prompt of an input statement to be a variable. I am validating user input and would like to echo back to the user in the prompt part of what was input. =20 I am using SQR version 6.1.3 with Maximo. I cannot use SHOW because all show commands are written to the log (and not to the screen). Also, I must work with this version of SQR; upgrading is not possible. =20 Thank you,=20 Aaron Sandler MIMS Technical Team |=C9quipe technique SGIE Canadian Coast Guard|Garde c=F4ti=E8re canadienne Government of Canada| Gouvernement du Canada _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Oct 26 08:26:47 2006 Date: Thu, 26 Oct 2006 08:23:39 -0400 From: Amy Eldridge Subject: Re: [sqr-users] Using a variable in an Input statement for the prompt At 03:02 PM 10/25/2006, SandlerA@DFO-MPO.GC.CA wrote: >Does anyone know if is possible for the prompt of an input statement to be= a >variable. I am validating user input and would like to echo back to the >user in the prompt part of what was input. > >I am using SQR version 6.1.3 with Maximo. I cannot use SHOW because all >show commands are written to the log (and not to the screen). Also, I must >work with this version of SQR; upgrading is not possible. > >Thank you, >Aaron Sandler Aaron, I think what you're asking is can the value of one input be=20 incorporated into the input prompt of a second input. Something like: input $year 'Enter a year' input $validate 'You entered 2006 - do you want to proceed' Whereas 2006 is the value of $year. I played around with inputs and had no luck, but I did have luck with ask= =20 statements and with a combo of ask and inputs. For example, this works: begin-setup ask $first_prompt 'Enter a value here' ask $second_prompt 'You entered {$first_prompt} above - do you want to= =20 proceed' end-setup And this combo of asks and inputs works: begin-setup ask $first_prompt 'Enter a value here' end-setup begin-program input $second_prompt 'you entered {$first_prompt} above' end-program Maybe that will get you started. Amy Eldridge Miami University >MIMS Technical Team |=C9quipe technique SGIE > >Canadian Coast Guard|Garde c=F4ti=E8re canadienne > >Government of Canada| Gouvernement du Canada > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/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 Oct 27 18:50:46 2006 Subject: RE: [sqr-users] how to remove a single quote from a name Date: Fri, 27 Oct 2006 16:51:31 -0400 From: "Peter Burton" All, Begin-Report Let $Name =3D Replace('O''Hara', '''', '') Show $Name End-Report=20 Peter -----Original Message----- From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org [mailto:sqr-u= sers-bounces+peter_burton=3Dhyperion.com@sqrug.org] On Behalf Of PeterG Cla= rk Sent: Tuesday, October 24, 2006 10:03 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] how to remove a single quote from a name I think you can use the translate for that as well: let $q =3D chr(39) let $null =3D '' let $lname =3D translate($lname,$q,$null) I haven't tested it, but give it a shot :-) >>> Patricia.Overcashier@aam.com 2006/10/17 13:30:28 >>> Hi everyone, I select a last name and before comparing it I remove all special character= s. Thanks to all of your help, I can do that successfully. The only character that I seem to struggle with removing is the single quote I have the name O'Hara I want it to be OHara I am using translate to remove all of the other oddities. let $lname =3D translate(lower($lname),'=E0=E1=E2=E7=E8=E9=EA=F1=F3=F6=ED',= 'aaaceeenooi') I have tried this: find ''' in $lname 0 #pos My errors happen here. I can't find th= e single quote to get rid of it. if #pos > 0 let #pso2 =3D #pos + 1 let $newlname =3D substr(lname,0,#pos)||substr($lname,#pos2) end-if Thanks again, Patti Overcashier Information Technology - PeopleSoft American Axle & Manufacturing, Inc. Detroit Gear Plant 3 1840 Holbrook Detroit, MI 48212 _______________________________________________ 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 If you have received this e-mail in error, please delete it and notify the = sender as soon as possible. The contents of this e-mail may be confidential= and the unauthorized use, copying, or dissemination of it and any attachme= nts to it, is prohibited. Internet communications are not secure and Hyperi= on does not, therefore, accept legal responsibility for the contents of thi= s message nor for any damage caused by viruses. The views expressed here do= not necessarily represent those of Hyperion. For more information about Hy= perion, please visit our Web site at: www.hyperion.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Oct 27 22:53:48 2006 Subject: Re: [sqr-users] how to remove a single quote from a name From: JOHN_HARRIS@qvc.com Date: Fri, 27 Oct 2006 20:38:41 -0400 This is a multi-part message in MIME format... --0__=0ABBF886DF90CAD68f9e8a93df938690918c0ABBF886DF90CAD6 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: quoted-printable Try this: =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 repla Inspects the contents of source_value and replaces all occurrences ce of from_string with to_string and returns the modified string.=20=20 Syntax: dst_var =3D replace(source_value, from_string, to_string) source_value =3D date or text literal, column, variable, or expression=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 from_string =3D text literal, column, variable, or expression to_string =3D text literal, column, variable, or expression dst_var =3D text variable=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 Example: let $replaced =3D replace($paragraph, `good', `excellent') =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 let $q =3D chr(39) let $null =3D '' let $lname =3D replace($lname,$q,$null) =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 Any questions, please call or email=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 me=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 Thank you.=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 Regards,=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 John=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 (Embedded image moved to file: John Harris=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 pic25128.jpg) Programmer/Analyst=20=20=20=20=20= =20=20=20=20=20=20=20 Application Development -=20=20=20= =20=20 Internal=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 QVC Inc., 1200 Wilson Drive, MC 220, West Chester, PA 19380-4262 Telephone 484-701-3303 Fax 484-701-8437 e-mail jharris@qvc.com This message may contain information that is privileged or confidential. This message may contain information that is privileged or confidential. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 "PeterG Clark"=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20 To Ext: =20=20=20=20=20= =20=20=20=20=20=20 Sent by: cc sqr-users-bounces=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 +john_harris=3Dqvc. Subject com@sqrug.org Re: [sqr-users] how to remove a=20 single quote from a name=20=20=20=20= =20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 10/27/2006 05:14=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 PM=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 Please respond to=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 "This list is for=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 discussion about=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 the SQR database=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 reporting=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 language from=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20 Hyperion=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20 Solutions."=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 I think you can use the translate for that as well: let $q =3D chr(39) let $null =3D '' let $lname =3D translate($lname,$q,$null) I haven't tested it, but give it a shot :-) >>> Patricia.Overcashier@aam.com 2006/10/17 13:30:28 >>> Hi everyone, I select a last name and before comparing it I remove all special characters. Thanks to all of your help, I can do that successfully. The only character that I seem to struggle with removing is the single quote I have the name O'Hara I want it to be OHara I am using translate to remove all of the other oddities. let $lname =3D translate(lower($lname),'=E0=E1=E2=E7=E8=E9=EA=F1=F3=F6=ED',= 'aaaceeenooi') I have tried this: find ''' in $lname 0 #pos My errors happen here. I can't find the single quote to get rid of it. if #pos > 0 let #pso2 =3D #pos + 1 let $newlname =3D substr(lname,0,#pos)||substr($lname,#pos2) end-if Thanks again, Patti Overcashier Information Technology - PeopleSoft American Axle & Manufacturing, Inc. Detroit Gear Plant 3 1840 Holbrook Detroit, MI 48212 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --0__=0ABBF886DF90CAD68f9e8a93df938690918c0ABBF886DF90CAD6 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'image/jpeg' MIME type. It has been automatically discarded before sending the message to the list. --0__=0ABBF886DF90CAD68f9e8a93df938690918c0ABBF886DF90CAD6 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --0__=0ABBF886DF90CAD68f9e8a93df938690918c0ABBF886DF90CAD6-- From sqr-users-bounces@sqrug.org Mon Oct 30 15:09:15 2006 Date: Mon, 30 Oct 2006 14:06:23 -0600 From: "Sumana.Akella" Subject: [sqr-users] (SQR 3716) Error in SQL statement.Error in include file When I run the below code .... I get these 2 errors=20 Error in include file sqr\curdttim.sqc (SQR 3716) Error in SQL statement. =20 Begin-select distinct export from( select '11100' || d.SSN || substr(d.SSN, 6, 4) || to_char(p.birthdate, 'YYYY') || substr(d.ye_lname, 1, 20)=20 || substr(' ', 1, 20-length(d.ye_lname)) || substr(d.ye_fname, 1, 15) || substr(' ', 1, 15-length(d.ye_fname)) ||=20=20 substr(d.ye_middle_name, 1, 1) || substr(' ', 1, 1-length(d.ye_middle_name)) export=20=20=20 from=20 ps_ye_data d inner join ps_person p on d.emplid =3D p.emplid=20 and calendar_year =3D 2005 and d.emplid =3D '008522' ) a =20 UNION ALL select '********' || to_char((select count(distinct ssn) from ps_ye_data where calendar_year =3D 2004)) || ' ' from=20 dual end-select Thanks Sumana _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Oct 31 00:10:09 2006 Date: Mon, 30 Oct 2006 21:07:23 -0800 (PST) From: Prasanth Pennepalli Subject: Re: [sqr-users] (SQR 3716) Error in SQL statement.Error in include file Sumana, I had a similar problem with Peoplesoft SQR when running on MSSQL. It didn= 't allow complex FROM clauses (esp. SELECT statements in FROM clause). Th= e work around was to prepare the SQL in a string and execute. Prasanth. ----- Original Message ---- From: Sumana.Akella To: This list is for discussion about the SQR database reportinglanguage fr= om Hyperion Solutions. Sent: Monday, October 30, 2006 12:06:23 PM Subject: [sqr-users] (SQR 3716) Error in SQL statement.Error in include file When I run the below code .... I get these 2 errors=20 Error in include file sqr\curdttim.sqc (SQR 3716) Error in SQL statement. =20 Begin-select distinct export from( select '11100' || d.SSN || substr(d.SSN, 6, 4) || to_char(p.birthdate, 'YYYY') || substr(d.ye_lname, 1, 20)=20 || substr(' ', 1, 20-length(d.ye_lname)) || substr(d.ye_fname, 1, 15) || substr(' ', 1, 15-length(d.ye_fname)) ||=20=20 substr(d.ye_middle_name, 1, 1) || substr(' ', 1, 1-length(d.ye_middle_name)) export=20=20=20 from=20 ps_ye_data d inner join ps_person p on d.emplid =3D p.emplid=20 and calendar_year =3D 2005 and d.emplid =3D '008522' ) a =20 UNION ALL select '********' || to_char((select count(distinct ssn) from ps_ye_data where calendar_year =3D 2004)) || ' ' from=20 dual end-select Thanks Sumana _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Oct 31 09:08:16 2006 Subject: RE: [sqr-users] (SQR 3716) Error in SQL statement.Error in includefile Date: Tue, 31 Oct 2006 08:05:11 -0600 From: "Sumana.Akella" Thanks=20 -----Original Message----- From: sqr-users-bounces+sumana.akella=3Dkiewit.com@sqrug.org [mailto:sqr-users-bounces+sumana.akella=3Dkiewit.com@sqrug.org] On Behalf Of Prasanth Pennepalli Sent: Monday, October 30, 2006 11:07 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] (SQR 3716) Error in SQL statement.Error in includefile Sumana, I had a similar problem with Peoplesoft SQR when running on MSSQL. It didn't allow complex FROM clauses (esp. SELECT statements in FROM clause). The work around was to prepare the SQL in a string and execute. Prasanth. ----- Original Message ---- From: Sumana.Akella To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Sent: Monday, October 30, 2006 12:06:23 PM Subject: [sqr-users] (SQR 3716) Error in SQL statement.Error in include file When I run the below code .... I get these 2 errors=20 Error in include file sqr\curdttim.sqc (SQR 3716) Error in SQL statement. =20 Begin-select distinct export from( select '11100' || d.SSN || substr(d.SSN, 6, 4) || to_char(p.birthdate, 'YYYY') || substr(d.ye_lname, 1, 20)=20 || substr(' ', 1, 20-length(d.ye_lname)) || substr(d.ye_fname, 1, 15) || substr(' ', 1, 15-length(d.ye_fname)) ||=20=20 substr(d.ye_middle_name, 1, 1) || substr(' ', 1, 1-length(d.ye_middle_name)) export=20=20=20 from=20 ps_ye_data d inner join ps_person p on d.emplid =3D p.emplid=20 and calendar_year =3D 2005 and d.emplid =3D '008522' ) a =20 UNION ALL select '********' || to_char((select count(distinct ssn) from ps_ye_data where calendar_year =3D 2004)) || ' ' from=20 dual end-select Thanks Sumana _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 01 00:02:35 2006 Date: Wed, 1 Nov 2006 00:00:03 -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.22 $ $Date: 2005/08/19 05:12:40 $ This document gathers in one location information about the sqr-users mail list. It includes instructions for changing your subscription settings (including unsubscribing), as well are guidelines for using the list. ______________________________________________________________________ Table of Contents 1. Changes Since Previous Version 2. Introduction 2.1 sqr-users Mailing List 2.2 sqr-users Hints and Guidelines Document 2.3 Related Mailing Lists 3. Interacting with the list server 3.1 Subscribing to the list 3.2 Unsubscribing from the list 3.3 When your email address changes 3.4 Digests 3.5 Obtaining your password 3.6 Problems 4. Posting to the sqr-users List 4.1 General Guidelines 4.2 Posting a Message 4.3 Replying to a Message 5. Job Announcements ______________________________________________________________________ 1. Changes Since Previous Version Changes since the version dated 2005/08/19: o Added note about spam filtering and sender verification systems blocking subscription confirmation messages. 2. Introduction 2.1. sqr-users Mailing List The sqr-users mailing list was created to enable discussion related to the SQR database language from Hyperion (and to other products in the SQR product suite). Note: SQR used to be published by SQRIBE Technologies, which was merged into Brio Technology on August 3, 1999. Brio Technology changed its name to Brio Software in October 2001. On October 16, 2003, Hyperion acquired Brio Software. SQR and related applications have also been called "Brio.Report" and "Brio Reports". The mailing list is provided as a service of Ray Ontko & Co. A searchable archive of past postings to the mailing list is available from the SQR Users Group web site . 2.2. sqr-users Hints and Guidelines Document This document gives various hints and guidelines about the sqr-users mailing list. It will be posted approximately monthly to the mailing list so that new users can see it (and existing users can find it easily). An HTML version of the document is always available at http://www.sqrug.org/sqr-users/sqr-users-hints.html. If you have comments or suggestions about this document, please contact me directly at the address listed in the title section. This document is Copyright (C) 1999-2004 by Ray Ontko & Co. It may be freely copied and distributed provided it is not modified in any way and it retains the original copyright notice. 2.3. Related Mailing Lists Here are some mailing lists that cover topics relating to SQR in some way. sqr-jobs : SQR Jobs This list may be used for posting SQR-related resumes, recruitments, job announcements, project announcments, help- wanted, work-wanted ads, etc. To join, follow the link above, or send any message to "sqr-jobs-subscribe@yahoogroups.com". peoplesoft-fans : PeopleSoft Fans Moderated list covering technical and functional aspects of PeopleSoft. To join, follow the link above, or send any message to "peoplesoft-fans-subscribe@yahoogroups.com". psusers : PeopleSoft Users For questions related to any aspect of PeopleSoft (including PeopleSoft-specific SQR issues). This list has merged with the Peoplesoft Fans mailing list and is no longer active, but the message achive can still be found at the link above. HyperionSQR : Hyperion- SQR List for discussion of SQR, SQR Developer (formerly called Brio.Report and Report Builder), and SQR iServer. To join, follow the link above, or send any message to "HyperionSQR- subscribe@yahoogroups.com". rm-users : Report- Mart Users List for discussion of Brio Portal (previously called ReportMart). To join, follow the link above, or send a message containing the word "subscribe" in the body to "rm-users- request@sqrug.org". brioportalusersgroup : Brio Portal Users Group list List for discussion of Brio Portal. To join, follow the link above, or send any message to "brioportalusersgroup- subscribe@yahoogroups.com". brio-l : OpenITx Brio List List for technical and functional discussion of all Brio products (but most messages are currently about Brio Intelligence). To join, follow the link above. briousers : Brio.Enter- prise Users List for discussion of the Brio.Enterprise (now called Intelligence) product. To join, follow the link above, or send any message to "briousers-subscribe@yahoogroups.com". briolist : Brio List List for discussion of Brio Intelligence. To join, follow the link above, or send any message to "briolist- subscribe@yahoogroups.com". 3. Interacting with the list server The sqr-users mailing list is hosted using the Mailman list server package. All of the Mailman functions described below are accessed from the sqr-users List Info page, "http://www.sqrug.org/mailman/listinfo/sqr-users". 3.1. Subscribing to the list To subscribe to the mailing list, enter your e-mail address in the box at the top of the "Subscribing to sqr-users" section on the sqr-users List Info page, then choose a password to assign to your subscription and enter it in both "Password" boxes. This password is used to allow you to securely make changes to your subscription over the web. This password will be e-mailed back to you at varous times, so you should not use the same password as you are using elsewhere. Once you have filled in the password, click the "Subscribe" button. You should soon receive an e-mail message from the list server requesting confirmation of your subscription request. Once you have replied to this message and your subscription has been processed, you will receive a "welcome" message giving you more information on the list server, and as well as a reminder of the subscription password you chose. Many sites are now implementing spam filtering and/or sender verification systems, which can prevent your confirmation message from getting delivered to you. You may need check for a message from "sqr- users-request[-AT-]sqrug.org" caught in the filter, or add that address to your list of authorized senders, in order to complete the confirmation process. 3.2. Unsubscribing from the list To unsubscribe from the list, go to the sqr-users List Info page, enter your e-mail address in the "sqr-users Subscribers" section near the bottom of the page, and click the "Unsubscribe or edit options" button. You will then see the "member options" page; fill in your password at the top of the page and click "Log in". (If you have forgotton your password, see the ``Obtaining your Password'' section, below). This will take you to the "membership configuration" page. In the middle of that page, there will be an "Unsubscribing from sqr- users" section; simply turn on the "Yes, I really want to unsubscribe" checkbox and click the "Unsubscribe" button. You should get a page back saying that the removal was successful (as well as a confirmation email message). The removal will take effect immediately; there is no need to send in a confirmation e-mail message. If you don't know your password, you can choose to unsubscribe using e-mail confirmation. Instead of entering the password on the "member options" page, just click the "Unsubscribe" button found just below the "Log In" button. You will then see a page noting that a confirmation e-mail has been sent; once you follow the confirmation instructions in that e-mail your removal will be complete. 3.3. When your email address changes If your e-mail address changes -- for example, if your company changes names, or if your mail administrator changes the way your name is spelled out or abbreviated -- you will need to update your subscription to match your new address before you can post to the list (see the ``Posting'' section, below). To do this, simply log in to your "membership configuration" page (see the directions for logging in to this page in the ``Unsubscribing'' section, above). At the top of that page you'll see a "Changing your membership information" section. Fill out the text boxes and click the "Change My Address and Name" button. You will be sent a confirmation e-mail, and once you have responded to that e-mail your subscription will be updated and you can begin posting from your new address. 3.4. Digests You can request to get your messages in digest form (one large message containing all of the posts made each day). To do this, log in to your "membership configuration" page (see the directions on doing this in the ``Unsubscribing'' section, above). At the bottom of the page, you will see a section titled "Your sqr-users Subscription Options". Change the "Set Digest Mode" option (the second option in the list) to "On" and click the "Submit My Changes" button at the bottom of the page. You actually have a choice of two different digest formats, "MIME" or "Plain Text". The MIME format sends each individual list message as a separate MIME attachment to the digest; the plain text format consists of one large text message, with all of the individual messages run together. Which format you will want to use depends on your mail- reading software (and personal preference). If you are not sure which format will work best, you can just leave the default setting of "MIME" and see if the next morning's digest is easy to read in your mail reader -- you can change to the other format at any time using that same web page. If you use digests, you should not just "reply" to the digest mailing. Instead, be sure your message's subject header matches the subject in the original posting to which you are replying, and that you don't include a quoted copy of the entire digest in your post. To restore normal distribution, simply follow the above instructions choosing the "Off" setting for the Digest option. 3.5. Obtaining your password You will not be able to change your subscription options without your password. If you have forgotten your password, simply click the "Email My Password to Me" button on the "member options" page and your password will be emailed to you. You will also be e-mailed a copy of your password at the beginning of each month, as part of a "mailing list memberships reminder" message from the Mailman software. 3.6. Problems If the above instructions do not work, please contact the list manager at "sqr-users-manager@sqrug.org". (Do not send a message to the list itself -- no one there can help you with your problem!) Please include a description of what you were trying to do and what exactly happened when you made the attempt. 4. Posting to the sqr-users List In order to post to the mailing list, you must be subscribed to it (see directions above). More specifically, in order for Mailman to recognize that this message was sent by a subscriber, the return address on your message much exactly match the addresss you used to subscribe -- if you have more than one address you will need to be sure that you are sending from the correct one. (See the ``When you email address changes'' section, above, if your e-mail address has changed since you subscribed.) 4.1. General Guidelines For any message you send to the list, please: o make sure your mail software is not requesting a "Return Receipt". (If a "Return Receipt Requested" message is sent to the list, several dozen receipt messages will be sent out to the mailing list as other subscribers' mail systems repond....) o do not send messages in HTML or other special formats. (These are not usable by many subscribers, especially those who receive their messages in digest format.) The list server will delete these special attachments from your message and send you a warning notice. Also, if you are trying to send (for example) SQR source code files, make sure your mail-reader software is assigning proper MIME types to your attachments or they may not be distributed. o keep in mind that over 500 people will receive your message, and that it will appear in the list archives. Try to keep your messages on-topic and relatively short. Consider sending your message directly to particular people if it won't interest many of the list's subscribers. o ignore abusive and inappropriate messages that get sent to the list, rather than getting drawn into a debate. The very nature of these messages will cause most subscribers to automatically discredit them -- no "response" is necessary. To the contrary, any response will only "add fuel to the fire," prolonging the controversy and further interupting the normal conversation on the list. 4.2. Posting a Message Once you are subscribed, you can post to the list by sending a message to "sqr-users@sqrug.org". Be sure your subject heading describes your specific problem or question (i.e. don't just use "SQR Question"). In the body of your message, please include the following information: o SQR product name and version number (see notes below) o Operating system name and version number o Database name and version number o Application name (i.e. PeopleSoft) and a version number, if any Also, include a short code sample whenever possible. It's much easier for other people to understand what you are trying to do when they can see the actual code. (At the same time, be careful not to post confidential or proprietary code, since the posting will be placed in a public web archive.) Note that your question should relate to SQR or other Brio Report product in some way. Don't ask questions about PeopleSoft, for example, unless you are having SQR-related issues. (For PeopleSoft- specific questions, see other lists mentioned in the ``Related Mailing Lists'' section.) In 2001, PeopleSoft purchased from Brio the rights to the source code for SQR and began releasing its own line of SQR. PeopleSoft's SQR version numbering is different from Brio/Hyperion's, so it's very important to mention whether you are using Hyperion's "SQR" or "SQR for PeopleSoft". (This info is included automatically if you include the full SQR version-id string as described below.) To get the version-id string for your copy of SQR, you can run the following program: begin-program show $sqr-ver end-program This will produce a line that looks something like this: SQR/3.0.15/Intel/SCO Unix R3.2 V5.0/Oracle 7.2.2.3/Sep 25 1996 Include the full line of output in your message. Note that the oper- ating system and database version numbers listed here are the ones under which this copy of SQR was compiled, so you'll still need to include this information for your own environment. In a command-line environment (Unix, etc.), you can also get this version-id string by saying sqr -id 4.3. Replying to a Message Messages sent out on the list have a Reply-To header pointing to the list. This means that you should be able to simply use your mail reader's "reply" function to send a reply to the list. Generally, all answers to questions sent out on the list should be public replies, so that other subscribers can benefit. In those cases where a private reply is appropriate, be sure to over-ride the default Reply-To address. If your message is not actually a reply to the earlier message, please do not use the "reply" function. Instead, address a new e-mail message to the list as described in the previous section. (This is because the list archives will incorrectly show the new message in the original thread if you use "reply".) You should quote enough lines from the original message that later readers can understand your answer even if they missed the original question. At the same time, you should remove any unnecessary lines from the quote in order to make your message shorter and easier to understand. (Remember that some people read the mailing list in digest form, and the digests become much larger if unnecessary lines are quoted.) 5. Job Announcements Please do not post job announcements on the sqr-users list, but use the sqr-jobs list instead. (See ``Related Mailing Lists'' for more information on this list.) A large number of sqr-users subscribers do not want to receive job announcements (for various reasons) and such posts tend to cause a lot of disruption of the discussion on the list. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Nov 01 09:14:07 2006 Date: Wed, 1 Nov 2006 19:38:31 +0530 From: Sanjay Sambhe Subject: RE: [sqr-users] PLEASE UNSUSCRIBE ME FROM THIS LIST You are un-subscribed -----Original Message----- From: sqr-users-bounces+ssambhe=cisco.com@sqrug.org [mailto:sqr-users-bounces+ssambhe=cisco.com@sqrug.org] On Behalf Of Angelika Scheffera Sent: Wednesday, October 18, 2006 8:43 PM To: 'This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions.' Subject: RE: [sqr-users] PLEASE UNSUSCRIBE ME FROM THIS LIST Go to http://www.sqrug.org/mailman/listinfo/sqr-users to unsubscribe _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Nov 01 09:25:24 2006 Subject: RE: [sqr-users] PLEASE UNSUSCRIBE ME FROM THIS LIST Date: Wed, 1 Nov 2006 09:17:42 -0500 From: "Savage, David M" I did not ask to be unsubscribed. Please add me back on the list. Dave Savage Asst Vice President IT/Business Technology Services State Street Corporation dmsavage@statestreet.com =20 -----Original Message----- From: sqr-users-bounces+dmsavage=3Dstatestreet.com@sqrug.org [mailto:sqr-users-bounces+dmsavage=3Dstatestreet.com@sqrug.org] On Behalf Of Sanjay Sambhe Sent: Wednesday, November 01, 2006 9:09 AM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] PLEASE UNSUSCRIBE ME FROM THIS LIST You are un-subscribed=20 -----Original Message----- From: sqr-users-bounces+ssambhe=3Dcisco.com@sqrug.org [mailto:sqr-users-bounces+ssambhe=3Dcisco.com@sqrug.org] On Behalf Of Angelika Scheffera Sent: Wednesday, October 18, 2006 8:43 PM To: 'This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions.' Subject: RE: [sqr-users] PLEASE UNSUSCRIBE ME FROM THIS LIST Go to http://www.sqrug.org/mailman/listinfo/sqr-users to unsubscribe _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 01 09:20:45 2006 From: "Angelika Scheffera" Subject: RE: [sqr-users] PLEASE UNSUSCRIBE ME FROM THIS LIST Date: Wed, 1 Nov 2006 08:18:39 -0600 I hope you don't mean me!!!! =) -----Original Message----- From: sqr-users-bounces+angelika_scheffera=msn.com@sqrug.org [mailto:sqr-users-bounces+angelika_scheffera=msn.com@sqrug.org] On Behalf Of Sanjay Sambhe Sent: Wednesday, November 01, 2006 8:09 AM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] PLEASE UNSUSCRIBE ME FROM THIS LIST You are un-subscribed -----Original Message----- From: sqr-users-bounces+ssambhe=cisco.com@sqrug.org [mailto:sqr-users-bounces+ssambhe=cisco.com@sqrug.org] On Behalf Of Angelika Scheffera Sent: Wednesday, October 18, 2006 8:43 PM To: 'This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions.' Subject: RE: [sqr-users] PLEASE UNSUSCRIBE ME FROM THIS LIST Go to http://www.sqrug.org/mailman/listinfo/sqr-users to unsubscribe _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 01 09:31:02 2006 Subject: RE: [sqr-users] PLEASE UNSUSCRIBE ME FROM THIS LIST Date: Wed, 1 Nov 2006 08:26:24 -0600 From: "Kelly Cookson" I don't think anyone got unsubscribed except the original requestor. The email confirming the unsubscription was likely sent to the list by accident. This is why most lists (including this one) has a note at the bottom of each message explaining how users can unsubscribe themselves. :-) Kelly -----Original Message----- From: sqr-users-bounces+kcookson=3Ddotfoods.com@sqrug.org [mailto:sqr-users-bounces+kcookson=3Ddotfoods.com@sqrug.org] On Behalf Of Savage, David M Sent: Wednesday, November 01, 2006 8:18 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] PLEASE UNSUSCRIBE ME FROM THIS LIST I did not ask to be unsubscribed. Please add me back on the list. Dave Savage Asst Vice President IT/Business Technology Services State Street Corporation dmsavage@statestreet.com =20 -----Original Message----- From: sqr-users-bounces+dmsavage=3Dstatestreet.com@sqrug.org [mailto:sqr-users-bounces+dmsavage=3Dstatestreet.com@sqrug.org] On Behalf Of Sanjay Sambhe Sent: Wednesday, November 01, 2006 9:09 AM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] PLEASE UNSUSCRIBE ME FROM THIS LIST You are un-subscribed=20 -----Original Message----- From: sqr-users-bounces+ssambhe=3Dcisco.com@sqrug.org [mailto:sqr-users-bounces+ssambhe=3Dcisco.com@sqrug.org] On Behalf Of Angelika Scheffera Sent: Wednesday, October 18, 2006 8:43 PM To: 'This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions.' Subject: RE: [sqr-users] PLEASE UNSUSCRIBE ME FROM THIS LIST Go to http://www.sqrug.org/mailman/listinfo/sqr-users to unsubscribe _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Wed Nov 01 09:36:16 2006 Subject: RE: [sqr-users] PLEASE UNSUSCRIBE ME FROM THIS LIST Date: Wed, 1 Nov 2006 09:27:25 -0500 From: "Overcashier, Patricia" Please do not unsubscribe me. -----Original Message----- From: sqr-users-bounces+patricia.overcashier=3Daam.com@sqrug.org [mailto:sqr-users-bounces+patricia.overcashier=3Daam.com@sqrug.org] On Behalf Of Sanjay Sambhe Sent: Wednesday, November 01, 2006 9:09 AM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] PLEASE UNSUSCRIBE ME FROM THIS LIST You are un-subscribed=20 -----Original Message----- From: sqr-users-bounces+ssambhe=3Dcisco.com@sqrug.org [mailto:sqr-users-bounces+ssambhe=3Dcisco.com@sqrug.org] On Behalf Of Angelika Scheffera Sent: Wednesday, October 18, 2006 8:43 PM To: 'This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions.' Subject: RE: [sqr-users] PLEASE UNSUSCRIBE ME FROM THIS LIST Go to http://www.sqrug.org/mailman/listinfo/sqr-users to unsubscribe _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 01 09:41:02 2006 From: "Angelika Scheffera" Subject: RE: [sqr-users] PLEASE UNSUSCRIBE ME FROM THIS LIST Date: Wed, 1 Nov 2006 08:35:47 -0600 Hehehe.... yeah! I was worried because he did reply to *my* post. But I see I'm getting them.... WHEW! Happy SQRing! Angelik -----Original Message----- From: sqr-users-bounces+angelika_scheffera=msn.com@sqrug.org [mailto:sqr-users-bounces+angelika_scheffera=msn.com@sqrug.org] On Behalf Of Kelly Cookson Sent: Wednesday, November 01, 2006 8:26 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] PLEASE UNSUSCRIBE ME FROM THIS LIST I don't think anyone got unsubscribed except the original requestor. The email confirming the unsubscription was likely sent to the list by accident. This is why most lists (including this one) has a note at the bottom of each message explaining how users can unsubscribe themselves. :-) Kelly -----Original Message----- From: sqr-users-bounces+kcookson=dotfoods.com@sqrug.org [mailto:sqr-users-bounces+kcookson=dotfoods.com@sqrug.org] On Behalf Of Savage, David M Sent: Wednesday, November 01, 2006 8:18 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] PLEASE UNSUSCRIBE ME FROM THIS LIST I did not ask to be unsubscribed. Please add me back on the list. Dave Savage Asst Vice President IT/Business Technology Services State Street Corporation dmsavage@statestreet.com -----Original Message----- From: sqr-users-bounces+dmsavage=statestreet.com@sqrug.org [mailto:sqr-users-bounces+dmsavage=statestreet.com@sqrug.org] On Behalf Of Sanjay Sambhe Sent: Wednesday, November 01, 2006 9:09 AM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: RE: [sqr-users] PLEASE UNSUSCRIBE ME FROM THIS LIST You are un-subscribed -----Original Message----- From: sqr-users-bounces+ssambhe=cisco.com@sqrug.org [mailto:sqr-users-bounces+ssambhe=cisco.com@sqrug.org] On Behalf Of Angelika Scheffera Sent: Wednesday, October 18, 2006 8:43 PM To: 'This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions.' Subject: RE: [sqr-users] PLEASE UNSUSCRIBE ME FROM THIS LIST Go to http://www.sqrug.org/mailman/listinfo/sqr-users to unsubscribe _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Nov 06 15:51:22 2006 Date: Thu, 02 Nov 2006 08:47:13 -0400 From: "PeterG Clark" Subject: [sqr-users] Bold in PDF Hi all, If this has been addressed before, I apologize. Maybe I am not using the co= rrect search keywords, but I cannot find it in the archive. We have reports that have been being generated as SPF files in which the us= e of the "bold" option on a print command worked just fine. i.e. print 'XXXXX' (+1,1) BOLD But when we try to produce these reports in PDF we are losing the bold prin= t. Can anyone suggest a solution? Thanks in advance! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Nov 06 15:55:59 2006 From: "Anu Bagde" Date: Thu, 02 Nov 2006 13:58:16 +0000 Subject: [sqr-users] Call System Using Cammand Hello All, I am hoping that someone might know how to use the call system using command to execute the .bat file that is residing on a different server than where SQR is running from. We have Windows operating system running on both the servers. I am populating the complete File path and file name into a variable, say $script_file and then use following lines to actully execute that file: let $command = getenv('COMSPEC')||' /c "' || $script_file || '"' call system using $command #status WAIT I am sure this is not the right way, but not sure how I can use it. Can anyone please help? I will really appreciate your help in this matter. I tried searching on user group posting with no luck. Thanks, Anu _________________________________________________________________ Discover. Explore. Connect-Windows Live Spaces. Check out! http://www.msnspecials.in/windowslive/livespaces.asp _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Nov 06 16:04:50 2006 Date: Thu, 2 Nov 2006 10:28:09 -0800 (PST) From: ven g Subject: [sqr-users] Portal comparision We are looking for a portal application to distribute SQR and SQL reports to endusers .. wonder if any one has comparitive analysis between different portal applications like Hyperion Portal, Oracle Portal, Cognos Reportnet, etc. Thanks. --------------------------------- Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Nov 06 16:28:48 2006 From: "Anu Bagde" Date: Fri, 03 Nov 2006 19:43:57 +0000 Subject: [sqr-users] Call System Using command Hello all, I am trying to use call system to execute a .dat file located on a different server than where the SQR's are located. Operating system on both the servers is Windows NT. I am initializing the variable named $script_file with the actual fine name with complete path. Then I use the following code to actually execute the .dat file: let $command = getenv('COMSPEC')||' /c "' || $script_file || '"' call system using $command #status WAIT show 'Running command: ' $command ' Return Status: ' #status My return status is 1. Can anyone help me understand this and solve this problem? If this is not possible can any one help me find another way to execute the .dat file, every day at 7pm? Thanks in advance, Anu _________________________________________________________________ One and only Ash. Find out all about her. Only on MSN Search http://server1.msn.co.in/profile/aishwarya.asp _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Nov 06 16:59:15 2006 From: "Steve Cavill" Subject: RE: [sqr-users] (SQR 3716) Error in SQL statement.Error in include file Date: Mon, 6 Nov 2006 13:47:13 +1100 This line doesn't look right: where calendar_year = 2004)) || ' ' Run the code with the -s option to see the actual sql sent to the database. Steve. -----Original Message----- From: sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org [mailto:sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org] On Behalf Of Sumana.Akella Sent: Tuesday, 31 October 2006 7:06 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] (SQR 3716) Error in SQL statement.Error in include file When I run the below code .... I get these 2 errors Error in include file sqr\curdttim.sqc (SQR 3716) Error in SQL statement. Begin-select distinct export from( select '11100' || d.SSN || substr(d.SSN, 6, 4) || to_char(p.birthdate, 'YYYY') || substr(d.ye_lname, 1, 20) || substr(' ', 1, 20-length(d.ye_lname)) || substr(d.ye_fname, 1, 15) || substr(' ', 1, 15-length(d.ye_fname)) || substr(d.ye_middle_name, 1, 1) || substr(' ', 1, 1-length(d.ye_middle_name)) export from ps_ye_data d inner join ps_person p on d.emplid = p.emplid and calendar_year = 2005 and d.emplid = '008522' ) a UNION ALL select '********' || to_char((select count(distinct ssn) from ps_ye_data where calendar_year = 2004)) || ' ' from dual end-select Thanks Sumana _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Nov 06 17:09:39 2006 Date: Mon, 6 Nov 2006 09:08:39 -0500 From: "Hall, Tara" Subject: [sqr-users] PeopleSoft SQR question Hi, I have an sqr that is reading a flat file and populating a table. I'm enco= untering an issue with the handling of a dollar amount. The last two digit= s should be the cents amount. However, I can't determine where the dollars= and cents are being manipulated in the process. My short term fix was to = change the field positions to get the correct dollar amounts. This only wo= rks because in this particular flat file there are no dollar amounts with c= ents. Any suggestions. Thanks. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Nov 06 17:54:49 2006 Subject: RE: [sqr-users] Call System Using command Date: Mon, 6 Nov 2006 15:42:43 -0600 From: "Knapp, Richard" The 1 usually indicates there is a syntax error. Print out your command string and try it from a command prompt to get more info. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Anu Bagde Sent: Friday, November 03, 2006 1:44 PM To: sqr-users@sqrug.org Subject: [sqr-users] Call System Using command Hello all, I am trying to use call system to execute a .dat file located on a different=20 server than where the SQR's are located. Operating system on both the=20 servers is Windows NT. I am initializing the variable named $script_file with the actual fine name with complete path. Then I use the following code=20 to actually execute the .dat file: let $command =3D getenv('COMSPEC')||' /c "' || $script_file || '"' call system using $command #status WAIT show 'Running command: ' $command ' Return Status: ' #status My return status is 1. Can anyone help me understand this and solve this problem? If this is not possible can any one help me find another way to=20 execute the .dat file, every day at 7pm? Thanks in advance, Anu _________________________________________________________________ One and only Ash. Find out all about her. Only on MSN Search=20 http://server1.msn.co.in/profile/aishwarya.asp _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Nov 06 17:58:07 2006 From: "Franck Masson" Subject: RE: [sqr-users] Portal comparision Date: Mon, 6 Nov 2006 23:00:16 +0100 If your need is to only distribute output from SQR and sql and these output is only one file ( pdf, excell, txt, ...) then you can extend your investigation to any web server ( Apaches or IIS) Hyperion Performance Suite or Hyperion System 9 BI + Production Rreporting can distribute output of SQR and SQL reports and provide also 1)on demand execution of sqr and sql report (sqr job factory and generic job factory) 2)scheduling option (calandar based, event based, command line based) and manage versionning of the report output complexe output ( multiple files ) security in the distribution autodelete of the document on expiration date auditing of the usage and supporte high volume reports and large number of user there are implementation with 10 000s users on one server in production since manny years I do not have experience on reportnet and Oracle to help you in your choice we need additionnal information like number of users, number of daily, weekly, monnthly reports, your security model, your architecture ( intranet, extranet, unix/windows, ...), your skill, ... regards Franck -----Original Message----- From: sqr-users-bounces+franck.masson2002=laposte.net@sqrug.org [mailto:sqr-users-bounces+franck.masson2002=laposte.net@sqrug.org]On Behalf Of ven g Sent: jeudi 2 novembre 2006 19:28 To: sqr-users@sqrug.org Subject: [sqr-users] Portal comparision We are looking for a portal application to distribute SQR and SQL reports to endusers .. wonder if any one has comparitive analysis between different portal applications like Hyperion Portal, Oracle Portal, Cognos Reportnet, etc. Thanks. --------------------------------- Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Nov 06 18:01:26 2006 Date: Mon, 06 Nov 2006 17:14:28 -0500 From: don.barclay@srs.gov Subject: Re: [sqr-users] PeopleSoft SQR question Hi Tara, It would help if you could be a little more descriptive about your problem. If I am reading your question correctly, you are trying to enter a number where the first x digits are the dollar amount, and the last two digits are the cents. You could read in the amount, verify that input is as expected (make sure that every value is a digit, for example), and then divide the resulting number by 100. HTH, Don > Hi, > > I have an sqr that is reading a flat file and populating a table. > I'm encountering an issue with the handling of a dollar amount. The > last two digits should be the cents amount. However, I can't > determine where the dollars and cents are being manipulated in the > process. My short term fix was to change the field positions to get > the correct dollar amounts. This only works because in this > particular flat file there are no dollar amounts with cents. > > Any suggestions. > > Thanks. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Nov 06 17:32:28 2006 Subject: RE: [sqr-users] PeopleSoft SQR question Date: Mon, 6 Nov 2006 16:17:40 -0600 From: "Aguirre, Jose" You can try giving the variable an edit mask: edit 9999999.99. But if the= input flat file dollar value does not have a decimal - when inserting into= the DB - it should put the decimal of .00. Jos=E9 A. Aguirre -----Original Message----- From: sqr-users-bounces+jaguir=3Dlsuhsc.edu@sqrug.org [mailto:sqr-users-bou= nces+jaguir=3Dlsuhsc.edu@sqrug.org] On Behalf Of Hall, Tara Sent: Monday, November 06, 2006 8:09 AM To: sqr-users@sqrug.org Subject: [sqr-users] PeopleSoft SQR question Hi, I have an sqr that is reading a flat file and populating a table. I'm enco= untering an issue with the handling of a dollar amount. The last two digit= s should be the cents amount. However, I can't determine where the dollars= and cents are being manipulated in the process. My short term fix was to = change the field positions to get the correct dollar amounts. This only wo= rks because in this particular flat file there are no dollar amounts with c= ents. Any suggestions. 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 Nov 06 18:05:06 2006 Subject: RE: [sqr-users] (SQR 3716) Error in SQL statement.Error in includefile Date: Mon, 6 Nov 2006 16:39:45 -0600 From: "Knapp, Richard" The code after the union (or any set operator) has to be straight SQL (no SQR). So your SQR concatenate thingys (||) throw the parser into a tailspin. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Steve Cavill Sent: Sunday, November 05, 2006 8:47 PM To: 'This list is for discussion about the SQR database reportinglanguagefrom Hyperion Solutions.' Subject: RE: [sqr-users] (SQR 3716) Error in SQL statement.Error in includefile This line doesn't look right: where calendar_year =3D 2004)) || ' ' Run the code with the -s option to see the actual sql sent to the database. Steve.=20 -----Original Message----- From: sqr-users-bounces+steve.cavill=3Dinfoclarity.com.au@sqrug.org [mailto:sqr-users-bounces+steve.cavill=3Dinfoclarity.com.au@sqrug.org] On Behalf Of Sumana.Akella Sent: Tuesday, 31 October 2006 7:06 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: [sqr-users] (SQR 3716) Error in SQL statement.Error in include file When I run the below code .... I get these 2 errors=20 Error in include file sqr\curdttim.sqc (SQR 3716) Error in SQL statement. =20 Begin-select distinct export from( select '11100' || d.SSN || substr(d.SSN, 6, 4) || to_char(p.birthdate, 'YYYY') || substr(d.ye_lname, 1, 20)=20 || substr(' ', 1, 20-length(d.ye_lname)) || substr(d.ye_fname, 1, 15) || substr(' ', 1, 15-length(d.ye_fname)) ||=20=20 substr(d.ye_middle_name, 1, 1) || substr(' ', 1, 1-length(d.ye_middle_name)) export=20=20=20 from=20 ps_ye_data d inner join ps_person p on d.emplid =3D p.emplid=20 and calendar_year =3D 2005 and d.emplid =3D '008522' ) a =20 UNION ALL select '********' || to_char((select count(distinct ssn) from ps_ye_data where calendar_year =3D 2004)) || ' ' from=20 dual end-select Thanks Sumana _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Nov 06 20:55:13 2006 From: "the dragon" Subject: RE: [sqr-users] (SQR 3716) Error in SQL statement.Error in includefile Date: Mon, 06 Nov 2006 19:52:53 -0600 Oracle allows || as concats... peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) It is impossible to defeat an ignorant man in argument. William G. McAdoo ----Original Message Follows---- The code after the union (or any set operator) has to be straight SQL (no SQR). So your SQR concatenate thingys (||) throw the parser into a tailspin. Richard Knapp AITS - Reporting -----Original Message----- This line doesn't look right: where calendar_year = 2004)) || ' ' Run the code with the -s option to see the actual sql sent to the database. Steve. -----Original Message----- When I run the below code .... I get these 2 errors Error in include file sqr\curdttim.sqc (SQR 3716) Error in SQL statement. _________________________________________________________________ Try the next generation of search with Windows Live Search today! http://imagine-windowslive.com/minisites/searchlaunch/?locale=en-us&source=hmtagline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Nov 07 09:33:34 2006 From: "Anu Bagde" Subject: RE: [sqr-users] Call System Using command Date: Tue, 07 Nov 2006 14:31:22 +0000 Hi Richard, I could find the error in my script. It is a vendor delivered script and one of the command is to change the directory. I am running the sqr on say server A, .dat file is on remote server, say B and the directory to which the script is cd to is on remote server like, b:\download-all. I am getting an error when I run the command from command prompt that: The system cannot find the path specified. "downloads-all" directory cannot be found from the current directory. Is there a way to actually change the directory? Many thanks for your help, Anu >From: "Knapp, Richard" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "This list is for discussion about the SQR database reportinglanguage >fromHyperion Solutions." >Subject: RE: [sqr-users] Call System Using command >Date: Mon, 6 Nov 2006 15:42:43 -0600 > > >The 1 usually indicates there is a syntax error. Print out your command >string and try it from a command prompt to get more info. > >Richard Knapp >AITS - Reporting >University of Missouri >Locust Street Building >Columbia, MO 65201 >573-882-8856 >knappr@umsystem.edu > > >-----Original Message----- >From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org >[mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of >Anu Bagde >Sent: Friday, November 03, 2006 1:44 PM >To: sqr-users@sqrug.org >Subject: [sqr-users] Call System Using command > >Hello all, >I am trying to use call system to execute a .dat file located on a >different >server than where the SQR's are located. Operating system on both the >servers is Windows NT. I am initializing the variable named $script_file > >with the actual fine name with complete path. Then I use the following >code >to actually execute the .dat file: > >let $command = getenv('COMSPEC')||' /c "' || $script_file || '"' >call system using $command #status WAIT >show 'Running command: ' $command ' Return Status: ' #status > >My return status is 1. Can anyone help me understand this and solve this > >problem? If this is not possible can any one help me find another way >to >execute the .dat file, every day at 7pm? > >Thanks in advance, >Anu > >_________________________________________________________________ >One and only Ash. Find out all about her. Only on MSN Search >http://server1.msn.co.in/profile/aishwarya.asp > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Shah Rukh fan? Know all about the Baadshah of Bollywood. On MSN Search http://server1.msn.co.in/profile/shahrukh.asp _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Nov 07 09:44:54 2006 From: "the dragon" Subject: RE: [sqr-users] Call System Using command Date: Tue, 07 Nov 2006 08:42:15 -0600 why not give it the complete path, with the mapped drive? peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) It is impossible to defeat an ignorant man in argument. William G. McAdoo ----Original Message Follows---- Hi Richard, I could find the error in my script. It is a vendor delivered script and one of the command is to change the directory. I am running the sqr on say server A, .dat file is on remote server, say B and the directory to which the script is cd to is on remote server like, b:\download-all. I am getting an error when I run the command from command prompt that: The system cannot find the path specified. "downloads-all" directory cannot be found from the current directory. Is there a way to actually change the directory? Many thanks for your help, Anu >From: "Knapp, Richard" > > >The 1 usually indicates there is a syntax error. Print out your command >string and try it from a command prompt to get more info. > >Richard Knapp >AITS - Reporting >University of Missouri > >-----Original Message----- > >Hello all, >I am trying to use call system to execute a .dat file located on a >different >server than where the SQR's are located. Operating system on both the >servers is Windows NT. I am initializing the variable named $script_file > >with the actual fine name with complete path. Then I use the following >code >to actually execute the .dat file: > >let $command = getenv('COMSPEC')||' /c "' || $script_file || '"' >call system using $command #status WAIT >show 'Running command: ' $command ' Return Status: ' #status > >My return status is 1. Can anyone help me understand this and solve this > >problem? If this is not possible can any one help me find another way >to >execute the .dat file, every day at 7pm? > >Thanks in advance, >Anu _________________________________________________________________ Use your PC to make calls at very low rates https://voiceoam.pcs.v2s.live.com/partnerredirect.aspx _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Nov 07 09:53:49 2006 From: "Bambach, Tom" Subject: RE: [sqr-users] Call System Using command Date: Tue, 7 Nov 2006 09:51:27 -0500 Maybe the " character is the problem, try let $command = getenv('COMSPEC')||' /c ' || chr(34) || $script_file || chr(34) instead of let $command = getenv('COMSPEC')||' /c "' || $script_file || '"' -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu] Sent: Monday, November 06, 2006 4:43 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] Call System Using command The 1 usually indicates there is a syntax error. Print out your command string and try it from a command prompt to get more info. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Anu Bagde Sent: Friday, November 03, 2006 1:44 PM To: sqr-users@sqrug.org Subject: [sqr-users] Call System Using command Hello all, I am trying to use call system to execute a .dat file located on a different server than where the SQR's are located. Operating system on both the servers is Windows NT. I am initializing the variable named $script_file with the actual fine name with complete path. Then I use the following code to actually execute the .dat file: let $command = getenv('COMSPEC')||' /c "' || $script_file || '"' call system using $command #status WAIT show 'Running command: ' $command ' Return Status: ' #status My return status is 1. Can anyone help me understand this and solve this problem? If this is not possible can any one help me find another way to execute the .dat file, every day at 7pm? Thanks in advance, Anu _________________________________________________________________ One and only Ash. Find out all about her. Only on MSN Search http://server1.msn.co.in/profile/aishwarya.asp _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Nov 07 10:18:37 2006 Subject: RE: [sqr-users] Call System Using command Date: Tue, 7 Nov 2006 09:16:25 -0600 From: "Knapp, Richard" If SQR is running on a unix box (server A?), the windows drive mappings will do no good. Also, even if the server is a windows machine, if the drive mappings are not made on that machine, it will produce the error you see. If you can log on to the server, work out and test the paths to the other machines involved. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Anu Bagde Sent: Tuesday, November 07, 2006 8:31 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Call System Using command Hi Richard, I could find the error in my script. It is a vendor delivered script and one=20 of the command is to change the directory. I am running the sqr on say=20 server A, .dat file is on remote server, say B and the directory to which=20 the script is cd to is on remote server like, b:\download-all. I am getting=20 an error when I run the command from command prompt that: The system cannot find the path specified. "downloads-all" directory cannot be found from the current directory. Is there a way to actually change the directory? Many thanks for your help, Anu >From: "Knapp, Richard" >Reply-To: "This list is for discussion about the SQR database=20 >reportinglanguage from Hyperion Solutions." >To: "This list is for discussion about the SQR database reportinglanguage=20 >fromHyperion Solutions." >Subject: RE: [sqr-users] Call System Using command >Date: Mon, 6 Nov 2006 15:42:43 -0600 > > >The 1 usually indicates there is a syntax error. Print out your command >string and try it from a command prompt to get more info. > >Richard Knapp >AITS - Reporting >University of Missouri >Locust Street Building >Columbia, MO 65201 >573-882-8856 >knappr@umsystem.edu > > >-----Original Message----- >From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org >[mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of >Anu Bagde >Sent: Friday, November 03, 2006 1:44 PM >To: sqr-users@sqrug.org >Subject: [sqr-users] Call System Using command > >Hello all, >I am trying to use call system to execute a .dat file located on a >different >server than where the SQR's are located. Operating system on both the >servers is Windows NT. I am initializing the variable named $script_file > >with the actual fine name with complete path. Then I use the following >code >to actually execute the .dat file: > >let $command =3D getenv('COMSPEC')||' /c "' || $script_file || '"' >call system using $command #status WAIT >show 'Running command: ' $command ' Return Status: ' #status > >My return status is 1. Can anyone help me understand this and solve this > >problem? If this is not possible can any one help me find another way >to >execute the .dat file, every day at 7pm? > >Thanks in advance, >Anu > >_________________________________________________________________ >One and only Ash. Find out all about her. Only on MSN Search >http://server1.msn.co.in/profile/aishwarya.asp > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Shah Rukh fan? Know all about the Baadshah of Bollywood. On MSN Search=20 http://server1.msn.co.in/profile/shahrukh.asp _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Nov 08 20:55:24 2006 Date: Wed, 8 Nov 2006 17:52:33 -0800 (PST) From: Scotty Barnes Subject: [sqr-users] Error with linked Server only in SQR not in SQL Analyzer I am trying to select data from a table in a SQL Server database 7 from 2000. Our DBA set up a database link sp_addlinkedserver. I can select data using SQL Analyzer from either database pointing to the other. But if I run an SQR using the same SQL statements I get an error I don’t know how to resolve. We tried reseting the RPC as the Microsoft site recommended with this error, but it did not help the SQR. If I add the connect string to the select statement I am able to connect to the database. But I want to connect using the link set up with the sp_addlinkedserver b/c I want to call functions and stored procedure saved in the database that take advantage of the link. BEGIN-select -DB'DSN=database;UID=user;PWD=pw' Any Ideas? See more details below. Scotty SQR for PeopleSoft/8.47/PC/Windows NT/ODBC/Sep 20 2005 There errors look like this: This error is ok Warning: DROP TABLE SCOTTY_TEMP Error: [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot drop the table 'SCOTTY_TEMP', because it does not exist in the system catalog. This is from the begin-setup section Warning: SELECT EMPLID, NAME, LAST_NAME_SRCH FIRST_NAME_SRCH , NAME_PREFIX, NAME_SUFFIX INTO SCOTTY_TEMP FROM PS8DEVDB.FSDEV.dbo.PS_PERSONAL_DATA Error: [Microsoft][ODBC SQL Server Driver][SQL Server][OLE/DB provider returned message: New transaction cannot enlist in the specified transaction coordinator. ] STATRING PROGRAM (SQR 5528) ODBC SQL dbexec: SQLExecute error 7312 in cursor 3: [Microsoft][ODBC SQL Server Driver][SQL Server][OLE/DB provider returned message: New transaction cannot enlist in the specified transaction coordinator. ] (SQR 5528) ODBC SQL dbexec: SQLExecute error 7300 in cursor 3: [Microsoft][ODBC SQL Server Driver][SQL Server]OLE DB error trace [OLE/DB Provider 'SQLOLEDB' ITransactionJoin::JoinTransaction returned 0x8004d00a]. (SQR 5528) ODBC SQL dbexec: SQLExecute error 7391 in cursor 3: [Microsoft][ODBC SQL Server Driver][SQL Server]The operation could not be performed because the OLE DB provider 'SQLOLEDB' was unable to begin a distributed transaction. Error on line 19: (SQR 3723) Problem executing cursor. SQR: Program Aborting. BEGIN-SETUP BEGIN-SQL ON-ERROR=WARN DROP TABLE SCOTTY_TEMP END-SQL BEGIN-SQL ON-ERROR=WARN SELECT EMPLID, NAME, LAST_NAME_SRCH FIRST_NAME_SRCH , NAME_PREFIX, NAME_SUFFIX INTO SCOTTY_TEMP FROM DEVDATA.M9500.dbo.PS_PERSONAL_DATA END-SQL END-SETUP begin-program SHOW 'STATRING PROGRAM' BEGIN-select LOOPS=2 NAME SHOW &NAME FROM DEVDATA.M9500.dbo.PS_PERSONAL_DATA END-SELECT SHOW 'ENDING PROGRAM' END-PROGRAM [] [] Thanks, []Scott [] --------------------------------- Scott A. Barnes 73-20 Yellowstone Blvd Forest Hills, NY 11375 --------------------------------- Lottery: A tax on people who are bad at math! --------------------------------- Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. --------------------------------- Scott A. Barnes 73-20 Yellowstone Blvd Forest Hills, NY 11375 --------------------------------- Lottery: A tax on people who are bad at math! --------------------------------- Sponsored Link Get a free Motorola Razr! Today Only! Choose Cingular, Sprint, Verizon, Alltel, or T-Mobile. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Nov 09 10:35:57 2006 From: "Giepz, Marius" Date: Thu, 9 Nov 2006 16:32:28 +0100 Subject: [sqr-users] printing groupheader and details in one horizontal band Hello! I would like to print fields of a groupheader and the corresponding details in a band-style row.=20 Something like this: Header1_field1 detail1 Header1_field2 detail2 Header1_field3 detail3 detail4 Header2_field1 detail1 Header2_field2 detail2 Header2_field3=09 Header3_field1 detail1 Header3_field2 detail2 Header3_field3 detail3 detail4 detail5 would this be possible with sqr? I am so far only able to print them one below the other. what would be the best approach then? thanks in advance! best regards Marius ++++++++++++++++++++++++++++++++++++++++++++ Marius Giepz topsystem Systemhaus GmbH Europark A2 Adenauer Strasse 20 52146 W=FCrselen Germany Phone : +49 2405 4670-0 email : mg@topsystem.de ++++++++++++++++++++++++++++++++++++++++++++=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Nov 09 11:01:45 2006 From: "the dragon" Subject: RE: [sqr-users] printing groupheader and details in one horizontal band Date: Thu, 09 Nov 2006 09:59:28 -0600 sure peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) It is impossible to defeat an ignorant man in argument. William G. McAdoo ----Original Message Follows---- Hello! I would like to print fields of a groupheader and the corresponding details in a band-style row. Something like this: Header1_field1 detail1 Header1_field2 detail2 Header1_field3 detail3 detail4 Header2_field1 detail1 Header2_field2 detail2 Header2_field3 Header3_field1 detail1 Header3_field2 detail2 Header3_field3 detail3 detail4 detail5 would this be possible with sqr? I am so far only able to print them one below the other. what would be the best approach then? thanks in advance! best regards Marius ++++++++++++++++++++++++++++++++++++++++++++ Marius Giepz topsystem Systemhaus GmbH Europark A2 Adenauer Strasse 20 52146 Würselen Germany Phone : +49 2405 4670-0 email : mg@topsystem.de ++++++++++++++++++++++++++++++++++++++++++++ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Get FREE company branded e-mail accounts and business Web site from Microsoft Office Live http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Nov 09 20:52:49 2006 From: "Steve Cavill" Subject: RE: [sqr-users] Bold in PDF Date: Fri, 10 Nov 2006 12:48:13 +1100 I'm going on memory here, but not all fonts are supported in PDF, try a simple font like arial. Otherwise you need to go into the sqr.ini file and check if there is a [PDF fonts] section and if so add your font to that section. Steve. -----Original Message----- From: sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org [mailto:sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org] On Behalf Of PeterG Clark Sent: Thursday, 2 November 2006 11:47 PM To: sqr-users@sqrug.org Subject: [sqr-users] Bold in PDF Hi all, If this has been addressed before, I apologize. Maybe I am not using the correct search keywords, but I cannot find it in the archive. We have reports that have been being generated as SPF files in which the use of the "bold" option on a print command worked just fine. i.e. print 'XXXXX' (+1,1) BOLD But when we try to produce these reports in PDF we are losing the bold print. Can anyone suggest a solution? Thanks in advance! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Nov 09 20:59:53 2006 Date: Fri, 10 Nov 2006 12:56:24 +1100 From: "Ian Mills" Subject: [sqr-users] SQR running on Oracle 10.2 Hi, Does anyone out there currently run SQR against an Oracle 10.2 database? If= so, are there any issues I should be aware of? I just got word from Hyperion that they do not support SQR run against Orac= le 10.2 We were about to install SQR Server 8.5 on an AIX server to run against an = Oracle 10.2 database. Any assistance would be greatly appreciated. Regards, Ian Mills ORIX Australia Corp Ltd --=20 This message from ORIX Australia might contain confidential and/or privileged information. If you are not the intended recipient, any use, disclosure or copying of this message (or of any attachments to it) is not authorised. If you have received this message in error, please notify the sender immediately and delete the message and any attachments from your system. Please inform the sender if you do not wish to receive future communications by email. ORIX handles personal information according to a Privacy Policy that is consistent with the National Privacy Principles. Please let us know if you would like a copy. It is also available at http://www.orix.com.au . _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Nov 09 21:03:12 2006 From: "Steve Cavill" Subject: RE: [sqr-users] Call System Using command Date: Fri, 10 Nov 2006 12:57:27 +1100 Does the command work from a command prompt? That's the first step. Once you get it working from a comamnd prompt then calling it from sqr should be easy. Steve. -----Original Message----- From: sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org [mailto:sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org] On Behalf Of Anu Bagde Sent: Saturday, 4 November 2006 6:44 AM To: sqr-users@sqrug.org Subject: [sqr-users] Call System Using command Hello all, I am trying to use call system to execute a .dat file located on a different server than where the SQR's are located. Operating system on both the servers is Windows NT. I am initializing the variable named $script_file with the actual fine name with complete path. Then I use the following code to actually execute the .dat file: let $command = getenv('COMSPEC')||' /c "' || $script_file || '"' call system using $command #status WAIT show 'Running command: ' $command ' Return Status: ' #status My return status is 1. Can anyone help me understand this and solve this problem? If this is not possible can any one help me find another way to execute the .dat file, every day at 7pm? Thanks in advance, Anu _________________________________________________________________ One and only Ash. Find out all about her. Only on MSN Search http://server1.msn.co.in/profile/aishwarya.asp _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Nov 09 21:06:31 2006 From: "Steve Cavill" Subject: RE: [sqr-users] printing groupheader and details in one horizontal band Date: Fri, 10 Nov 2006 12:59:37 +1100 Look at the using relative print positions, and next-listing. You can't do this with SQR developer (the GUI), you have to write the code. Steve.=20 -----Original Message----- From: sqr-users-bounces+steve.cavill=3Dinfoclarity.com.au@sqrug.org [mailto:sqr-users-bounces+steve.cavill=3Dinfoclarity.com.au@sqrug.org] On B= ehalf Of Giepz, Marius Sent: Friday, 10 November 2006 2:32 AM To: 'This list is for discussion about the SQR database reporting languagef= rom Hyperion Solutions.' Subject: [sqr-users] printing groupheader and details in one horizontal band Hello! I would like to print fields of a groupheader and the corresponding details= in a band-style row.=20 Something like this: Header1_field1 detail1 Header1_field2 detail2 Header1_field3 detail3 detail4 Header2_field1 detail1 Header2_field2 detail2 Header2_field3=09 Header3_field1 detail1 Header3_field2 detail2 Header3_field3 detail3 detail4 detail5 would this be possible with sqr? I am so far only able to print them one be= low the other. what would be the best approach then? thanks in advance! best regards Marius ++++++++++++++++++++++++++++++++++++++++++++ Marius Giepz topsystem Systemhaus GmbH Europark A2 Adenauer Strasse 20 52146 W=FCrselen Germany Phone : +49 2405 4670-0 email : mg@topsystem.de ++++++++++++++++++++++++++++++++++++++++++++=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 Fri Nov 10 05:24:31 2006 From: "Giepz, Marius" Subject: AW: [sqr-users] printing groupheader and details in one horizonta l band Date: Fri, 10 Nov 2006 11:19:42 +0100 yeah, i quit the Production-Reportingstudio after the first week i got in touch with sqr (two months ago). do you mean that i should print the header and then move back some lines up with the cursor to print the details?=20 another offtopic question: i want to print some grids and boxes as sort of a "page background". would it bet best do call this drawing procedure from the header block (what i am doing now)? -----Urspr=FCngliche Nachricht----- Von: Steve Cavill [mailto:steve.cavill@infoclarity.com.au] Gesendet: Freitag, 10. November 2006 03:00 An: 'This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions.' Betreff: RE: [sqr-users] printing groupheader and details in one horizontal band Look at the using relative print positions, and next-listing. You can't do this with SQR developer (the GUI), you have to write the code. Steve.=20 -----Original Message----- From: sqr-users-bounces+steve.cavill=3Dinfoclarity.com.au@sqrug.org [mailto:sqr-users-bounces+steve.cavill=3Dinfoclarity.com.au@sqrug.org] On Behalf Of Giepz, Marius Sent: Friday, 10 November 2006 2:32 AM To: 'This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions.' Subject: [sqr-users] printing groupheader and details in one horizontal band Hello! I would like to print fields of a groupheader and the corresponding details in a band-style row.=20 Something like this: Header1_field1 detail1 Header1_field2 detail2 Header1_field3 detail3 detail4 Header2_field1 detail1 Header2_field2 detail2 Header2_field3=09 Header3_field1 detail1 Header3_field2 detail2 Header3_field3 detail3 detail4 detail5 would this be possible with sqr? I am so far only able to print them one below the other. what would be the best approach then? thanks in advance! best regards Marius ++++++++++++++++++++++++++++++++++++++++++++ Marius Giepz topsystem Systemhaus GmbH Europark A2 Adenauer Strasse 20 52146 W=FCrselen Germany Phone : +49 2405 4670-0 email : mg@topsystem.de ++++++++++++++++++++++++++++++++++++++++++++=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 Fri Nov 10 08:57:36 2006 Date: Fri, 10 Nov 2006 08:54:20 -0500 From: "Vaidyanathan, Ramakrishnan \(GE, Corporate, consultant\)" Subject: [sqr-users] Unix Sort... Hi, =20=20=20 I want to sort a file using the unix sort command. I need to sort a spe= cific field alone. After sorting I need to write the sorted output to anoth= er file. It would be gr8 if some one can give me a sample code in sqr to do this. Thanks in Advance Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Nov 10 10:08:01 2006 Subject: RE: [sqr-users] Unix Sort... Date: Fri, 10 Nov 2006 09:05:51 -0600 From: "Knapp, Richard" Better you should learn how to fish than merely get a fish, no?=20=20 Do you have a unix command that does the sort you want? This is where I would start. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Friday, November 10, 2006 7:54 AM To: sqr-users@sqrug.org Subject: [sqr-users] Unix Sort... Hi, =20=20=20 I want to sort a file using the unix sort command. I need to sort a specific field alone. After sorting I need to write the sorted output to another file. It would be gr8 if some one can give me a sample code in sqr to do this. Thanks in Advance Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Nov 10 10:12:49 2006 Subject: RE: [sqr-users] Unix Sort... Date: Fri, 10 Nov 2006 10:10:07 -0500 From: "Vaidyanathan, Ramakrishnan \(GE, Corporate, consultant\)" well..thats what iam also looking for... -----Original Message----- From: sqr-users-bounces+ramakrishnan.vaidyanathan=3Dge.com@sqrug.org [mailto:sqr-users-bounces+ramakrishnan.vaidyanathan=3Dge.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Friday, November 10, 2006 10:06 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Unix Sort... Better you should learn how to fish than merely get a fish, no?=20=20 Do you have a unix command that does the sort you want? This is where I would start. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Friday, November 10, 2006 7:54 AM To: sqr-users@sqrug.org Subject: [sqr-users] Unix Sort... Hi, =20=20=20 I want to sort a file using the unix sort command. I need to sort a specific field alone. After sorting I need to write the sorted output to another file. It would be gr8 if some one can give me a sample code in sqr to do this. Thanks in Advance Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Nov 10 10:19:21 2006 Subject: RE: [sqr-users] Unix Sort... Date: Fri, 10 Nov 2006 09:17:20 -0600 From: "Knapp, Richard" If you have an account on the unix machine, you can man sort. Otherwise, try googling unix sort. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Friday, November 10, 2006 9:10 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Unix Sort... well..thats what iam also looking for... -----Original Message----- From: sqr-users-bounces+ramakrishnan.vaidyanathan=3Dge.com@sqrug.org [mailto:sqr-users-bounces+ramakrishnan.vaidyanathan=3Dge.com@sqrug.org]On Behalf Of Knapp, Richard Sent: Friday, November 10, 2006 10:06 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Unix Sort... Better you should learn how to fish than merely get a fish, no?=20=20 Do you have a unix command that does the sort you want? This is where I would start. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Vaidyanathan, Ramakrishnan (GE, Corporate,consultant) Sent: Friday, November 10, 2006 7:54 AM To: sqr-users@sqrug.org Subject: [sqr-users] Unix Sort... Hi, =20=20=20 I want to sort a file using the unix sort command. I need to sort a specific field alone. After sorting I need to write the sorted output to another file. It would be gr8 if some one can give me a sample code in sqr to do this. Thanks in Advance Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Nov 10 10:24:39 2006 From: "the dragon" Subject: RE: [sqr-users] Unix Sort... Date: Fri, 10 Nov 2006 09:21:55 -0600 search the sqrug archives for call system.... use the Unix man function for sort.... check the sqr language reference manual for call system using.... There, I've taught you how to fish. :-D peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) It is impossible to defeat an ignorant man in argument. William G. McAdoo ----Original Message Follows---- well..thats what iam also looking for... -----Original Message----- Better you should learn how to fish than merely get a fish, no? Do you have a unix command that does the sort you want? This is where I would start. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- Hi, I want to sort a file using the unix sort command. I need to sort a specific field alone. After sorting I need to write the sorted output to another file. It would be gr8 if some one can give me a sample code in sqr to do this. Thanks in Advance Ram _________________________________________________________________ Try the next generation of search with Windows Live Search today! http://imagine-windowslive.com/minisites/searchlaunch/?locale=en-us&source=hmtagline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Nov 10 10:36:40 2006 Subject: RE: [sqr-users] Unix Sort... Date: Fri, 10 Nov 2006 09:33:52 -0600 From: "Bob Stone" So if I have this analogy right, the pole is "google and SQRUG archives" and the hook and line is 'CALL SYSTEM USING ***' ...what was the worm again? maybe the MAN pages on Unix? Put them all together and now Ram can fish? funny analogy. I agree with Clark and Richard. Basically you're saying "well I've tried nothing and I'm all out of ideas." Do some research with Google (great tool), the archives, some Unix documentation. Most of your questions will probably answer themselves within a few hours. THEN if you get stuck or there's some related question once you get going ("what way is faster, has anybody done it this way, etc") then ask the group.=20= =20 Everyone joined this group to get help/tips on serious or tough questions, not to do someone else's work for them. -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of the dragon Sent: Friday, November 10, 2006 9:22 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Unix Sort... search the sqrug archives for call system.... use the Unix man function=20 for sort.... check the sqr language reference manual for call system=20 using.... There, I've taught you how to fish. :-D peace, clark 'the dragon' willis ----Original Message Follows---- well..thats what iam also looking for... -----Original Message----- Better you should learn how to fish than merely get a fish, no? Do you have a unix command that does the sort you want? This is where I would start. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- Hi, I want to sort a file using the unix sort command. I need to sort a specific field alone. After sorting I need to write the sorted output to another file. It would be gr8 if some one can give me a sample code in sqr to do this. Thanks in Advance Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Nov 10 10:41:36 2006 Subject: RE: [sqr-users] Unix Sort... Date: Fri, 10 Nov 2006 10:38:42 -0500 From: "Vaidyanathan, Ramakrishnan \(GE, Corporate, consultant\)" poda goyale -----Original Message----- From: sqr-users-bounces+ramakrishnan.vaidyanathan=3Dge.com@sqrug.org [mailto:sqr-users-bounces+ramakrishnan.vaidyanathan=3Dge.com@sqrug.org]On Behalf Of Bob Stone Sent: Friday, November 10, 2006 10:34 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] Unix Sort... So if I have this analogy right, the pole is "google and SQRUG archives" and the hook and line is 'CALL SYSTEM USING ***' ...what was the worm again? maybe the MAN pages on Unix? Put them all together and now Ram can fish? funny analogy. I agree with Clark and Richard. Basically you're saying "well I've tried nothing and I'm all out of ideas." Do some research with Google (great tool), the archives, some Unix documentation. Most of your questions will probably answer themselves within a few hours. THEN if you get stuck or there's some related question once you get going ("what way is faster, has anybody done it this way, etc") then ask the group.=20= =20 Everyone joined this group to get help/tips on serious or tough questions, not to do someone else's work for them. -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of the dragon Sent: Friday, November 10, 2006 9:22 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Unix Sort... search the sqrug archives for call system.... use the Unix man function=20 for sort.... check the sqr language reference manual for call system=20 using.... There, I've taught you how to fish. :-D peace, clark 'the dragon' willis ----Original Message Follows---- well..thats what iam also looking for... -----Original Message----- Better you should learn how to fish than merely get a fish, no? Do you have a unix command that does the sort you want? This is where I would start. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- Hi, I want to sort a file using the unix sort command. I need to sort a specific field alone. After sorting I need to write the sorted output to another file. It would be gr8 if some one can give me a sample code in sqr to do this. Thanks in Advance Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Nov 10 10:48:57 2006 From: "Dwight Schrute" Subject: RE: [sqr-users] Bold in PDF Date: Fri, 10 Nov 2006 09:46:02 -0600 Check the SQR.ini file. If present, ignore the SQR_EN.ini file or any of the other ones; these are used in UNICODE when using different locale ( e.g, EN is english, JP is japanese, etc. ) Certain fonts are already listed in the [Fonts] and [PDF Fonts] sections so see if your font is there. You can add fonts to these sections, but unless they are a common font found on other computers, you will have to embed them by adding the statement "Embed=80" (if 80 was your added font's font number) or you can add "Embed=All". Embedding fonts will increase creation time and cause files to be larger but guarantee that the fonts will be there. And ignore the .afm requirement. >From: "Steve Cavill" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "'This list is for discussion about the SQR database >reportinglanguagefrom Hyperion Solutions.'" >Subject: RE: [sqr-users] Bold in PDF >Date: Fri, 10 Nov 2006 12:48:13 +1100 > >I'm going on memory here, but not all fonts are supported in PDF, try a >simple font like arial. >Otherwise you need to go into the sqr.ini file and check if there is a [PDF >fonts] section and if so add your font to that section. >Steve. > >-----Original Message----- >From: sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org >[mailto:sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org] On >Behalf Of PeterG Clark >Sent: Thursday, 2 November 2006 11:47 PM >To: sqr-users@sqrug.org >Subject: [sqr-users] Bold in PDF > >Hi all, > >If this has been addressed before, I apologize. Maybe I am not using the >correct search keywords, but I cannot find it in the >archive. > >We have reports that have been being generated as SPF files in which the >use of the "bold" option on a print command worked just >fine. > >i.e. print 'XXXXX' (+1,1) BOLD > >But when we try to produce these reports in PDF we are losing the bold >print. Can anyone suggest a solution? > >Thanks in advance! > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Stay in touch with old friends and meet new ones with Windows Live Spaces http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Nov 10 11:22:46 2006 From: "Dwight Schrute" Subject: RE: AW: [sqr-users] printing groupheader and details in one horizontal band Date: Fri, 10 Nov 2006 10:19:50 -0600 Allegedly, Hyperion is attempting to upgrade the Reporting Studio to be more powerful. Until that happens (likely never), you can use Ultra-Edit with the wordfile from Ray Ontko's site (http://www.ontko.com/sqr/sqr_wordfile.txt). It will help immensely. Suggestion #1 - For printing your header, you can store the value in the reserved variable "#current-line" and use that as a coordinate. Such as: move #current-line to #starting_point ! line number to start printing print 'header1_field1' ( #starting_point, 1 ) print 'header1_field2' ( +1, 1 ) print 'header1_field3' ( +1, 1 ) move #current-line to #ending_point ! line number at end of printing print 'detail1' ( #starting_point, 10 ) ! return to starting line number print 'detail2' ( +1, 10 ) print 'detail3' ( +1, 10 ) print 'detail4' ( +1, 10) ! determine which line number is larger to start printing after that if #ending_point > #current-line move #ending_point to #starting_point else move #current-line to #starting_point end-if add 2 to #starting_point ! add an additional line in between print 'header2_field1' ( #starting_point, 1 ) ... You can make it more dynamic with loops and such but you get the concept. Remember, in SQR that a header (and footer) can end up being larger than the declared space "begin-heading 10" and if it is larger, it will begin printing into the body of the report. However, the body can never print into the header or footer. Suggestion #2 - For your page background, I do not know which version of SQR you are using but you could use the "declare-procedure" statement with "before-report" or "before-page". >From: "Giepz, Marius" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "'This list is for discussion about the SQR database reporting >languagefrom Hyperion Solutions.'" >Subject: AW: [sqr-users] printing groupheader and details in one horizontal >band >Date: Fri, 10 Nov 2006 11:19:42 +0100 > >yeah, i quit the Production-Reportingstudio after the first week i got in >touch with sqr (two months ago). > >do you mean that i should print the header and then move back some lines up >with the cursor to print >the details? > >another offtopic question: i want to print some grids and boxes as sort of >a >"page background". would it bet >best do call this drawing procedure from the header block (what i am doing >now)? > >-----Ursprüngliche Nachricht----- >Von: Steve Cavill [mailto:steve.cavill@infoclarity.com.au] >Gesendet: Freitag, 10. November 2006 03:00 >An: 'This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions.' >Betreff: RE: [sqr-users] printing groupheader and details in one >horizontal band > > >Look at the using relative print positions, and next-listing. >You can't do this with SQR developer (the GUI), you have to write the code. >Steve. > >-----Original Message----- >From: sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org >[mailto:sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org] On >Behalf Of Giepz, Marius >Sent: Friday, 10 November 2006 2:32 AM >To: 'This list is for discussion about the SQR database reporting >languagefrom Hyperion Solutions.' >Subject: [sqr-users] printing groupheader and details in one horizontal >band > >Hello! > >I would like to print fields of a groupheader and the corresponding details >in a band-style row. >Something like this: > >Header1_field1 detail1 >Header1_field2 detail2 >Header1_field3 detail3 > detail4 > >Header2_field1 detail1 >Header2_field2 detail2 >Header2_field3 > > >Header3_field1 detail1 >Header3_field2 detail2 >Header3_field3 detail3 > detail4 > detail5 > > >would this be possible with sqr? I am so far only able to print them one >below the other. >what would be the best approach then? > >thanks in advance! > >best regards > >Marius > > >++++++++++++++++++++++++++++++++++++++++++++ >Marius Giepz >topsystem Systemhaus GmbH >Europark A2 >Adenauer Strasse 20 >52146 Würselen >Germany >Phone : +49 2405 4670-0 >email : mg@topsystem.de >++++++++++++++++++++++++++++++++++++++++++++ > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >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 _________________________________________________________________ Add a Yahoo! contact to Windows Live Messenger for a chance to win a free trip! http://www.imagine-windowslive.com/minisites/yahoo/default.aspx?locale=en-us&hmtagline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Nov 10 14:24:31 2006 Date: Fri, 10 Nov 2006 13:21:34 -0600 From: "Leonard, Kyle" Subject: [sqr-users] Migrating SPF files from HPS/SQR 8.2 to HPS/SQR 8.5 The following log file shows the error which is produced by publishing an SPF file in Hyperion Foundation version 8.5 which was generated by SQR version 8.2. I have traced the issue down to a line of code in the SQR which requires an empty string in 8.5 but could be left blank in 8.2. I can fix the SQR code and get it to run in 8.5. =20 We have a requirement to migrate the current SPFs without rerunning the reports. Any thoughts on how can I get these SPFs to work in 8.5? =20 Thanks in advance! =20 =20 _________________________ Kyle J. Leonard Sr. Programmer Analyst Texas Health Resources phone: (817) 462-7365 fax: (817) 462-7996 kyleleonard@texashealth.org =20 =20 The information contained in this message and any attachments is intended o= nly for the use of the individual or entity to which it is addressed, and m= ay contain information that is PRIVILEGED, CONFIDENTIAL, and exempt from di= sclosure under applicable law. If you are not the intended recipient, you = are prohibited from copying, distributing, or using the information. Pleas= e contact the sender immediately by return e-mail and delete the original m= essage 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 Fri Nov 10 15:18:49 2006 Date: Fri, 10 Nov 2006 12:16:10 -0800 (PST) From: Sam Spritzer Subject: Re: [sqr-users] Unix Sort... Send me some money and I'll send you the code. I'll even throw in a bridge= or two! =20 ************************************************************ "In the beginning, there was something...which exploded yet, they find noth= ing." ----- Original Message ---- From: "Vaidyanathan, Ramakrishnan (GE, Corporate, consultant)" To: This list is for discussion about the SQR database reportinglanguage fr= om Hyperion Solutions. Sent: Friday, November 10, 2006 10:38:42 AM Subject: RE: [sqr-users] Unix Sort... poda goyale -----Original Message----- From: sqr-users-bounces+ramakrishnan.vaidyanathan=3Dge.com@sqrug.org [mailto:sqr-users-bounces+ramakrishnan.vaidyanathan=3Dge.com@sqrug.org]On Behalf Of Bob Stone Sent: Friday, November 10, 2006 10:34 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] Unix Sort... So if I have this analogy right, the pole is "google and SQRUG archives" and the hook and line is 'CALL SYSTEM USING ***' ...what was the worm again? maybe the MAN pages on Unix? Put them all together and now Ram can fish? funny analogy. I agree with Clark and Richard. Basically you're saying "well I've tried nothing and I'm all out of ideas." Do some research with Google (great tool), the archives, some Unix documentation. Most of your questions will probably answer themselves within a few hours. THEN if you get stuck or there's some related question once you get going ("what way is faster, has anybody done it this way, etc") then ask the group.=20= =20 Everyone joined this group to get help/tips on serious or tough questions, not to do someone else's work for them. -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of the dragon Sent: Friday, November 10, 2006 9:22 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Unix Sort... search the sqrug archives for call system.... use the Unix man function=20 for sort.... check the sqr language reference manual for call system=20 using.... There, I've taught you how to fish. :-D peace, clark 'the dragon' willis ----Original Message Follows---- well..thats what iam also looking for... -----Original Message----- Better you should learn how to fish than merely get a fish, no? Do you have a unix command that does the sort you want? This is where I would start. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- Hi, I want to sort a file using the unix sort command. I need to sort a specific field alone. After sorting I need to write the sorted output to another file. It would be gr8 if some one can give me a sample code in sqr to do this. Thanks in Advance Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Nov 10 17:40:11 2006 From: "Heather Philp" Subject: RE: [sqr-users] SQR running on Oracle 10.2 Date: Fri, 10 Nov 2006 18:37:58 -0400 Ian, We are currently running SQR 8.1 and are planning to move to Oracle 10.2 in the spring. We have been told by Hyperion that 8.1 was not supported with 10.2, but that 8.5 was. One difference may be the O/S... we will also be moving to Solaris, but I would go back to Hyperion for a clarification. Heather Philp Production Support Administrative Computing Dalhousie University Heather.Philp@Dal.Ca Admin.Prod.Support@Dal.Ca 902-494-3483 -----Original Message----- From: Ian Mills [mailto:Ian.Mills@orix.com.au] Sent: Thursday, November 09, 2006 9:56 PM To: sqr-users@sqrug.org Subject: [sqr-users] SQR running on Oracle 10.2 Hi, Does anyone out there currently run SQR against an Oracle 10.2 database? If so, are there any issues I should be aware of? I just got word from Hyperion that they do not support SQR run against Oracle 10.2 We were about to install SQR Server 8.5 on an AIX server to run against an Oracle 10.2 database. Any assistance would be greatly appreciated. Regards, Ian Mills ORIX Australia Corp Ltd -- This message from ORIX Australia might contain confidential and/or privileged information. If you are not the intended recipient, any use, disclosure or copying of this message (or of any attachments to it) is not authorised. If you have received this message in error, please notify the sender immediately and delete the message and any attachments from your system. Please inform the sender if you do not wish to receive future communications by email. ORIX handles personal information according to a Privacy Policy that is consistent with the National Privacy Principles. Please let us know if you would like a copy. It is also available at http://www.orix.com.au . _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Nov 10 19:55:52 2006 From: "Steve Cavill" Subject: RE: [sqr-users] printing groupheader and details in one horizontal band Date: Sat, 11 Nov 2006 11:52:47 +1100 Yes, exactly. E.g. Begin-header Print $head (1) Print $head2(2)=20 End-header Begin-detail Print $det1 (1) - this is the same as line (1) above Print $det2 (2)=20=20 Print $det3 (3) End-detail Or=20 Begin-header Print $head (1) Print $head2(2)=20 End-header Begin-detail Position (1) ! Go back to line 1 of header Print $det1 (,) - this is the same as line (1) above Print $det2 (+1) - use relative lines if number of lines is variable=20 Print $det3 (+1) End-detail Do header Do detail Next-listing skiplines =3D1. Move down the page 1 line and reset the line = number of the current (blank) line to 1 Call your header either from page-header or page-footer. That way it prints once per page, after everything else. Steve. -----Original Message----- From: sqr-users-bounces+steve.cavill=3Dinfoclarity.com.au@sqrug.org [mailto:sqr-users-bounces+steve.cavill=3Dinfoclarity.com.au@sqrug.org] On B= ehalf Of Giepz, Marius Sent: Friday, 10 November 2006 9:20 PM To: 'This list is for discussion about the SQR database reporting languagef= rom Hyperion Solutions.' Subject: AW: [sqr-users] printing groupheader and details in one horizontal= band yeah, i quit the Production-Reportingstudio after the first week i got in t= ouch with sqr (two months ago). do you mean that i should print the header and then move back some lines up= with the cursor to print the details?=20 another offtopic question: i want to print some grids and boxes as sort of = a "page background". would it bet best do call this drawing procedure from the header block (what i am doing now)? -----Urspr=FCngliche Nachricht----- Von: Steve Cavill [mailto:steve.cavill@infoclarity.com.au] Gesendet: Freitag, 10. November 2006 03:00 An: 'This list is for discussion about the SQR database reportinglanguage f= rom Hyperion Solutions.' Betreff: RE: [sqr-users] printing groupheader and details in one horizontal= band Look at the using relative print positions, and next-listing. You can't do this with SQR developer (the GUI), you have to write the code. Steve.=20 -----Original Message----- From: sqr-users-bounces+steve.cavill=3Dinfoclarity.com.au@sqrug.org [mailto:sqr-users-bounces+steve.cavill=3Dinfoclarity.com.au@sqrug.org] On B= ehalf Of Giepz, Marius Sent: Friday, 10 November 2006 2:32 AM To: 'This list is for discussion about the SQR database reporting languagef= rom Hyperion Solutions.' Subject: [sqr-users] printing groupheader and details in one horizontal band Hello! I would like to print fields of a groupheader and the corresponding details= in a band-style row.=20 Something like this: Header1_field1 detail1 Header1_field2 detail2 Header1_field3 detail3 detail4 Header2_field1 detail1 Header2_field2 detail2 Header2_field3=09 Header3_field1 detail1 Header3_field2 detail2 Header3_field3 detail3 detail4 detail5 would this be possible with sqr? I am so far only able to print them one be= low the other. what would be the best approach then? thanks in advance! best regards Marius ++++++++++++++++++++++++++++++++++++++++++++ Marius Giepz topsystem Systemhaus GmbH Europark A2 Adenauer Strasse 20 52146 W=FCrselen Germany Phone : +49 2405 4670-0 email : mg@topsystem.de ++++++++++++++++++++++++++++++++++++++++++++=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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Nov 13 07:29:45 2006 From: "Giepz, Marius" Subject: AW: AW: [sqr-users] printing groupheader and details in one horiz ontal band Date: Mon, 13 Nov 2006 13:25:06 +0100 > -----Urspr=FCngliche Nachricht----- > Von: Dwight Schrute [mailto:schrute.dwight@hotmail.com] > Gesendet: Freitag, 10. November 2006 17:20 > An: sqr-users@sqrug.org > Betreff: RE: AW: [sqr-users] printing groupheader and details in one > horizontal band >=20 >=20 > Allegedly, Hyperion is attempting to upgrade the Reporting=20 > Studio to be more=20 > powerful. Until that happens (likely never), you can use=20 > Ultra-Edit with=20 > the wordfile from Ray Ontko's site=20 > (http://www.ontko.com/sqr/sqr_wordfile.txt). It will help immensely. I allready have that. really helps a lot > Suggestion #1 - For printing your header, you can store the=20 > value in the=20 > reserved variable "#current-line" and use that as a=20 > coordinate. Such as: >=20 > move #current-line to #starting_point ! line number to=20 > start printing > print 'header1_field1' ( #starting_point, 1 ) > print 'header1_field2' ( +1, 1 ) > print 'header1_field3' ( +1, 1 ) > move #current-line to #ending_point ! line number at end of printing >=20 > print 'detail1' ( #starting_point, 10 ) ! return to=20 > starting line number > print 'detail2' ( +1, 10 ) > print 'detail3' ( +1, 10 ) > print 'detail4' ( +1, 10) >=20 > ! determine which line number is larger to start printing after that > if #ending_point > #current-line > move #ending_point to #starting_point > else > move #current-line to #starting_point > end-if >=20 > add 2 to #starting_point ! add an additional line in between >=20 > print 'header2_field1' ( #starting_point, 1 ) > ... >=20 > You can make it more dynamic with loops and such but you get=20 > the concept.=20=20 > Remember, in SQR that a header (and footer) can end up being=20 > larger than the=20 > declared space "begin-heading 10" and if it is larger, it will begin=20 > printing into the body of the report. However, the body can=20 > never print=20 > into the header or footer. i will try that. thanks > Suggestion #2 - For your page background, I do not know which=20 > version of SQR=20 > you are using but you could use the "declare-procedure"=20 > statement with=20 > "before-report" or "before-page". good idea. i allready use that for printing subtotals from a page on the next page > >From: "Giepz, Marius" > >Reply-To: "This list is for discussion about the SQR database=20 > >reportinglanguage from Hyperion Solutions." > >To: "'This list is for discussion about the SQR database reporting=20 > >languagefrom Hyperion Solutions.'" > >Subject: AW: [sqr-users] printing groupheader and details in=20 > one horizontal=20 > >band > >Date: Fri, 10 Nov 2006 11:19:42 +0100 > > > >yeah, i quit the Production-Reportingstudio after the first=20 > week i got in > >touch with sqr (two months ago). > > > >do you mean that i should print the header and then move=20 > back some lines up > >with the cursor to print > >the details? > > > >another offtopic question: i want to print some grids and=20 > boxes as sort of=20 > >a > >"page background". would it bet > >best do call this drawing procedure from the header block=20 > (what i am doing > >now)? > > > >-----Urspr=FCngliche Nachricht----- > >Von: Steve Cavill [mailto:steve.cavill@infoclarity.com.au] > >Gesendet: Freitag, 10. November 2006 03:00 > >An: 'This list is for discussion about the SQR database > >reportinglanguage from Hyperion Solutions.' > >Betreff: RE: [sqr-users] printing groupheader and details in one > >horizontal band > > > > > >Look at the using relative print positions, and next-listing. > >You can't do this with SQR developer (the GUI), you have to=20 > write the code. > >Steve. > > > >-----Original Message----- > >From: sqr-users-bounces+steve.cavill=3Dinfoclarity.com.au@sqrug.org > >[mailto:sqr-users-bounces+steve.cavill=3Dinfoclarity.com.au@sqr > ug.org] On > >Behalf Of Giepz, Marius > >Sent: Friday, 10 November 2006 2:32 AM > >To: 'This list is for discussion about the SQR database reporting > >languagefrom Hyperion Solutions.' > >Subject: [sqr-users] printing groupheader and details in one=20 > horizontal=20 > >band > > > >Hello! > > > >I would like to print fields of a groupheader and the=20 > corresponding details > >in a band-style row. > >Something like this: > > > >Header1_field1 detail1 > >Header1_field2 detail2 > >Header1_field3 detail3 > > detail4 > > > >Header2_field1 detail1 > >Header2_field2 detail2 > >Header2_field3 > > > > > >Header3_field1 detail1 > >Header3_field2 detail2 > >Header3_field3 detail3 > > detail4 > > detail5 > > > > > >would this be possible with sqr? I am so far only able to=20 > print them one > >below the other. > >what would be the best approach then? > > > >thanks in advance! > > > >best regards > > > >Marius > > > > > >++++++++++++++++++++++++++++++++++++++++++++ > >Marius Giepz > >topsystem Systemhaus GmbH > >Europark A2 > >Adenauer Strasse 20 > >52146 W=FCrselen > >Germany > >Phone : +49 2405 4670-0 > >email : mg@topsystem.de > >++++++++++++++++++++++++++++++++++++++++++++ > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >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 >=20 > _________________________________________________________________ > Add a Yahoo! contact to Windows Live Messenger for a chance=20 > to win a free=20 > trip!=20 > http://www.imagine-windowslive.com/minisites/yahoo/default.asp > x?locale=3Den-us&hmtagline >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Nov 13 13:56:43 2006 Date: Mon, 13 Nov 2006 13:54:06 -0500 From: "Karen Leary" Subject: [sqr-users] Can't move all files from folder I am trying to move some files from one folder to another when finished processing. I am using the following syntax which only moves one of the files instead of all of them - any ideas why??? Let $move =3D getenv('COMSPEC') || ' /C move ' || $ArchivePath || '*.* ' || $ArchivePath || 'archive\' call system using $move #status wait Each time I run the program it will move one file. If I run the same command from a dos prompt it does move all the files. Thank you, Karen _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Nov 13 14:12:02 2006 Subject: RE: [sqr-users] Can't move all files from folder Date: Mon, 13 Nov 2006 13:09:21 -0600 From: "Bob Stone" are they files that your program created? And if so, are they closed? You can't move a file you're still writing to because the system shows SQRUSER as having control of a open file. Also note that you can't move the log file or the .lis file automatically created, because those aren't closed until the program finishes. Maybe there's actually a way to do that, but if I've had to do something where I want to delete the file (or move it, in your case) then I always open a file for writing and close it before I have to do anything with it. What system is this on?=20=20 -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of Karen Leary Sent: Monday, November 13, 2006 12:54 PM To: sqr-users@sqrug.org Subject: [sqr-users] Can't move all files from folder I am trying to move some files from one folder to another when finished processing. I am using the following syntax which only moves one of the files instead of all of them - any ideas why??? Let $move =3D getenv('COMSPEC') || ' /C move ' || $ArchivePath || '*.* ' || $ArchivePath || 'archive\' call system using $move #status wait Each time I run the program it will move one file. If I run the same command from a dos prompt it does move all the files. Thank you, Karen _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Nov 13 14:20:56 2006 Date: Mon, 13 Nov 2006 11:17:26 -0800 From: "Janakiraman, Vijayakumar" Subject: [sqr-users] LIS to SPF format Hi, We ran a one time Sqr to update some tables in database. The one time Sqr generated a LIS file which holds the information about the updated rows. But Users need the output in SPF format. The SQR cannot be reran to generate the report again. Is it a way to transfer the existing LIS file to SPF. Thanks, Vijayakumar.J _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Nov 13 14:30:08 2006 Subject: RE: [sqr-users] LIS to SPF format Date: Mon, 13 Nov 2006 14:26:59 -0500 From: "Peter Burton" I would code an SQR program to read the old .LIS file line by line and then PRINT each line into another .LIS and keep the .SPF file. Peter -----Original Message----- From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org] On Behalf Of Janakiraman, Vijayakumar Sent: Monday, November 13, 2006 2:17 PM To: sqr-users@sqrug.org Subject: [sqr-users] LIS to SPF format Hi, We ran a one time Sqr to update some tables in database. The one time Sqr generated a LIS file which holds the information about the updated rows. But Users need the output in SPF format. The SQR cannot be reran to generate the report again. Is it a way to transfer the existing LIS file to SPF. Thanks, Vijayakumar.J _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users If you have received this e-mail in error, please delete it and notify the = sender as soon as possible. The contents of this e-mail may be confidential= and the unauthorized use, copying, or dissemination of it and any attachme= nts to it, is prohibited. Internet communications are not secure and Hyperi= on does not, therefore, accept legal responsibility for the contents of thi= s message nor for any damage caused by viruses. The views expressed here do= not necessarily represent those of Hyperion. For more information about Hy= perion, please visit our Web site at: www.hyperion.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Nov 13 14:37:12 2006 From: "the dragon" Subject: RE: [sqr-users] LIS to SPF format Date: Mon, 13 Nov 2006 13:34:22 -0600 don't think so. I guess my question is, why do the l-users think they need to view it in spf? They can open an .lis file in any text editor. They need to think inside the box. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) It is impossible to defeat an ignorant man in argument. William G. McAdoo ----Original Message Follows---- Hi, We ran a one time Sqr to update some tables in database. The one time Sqr generated a LIS file which holds the information about the updated rows. But Users need the output in SPF format. The SQR cannot be reran to generate the report again. Is it a way to transfer the existing LIS file to SPF. Thanks, Vijayakumar.J _________________________________________________________________ All-in-one security and maintenance for your PC. Get a free 90-day trial! http://clk.atdmt.com/MSN/go/msnnkwlo0050000002msn/direct/01/?href=http://www.windowsonecare.com/?sc_cid=msn_hotmail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Nov 13 15:06:50 2006 Subject: RE: [sqr-users] LIS to SPF format Date: Mon, 13 Nov 2006 14:51:55 -0500 From: "Peter Burton" =20 Clark, You never know what other people want. If they are used to viewing reports in SPF format then trying to tell them that this one is an exception will cause then to have a brain fart. Peter -----Original Message----- From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org] On Behalf Of the dragon Sent: Monday, November 13, 2006 2:34 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] LIS to SPF format don't think so. I guess my question is, why do the l-users think they need to view it in spf? They can open an .lis file in any text editor. They need to think inside the box. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your=20 services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be=20 recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you=20 can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) It is impossible to defeat an ignorant man in argument. William G. McAdoo ----Original Message Follows---- Hi, We ran a one time Sqr to update some tables in database. The one time Sqr generated a LIS file which holds the information about the updated rows. But Users need the output in SPF format. The SQR cannot be reran to generate the report again. Is it a way to transfer the existing LIS file to SPF. Thanks, Vijayakumar.J _________________________________________________________________ All-in-one security and maintenance for your PC. Get a free 90-day trial!=20 http://clk.atdmt.com/MSN/go/msnnkwlo0050000002msn/direct/01/?href=3Dhttp:/ /www.windowsonecare.com/?sc_cid=3Dmsn_hotmail _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users If you have received this e-mail in error, please delete it and notify the = sender as soon as possible. The contents of this e-mail may be confidential= and the unauthorized use, copying, or dissemination of it and any attachme= nts to it, is prohibited. Internet communications are not secure and Hyperi= on does not, therefore, accept legal responsibility for the contents of thi= s message nor for any damage caused by viruses. The views expressed here do= not necessarily represent those of Hyperion. For more information about Hy= perion, please visit our Web site at: www.hyperion.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Nov 13 15:53:49 2006 Subject: RE: [sqr-users] Can't move all files from folder Date: Mon, 13 Nov 2006 13:59:43 -0600 From: "Knapp, Richard" I tried this and it will only move one file at a time and generates a status of 1 each time. This is a syntax error. I tried all sorts of variations on wildcarding but could find nothing that worked for all the files and nothing in the documentation that indicates a different syntax except leaving the final slash off but even that doesn't affect the desired movement. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Bob Stone Sent: Monday, November 13, 2006 1:09 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] Can't move all files from folder are they files that your program created? And if so, are they closed? You can't move a file you're still writing to because the system shows SQRUSER as having control of a open file. Also note that you can't move the log file or the .lis file automatically created, because those aren't closed until the program finishes. Maybe there's actually a way to do that, but if I've had to do something where I want to delete the file (or move it, in your case) then I always open a file for writing and close it before I have to do anything with it. What system is this on?=20=20 -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of Karen Leary Sent: Monday, November 13, 2006 12:54 PM To: sqr-users@sqrug.org Subject: [sqr-users] Can't move all files from folder I am trying to move some files from one folder to another when finished processing. I am using the following syntax which only moves one of the files instead of all of them - any ideas why??? Let $move =3D getenv('COMSPEC') || ' /C move ' || $ArchivePath || '*.* ' || $ArchivePath || 'archive\' call system using $move #status wait Each time I run the program it will move one file. If I run the same command from a dos prompt it does move all the files. Thank you, Karen _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Nov 13 16:07:30 2006 Subject: RE: [sqr-users] Can't move all files from folder Date: Mon, 13 Nov 2006 15:04:48 -0600 From: "Bob Stone" would it help to ENCODE the * character as its ASCII key? Perhaps something in the translation to SYSTEM code sees * as a special character? Could also be the \ character that thinks it means something else?=20=20 Seeing as she says DOS prompt and uses MOVE instead of CP, I assume we're in a Windows environment? I don't do much in the way of windows scripting, so I'm not familiar with a lot of commands. But I would check into whether or not there's a character in the string that SYSTEM would translate to do something other than just represent the character. While I see no CR in the code below, maybe there's a CRLF issue? -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Monday, November 13, 2006 2:00 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] Can't move all files from folder I tried this and it will only move one file at a time and generates a status of 1 each time. This is a syntax error. I tried all sorts of variations on wildcarding but could find nothing that worked for all the files and nothing in the documentation that indicates a different syntax except leaving the final slash off but even that doesn't affect the desired movement. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Bob Stone Sent: Monday, November 13, 2006 1:09 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] Can't move all files from folder are they files that your program created? And if so, are they closed? You can't move a file you're still writing to because the system shows SQRUSER as having control of a open file. Also note that you can't move the log file or the .lis file automatically created, because those aren't closed until the program finishes. Maybe there's actually a way to do that, but if I've had to do something where I want to delete the file (or move it, in your case) then I always open a file for writing and close it before I have to do anything with it. What system is this on?=20=20 -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of Karen Leary Sent: Monday, November 13, 2006 12:54 PM To: sqr-users@sqrug.org Subject: [sqr-users] Can't move all files from folder I am trying to move some files from one folder to another when finished processing. I am using the following syntax which only moves one of the files instead of all of them - any ideas why??? Let $move =3D getenv('COMSPEC') || ' /C move ' || $ArchivePath || '*.* ' || $ArchivePath || 'archive\' call system using $move #status wait Each time I run the program it will move one file. If I run the same command from a dos prompt it does move all the files. Thank you, Karen _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Nov 14 09:17:00 2006 From: "Anu Bagde" Subject: RE: [sqr-users] Call System Using command Date: Tue, 14 Nov 2006 14:14:20 +0000 Hi Steve, Actually in .bat file there is a cd command to change the directory, so that the download data will go in that directory. Now on my computer that directory is mapped. When I changed the cd command from 'cd download-all ' to say 'chdir /u c:/download-all' then the script works from a command prompt. But when SQR runs on server, there is no mapping of this drive on server. In that case I cannot use the same 'chdir' command to change the directory. I cannot use 'net use' command to map the directory on the server, as I do not and cannot have the userid and password for the server. I am not sure what I can use or even I can do this. Thanks for all your help, Anu >From: "Steve Cavill" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "'This list is for discussion about the SQR database >reportinglanguagefrom Hyperion Solutions.'" >Subject: RE: [sqr-users] Call System Using command >Date: Fri, 10 Nov 2006 12:57:27 +1100 > >Does the command work from a command prompt? That's the first step. >Once you get it working from a comamnd prompt then calling it from sqr >should be easy. >Steve. > >-----Original Message----- >From: sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org >[mailto:sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org] On >Behalf Of Anu Bagde >Sent: Saturday, 4 November 2006 6:44 AM >To: sqr-users@sqrug.org >Subject: [sqr-users] Call System Using command > >Hello all, >I am trying to use call system to execute a .dat file located on a >different server than where the SQR's are located. Operating >system on both the servers is Windows NT. I am initializing the variable >named $script_file with the actual fine name with complete >path. Then I use the following code to actually execute the .dat file: > >let $command = getenv('COMSPEC')||' /c "' || $script_file || '"' >call system using $command #status WAIT >show 'Running command: ' $command ' Return Status: ' #status > >My return status is 1. Can anyone help me understand this and solve this >problem? If this is not possible can any one help me find >another way to execute the .dat file, every day at 7pm? > >Thanks in advance, >Anu > >_________________________________________________________________ >One and only Ash. Find out all about her. Only on MSN Search >http://server1.msn.co.in/profile/aishwarya.asp > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Tried the new MSN Messenger? It’s cool! Download now. http://messenger.msn.com/Download/Default.aspx?mkt=en-in _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Nov 14 09:20:54 2006 From: "Giepz, Marius" Subject: AW: AW: [sqr-users] printing groupheader and details in one horiz ontal band Date: Tue, 14 Nov 2006 15:17:19 +0100 would the #current_line thing also work in graphic mode? i have to position the lines and boxes pixel accurate so i use this mode. the way i tried it so far seem to be wrong. i am not really familiar with the=20 namespaces of variables in sqr yet. i mean using global and local variables. when i use on-break for the grouping, then the groupheaders are printed in a subroutine i tried it like this: Begin-Procedure Master_Query Begin-Select table.head2 &head2 table.head3 &head3 !my grouping criterion (it shall not be printed)=09 table.head1 &val1 () On-Break Set=3D1 Level=3D2 Print=3DNever Before=3DMaster_Query_BeforeProc !print the details table.val1 &val1 (#starting_point,200) table.val2 &val2 (+10, 200) if #ending_point > #current-line move #ending_point to #starting_point else move #current-line to #starting_point end-if From ........... End-Select =09=09 End-Procedure=09 !print the groupheader Begin-Procedure Master_Query_BeforeProc move #current-line to #starting_point Print &head2 (#starting_point,33)=20 Print &head3 (+10,89)=20 move #current-line to #ending_point End-Procedure There must be some big fault in my understanding of the sequence. do those point variables have to be global? > -----Urspr=FCngliche Nachricht----- > Von: Dwight Schrute [mailto:schrute.dwight@hotmail.com] > Gesendet: Freitag, 10. November 2006 17:20 > An: sqr-users@sqrug.org > Betreff: RE: AW: [sqr-users] printing groupheader and details in one > horizontal band >=20 >=20 > Allegedly, Hyperion is attempting to upgrade the Reporting=20 > Studio to be more=20 > powerful. Until that happens (likely never), you can use=20 > Ultra-Edit with=20 > the wordfile from Ray Ontko's site=20 > (http://www.ontko.com/sqr/sqr_wordfile.txt). It will help immensely. >=20 > Suggestion #1 - For printing your header, you can store the=20 > value in the=20 > reserved variable "#current-line" and use that as a=20 > coordinate. Such as: >=20 > move #current-line to #starting_point ! line number to=20 > start printing > print 'header1_field1' ( #starting_point, 1 ) > print 'header1_field2' ( +1, 1 ) > print 'header1_field3' ( +1, 1 ) > move #current-line to #ending_point ! line number at end of printing >=20 > print 'detail1' ( #starting_point, 10 ) ! return to=20 > starting line number > print 'detail2' ( +1, 10 ) > print 'detail3' ( +1, 10 ) > print 'detail4' ( +1, 10) >=20 > ! determine which line number is larger to start printing after that > if #ending_point > #current-line > move #ending_point to #starting_point > else > move #current-line to #starting_point > end-if >=20 > add 2 to #starting_point ! add an additional line in between >=20 > print 'header2_field1' ( #starting_point, 1 ) > ... > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Nov 14 10:04:23 2006 Subject: RE: [sqr-users] Can't move all files from folder Date: Tue, 14 Nov 2006 10:01:16 -0500 From: "Karen Leary" Thank you for your replies. I am on Windows NT. I am reading one of the files and my program is not creating any of them. -----Original Message----- From: Bob Stone [mailto:bstone@fastenal.com]=20 Sent: Monday, November 13, 2006 4:05 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] Can't move all files from folder would it help to ENCODE the * character as its ASCII key? Perhaps something in the translation to SYSTEM code sees * as a special character? Could also be the \ character that thinks it means something else?=20=20 Seeing as she says DOS prompt and uses MOVE instead of CP, I assume we're in a Windows environment? I don't do much in the way of windows scripting, so I'm not familiar with a lot of commands. But I would check into whether or not there's a character in the string that SYSTEM would translate to do something other than just represent the character. While I see no CR in the code below, maybe there's a CRLF issue? -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Monday, November 13, 2006 2:00 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] Can't move all files from folder I tried this and it will only move one file at a time and generates a status of 1 each time. This is a syntax error. I tried all sorts of variations on wildcarding but could find nothing that worked for all the files and nothing in the documentation that indicates a different syntax except leaving the final slash off but even that doesn't affect the desired movement. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Bob Stone Sent: Monday, November 13, 2006 1:09 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] Can't move all files from folder are they files that your program created? And if so, are they closed? You can't move a file you're still writing to because the system shows SQRUSER as having control of a open file. Also note that you can't move the log file or the .lis file automatically created, because those aren't closed until the program finishes. Maybe there's actually a way to do that, but if I've had to do something where I want to delete the file (or move it, in your case) then I always open a file for writing and close it before I have to do anything with it. What system is this on?=20=20 -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of Karen Leary Sent: Monday, November 13, 2006 12:54 PM To: sqr-users@sqrug.org Subject: [sqr-users] Can't move all files from folder I am trying to move some files from one folder to another when finished processing. I am using the following syntax which only moves one of the files instead of all of them - any ideas why??? Let $move =3D getenv('COMSPEC') || ' /C move ' || $ArchivePath || '*.* ' || $ArchivePath || 'archive\' call system using $move #status wait Each time I run the program it will move one file. If I run the same command from a dos prompt it does move all the files. Thank you, Karen _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Nov 14 10:22:28 2006 Subject: RE: [sqr-users] Can't move all files from folder Date: Tue, 14 Nov 2006 09:20:09 -0600 From: "Knapp, Richard" I've tried some other solutions including encoding the asterisks and double quoting the command. Nothing works. The strange thing is an error is returned even though one file is moved each time. I think there is something goofy about how the OS is communicating with SQR. I have also tried rename which doesn't seem to work at all. Have you tried communicating with Hyperion, Karen? Richard Knapp AITS - Data Warehouse Group University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu =20 -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Karen Leary Sent: Tuesday, November 14, 2006 9:01 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Can't move all files from folder Thank you for your replies. I am on Windows NT. I am reading one of the files and my program is not creating any of them. -----Original Message----- From: Bob Stone [mailto:bstone@fastenal.com]=20 Sent: Monday, November 13, 2006 4:05 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] Can't move all files from folder would it help to ENCODE the * character as its ASCII key? Perhaps something in the translation to SYSTEM code sees * as a special character? Could also be the \ character that thinks it means something else?=20=20 Seeing as she says DOS prompt and uses MOVE instead of CP, I assume we're in a Windows environment? I don't do much in the way of windows scripting, so I'm not familiar with a lot of commands. But I would check into whether or not there's a character in the string that SYSTEM would translate to do something other than just represent the character. While I see no CR in the code below, maybe there's a CRLF issue? -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Monday, November 13, 2006 2:00 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] Can't move all files from folder I tried this and it will only move one file at a time and generates a status of 1 each time. This is a syntax error. I tried all sorts of variations on wildcarding but could find nothing that worked for all the files and nothing in the documentation that indicates a different syntax except leaving the final slash off but even that doesn't affect the desired movement. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Bob Stone Sent: Monday, November 13, 2006 1:09 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] Can't move all files from folder are they files that your program created? And if so, are they closed? You can't move a file you're still writing to because the system shows SQRUSER as having control of a open file. Also note that you can't move the log file or the .lis file automatically created, because those aren't closed until the program finishes. Maybe there's actually a way to do that, but if I've had to do something where I want to delete the file (or move it, in your case) then I always open a file for writing and close it before I have to do anything with it. What system is this on?=20=20 -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of Karen Leary Sent: Monday, November 13, 2006 12:54 PM To: sqr-users@sqrug.org Subject: [sqr-users] Can't move all files from folder I am trying to move some files from one folder to another when finished processing. I am using the following syntax which only moves one of the files instead of all of them - any ideas why??? Let $move =3D getenv('COMSPEC') || ' /C move ' || $ArchivePath || '*.* ' || $ArchivePath || 'archive\' call system using $move #status wait Each time I run the program it will move one file. If I run the same command from a dos prompt it does move all the files. Thank you, Karen _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Nov 14 11:28:53 2006 From: "Dwight Schrute" Subject: RE: AW: AW: [sqr-users] printing groupheader and details in one horizontal band Date: Tue, 14 Nov 2006 10:26:01 -0600 The variable #current-line is a reserved variable that is global. A variable is only local when the procedure is declared with variables in the name, such as: begin-procedure Master_Query_BeforeProc ( #line_number ) #line_number and any variables within the procedure would be local unless they have an underscore, such as $_variable_name would refer to $variable_name outside of the local scope. Back to your problem, the substitution variables &head2 and &head3 are only being printed when the value of &val1 changes. You're also not incrementing #starting_point for the next line so you are printing on the same line you ended on ( the same line as &val2 ). You could split this into two queries. For example: begin-procedure master_query begin-select table.head2 &head2 ( +10, 33 ) table.head3 &head3 ( +10, 89 ) let #starting_point = #current-line - 20 do child_query from table end-select end-procedure !master_query begin-procedure child_query begin-select table.val1 &val1 ( #starting_point, 200 ) table.val2 &val2 ( +10, 200 ) add 20 to #starting_point from table where head2 = &head2 end-select end-procedure !child_query >From: "Giepz, Marius" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "'This list is for discussion about the SQR database reporting >languagefrom Hyperion Solutions.'" >Subject: AW: AW: [sqr-users] printing groupheader and details in one >horizontal band >Date: Tue, 14 Nov 2006 15:17:19 +0100 > >would the #current_line thing also work in graphic mode? >i have to position the lines and boxes pixel accurate so i use this mode. > >the way i tried it so far seem to be wrong. i am not really familiar with >the >namespaces of variables in sqr yet. i mean using global and local >variables. >when i use on-break for the grouping, then the groupheaders are printed in >a >subroutine >i tried it like this: > > >Begin-Procedure Master_Query > Begin-Select > > table.head2 &head2 > table.head3 &head3 > > !my grouping criterion (it shall not be printed) > table.head1 &val1 () On-Break Set=1 Level=2 Print=Never >Before=Master_Query_BeforeProc > !print the details > table.val1 &val1 (#starting_point,200) > table.val2 &val2 (+10, 200) > > if #ending_point > #current-line > move #ending_point to #starting_point > else > move #current-line to #starting_point > end-if > > From ........... > > End-Select > >End-Procedure > >!print the groupheader >Begin-Procedure Master_Query_BeforeProc > > move #current-line to #starting_point > > Print &head2 (#starting_point,33) > Print &head3 (+10,89) > > move #current-line to #ending_point > >End-Procedure > > > > >There must be some big fault in my understanding of the sequence. do those >point variables have to be global? > > > > > > > > > > -----Ursprüngliche Nachricht----- > > Von: Dwight Schrute [mailto:schrute.dwight@hotmail.com] > > Gesendet: Freitag, 10. November 2006 17:20 > > An: sqr-users@sqrug.org > > Betreff: RE: AW: [sqr-users] printing groupheader and details in one > > horizontal band > > > > > > Allegedly, Hyperion is attempting to upgrade the Reporting > > Studio to be more > > powerful. Until that happens (likely never), you can use > > Ultra-Edit with > > the wordfile from Ray Ontko's site > > (http://www.ontko.com/sqr/sqr_wordfile.txt). It will help immensely. > > > > Suggestion #1 - For printing your header, you can store the > > value in the > > reserved variable "#current-line" and use that as a > > coordinate. Such as: > > > > move #current-line to #starting_point ! line number to > > start printing > > print 'header1_field1' ( #starting_point, 1 ) > > print 'header1_field2' ( +1, 1 ) > > print 'header1_field3' ( +1, 1 ) > > move #current-line to #ending_point ! line number at end of printing > > > > print 'detail1' ( #starting_point, 10 ) ! return to > > starting line number > > print 'detail2' ( +1, 10 ) > > print 'detail3' ( +1, 10 ) > > print 'detail4' ( +1, 10) > > > > ! determine which line number is larger to start printing after that > > if #ending_point > #current-line > > move #ending_point to #starting_point > > else > > move #current-line to #starting_point > > end-if > > > > add 2 to #starting_point ! add an additional line in between > > > > print 'header2_field1' ( #starting_point, 1 ) > > ... > > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Try the next generation of search with Windows Live Search today! http://imagine-windowslive.com/minisites/searchlaunch/?locale=en-us&source=hmtagline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Nov 14 16:43:53 2006 Date: Tue, 14 Nov 2006 16:40:10 -0500 From: "Vaidyanathan, Ramakrishnan \(GE, Corporate, consultant\)" Subject: [sqr-users] Writing values in separate lines Hi, Is it possible to write 4 column values as 4 separate rows to a text fil= e in SQR? For eg. if i use=20 begin-select emplid tax grss write-file !instead of writing 3 values as one row, i need to write it as 3 differen= t rows, some thing like this !emplid !tax !grss from ps_test Thanks RK =09 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Nov 14 16:49:38 2006 Subject: RE: [sqr-users] PeopleSoft SQR question Date: Tue, 14 Nov 2006 16:49:20 -0500 From: "Hall, Tara" Hi Don, I used your suggestion to divide by 100. It worked. Thanks a lot. -----Original Message----- From: sqr-users-bounces+hallt=3Dtalgov.com@sqrug.org [mailto:sqr-users-bounces+hallt=3Dtalgov.com@sqrug.org]On Behalf Of don.barclay@srs.gov Sent: Monday, November 06, 2006 5:14 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] PeopleSoft SQR question Hi Tara, It would help if you could be a little more descriptive about your=20 problem. If I am reading your question correctly, you are trying to enter= =20 a number where the first x digits are the dollar amount, and the last two= =20 digits are the cents. You could read in the amount, verify that input is= =20 as expected (make sure that every value is a digit, for example), and then= =20 divide the resulting number by 100. HTH, Don > Hi, >=20 > I have an sqr that is reading a flat file and populating a table.=20 > I'm encountering an issue with the handling of a dollar amount. The > last two digits should be the cents amount. However, I can't=20 > determine where the dollars and cents are being manipulated in the=20 > process. My short term fix was to change the field positions to get > the correct dollar amounts. This only works because in this=20 > particular flat file there are no dollar amounts with cents. >=20 > Any suggestions. >=20 > 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 Tue Nov 14 16:54:52 2006 Date: Tue, 14 Nov 2006 16:52:46 -0500 From: Nathan Stratton Treadway Subject: [sqr-users] Re: LIS to SPF format On Mon, Nov 13, 2006 at 11:17:26AM -0800, Janakiraman, Vijayakumar wrote: > We ran a one time Sqr to update some tables in database. The one time > Sqr generated a LIS file which holds the information about the updated > rows. But Users need the output in SPF format. The SQR cannot be reran > to generate the report again. Is it a way to transfer the existing LIS > file to SPF. Is the LIS file you have plain text (as opposed to PCL or Postscript)? If so, I agree that Peter B.'s suggestion of using a "conversion" SQR program to read in the LIS file and generate a new SPF file as output is going to be your best bet. Depending on the complexity of your LIS file it's probably overkill for your situation, but you may find this "lis_to_spf" program does what you need: http://www.ontko.com/sqr/lis_to_spf.sqr Nathan ---------------------------------------------------------------------------- Nathan Stratton Treadway - nathanst@ontko.com - Mid-Atlantic region Ray Ontko & Co. - Software consulting services - http://www.ontko.com/ GPG Key: http://www.ontko.com/~nathanst/gpg_key.txt ID: 1023D/ECFB6239 Key fingerprint = 6AD8 485E 20B9 5C71 231C 0C32 15F3 ADCD ECFB 6239 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Nov 14 17:11:49 2006 From: "Franck Masson" Subject: RE: [sqr-users] Can't move all files from folder Date: Tue, 14 Nov 2006 23:09:50 +0100 This is a multi-part message in MIME format... ------=_NextPart_000_00C8_01C70841.FD5F0DB0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Are you running SQR from Dos Windows on your server or via the Windows Menu ? I will recommand that you try it from a dos windows This test will identify if this issue is not du to a windows configuration then try to add/force some option to the move command like "\Y" Franck -----Original Message----- From: sqr-users-bounces+franck.masson2002=laposte.net@sqrug.org [mailto:sqr-users-bounces+franck.masson2002=laposte.net@sqrug.org]On Behalf Of Knapp, Richard Sent: mardi 14 novembre 2006 16:20 To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Can't move all files from folder I've tried some other solutions including encoding the asterisks and double quoting the command. Nothing works. The strange thing is an error is returned even though one file is moved each time. I think there is something goofy about how the OS is communicating with SQR. I have also tried rename which doesn't seem to work at all. Have you tried communicating with Hyperion, Karen? Richard Knapp AITS - Data Warehouse Group University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Karen Leary Sent: Tuesday, November 14, 2006 9:01 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Can't move all files from folder Thank you for your replies. I am on Windows NT. I am reading one of the files and my program is not creating any of them. -----Original Message----- From: Bob Stone [mailto:bstone@fastenal.com] Sent: Monday, November 13, 2006 4:05 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] Can't move all files from folder would it help to ENCODE the * character as its ASCII key? Perhaps something in the translation to SYSTEM code sees * as a special character? Could also be the \ character that thinks it means something else? Seeing as she says DOS prompt and uses MOVE instead of CP, I assume we're in a Windows environment? I don't do much in the way of windows scripting, so I'm not familiar with a lot of commands. But I would check into whether or not there's a character in the string that SYSTEM would translate to do something other than just represent the character. While I see no CR in the code below, maybe there's a CRLF issue? -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Monday, November 13, 2006 2:00 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] Can't move all files from folder I tried this and it will only move one file at a time and generates a status of 1 each time. This is a syntax error. I tried all sorts of variations on wildcarding but could find nothing that worked for all the files and nothing in the documentation that indicates a different syntax except leaving the final slash off but even that doesn't affect the desired movement. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Bob Stone Sent: Monday, November 13, 2006 1:09 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] Can't move all files from folder are they files that your program created? And if so, are they closed? You can't move a file you're still writing to because the system shows SQRUSER as having control of a open file. Also note that you can't move the log file or the .lis file automatically created, because those aren't closed until the program finishes. Maybe there's actually a way to do that, but if I've had to do something where I want to delete the file (or move it, in your case) then I always open a file for writing and close it before I have to do anything with it. What system is this on? -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org] On Behalf Of Karen Leary Sent: Monday, November 13, 2006 12:54 PM To: sqr-users@sqrug.org Subject: [sqr-users] Can't move all files from folder I am trying to move some files from one folder to another when finished processing. I am using the following syntax which only moves one of the files instead of all of them - any ideas why??? Let $move = getenv('COMSPEC') || ' /C move ' || $ArchivePath || '*.* ' || $ArchivePath || 'archive\' call system using $move #status wait Each time I run the program it will move one file. If I run the same command from a dos prompt it does move all the files. Thank you, Karen _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------=_NextPart_000_00C8_01C70841.FD5F0DB0 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/ms-tnef' MIME type. It has been automatically discarded before sending the message to the list. ------=_NextPart_000_00C8_01C70841.FD5F0DB0 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------=_NextPart_000_00C8_01C70841.FD5F0DB0-- From sqr-users-bounces@sqrug.org Tue Nov 14 17:54:20 2006 From: "the dragon" Subject: RE: [sqr-users] Writing values in separate lines Date: Tue, 14 Nov 2006 16:51:25 -0600 Why yes, it is.... peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) It is impossible to defeat an ignorant man in argument. William G. McAdoo ----Original Message Follows---- Hi, Is it possible to write 4 column values as 4 separate rows to a text file in SQR? For eg. if i use begin-select emplid tax grss write-file !instead of writing 3 values as one row, i need to write it as 3 different rows, some thing like this !emplid !tax !grss from ps_test Thanks RK _________________________________________________________________ Get today's hot entertainment gossip http://movies.msn.com/movies/hotgossip?icid=T002MSN03A07001 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Nov 14 18:08:24 2006 From: "Angelika Scheffera" Subject: RE: [sqr-users] Writing values in separate lines Date: Tue, 14 Nov 2006 17:05:38 -0600 Dragon, LMAO.... Do you really think that's the answer he was looking for? I love it. Got right to the point.... :) Regards, Angelika M. Scheffera 860.794.1909 angelika_scheffera@msn.com -----Original Message----- From: sqr-users-bounces+angelika_scheffera=msn.com@sqrug.org [mailto:sqr-users-bounces+angelika_scheffera=msn.com@sqrug.org] On Behalf Of the dragon Sent: Tuesday, November 14, 2006 4:51 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Writing values in separate lines Why yes, it is.... peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) It is impossible to defeat an ignorant man in argument. William G. McAdoo ----Original Message Follows---- Hi, Is it possible to write 4 column values as 4 separate rows to a text file in SQR? For eg. if i use begin-select emplid tax grss write-file !instead of writing 3 values as one row, i need to write it as 3 different rows, some thing like this !emplid !tax !grss from ps_test Thanks RK _________________________________________________________________ Get today's hot entertainment gossip http://movies.msn.com/movies/hotgossip?icid=T002MSN03A07001 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Nov 14 18:12:45 2006 Subject: RE: [sqr-users] Writing values in separate lines Date: Tue, 14 Nov 2006 17:10:12 -0600 From: "Bob Stone" lol. Suppose he wanted an actual response? Why not just pretend you're hitting the enter key between each variable? I prefer to do that with a $cr variable set to the ascii of 'carraige-return' (note that if your file is Windows you probably need to append 'line-feed' which is ascii 10). ENCODE <13> INTO $CR (or) =20 ENCODE <13> into $cr ENCODE <10> into $lf let $crlf =3D $cr || $lf begin-select emplid tax grss let $emp =3D &emplid let $tax =3D &tax let $grss =3D &grss let $var_to_write_as_rows =3D $emp || $cr || $tax || $cr || grss || $cr write 10 from $var_to_write_as_rows from ps_test end-select -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users- =20 Why yes, it is.... peace, clark 'the dragon' willis ----Original Message Follows---- Hi, Is it possible to write 4 column values as 4 separate rows to a text file in SQR? For eg. if i use begin-select emplid tax grss write-file !instead of writing 3 values as one row, i need to write it as 3 different=20 rows, some thing like this !emplid !tax !grss from ps_test Thanks RK _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Nov 15 11:22:30 2006 From: "Dwight Schrute" Subject: RE: [sqr-users] Writing values in separate lines Date: Wed, 15 Nov 2006 10:19:49 -0600 Instead of using the "let" commands, try using "string". Building upon Bob's response, it would be: string &emp &tax &gss by $crlf into $var_to_write_as_rows write 10 from $var_to_write_as_rows This is more concise and doesn't require the extra variables. In addition, performance is increase since "let" is so slow. AND CLARK, DON'T BE SUCH AN ASS!! >From: "Bob Stone" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "This list is for discussion about the SQR database reporting >languagefrom Hyperion Solutions." >Subject: RE: [sqr-users] Writing values in separate lines >Date: Tue, 14 Nov 2006 17:10:12 -0600 > >lol. Suppose he wanted an actual response? > >Why not just pretend you're hitting the enter key between each variable? >I prefer to do that with a $cr variable set to the ascii of >'carraige-return' (note that if your file is Windows you probably need >to append 'line-feed' which is ascii 10). > > > ENCODE <13> INTO $CR > >(or) > > ENCODE <13> into $cr > ENCODE <10> into $lf > let $crlf = $cr || $lf > > >begin-select >emplid >tax >grss > let $emp = &emplid > let $tax = &tax > let $grss = &grss > > let $var_to_write_as_rows = $emp || $cr || $tax || $cr || grss || $cr > > write 10 from $var_to_write_as_rows >from ps_test >end-select > > > >-----Original Message----- >From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users- > >Why yes, it is.... > >peace, >clark 'the dragon' willis > >----Original Message Follows---- > >Hi, > Is it possible to write 4 column values as 4 separate rows to a text > >file in SQR? For eg. if i use > begin-select > emplid > tax > grss > write-file > !instead of writing 3 values as one row, i need to write >it as 3 different >rows, some thing like this > !emplid > !tax > !grss > from ps_test > >Thanks >RK > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Get today's hot entertainment gossip http://movies.msn.com/movies/hotgossip?icid=T002MSN03A07001 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Nov 15 12:44:12 2006 Subject: RE: [sqr-users] Writing values in separate lines From: Roger.Harris@certegy.com Date: Wed, 15 Nov 2006 12:41:14 -0500 Ok, maybe I am overlooking something here, but what would be wrong with just doing it like this: begin-select emplid tax grss write #fileNum from &emplid write #fileNum from &tax write #fileNum from &grss from ps_test end-select Presto! Each value on a separate line and no encoding or stringing. Roger L. Harris Programmer Analyst Sr Product Development Certegy Check Services Fidelity National Information Services, Inc 11601 N. Roosevelt Blvd St Petersburg, FL 33716 (727) 227-5850 direct (800) 215-6280 x75850 toll free (727) 570-4917 Fax |---------+----------------------------------------------------> | | "Dwight Schrute" | | | | | | Sent by: | | | sqr-users-bounces+roger.harris=certegy.co| | | m@sqrug.org | | | | | | | | | 11/15/2006 11:19 AM | | | Please respond to "This list is for | | | discussion about the SQR database | | | reporting language from Hyperion | | | Solutions." | |---------+----------------------------------------------------> >---------------------------------------------------------------------------------------------| | | | To: sqr-users@sqrug.org | | cc: | | Subject: RE: [sqr-users] Writing values in separate lines | >---------------------------------------------------------------------------------------------| Instead of using the "let" commands, try using "string". Building upon Bob's response, it would be: string &emp &tax &gss by $crlf into $var_to_write_as_rows write 10 from $var_to_write_as_rows This is more concise and doesn't require the extra variables. In addition, performance is increase since "let" is so slow. AND CLARK, DON'T BE SUCH AN ASS!! >From: "Bob Stone" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "This list is for discussion about the SQR database reporting >languagefrom Hyperion Solutions." >Subject: RE: [sqr-users] Writing values in separate lines >Date: Tue, 14 Nov 2006 17:10:12 -0600 > >lol. Suppose he wanted an actual response? > >Why not just pretend you're hitting the enter key between each variable? >I prefer to do that with a $cr variable set to the ascii of >'carraige-return' (note that if your file is Windows you probably need >to append 'line-feed' which is ascii 10). > > > ENCODE <13> INTO $CR > >(or) > > ENCODE <13> into $cr > ENCODE <10> into $lf > let $crlf = $cr || $lf > > >begin-select >emplid >tax >grss > let $emp = &emplid > let $tax = &tax > let $grss = &grss > > let $var_to_write_as_rows = $emp || $cr || $tax || $cr || grss || $cr > > write 10 from $var_to_write_as_rows >from ps_test >end-select > > > >-----Original Message----- >From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users- > >Why yes, it is.... > >peace, >clark 'the dragon' willis > >----Original Message Follows---- > >Hi, > Is it possible to write 4 column values as 4 separate rows to a text > >file in SQR? For eg. if i use > begin-select > emplid > tax > grss > write-file > !instead of writing 3 values as one row, i need to write >it as 3 different >rows, some thing like this > !emplid > !tax > !grss > from ps_test > >Thanks >RK > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Get today's hot entertainment gossip http://movies.msn.com/movies/hotgossip?icid=T002MSN03A07001 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------------ This message contains information from Certegy, Inc which may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e:mail postmaster@certegy.com. ============================================================================== _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Nov 15 13:28:06 2006 Date: Wed, 15 Nov 2006 13:24:37 -0500 From: "Jamie Harris" Subject: RE: [sqr-users] Writing values in separate lines Nothing at all. That's the right way. :) ----------------------------------------------------- James Harris Enterprise Application Analyst/Programmer Information Technology Division Frederick Community College ----------------------------------------------------- >>> 11/15/2006 12:41 PM >>> Ok, maybe I am overlooking something here, but what would be wrong with just doing it like this: begin-select emplid tax grss write #fileNum from &emplid write #fileNum from &tax write #fileNum from &grss from ps_test end-select Presto! Each value on a separate line and no encoding or stringing. Roger L. Harris Programmer Analyst Sr Product Development Certegy Check Services Fidelity National Information Services, Inc 11601 N. Roosevelt Blvd St Petersburg, FL 33716 (727) 227-5850 direct (800) 215-6280 x75850 toll free (727) 570-4917 Fax |---------+----------------------------------------------------> | | "Dwight Schrute" | | | | | | Sent by: | | | sqr-users-bounces+roger.harris=certegy.co| | | m@sqrug.org | | | | | | | | | 11/15/2006 11:19 AM | | | Please respond to "This list is for | | | discussion about the SQR database | | | reporting language from Hyperion | | | Solutions." | |---------+----------------------------------------------------> >---------------------------------------------------------------------------------------------| | | | To: sqr-users@sqrug.org | | cc: | | Subject: RE: [sqr-users] Writing values in separate lines | >---------------------------------------------------------------------------------------------| Instead of using the "let" commands, try using "string". Building upon Bob's response, it would be: string &emp &tax &gss by $crlf into $var_to_write_as_rows write 10 from $var_to_write_as_rows This is more concise and doesn't require the extra variables. In addition, performance is increase since "let" is so slow. AND CLARK, DON'T BE SUCH AN ASS!! >From: "Bob Stone" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "This list is for discussion about the SQR database reporting >languagefrom Hyperion Solutions." >Subject: RE: [sqr-users] Writing values in separate lines >Date: Tue, 14 Nov 2006 17:10:12 -0600 > >lol. Suppose he wanted an actual response? > >Why not just pretend you're hitting the enter key between each variable? >I prefer to do that with a $cr variable set to the ascii of >'carraige-return' (note that if your file is Windows you probably need >to append 'line-feed' which is ascii 10). > > > ENCODE <13> INTO $CR > >(or) > > ENCODE <13> into $cr > ENCODE <10> into $lf > let $crlf = $cr || $lf > > >begin-select >emplid >tax >grss > let $emp = &emplid > let $tax = &tax > let $grss = &grss > > let $var_to_write_as_rows = $emp || $cr || $tax || $cr || grss || $cr > > write 10 from $var_to_write_as_rows >from ps_test >end-select > > > >-----Original Message----- >From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users- > >Why yes, it is.... > >peace, >clark 'the dragon' willis > >----Original Message Follows---- > >Hi, > Is it possible to write 4 column values as 4 separate rows to a text > >file in SQR? For eg. if i use > begin-select > emplid > tax > grss > write-file > !instead of writing 3 values as one row, i need to write >it as 3 different >rows, some thing like this > !emplid > !tax > !grss > from ps_test > >Thanks >RK > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Get today's hot entertainment gossip http://movies.msn.com/movies/hotgossip?icid=T002MSN03A07001 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------------ This message contains information from Certegy, Inc which may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e:mail postmaster@certegy.com. ============================================================================== _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Nov 15 22:45:37 2006 Subject: RE: [sqr-users] Can't move all files from folder Date: Wed, 15 Nov 2006 22:42:45 -0500 From: "Karen Leary" I haven't tried Hyperion yet. Do you know the best way of contacting them and will they even respond if I don't have a "support user id"? -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu]=20 Sent: Tuesday, November 14, 2006 10:20 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Can't move all files from folder I've tried some other solutions including encoding the asterisks and double quoting the command. Nothing works. The strange thing is an error is returned even though one file is moved each time. I think there is something goofy about how the OS is communicating with SQR. I have also tried rename which doesn't seem to work at all. Have you tried communicating with Hyperion, Karen? Richard Knapp AITS - Data Warehouse Group University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu =20 -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Karen Leary Sent: Tuesday, November 14, 2006 9:01 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Can't move all files from folder Thank you for your replies. I am on Windows NT. I am reading one of the files and my program is not creating any of them. -----Original Message----- From: Bob Stone [mailto:bstone@fastenal.com]=20 Sent: Monday, November 13, 2006 4:05 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] Can't move all files from folder would it help to ENCODE the * character as its ASCII key? Perhaps something in the translation to SYSTEM code sees * as a special character? Could also be the \ character that thinks it means something else?=20=20 Seeing as she says DOS prompt and uses MOVE instead of CP, I assume we're in a Windows environment? I don't do much in the way of windows scripting, so I'm not familiar with a lot of commands. But I would check into whether or not there's a character in the string that SYSTEM would translate to do something other than just represent the character. While I see no CR in the code below, maybe there's a CRLF issue? -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Monday, November 13, 2006 2:00 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] Can't move all files from folder I tried this and it will only move one file at a time and generates a status of 1 each time. This is a syntax error. I tried all sorts of variations on wildcarding but could find nothing that worked for all the files and nothing in the documentation that indicates a different syntax except leaving the final slash off but even that doesn't affect the desired movement. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Bob Stone Sent: Monday, November 13, 2006 1:09 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] Can't move all files from folder are they files that your program created? And if so, are they closed? You can't move a file you're still writing to because the system shows SQRUSER as having control of a open file. Also note that you can't move the log file or the .lis file automatically created, because those aren't closed until the program finishes. Maybe there's actually a way to do that, but if I've had to do something where I want to delete the file (or move it, in your case) then I always open a file for writing and close it before I have to do anything with it. What system is this on?=20=20 -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of Karen Leary Sent: Monday, November 13, 2006 12:54 PM To: sqr-users@sqrug.org Subject: [sqr-users] Can't move all files from folder I am trying to move some files from one folder to another when finished processing. I am using the following syntax which only moves one of the files instead of all of them - any ideas why??? Let $move =3D getenv('COMSPEC') || ' /C move ' || $ArchivePath || '*.* ' || $ArchivePath || 'archive\' call system using $move #status wait Each time I run the program it will move one file. If I run the same command from a dos prompt it does move all the files. Thank you, Karen _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Nov 16 09:29:18 2006 Date: Thu, 16 Nov 2006 09:27:02 -0500 From: "White . Denise" Subject: [sqr-users] RE: LIS to SPF format Well, that depends, Clark. If the report is fairly simple, then, yes, the .lis file is quite readable in an editor (although not printable) - there would just be one line of PCL at the beginning and the rest will be straight text. However, if the report has anything fancy, like bold or underline, the .lis file is quite UNreadable. But if the former, I do prefer .lis and an editor. Denise M. White EBS Programmer/Analyst III Dynamics Research Corporation ------------------------------ Message: 6 Date: Mon, 13 Nov 2006 13:34:22 -0600 From: "the dragon" Subject: RE: [sqr-users] LIS to SPF format To: sqr-users@sqrug.org Message-ID: Content-Type: text/plain; format=3Dflowed don't think so. I guess my question is, why do the l-users think they need to view it in spf? They can open an .lis file in any text editor. They need to think inside the box. peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) It is impossible to defeat an ignorant man in argument. William G. McAdoo ----Original Message Follows---- Hi, We ran a one time Sqr to update some tables in database. The one time Sqr generated a LIS file which holds the information about the updated rows. But Users need the output in SPF format. The SQR cannot be reran to generate the report again. Is it a way to transfer the existing LIS file to SPF. Thanks, Vijayakumar.J _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Nov 16 09:32:56 2006 Date: Thu, 16 Nov 2006 09:30:09 -0500 From: "White . Denise" Subject: [sqr-users] RE: Writing values in separate lines LOL - to me, that looks like overkill. I would just write them as three separate lines. Very straightforward. Denise M. White EBS Programmer/Analyst III Dynamics Research Corporation ------------------------------ Message: 12 Date: Tue, 14 Nov 2006 17:10:12 -0600 From: "Bob Stone" Subject: RE: [sqr-users] Writing values in separate lines To: "This list is for discussion about the SQR database reporting language from Hyperion Solutions." Message-ID: Content-Type: text/plain; charset=3D"us-ascii" lol. Suppose he wanted an actual response? Why not just pretend you're hitting the enter key between each variable? I prefer to do that with a $cr variable set to the ascii of 'carraige-return' (note that if your file is Windows you probably need to append 'line-feed' which is ascii 10). ENCODE <13> INTO $CR (or) =20 ENCODE <13> into $cr ENCODE <10> into $lf let $crlf =3D $cr || $lf begin-select emplid tax grss let $emp =3D &emplid let $tax =3D &tax let $grss =3D &grss let $var_to_write_as_rows =3D $emp || $cr || $tax || $cr || grss || $cr write 10 from $var_to_write_as_rows from ps_test end-select -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users- =20 Why yes, it is.... peace, clark 'the dragon' willis ----Original Message Follows---- Hi, Is it possible to write 4 column values as 4 separate rows to a text file in SQR? For eg. if i use begin-select emplid tax grss write-file !instead of writing 3 values as one row, i need to write it as 3 different=20 rows, some thing like this !emplid !tax !grss from ps_test Thanks RK _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Nov 16 10:05:32 2006 Subject: RE: [sqr-users] Can't move all files from folder Date: Thu, 16 Nov 2006 09:03:15 -0600 From: "Knapp, Richard" No. I would google them and if, by chance you are working in a peoplesoft environment, give them a shout. I would be grateful to know what you discover. Richard Knapp AITS - Data Warehouse Group University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu =20 -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Karen Leary Sent: Wednesday, November 15, 2006 9:43 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Can't move all files from folder I haven't tried Hyperion yet. Do you know the best way of contacting them and will they even respond if I don't have a "support user id"? -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu]=20 Sent: Tuesday, November 14, 2006 10:20 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Can't move all files from folder I've tried some other solutions including encoding the asterisks and double quoting the command. Nothing works. The strange thing is an error is returned even though one file is moved each time. I think there is something goofy about how the OS is communicating with SQR. I have also tried rename which doesn't seem to work at all. Have you tried communicating with Hyperion, Karen? Richard Knapp AITS - Data Warehouse Group University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu =20 -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Karen Leary Sent: Tuesday, November 14, 2006 9:01 AM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Can't move all files from folder Thank you for your replies. I am on Windows NT. I am reading one of the files and my program is not creating any of them. -----Original Message----- From: Bob Stone [mailto:bstone@fastenal.com]=20 Sent: Monday, November 13, 2006 4:05 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] Can't move all files from folder would it help to ENCODE the * character as its ASCII key? Perhaps something in the translation to SYSTEM code sees * as a special character? Could also be the \ character that thinks it means something else?=20=20 Seeing as she says DOS prompt and uses MOVE instead of CP, I assume we're in a Windows environment? I don't do much in the way of windows scripting, so I'm not familiar with a lot of commands. But I would check into whether or not there's a character in the string that SYSTEM would translate to do something other than just represent the character. While I see no CR in the code below, maybe there's a CRLF issue? -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Monday, November 13, 2006 2:00 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] Can't move all files from folder I tried this and it will only move one file at a time and generates a status of 1 each time. This is a syntax error. I tried all sorts of variations on wildcarding but could find nothing that worked for all the files and nothing in the documentation that indicates a different syntax except leaving the final slash off but even that doesn't affect the desired movement. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Bob Stone Sent: Monday, November 13, 2006 1:09 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] Can't move all files from folder are they files that your program created? And if so, are they closed? You can't move a file you're still writing to because the system shows SQRUSER as having control of a open file. Also note that you can't move the log file or the .lis file automatically created, because those aren't closed until the program finishes. Maybe there's actually a way to do that, but if I've had to do something where I want to delete the file (or move it, in your case) then I always open a file for writing and close it before I have to do anything with it. What system is this on?=20=20 -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of Karen Leary Sent: Monday, November 13, 2006 12:54 PM To: sqr-users@sqrug.org Subject: [sqr-users] Can't move all files from folder I am trying to move some files from one folder to another when finished processing. I am using the following syntax which only moves one of the files instead of all of them - any ideas why??? Let $move =3D getenv('COMSPEC') || ' /C move ' || $ArchivePath || '*.* ' || $ArchivePath || 'archive\' call system using $move #status wait Each time I run the program it will move one file. If I run the same command from a dos prompt it does move all the files. Thank you, Karen _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Nov 16 11:35:18 2006 Date: Thu, 16 Nov 2006 11:32:14 -0500 From: "George Jansen" Subject: RE: [sqr-users] Can't move all files from folder What if you were to write a batch file to execute, then remove it? If you know exactly the files to move, you can write them in one at a time; if not you can see what the wild card will do for you. >>> "Karen Leary" 11/14/2006 10:01 AM >>> Thank you for your replies. I am on Windows NT. I am reading one of the files and my program is not creating any of them. -----Original Message----- From: Bob Stone [mailto:bstone@fastenal.com] Sent: Monday, November 13, 2006 4:05 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] Can't move all files from folder would it help to ENCODE the * character as its ASCII key? Perhaps something in the translation to SYSTEM code sees * as a special character? Could also be the \ character that thinks it means something else? Seeing as she says DOS prompt and uses MOVE instead of CP, I assume we're in a Windows environment? I don't do much in the way of windows scripting, so I'm not familiar with a lot of commands. But I would check into whether or not there's a character in the string that SYSTEM would translate to do something other than just represent the character. While I see no CR in the code below, maybe there's a CRLF issue? -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Monday, November 13, 2006 2:00 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] Can't move all files from folder I tried this and it will only move one file at a time and generates a status of 1 each time. This is a syntax error. I tried all sorts of variations on wildcarding but could find nothing that worked for all the files and nothing in the documentation that indicates a different syntax except leaving the final slash off but even that doesn't affect the desired movement. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Bob Stone Sent: Monday, November 13, 2006 1:09 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] Can't move all files from folder are they files that your program created? And if so, are they closed? You can't move a file you're still writing to because the system shows SQRUSER as having control of a open file. Also note that you can't move the log file or the .lis file automatically created, because those aren't closed until the program finishes. Maybe there's actually a way to do that, but if I've had to do something where I want to delete the file (or move it, in your case) then I always open a file for writing and close it before I have to do anything with it. What system is this on? -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org] On Behalf Of Karen Leary Sent: Monday, November 13, 2006 12:54 PM To: sqr-users@sqrug.org Subject: [sqr-users] Can't move all files from folder I am trying to move some files from one folder to another when finished processing. I am using the following syntax which only moves one of the files instead of all of them - any ideas why??? Let $move = getenv('COMSPEC') || ' /C move ' || $ArchivePath || '*.* ' || $ArchivePath || 'archive\' call system using $move #status wait Each time I run the program it will move one file. If I run the same command from a dos prompt it does move all the files. Thank you, Karen _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Nov 16 12:46:16 2006 From: "Alexander, Steven" Subject: RE: [sqr-users] Unix Sort... Date: Thu, 16 Nov 2006 09:43:27 -0800 Folks, I've asked some tough questions in the past and got no responses. Ram asked a question that seemed too easy and he got bashed. I don't think this forum has a rule setting a strict range of questions that are permissable. If you don't want to help someone, why go to the effort of attacking him? -----Original Message----- From: sqr-users-bounces+steven.alexander=sanjoseca.gov@sqrug.org [mailto:sqr-users-bounces+steven.alexander=sanjoseca.gov@sqrug.org] On Behalf Of Sam Spritzer Sent: Friday, November 10, 2006 12:16 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] Unix Sort... Send me some money and I'll send you the code. I'll even throw in a bridge or two! ************************************************************ "In the beginning, there was something...which exploded yet, they find nothing." ----- Original Message ---- From: "Vaidyanathan, Ramakrishnan (GE, Corporate, consultant)" To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Sent: Friday, November 10, 2006 10:38:42 AM Subject: RE: [sqr-users] Unix Sort... poda goyale -----Original Message----- From: sqr-users-bounces+ramakrishnan.vaidyanathan=ge.com@sqrug.org [mailto:sqr-users-bounces+ramakrishnan.vaidyanathan=ge.com@sqrug.org]On Behalf Of Bob Stone Sent: Friday, November 10, 2006 10:34 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] Unix Sort... So if I have this analogy right, the pole is "google and SQRUG archives" and the hook and line is 'CALL SYSTEM USING ***' ...what was the worm again? maybe the MAN pages on Unix? Put them all together and now Ram can fish? funny analogy. I agree with Clark and Richard. Basically you're saying "well I've tried nothing and I'm all out of ideas." Do some research with Google (great tool), the archives, some Unix documentation. Most of your questions will probably answer themselves within a few hours. THEN if you get stuck or there's some related question once you get going ("what way is faster, has anybody done it this way, etc") then ask the group. Everyone joined this group to get help/tips on serious or tough questions, not to do someone else's work for them. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org] On Behalf Of the dragon Sent: Friday, November 10, 2006 9:22 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Unix Sort... search the sqrug archives for call system.... use the Unix man function for sort.... check the sqr language reference manual for call system using.... There, I've taught you how to fish. :-D peace, clark 'the dragon' willis ----Original Message Follows---- well..thats what iam also looking for... -----Original Message----- Better you should learn how to fish than merely get a fish, no? Do you have a unix command that does the sort you want? This is where I would start. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- Hi, I want to sort a file using the unix sort command. I need to sort a specific field alone. After sorting I need to write the sorted output to another file. It would be gr8 if some one can give me a sample code in sqr to do this. Thanks in Advance Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Nov 16 12:51:41 2006 Subject: RE: [sqr-users] Unix Sort... Date: Thu, 16 Nov 2006 11:49:24 -0600 From: "Knapp, Richard" RTFM (Ancient and Accepted Wisdom). Richard Knapp AITS - Data Warehouse Group University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu =20 -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Alexander, Steven Sent: Thursday, November 16, 2006 11:43 AM To: 'This list is for discussion about the SQR database reportinglanguagefrom Hyperion Solutions.' Subject: RE: [sqr-users] Unix Sort... Folks, I've asked some tough questions in the past and got no responses. Ram asked a question that seemed too easy and he got bashed. I don't think this forum has a rule setting a strict range of questions that are permissable. If you don't want to help someone, why go to the effort of attacking him? -----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 Sam Spritzer Sent: Friday, November 10, 2006 12:16 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] Unix Sort... Send me some money and I'll send you the code. I'll even throw in a bridge or two! =20 ************************************************************ "In the beginning, there was something...which exploded yet, they find nothing." ----- Original Message ---- From: "Vaidyanathan, Ramakrishnan (GE, Corporate, consultant)" To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Sent: Friday, November 10, 2006 10:38:42 AM Subject: RE: [sqr-users] Unix Sort... poda goyale -----Original Message----- From: sqr-users-bounces+ramakrishnan.vaidyanathan=3Dge.com@sqrug.org [mailto:sqr-users-bounces+ramakrishnan.vaidyanathan=3Dge.com@sqrug.org]On Behalf Of Bob Stone Sent: Friday, November 10, 2006 10:34 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] Unix Sort... So if I have this analogy right, the pole is "google and SQRUG archives" and the hook and line is 'CALL SYSTEM USING ***' ...what was the worm again? maybe the MAN pages on Unix? Put them all together and now Ram can fish? funny analogy. I agree with Clark and Richard. Basically you're saying "well I've tried nothing and I'm all out of ideas." Do some research with Google (great tool), the archives, some Unix documentation. Most of your questions will probably answer themselves within a few hours. THEN if you get stuck or there's some related question once you get going ("what way is faster, has anybody done it this way, etc") then ask the group.=20= =20 Everyone joined this group to get help/tips on serious or tough questions, not to do someone else's work for them. -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of the dragon Sent: Friday, November 10, 2006 9:22 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Unix Sort... search the sqrug archives for call system.... use the Unix man function=20 for sort.... check the sqr language reference manual for call system=20 using.... There, I've taught you how to fish. :-D peace, clark 'the dragon' willis ----Original Message Follows---- well..thats what iam also looking for... -----Original Message----- Better you should learn how to fish than merely get a fish, no? Do you have a unix command that does the sort you want? This is where I would start. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- Hi, I want to sort a file using the unix sort command. I need to sort a specific field alone. After sorting I need to write the sorted output to another file. It would be gr8 if some one can give me a sample code in sqr to do this. Thanks in Advance Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Nov 17 06:24:54 2006 From: "Steve Cavill" Subject: RE: AW: [sqr-users] printing groupheader and details in one horizontal band Date: Fri, 17 Nov 2006 22:19:19 +1100 Graphic mode simply refers to the graphical builder setting the print grid = size very fine. E.g. lots of very thin lines instead of wide lines, one per print line. #current-line is a reserved variable which are ALWAYS global. If you have local procedures (but the code below doesn't) then you would re= fer to it as #_current-line. Did you look at next-listing? That would be much simpler than the logic be= low. When you issue a next-listing command, the print position advances one line= and sets the current-line back to 1. So you can print each group always starting on line 1. It effectively break= s the page up into a series of mini pages. You would print both the header and detail starting on line 1, then put the= next-listing in an after procedure. Steve.=20 -----Original Message----- From: sqr-users-bounces+steve.cavill=3Dinfoclarity.com.au@sqrug.org [mailto:sqr-users-bounces+steve.cavill=3Dinfoclarity.com.au@sqrug.org] On B= ehalf Of Giepz, Marius Sent: Wednesday, 15 November 2006 1:17 AM To: 'This list is for discussion about the SQR database reporting languagef= rom Hyperion Solutions.' Subject: AW: AW: [sqr-users] printing groupheader and details in one horizo= ntal band would the #current_line thing also work in graphic mode? i have to position the lines and boxes pixel accurate so i use this mode. the way i tried it so far seem to be wrong. i am not really familiar with t= he namespaces of variables in sqr yet. i mean using global and local variables. when i use on-break for the grouping, then the groupheaders are printed in = a subroutine i tried it like this: Begin-Procedure Master_Query Begin-Select table.head2 &head2 table.head3 &head3 !my grouping criterion (it shall not be printed)=09 table.head1 &val1 () On-Break Set=3D1 Level=3D2 Print=3DNever Before=3DMaster_Query_BeforeProc !print the details table.val1 &val1 (#starting_point,200) table.val2 &val2 (+10, 200) if #ending_point > #current-line move #ending_point to #starting_point else move #current-line to #starting_point end-if From ........... End-Select =09=09 End-Procedure=09 !print the groupheader Begin-Procedure Master_Query_BeforeProc move #current-line to #starting_point Print &head2 (#starting_point,33)=20 Print &head3 (+10,89)=20 move #current-line to #ending_point End-Procedure There must be some big fault in my understanding of the sequence. do those point variables have to be global? > -----Urspr=FCngliche Nachricht----- > Von: Dwight Schrute [mailto:schrute.dwight@hotmail.com] > Gesendet: Freitag, 10. November 2006 17:20 > An: sqr-users@sqrug.org > Betreff: RE: AW: [sqr-users] printing groupheader and details in one > horizontal band >=20 >=20 > Allegedly, Hyperion is attempting to upgrade the Reporting=20 > Studio to be more=20 > powerful. Until that happens (likely never), you can use=20 > Ultra-Edit with=20 > the wordfile from Ray Ontko's site=20 > (http://www.ontko.com/sqr/sqr_wordfile.txt). It will help immensely. >=20 > Suggestion #1 - For printing your header, you can store the=20 > value in the=20 > reserved variable "#current-line" and use that as a=20 > coordinate. Such as: >=20 > move #current-line to #starting_point ! line number to=20 > start printing > print 'header1_field1' ( #starting_point, 1 ) > print 'header1_field2' ( +1, 1 ) > print 'header1_field3' ( +1, 1 ) > move #current-line to #ending_point ! line number at end of printing >=20 > print 'detail1' ( #starting_point, 10 ) ! return to=20 > starting line number > print 'detail2' ( +1, 10 ) > print 'detail3' ( +1, 10 ) > print 'detail4' ( +1, 10) >=20 > ! determine which line number is larger to start printing after that > if #ending_point > #current-line > move #ending_point to #starting_point > else > move #current-line to #starting_point > end-if >=20 > add 2 to #starting_point ! add an additional line in between >=20 > print 'header2_field1' ( #starting_point, 1 ) > ... > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Nov 17 06:29:15 2006 From: "Steve Cavill" Subject: RE: [sqr-users] Call System Using command Date: Fri, 17 Nov 2006 22:23:21 +1100 So it's back to the original problem. You need to get the command to work on your server where the sqr runs. Which is not related to SQR Are you trying to run a .bat file on server A from server B? That can't be done with windows. You would need to use rexec or similar utility to runa script on a remote machine. Steve. -----Original Message----- From: sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org [mailto:sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org] On Behalf Of Anu Bagde Sent: Wednesday, 15 November 2006 1:14 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Call System Using command Hi Steve, Actually in .bat file there is a cd command to change the directory, so that the download data will go in that directory. Now on my computer that directory is mapped. When I changed the cd command from 'cd download-all ' to say 'chdir /u c:/download-all' then the script works from a command prompt. But when SQR runs on server, there is no mapping of this drive on server. In that case I cannot use the same 'chdir' command to change the directory. I cannot use 'net use' command to map the directory on the server, as I do not and cannot have the userid and password for the server. I am not sure what I can use or even I can do this. Thanks for all your help, Anu >From: "Steve Cavill" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "'This list is for discussion about the SQR database >reportinglanguagefrom Hyperion Solutions.'" >Subject: RE: [sqr-users] Call System Using command >Date: Fri, 10 Nov 2006 12:57:27 +1100 > >Does the command work from a command prompt? That's the first step. >Once you get it working from a comamnd prompt then calling it from sqr >should be easy. >Steve. > >-----Original Message----- >From: sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org >[mailto:sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org] On >Behalf Of Anu Bagde >Sent: Saturday, 4 November 2006 6:44 AM >To: sqr-users@sqrug.org >Subject: [sqr-users] Call System Using command > >Hello all, >I am trying to use call system to execute a .dat file located on a >different server than where the SQR's are located. Operating system on >both the servers is Windows NT. I am initializing the variable named >$script_file with the actual fine name with complete path. Then I use >the following code to actually execute the .dat file: > >let $command = getenv('COMSPEC')||' /c "' || $script_file || '"' >call system using $command #status WAIT show 'Running command: ' >$command ' Return Status: ' #status > >My return status is 1. Can anyone help me understand this and solve >this problem? If this is not possible can any one help me find another >way to execute the .dat file, every day at 7pm? > >Thanks in advance, >Anu > >_________________________________________________________________ >One and only Ash. Find out all about her. Only on MSN Search >http://server1.msn.co.in/profile/aishwarya.asp > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Tried the new MSN Messenger? It's cool! Download now. http://messenger.msn.com/Download/Default.aspx?mkt=en-in _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Nov 17 07:11:59 2006 Date: Fri, 17 Nov 2006 17:36:17 +0530 From: Sanjay Sambhe Subject: RE: [sqr-users] Unix Sort... I am un-subscribing this forum becoz of very rude response give to this question by some people. -----Original Message----- From: sqr-users-bounces+ssambhe=cisco.com@sqrug.org [mailto:sqr-users-bounces+ssambhe=cisco.com@sqrug.org] On Behalf Of Alexander, Steven Sent: Thursday, November 16, 2006 11:13 PM To: 'This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions.' Subject: RE: [sqr-users] Unix Sort... Folks, I've asked some tough questions in the past and got no responses. Ram asked a question that seemed too easy and he got bashed. I don't think this forum has a rule setting a strict range of questions that are permissable. If you don't want to help someone, why go to the effort of attacking him? -----Original Message----- From: sqr-users-bounces+steven.alexander=sanjoseca.gov@sqrug.org [mailto:sqr-users-bounces+steven.alexander=sanjoseca.gov@sqrug.org] On Behalf Of Sam Spritzer Sent: Friday, November 10, 2006 12:16 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] Unix Sort... Send me some money and I'll send you the code. I'll even throw in a bridge or two! ************************************************************ "In the beginning, there was something...which exploded yet, they find nothing." ----- Original Message ---- From: "Vaidyanathan, Ramakrishnan (GE, Corporate, consultant)" To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Sent: Friday, November 10, 2006 10:38:42 AM Subject: RE: [sqr-users] Unix Sort... poda goyale -----Original Message----- From: sqr-users-bounces+ramakrishnan.vaidyanathan=ge.com@sqrug.org [mailto:sqr-users-bounces+ramakrishnan.vaidyanathan=ge.com@sqrug.org]On Behalf Of Bob Stone Sent: Friday, November 10, 2006 10:34 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] Unix Sort... So if I have this analogy right, the pole is "google and SQRUG archives" and the hook and line is 'CALL SYSTEM USING ***' ...what was the worm again? maybe the MAN pages on Unix? Put them all together and now Ram can fish? funny analogy. I agree with Clark and Richard. Basically you're saying "well I've tried nothing and I'm all out of ideas." Do some research with Google (great tool), the archives, some Unix documentation. Most of your questions will probably answer themselves within a few hours. THEN if you get stuck or there's some related question once you get going ("what way is faster, has anybody done it this way, etc") then ask the group. Everyone joined this group to get help/tips on serious or tough questions, not to do someone else's work for them. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org] On Behalf Of the dragon Sent: Friday, November 10, 2006 9:22 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Unix Sort... search the sqrug archives for call system.... use the Unix man function for sort.... check the sqr language reference manual for call system using.... There, I've taught you how to fish. :-D peace, clark 'the dragon' willis ----Original Message Follows---- well..thats what iam also looking for... -----Original Message----- Better you should learn how to fish than merely get a fish, no? Do you have a unix command that does the sort you want? This is where I would start. Richard Knapp AITS - Reporting University of Missouri Locust Street Building Columbia, MO 65201 573-882-8856 knappr@umsystem.edu -----Original Message----- Hi, I want to sort a file using the unix sort command. I need to sort a specific field alone. After sorting I need to write the sorted output to another file. It would be gr8 if some one can give me a sample code in sqr to do this. Thanks in Advance Ram _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/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 Nov 17 08:09:40 2006 Date: Fri, 17 Nov 2006 18:36:18 +0530 From: "Jagadish Mucherla" Subject: Re: [sqr-users] Unix Sort... Hi I need a sqr code to generate mail to the recipients can any one help me? Thanks jagadish jagadishmucherla@gmail.com On 11/16/06, Alexander, Steven wrote: > > Folks, I've asked some tough questions in the past and got no responses. > Ram asked a question that seemed too easy and he got bashed. I don't > think > this forum has a rule setting a strict range of questions that are > permissable. If you don't want to help someone, why go to the effort of > attacking him? > > > > -----Original Message----- > From: sqr-users-bounces+steven.alexander=sanjoseca.gov@sqrug.org > [mailto:sqr-users-bounces+steven.alexander=sanjoseca.gov@sqrug.org] On > Behalf Of Sam Spritzer > Sent: Friday, November 10, 2006 12:16 PM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: Re: [sqr-users] Unix Sort... > > Send me some money and I'll send you the code. I'll even throw in a > bridge > or two! > > ************************************************************ > "In the beginning, there was something...which exploded yet, they find > nothing." > > > > ----- Original Message ---- > From: "Vaidyanathan, Ramakrishnan (GE, Corporate, consultant)" > > To: This list is for discussion about the SQR database reportinglanguage > from Hyperion Solutions. > Sent: Friday, November 10, 2006 10:38:42 AM > Subject: RE: [sqr-users] Unix Sort... > > > poda goyale > > -----Original Message----- > From: sqr-users-bounces+ramakrishnan.vaidyanathan=ge.com@sqrug.org > [mailto:sqr-users-bounces+ramakrishnan.vaidyanathan=ge.com@sqrug.org]On > Behalf Of Bob Stone > Sent: Friday, November 10, 2006 10:34 AM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: RE: [sqr-users] Unix Sort... > > > So if I have this analogy right, the pole is "google and SQRUG archives" > and the hook and line is 'CALL SYSTEM USING ***' ...what was the worm > again? maybe the MAN pages on Unix? > > Put them all together and now Ram can fish? funny analogy. > > I agree with Clark and Richard. Basically you're saying "well I've > tried nothing and I'm all out of ideas." Do some research with Google > (great tool), the archives, some Unix documentation. Most of your > questions will probably answer themselves within a few hours. THEN if > you get stuck or there's some related question once you get going ("what > way is faster, has anybody done it this way, etc") then ask the group. > > Everyone joined this group to get help/tips on serious or tough > questions, not to do someone else's work for them. > > > -----Original Message----- > From: sqr-users-bounces+bstone=fastenal.com@sqrug.org > [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org] On Behalf Of > the dragon > Sent: Friday, November 10, 2006 9:22 AM > To: sqr-users@sqrug.org > Subject: RE: [sqr-users] Unix Sort... > > search the sqrug archives for call system.... use the Unix man > function > for sort.... check the sqr language reference manual for call system > using.... > > There, I've taught you how to fish. :-D > > peace, > clark 'the dragon' willis > > > ----Original Message Follows---- > > well..thats what iam also looking for... > > -----Original Message----- > > Better you should learn how to fish than merely get a fish, no? > > Do you have a unix command that does the sort you want? This is where I > would start. > > Richard Knapp > AITS - Reporting > University of Missouri > Locust Street Building > Columbia, MO 65201 > 573-882-8856 > knappr@umsystem.edu > > > -----Original Message----- > > Hi, > > I want to sort a file using the unix sort command. I need to sort a > specific field alone. After sorting I need to write the sorted output to > another file. > It would be gr8 if some one can give me a sample code in sqr to do this. > > Thanks in Advance > Ram > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/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 Nov 17 08:48:29 2006 Subject: RE: [sqr-users] Unix Sort... Date: Fri, 17 Nov 2006 08:44:33 -0500 From: "Peter Burton" Jagadish, This is no SQR logic that will fit all conditions. You need to=20 1- Figure out what mail software you have on your machine. 2- Determine if it supports a command line interface to send mail. 3- What is the construct of the command line interface.=20 After that is becomes easy. If the vcommand line interface it simple then you create it an SQR $Variable and then use the "CALL SYSTEM" command or the LET System() function to process it. If the command ine interface is complex then you need to first write a small batch file (use OPEN/WRITE/CLOSE commands; procress it using "CALL SYSTEM" command or the LET System() function; and then delete the batch file with the LET Delete() function. Peter -----Original Message----- From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org] On Behalf Of Jagadish Mucherla Sent: Friday, November 17, 2006 8:06 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] Unix Sort... Hi I need a sqr code to generate mail to the recipients can any one help me? Thanks jagadish jagadishmucherla@gmail.com On 11/16/06, Alexander, Steven wrote: > > Folks, I've asked some tough questions in the past and got no responses. > Ram asked a question that seemed too easy and he got bashed. I don't > think > this forum has a rule setting a strict range of questions that are > permissable. If you don't want to help someone, why go to the effort of > attacking him? > > > > -----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 Sam Spritzer > Sent: Friday, November 10, 2006 12:16 PM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: Re: [sqr-users] Unix Sort... > > Send me some money and I'll send you the code. I'll even throw in a > bridge > or two! > > ************************************************************ > "In the beginning, there was something...which exploded yet, they find > nothing." > > > > ----- Original Message ---- > From: "Vaidyanathan, Ramakrishnan (GE, Corporate, consultant)" > > To: This list is for discussion about the SQR database reportinglanguage > from Hyperion Solutions. > Sent: Friday, November 10, 2006 10:38:42 AM > Subject: RE: [sqr-users] Unix Sort... > > > poda goyale > > -----Original Message----- > From: sqr-users-bounces+ramakrishnan.vaidyanathan=3Dge.com@sqrug.org > [mailto:sqr-users-bounces+ramakrishnan.vaidyanathan=3Dge.com@sqrug.org]On > Behalf Of Bob Stone > Sent: Friday, November 10, 2006 10:34 AM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: RE: [sqr-users] Unix Sort... > > > So if I have this analogy right, the pole is "google and SQRUG archives" > and the hook and line is 'CALL SYSTEM USING ***' ...what was the worm > again? maybe the MAN pages on Unix? > > Put them all together and now Ram can fish? funny analogy. > > I agree with Clark and Richard. Basically you're saying "well I've > tried nothing and I'm all out of ideas." Do some research with Google > (great tool), the archives, some Unix documentation. Most of your > questions will probably answer themselves within a few hours. THEN if > you get stuck or there's some related question once you get going ("what > way is faster, has anybody done it this way, etc") then ask the group. > > Everyone joined this group to get help/tips on serious or tough > questions, not to do someone else's work for them. > > > -----Original Message----- > From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org > [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of > the dragon > Sent: Friday, November 10, 2006 9:22 AM > To: sqr-users@sqrug.org > Subject: RE: [sqr-users] Unix Sort... > > search the sqrug archives for call system.... use the Unix man > function > for sort.... check the sqr language reference manual for call system > using.... > > There, I've taught you how to fish. :-D > > peace, > clark 'the dragon' willis > > > ----Original Message Follows---- > > well..thats what iam also looking for... > > -----Original Message----- > > Better you should learn how to fish than merely get a fish, no? > > Do you have a unix command that does the sort you want? This is where I > would start. > > Richard Knapp > AITS - Reporting > University of Missouri > Locust Street Building > Columbia, MO 65201 > 573-882-8856 > knappr@umsystem.edu > > > -----Original Message----- > > Hi, > > I want to sort a file using the unix sort command. I need to sort a > specific field alone. After sorting I need to write the sorted output to > another file. > It would be gr8 if some one can give me a sample code in sqr to do this. > > Thanks in Advance > Ram > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users If you have received this e-mail in error, please delete it and notify the = sender as soon as possible. The contents of this e-mail may be confidential= and the unauthorized use, copying, or dissemination of it and any attachme= nts to it, is prohibited. Internet communications are not secure and Hyperi= on does not, therefore, accept legal responsibility for the contents of thi= s message nor for any damage caused by viruses. The views expressed here do= not necessarily represent those of Hyperion. For more information about Hy= perion, please visit our Web site at: www.hyperion.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Nov 17 08:51:46 2006 Date: Fri, 17 Nov 2006 05:45:55 -0800 (PST) From: Sam Spritzer Subject: Re: [sqr-users] Unix Sort... Jagadish and everyone else, "I need a sqr code to generate mail to the recipients can any one help me?" Now this is the very same type of question that causes people to get bashed= . Two reasons...I am sure there is something in the forums that would answ= er this question. Why am I sure? Because I wrote an SQR similar to this q= uestion with the help of the forum. And I did not ask the question in the = forum....I simply searched and researched! And there were plenty of other = resources such as the delivered SQRs that come with the Peoplesoft system t= hat had similar pieces of code where I could pierce together into a workabl= e solution.=20=20 Having said that plus there are plenty of publications available, I have si= mply conclude that the person who asks such a question is not very smart or= is too darn lazy to do it themselves that it invites the bashing. That is= the nature of the beast...after all, this is America where freedom of spee= ch is cherished. Jagadish...try doing some researching or googling before asking a rather el= ementary and vague question. Thank you. Sam =20 ************************************************************ "In the beginning, there was something...which exploded yet, they find noth= ing." ----- Original Message ---- From: Jagadish Mucherla To: This list is for discussion about the SQR database reporting language f= rom Hyperion Solutions. Sent: Friday, November 17, 2006 8:06:18 AM Subject: Re: [sqr-users] Unix Sort... Hi I need a sqr code to generate mail to the recipients can any one help me? Thanks jagadish jagadishmucherla@gmail.com On 11/16/06, Alexander, Steven wrote: > > Folks, I've asked some tough questions in the past and got no responses. > Ram asked a question that seemed too easy and he got bashed. I don't > think > this forum has a rule setting a strict range of questions that are > permissable. If you don't want to help someone, why go to the effort of > attacking him? > > > > -----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 Sam Spritzer > Sent: Friday, November 10, 2006 12:16 PM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: Re: [sqr-users] Unix Sort... > > Send me some money and I'll send you the code. I'll even throw in a > bridge > or two! > > ************************************************************ > "In the beginning, there was something...which exploded yet, they find > nothing." > > > > ----- Original Message ---- > From: "Vaidyanathan, Ramakrishnan (GE, Corporate, consultant)" > > To: This list is for discussion about the SQR database reportinglanguage > from Hyperion Solutions. > Sent: Friday, November 10, 2006 10:38:42 AM > Subject: RE: [sqr-users] Unix Sort... > > > poda goyale > > -----Original Message----- > From: sqr-users-bounces+ramakrishnan.vaidyanathan=3Dge.com@sqrug.org > [mailto:sqr-users-bounces+ramakrishnan.vaidyanathan=3Dge.com@sqrug.org]On > Behalf Of Bob Stone > Sent: Friday, November 10, 2006 10:34 AM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: RE: [sqr-users] Unix Sort... > > > So if I have this analogy right, the pole is "google and SQRUG archives" > and the hook and line is 'CALL SYSTEM USING ***' ...what was the worm > again? maybe the MAN pages on Unix? > > Put them all together and now Ram can fish? funny analogy. > > I agree with Clark and Richard. Basically you're saying "well I've > tried nothing and I'm all out of ideas." Do some research with Google > (great tool), the archives, some Unix documentation. Most of your > questions will probably answer themselves within a few hours. THEN if > you get stuck or there's some related question once you get going ("what > way is faster, has anybody done it this way, etc") then ask the group. > > Everyone joined this group to get help/tips on serious or tough > questions, not to do someone else's work for them. > > > -----Original Message----- > From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org > [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of > the dragon > Sent: Friday, November 10, 2006 9:22 AM > To: sqr-users@sqrug.org > Subject: RE: [sqr-users] Unix Sort... > > search the sqrug archives for call system.... use the Unix man > function > for sort.... check the sqr language reference manual for call system > using.... > > There, I've taught you how to fish. :-D > > peace, > clark 'the dragon' willis > > > ----Original Message Follows---- > > well..thats what iam also looking for... > > -----Original Message----- > > Better you should learn how to fish than merely get a fish, no? > > Do you have a unix command that does the sort you want? This is where I > would start. > > Richard Knapp > AITS - Reporting > University of Missouri > Locust Street Building > Columbia, MO 65201 > 573-882-8856 > knappr@umsystem.edu > > > -----Original Message----- > > Hi, > > I want to sort a file using the unix sort command. I need to sort a > specific field alone. After sorting I need to write the sorted output to > another file. > It would be gr8 if some one can give me a sample code in sqr to do this. > > Thanks in Advance > Ram > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > 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 ___________________________________________________________________________= _________ Sponsored Link Compare mortgage rates for today.=20 Get up to 5 free quotes.=20 Www2.nextag.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Nov 17 09:19:06 2006 From: "Anu Bagde" Subject: RE: [sqr-users] Call System Using command Date: Fri, 17 Nov 2006 14:16:26 +0000 Hi Steve, I thought so too. But was not sure so I posted this message. I am not aware of rexec utility, may be I could use 'at' command on the server where I have .bat file and where I want to download the data. Thanks for all you help, Anu >From: "Steve Cavill" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "'This list is for discussion about the SQR database >reportinglanguagefrom Hyperion Solutions.'" >Subject: RE: [sqr-users] Call System Using command >Date: Fri, 17 Nov 2006 22:23:21 +1100 > >So it's back to the original problem. You need to get the command to work >on your server where the sqr runs. >Which is not related to SQR >Are you trying to run a .bat file on server A from server B? >That can't be done with windows. >You would need to use rexec or similar utility to runa script on a remote >machine. >Steve. > >-----Original Message----- >From: sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org >[mailto:sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org] On >Behalf Of Anu Bagde >Sent: Wednesday, 15 November 2006 1:14 AM >To: sqr-users@sqrug.org >Subject: RE: [sqr-users] Call System Using command > >Hi Steve, > >Actually in .bat file there is a cd command to change the directory, so >that the download data will go in that directory. Now on my >computer that directory is mapped. When I changed the cd command from 'cd >download-all ' >to say 'chdir /u c:/download-all' then the script works from a command >prompt. > >But when SQR runs on server, there is no mapping of this drive on server. >In that case I cannot use the same 'chdir' command to >change the directory. I cannot use 'net use' command to map the directory >on the server, as I do not and cannot have the userid and >password for the server. I am not sure what I can use or even I can do >this. > >Thanks for all your help, >Anu > > > >From: "Steve Cavill" > >Reply-To: "This list is for discussion about the SQR database > >reportinglanguage from Hyperion Solutions." > >To: "'This list is for discussion about the SQR database > >reportinglanguagefrom Hyperion Solutions.'" > >Subject: RE: [sqr-users] Call System Using command > >Date: Fri, 10 Nov 2006 12:57:27 +1100 > > > >Does the command work from a command prompt? That's the first step. > >Once you get it working from a comamnd prompt then calling it from sqr > >should be easy. > >Steve. > > > >-----Original Message----- > >From: sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org > >[mailto:sqr-users-bounces+steve.cavill=infoclarity.com.au@sqrug.org] On > >Behalf Of Anu Bagde > >Sent: Saturday, 4 November 2006 6:44 AM > >To: sqr-users@sqrug.org > >Subject: [sqr-users] Call System Using command > > > >Hello all, > >I am trying to use call system to execute a .dat file located on a > >different server than where the SQR's are located. Operating system on > >both the servers is Windows NT. I am initializing the variable named > >$script_file with the actual fine name with complete path. Then I use > >the following code to actually execute the .dat file: > > > >let $command = getenv('COMSPEC')||' /c "' || $script_file || '"' > >call system using $command #status WAIT show 'Running command: ' > >$command ' Return Status: ' #status > > > >My return status is 1. Can anyone help me understand this and solve > >this problem? If this is not possible can any one help me find another > >way to execute the .dat file, every day at 7pm? > > > >Thanks in advance, > >Anu > > > >_________________________________________________________________ > >One and only Ash. Find out all about her. Only on MSN Search > >http://server1.msn.co.in/profile/aishwarya.asp > > > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >http://www.sqrug.org/mailman/listinfo/sqr-users > >_________________________________________________________________ >Tried the new MSN Messenger? It's cool! Download now. >http://messenger.msn.com/Download/Default.aspx?mkt=en-in > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Spice up your IM conversations. New, colorful and animated emoticons. Get chatting! http://server1.msn.co.in/SP05/emoticons/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Nov 17 09:22:48 2006 From: "the dragon" Subject: Re: [sqr-users] Unix Sort... Date: Fri, 17 Nov 2006 08:19:29 -0600 Search the sqrug archives. This has been addressed many times in the past for both Unix and Windoze systems. Peace, clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. I work to live; I don't live to work. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) It is impossible to defeat an ignorant man in argument. William G. McAdoo ----Original Message Follows---- Hi I need a sqr code to generate mail to the recipients can any one help me? Thanks jagadish jagadishmucherla@gmail.com On 11/16/06, Alexander, Steven wrote: > >Folks, I've asked some tough questions in the past and got no responses. >Ram asked a question that seemed too easy and he got bashed. I don't >think >this forum has a rule setting a strict range of questions that are >permissable. If you don't want to help someone, why go to the effort of >attacking him? > > > >-----Original Message----- > >Send me some money and I'll send you the code. I'll even throw in a >bridge >or two! > > >----- Original Message ---- > >poda goyale > >-----Original Message----- > > >So if I have this analogy right, the pole is "google and SQRUG archives" >and the hook and line is 'CALL SYSTEM USING ***' ...what was the worm >again? maybe the MAN pages on Unix? > >Put them all together and now Ram can fish? funny analogy. > >I agree with Clark and Richard. Basically you're saying "well I've >tried nothing and I'm all out of ideas." Do some research with Google >(great tool), the archives, some Unix documentation. Most of your >questions will probably answer themselves within a few hours. THEN if >you get stuck or there's some related question once you get going ("what >way is faster, has anybody done it this way, etc") then ask the group. > >Everyone joined this group to get help/tips on serious or tough >questions, not to do someone else's work for them. > > >-----Original Message----- > >search the sqrug archives for call system.... use the Unix man >function >for sort.... check the sqr language reference manual for call system >using.... > >There, I've taught you how to fish. :-D > >peace, >clark 'the dragon' willis > > >----Original Message Follows---- > >well..thats what iam also looking for... > >-----Original Message----- > >Better you should learn how to fish than merely get a fish, no? > >Do you have a unix command that does the sort you want? This is where I >would start. > >Richard Knapp > > >-----Original Message----- > >Hi, > > I want to sort a file using the unix sort command. I need to sort a >specific field alone. After sorting I need to write the sorted output to >another file. >It would be gr8 if some one can give me a sample code in sqr to do this. > >Thanks in Advance >Ram > _________________________________________________________________ Get free, personalized commercial-free online radio with MSN Radio powered by Pandora http://radio.msn.com/?icid=T002MSN03A07001 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Nov 17 11:25:27 2006 From: "Giepz, Marius" Subject: AW: AW: AW: [sqr-users] printing groupheader and details in one h orizontal band Date: Fri, 17 Nov 2006 17:21:19 +0100 I tried it like this now, but it seems like the variable #starting_point is 0 inside the subquery as it is a local variable > -----Urspr=FCngliche Nachricht----- > Von: Dwight Schrute [mailto:schrute.dwight@hotmail.com] > Gesendet: Dienstag, 14. November 2006 17:26 > An: sqr-users@sqrug.org > Betreff: RE: AW: AW: [sqr-users] printing groupheader and=20 > details in one > horizontal band >=20 >=20 > The variable #current-line is a reserved variable that is global. A=20 > variable is only local when the procedure is declared with=20 > variables in the=20 > name, such as: > begin-procedure Master_Query_BeforeProc ( #line_number ) > #line_number and any variables within the procedure would be=20 > local unless=20 > they have an underscore, such as $_variable_name would refer to=20 > $variable_name outside of the local scope. >=20 > Back to your problem, the substitution variables &head2 and=20 > &head3 are only=20 > being printed when the value of &val1 changes. You're also=20 > not incrementing=20 > #starting_point for the next line so you are printing on the=20 > same line you=20 > ended on ( the same line as &val2 ). >=20 > You could split this into two queries. For example: >=20 > begin-procedure master_query > begin-select > table.head2 &head2 ( +10, 33 ) > table.head3 &head3 ( +10, 89 ) >=20 > let #starting_point =3D #current-line - 20 > do child_query >=20 > from table > end-select > end-procedure !master_query >=20 > begin-procedure child_query > begin-select > table.val1 &val1 ( #starting_point, 200 ) > table.val2 &val2 ( +10, 200 ) >=20 > add 20 to #starting_point >=20 > from table > where head2 =3D &head2 > end-select > end-procedure !child_query >=20 >=20 > >From: "Giepz, Marius" > >Reply-To: "This list is for discussion about the SQR database=20 > >reportinglanguage from Hyperion Solutions." > >To: "'This list is for discussion about the SQR database reporting=20 > >languagefrom Hyperion Solutions.'" > >Subject: AW: AW: [sqr-users] printing groupheader and details in one=20 > >horizontal band > >Date: Tue, 14 Nov 2006 15:17:19 +0100 > > > >would the #current_line thing also work in graphic mode? > >i have to position the lines and boxes pixel accurate so i=20 > use this mode. > > > >the way i tried it so far seem to be wrong. i am not really=20 > familiar with > >the > >namespaces of variables in sqr yet. i mean using global and local=20 > >variables. > >when i use on-break for the grouping, then the groupheaders=20 > are printed in=20 > >a > >subroutine > >i tried it like