From sqr-users-bounces@sqrug.org Sun Jan 01 00:02:07 2006 Date: Sun, 1 Jan 2006 00:00:02 -0500 From: Nathan Stratton Treadway Subject: [sqr-users] Monthly sqr-users Hints Posting sqr-users Mailing List Hints and Guidelines Nathan Stratton Treadway, Ray Ontko & Co. (nathanst@ontko.com) $Revision: 1.22 $ $Date: 2005/08/19 05:12:40 $ This document gathers in one location information about the sqr-users mail list. It includes instructions for changing your subscription settings (including unsubscribing), as well are guidelines for using the list. ______________________________________________________________________ Table of Contents 1. Changes Since Previous Version 2. Introduction 2.1 sqr-users Mailing List 2.2 sqr-users Hints and Guidelines Document 2.3 Related Mailing Lists 3. Interacting with the list server 3.1 Subscribing to the list 3.2 Unsubscribing from the list 3.3 When your email address changes 3.4 Digests 3.5 Obtaining your password 3.6 Problems 4. Posting to the sqr-users List 4.1 General Guidelines 4.2 Posting a Message 4.3 Replying to a Message 5. Job Announcements ______________________________________________________________________ 1. Changes Since Previous Version Changes since the version dated 2004/03/04: o New name and URL for "HyperionSQR" mailing list. 2. Introduction 2.1. sqr-users Mailing List The sqr-users mailing list was created to enable discussion related to the SQR database language from Hyperion (and to other products in the SQR product suite). Note: SQR used to be published by SQRIBE Technologies, which was merged into Brio Technology on August 3, 1999. Brio Technology changed its name to Brio Software in October 2001. On October 16, 2003, Hyperion acquired Brio Software. SQR and related applications have also been called "Brio.Report" and "Brio Reports". The mailing list is provided as a service of Ray Ontko & Co. A searchable archive of past postings to the mailing list is available from the SQR Users Group web site . 2.2. sqr-users Hints and Guidelines Document This document gives various hints and guidelines about the sqr-users mailing list. It will be posted approximately monthly to the mailing list so that new users can see it (and existing users can find it easily). An HTML version of the document is always available at http://www.sqrug.org/sqr-users/sqr-users-hints.html. If you have comments or suggestions about this document, please contact me directly at the address listed in the title section. This document is Copyright (C) 1999-2004 by Ray Ontko & Co. It may be freely copied and distributed provided it is not modified in any way and it retains the original copyright notice. 2.3. Related Mailing Lists Here are some mailing lists that cover topics relating to SQR in some way. sqr-jobs : SQR Jobs This list may be used for posting SQR-related resumes, recruitments, job announcements, project announcments, help- wanted, work-wanted ads, etc. To join, follow the link above, or send any message to "sqr-jobs-subscribe@yahoogroups.com". peoplesoft-fans : PeopleSoft Fans Moderated list covering technical and functional aspects of PeopleSoft. To join, follow the link above, or send any message to "peoplesoft-fans-subscribe@yahoogroups.com". psusers : PeopleSoft Users For questions related to any aspect of PeopleSoft (including PeopleSoft-specific SQR issues). This list has merged with the Peoplesoft Fans mailing list and is no longer active, but the message achive can still be found at the link above. HyperionSQR : Hyperion- SQR List for discussion of SQR, SQR Developer (formerly called Brio.Report and Report Builder), and SQR iServer. To join, follow the link above, or send any message to "HyperionSQR- subscribe@yahoogroups.com". rm-users : Report- Mart Users List for discussion of Brio Portal (previously called ReportMart). To join, follow the link above, or send a message containing the word "subscribe" in the body to "rm-users- request@sqrug.org". brioportalusersgroup : Brio Portal Users Group list List for discussion of Brio Portal. To join, follow the link above, or send any message to "brioportalusersgroup- subscribe@yahoogroups.com". brio-l : OpenITx Brio List List for technical and functional discussion of all Brio products (but most messages are currently about Brio Intelligence). To join, follow the link above. briousers : Brio.Enter- prise Users List for discussion of the Brio.Enterprise (now called Intelligence) product. To join, follow the link above, or send any message to "briousers-subscribe@yahoogroups.com". briolist : Brio List List for discussion of Brio Intelligence. To join, follow the link above, or send any message to "briolist- subscribe@yahoogroups.com". 3. Interacting with the list server The sqr-users mailing list is hosted using the Mailman list server package. All of the Mailman functions described below are accessed from the sqr-users List Info page, "http://www.sqrug.org/mailman/listinfo/sqr-users". 3.1. Subscribing to the list To subscribe to the mailing list, enter your e-mail address in the box at the top of the "Subscribing to sqr-users" section on the sqr-users List Info page, then choose a password to assign to your subscription and enter it in both "Password" boxes. This password is used to allow you to securely make changes to your subscription over the web. This password will be e-mailed back to you at varous times, so you should not use the same password as you are using elsewhere. Once you have filled in the password, click the "Subscribe" button. You should soon receive an e-mail message from the list server requesting confirmation of your subscription request. Once you have replied to this message and your subscription has been processed, you will receive a "welcome" message giving you more information on the list server, and as well as a reminder of the subscription password you chose. 3.2. Unsubscribing from the list To unsubscribe from the list, go to the sqr-users List Info page, enter your e-mail address in the "sqr-users Subscribers" section near the bottom of the page, and click the "Unsubscribe or edit options" button. You will then see the "member options" page; fill in your password at the top of the page and click "Log in". (If you have forgotton your password, see the ``Obtaining your Password'' section, below). This will take you to the "membership configuration" page. In the middle of that page, there will be an "Unsubscribing from sqr- users" section; simply turn on the "Yes, I really want to unsubscribe" checkbox and click the "Unsubscribe" button. You should get a page back saying that the removal was successful (as well as a confirmation email message). The removal will take effect immediately; there is no need to send in a confirmation e-mail message. If you don't know your password, you can choose to unsubscribe using e-mail confirmation. Instead of entering the password on the "member options" page, just click the "Unsubscribe" button found just below the "Log In" button. You will then see a page noting that a confirmation e-mail has been sent; once you follow the confirmation instructions in that e-mail your removal will be complete. 3.3. When your email address changes If your e-mail address changes -- for example, if your company changes names, or if your mail administrator changes the way your name is spelled out or abbreviated -- you will need to update your subscription to match your new address before you can post to the list (see the ``Posting'' section, below). To do this, simply log in to your "membership configuration" page (see the directions for logging in to this page in the ``Unsubscribing'' section, above). At the top of that page you'll see a "Changing your membership information" section. Fill out the text boxes and click the "Change My Address and Name" button. You will be sent a confirmation e-mail, and once you have responded to that e-mail your subscription will be updated and you can begin posting from your new address. 3.4. Digests You can request to get your messages in digest form (one large message containing all of the posts made each day). To do this, log in to your "membership configuration" page (see the directions on doing this in the ``Unsubscribing'' section, above). At the bottom of the page, you will see a section titled "Your sqr-users Subscription Options". Change the "Set Digest Mode" option (the second option in the list) to "On" and click the "Submit My Changes" button at the bottom of the page. You actually have a choice of two different digest formats, "MIME" or "Plain Text". The MIME format sends each individual list message as a separate MIME attachment to the digest; the plain text format consists of one large text message, with all of the individual messages run together. Which format you will want to use depends on your mail- reading software (and personal preference). If you are not sure which format will work best, you can just leave the default setting of "MIME" and see if the next morning's digest is easy to read in your mail reader -- you can change to the other format at any time using that same web page. If you use digests, you should not just "reply" to the digest mailing. Instead, be sure your message's subject header matches the subject in the original posting to which you are replying, and that you don't include a quoted copy of the entire digest in your post. To restore normal distribution, simply follow the above instructions choosing the "Off" setting for the Digest option. 3.5. Obtaining your password You will not be able to change your subscription options without your password. If you have forgotten your password, simply click the "Email My Password to Me" button on the "member options" page and your password will be emailed to you. You will also be e-mailed a copy of your password at the beginning of each month, as part of a "mailing list memberships reminder" message from the Mailman software. 3.6. Problems If the above instructions do not work, please contact the list manager at "sqr-users-manager@sqrug.org". (Do not send a message to the list itself -- no one there can help you with your problem!) Please include a description of what you were trying to do and what exactly happened when you made the attempt. 4. Posting to the sqr-users List In order to post to the mailing list, you must be subscribed to it (see directions above). More specifically, in order for Mailman to recognize that this message was sent by a subscriber, the return address on your message much exactly match the addresss you used to subscribe -- if you have more than one address you will need to be sure that you are sending from the correct one. (See the ``When you email address changes'' section, above, if your e-mail address has changed since you subscribed.) 4.1. General Guidelines For any message you send to the list, please: o make sure your mail software is not requesting a "Return Receipt". (If a "Return Receipt Requested" message is sent to the list, several dozen receipt messages will be sent out to the mailing list as other subscribers' mail systems repond....) o do not send messages in HTML or other special formats. (These are not usable by many subscribers, especially those who receive their messages in digest format.) The list server will delete these special attachments from your message and send you a warning notice. Also, if you are trying to send (for example) SQR source code files, make sure your mail-reader software is assigning proper MIME types to your attachments or they may not be distributed. o keep in mind that over 500 people will receive your message, and that it will appear in the list archives. Try to keep your messages on-topic and relatively short. Consider sending your message directly to particular people if it won't interest many of the list's subscribers. o ignore abusive and inappropriate messages that get sent to the list, rather than getting drawn into a debate. The very nature of these messages will cause most subscribers to automatically discredit them -- no "response" is necessary. To the contrary, any response will only "add fuel to the fire," prolonging the controversy and further interupting the normal conversation on the list. 4.2. Posting a Message Once you are subscribed, you can post to the list by sending a message to "sqr-users@sqrug.org". Be sure your subject heading describes your specific problem or question (i.e. don't just use "SQR Question"). In the body of your message, please include the following information: o SQR product name and version number (see notes below) o Operating system name and version number o Database name and version number o Application name (i.e. PeopleSoft) and a version number, if any Also, include a short code sample whenever possible. It's much easier for other people to understand what you are trying to do when they can see the actual code. (At the same time, be careful not to post confidential or proprietary code, since the posting will be placed in a public web archive.) Note that your question should relate to SQR or other Brio Report product in some way. Don't ask questions about PeopleSoft, for example, unless you are having SQR-related issues. (For PeopleSoft- specific questions, see other lists mentioned in the ``Related Mailing Lists'' section.) In 2001, PeopleSoft purchased from Brio the rights to the source code for SQR and began releasing its own line of SQR. PeopleSoft's SQR version numbering is different from Brio/Hyperion's, so it's very important to mention whether you are using Hyperion's "SQR" or "SQR for PeopleSoft". (This info is included automatically if you include the full SQR version-id string as described below.) To get the version-id string for your copy of SQR, you can run the following program: begin-program show $sqr-ver end-program This will produce a line that looks something like this: SQR/3.0.15/Intel/SCO Unix R3.2 V5.0/Oracle 7.2.2.3/Sep 25 1996 Include the full line of output in your message. Note that the oper- ating system and database version numbers listed here are the ones under which this copy of SQR was compiled, so you'll still need to include this information for your own environment. In a command-line environment (Unix, etc.), you can also get this version-id string by saying sqr -id 4.3. Replying to a Message Messages sent out on the list have a Reply-To header pointing to the list. This means that you should be able to simply use your mail reader's "reply" function to send a reply to the list. Generally, all answers to questions sent out on the list should be public replies, so that other subscribers can benefit. In those cases where a private reply is appropriate, be sure to over-ride the default Reply-To address. If your message is not actually a reply to the earlier message, please do not use the "reply" function. Instead, address a new e-mail message to the list as described in the previous section. (This is because the list archives will incorrectly show the new message in the original thread if you use "reply".) You should quote enough lines from the original message that later readers can understand your answer even if they missed the original question. At the same time, you should remove any unnecessary lines from the quote in order to make your message shorter and easier to understand. (Remember that some people read the mailing list in digest form, and the digests become much larger if unnecessary lines are quoted.) 5. Job Announcements Please do not post job announcements on the sqr-users list, but use the sqr-jobs list instead. (See ``Related Mailing Lists'' for more information on this list.) A large number of sqr-users subscribers do not want to receive job announcements (for various reasons) and such posts tend to cause a lot of disruption of the discussion on the list. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jan 02 13:50:57 2006 Date: Mon, 2 Jan 2006 13:48:58 -0500 From: "Sudheer Bachu" Subject: [sqr-users] Font size problem in sqr report Hi, Am working on sqr reports using HTML procedures(tables). Iam getting the data and the layout fine....but the size of the font is my main concern. Can somebody help me out in controlling the size and font of the numbers or characters. =20 I used ...alter-printer font=3D3 point-size=3D12, alter-printer font=3D5 point-size=3D12( am using consistently any one of these at a time not both) commands which didn't gave any results. Here is the problem.... =20 let's say if I have a number $314,235.... of which first 3 digits are of different size than others and also the case. =20 =20 Please let me know if you can help me out =20 Sudheer Bachu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 03 15:09:46 2006 From: "kyle.leonard" Subject: Re: [sqr-users] Font size problem in sqr report Date: Tue, 3 Jan 2006 15:07:50 -0500 Changing the XX for the point-size=xx will change the size of the font, the font=x changes the typeface (ie Arial, Times, etc). Also note that different output accepts changing the fonts differently...IE PDF output allows different choices in fonts than does HTML output. As for a number with different fonts for different parts of the number... You'll have to substring the number into different fields and print each substring separately with an alter-printer between print statements. Good luck, Kyle Leonard 1AnswerSolutions On Mon, 2 Jan 2006 13:48:58 -0500, Sudheer Bachu wrote > Hi, > > Am working on sqr reports using HTML procedures(tables). Iam > getting the data and the layout fine....but the size of the font is > my main concern. > > Can somebody help me out in controlling the size and font of the numbers > or characters. > > > > I used ...alter-printer font=3 point-size=12, alter-printer font=5 > point-size=12( am using consistently any one of these at a time not > both) commands which didn't gave any results. Here is the problem.... > > > > let's say if I have a number $314,235.... > > of which first 3 digits are of different size than others and also > the case. > > > > > > Please let me know if you can help me out > > > > Sudheer Bachu > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ___________________________________ Kyle J. Leonard kyle.leonard@1answersolutions.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jan 02 14:39:54 2006 Date: Mon, 2 Jan 2006 14:38:04 -0500 From: "Sudheer Bachu" Subject: [sqr-users] How do i change the color of a column Hi, How can i change the color of a specific column or a specific row in a html table in a sqr report =20 =20 Sudheer Bachu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 03 09:08:28 2006 Date: Tue, 3 Jan 2006 09:05:37 -0500 From: "Debbie Larney" Subject: [sqr-users] Read a file into sqr I have a text file that I am reading in through sqr. The file has no carria= ge returns or line breaks so the file wraps around. The end of a line appea= rs to be delineated by a non ascii character so I can identify the end of a= line. I think I need to in essence do a find and replace on the non ascii = character so that I can replace it with a line break and read the file line= by line into the sqr. Anyone have sample code or ideas doing a find and re= place within sqr. Do I have to first read the entire file into a string an= d then do the find and replace. If so what are the limitations with this me= thod. Thanks, Debbie ********************************************************************=20 CONFIDENTIALITY NOTICE:=20 The information contained in this e-mail is legally privileged and confiden= tial information intended only for the use of the individual or entity to w= hom it is addressed. If the reader of this message is not the intended rec= ipient, you are hereby notified that any viewing, dissemination, distributi= on, or copying of this e-mail message is strictly prohibited. If you have = received and/or are viewing this e-mail in error, please immediately notify= the sender by reply e-mail, and delete this e-mail from your system. Thank you.=20 ********************************************************************=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 03 15:01:07 2006 From: "kyle.leonard" Subject: Re: [sqr-users] Read a file into sqr Date: Tue, 3 Jan 2006 14:59:02 -0500 Debbie, SQR reads a text file line by line. Just put the read within an endless loop and break out when the end-of-file is reached. For example: open 'blah.txt' as 1 for reading record=100:vary while 1 if #end-file break end-if read 1 into $some_variable:500 !The 500 indicate how many columns or chars wide the widest line is. let $paragraph = $paragraph || ' ' || $some_variable !OR ANOTHER APPROACH read 1 into $name:30 $addr:30 $city:20 $state:2 $zip:5 ! <--do something here with the retrieved variables (store in array, print, etc)--> end-while close 1 NOTE: I am referencing version 8.1 help file for my example. Kyle Leonard 1AnswerSolutions On Tue, 3 Jan 2006 09:05:37 -0500, Debbie Larney wrote > I have a text file that I am reading in through sqr. The file has no > carriage returns or line breaks so the file wraps around. The end of > a line appears to be delineated by a non ascii character so I can > identify the end of a line. I think I need to in essence do a find > and replace on the non ascii character so that I can replace it with > a line break and read the file line by line into the sqr. Anyone > have sample code or ideas doing a find and replace within sqr. Do I > have to first read the entire file into a string and then do the > find and replace. If so what are the limitations with this method. > > Thanks, > > Debbie > > ******************************************************************** > CONFIDENTIALITY NOTICE: > The information contained in this e-mail is legally privileged and > confidential information intended only for the use of the individual > or entity to whom it is addressed. If the reader of this message is > not the intended recipient, you are hereby notified that any viewing, > dissemination, distribution, or copying of this e-mail message is > strictly prohibited. If you have received and/or are viewing this e- > mail in error, please immediately notify the sender by reply e-mail, > and delete this e-mail from your system. > > Thank you. > ******************************************************************** > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ___________________________________ Kyle J. Leonard kyle.leonard@1answersolutions.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jan 04 10:59:41 2006 Subject: RE: [sqr-users] Read a file into sqr Date: Wed, 4 Jan 2006 10:57:05 -0500 From: "Bob Buford" Hi Debbie, I would expect that the "non-ascii" character is really an ascii "non-printable" character. If you can determine what it is, and that it ends each line, then you can read for it and build a complete record line that you can then process. (If not any brighter ideas, you could do like I did and write a loop to evaluate and display each character and its ascii number). Are these non-printable characters at the same interval (e.g. every 50 characters)? If so, perhaps you could read into a variable of fixed length. Just some thoughts to help you further along this quest Bob -----Original Message----- From: Debbie Larney [mailto:debbie.larney@thicare.com]=20 Sent: Tuesday, January 03, 2006 9:06 AM To: sqr-users@sqrug.org Subject: [sqr-users] Read a file into sqr I have a text file that I am reading in through sqr. The file has no carriage returns or line breaks so the file wraps around. The end of a line appears to be delineated by a non ascii character so I can identify the end of a line. I think I need to in essence do a find and replace on the non ascii character so that I can replace it with a line break and read the file line by line into the sqr. Anyone have sample code or ideas doing a find and replace within sqr. Do I have to first read the entire file into a string and then do the find and replace. If so what are the limitations with this method. Thanks, Debbie ******************************************************************** CONFIDENTIALITY NOTICE:=20 The information contained in this e-mail is legally privileged and confidential information intended only for the use of the individual or entity to whom it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any viewing, dissemination, distribution, or copying of this e-mail message is strictly prohibited. If you have received and/or are viewing this e-mail in error, please immediately notify the sender by reply e-mail, and delete this e-mail from your system. Thank you.=20 ********************************************************************=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jan 04 11:20:37 2006 Date: Wed, 4 Jan 2006 09:18:46 -0700 From: Robert Goshko Subject: Re: [sqr-users] Read a file into sqr On 03/01/06, Debbie Larney wrote: > I have a text file that I am reading in through sqr. The file has no carr= iage returns or line breaks so the file wraps around. The end of a line app= ears to be delineated by a non ascii character so I can identify the end of= a line. I think I need to in essence do a find and replace on the non asci= i character so that I can replace it with a line break and read the file li= ne by line into the sqr. Anyone have sample code or ideas doing a find and = replace within sqr. Do I have to first read the entire file into a string = and then do the find and replace. If so what are the limitations with this = method. It is probably a UNIX based file, they just have a line feed (0x0a) character and look like one big long line in Notepad, PC based files have a carriage return and line feed (0x0d 0x0a) at the end of each line. SQR parses files by looking for a "newline" which is either of the combinations so it will read the file fine. -- ...Rob -- No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Robert Goshko Registered Linux User #260513 Want a Gmail account, 2.6+ GB web mail (for free), just ask me. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jan 04 17:21:06 2006 From: "Gopal Krishan" Subject: RE: [sqr-users] Read a file into sqr Date: Thu, 5 Jan 2006 09:26:22 +1100 Try following: - open the file in microsoft Wordpad (not microsoft word) - save after making a dummy change - try processing the new file using your sqr Gopal. -----Original Message----- From: sqr-users-bounces+gkrishan=bigpond.net.au@sqrug.org [mailto:sqr-users-bounces+gkrishan=bigpond.net.au@sqrug.org]On Behalf Of Robert Goshko Sent: Thursday, January 05, 2006 3:19 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] Read a file into sqr On 03/01/06, Debbie Larney wrote: > I have a text file that I am reading in through sqr. The file has no carriage returns or line breaks so the file wraps around. The end of a line appears to be delineated by a non ascii character so I can identify the end of a line. I think I need to in essence do a find and replace on the non ascii character so that I can replace it with a line break and read the file line by line into the sqr. Anyone have sample code or ideas doing a find and replace within sqr. Do I have to first read the entire file into a string and then do the find and replace. If so what are the limitations with this method. It is probably a UNIX based file, they just have a line feed (0x0a) character and look like one big long line in Notepad, PC based files have a carriage return and line feed (0x0d 0x0a) at the end of each line. SQR parses files by looking for a "newline" which is either of the combinations so it will read the file fine. -- ...Rob -- No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. ================================================ Robert Goshko Registered Linux User #260513 Want a Gmail account, 2.6+ GB web mail (for free), just ask me. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jan 04 12:36:53 2006 Date: Wed, 04 Jan 2006 12:34:23 -0500 From: "George Jansen" Subject: Re: [sqr-users] Read a file into sqr The alternative would be to use some other tool, e.g. Perl. For example, us= ing "z" as the delimiter for convenience, you could /tmp>echo 'AAAAAAAAAAAAAAzBBBBBBBBBBBBBzCCCCCCCCCCCz' > stuff.txt /tmp>perl -e '$/ =3D "z"; while(<>) { chop; print $_, "\n";}' stuff.txt AAAAAAAAAAAAAA BBBBBBBBBBBBB CCCCCCCCCCC >>> robert.goshko@gmail.com 01/04/06 11:18 AM >>> On 03/01/06, Debbie Larney wrote: > I have a text file that I am reading in through sqr. The file has no carr= iage returns or line breaks so the file wraps around. The end of a line app= ears to be delineated by a non ascii character so I can identify the end of= a line. I think I need to in essence do a find and replace on the non asci= i character so that I can replace it with a line break and read the file li= ne by line into the sqr. Anyone have sample code or ideas doing a find and = replace within sqr. Do I have to first read the entire file into a string = and then do the find and replace. If so what are the limitations with this = method. It is probably a UNIX based file, they just have a line feed (0x0a) character and look like one big long line in Notepad, PC based files have a carriage return and line feed (0x0d 0x0a) at the end of each line. SQR parses files by looking for a "newline" which is either of the combinations so it will read the file fine. -- ...Rob -- No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Robert Goshko Registered Linux User #260513 Want a Gmail account, 2.6+ GB web mail (for free), just ask me. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 03 09:25:36 2006 Date: Tue, 3 Jan 2006 09:23:48 -0500 From: "White . Denise" Subject: [sqr-users] Anyone out there? Is this list dead? I am still getting the monthly hints email, but have not gotten any digests for months (other than the one with the monthly hints). I checked the website, but there do not seem to be any new posts since 10/1/2005. What happened? Denise M. White EBS Programmer/Analyst III Dynamics Research Corporation _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 03 09:42:08 2006 Date: Tue, 3 Jan 2006 06:39:44 -0800 (PST) From: Tom Vincent Subject: Re: [sqr-users] Anyone out there? Well, obviously all the possible SQR questions have been answered. :) Seriously, I think a lot of SQR people get their info from the list on IT Toolbox. There's about 3,000 subscribers to that list. Tom DE "White . Denise" wrote: Is this list dead? I am still getting the monthly hints email, but have not gotten any digests for months (other than the one with the monthly hints). I checked the website, but there do not seem to be any new posts since 10/1/2005. What happened? Denise M. White EBS Programmer/Analyst III Dynamics Research Corporation _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users -*-*-*-*-*-*-*-*-* Tom Vincent -*-*-*-*-*-*-*-*-* "The test of our progress is not whether we add more to the abundance of those who have much; it is whether we provide enough for those who have too little." - Franklin Roosevelt _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 03 09:45:31 2006 From: "the dragon" Subject: RE: [sqr-users] Anyone out there? Date: Tue, 03 Jan 2006 08:42:35 -0600 Hi Denise Lady luck never smiles So lend your love to me, awhile Do with me what you will Break the spell take your fill On and on we rode the storm The flame has died, the fire has gone Oh, this empty bed is a night alone I realized that long ago Is anybody out there? Anybody there? Does anybody wonder? Anybody care? Oh, I just gotta know If you're really there and you really care 'Cause baby I'm not F- f - f - foolin', ah f - f - f - foolin' Not f - f - f - foolin', ah f - f - f - foolin' Won't you stay with me awhile Close your eyes don't run and hide Easy love is not easy ride Just wakin' up from what we had Could stop good love from goin' bad -------------------------------------------------------------------------- In any case, I'm here, occassionally. I usually reply to replies individually, after I determine they are not interlopers. While I support the concept of this group, and approve of the exchange of ideas, I refuse to share information with wanna be coders from the Pan-Asia area who are trying to take American jobs when they have absolutely no experience. 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---- Is this list dead? I am still getting the monthly hints email, but have not gotten any digests for months (other than the one with the monthly hints). I checked the website, but there do not seem to be any new posts since 10/1/2005. What happened? Denise M. White EBS Programmer/Analyst III Dynamics Research Corporation _________________________________________________________________ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 03 09:52:17 2006 Subject: Re: [sqr-users] Anyone out there? From: JOHN_HARRIS@qvc.com Date: Tue, 3 Jan 2006 09:43:59 -0500 This is a multi-part message in MIME format... --0__=0ABBFA78DFC36F528f9e8a93df938690918c0ABBFA78DFC36F52 Content-type: text/plain; charset=US-ASCII I am getting posts. Thank you. Regards, John (Embedded image moved John Harris to file: Programmer/Analyst pic06224.jpg) Application Development - Internal QVC Inc., 1200 Wilson Drive, MC 220, West Chester, PA 19380-4262 Telephone 484-701-3303 Fax 484-701-8689 e-mail jharris@qvc.com This message may contain information that is privileged or confidential. This message may contain information that is privileged or confidential. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. |---------+-----------------------------------------------> | | "White . Denise" | | | Ext: | | | Sent by: | | | sqr-users-bounces+john_harris=qvc.co| | | m@sqrug.org | | | | | | | | | 01/03/2006 09:23 AM | | | Please respond to "This list is for | | | discussion about the SQR database | | | reporting language from | | | Hyperion Solutions." | | | | |---------+-----------------------------------------------> >------------------------------------------------------------------------------------------------------------------------------| | | | To: | | cc: (bcc: JOHN HARRIS/QVC) | | Subject: [sqr-users] Anyone out there? | >------------------------------------------------------------------------------------------------------------------------------| Is this list dead? I am still getting the monthly hints email, but have not gotten any digests for months (other than the one with the monthly hints). I checked the website, but there do not seem to be any new posts since 10/1/2005. What happened? Denise M. White EBS Programmer/Analyst III Dynamics Research Corporation _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --0__=0ABBFA78DFC36F528f9e8a93df938690918c0ABBFA78DFC36F52 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__=0ABBFA78DFC36F528f9e8a93df938690918c0ABBFA78DFC36F52 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__=0ABBFA78DFC36F528f9e8a93df938690918c0ABBFA78DFC36F52-- From sqr-users-bounces@sqrug.org Tue Jan 03 09:48:57 2006 Subject: RE: [sqr-users] Anyone out there? Date: Tue, 3 Jan 2006 09:46:44 -0500 From: "Sudheer Bachu" That was aw=3D=3Dwsome sunny -----Original Message----- From: sqr-users-bounces+sbachu=3Dcreditacceptance.com@sqrug.org [mailto:sqr-users-bounces+sbachu=3Dcreditacceptance.com@sqrug.org] On Behalf Of the dragon Sent: Tuesday, January 03, 2006 9:43 AM To: sqr-users@sqrug.org Cc: DWhite@drc.com Subject: RE: [sqr-users] Anyone out there? Hi Denise Lady luck never smiles So lend your love to me, awhile Do with me what you will Break the spell take your fill On and on we rode the storm The flame has died, the fire has gone Oh, this empty bed is a night alone I realized that long ago Is anybody out there? Anybody there? Does anybody wonder? Anybody care? Oh, I just gotta know If you're really there and you really care 'Cause baby I'm not F- f - f - foolin', ah f - f - f - foolin' Not f - f - f - foolin', ah f - f - f - foolin' Won't you stay with me awhile Close your eyes don't run and hide Easy love is not easy ride Just wakin' up from what we had Could stop good love from goin' bad ------------------------------------------------------------------------ -- In any case, I'm here, occassionally. I usually reply to replies=20 individually, after I determine they are not interlopers. While I support=20 the concept of this group, and approve of the exchange of ideas, I refuse to=20 share information with wanna be coders from the Pan-Asia area who are trying=20 to take American jobs when they have absolutely no experience. 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---- Is this list dead? I am still getting the monthly hints email, but have not gotten any digests for months (other than the one with the monthly hints). I checked the website, but there do not seem to be any new posts since 10/1/2005. What happened? Denise M. White EBS Programmer/Analyst III Dynamics Research Corporation _________________________________________________________________ Don't just search. Find. Check out the new MSN Search!=20 http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 03 10:13:25 2006 Date: Tue, 03 Jan 2006 10:11:32 -0500 From: don.barclay@srs.gov Subject: Re: [sqr-users] Anyone out there? Denise, I bcc'd you on this so you could see the response. There may be a problem with the digests. I have been getting about a dozen e-mails a week from the list. I checked the web-site, and I see 164 posts since 10/1/05 (the recent messages page is ordered oldest to newest, so you'll have to scroll down to see the latest posts). Don sqr-users-bounces+don.barclay=srs.gov@sqrug.org wrote on 01/03/2006 09:23:48 AM: > Is this list dead? I am still getting the monthly hints email, but have > not gotten any digests for months (other than the one with the monthly > hints). I checked the website, but there do not seem to be any new > posts since 10/1/2005. What happened? > > Denise M. White > EBS Programmer/Analyst III > Dynamics Research Corporation > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 03 10:32:26 2006 Date: Tue, 3 Jan 2006 07:29:59 -0800 (PST) From: Sam Spritzer Subject: Re: [sqr-users] Anyone out there? I am here. I get a few posts occasionally but not like in the old days. "White . Denise" wrote: Is this list dead? I am still getting the monthly hints email, but have not gotten any digests for months (other than the one with the monthly hints). I checked the website, but there do not seem to be any new posts since 10/1/2005. What happened? Denise M. White EBS Programmer/Analyst III Dynamics Research Corporation _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ************************************************************ "In the beginning, there was something...which exploded yet, they find nothing." --------------------------------- Yahoo! Photos Ring in the New Year with Photo Calendars. Add photos, events, holidays, whatever. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Mar 01 16:15:31 2006 Subject: RE: [sqr-users] Anyone out there? Date: Wed, 1 Mar 2006 15:12:58 -0600 From: "Lindquist, Maria" What is the link for that ittoolbox.com? =20 -----Original Message----- From: sqr-users-bounces+mlindqui=3Duwc.edu@sqrug.org [mailto:sqr-users-bounces+mlindqui=3Duwc.edu@sqrug.org] On Behalf Of Tom Vincent Sent: Tuesday, January 03, 2006 8:40 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] Anyone out there? Well, obviously all the possible SQR questions have been answered. :) =20=20=20 Seriously, I think a lot of SQR people get their info from the list on IT Toolbox. There's about 3,000 subscribers to that list. =20=20=20 Tom DE "White . Denise" wrote: Is this list dead? I am still getting the monthly hints email, but have not gotten any digests for months (other than the one with the monthly hints). I checked the website, but there do not seem to be any new posts since 10/1/2005. What happened? Denise M. White EBS Programmer/Analyst III Dynamics Research Corporation _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users =20=20 -*-*-*-*-*-*-*-*-* Tom Vincent -*-*-*-*-*-*-*-*-* "The test of our progress is not whether we add more to the abundance of those who have much; it is whether we provide enough for those who have too little." - Franklin Roosevelt _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/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 Mar 01 16:27:13 2006 Subject: RE: [sqr-users] Anyone out there? Date: Wed, 1 Mar 2006 15:25:16 -0600 From: "Thompson, Betty P" http://www.ittoolbox.com/ -----Original Message----- From: sqr-users-bounces+thompsob=3Duww.edu@sqrug.org [mailto:sqr-users-bounces+thompsob=3Duww.edu@sqrug.org] On Behalf Of Lindquist, Maria Sent: Wednesday, March 01, 2006 3:13 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Anyone out there? What is the link for that ittoolbox.com? =20 -----Original Message----- From: sqr-users-bounces+mlindqui=3Duwc.edu@sqrug.org [mailto:sqr-users-bounces+mlindqui=3Duwc.edu@sqrug.org] On Behalf Of Tom Vincent Sent: Tuesday, January 03, 2006 8:40 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] Anyone out there? Well, obviously all the possible SQR questions have been answered. :) =20=20=20 Seriously, I think a lot of SQR people get their info from the list on IT Toolbox. There's about 3,000 subscribers to that list. =20=20=20 Tom DE "White . Denise" wrote: Is this list dead? I am still getting the monthly hints email, but have not gotten any digests for months (other than the one with the monthly hints). I checked the website, but there do not seem to be any new posts since 10/1/2005. What happened? Denise M. White EBS Programmer/Analyst III Dynamics Research Corporation _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users =20=20 -*-*-*-*-*-*-*-*-* Tom Vincent -*-*-*-*-*-*-*-*-* "The test of our progress is not whether we add more to the abundance of those who have much; it is whether we provide enough for those who have too little." - Franklin Roosevelt _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Mar 15 09:23:23 2006 From: "CGServices - HRIS Desk" Subject: RE: [sqr-users] Anyone out there? Date: Wed, 15 Mar 2006 09:20:53 -0500 In all jesting fun - there are signs of artificial intelligence all over the place... :) -----Original Message----- From: sqr-users-bounces+hris=cgservices.com@sqrug.org [mailto:sqr-users-bounces+hris=cgservices.com@sqrug.org] On Behalf Of Thompson, Betty P Sent: Wednesday, March 01, 2006 4:25 PM To: This list is for discussion about the SQR database reportinglanguagefrom Hyperion Solutions. Subject: RE: [sqr-users] Anyone out there? http://www.ittoolbox.com/ -----Original Message----- From: sqr-users-bounces+thompsob=uww.edu@sqrug.org [mailto:sqr-users-bounces+thompsob=uww.edu@sqrug.org] On Behalf Of Lindquist, Maria Sent: Wednesday, March 01, 2006 3:13 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Anyone out there? What is the link for that ittoolbox.com? -----Original Message----- From: sqr-users-bounces+mlindqui=uwc.edu@sqrug.org [mailto:sqr-users-bounces+mlindqui=uwc.edu@sqrug.org] On Behalf Of Tom Vincent Sent: Tuesday, January 03, 2006 8:40 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] Anyone out there? Well, obviously all the possible SQR questions have been answered. :) Seriously, I think a lot of SQR people get their info from the list on IT Toolbox. There's about 3,000 subscribers to that list. Tom DE "White . Denise" wrote: Is this list dead? I am still getting the monthly hints email, but have not gotten any digests for months (other than the one with the monthly hints). I checked the website, but there do not seem to be any new posts since 10/1/2005. What happened? Denise M. White EBS Programmer/Analyst III Dynamics Research Corporation _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users -*-*-*-*-*-*-*-*-* Tom Vincent -*-*-*-*-*-*-*-*-* "The test of our progress is not whether we add more to the abundance of those who have much; it is whether we provide enough for those who have too little." - Franklin Roosevelt _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Mar 15 16:20:55 2006 Date: Wed, 15 Mar 2006 16:17:41 -0500 From: =?ISO-8859-1?Q?Eric_Gigu=E8re?= Subject: Re: [sqr-users] Anyone out there? I'm not an artificial one! :) Auto-replies never give answers to questions, a shame! :P Eric. CGServices - HRIS Desk wrote: > In all jesting fun - there are signs of artificial intelligence all over the > place... :) > > -----Original Message----- > From: sqr-users-bounces+hris=cgservices.com@sqrug.org > [mailto:sqr-users-bounces+hris=cgservices.com@sqrug.org] On Behalf Of > Thompson, Betty P > Sent: Wednesday, March 01, 2006 4:25 PM > To: This list is for discussion about the SQR database reportinglanguagefrom > Hyperion Solutions. > Subject: RE: [sqr-users] Anyone out there? > > http://www.ittoolbox.com/ > > -----Original Message----- > From: sqr-users-bounces+thompsob=uww.edu@sqrug.org > [mailto:sqr-users-bounces+thompsob=uww.edu@sqrug.org] On Behalf Of > Lindquist, Maria > Sent: Wednesday, March 01, 2006 3:13 PM > To: This list is for discussion about the SQR database reportinglanguage > fromHyperion Solutions. > Subject: RE: [sqr-users] Anyone out there? > > What is the link for that ittoolbox.com? > > > -----Original Message----- > From: sqr-users-bounces+mlindqui=uwc.edu@sqrug.org > [mailto:sqr-users-bounces+mlindqui=uwc.edu@sqrug.org] On Behalf Of Tom > Vincent > Sent: Tuesday, January 03, 2006 8:40 AM > To: This list is for discussion about the SQR database reporting > languagefrom Hyperion Solutions. > Subject: Re: [sqr-users] Anyone out there? > > Well, obviously all the possible SQR questions have been answered. :) > > Seriously, I think a lot of SQR people get their info from the list on IT > Toolbox. There's about 3,000 subscribers to that list. > > Tom > DE > > "White . Denise" wrote: > Is this list dead? I am still getting the monthly hints email, but have > not gotten any digests for months (other than the one with the monthly > hints). I checked the website, but there do not seem to be any new posts > since 10/1/2005. What happened? > > Denise M. White > EBS Programmer/Analyst III > Dynamics Research Corporation > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > -*-*-*-*-*-*-*-*-* > Tom Vincent > > -*-*-*-*-*-*-*-*-* > > "The test of our progress is not whether we add more to the abundance of > those who have much; it is whether we provide enough for those who have too > little." - Franklin Roosevelt > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > 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 Thu Jan 05 13:39:11 2006 Date: Thu, 5 Jan 2006 13:37:02 -0500 From: "Kaithi, Murali" Subject: [sqr-users] Rounding to the next whole number I have to divide a number by 10 and if the resulting number is not a whole number, I have to Round up to the next whole number. How can I accomplish this? Appreciate your response. Thanks, Murali ________________________________________________________________________ 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 Thu Jan 05 13:43:09 2006 Subject: RE: [sqr-users] Rounding to the next whole number Date: Thu, 5 Jan 2006 13:41:21 -0500 From: "Sudheer Bachu" Hi murali, You can divide the number with any number and id it is an amount edit the number while printing like Your_final_print_variable =3D edit(&calculated_number,'$$$,$$$,$$0' )=20= =20 Else it is just a number then use this PRINT $ Your_final_print_variable (0,+{col_sep},{col_amt}) edit 999 Thanks Sudheer Bachu -----Original Message----- From: sqr-users-bounces+sbachu=3Dcreditacceptance.com@sqrug.org [mailto:sqr-users-bounces+sbachu=3Dcreditacceptance.com@sqrug.org] On Behalf Of Kaithi, Murali Sent: Thursday, January 05, 2006 1:37 PM To: This list is for discussion about the SQR database reporting languagefromHyperion Solutions. Subject: [sqr-users] Rounding to the next whole number I have to divide a number by 10 and if the resulting number is not a whole number, I have to Round up to the next whole number. How can I accomplish this? Appreciate your response. Thanks, Murali ________________________________________________________________________ This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.com. ________________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jan 05 13:56:10 2006 Subject: RE: [sqr-users] Rounding to the next whole number Date: Thu, 5 Jan 2006 13:53:43 -0500 From: "Kaithi, Murali" Sudheer, Thanks for your reply,=20 I am not trying to print the result, after I divide the number, I just want to investigate the result whether it is a whole number or not if not get the next whole number. How do I investigate the result number after dividing. Thanks, 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 Sudheer Bachu Sent: Thursday, January 05, 2006 1:41 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Rounding to the next whole number Hi murali, You can divide the number with any number and id it is an amount edit the number while printing like Your_final_print_variable =3D edit(&calculated_number,'$$$,$$$,$$0' )=20=20 Else it is just a number then use this PRINT $ Your_final_print_variable (0,+{col_sep},{col_amt}) edit 999 Thanks Sudheer Bachu -----Original Message----- From: sqr-users-bounces+sbachu=3Dcreditacceptance.com@sqrug.org [mailto:sqr-users-bounces+sbachu=3Dcreditacceptance.com@sqrug.org] On Behalf Of Kaithi, Murali Sent: Thursday, January 05, 2006 1:37 PM To: This list is for discussion about the SQR database reporting languagefromHyperion Solutions. Subject: [sqr-users] Rounding to the next whole number I have to divide a number by 10 and if the resulting number is not a whole number, I have to Round up to the next whole number. How can I accomplish this? Appreciate your response. Thanks, Murali ________________________________________________________________________ This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.com. ________________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ________________________________________________________________________ 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 Thu Jan 05 14:27:34 2006 From: "Kyle Leonard" Subject: RE: [sqr-users] Rounding to the next whole number Date: Thu, 5 Jan 2006 13:27:49 -0600 Hi Murali, One way to do this is to change the number to a string, look for a decimal point in the string, copy everything after the decimal to a number variable. If it is greater than 0, it is non-whole. If it is equal to 0, whole. begin-procedure check_for_whole_nbr ( #number_in, $whole ) move #number_in to $str_nbr let #offset = instr($str_nbr, '.', 1) let #length = length($str_nbr) let $piece = substr($str_nbr, #offset, #len) move $piece to #piece if #piece > 0 $whole = 'false' else $whole = 'true' end-if end-procedure If there is a simpler way to do this, I'd like to know. I don't remember a function in SQR to do this. Kyle _________________________________________ Kyle J. Leonard Consultant 1Answer Solutions -----Original Message----- From: sqr-users-bounces+kyle.leonard=1answersolutions.com@sqrug.org [mailto:sqr-users-bounces+kyle.leonard=1answersolutions.com@sqrug.org] On Behalf Of Kaithi, Murali Sent: Thursday, January 05, 2006 12:54 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Rounding to the next whole number Sudheer, Thanks for your reply, I am not trying to print the result, after I divide the number, I just want to investigate the result whether it is a whole number or not if not get the next whole number. How do I investigate the result number after dividing. Thanks, Murali -----Original Message----- From: sqr-users-bounces+murali.kaithi=spencergifts.com@sqrug.org [mailto:sqr-users-bounces+murali.kaithi=spencergifts.com@sqrug.org] On Behalf Of Sudheer Bachu Sent: Thursday, January 05, 2006 1:41 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Rounding to the next whole number Hi murali, You can divide the number with any number and id it is an amount edit the number while printing like Your_final_print_variable = edit(&calculated_number,'$$$,$$$,$$0' ) Else it is just a number then use this PRINT $ Your_final_print_variable (0,+{col_sep},{col_amt}) edit 999 Thanks Sudheer Bachu -----Original Message----- From: sqr-users-bounces+sbachu=creditacceptance.com@sqrug.org [mailto:sqr-users-bounces+sbachu=creditacceptance.com@sqrug.org] On Behalf Of Kaithi, Murali Sent: Thursday, January 05, 2006 1:37 PM To: This list is for discussion about the SQR database reporting languagefromHyperion Solutions. Subject: [sqr-users] Rounding to the next whole number I have to divide a number by 10 and if the resulting number is not a whole number, I have to Round up to the next whole number. How can I accomplish this? Appreciate your response. Thanks, Murali ________________________________________________________________________ This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.com. ________________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ________________________________________________________________________ This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.com. ________________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jan 05 14:06:04 2006 Subject: RE: [sqr-users] Rounding to the next whole number Date: Thu, 5 Jan 2006 14:02:29 -0500 From: "Peter Burton" Murali, mod -- Returns the fractional remainder, f, of x_value/ y_value such that x_value = i * y_value + f, where i is an integer, f has the same sign as x_value, and the absolute value of f is less than the absolute value of y_value. The arguments are promoted to the type of the greatest precision and the function returns a value of that type. Syntax: dst_var = mod(x_value, y_value) $B!|(J x_value = decimal, float, or integer literal, column, variable, or expression. $B!|(J y_value = decimal, float, or integer literal, column, variable, or expression. $B!|(J dst_var = decimal, float, or integer variable. Example: let #fmodvar = mod(#fxvar, #fyvar) Peter -----Original Message----- From: sqr-users-bounces+peter_burton=hyperion.com@sqrug.org [mailto:sqr-users-bounces+peter_burton=hyperion.com@sqrug.org] On Behalf Of Kaithi, Murali Sent: Thursday, January 05, 2006 1:54 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Rounding to the next whole number Sudheer, Thanks for your reply, I am not trying to print the result, after I divide the number, I just want to investigate the result whether it is a whole number or not if not get the next whole number. How do I investigate the result number after dividing. Thanks, Murali -----Original Message----- From: sqr-users-bounces+murali.kaithi=spencergifts.com@sqrug.org [mailto:sqr-users-bounces+murali.kaithi=spencergifts.com@sqrug.org] On Behalf Of Sudheer Bachu Sent: Thursday, January 05, 2006 1:41 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Rounding to the next whole number Hi murali, You can divide the number with any number and id it is an amount edit the number while printing like Your_final_print_variable = edit(&calculated_number,'$$$,$$$,$$0' ) Else it is just a number then use this PRINT $ Your_final_print_variable (0,+{col_sep},{col_amt}) edit 999 Thanks Sudheer Bachu -----Original Message----- From: sqr-users-bounces+sbachu=creditacceptance.com@sqrug.org [mailto:sqr-users-bounces+sbachu=creditacceptance.com@sqrug.org] On Behalf Of Kaithi, Murali Sent: Thursday, January 05, 2006 1:37 PM To: This list is for discussion about the SQR database reporting languagefromHyperion Solutions. Subject: [sqr-users] Rounding to the next whole number I have to divide a number by 10 and if the resulting number is not a whole number, I have to Round up to the next whole number. How can I accomplish this? Appreciate your response. Thanks, Murali ________________________________________________________________________ This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.com. ________________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ________________________________________________________________________ This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.com. ________________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jan 05 14:09:49 2006 Subject: Re: [sqr-users] Rounding to the next whole number From: Roger.Harris@certegy.com Date: Thu, 5 Jan 2006 14:06:06 -0500 Try this Let #result = Ceil(#value / 10) |---------+----------------------------------------------------> | | "Kaithi, Murali" | | | | | | Sent by: | | | sqr-users-bounces+roger.harris=certegy.co| | | m@sqrug.org | | | | | | | | | 01/05/2006 01:37 PM | | | Please respond to "This list is for | | | discussion about the SQR database | | | reporting language from Hyperion | | | Solutions." | | | | |---------+----------------------------------------------------> >----------------------------------------------------------------------------------------------| | | | To: "This list is for discussion about the SQR database reporting languagefrom | | Hyperion Solutions." | | cc: | | Subject: [sqr-users] Rounding to the next whole number | >----------------------------------------------------------------------------------------------| I have to divide a number by 10 and if the resulting number is not a whole number, I have to Round up to the next whole number. How can I accomplish this? Appreciate your response. Thanks, Murali ________________________________________________________________________ This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.com. ________________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------------ This message contains information from Certegy, Inc which may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e:mail postmaster@certegy.com. ============================================================================== _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jan 05 14:12:49 2006 Subject: RE: [sqr-users] Rounding to the next whole number Date: Thu, 5 Jan 2006 13:06:27 -0600 From: "Bob Stone" Try truncating it, then compare the truncated value to the original. If they're not equal, then add 1 to the truncated value to get your 'rounded up' whole number. -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of Kaithi, Murali Sent: Thursday, January 05, 2006 12:54 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: [sqr-users] Rounding to the next whole number Sudheer, Thanks for your reply,=20 I am not trying to print the result, after I divide the number, I just want to investigate the result whether it is a whole number or not if not get the next whole number. How do I investigate the result number after dividing. Thanks, 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 Sudheer Bachu Sent: Thursday, January 05, 2006 1:41 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Rounding to the next whole number Hi murali, You can divide the number with any number and id it is an amount edit the number while printing like Your_final_print_variable =3D edit(&calculated_number,'$$$,$$$,$$0' )=20=20 Else it is just a number then use this PRINT $ Your_final_print_variable (0,+{col_sep},{col_amt}) edit 999 Thanks Sudheer Bachu -----Original Message----- From: sqr-users-bounces+sbachu=3Dcreditacceptance.com@sqrug.org [mailto:sqr-users-bounces+sbachu=3Dcreditacceptance.com@sqrug.org] On Behalf Of Kaithi, Murali Sent: Thursday, January 05, 2006 1:37 PM To: This list is for discussion about the SQR database reporting languagefromHyperion Solutions. Subject: [sqr-users] Rounding to the next whole number I have to divide a number by 10 and if the resulting number is not a whole number, I have to Round up to the next whole number. How can I accomplish this? Appreciate your response. Thanks, Murali ________________________________________________________________________ This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.com. ________________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ________________________________________________________________________ This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.com. ________________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jan 05 14:23:49 2006 Subject: Re: [sqr-users] Rounding to the next whole number From: JOHN_HARRIS@qvc.com Date: Thu, 5 Jan 2006 14:20:58 -0500 This is a multi-part message in MIME format... --0__=0ABBFA7EDFFB47468f9e8a93df938690918c0ABBFA7EDFFB4746 Content-type: text/plain; charset=US-ASCII You can use the ROUND function. This will return a rounded value, rounded to x decimals of precision. Example: LET #OLD_NUMBER = 36.5156 LET #NEW_NUMBER = ROUND(#OLD_NUMBER,2) Post execution value: 36.5200 Example: LET #OLD_NUMBER = 36.5156 LET #NEW_NUMBER = ROUND(#OLD_NUMBER,0) Post execution value: 37.0000 Thank you. Regards, John (Embedded image moved John Harris to file: Programmer/Analyst pic28703.jpg) Application Development - Internal QVC Inc., 1200 Wilson Drive, MC 220, West Chester, PA 19380-4262 Telephone 484-701-3303 Fax 484-701-8689 e-mail jharris@qvc.com This message may contain information that is privileged or confidential. This message may contain information that is privileged or confidential. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. |---------+-----------------------------------------------> | | "Kaithi, Murali" | | | | | | Ext: | | | Sent by: | | | sqr-users-bounces+john_harris=qvc.co| | | m@sqrug.org | | | | | | | | | 01/05/2006 01:37 PM | | | Please respond to "This list is for | | | discussion about the SQR database | | | reporting language from | | | Hyperion Solutions." | | | | |---------+-----------------------------------------------> >------------------------------------------------------------------------------------------------------------------------------| | | | To: "This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions." | | | | cc: (bcc: JOHN HARRIS/QVC) | | Subject: [sqr-users] Rounding to the next whole number | >------------------------------------------------------------------------------------------------------------------------------| I have to divide a number by 10 and if the resulting number is not a whole number, I have to Round up to the next whole number. How can I accomplish this? Appreciate your response. Thanks, Murali ________________________________________________________________________ This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.com. ________________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --0__=0ABBFA7EDFFB47468f9e8a93df938690918c0ABBFA7EDFFB4746 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__=0ABBFA7EDFFB47468f9e8a93df938690918c0ABBFA7EDFFB4746 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__=0ABBFA7EDFFB47468f9e8a93df938690918c0ABBFA7EDFFB4746-- From sqr-users-bounces@sqrug.org Thu Jan 05 14:37:34 2006 Subject: RE: [sqr-users] Rounding to the next whole number Date: Thu, 5 Jan 2006 14:35:05 -0500 From: "Kaithi, Murali" John, Thanks for the reply, Your second example is what I want but wouldn't it give me 36 if the #OLD_NUMBER is 36.4156 but I still want 37. Thanks, 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 JOHN_HARRIS@qvc.com Sent: Thursday, January 05, 2006 2:21 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] Rounding to the next whole number You can use the ROUND function. This will return a rounded value, rounded to x decimals of precision. Example: LET #OLD_NUMBER =3D 36.5156 LET #NEW_NUMBER =3D ROUND(#OLD_NUMBER,2) Post execution value: 36.5200 Example: LET #OLD_NUMBER =3D 36.5156 LET #NEW_NUMBER =3D ROUND(#OLD_NUMBER,0) Post execution value: 37.0000 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=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 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 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 (Embedded image moved John Harris=20=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 file: Programmer/Analyst=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20 pic28703.jpg) Application Development - 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 QVC Inc., 1200 Wilson Drive, MC 220, West Chester, PA 19380-4262 Telephone 484-701-3303 Fax 484-701-8689 e-mail jharris@qvc.com This message may contain information that is privileged or confidential. This message may contain information that is privileged or confidential. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. |---------+-----------------------------------------------> | | "Kaithi, Murali" | | | | | | Ext: | | | Sent by: | | | sqr-users-bounces+john_harris=3Dqvc.co| | | m@sqrug.org | | | | | | | | | 01/05/2006 01:37 PM | | | Please respond to "This list is for | | | discussion about the SQR database | | | reporting language from | | | Hyperion Solutions." | | | | |---------+-----------------------------------------------> =20 >----------------------------------------------------------------------- -------------------------------------------------------| | | | To: "This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions." | | | | cc: (bcc: JOHN HARRIS/QVC) | | Subject: [sqr-users] Rounding to the next whole number | =20 >----------------------------------------------------------------------- -------------------------------------------------------| I have to divide a number by 10 and if the resulting number is not a whole number, I have to Round up to the next whole number. How can I accomplish this? Appreciate your response. Thanks, Murali ________________________________________________________________________ This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.com. ________________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ________________________________________________________________________ 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 Thu Jan 05 14:41:12 2006 Subject: RE: [sqr-users] Rounding to the next whole number Date: Thu, 5 Jan 2006 14:37:44 -0500 From: "Kaithi, Murali" Kyle, Thank you very much for your resolution. I guess I will go with this unless I find a easier or smaller code. Thanks again, 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 Kyle Leonard Sent: Thursday, January 05, 2006 2:28 PM To: 'This list is for discussion about the SQR database reportinglanguagefrom Hyperion Solutions.' Subject: RE: [sqr-users] Rounding to the next whole number Hi Murali, One way to do this is to change the number to a string, look for a decimal point in the string, copy everything after the decimal to a number variable. If it is greater than 0, it is non-whole. If it is equal to 0, whole. begin-procedure check_for_whole_nbr ( #number_in, $whole ) move #number_in to $str_nbr let #offset =3D instr($str_nbr, '.', 1) let #length =3D length($str_nbr) let $piece =3D substr($str_nbr, #offset, #len) move $piece to #piece if #piece > 0 $whole =3D 'false' else $whole =3D 'true' end-if end-procedure If there is a simpler way to do this, I'd like to know. I don't remember a function in SQR to do this. Kyle _________________________________________ Kyle J. Leonard Consultant 1Answer Solutions -----Original Message----- From: sqr-users-bounces+kyle.leonard=3D1answersolutions.com@sqrug.org [mailto:sqr-users-bounces+kyle.leonard=3D1answersolutions.com@sqrug.org] On Behalf Of Kaithi, Murali Sent: Thursday, January 05, 2006 12:54 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Rounding to the next whole number Sudheer, Thanks for your reply, I am not trying to print the result, after I divide the number, I just want to investigate the result whether it is a whole number or not if not get the next whole number. How do I investigate the result number after dividing. Thanks, 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 Sudheer Bachu Sent: Thursday, January 05, 2006 1:41 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Rounding to the next whole number Hi murali, You can divide the number with any number and id it is an amount edit the number while printing like Your_final_print_variable =3D edit(&calculated_number,'$$$,$$$,$$0' )=20=20 Else it is just a number then use this PRINT $ Your_final_print_variable (0,+{col_sep},{col_amt}) edit 999 Thanks Sudheer Bachu -----Original Message----- From: sqr-users-bounces+sbachu=3Dcreditacceptance.com@sqrug.org [mailto:sqr-users-bounces+sbachu=3Dcreditacceptance.com@sqrug.org] On Behalf Of Kaithi, Murali Sent: Thursday, January 05, 2006 1:37 PM To: This list is for discussion about the SQR database reporting languagefromHyperion Solutions. Subject: [sqr-users] Rounding to the next whole number I have to divide a number by 10 and if the resulting number is not a whole number, I have to Round up to the next whole number. How can I accomplish this? Appreciate your response. Thanks, Murali ________________________________________________________________________ This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.com. ________________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ________________________________________________________________________ This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.com. ________________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ________________________________________________________________________ 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 Thu Jan 05 14:48:47 2006 Date: Thu, 05 Jan 2006 14:46:41 -0500 From: don.barclay@srs.gov Subject: RE: [sqr-users] Rounding to the next whole number Uh, what's wrong with Roger's solution?: Let #result = Ceil(#value / 10) Don't get much simpler than that. Don sqr-users-bounces+don.barclay=srs.gov@sqrug.org wrote on 01/05/2006 02:37:44 PM: > Kyle, > Thank you very much for your resolution. I guess I will go with this > unless I find a easier or smaller code. > > Thanks again, > Murali _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jan 05 15:12:51 2006 From: "Kyle Leonard" Subject: RE: [sqr-users] Rounding to the next whole number Date: Thu, 5 Jan 2006 14:04:08 -0600 There you go...I thought there was a function. Kyle _________________________________________ Kyle J. Leonard Consultant 1Answer Solutions -----Original Message----- From: sqr-users-bounces+kyle.leonard=1answersolutions.com@sqrug.org [mailto:sqr-users-bounces+kyle.leonard=1answersolutions.com@sqrug.org] On Behalf Of don.barclay@srs.gov Sent: Thursday, January 05, 2006 1:47 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] Rounding to the next whole number Uh, what's wrong with Roger's solution?: Let #result = Ceil(#value / 10) Don't get much simpler than that. Don sqr-users-bounces+don.barclay=srs.gov@sqrug.org wrote on 01/05/2006 02:37:44 PM: > Kyle, > Thank you very much for your resolution. I guess I will go with this > unless I find a easier or smaller code. > > Thanks again, > Murali _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jan 05 14:58:52 2006 Subject: RE: [sqr-users] Rounding to the next whole number Date: Thu, 5 Jan 2006 13:51:44 -0600 From: "Bob Stone" I concur. Divide your number by ten and round up. If it's a whole number, you didn't change it (15 ceilings to 15, for example). short sweet and to the point. -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of don.barclay@srs.gov Sent: Thursday, January 05, 2006 1:47 PM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: [sqr-users] Rounding to the next whole number Uh, what's wrong with Roger's solution?: Let #result =3D Ceil(#value / 10) Don't get much simpler than that. Don sqr-users-bounces+don.barclay=3Dsrs.gov@sqrug.org wrote on 01/05/2006=20 02:37:44 PM: > Kyle, > Thank you very much for your resolution. I guess I will go with this > unless I find a easier or smaller code. >=20 > Thanks again, > Murali=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 Jan 05 14:55:10 2006 Subject: RE: [sqr-users] Rounding to the next whole number Date: Thu, 5 Jan 2006 14:51:56 -0500 From: "Kaithi, Murali" Don, I am sorry there is nothing wrong with Roger's solution, it's just I didn't understand Ceil Could you or Roger tell me what is this and where It's coming from. Thanks Roger for replying. Thanks, 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 don.barclay@srs.gov Sent: Thursday, January 05, 2006 2:47 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] Rounding to the next whole number Uh, what's wrong with Roger's solution?: Let #result =3D Ceil(#value / 10) Don't get much simpler than that. Don sqr-users-bounces+don.barclay=3Dsrs.gov@sqrug.org wrote on 01/05/2006 02:37:44 PM: > Kyle, > Thank you very much for your resolution. I guess I will go with this > unless I find a easier or smaller code. >=20 > Thanks again, > Murali=20 _______________________________________________ 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 Thu Jan 05 15:05:32 2006 Date: Thu, 05 Jan 2006 14:55:44 -0500 From: don.barclay@srs.gov Subject: RE: [sqr-users] Rounding to the next whole number Ceiling - returns a value representing the smallest integer that is greater than or equal to a value. Exactly what you are looking for. Don sqr-users-bounces+don.barclay=srs.gov@sqrug.org wrote on 01/05/2006 02:51:56 PM: > Don, > I am sorry there is nothing wrong with Roger's solution, it's just I > didn't understand Ceil > Could you or Roger tell me what is this and where It's coming from. > Thanks Roger for replying. > > Thanks, > Murali _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jan 05 15:02:19 2006 Subject: RE: [sqr-users] Rounding to the next whole number From: Roger.Harris@certegy.com Date: Thu, 5 Jan 2006 14:52:58 -0500 I stand by my previous post. The Ceiling function returns the smallest integer that is greater than or equal to the value, thus Let #result = Ceil(#value / 10) For #value = 100 => #result = 10 For #value > 100 and <= 110 => #result = 11 For #value > 110 and <= 120 => #result = 12 etc This is the most straight forward solution. Roger |---------+----------------------------------------------------> | | "Kaithi, Murali" | | | | | | Sent by: | | | sqr-users-bounces+roger.harris=certegy.co| | | m@sqrug.org | | | | | | | | | 01/05/2006 02:35 PM | | | Please respond to "This list is for | | | discussion about the SQR database | | | reporting language from Hyperion | | | Solutions." | | | | |---------+----------------------------------------------------> >----------------------------------------------------------------------------------------------| | | | To: "This list is for discussion about the SQR database reportinglanguage from | | Hyperion Solutions." | | cc: | | Subject: RE: [sqr-users] Rounding to the next whole number | >----------------------------------------------------------------------------------------------| John, Thanks for the reply, Your second example is what I want but wouldn't it give me 36 if the #OLD_NUMBER is 36.4156 but I still want 37. Thanks, Murali -----Original Message----- From: sqr-users-bounces+murali.kaithi=spencergifts.com@sqrug.org [mailto:sqr-users-bounces+murali.kaithi=spencergifts.com@sqrug.org] On Behalf Of JOHN_HARRIS@qvc.com Sent: Thursday, January 05, 2006 2:21 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] Rounding to the next whole number You can use the ROUND function. This will return a rounded value, rounded to x decimals of precision. Example: LET #OLD_NUMBER = 36.5156 LET #NEW_NUMBER = ROUND(#OLD_NUMBER,2) Post execution value: 36.5200 Example: LET #OLD_NUMBER = 36.5156 LET #NEW_NUMBER = ROUND(#OLD_NUMBER,0) Post execution value: 37.0000 Thank you. Regards, John (Embedded image moved John Harris to file: Programmer/Analyst pic28703.jpg) Application Development - Internal QVC Inc., 1200 Wilson Drive, MC 220, West Chester, PA 19380-4262 Telephone 484-701-3303 Fax 484-701-8689 e-mail jharris@qvc.com This message may contain information that is privileged or confidential. This message may contain information that is privileged or confidential. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. |---------+-----------------------------------------------> | | "Kaithi, Murali" | | | | | | Ext: | | | Sent by: | | | sqr-users-bounces+john_harris=qvc.co| | | m@sqrug.org | | | | | | | | | 01/05/2006 01:37 PM | | | Please respond to "This list is for | | | discussion about the SQR database | | | reporting language from | | | Hyperion Solutions." | | | | |---------+-----------------------------------------------> >----------------------------------------------------------------------- -------------------------------------------------------| | | | To: "This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions." | | | | cc: (bcc: JOHN HARRIS/QVC) | | Subject: [sqr-users] Rounding to the next whole number | >----------------------------------------------------------------------- -------------------------------------------------------| I have to divide a number by 10 and if the resulting number is not a whole number, I have to Round up to the next whole number. How can I accomplish this? Appreciate your response. Thanks, Murali ________________________________________________________________________ This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.com. ________________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ________________________________________________________________________ This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.com. ________________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------------ This message contains information from Certegy, Inc which may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify by e:mail postmaster@certegy.com. ============================================================================== _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jan 05 15:09:38 2006 Subject: RE: [sqr-users] Rounding to the next whole number From: JOHN_HARRIS@qvc.com Date: Thu, 5 Jan 2006 14:56:58 -0500 This is a multi-part message in MIME format... --0__=0ABBFA7EDFFE0F268f9e8a93df938690918c0ABBFA7EDFFE0F26 Content-type: text/plain; charset=US-ASCII CEIL returns the smallest integer that is greater than or equal to the number provided. Thank you. Regards, John (Embedded image moved John Harris to file: Programmer/Analyst pic30333.jpg) Application Development - Internal QVC Inc., 1200 Wilson Drive, MC 220, West Chester, PA 19380-4262 Telephone 484-701-3303 Fax 484-701-8689 e-mail jharris@qvc.com This message may contain information that is privileged or confidential. This message may contain information that is privileged or confidential. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. --0__=0ABBFA7EDFFE0F268f9e8a93df938690918c0ABBFA7EDFFE0F26 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__=0ABBFA7EDFFE0F268f9e8a93df938690918c0ABBFA7EDFFE0F26 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__=0ABBFA7EDFFE0F268f9e8a93df938690918c0ABBFA7EDFFE0F26-- From sqr-users-bounces@sqrug.org Thu Jan 05 15:16:14 2006 Subject: RE: [sqr-users] Rounding to the next whole number Date: Thu, 5 Jan 2006 15:05:10 -0500 From: "Kaithi, Murali" Thank you Roger, I appreciate your help. Thanks, 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 Roger.Harris@certegy.com Sent: Thursday, January 05, 2006 2:53 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] Rounding to the next whole number I stand by my previous post. The Ceiling function returns the smallest integer that is greater than or equal to the value, thus Let #result =3D Ceil(#value / 10) For #value =3D 100 =3D> #result =3D 10 For #value > 100 and <=3D 110 =3D> #result =3D 11 For #value > 110 and <=3D 120 =3D> #result =3D 12 etc This is the most straight forward solution. Roger |---------+----------------------------------------------------> | | "Kaithi, Murali" | | | | | | Sent by: | | | sqr-users-bounces+roger.harris=3Dcertegy.co| | | m@sqrug.org | | | | | | | | | 01/05/2006 02:35 PM | | | Please respond to "This list is for | | | discussion about the SQR database | | | reporting language from Hyperion | | | Solutions." | | | | |---------+----------------------------------------------------> =20 >----------------------------------------------------------------------- -----------------------| | | | To: "This list is for discussion about the SQR database reportinglanguage from | | Hyperion Solutions." | | cc: | | Subject: RE: [sqr-users] Rounding to the next whole number | =20 >----------------------------------------------------------------------- -----------------------| John, Thanks for the reply, Your second example is what I want but wouldn't it give me 36 if the #OLD_NUMBER is 36.4156 but I still want 37. Thanks, 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 JOHN_HARRIS@qvc.com Sent: Thursday, January 05, 2006 2:21 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] Rounding to the next whole number You can use the ROUND function. This will return a rounded value, rounded to x decimals of precision. Example: LET #OLD_NUMBER =3D 36.5156 LET #NEW_NUMBER =3D ROUND(#OLD_NUMBER,2) Post execution value: 36.5200 Example: LET #OLD_NUMBER =3D 36.5156 LET #NEW_NUMBER =3D ROUND(#OLD_NUMBER,0) Post execution value: 37.0000 Thank you. Regards, John (Embedded image moved John Harris to file: Programmer/Analyst pic28703.jpg) Application Development - Internal QVC Inc., 1200 Wilson Drive, MC 220, West Chester, PA 19380-4262 Telephone 484-701-3303 Fax 484-701-8689 e-mail jharris@qvc.com This message may contain information that is privileged or confidential. This message may contain information that is privileged or confidential. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. |---------+-----------------------------------------------> | | "Kaithi, Murali" | | | | | | Ext: | | | Sent by: | | | sqr-users-bounces+john_harris=3Dqvc.co| | | m@sqrug.org | | | | | | | | | 01/05/2006 01:37 PM | | | Please respond to "This list is for | | | discussion about the SQR database | | | reporting language from | | | Hyperion Solutions." | | | | |---------+-----------------------------------------------> >----------------------------------------------------------------------- -------------------------------------------------------| | | | To: "This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions." | | | | cc: (bcc: JOHN HARRIS/QVC) | | Subject: [sqr-users] Rounding to the next whole number | >----------------------------------------------------------------------- -------------------------------------------------------| I have to divide a number by 10 and if the resulting number is not a whole number, I have to Round up to the next whole number. How can I accomplish this? Appreciate your response. Thanks, Murali ________________________________________________________________________ This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.com. ________________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ________________________________________________________________________ This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.com. ________________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------ ------ 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. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ________________________________________________________________________ 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 Jan 06 06:32:15 2006 Subject: RE: [sqr-users] Rounding to the next whole number Date: Fri, 6 Jan 2006 06:29:07 -0500 From: "Bob Buford" Hi Kaithi, I haven't used this, but it is in the SQR Commands list: ceil Returns a value representing the smallest integer that is greater than or equal to num_value. This function returns a value of the same type as num_value.Syntax: dst_var =3D ceil(num_value) num_value =3D decimal, float, or integer literal, column, variable, or expression. dst_var =3D decimal, float, or integer variable. Example: let #fceilvar =3D ceil(#fvar) There's also a command "floor" which works in the opposite manner (largest integer smaller than or equal to num_value). Bob=20 -----Original Message----- From: Kaithi, Murali [mailto:Murali.Kaithi@spencergifts.com]=20 Sent: Thursday, January 05, 2006 1:54 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Rounding to the next whole number Sudheer, Thanks for your reply, I am not trying to print the result, after I divide the number, I just want to investigate the result whether it is a whole number or not if not get the next whole number. How do I investigate the result number after dividing. Thanks, 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 Sudheer Bachu Sent: Thursday, January 05, 2006 1:41 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] Rounding to the next whole number Hi murali, You can divide the number with any number and id it is an amount edit the number while printing like Your_final_print_variable =3D edit(&calculated_number,'$$$,$$$,$$0' )=20=20 Else it is just a number then use this PRINT $ Your_final_print_variable (0,+{col_sep},{col_amt}) edit 999 Thanks Sudheer Bachu -----Original Message----- From: sqr-users-bounces+sbachu=3Dcreditacceptance.com@sqrug.org [mailto:sqr-users-bounces+sbachu=3Dcreditacceptance.com@sqrug.org] On Behalf Of Kaithi, Murali Sent: Thursday, January 05, 2006 1:37 PM To: This list is for discussion about the SQR database reporting languagefromHyperion Solutions. Subject: [sqr-users] Rounding to the next whole number I have to divide a number by 10 and if the resulting number is not a whole number, I have to Round up to the next whole number. How can I accomplish this? Appreciate your response. Thanks, Murali ________________________________________________________________________ This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.com. ________________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ________________________________________________________________________ This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.com. ________________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jan 06 09:08:22 2006 Subject: RE: [sqr-users] Rounding to the next whole number Date: Fri, 6 Jan 2006 09:06:06 -0500 From: "Kaithi, Murali" Roger, Thanks for your reply, I applied it and it's working perfectly. Thanks for everybody else for kind responses. I think I need to brush up my SQR skills now to dig new cool functions like this. Thanks, 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 Roger.Harris@certegy.com Sent: Thursday, January 05, 2006 2:53 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] Rounding to the next whole number I stand by my previous post. The Ceiling function returns the smallest integer that is greater than or equal to the value, thus Let #result =3D Ceil(#value / 10) For #value =3D 100 =3D> #result =3D 10 For #value > 100 and <=3D 110 =3D> #result =3D 11 For #value > 110 and <=3D 120 =3D> #result =3D 12 etc This is the most straight forward solution. Roger |---------+----------------------------------------------------> | | "Kaithi, Murali" | | | | | | Sent by: | | | sqr-users-bounces+roger.harris=3Dcertegy.co| | | m@sqrug.org | | | | | | | | | 01/05/2006 02:35 PM | | | Please respond to "This list is for | | | discussion about the SQR database | | | reporting language from Hyperion | | | Solutions." | | | | |---------+----------------------------------------------------> =20 >----------------------------------------------------------------------- -----------------------| | | | To: "This list is for discussion about the SQR database reportinglanguage from | | Hyperion Solutions." | | cc: | | Subject: RE: [sqr-users] Rounding to the next whole number | =20 >----------------------------------------------------------------------- -----------------------| John, Thanks for the reply, Your second example is what I want but wouldn't it give me 36 if the #OLD_NUMBER is 36.4156 but I still want 37. Thanks, 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 JOHN_HARRIS@qvc.com Sent: Thursday, January 05, 2006 2:21 PM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: Re: [sqr-users] Rounding to the next whole number You can use the ROUND function. This will return a rounded value, rounded to x decimals of precision. Example: LET #OLD_NUMBER =3D 36.5156 LET #NEW_NUMBER =3D ROUND(#OLD_NUMBER,2) Post execution value: 36.5200 Example: LET #OLD_NUMBER =3D 36.5156 LET #NEW_NUMBER =3D ROUND(#OLD_NUMBER,0) Post execution value: 37.0000 Thank you. Regards, John (Embedded image moved John Harris to file: Programmer/Analyst pic28703.jpg) Application Development - Internal QVC Inc., 1200 Wilson Drive, MC 220, West Chester, PA 19380-4262 Telephone 484-701-3303 Fax 484-701-8689 e-mail jharris@qvc.com This message may contain information that is privileged or confidential. This message may contain information that is privileged or confidential. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. |---------+-----------------------------------------------> | | "Kaithi, Murali" | | | | | | Ext: | | | Sent by: | | | sqr-users-bounces+john_harris=3Dqvc.co| | | m@sqrug.org | | | | | | | | | 01/05/2006 01:37 PM | | | Please respond to "This list is for | | | discussion about the SQR database | | | reporting language from | | | Hyperion Solutions." | | | | |---------+-----------------------------------------------> >----------------------------------------------------------------------- -------------------------------------------------------| | | | To: "This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions." | | | | cc: (bcc: JOHN HARRIS/QVC) | | Subject: [sqr-users] Rounding to the next whole number | >----------------------------------------------------------------------- -------------------------------------------------------| I have to divide a number by 10 and if the resulting number is not a whole number, I have to Round up to the next whole number. How can I accomplish this? Appreciate your response. Thanks, Murali ________________________________________________________________________ This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.com. ________________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ________________________________________________________________________ This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.com. ________________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------ ------ 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. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ________________________________________________________________________ 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 Thu Jan 05 23:18:30 2006 Date: 6 Jan 2006 04:16:32 -0000 From: "Srinivas Reddy" Subject: [sqr-users] Sending Email through SQR prog. =A0 Hi, Am Srinivas Reddy working with Aditya Birla Group. I hav generated Payslip for all employees in particular paygroup. then I ne= ed to send this generated PDF format payslip to all these employee personal= mail IDs. Is there any option in SQR to do this ? we are running SQR repor= ts on Windows NT. Let me know if yu have any solution.. Thanks & regards Srinivas Reddy srinivas.reddy@transworks.com 09322946654 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jan 06 10:52:03 2006 Date: Fri, 6 Jan 2006 07:49:40 -0800 (PST) From: prashanth reddy Subject: [sqr-users] fetch value in array Hi, I'm working on sqr interface where in I read data from flat file and before loading into table have to validate data(i.e, emplid exists in Peoplesoft). The sorted(by emplid) flat file has duplicate emplid with unique grantnumbers. When I identify emplid who don't exist in Psoft, they should be printed on report with emplid and count of duplicate emplid(count of grants). If $id = $oldid let #cnt = #cnt + 1 !show 'Emplid: ' $id ' count: ' #cnt Else show 'Emplid: ' $oldid ' count:' #cnt let #cnt = 1 End-if let $oldid = $id This is the logic I'm using to get count for duplicates. But initially for the first emplid there is no $oldid(previous value), it shows in else condition and skips the last row. Emplid Grant xyz 112 xyz 231 xyz 145 yxz 133 yxz 245 zyx 115 In short the report format should be like Emplid Count xyz 3 yxz 2 zyx 1 Thanks Prashanth __________________________________________ Yahoo! DSL – Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jan 06 11:45:35 2006 Date: Fri, 6 Jan 2006 08:43:19 -0800 (PST) From: prashanth reddy Subject: [sqr-users] fetch value in array Hi, I'm using array in sqr and data in array looks like this: Emplid Company Count XYZ A 1 XYZ A 2 XYZ A 3 YXZ B 1 YXZ B 2 YXZ B 3 ZYX A 1 YZX B 1 >From this array I'm supposed to get max count for each emplid, i.e for emplid XYZ have to get line 3 (XYZ A 3), for emplid YXZ (YXZ B 3) and for emplid ZYX (ZYX A 1). When i compare row value, I'm not able to get the correct results. Any help or suggestion would be appreciated. Thanks, Prashanth __________________________________________ Yahoo! DSL – Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jan 06 12:01:26 2006 Subject: RE: [sqr-users] fetch value in array Date: Fri, 6 Jan 2006 10:59:00 -0600 From: "Bob Stone" wow. convoluted example....nice use of the same 3 letters all caps for 5 different employees...real readable. So, I'm going to pretend the first guy is ABC, second is LMN, and third is XYZ. Or maybe we got Jones, Smith, and Grady. ...XYZ ZYX YZX YXZ, not so good. select * from YOURTABLE a where (a.emplid, a.company, a.count) in=20 (select b.emplid, b.company, b.count from yourtable b where a.emplid =3D b.emplid and a.company =3D b.company and b.count =3D ( select max(c.count) from YOURTABLE c where b.emplid =3D c.emplid and b.company =3D c.company) Is there an easier way? probably. do you have to join 3 times? maybe not. It's just what I would try. -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of prashanth reddy Sent: Friday, January 06, 2006 10:43 AM To: sqr-users@sqrug.org Subject: [sqr-users] fetch value in array Hi, =20 I'm using array in sqr and data in array looks like this: =20 Emplid Company Count XYZ A 1 XYZ A 2 XYZ A 3 YXZ B 1 YXZ B 2 YXZ B 3 ZYX A 1 YZX B 1 >From this array I'm supposed to get max count for each emplid, i.e for emplid XYZ have to get line 3 (XYZ A 3), for emplid YXZ (YXZ B 3) and for emplid ZYX (ZYX A 1). When i compare row value, I'm not able to get the correct results. Any help or suggestion would be appreciated. Thanks, Prashanth=20=20=20=20=20=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jan 06 13:10:18 2006 Date: Fri, 6 Jan 2006 10:07:55 -0800 (PST) From: prashanth reddy Subject: RE: [sqr-users] fetch value in array Thanks for the reply.. I'm getting data from flat file not from table. Thats the reason I'm using array. What I'm doing is reading data from flat file, validating emplid in ps_job record, if emplid doesn't exist in job record, emplid and max count should show on report. Thanks, Prashanth --- Bob Stone wrote: > wow. convoluted example....nice use of the same 3 > letters all caps for > 5 different employees...real readable. > > So, I'm going to pretend the first guy is ABC, > second is LMN, and third > is XYZ. Or maybe we got Jones, Smith, and Grady. > ...XYZ ZYX YZX YXZ, > not so good. > > select * > from YOURTABLE a > where (a.emplid, a.company, a.count) in > (select b.emplid, b.company, b.count from > yourtable b > where a.emplid = b.emplid and a.company = > b.company > and b.count = ( select max(c.count) from > YOURTABLE c where > > b.emplid = c.emplid and > b.company = c.company) > > Is there an easier way? probably. do you have to > join 3 times? maybe > not. It's just what I would try. > > > -----Original Message----- > From: > sqr-users-bounces+bstone=fastenal.com@sqrug.org > [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org] > On Behalf Of > prashanth reddy > Sent: Friday, January 06, 2006 10:43 AM > To: sqr-users@sqrug.org > Subject: [sqr-users] fetch value in array > > Hi, > > I'm using array in sqr and data in array looks like > this: > > Emplid Company Count > XYZ A 1 > XYZ A 2 > XYZ A 3 > YXZ B 1 > YXZ B 2 > YXZ B 3 > ZYX A 1 > YZX B 1 > > >From this array I'm supposed to get max count for > each > emplid, i.e for emplid XYZ have to get line 3 (XYZ > A > 3), for emplid YXZ (YXZ B 3) and for emplid ZYX > (ZYX > A 1). > > When i compare row value, I'm not able to get the > correct results. > Any help or suggestion would be appreciated. > > Thanks, > Prashanth > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > __________________________________________ Yahoo! DSL – Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jan 06 14:37:32 2006 From: "the dragon" Subject: RE: [sqr-users] fetch value in array Date: Fri, 06 Jan 2006 13:35:28 -0600 First you'll need to sort the array to make certain it's in order; you may need to build a key for this.. Then you'll need to parse through the table and find the maximum values for any record, and then do whatever that needs to happen to that record. Or, you could create a temp table, insert the flat file records into that temp table and then select the values out that you need. This is a lot cleaner, faster and will allow you to use the database for the processing. You're a programmer, so I'll let you build the actual code. 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---- Thanks for the reply.. I'm getting data from flat file not from table. Thats the reason I'm using array. What I'm doing is reading data from flat file, validating emplid in ps_job record, if emplid doesn't exist in job record, emplid and max count should show on report. Thanks, Prashanth --- Bob Stone wrote: > wow. convoluted example....nice use of the same 3 > letters all caps for > 5 different employees...real readable. > > So, I'm going to pretend the first guy is ABC, > second is LMN, and third > is XYZ. Or maybe we got Jones, Smith, and Grady. > ...XYZ ZYX YZX YXZ, > not so good. > > select * > from YOURTABLE a > where (a.emplid, a.company, a.count) in > (select b.emplid, b.company, b.count from > yourtable b > where a.emplid = b.emplid and a.company = > b.company > and b.count = ( select max(c.count) from > YOURTABLE c where > > b.emplid = c.emplid and > b.company = c.company) > > Is there an easier way? probably. do you have to > join 3 times? maybe > not. It's just what I would try. > > > -----Original Message----- > > Hi, > > I'm using array in sqr and data in array looks like > this: > > Emplid Company Count > XYZ A 1 > XYZ A 2 > XYZ A 3 > YXZ B 1 > YXZ B 2 > YXZ B 3 > ZYX A 1 > YZX B 1 > > >From this array I'm supposed to get max count for > each > emplid, i.e for emplid XYZ have to get line 3 (XYZ > A > 3), for emplid YXZ (YXZ B 3) and for emplid ZYX > (ZYX > A 1). > > When i compare row value, I'm not able to get the > correct results. > Any help or suggestion would be appreciated. > > Thanks, > Prashanth > > _________________________________________________________________ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jan 25 04:44:34 2006 From: "Steve Cavill" Subject: RE: [sqr-users] fetch value in array Date: Wed, 25 Jan 2006 20:41:18 +1100 Load the table into a temp table and use on-break to identify the last record on each employee group. 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 Bob Stone Sent: Saturday, 7 January 2006 3:59 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] fetch value in array wow. convoluted example....nice use of the same 3 letters all caps for 5 different employees...real readable. So, I'm going to pretend the first guy is ABC, second is LMN, and third is XYZ. Or maybe we got Jones, Smith, and Grady. ...XYZ ZYX YZX YXZ, not so good. select * from YOURTABLE a where (a.emplid, a.company, a.count) in (select b.emplid, b.company, b.count from yourtable b where a.emplid = b.emplid and a.company = b.company and b.count = ( select max(c.count) from YOURTABLE c where b.emplid = c.emplid and b.company = c.company) Is there an easier way? probably. do you have to join 3 times? maybe not. It's just what I would try. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org] On Behalf Of prashanth reddy Sent: Friday, January 06, 2006 10:43 AM To: sqr-users@sqrug.org Subject: [sqr-users] fetch value in array Hi, I'm using array in sqr and data in array looks like this: Emplid Company Count XYZ A 1 XYZ A 2 XYZ A 3 YXZ B 1 YXZ B 2 YXZ B 3 ZYX A 1 YZX B 1 >From this array I'm supposed to get max count for each emplid, i.e for emplid XYZ have to get line 3 (XYZ A 3), for emplid YXZ (YXZ B 3) and for emplid ZYX (ZYX A 1). When i compare row value, I'm not able to get the correct results. Any help or suggestion would be appreciated. Thanks, Prashanth _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jan 25 05:48:34 2006 From: "Gopal Krishan" Subject: RE: [sqr-users] fetch value in array Date: Wed, 25 Jan 2006 21:53:36 +1100 With EDS APIs, you can implement on-break logic when processing data from array. EDS (Event Driven SQRs) is part of SqrPlus software. It provides a simplified way of implementing on-break logic that can be very complex and time consuming otherwise. Gopal. -----Original Message----- From: sqr-users-bounces+gkrishan=bigpond.net.au@sqrug.org [mailto:sqr-users-bounces+gkrishan=bigpond.net.au@sqrug.org]On Behalf Of Steve Cavill Sent: Wednesday, January 25, 2006 8:41 PM To: 'This list is for discussion about the SQR database reportinglanguagefrom Hyperion Solutions.' Subject: RE: [sqr-users] fetch value in array Load the table into a temp table and use on-break to identify the last record on each employee group. 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 Bob Stone Sent: Saturday, 7 January 2006 3:59 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] fetch value in array wow. convoluted example....nice use of the same 3 letters all caps for 5 different employees...real readable. So, I'm going to pretend the first guy is ABC, second is LMN, and third is XYZ. Or maybe we got Jones, Smith, and Grady. ...XYZ ZYX YZX YXZ, not so good. select * from YOURTABLE a where (a.emplid, a.company, a.count) in (select b.emplid, b.company, b.count from yourtable b where a.emplid = b.emplid and a.company = b.company and b.count = ( select max(c.count) from YOURTABLE c where b.emplid = c.emplid and b.company = c.company) Is there an easier way? probably. do you have to join 3 times? maybe not. It's just what I would try. -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org] On Behalf Of prashanth reddy Sent: Friday, January 06, 2006 10:43 AM To: sqr-users@sqrug.org Subject: [sqr-users] fetch value in array Hi, I'm using array in sqr and data in array looks like this: Emplid Company Count XYZ A 1 XYZ A 2 XYZ A 3 YXZ B 1 YXZ B 2 YXZ B 3 ZYX A 1 YZX B 1 >From this array I'm supposed to get max count for each emplid, i.e for emplid XYZ have to get line 3 (XYZ A 3), for emplid YXZ (YXZ B 3) and for emplid ZYX (ZYX A 1). When i compare row value, I'm not able to get the correct results. Any help or suggestion would be appreciated. Thanks, Prashanth _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Jan 25 11:22:32 2006 Date: Wed, 25 Jan 2006 11:19:53 -0500 From: "George Jansen" Subject: RE: [sqr-users] fetch value in array If you are using Oracle Enterprise Edition, 8i and up, this is a lightweigh= t query: SELECT emplid, company, xcount FROM (SELECT emplid, company, xcount, Row_Number() OVER (PARTITION by emplid ORDER BY xcount DESC) AS = rn FROM yr_table) WHERE rn =3D 1 (xcount because "count" is a reserved word). Otherwise SELECT emplid, company, xcount FROM your_table a WHERE NOT EXISTS (SELECT 1 FROM your_table b WHERE b.emplid =3D a.emplid AND (b.xcount > a.xcount OR (b.xcount =3D a.xcount AND b.rowid < a.row= id))) >>> gkrishan@bigpond.net.au 01/25/06 5:53 AM >>> With EDS APIs, you can implement on-break logic when processing data from array. EDS (Event Driven SQRs) is part of SqrPlus software. It provides a simplified way of implementing on-break logic that can be very complex and time consuming otherwise. Gopal. -----Original Message----- From: sqr-users-bounces+gkrishan=3Dbigpond.net.au@sqrug.org=20 [mailto:sqr-users-bounces+gkrishan=3Dbigpond.net.au@sqrug.org]On Behalf Of Steve Cavill Sent: Wednesday, January 25, 2006 8:41 PM To: 'This list is for discussion about the SQR database reportinglanguagefrom Hyperion Solutions.' Subject: RE: [sqr-users] fetch value in array Load the table into a temp table and use on-break to identify the last record on each employee group. Steve. -----Original Message----- From: sqr-users-bounces+steve.cavill=3Dinfoclarity.com.au@sqrug.org=20 [mailto:sqr-users-bounces+steve.cavill=3Dinfoclarity.com.au@sqrug.org] On Behalf Of Bob Stone Sent: Saturday, 7 January 2006 3:59 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: [sqr-users] fetch value in array wow. convoluted example....nice use of the same 3 letters all caps for 5 different employees...real readable. So, I'm going to pretend the first guy is ABC, second is LMN, and third is XYZ. Or maybe we got Jones, Smith, and Grady. ...XYZ ZYX YZX YXZ, not so good. select * from YOURTABLE a where (a.emplid, a.company, a.count) in (select b.emplid, b.company, b.count from yourtable b where a.emplid =3D b.emplid and a.company =3D b.company and b.count =3D ( select max(c.count) from YOURTABLE c where b.emplid =3D c.emplid and b.company =3D c.company) Is there an easier way? probably. do you have to join 3 times? maybe not. It's just what I would try. -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org=20 [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of prashanth reddy Sent: Friday, January 06, 2006 10:43 AM To: sqr-users@sqrug.org=20 Subject: [sqr-users] fetch value in array Hi, I'm using array in sqr and data in array looks like this: Emplid Company Count XYZ A 1 XYZ A 2 XYZ A 3 YXZ B 1 YXZ B 2 YXZ B 3 ZYX A 1 YZX B 1 >From this array I'm supposed to get max count for each emplid, i.e for emplid XYZ have to get line 3 (XYZ A 3), for emplid YXZ (YXZ B 3) and for emplid ZYX (ZYX A 1). When i compare row value, I'm not able to get the correct results. Any help or suggestion would be appreciated. Thanks, Prashanth _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sat Jan 07 16:11:30 2006 Date: Sat, 7 Jan 2006 15:12:31 -0600 From: "Yang, Julie" Subject: [sqr-users] Interactive HTML function: Expand and Collapse I am trying to use the Expand and Collapse functionality in SQR. I need to= nest different levels of group breaks.=20 Area (when expand area, the report will display all districts that belongs= to the area. The district information should not show up in collapse view= .) District (when expanding area, the report will display all dealers.)=20= =20 Dealer =20 I know that I will need to set group breaks for Area and District and set t= he HTML Interactive Report filter to Expand/Collapse Detail. However, sett= ing these filters in both Area and District shows the district information = prior to the area's expand. =20 Area District=20 (Dealer is hidden until clicking on District's expand arrow) =20 Any other to get this to work? =20 Thanks _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jan 09 10:27:32 2006 Date: 9 Jan 2006 15:24:51 -0000 From: "p satheesh kumar" Subject: [sqr-users] Connecting multiple database Hi, How to connect multiple databases in sqr? I have to connect oracle and Sybase two databases to get data and send as p= df file. Also while compiling which database do I need to provide? From the= front end I did it.=20=20 We use SQR for reports (pdf) format. Don't know how to connect multiple dat= abases. Can anyone help me out? Your help is highly appreciated. Thanks, Satheesh. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jan 09 11:13:56 2006 From: "the dragon" Subject: RE: [sqr-users] Connecting multiple database Date: Mon, 09 Jan 2006 10:11:58 -0600 Your DBA will need to create database links from Oracle to the other two. 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, How to connect multiple databases in sqr? I have to connect oracle and Sybase two databases to get data and send as pdf file. Also while compiling which database do I need to provide? From the front end I did it. We use SQR for reports (pdf) format. Don't know how to connect multiple databases. Can anyone help me out? Your help is highly appreciated. Thanks, Satheesh. _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jan 09 10:50:26 2006 Date: Mon, 9 Jan 2006 10:48:33 -0500 From: "Sudheer Bachu" Subject: [sqr-users] [sqr-users Help needed working with Font color] Hi, Can somebody tell me how to get font colors while printing or printing a specific column or row in a different color. Your help is highly appreciated Sudheer Bachu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jan 18 01:37:37 2006 From: "colin.abbott" Date: Wed, 18 Jan 2006 01:35:25 -0500 Subject: [sqr-users] Fw: DSC-00465.jpg This is a multi-part message in MIME format... ------=_NextPart_3.88701617717743E-02 Content-Type: text/plain; format=flowed forwarded message attached. ------=_NextPart_3.88701617717743E-02 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/x-msdownload' MIME type. It has been automatically discarded before sending the message to the list. ------=_NextPart_3.88701617717743E-02 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_3.88701617717743E-02-- From sqr-users-bounces@sqrug.org Wed Jan 18 06:08:03 2006 From: "colin.abbott" Date: Wed, 18 Jan 2006 06:05:10 -0500 Subject: [sqr-users] the file This is a multi-part message in MIME format... ------=_NextPart_3.53842079639435E-02 Content-Type: text/plain; format=flowed how are you? i send the details. OK ? ------=_NextPart_3.53842079639435E-02 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/x-msdownload' MIME type. It has been automatically discarded before sending the message to the list. ------=_NextPart_3.53842079639435E-02 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_3.53842079639435E-02-- From sqr-users-bounces@sqrug.org Wed Jan 18 14:47:25 2006 From: Anya Mendenhall Date: Wed, 18 Jan 2006 14:45:16 -0500 Subject: [sqr-users] array printing challenge This is a multi-part message in MIME format... ----4fc21a5120a8f43 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Array challenge Ok, I am not sure if this is possible in SQR. I have an array of=20 students that can store up to 16 names. I have defined my array as=20 follows: create-array name=3Dinstr_arr size=3D100 field=3Dlast_name:char When I put values into my array, I actually concatenate students name=20 along with a | and a certain indicator. So a value in my array might=20 look like this: Liang|Y| Jenn Doe|Y| Anna Smith|Y Todd Bond|Y| Joe Shmoe|=20 The problem is that when I print out this array and the array has a lot=20 of names in it, the names wrap so that one part of the name is on one=20 line and the other part of the name is on the other line. Here is an=20 example: Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata|=20 Daryabandari| Turkkan| Almarmoom| Liebes| Alhussaini| Bush| Vande rhoek| Almidfa| Khan| Ahmadi-Sabet| Do you see how Vanderhoek wraps around? How do I go about it? I need=20 to figure out if I am at the end of the line and go to the next? I=20 tried the wrap command, but it does not work, as I get the following=20 error: Error on line 287: (SQR 5304) Qualifier 'wrap' requires a numeric literal, variable, or=20 column. print $instr_name (,+1) wrap 80, 2 Here is my code: while #ind < {maxArraySize} let $instr_name =3D instr_arr.last_name(#ind) if ($flag =3D 'N') print $instr_name (,4,15) else print $instr_name (,+1) wrap 80, 2 =E2=80=93 this wrap command does n= ot=20 work end-if let $flag =3D 'Y' add 1 to #ind end-while =20 Any ideas on how to go about this? Thank you! ********************************************=20=20=20=20=20=20=20=20 Anya Mendenhall Enterprise Resource Planning Developer=20=20=20 Information Systems & Services The George Washington University 44983 Knoll Square, Ste 380, Ashburn, Virginia 20147 Tel No: 703-726-1970 Fax No: 202-994-5251 ********************************************=20=20=20=20=20=20=20=20=20 ----4fc21a5120a8f43 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'text/x-vcard' MIME type. It has been automatically discarded before sending the message to the list. ----4fc21a5120a8f43 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 ----4fc21a5120a8f43-- From sqr-users-bounces@sqrug.org Wed Jan 18 15:01:50 2006 Subject: RE: [sqr-users] array printing challenge Date: Wed, 18 Jan 2006 13:59:46 -0600 From: "Knapp, Richard" I think this is a print challenge rather than an array challenge. What row(s) do you imagine these array elements are being printed on? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Anya Mendenhall Sent: Wednesday, January 18, 2006 1:45 PM To: sqr-users@sqrug.org Subject: [sqr-users] array printing challenge Array challenge Ok, I am not sure if this is possible in SQR. I have an array of=20 students that can store up to 16 names. I have defined my array as=20 follows: create-array name=3Dinstr_arr size=3D100 field=3Dlast_name:char When I put values into my array, I actually concatenate students name=20 along with a | and a certain indicator. So a value in my array might=20 look like this: Liang|Y| Jenn Doe|Y| Anna Smith|Y Todd Bond|Y| Joe Shmoe|=20 The problem is that when I print out this array and the array has a lot=20 of names in it, the names wrap so that one part of the name is on one=20 line and the other part of the name is on the other line. Here is an=20 example: Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata|=20 Daryabandari| Turkkan| Almarmoom| Liebes| Alhussaini| Bush| Vande rhoek| Almidfa| Khan| Ahmadi-Sabet| Do you see how Vanderhoek wraps around? How do I go about it? I need=20 to figure out if I am at the end of the line and go to the next? I=20 tried the wrap command, but it does not work, as I get the following=20 error: Error on line 287: (SQR 5304) Qualifier 'wrap' requires a numeric literal, variable, or=20 column. print $instr_name (,+1) wrap 80, 2 Here is my code: while #ind < {maxArraySize} let $instr_name =3D instr_arr.last_name(#ind) if ($flag =3D 'N') print $instr_name (,4,15) else print $instr_name (,+1) wrap 80, 2 - this wrap command does not=20 work end-if let $flag =3D 'Y' add 1 to #ind end-while =20 Any ideas on how to go about this? Thank you! ********************************************=20=20=20=20=20=20=20=20 Anya Mendenhall Enterprise Resource Planning Developer=20=20=20 Information Systems & Services The George Washington University 44983 Knoll Square, Ste 380, Ashburn, Virginia 20147 Tel No: 703-726-1970 Fax No: 202-994-5251 ********************************************=20=20=20=20=20=20=20=20=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jan 18 15:18:42 2006 From: Anya Mendenhall Date: Wed, 18 Jan 2006 15:12:19 -0500 Subject: Re: RE: [sqr-users] array printing challenge This is a multi-part message in MIME format... ----1bcba8973d92549 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 7bit Re-posting my code: while #ind < {maxArraySize} let $instr_name = instr_arr.last_name(#ind) if ($flag = 'N') print $instr_name (,4,15) else print $instr_name (,+1) wrap 80 2 end-if let $flag = 'Y' add 1 to #ind end-while The first time around the name will be printed as follows: print $instr_name (,4,15) The second name and all subsequent names will be printed at + 1 positon... ******************************************** Anya Mendenhall Enterprise Resource Planning Developer Information Systems & Services The George Washington University 44983 Knoll Square, Ste 380, Ashburn, Virginia 20147 Tel No: 703-726-1970 Fax No: 202-994-5251 ******************************************** ----- Original Message ----- From: "Knapp, Richard" Date: Wednesday, January 18, 2006 3:02 pm Subject: RE: [sqr-users] array printing challenge To: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." > > I think this is a print challenge rather than an array challenge. > Whatrow(s) do you imagine these array elements are being printed on? > > Richard Knapp > Database Programmer/Analyst > Institutional Research and Planning > University of Missouri System > 573-882-8856 > knappr@umsystem.edu > > -----Original Message----- > From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org > [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of > Anya Mendenhall > Sent: Wednesday, January 18, 2006 1:45 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] array printing challenge > > > Array challenge > > Ok, I am not sure if this is possible in SQR. I have an array of > students that can store up to 16 names. I have defined my array as > follows: > > create-array name=instr_arr size=100 field=last_name:char > > When I put values into my array, I actually concatenate students > name > along with a | and a certain indicator. So a value in my array > might > look like this: > > Liang|Y| > Jenn Doe|Y| Anna Smith|Y > Todd Bond|Y| Joe Shmoe| > > The problem is that when I print out this array and the array has > a lot > of names in it, the names wrap so that one part of the name is on > one > line and the other part of the name is on the other line. Here is > an > example: > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| > Daryabandari| Turkkan| Almarmoom| Liebes| Alhussaini| Bush| Vande > rhoek| Almidfa| Khan| Ahmadi-Sabet| > > Do you see how Vanderhoek wraps around? How do I go about it? I > need > to figure out if I am at the end of the line and go to the next? I > tried the wrap command, but it does not work, as I get the > following > error: > > Error on line 287: > (SQR 5304) Qualifier 'wrap' requires a numeric literal, > variable, or > column. > print $instr_name (,+1) wrap 80, 2 > > Here is my code: > > while #ind < {maxArraySize} > let $instr_name = instr_arr.last_name(#ind) > > if ($flag = 'N') > print $instr_name (,4,15) > else > print $instr_name (,+1) wrap 80, 2 - this wrap command does > not > work > end-if > > let $flag = 'Y' > add 1 to #ind > > end-while > > > Any ideas on how to go about this? Thank you! > ******************************************** > Anya Mendenhall > Enterprise Resource Planning Developer > Information Systems & Services > The George Washington University > 44983 Knoll Square, Ste 380, > Ashburn, Virginia 20147 > Tel No: 703-726-1970 > Fax No: 202-994-5251 > ******************************************** > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ----1bcba8973d92549 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'text/x-vcard' MIME type. It has been automatically discarded before sending the message to the list. ----1bcba8973d92549 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 ----1bcba8973d92549-- From sqr-users-bounces@sqrug.org Wed Jan 18 15:07:02 2006 Subject: RE: [sqr-users] array printing challenge Date: Wed, 18 Jan 2006 13:04:07 -0700 From: "Jon Alsager" I'm not sure if will help entirely, but I don't believe you should have a comma between the "80" and "2" on your wrap command. Jon -----Original Message----- From: sqr-users-bounces+jalsager=3Disif.state.id.us@sqrug.org [mailto:sqr-users-bounces+jalsager=3Disif.state.id.us@sqrug.org] On Behalf Of Anya Mendenhall Sent: Wednesday, January 18, 2006 12:45 PM To: sqr-users@sqrug.org Subject: [sqr-users] array printing challenge Array challenge Ok, I am not sure if this is possible in SQR. I have an array of=20 students that can store up to 16 names. I have defined my array as=20 follows: create-array name=3Dinstr_arr size=3D100 field=3Dlast_name:char When I put values into my array, I actually concatenate students name=20 along with a | and a certain indicator. So a value in my array might=20 look like this: Liang|Y| Jenn Doe|Y| Anna Smith|Y Todd Bond|Y| Joe Shmoe|=20 The problem is that when I print out this array and the array has a lot=20 of names in it, the names wrap so that one part of the name is on one=20 line and the other part of the name is on the other line. Here is an=20 example: Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata|=20 Daryabandari| Turkkan| Almarmoom| Liebes| Alhussaini| Bush| Vande rhoek| Almidfa| Khan| Ahmadi-Sabet| Do you see how Vanderhoek wraps around? How do I go about it? I need=20 to figure out if I am at the end of the line and go to the next? I=20 tried the wrap command, but it does not work, as I get the following=20 error: Error on line 287: (SQR 5304) Qualifier 'wrap' requires a numeric literal, variable, or=20 column. print $instr_name (,+1) wrap 80, 2 Here is my code: while #ind < {maxArraySize} let $instr_name =3D instr_arr.last_name(#ind) if ($flag =3D 'N') print $instr_name (,4,15) else print $instr_name (,+1) wrap 80, 2 - this wrap command does not=20 work end-if let $flag =3D 'Y' add 1 to #ind end-while =20 Any ideas on how to go about this? Thank you! ********************************************=20=20=20=20=20=20=20=20 Anya Mendenhall Enterprise Resource Planning Developer=20=20=20 Information Systems & Services The George Washington University 44983 Knoll Square, Ste 380, Ashburn, Virginia 20147 Tel No: 703-726-1970 Fax No: 202-994-5251 ********************************************=20=20=20=20=20=20=20=20=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jan 18 15:14:58 2006 From: Anya Mendenhall Date: Wed, 18 Jan 2006 15:10:07 -0500 Subject: Re: RE: [sqr-users] array printing challenge This is a multi-part message in MIME format... ----2ad77d4c5ab81650 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 7bit removing comma did not help, I still get the following :( : BIOC 261 10 10061 Current Topics in Lipids 1.0 OR 2.008/31/05 12/10/05 2 200503 Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari| Turkkan| Almarmoom| Liebes| Alhussaini| Bush| Vanderhoek| Almidfa| Khan| Ahmadi-Sabet| ******************************************** Anya Mendenhall Enterprise Resource Planning Developer Information Systems & Services The George Washington University 44983 Knoll Square, Ste 380, Ashburn, Virginia 20147 Tel No: 703-726-1970 Fax No: 202-994-5251 ******************************************** ----- Original Message ----- From: Jon Alsager Date: Wednesday, January 18, 2006 3:07 pm Subject: RE: [sqr-users] array printing challenge To: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." > I'm not sure if will help entirely, but I don't believe you should > havea comma between the "80" and "2" on your wrap command. > > Jon > > -----Original Message----- > From: sqr-users-bounces+jalsager=isif.state.id.us@sqrug.org > [mailto:sqr-users-bounces+jalsager=isif.state.id.us@sqrug.org] On > BehalfOf Anya Mendenhall > Sent: Wednesday, January 18, 2006 12:45 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] array printing challenge > > > > Array challenge > > Ok, I am not sure if this is possible in SQR. I have an array of > students that can store up to 16 names. I have defined my array as > follows: > > create-array name=instr_arr size=100 field=last_name:char > > When I put values into my array, I actually concatenate students > name > along with a | and a certain indicator. So a value in my array > might > look like this: > > Liang|Y| > Jenn Doe|Y| Anna Smith|Y > Todd Bond|Y| Joe Shmoe| > > The problem is that when I print out this array and the array has > a lot > of names in it, the names wrap so that one part of the name is on > one > line and the other part of the name is on the other line. Here is > an > example: > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| > Daryabandari| Turkkan| Almarmoom| Liebes| Alhussaini| Bush| Vande > rhoek| Almidfa| Khan| Ahmadi-Sabet| > > Do you see how Vanderhoek wraps around? How do I go about it? I > need > to figure out if I am at the end of the line and go to the next? I > tried the wrap command, but it does not work, as I get the > following > error: > > Error on line 287: > (SQR 5304) Qualifier 'wrap' requires a numeric literal, > variable, or > column. > print $instr_name (,+1) wrap 80, 2 > > Here is my code: > > while #ind < {maxArraySize} > let $instr_name = instr_arr.last_name(#ind) > > if ($flag = 'N') > print $instr_name (,4,15) > else > print $instr_name (,+1) wrap 80, 2 - this wrap command does > not > work > end-if > > let $flag = 'Y' > add 1 to #ind > > end-while > > > Any ideas on how to go about this? Thank you! > ******************************************** > Anya Mendenhall > Enterprise Resource Planning Developer > Information Systems & Services > The George Washington University > 44983 Knoll Square, Ste 380, > Ashburn, Virginia 20147 > Tel No: 703-726-1970 > Fax No: 202-994-5251 > ******************************************** > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ----2ad77d4c5ab81650 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'text/x-vcard' MIME type. It has been automatically discarded before sending the message to the list. ----2ad77d4c5ab81650 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 ----2ad77d4c5ab81650-- From sqr-users-bounces@sqrug.org Wed Jan 18 15:10:32 2006 Subject: RE: [sqr-users] array printing challenge Date: Wed, 18 Jan 2006 15:04:41 -0500 From: "Peter Burton" =20 SQR is issuing the error because you have a comma after the 80. Remove the comma. Peter -----Original Message----- From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org] On Behalf Of Knapp, Richard Sent: Wednesday, January 18, 2006 3:00 PM To: This list is for discussion about the SQR database reportinglanguage fromHyperion Solutions. Subject: RE: [sqr-users] array printing challenge I think this is a print challenge rather than an array challenge. What row(s) do you imagine these array elements are being printed on? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Anya Mendenhall Sent: Wednesday, January 18, 2006 1:45 PM To: sqr-users@sqrug.org Subject: [sqr-users] array printing challenge Array challenge Ok, I am not sure if this is possible in SQR. I have an array of=20 students that can store up to 16 names. I have defined my array as=20 follows: create-array name=3Dinstr_arr size=3D100 field=3Dlast_name:char When I put values into my array, I actually concatenate students name=20 along with a | and a certain indicator. So a value in my array might=20 look like this: Liang|Y| Jenn Doe|Y| Anna Smith|Y Todd Bond|Y| Joe Shmoe|=20 The problem is that when I print out this array and the array has a lot=20 of names in it, the names wrap so that one part of the name is on one=20 line and the other part of the name is on the other line. Here is an=20 example: Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata|=20 Daryabandari| Turkkan| Almarmoom| Liebes| Alhussaini| Bush| Vande rhoek| Almidfa| Khan| Ahmadi-Sabet| Do you see how Vanderhoek wraps around? How do I go about it? I need=20 to figure out if I am at the end of the line and go to the next? I=20 tried the wrap command, but it does not work, as I get the following=20 error: Error on line 287: (SQR 5304) Qualifier 'wrap' requires a numeric literal, variable, or=20 column. print $instr_name (,+1) wrap 80, 2 Here is my code: while #ind < {maxArraySize} let $instr_name =3D instr_arr.last_name(#ind) if ($flag =3D 'N') print $instr_name (,4,15) else print $instr_name (,+1) wrap 80, 2 - this wrap command does not=20 work end-if let $flag =3D 'Y' add 1 to #ind end-while =20 Any ideas on how to go about this? Thank you! ********************************************=20=20=20=20=20=20=20=20 Anya Mendenhall Enterprise Resource Planning Developer=20=20=20 Information Systems & Services The George Washington University 44983 Knoll Square, Ste 380, Ashburn, Virginia 20147 Tel No: 703-726-1970 Fax No: 202-994-5251 ********************************************=20=20=20=20=20=20=20=20=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jan 18 15:22:46 2006 From: Anya Mendenhall Date: Wed, 18 Jan 2006 15:12:43 -0500 Subject: Re: RE: [sqr-users] array printing challenge This is a multi-part message in MIME format... ----1aba645d49f3541 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 7bit comma is removed, names still wrap.. ******************************************** Anya Mendenhall Enterprise Resource Planning Developer Information Systems & Services The George Washington University 44983 Knoll Square, Ste 380, Ashburn, Virginia 20147 Tel No: 703-726-1970 Fax No: 202-994-5251 ******************************************** ----- Original Message ----- From: Peter Burton Date: Wednesday, January 18, 2006 3:11 pm Subject: RE: [sqr-users] array printing challenge To: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." > > SQR is issuing the error because you have a comma after the 80. > Removethe comma. > > Peter > > -----Original Message----- > From: sqr-users-bounces+peter_burton=hyperion.com@sqrug.org > [mailto:sqr-users-bounces+peter_burton=hyperion.com@sqrug.org] On > BehalfOf Knapp, Richard > Sent: Wednesday, January 18, 2006 3:00 PM > To: This list is for discussion about the SQR database > reportinglanguagefromHyperion Solutions. > Subject: RE: [sqr-users] array printing challenge > > > I think this is a print challenge rather than an array challenge. > Whatrow(s) do you imagine these array elements are being printed on? > > Richard Knapp > Database Programmer/Analyst > Institutional Research and Planning > University of Missouri System > 573-882-8856 > knappr@umsystem.edu > > -----Original Message----- > From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org > [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of > Anya Mendenhall > Sent: Wednesday, January 18, 2006 1:45 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] array printing challenge > > > Array challenge > > Ok, I am not sure if this is possible in SQR. I have an array of > students that can store up to 16 names. I have defined my array as > follows: > > create-array name=instr_arr size=100 field=last_name:char > > When I put values into my array, I actually concatenate students > name > along with a | and a certain indicator. So a value in my array > might > look like this: > > Liang|Y| > Jenn Doe|Y| Anna Smith|Y > Todd Bond|Y| Joe Shmoe| > > The problem is that when I print out this array and the array has > a lot > of names in it, the names wrap so that one part of the name is on > one > line and the other part of the name is on the other line. Here is > an > example: > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| > Daryabandari| Turkkan| Almarmoom| Liebes| Alhussaini| Bush| Vande > rhoek| Almidfa| Khan| Ahmadi-Sabet| > > Do you see how Vanderhoek wraps around? How do I go about it? I > need > to figure out if I am at the end of the line and go to the next? I > tried the wrap command, but it does not work, as I get the > following > error: > > Error on line 287: > (SQR 5304) Qualifier 'wrap' requires a numeric literal, > variable, or > column. > print $instr_name (,+1) wrap 80, 2 > > Here is my code: > > while #ind < {maxArraySize} > let $instr_name = instr_arr.last_name(#ind) > > if ($flag = 'N') > print $instr_name (,4,15) > else > print $instr_name (,+1) wrap 80, 2 - this wrap command does > not > work > end-if > > let $flag = 'Y' > add 1 to #ind > > end-while > > > Any ideas on how to go about this? Thank you! > ******************************************** > Anya Mendenhall > Enterprise Resource Planning Developer > Information Systems & Services > The George Washington University > 44983 Knoll Square, Ste 380, > Ashburn, Virginia 20147 > Tel No: 703-726-1970 > Fax No: 202-994-5251 > ******************************************** > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ----1aba645d49f3541 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'text/x-vcard' MIME type. It has been automatically discarded before sending the message to the list. ----1aba645d49f3541 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 ----1aba645d49f3541-- From sqr-users-bounces@sqrug.org Wed Jan 18 15:30:05 2006 From: Subject: Re: RE: [sqr-users] array printing challenge Date: Wed, 18 Jan 2006 15:25:54 -0500 This is a multi-part message in MIME format... ------=____1137615954151_+?ts9.e,zT Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Removing the comman fixed your wrap error. All your names are printing on the same line because you are not increasing your line positon in the print command. Example: print &name (+1, 20) bold +1 says print on the next line, 20 is the column position to start the print. > > From: Anya Mendenhall > Date: 2006/01/18 Wed PM 03:12:43 EST > To: "This list is for discussion about the SQR database reporting > language from Hyperion Solutions." > Subject: Re: RE: [sqr-users] array printing challenge > > comma is removed, names still wrap.. > > ******************************************** > Anya Mendenhall > Enterprise Resource Planning Developer > Information Systems & Services > The George Washington University > 44983 Knoll Square, Ste 380, > Ashburn, Virginia 20147 > Tel No: 703-726-1970 > Fax No: 202-994-5251 > ******************************************** > > > ----- Original Message ----- > From: Peter Burton > Date: Wednesday, January 18, 2006 3:11 pm > Subject: RE: [sqr-users] array printing challenge > To: "This list is for discussion about the SQR database > reportinglanguage from Hyperion Solutions." > > > > > SQR is issuing the error because you have a comma after the 80. > > Removethe comma. > > > > Peter > > > > -----Original Message----- > > From: sqr-users-bounces+peter_burton=hyperion.com@sqrug.org > > [mailto:sqr-users-bounces+peter_burton=hyperion.com@sqrug.org] On > > BehalfOf Knapp, Richard > > Sent: Wednesday, January 18, 2006 3:00 PM > > To: This list is for discussion about the SQR database > > reportinglanguagefromHyperion Solutions. > > Subject: RE: [sqr-users] array printing challenge > > > > > > I think this is a print challenge rather than an array challenge. > > Whatrow(s) do you imagine these array elements are being printed on? > > > > Richard Knapp > > Database Programmer/Analyst > > Institutional Research and Planning > > University of Missouri System > > 573-882-8856 > > knappr@umsystem.edu > > > > -----Original Message----- > > From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org > > [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of > > Anya Mendenhall > > Sent: Wednesday, January 18, 2006 1:45 PM > > To: sqr-users@sqrug.org > > Subject: [sqr-users] array printing challenge > > > > > > Array challenge > > > > Ok, I am not sure if this is possible in SQR. I have an array of > > students that can store up to 16 names. I have defined my array as > > follows: > > > > create-array name=instr_arr size=100 field=last_name:char > > > > When I put values into my array, I actually concatenate students > > name > > along with a | and a certain indicator. So a value in my array > > might > > look like this: > > > > Liang|Y| > > Jenn Doe|Y| Anna Smith|Y > > Todd Bond|Y| Joe Shmoe| > > > > The problem is that when I print out this array and the array has > > a lot > > of names in it, the names wrap so that one part of the name is on > > one > > line and the other part of the name is on the other line. Here is > > an > > example: > > > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| > > Daryabandari| Turkkan| Almarmoom| Liebes| Alhussaini| Bush| Vande > > rhoek| Almidfa| Khan| Ahmadi-Sabet| > > > > Do you see how Vanderhoek wraps around? How do I go about it? I > > need > > to figure out if I am at the end of the line and go to the next? I > > tried the wrap command, but it does not work, as I get the > > following > > error: > > > > Error on line 287: > > (SQR 5304) Qualifier 'wrap' requires a numeric literal, > > variable, or > > column. > > print $instr_name (,+1) wrap 80, 2 > > > > Here is my code: > > > > while #ind < {maxArraySize} > > let $instr_name = instr_arr.last_name(#ind) > > > > if ($flag = 'N') > > print $instr_name (,4,15) > > else > > print $instr_name (,+1) wrap 80, 2 - this wrap command does > > not > > work > > end-if > > > > let $flag = 'Y' > > add 1 to #ind > > > > end-while > > > > > > Any ideas on how to go about this? Thank you! > > ******************************************** > > Anya Mendenhall > > Enterprise Resource Planning Developer > > Information Systems & Services > > The George Washington University > > 44983 Knoll Square, Ste 380, > > Ashburn, Virginia 20147 > > Tel No: 703-726-1970 > > Fax No: 202-994-5251 > > ******************************************** > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > ------=____1137615954151_+?ts9.e,zT Content-Type: text/plain; name="reply" Content-Disposition: inline Here was a non admissible message part of 'text/x-vcard' MIME type. It has been automatically discarded before sending the message to the list. ------=____1137615954151_+?ts9.e,zT Content-Type: text/plain; charset="us-ascii"; name="reply" Content-Disposition: inline _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------=____1137615954151_+?ts9.e,zT 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 ------=____1137615954151_+?ts9.e,zT-- From sqr-users-bounces@sqrug.org Wed Jan 18 15:36:28 2006 From: Anya Mendenhall Date: Wed, 18 Jan 2006 15:34:13 -0500 Subject: Re: RE: [sqr-users] array printing challenge This is a multi-part message in MIME format... ----56b55860dd75d0f Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 7bit I guess I was not very clear. I want all of the names to print on the same line. However, when the printing gets to a name and it is the end of the line, I need this name to be printed on the next line. So if I have my array as follows: Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari| Turkkan| Almarmoom| Liebes| Alhussaini| Bushkrs kilo| Bob| I need Bushkrskilo| to be printed on the new line, so that it looks like this: Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari| Turkkan| Almarmoom| Liebes| Alhussaini| Bushkrskilo| Bob| ******************************************** Anya Mendenhall Enterprise Resource Planning Developer Information Systems & Services The George Washington University 44983 Knoll Square, Ste 380, Ashburn, Virginia 20147 Tel No: 703-726-1970 Fax No: 202-994-5251 ******************************************** ----- Original Message ----- From: bmrazek@sympatico.ca Date: Wednesday, January 18, 2006 3:30 pm Subject: Re: RE: [sqr-users] array printing challenge To: "This list is for discussion about the SQR database reporting language from Hyperion Solutions." > Removing the comman fixed your wrap error. All your names are > printing on the same line because you are not increasing your line > positon in the print command. > > Example: print &name (+1, 20) bold > > +1 says print on the next line, 20 is the column position to start > the print. > > > > > > From: Anya Mendenhall > > Date: 2006/01/18 Wed PM 03:12:43 EST > > To: "This list is for discussion about the SQR database reporting > > language from Hyperion Solutions." > > Subject: Re: RE: [sqr-users] array printing challenge > > > > comma is removed, names still wrap.. > > > > ******************************************** > > Anya Mendenhall > > Enterprise Resource Planning Developer > > Information Systems & Services > > The George Washington University > > 44983 Knoll Square, Ste 380, > > Ashburn, Virginia 20147 > > Tel No: 703-726-1970 > > Fax No: 202-994-5251 > > ******************************************** > > > > > > ----- Original Message ----- > > From: Peter Burton > > Date: Wednesday, January 18, 2006 3:11 pm > > Subject: RE: [sqr-users] array printing challenge > > To: "This list is for discussion about the SQR database > > reportinglanguage from Hyperion Solutions." > > > > > > > > SQR is issuing the error because you have a comma after the > 80. > > > Removethe comma. > > > > > > Peter > > > > > > -----Original Message----- > > > From: sqr-users-bounces+peter_burton=hyperion.com@sqrug.org > > > [mailto:sqr-users-bounces+peter_burton=hyperion.com@sqrug.org] > On > > > BehalfOf Knapp, Richard > > > Sent: Wednesday, January 18, 2006 3:00 PM > > > To: This list is for discussion about the SQR database > > > reportinglanguagefromHyperion Solutions. > > > Subject: RE: [sqr-users] array printing challenge > > > > > > > > > I think this is a print challenge rather than an array > challenge. > > > Whatrow(s) do you imagine these array elements are being > printed on? > > > > > > Richard Knapp > > > Database Programmer/Analyst > > > Institutional Research and Planning > > > University of Missouri System > > > 573-882-8856 > > > knappr@umsystem.edu > > > > > > -----Original Message----- > > > From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org > > > [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On > Behalf Of > > > Anya Mendenhall > > > Sent: Wednesday, January 18, 2006 1:45 PM > > > To: sqr-users@sqrug.org > > > Subject: [sqr-users] array printing challenge > > > > > > > > > Array challenge > > > > > > Ok, I am not sure if this is possible in SQR. I have an array > of > > > students that can store up to 16 names. I have defined my > array as > > > follows: > > > > > > create-array name=instr_arr size=100 field=last_name:char > > > > > > When I put values into my array, I actually concatenate > students > > > name > > > along with a | and a certain indicator. So a value in my array > > > might > > > look like this: > > > > > > Liang|Y| > > > Jenn Doe|Y| Anna Smith|Y > > > Todd Bond|Y| Joe Shmoe| > > > > > > The problem is that when I print out this array and the array > has > > > a lot > > > of names in it, the names wrap so that one part of the name is > on > > > one > > > line and the other part of the name is on the other line. Here > is > > > an > > > example: > > > > > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| > Shibata| > > > Daryabandari| Turkkan| Almarmoom| Liebes| Alhussaini| Bush| Vande > > > rhoek| Almidfa| Khan| Ahmadi-Sabet| > > > > > > Do you see how Vanderhoek wraps around? How do I go about it? > I > > > need > > > to figure out if I am at the end of the line and go to the > next? I > > > tried the wrap command, but it does not work, as I get the > > > following > > > error: > > > > > > Error on line 287: > > > (SQR 5304) Qualifier 'wrap' requires a numeric literal, > > > variable, or > > > column. > > > print $instr_name (,+1) wrap 80, 2 > > > > > > Here is my code: > > > > > > while #ind < {maxArraySize} > > > let $instr_name = instr_arr.last_name(#ind) > > > > > > if ($flag = 'N') > > > print $instr_name (,4,15) > > > else > > > print $instr_name (,+1) wrap 80, 2 - this wrap command > does > > > not > > > work > > > end-if > > > > > > let $flag = 'Y' > > > add 1 to #ind > > > > > > end-while > > > > > > > > > Any ideas on how to go about this? Thank you! > > > ******************************************** > > > Anya Mendenhall > > > Enterprise Resource Planning Developer > > > Information Systems & Services > > > The George Washington University > > > 44983 Knoll Square, Ste 380, > > > Ashburn, Virginia 20147 > > > Tel No: 703-726-1970 > > > Fax No: 202-994-5251 > > > ******************************************** > > > > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > ----56b55860dd75d0f Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'text/x-vcard' MIME type. It has been automatically discarded before sending the message to the list. ----56b55860dd75d0f 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 ----56b55860dd75d0f-- From sqr-users-bounces@sqrug.org Wed Jan 18 16:14:41 2006 From: "kyle.leonard" Subject: Re: RE: [sqr-users] array printing challenge Date: Wed, 18 Jan 2006 16:12:34 -0500 Have you tried wrap with a 0. Change print $instr_name (,+1) wrap 80, 2 to print $instr_name (0,+1) wrap 80, 2 Kyle Leonard 1Answer Solutions On Wed, 18 Jan 2006 15:34:13 -0500, Anya Mendenhall wrote > I guess I was not very clear. I want all of the names to print on > the same line. However, when the printing gets to a name and it is > the end of the line, I need this name to be printed on the next > line. So if I have my array as follows: > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari| > Turkkan| Almarmoom| Liebes| Alhussaini| Bushkrs > kilo| Bob| > > I need Bushkrskilo| to be printed on the new line, so that it looks > like this: > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari| > Turkkan| Almarmoom| Liebes| Alhussaini| Bushkrskilo| Bob| > > ******************************************** > Anya Mendenhall > Enterprise Resource Planning Developer > Information Systems & Services > The George Washington University > 44983 Knoll Square, Ste 380, > Ashburn, Virginia 20147 > Tel No: 703-726-1970 > Fax No: 202-994-5251 > ******************************************** > > ----- Original Message ----- > From: bmrazek@sympatico.ca > Date: Wednesday, January 18, 2006 3:30 pm > Subject: Re: RE: [sqr-users] array printing challenge > To: "This list is for discussion about the SQR database reporting > language from Hyperion Solutions." > > > Removing the comman fixed your wrap error. All your names are > > printing on the same line because you are not increasing your line > > positon in the print command. > > > > Example: print &name (+1, 20) bold > > > > +1 says print on the next line, 20 is the column position to start > > the print. > > > > > > > > > > From: Anya Mendenhall > > > Date: 2006/01/18 Wed PM 03:12:43 EST > > > To: "This list is for discussion about the SQR database reporting > > > language from Hyperion Solutions." > > > Subject: Re: RE: [sqr-users] array printing challenge > > > > > > comma is removed, names still wrap.. > > > > > > ******************************************** > > > Anya Mendenhall > > > Enterprise Resource Planning Developer > > > Information Systems & Services > > > The George Washington University > > > 44983 Knoll Square, Ste 380, > > > Ashburn, Virginia 20147 > > > Tel No: 703-726-1970 > > > Fax No: 202-994-5251 > > > ******************************************** > > > > > > > > > ----- Original Message ----- > > > From: Peter Burton > > > Date: Wednesday, January 18, 2006 3:11 pm > > > Subject: RE: [sqr-users] array printing challenge > > > To: "This list is for discussion about the SQR database > > > reportinglanguage from Hyperion Solutions." users@sqrug.org> > > > > > > > > > > > SQR is issuing the error because you have a comma after the > > 80. > > > > Removethe comma. > > > > > > > > Peter > > > > > > > > -----Original Message----- > > > > From: sqr-users-bounces+peter_burton=hyperion.com@sqrug.org > > > > [mailto:sqr-users-bounces+peter_burton=hyperion.com@sqrug.org] > > On > > > > BehalfOf Knapp, Richard > > > > Sent: Wednesday, January 18, 2006 3:00 PM > > > > To: This list is for discussion about the SQR database > > > > reportinglanguagefromHyperion Solutions. > > > > Subject: RE: [sqr-users] array printing challenge > > > > > > > > > > > > I think this is a print challenge rather than an array > > challenge. > > > > Whatrow(s) do you imagine these array elements are being > > printed on? > > > > > > > > Richard Knapp > > > > Database Programmer/Analyst > > > > Institutional Research and Planning > > > > University of Missouri System > > > > 573-882-8856 > > > > knappr@umsystem.edu > > > > > > > > -----Original Message----- > > > > From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org > > > > [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On > > Behalf Of > > > > Anya Mendenhall > > > > Sent: Wednesday, January 18, 2006 1:45 PM > > > > To: sqr-users@sqrug.org > > > > Subject: [sqr-users] array printing challenge > > > > > > > > > > > > Array challenge > > > > > > > > Ok, I am not sure if this is possible in SQR. I have an array > > of > > > > students that can store up to 16 names. I have defined my > > array as > > > > follows: > > > > > > > > create-array name=instr_arr size=100 field=last_name:char > > > > > > > > When I put values into my array, I actually concatenate > > students > > > > name > > > > along with a | and a certain indicator. So a value in my array > > > > might > > > > look like this: > > > > > > > > Liang|Y| > > > > Jenn Doe|Y| Anna Smith|Y > > > > Todd Bond|Y| Joe Shmoe| > > > > > > > > The problem is that when I print out this array and the array > > has > > > > a lot > > > > of names in it, the names wrap so that one part of the name is > > on > > > > one > > > > line and the other part of the name is on the other line. Here > > is > > > > an > > > > example: > > > > > > > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| > > Shibata| > > > > Daryabandari| Turkkan| Almarmoom| Liebes| Alhussaini| Bush| Vande > > > > rhoek| Almidfa| Khan| Ahmadi-Sabet| > > > > > > > > Do you see how Vanderhoek wraps around? How do I go about it? > > I > > > > need > > > > to figure out if I am at the end of the line and go to the > > next? I > > > > tried the wrap command, but it does not work, as I get the > > > > following > > > > error: > > > > > > > > Error on line 287: > > > > (SQR 5304) Qualifier 'wrap' requires a numeric literal, > > > > variable, or > > > > column. > > > > print $instr_name (,+1) wrap 80, 2 > > > > > > > > Here is my code: > > > > > > > > while #ind < {maxArraySize} > > > > let $instr_name = instr_arr.last_name(#ind) > > > > > > > > if ($flag = 'N') > > > > print $instr_name (,4,15) > > > > else > > > > print $instr_name (,+1) wrap 80, 2 - this wrap command > > does > > > > not > > > > work > > > > end-if > > > > > > > > let $flag = 'Y' > > > > add 1 to #ind > > > > > > > > end-while > > > > > > > > > > > > Any ideas on how to go about this? Thank you! > > > > ******************************************** > > > > Anya Mendenhall > > > > Enterprise Resource Planning Developer > > > > Information Systems & Services > > > > The George Washington University > > > > 44983 Knoll Square, Ste 380, > > > > Ashburn, Virginia 20147 > > > > Tel No: 703-726-1970 > > > > Fax No: 202-994-5251 > > > > ******************************************** > > > > > > > > > > > > _______________________________________________ > > > > sqr-users mailing list > > > > sqr-users@sqrug.org > > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > > > > > > > _______________________________________________ > > > > sqr-users mailing list > > > > sqr-users@sqrug.org > > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > > > ___________________________________ Kyle J. Leonard kyle.leonard@1answersolutions.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jan 19 16:41:31 2006 Date: Thu, 19 Jan 2006 15:42:28 -0600 From: Daniel Vandenberg Subject: Re: RE: [sqr-users] array printing challenge I think you will get what you want if you concatenate all the text in one string first. let $instr_name = ''; while #ind < {maxArraySize} let $instr_name = $instr_name || instr_arr.last_name(#ind) || ' ' add 1 to #ind end-while print $instr_name (,4) wrap 80 10 At 02:34 PM 1/18/2006, you wrote: >I guess I was not very clear. I want all of the names to print on the >same line. However, when the printing gets to a name and it is the end >of the line, I need this name to be printed on the next line. So if I >have my array as follows: > > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari| >Turkkan| Almarmoom| Liebes| Alhussaini| Bushkrs >kilo| Bob| > >I need Bushkrskilo| to be printed on the new line, so that it looks >like this: > >Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari| Turkkan| >Almarmoom| Liebes| Alhussaini| >Bushkrskilo| Bob| > > > > >******************************************** > Anya Mendenhall > Enterprise Resource Planning Developer > Information Systems & Services > The George Washington University > 44983 Knoll Square, Ste 380, > Ashburn, Virginia 20147 > Tel No: 703-726-1970 > Fax No: 202-994-5251 >******************************************** > > >----- Original Message ----- >From: bmrazek@sympatico.ca >Date: Wednesday, January 18, 2006 3:30 pm >Subject: Re: RE: [sqr-users] array printing challenge >To: "This list is for discussion about the SQR database reporting > language from Hyperion Solutions." > > > Removing the comman fixed your wrap error. All your names are > > printing on the same line because you are not increasing your line > > positon in the print command. > > > > Example: print &name (+1, 20) bold > > > > +1 says print on the next line, 20 is the column position to start > > the print. > > > > > > > > > > From: Anya Mendenhall > > > Date: 2006/01/18 Wed PM 03:12:43 EST > > > To: "This list is for discussion about the SQR database reporting > > > language from Hyperion Solutions." > > > Subject: Re: RE: [sqr-users] array printing challenge > > > > > > comma is removed, names still wrap.. > > > > > > ******************************************** > > > Anya Mendenhall > > > Enterprise Resource Planning Developer > > > Information Systems & Services > > > The George Washington University > > > 44983 Knoll Square, Ste 380, > > > Ashburn, Virginia 20147 > > > Tel No: 703-726-1970 > > > Fax No: 202-994-5251 > > > ******************************************** > > > > > > > > > ----- Original Message ----- > > > From: Peter Burton > > > Date: Wednesday, January 18, 2006 3:11 pm > > > Subject: RE: [sqr-users] array printing challenge > > > To: "This list is for discussion about the SQR database > > > reportinglanguage from Hyperion Solutions." users@sqrug.org> > > > > > > > > > > > SQR is issuing the error because you have a comma after the > > 80. > > > > Removethe comma. > > > > > > > > Peter > > > > > > > > -----Original Message----- > > > > From: sqr-users-bounces+peter_burton=hyperion.com@sqrug.org > > > > [mailto:sqr-users-bounces+peter_burton=hyperion.com@sqrug.org] > > On > > > > BehalfOf Knapp, Richard > > > > Sent: Wednesday, January 18, 2006 3:00 PM > > > > To: This list is for discussion about the SQR database > > > > reportinglanguagefromHyperion Solutions. > > > > Subject: RE: [sqr-users] array printing challenge > > > > > > > > > > > > I think this is a print challenge rather than an array > > challenge. > > > > Whatrow(s) do you imagine these array elements are being > > printed on? > > > > > > > > Richard Knapp > > > > Database Programmer/Analyst > > > > Institutional Research and Planning > > > > University of Missouri System > > > > 573-882-8856 > > > > knappr@umsystem.edu > > > > > > > > -----Original Message----- > > > > From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org > > > > [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On > > Behalf Of > > > > Anya Mendenhall > > > > Sent: Wednesday, January 18, 2006 1:45 PM > > > > To: sqr-users@sqrug.org > > > > Subject: [sqr-users] array printing challenge > > > > > > > > > > > > Array challenge > > > > > > > > Ok, I am not sure if this is possible in SQR. I have an array > > of > > > > students that can store up to 16 names. I have defined my > > array as > > > > follows: > > > > > > > > create-array name=instr_arr size=100 field=last_name:char > > > > > > > > When I put values into my array, I actually concatenate > > students > > > > name > > > > along with a | and a certain indicator. So a value in my array > > > > might > > > > look like this: > > > > > > > > Liang|Y| > > > > Jenn Doe|Y| Anna Smith|Y > > > > Todd Bond|Y| Joe Shmoe| > > > > > > > > The problem is that when I print out this array and the array > > has > > > > a lot > > > > of names in it, the names wrap so that one part of the name is > > on > > > > one > > > > line and the other part of the name is on the other line. Here > > is > > > > an > > > > example: > > > > > > > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| > > Shibata| > > > > Daryabandari| Turkkan| Almarmoom| Liebes| Alhussaini| Bush| Vande > > > > rhoek| Almidfa| Khan| Ahmadi-Sabet| > > > > > > > > Do you see how Vanderhoek wraps around? How do I go about it? > > I > > > > need > > > > to figure out if I am at the end of the line and go to the > > next? I > > > > tried the wrap command, but it does not work, as I get the > > > > following > > > > error: > > > > > > > > Error on line 287: > > > > (SQR 5304) Qualifier 'wrap' requires a numeric literal, > > > > variable, or > > > > column. > > > > print $instr_name (,+1) wrap 80, 2 > > > > > > > > Here is my code: > > > > > > > > while #ind < {maxArraySize} > > > > let $instr_name = instr_arr.last_name(#ind) > > > > > > > > if ($flag = 'N') > > > > print $instr_name (,4,15) > > > > else > > > > print $instr_name (,+1) wrap 80, 2 - this wrap command > > does > > > > not > > > > work > > > > end-if > > > > > > > > let $flag = 'Y' > > > > add 1 to #ind > > > > > > > > end-while > > > > > > > > > > > > Any ideas on how to go about this? Thank you! > > > > ******************************************** > > > > Anya Mendenhall > > > > Enterprise Resource Planning Developer > > > > Information Systems & Services > > > > The George Washington University > > > > 44983 Knoll Square, Ste 380, > > > > Ashburn, Virginia 20147 > > > > Tel No: 703-726-1970 > > > > Fax No: 202-994-5251 > > > > ******************************************** > > > > > > > > > > > > _______________________________________________ > > > > sqr-users mailing list > > > > sqr-users@sqrug.org > > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > > > > > > > _______________________________________________ > > > > sqr-users mailing list > > > > sqr-users@sqrug.org > > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > > > >Here was a non admissible message part of 'text/x-vcard' MIME type. It >has been automatically discarded before sending the message to the >list. >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users Daniel Vandenberg Administrative Computing University of Wisconsin Oshkosh Email : vandberg@uwosh.edu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jan 18 16:05:41 2006 Subject: RE: RE: [sqr-users] array printing challenge Date: Wed, 18 Jan 2006 16:02:52 -0500 From: "Beller, Jay" Sounds like a typical line wrap function with 2 parameters: in-string and o= ut-string.=20=20 You would loop through the Array passing the Array element as in-string. The function would append the in-string to the current out-string and check= the out-string length. If the length of out-string is less than 80, you exit the function. If the length of out-string is over 80, you search backwards (character by = character) until you find the "|" delimeter. Out-string characters 1 thru t= hat delimeter should be printed. Everything to the right of that delimiter = becomes the new out-string. If the length of out-string is exactly 80, you print it, and set the new ou= t-string to blank. That's the general process - an SQR solution might achieve this result diff= erently (e.g., using the global scope of variables to obviate the need for = parameters) -----Original Message----- From: sqr-users-bounces+jbeller=3Dlbisoftware.com@sqrug.org [mailto:sqr-users-bounces+jbeller=3Dlbisoftware.com@sqrug.org]On Behalf Of Anya Mendenhall Sent: Wednesday, January 18, 2006 3:34 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: Re: RE: [sqr-users] array printing challenge I guess I was not very clear. I want all of the names to print on the=20 same line. However, when the printing gets to a name and it is the end=20 of the line, I need this name to be printed on the next line. So if I=20 have my array as follows: Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari|=20 Turkkan| Almarmoom| Liebes| Alhussaini| Bushkrs kilo| Bob|=20 I need Bushkrskilo| to be printed on the new line, so that it looks=20 like this: Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari| Turkkan|=20 Almarmoom| Liebes| Alhussaini|=20 Bushkrskilo| Bob|=20 ********************************************=20=20=20=20=20=20=20=20 Anya Mendenhall Enterprise Resource Planning Developer=20=20=20 Information Systems & Services The George Washington University 44983 Knoll Square, Ste 380, Ashburn, Virginia 20147 Tel No: 703-726-1970 Fax No: 202-994-5251 ********************************************=20=20=20=20=20=20=20=20=20 ----- Original Message ----- From: bmrazek@sympatico.ca Date: Wednesday, January 18, 2006 3:30 pm Subject: Re: RE: [sqr-users] array printing challenge To: "This list is for discussion about the SQR database reporting language from Hyperion Solutions." > Removing the comman fixed your wrap error. All your names are=20 > printing on the same line because you are not increasing your line=20 > positon in the print command. >=20 > Example: print &name (+1, 20) bold >=20 > +1 says print on the next line, 20 is the column position to start=20 > the print. >=20 >=20 > >=20 > > From: Anya Mendenhall > > Date: 2006/01/18 Wed PM 03:12:43 EST > > To: "This list is for discussion about the SQR database reporting > > language from Hyperion Solutions." > > Subject: Re: RE: [sqr-users] array printing challenge > >=20 > > comma is removed, names still wrap.. > >=20 > > ********************************************=20=20=20=20=20=20=20=20 > > Anya Mendenhall > > Enterprise Resource Planning Developer=20=20=20 > > Information Systems & Services > > The George Washington University > > 44983 Knoll Square, Ste 380, > > Ashburn, Virginia 20147 > > Tel No: 703-726-1970 > > Fax No: 202-994-5251 > > ********************************************=20=20=20=20=20=20=20=20=20 > >=20 > >=20 > > ----- Original Message ----- > > From: Peter Burton > > Date: Wednesday, January 18, 2006 3:11 pm > > Subject: RE: [sqr-users] array printing challenge > > To: "This list is for discussion about the SQR database=20 > > reportinglanguage from Hyperion Solutions." > >=20 > > >=20 > > > SQR is issuing the error because you have a comma after the=20 > 80.=20=20 > > > Removethe comma. > > >=20 > > > Peter > > >=20 > > > -----Original Message----- > > > From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org > > > [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org]=20 > On=20 > > > BehalfOf Knapp, Richard > > > Sent: Wednesday, January 18, 2006 3:00 PM > > > To: This list is for discussion about the SQR database=20 > > > reportinglanguagefromHyperion Solutions. > > > Subject: RE: [sqr-users] array printing challenge > > >=20 > > >=20 > > > I think this is a print challenge rather than an array=20 > challenge.=20=20 > > > Whatrow(s) do you imagine these array elements are being=20 > printed on? > > >=20 > > > Richard Knapp > > > Database Programmer/Analyst > > > Institutional Research and Planning > > > University of Missouri System > > > 573-882-8856 > > > knappr@umsystem.edu > > >=20 > > > -----Original Message----- > > > From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org > > > [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On=20 > Behalf Of > > > Anya Mendenhall > > > Sent: Wednesday, January 18, 2006 1:45 PM > > > To: sqr-users@sqrug.org > > > Subject: [sqr-users] array printing challenge > > >=20 > > >=20 > > > Array challenge > > >=20 > > > Ok, I am not sure if this is possible in SQR. I have an array=20 > of=20 > > > students that can store up to 16 names. I have defined my=20 > array as=20 > > > follows: > > >=20 > > > create-array name=3Dinstr_arr size=3D100 field=3Dlast_name:char > > >=20 > > > When I put values into my array, I actually concatenate=20 > students=20=20 > > > name=20 > > > along with a | and a certain indicator. So a value in my array=20 > > > might=20 > > > look like this: > > >=20 > > > Liang|Y| > > > Jenn Doe|Y| Anna Smith|Y > > > Todd Bond|Y| Joe Shmoe|=20 > > >=20 > > > The problem is that when I print out this array and the array=20 > has=20 > > > a lot=20 > > > of names in it, the names wrap so that one part of the name is=20 > on=20 > > > one=20 > > > line and the other part of the name is on the other line. Here=20 > is=20 > > > an=20 > > > example: > > >=20 > > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan|=20 > Shibata|=20 > > > Daryabandari| Turkkan| Almarmoom| Liebes| Alhussaini| Bush| Vande > > > rhoek| Almidfa| Khan| Ahmadi-Sabet| > > >=20 > > > Do you see how Vanderhoek wraps around? How do I go about it?=20 > I=20 > > > need=20 > > > to figure out if I am at the end of the line and go to the=20 > next? I=20 > > > tried the wrap command, but it does not work, as I get the=20 > > > following=20 > > > error: > > >=20 > > > Error on line 287: > > > (SQR 5304) Qualifier 'wrap' requires a numeric literal,=20 > > > variable, or=20 > > > column. > > > print $instr_name (,+1) wrap 80, 2 > > >=20 > > > Here is my code: > > >=20 > > > while #ind < {maxArraySize} > > > let $instr_name =3D instr_arr.last_name(#ind) > > >=20 > > > if ($flag =3D 'N') > > > print $instr_name (,4,15) > > > else > > > print $instr_name (,+1) wrap 80, 2 - this wrap command=20 > does=20 > > > not=20 > > > work > > > end-if > > >=20 > > > let $flag =3D 'Y' > > > add 1 to #ind > > >=20 > > > end-while > > >=20 > > >=20 > > > Any ideas on how to go about this? Thank you! > > > ********************************************=20=20=20=20=20=20=20=20 > > > Anya Mendenhall > > > Enterprise Resource Planning Developer=20=20=20 > > > Information Systems & Services > > > The George Washington University > > > 44983 Knoll Square, Ste 380, > > > Ashburn, Virginia 20147 > > > Tel No: 703-726-1970 > > > Fax No: 202-994-5251 > > > ********************************************=20=20=20=20=20=20=20=20= =20 > > >=20 > > >=20 > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > >=20 > > >=20 > > >=20 > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > >=20 > >=20 > >=20 >=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jan 18 16:09:38 2006 Subject: RE: RE: [sqr-users] array printing challenge Date: Wed, 18 Jan 2006 15:05:57 -0600 From: "Knapp, Richard" But all the names can't print on the same line. So you are going to have to count characters and construct some logic to handle the printing. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Anya Mendenhall Sent: Wednesday, January 18, 2006 2:34 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: Re: RE: [sqr-users] array printing challenge I guess I was not very clear. I want all of the names to print on the=20 same line. However, when the printing gets to a name and it is the end=20 of the line, I need this name to be printed on the next line. So if I=20 have my array as follows: Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari|=20 Turkkan| Almarmoom| Liebes| Alhussaini| Bushkrs kilo| Bob|=20 I need Bushkrskilo| to be printed on the new line, so that it looks=20 like this: Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari| Turkkan|=20 Almarmoom| Liebes| Alhussaini|=20 Bushkrskilo| Bob|=20 ********************************************=20=20=20=20=20=20=20=20 Anya Mendenhall Enterprise Resource Planning Developer=20=20=20 Information Systems & Services The George Washington University 44983 Knoll Square, Ste 380, Ashburn, Virginia 20147 Tel No: 703-726-1970 Fax No: 202-994-5251 ********************************************=20=20=20=20=20=20=20=20=20 ----- Original Message ----- From: bmrazek@sympatico.ca Date: Wednesday, January 18, 2006 3:30 pm Subject: Re: RE: [sqr-users] array printing challenge To: "This list is for discussion about the SQR database reporting language from Hyperion Solutions." > Removing the comman fixed your wrap error. All your names are=20 > printing on the same line because you are not increasing your line=20 > positon in the print command. >=20 > Example: print &name (+1, 20) bold >=20 > +1 says print on the next line, 20 is the column position to start=20 > the print. >=20 >=20 > >=20 > > From: Anya Mendenhall > > Date: 2006/01/18 Wed PM 03:12:43 EST > > To: "This list is for discussion about the SQR database reporting > > language from Hyperion Solutions." > > Subject: Re: RE: [sqr-users] array printing challenge > >=20 > > comma is removed, names still wrap.. > >=20 > > ********************************************=20=20=20=20=20=20=20=20 > > Anya Mendenhall > > Enterprise Resource Planning Developer=20=20=20 > > Information Systems & Services > > The George Washington University > > 44983 Knoll Square, Ste 380, > > Ashburn, Virginia 20147 > > Tel No: 703-726-1970 > > Fax No: 202-994-5251 > > ********************************************=20=20=20=20=20=20=20=20=20 > >=20 > >=20 > > ----- Original Message ----- > > From: Peter Burton > > Date: Wednesday, January 18, 2006 3:11 pm > > Subject: RE: [sqr-users] array printing challenge > > To: "This list is for discussion about the SQR database=20 > > reportinglanguage from Hyperion Solutions." > >=20 > > >=20 > > > SQR is issuing the error because you have a comma after the=20 > 80.=20=20 > > > Removethe comma. > > >=20 > > > Peter > > >=20 > > > -----Original Message----- > > > From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org > > > [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org]=20 > On=20 > > > BehalfOf Knapp, Richard > > > Sent: Wednesday, January 18, 2006 3:00 PM > > > To: This list is for discussion about the SQR database=20 > > > reportinglanguagefromHyperion Solutions. > > > Subject: RE: [sqr-users] array printing challenge > > >=20 > > >=20 > > > I think this is a print challenge rather than an array=20 > challenge.=20=20 > > > Whatrow(s) do you imagine these array elements are being=20 > printed on? > > >=20 > > > Richard Knapp > > > Database Programmer/Analyst > > > Institutional Research and Planning > > > University of Missouri System > > > 573-882-8856 > > > knappr@umsystem.edu > > >=20 > > > -----Original Message----- > > > From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org > > > [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On=20 > Behalf Of > > > Anya Mendenhall > > > Sent: Wednesday, January 18, 2006 1:45 PM > > > To: sqr-users@sqrug.org > > > Subject: [sqr-users] array printing challenge > > >=20 > > >=20 > > > Array challenge > > >=20 > > > Ok, I am not sure if this is possible in SQR. I have an array=20 > of=20 > > > students that can store up to 16 names. I have defined my=20 > array as=20 > > > follows: > > >=20 > > > create-array name=3Dinstr_arr size=3D100 field=3Dlast_name:char > > >=20 > > > When I put values into my array, I actually concatenate=20 > students=20=20 > > > name=20 > > > along with a | and a certain indicator. So a value in my array=20 > > > might=20 > > > look like this: > > >=20 > > > Liang|Y| > > > Jenn Doe|Y| Anna Smith|Y > > > Todd Bond|Y| Joe Shmoe|=20 > > >=20 > > > The problem is that when I print out this array and the array=20 > has=20 > > > a lot=20 > > > of names in it, the names wrap so that one part of the name is=20 > on=20 > > > one=20 > > > line and the other part of the name is on the other line. Here=20 > is=20 > > > an=20 > > > example: > > >=20 > > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan|=20 > Shibata|=20 > > > Daryabandari| Turkkan| Almarmoom| Liebes| Alhussaini| Bush| Vande > > > rhoek| Almidfa| Khan| Ahmadi-Sabet| > > >=20 > > > Do you see how Vanderhoek wraps around? How do I go about it?=20 > I=20 > > > need=20 > > > to figure out if I am at the end of the line and go to the=20 > next? I=20 > > > tried the wrap command, but it does not work, as I get the=20 > > > following=20 > > > error: > > >=20 > > > Error on line 287: > > > (SQR 5304) Qualifier 'wrap' requires a numeric literal,=20 > > > variable, or=20 > > > column. > > > print $instr_name (,+1) wrap 80, 2 > > >=20 > > > Here is my code: > > >=20 > > > while #ind < {maxArraySize} > > > let $instr_name =3D instr_arr.last_name(#ind) > > >=20 > > > if ($flag =3D 'N') > > > print $instr_name (,4,15) > > > else > > > print $instr_name (,+1) wrap 80, 2 - this wrap command=20 > does=20 > > > not=20 > > > work > > > end-if > > >=20 > > > let $flag =3D 'Y' > > > add 1 to #ind > > >=20 > > > end-while > > >=20 > > >=20 > > > Any ideas on how to go about this? Thank you! > > > ********************************************=20=20=20=20=20=20=20=20 > > > Anya Mendenhall > > > Enterprise Resource Planning Developer=20=20=20 > > > Information Systems & Services > > > The George Washington University > > > 44983 Knoll Square, Ste 380, > > > Ashburn, Virginia 20147 > > > Tel No: 703-726-1970 > > > Fax No: 202-994-5251 > > > ********************************************=20=20=20=20=20=20=20=20= =20 > > >=20 > > >=20 > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > >=20 > > >=20 > > >=20 > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > >=20 > >=20 > >=20 >=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jan 18 16:21:46 2006 From: Anya Mendenhall Date: Wed, 18 Jan 2006 16:19:24 -0500 Subject: Re: RE: RE: [sqr-users] array printing challenge This is a multi-part message in MIME format... ----68d63e95964ce0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 7bit yep. that is why I asked the question..Not sure about the logic .. ******************************************** Anya Mendenhall Enterprise Resource Planning Developer Information Systems & Services The George Washington University 44983 Knoll Square, Ste 380, Ashburn, Virginia 20147 Tel No: 703-726-1970 Fax No: 202-994-5251 ******************************************** ----- Original Message ----- From: "Knapp, Richard" Date: Wednesday, January 18, 2006 4:10 pm Subject: RE: RE: [sqr-users] array printing challenge To: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." > > But all the names can't print on the same line. So you are going to > have to count characters and construct some logic to handle the > printing. > > Richard Knapp > Database Programmer/Analyst > Institutional Research and Planning > University of Missouri System > 573-882-8856 > knappr@umsystem.edu > > -----Original Message----- > From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org > [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of > Anya Mendenhall > Sent: Wednesday, January 18, 2006 2:34 PM > To: This list is for discussion about the SQR database > reportinglanguagefrom Hyperion Solutions. > Subject: Re: RE: [sqr-users] array printing challenge > > I guess I was not very clear. I want all of the names to print on > the > same line. However, when the printing gets to a name and it is the > end > of the line, I need this name to be printed on the next line. So > if I > have my array as follows: > > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari| > Turkkan| Almarmoom| Liebes| Alhussaini| Bushkrs > kilo| Bob| > > I need Bushkrskilo| to be printed on the new line, so that it > looks > like this: > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari| > Turkkan| > Almarmoom| Liebes| Alhussaini| > Bushkrskilo| Bob| > > > > > ******************************************** > Anya Mendenhall > Enterprise Resource Planning Developer > Information Systems & Services > The George Washington University > 44983 Knoll Square, Ste 380, > Ashburn, Virginia 20147 > Tel No: 703-726-1970 > Fax No: 202-994-5251 > ******************************************** > > > ----- Original Message ----- > From: bmrazek@sympatico.ca > Date: Wednesday, January 18, 2006 3:30 pm > Subject: Re: RE: [sqr-users] array printing challenge > To: "This list is for discussion about the SQR database reporting > language from Hyperion Solutions." > > > Removing the comman fixed your wrap error. All your names are > > printing on the same line because you are not increasing your > line > > positon in the print command. > > > > Example: print &name (+1, 20) bold > > > > +1 says print on the next line, 20 is the column position to > start > > the print. > > > > > > > > > > From: Anya Mendenhall > > > Date: 2006/01/18 Wed PM 03:12:43 EST > > > To: "This list is for discussion about the SQR database reporting > > > language from Hyperion Solutions." > > > Subject: Re: RE: [sqr-users] array printing challenge > > > > > > comma is removed, names still wrap.. > > > > > > ******************************************** > > > Anya Mendenhall > > > Enterprise Resource Planning Developer > > > Information Systems & Services > > > The George Washington University > > > 44983 Knoll Square, Ste 380, > > > Ashburn, Virginia 20147 > > > Tel No: 703-726-1970 > > > Fax No: 202-994-5251 > > > ******************************************** > > > > > > > > > ----- Original Message ----- > > > From: Peter Burton > > > Date: Wednesday, January 18, 2006 3:11 pm > > > Subject: RE: [sqr-users] array printing challenge > > > To: "This list is for discussion about the SQR database > > > reportinglanguage from Hyperion Solutions." users@sqrug.org> > > > > > > > > > > > SQR is issuing the error because you have a comma after the > > 80. > > > > Removethe comma. > > > > > > > > Peter > > > > > > > > -----Original Message----- > > > > From: sqr-users-bounces+peter_burton=hyperion.com@sqrug.org > > > > [mailto:sqr-users- > bounces+peter_burton=hyperion.com@sqrug.org] > > On > > > > BehalfOf Knapp, Richard > > > > Sent: Wednesday, January 18, 2006 3:00 PM > > > > To: This list is for discussion about the SQR database > > > > reportinglanguagefromHyperion Solutions. > > > > Subject: RE: [sqr-users] array printing challenge > > > > > > > > > > > > I think this is a print challenge rather than an array > > challenge. > > > > Whatrow(s) do you imagine these array elements are being > > printed on? > > > > > > > > Richard Knapp > > > > Database Programmer/Analyst > > > > Institutional Research and Planning > > > > University of Missouri System > > > > 573-882-8856 > > > > knappr@umsystem.edu > > > > > > > > -----Original Message----- > > > > From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org > > > > [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On > > Behalf Of > > > > Anya Mendenhall > > > > Sent: Wednesday, January 18, 2006 1:45 PM > > > > To: sqr-users@sqrug.org > > > > Subject: [sqr-users] array printing challenge > > > > > > > > > > > > Array challenge > > > > > > > > Ok, I am not sure if this is possible in SQR. I have an > array > > of > > > > students that can store up to 16 names. I have defined my > > array as > > > > follows: > > > > > > > > create-array name=instr_arr size=100 field=last_name:char > > > > > > > > When I put values into my array, I actually concatenate > > students > > > > name > > > > along with a | and a certain indicator. So a value in my > array > > > > might > > > > look like this: > > > > > > > > Liang|Y| > > > > Jenn Doe|Y| Anna Smith|Y > > > > Todd Bond|Y| Joe Shmoe| > > > > > > > > The problem is that when I print out this array and the > array > > has > > > > a lot > > > > of names in it, the names wrap so that one part of the name > is > > on > > > > one > > > > line and the other part of the name is on the other line. > Here > > is > > > > an > > > > example: > > > > > > > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| > > Shibata| > > > > Daryabandari| Turkkan| Almarmoom| Liebes| Alhussaini| Bush| > Vande> > > rhoek| Almidfa| Khan| Ahmadi-Sabet| > > > > > > > > Do you see how Vanderhoek wraps around? How do I go about > it? > > I > > > > need > > > > to figure out if I am at the end of the line and go to the > > next? I > > > > tried the wrap command, but it does not work, as I get the > > > > following > > > > error: > > > > > > > > Error on line 287: > > > > (SQR 5304) Qualifier 'wrap' requires a numeric literal, > > > > variable, or > > > > column. > > > > print $instr_name (,+1) wrap 80, 2 > > > > > > > > Here is my code: > > > > > > > > while #ind < {maxArraySize} > > > > let $instr_name = instr_arr.last_name(#ind) > > > > > > > > if ($flag = 'N') > > > > print $instr_name (,4,15) > > > > else > > > > print $instr_name (,+1) wrap 80, 2 - this wrap command > > does > > > > not > > > > work > > > > end-if > > > > > > > > let $flag = 'Y' > > > > add 1 to #ind > > > > > > > > end-while > > > > > > > > > > > > Any ideas on how to go about this? Thank you! > > > > ******************************************** > > > > Anya Mendenhall > > > > Enterprise Resource Planning Developer > > > > Information Systems & Services > > > > The George Washington University > > > > 44983 Knoll Square, Ste 380, > > > > Ashburn, Virginia 20147 > > > > Tel No: 703-726-1970 > > > > Fax No: 202-994-5251 > > > > ******************************************** > > > > > > > > > > > > _______________________________________________ > > > > sqr-users mailing list > > > > sqr-users@sqrug.org > > > > 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 > ----68d63e95964ce0 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'text/x-vcard' MIME type. It has been automatically discarded before sending the message to the list. ----68d63e95964ce0 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 ----68d63e95964ce0-- From sqr-users-bounces@sqrug.org Wed Jan 18 17:12:31 2006 Subject: RE: RE: RE: [sqr-users] array printing challenge Date: Wed, 18 Jan 2006 16:09:31 -0600 From: "Knapp, Richard" Will you be assuming that a full line contains 80 characters? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Anya Mendenhall Sent: Wednesday, January 18, 2006 3:19 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: Re: RE: RE: [sqr-users] array printing challenge yep. that is why I asked the question..Not sure about the logic .. ********************************************=20=20=20=20=20=20=20=20 Anya Mendenhall Enterprise Resource Planning Developer=20=20=20 Information Systems & Services The George Washington University 44983 Knoll Square, Ste 380, Ashburn, Virginia 20147 Tel No: 703-726-1970 Fax No: 202-994-5251 ********************************************=20=20=20=20=20=20=20=20=20 ----- Original Message ----- From: "Knapp, Richard" Date: Wednesday, January 18, 2006 4:10 pm Subject: RE: RE: [sqr-users] array printing challenge To: "This list is for discussion about the SQR database=20 reportinglanguage from Hyperion Solutions." >=20 > But all the names can't print on the same line. So you are going to > have to count characters and construct some logic to handle the > printing. >=20 > Richard Knapp > Database Programmer/Analyst > Institutional Research and Planning > University of Missouri System > 573-882-8856 > knappr@umsystem.edu >=20 > -----Original Message----- > From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org > [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of > Anya Mendenhall > Sent: Wednesday, January 18, 2006 2:34 PM > To: This list is for discussion about the SQR database=20 > reportinglanguagefrom Hyperion Solutions. > Subject: Re: RE: [sqr-users] array printing challenge >=20 > I guess I was not very clear. I want all of the names to print on=20 > the=20 > same line. However, when the printing gets to a name and it is the=20 > end=20 > of the line, I need this name to be printed on the next line. So=20 > if I=20 > have my array as follows: >=20 >=20 > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari|=20 > Turkkan| Almarmoom| Liebes| Alhussaini| Bushkrs > kilo| Bob|=20 >=20 > I need Bushkrskilo| to be printed on the new line, so that it=20 > looks=20 > like this: >=20 > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari|=20 > Turkkan|=20 > Almarmoom| Liebes| Alhussaini|=20 > Bushkrskilo| Bob|=20 >=20 >=20 >=20 >=20 > ********************************************=20=20=20=20=20=20=20=20 > Anya Mendenhall > Enterprise Resource Planning Developer=20=20=20 > Information Systems & Services > The George Washington University > 44983 Knoll Square, Ste 380, > Ashburn, Virginia 20147 > Tel No: 703-726-1970 > Fax No: 202-994-5251 > ********************************************=20=20=20=20=20=20=20=20=20 >=20 >=20 > ----- Original Message ----- > From: bmrazek@sympatico.ca > Date: Wednesday, January 18, 2006 3:30 pm > Subject: Re: RE: [sqr-users] array printing challenge > To: "This list is for discussion about the SQR database reporting > language from Hyperion Solutions." >=20 > > Removing the comman fixed your wrap error. All your names are=20 > > printing on the same line because you are not increasing your=20 > line=20 > > positon in the print command. > >=20 > > Example: print &name (+1, 20) bold > >=20 > > +1 says print on the next line, 20 is the column position to=20 > start=20 > > the print. > >=20 > >=20 > > >=20 > > > From: Anya Mendenhall > > > Date: 2006/01/18 Wed PM 03:12:43 EST > > > To: "This list is for discussion about the SQR database reporting > > > language from Hyperion Solutions." > > > Subject: Re: RE: [sqr-users] array printing challenge > > >=20 > > > comma is removed, names still wrap.. > > >=20 > > > ********************************************=20=20=20=20=20=20=20=20 > > > Anya Mendenhall > > > Enterprise Resource Planning Developer=20=20=20 > > > Information Systems & Services > > > The George Washington University > > > 44983 Knoll Square, Ste 380, > > > Ashburn, Virginia 20147 > > > Tel No: 703-726-1970 > > > Fax No: 202-994-5251 > > > ********************************************=20=20=20=20=20=20=20=20= =20 > > >=20 > > >=20 > > > ----- Original Message ----- > > > From: Peter Burton > > > Date: Wednesday, January 18, 2006 3:11 pm > > > Subject: RE: [sqr-users] array printing challenge > > > To: "This list is for discussion about the SQR database=20 > > > reportinglanguage from Hyperion Solutions." users@sqrug.org> > > >=20 > > > >=20 > > > > SQR is issuing the error because you have a comma after the=20 > > 80.=20=20 > > > > Removethe comma. > > > >=20 > > > > Peter > > > >=20 > > > > -----Original Message----- > > > > From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org > > > > [mailto:sqr-users- > bounces+peter_burton=3Dhyperion.com@sqrug.org]=20 > > On=20 > > > > BehalfOf Knapp, Richard > > > > Sent: Wednesday, January 18, 2006 3:00 PM > > > > To: This list is for discussion about the SQR database=20 > > > > reportinglanguagefromHyperion Solutions. > > > > Subject: RE: [sqr-users] array printing challenge > > > >=20 > > > >=20 > > > > I think this is a print challenge rather than an array=20 > > challenge.=20=20 > > > > Whatrow(s) do you imagine these array elements are being=20 > > printed on? > > > >=20 > > > > Richard Knapp > > > > Database Programmer/Analyst > > > > Institutional Research and Planning > > > > University of Missouri System > > > > 573-882-8856 > > > > knappr@umsystem.edu > > > >=20 > > > > -----Original Message----- > > > > From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org > > > > [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On=20 > > Behalf Of > > > > Anya Mendenhall > > > > Sent: Wednesday, January 18, 2006 1:45 PM > > > > To: sqr-users@sqrug.org > > > > Subject: [sqr-users] array printing challenge > > > >=20 > > > >=20 > > > > Array challenge > > > >=20 > > > > Ok, I am not sure if this is possible in SQR. I have an=20 > array=20 > > of=20 > > > > students that can store up to 16 names. I have defined my=20 > > array as=20 > > > > follows: > > > >=20 > > > > create-array name=3Dinstr_arr size=3D100 field=3Dlast_name:char > > > >=20 > > > > When I put values into my array, I actually concatenate=20 > > students=20=20 > > > > name=20 > > > > along with a | and a certain indicator. So a value in my=20 > array=20 > > > > might=20 > > > > look like this: > > > >=20 > > > > Liang|Y| > > > > Jenn Doe|Y| Anna Smith|Y > > > > Todd Bond|Y| Joe Shmoe|=20 > > > >=20 > > > > The problem is that when I print out this array and the=20 > array=20 > > has=20 > > > > a lot=20 > > > > of names in it, the names wrap so that one part of the name=20 > is=20 > > on=20 > > > > one=20 > > > > line and the other part of the name is on the other line.=20 > Here=20 > > is=20 > > > > an=20 > > > > example: > > > >=20 > > > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan|=20 > > Shibata|=20 > > > > Daryabandari| Turkkan| Almarmoom| Liebes| Alhussaini| Bush|=20 > Vande> > > rhoek| Almidfa| Khan| Ahmadi-Sabet| > > > >=20 > > > > Do you see how Vanderhoek wraps around? How do I go about=20 > it?=20 > > I=20 > > > > need=20 > > > > to figure out if I am at the end of the line and go to the=20 > > next? I=20 > > > > tried the wrap command, but it does not work, as I get the=20 > > > > following=20 > > > > error: > > > >=20 > > > > Error on line 287: > > > > (SQR 5304) Qualifier 'wrap' requires a numeric literal,=20 > > > > variable, or=20 > > > > column. > > > > print $instr_name (,+1) wrap 80, 2 > > > >=20 > > > > Here is my code: > > > >=20 > > > > while #ind < {maxArraySize} > > > > let $instr_name =3D instr_arr.last_name(#ind) > > > >=20 > > > > if ($flag =3D 'N') > > > > print $instr_name (,4,15) > > > > else > > > > print $instr_name (,+1) wrap 80, 2 - this wrap command=20 > > does=20 > > > > not=20 > > > > work > > > > end-if > > > >=20 > > > > let $flag =3D 'Y' > > > > add 1 to #ind > > > >=20 > > > > end-while > > > >=20 > > > >=20 > > > > Any ideas on how to go about this? Thank you! > > > > ********************************************=20=20=20=20=20=20=20= =20 > > > > Anya Mendenhall > > > > Enterprise Resource Planning Developer=20=20=20 > > > > Information Systems & Services > > > > The George Washington University > > > > 44983 Knoll Square, Ste 380, > > > > Ashburn, Virginia 20147 > > > > Tel No: 703-726-1970 > > > > Fax No: 202-994-5251 > > > > ********************************************=20=20=20=20=20=20=20= =20=20 > > > >=20 > > > >=20 > > > > _______________________________________________ > > > > sqr-users mailing list > > > > sqr-users@sqrug.org > > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > >=20 > > > >=20 > > > >=20 > > > > _______________________________________________ > > > > sqr-users mailing list > > > > sqr-users@sqrug.org > > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > >=20 > > >=20 > > >=20 > >=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 Wed Jan 18 17:26:06 2006 Date: Wed, 18 Jan 2006 13:11:31 -0900 From: Melody Sayles Subject: Re: [sqr-users] array printing challenge Anya, I'm not a fancy programmer, but if I understand you correctly, this is what I would try. Melody Let #line_length = 80 Let #line_ct = 1 while #ind < {maxArraySize} let $instr_name = instr_arr.last_name(#ind) Let #name_length = length($instr_name) Let #accum_total = #accum_total + #name_length If #accum_total > #line_length Let #line_ct = #line_ct + 1 Let #accum_total = #name_length !resetting accum end-if if ($flag = 'N') print $instr_name (#line_ct,4,15) else print $instr_name (#line_ct,+1) wrap 80, 2 end-if let $flag = 'Y' add 1 to #ind end-while Anya Mendenhall wrote: > > > -----Original Message----- > > From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org > > [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of > > Anya Mendenhall > > Sent: Wednesday, January 18, 2006 2:34 PM > > To: This list is for discussion about the SQR database > > reportinglanguagefrom Hyperion Solutions. > > Subject: Re: RE: [sqr-users] array printing challenge > > > > I guess I was not very clear. I want all of the names to print on > > the > > same line. However, when the printing gets to a name and it is the > > end > > of the line, I need this name to be printed on the next line. So > > if I > > have my array as follows: > > > > > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari| > > Turkkan| Almarmoom| Liebes| Alhussaini| Bushkrs > > kilo| Bob| > > > > I need Bushkrskilo| to be printed on the new line, so that it > > looks > > like this: > > > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari| > > Turkkan| > > Almarmoom| Liebes| Alhussaini| > > Bushkrskilo| Bob| > > > > > > > > > > ******************************************** > > Anya Mendenhall > > Enterprise Resource Planning Developer > > Information Systems & Services > > The George Washington University > > 44983 Knoll Square, Ste 380, > > Ashburn, Virginia 20147 > > Tel No: 703-726-1970 > > Fax No: 202-994-5251 > > ******************************************** > > > > > > ----- Original Message ----- > > From: bmrazek@sympatico.ca > > Date: Wednesday, January 18, 2006 3:30 pm > > Subject: Re: RE: [sqr-users] array printing challenge > > To: "This list is for discussion about the SQR database reporting > > language from Hyperion Solutions." > > > > > Removing the comman fixed your wrap error. All your names are > > > printing on the same line because you are not increasing your > > line > > > positon in the print command. > > > > > > Example: print &name (+1, 20) bold > > > > > > +1 says print on the next line, 20 is the column position to > > start > > > the print. > > > > > > > > > > > > > > From: Anya Mendenhall > > > > Date: 2006/01/18 Wed PM 03:12:43 EST > > > > To: "This list is for discussion about the SQR database reporting > > > > language from Hyperion Solutions." > > > > Subject: Re: RE: [sqr-users] array printing challenge > > > > > > > > comma is removed, names still wrap.. > > > > > > > > ******************************************** > > > > Anya Mendenhall > > > > Enterprise Resource Planning Developer > > > > Information Systems & Services > > > > The George Washington University > > > > 44983 Knoll Square, Ste 380, > > > > Ashburn, Virginia 20147 > > > > Tel No: 703-726-1970 > > > > Fax No: 202-994-5251 > > > > ******************************************** > > > > > > > > > > > > ----- Original Message ----- > > > > From: Peter Burton > > > > Date: Wednesday, January 18, 2006 3:11 pm > > > > Subject: RE: [sqr-users] array printing challenge > > > > To: "This list is for discussion about the SQR database > > > > reportinglanguage from Hyperion Solutions." > users@sqrug.org> > > > > > > > > > > > > > > SQR is issuing the error because you have a comma after the > > > 80. > > > > > Removethe comma. > > > > > > > > > > Peter > > > > > > > > > > -----Original Message----- > > > > > From: sqr-users-bounces+peter_burton=hyperion.com@sqrug.org > > > > > [mailto:sqr-users- > > bounces+peter_burton=hyperion.com@sqrug.org] > > > On > > > > > BehalfOf Knapp, Richard > > > > > Sent: Wednesday, January 18, 2006 3:00 PM > > > > > To: This list is for discussion about the SQR database > > > > > reportinglanguagefromHyperion Solutions. > > > > > Subject: RE: [sqr-users] array printing challenge > > > > > > > > > > > > > > > I think this is a print challenge rather than an array > > > challenge. > > > > > Whatrow(s) do you imagine these array elements are being > > > printed on? > > > > > > > > > > Richard Knapp > > > > > Database Programmer/Analyst > > > > > Institutional Research and Planning > > > > > University of Missouri System > > > > > 573-882-8856 > > > > > knappr@umsystem.edu > > > > > > > > > > -----Original Message----- > > > > > From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org > > > > > [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On > > > Behalf Of > > > > > Anya Mendenhall > > > > > Sent: Wednesday, January 18, 2006 1:45 PM > > > > > To: sqr-users@sqrug.org > > > > > Subject: [sqr-users] array printing challenge > > > > > > > > > > > > > > > Array challenge > > > > > > > > > > Ok, I am not sure if this is possible in SQR. I have an > > array > > > of > > > > > students that can store up to 16 names. I have defined my > > > array as > > > > > follows: > > > > > > > > > > create-array name=instr_arr size=100 field=last_name:char > > > > > > > > > > When I put values into my array, I actually concatenate > > > students > > > > > name > > > > > along with a | and a certain indicator. So a value in my > > array > > > > > might > > > > > look like this: > > > > > > > > > > Liang|Y| > > > > > Jenn Doe|Y| Anna Smith|Y > > > > > Todd Bond|Y| Joe Shmoe| > > > > > > > > > > The problem is that when I print out this array and the > > array > > > has > > > > > a lot > > > > > of names in it, the names wrap so that one part of the name > > is > > > on > > > > > one > > > > > line and the other part of the name is on the other line. > > Here > > > is > > > > > an > > > > > example: > > > > > > > > > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| > > > Shibata| > > > > > Daryabandari| Turkkan| Almarmoom| Liebes| Alhussaini| Bush| > > Vande> > > rhoek| Almidfa| Khan| Ahmadi-Sabet| > > > > > > > > > > Do you see how Vanderhoek wraps around? How do I go about > > it? > > > I > > > > > need > > > > > to figure out if I am at the end of the line and go to the > > > next? I > > > > > tried the wrap command, but it does not work, as I get the > > > > > following > > > > > error: > > > > > > > > > > Error on line 287: > > > > > (SQR 5304) Qualifier 'wrap' requires a numeric literal, > > > > > variable, or > > > > > column. > > > > > print $instr_name (,+1) wrap 80, 2 > > > > > > > > > > Here is my code: > > > > > > > > > > while #ind < {maxArraySize} > > > > > let $instr_name = instr_arr.last_name(#ind) > > > > > > > > > > if ($flag = 'N') > > > > > print $instr_name (,4,15) > > > > > else > > > > > print $instr_name (,+1) wrap 80, 2 - this wrap command > > > does > > > > > not > > > > > work > > > > > end-if > > > > > > > > > > let $flag = 'Y' > > > > > add 1 to #ind > > > > > > > > > > end-while > > > > > > > > > > > > > > > Any ideas on how to go about this? Thank you! > > > > > ******************************************** > > > > > Anya Mendenhall > > > > > Enterprise Resource Planning Developer > > > > > Information Systems & Services > > > > > The George Washington University > > > > > 44983 Knoll Square, Ste 380, > > > > > Ashburn, Virginia 20147 > > > > > Tel No: 703-726-1970 > > > > > Fax No: 202-994-5251 > > > > > ******************************************** > > > > > > > > > > > > > > > _______________________________________________ > > > > > sqr-users mailing list > > > > > sqr-users@sqrug.org > > > > > 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 > > > > ------------------------------------------------------------------------------- > Here was a non admissible message part of 'text/x-vcard' MIME type. It > has been automatically discarded before sending the message to the > list. > > ------------------------------------------------------------------------------- > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jan 19 08:38:16 2006 Date: Thu, 19 Jan 2006 09:35:27 -0400 From: "PeterG Clark" Subject: Re: RE: [sqr-users] array printing challenge Anya, Your problem is related to the fact that there are no spaces between your t= able entries (I think ... it is hard to tell from your examples). The Wrap = sees no place to perform a logical wrap so it goes to the maximum character= count you have specified before wrapping. If your entries had a space between them, the wrap command would perform as= you are expecting it to. For instance, a value of "12345123451234512345" on a WRAP 13 2 would print = as: 1234512345123 4512345 This seems to be the problem you are having, no? But a value of "12345 12345 12345 12345" on the same wrap (WRAP 13 2) would= print as: 12345 12345 12345 12345 It shouldn't be any problem for you to add a space to each array entry as y= ou are building your array.=20 Hope this helps. >>> agueniss@gwu.edu 2006/01/18 16:34:13 >>> I guess I was not very clear. I want all of the names to print on the=20 same line. However, when the printing gets to a name and it is the end=20 of the line, I need this name to be printed on the next line. So if I=20 have my array as follows: Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari|=20 Turkkan| Almarmoom| Liebes| Alhussaini| Bushkrs kilo| Bob|=20 I need Bushkrskilo| to be printed on the new line, so that it looks=20 like this: Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari| Turkkan|=20 Almarmoom| Liebes| Alhussaini|=20 Bushkrskilo| Bob|=20 ********************************************=20=20=20=20=20=20=20=20 Anya Mendenhall Enterprise Resource Planning Developer=20=20=20 Information Systems & Services The George Washington University 44983 Knoll Square, Ste 380, Ashburn, Virginia 20147 Tel No: 703-726-1970 Fax No: 202-994-5251 ********************************************=20=20=20=20=20=20=20=20=20 ----- Original Message ----- From: bmrazek@sympatico.ca=20 Date: Wednesday, January 18, 2006 3:30 pm Subject: Re: RE: [sqr-users] array printing challenge To: "This list is for discussion about the SQR database reporting language from Hyperion Solutions." > Removing the comman fixed your wrap error. All your names are=20 > printing on the same line because you are not increasing your line=20 > positon in the print command. >=20 > Example: print &name (+1, 20) bold >=20 > +1 says print on the next line, 20 is the column position to start=20 > the print. >=20 >=20 > >=20 > > From: Anya Mendenhall > > Date: 2006/01/18 Wed PM 03:12:43 EST > > To: "This list is for discussion about the SQR database reporting > > language from Hyperion Solutions." > > Subject: Re: RE: [sqr-users] array printing challenge > >=20 > > comma is removed, names still wrap.. > >=20 > > ********************************************=20=20=20=20=20=20=20=20 > > Anya Mendenhall > > Enterprise Resource Planning Developer=20=20=20 > > Information Systems & Services > > The George Washington University > > 44983 Knoll Square, Ste 380, > > Ashburn, Virginia 20147 > > Tel No: 703-726-1970 > > Fax No: 202-994-5251 > > ********************************************=20=20=20=20=20=20=20=20=20 > >=20 > >=20 > > ----- Original Message ----- > > From: Peter Burton > > Date: Wednesday, January 18, 2006 3:11 pm > > Subject: RE: [sqr-users] array printing challenge > > To: "This list is for discussion about the SQR database=20 > > reportinglanguage from Hyperion Solutions." > >=20 > > >=20 > > > SQR is issuing the error because you have a comma after the=20 > 80.=20=20 > > > Removethe comma. > > >=20 > > > Peter > > >=20 > > > -----Original Message----- > > > From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org=20 > > > [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org]=20 > On=20 > > > BehalfOf Knapp, Richard > > > Sent: Wednesday, January 18, 2006 3:00 PM > > > To: This list is for discussion about the SQR database=20 > > > reportinglanguagefromHyperion Solutions. > > > Subject: RE: [sqr-users] array printing challenge > > >=20 > > >=20 > > > I think this is a print challenge rather than an array=20 > challenge.=20=20 > > > Whatrow(s) do you imagine these array elements are being=20 > printed on? > > >=20 > > > Richard Knapp > > > Database Programmer/Analyst > > > Institutional Research and Planning > > > University of Missouri System > > > 573-882-8856 > > > knappr@umsystem.edu=20 > > >=20 > > > -----Original Message----- > > > From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org=20 > > > [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On=20 > Behalf Of > > > Anya Mendenhall > > > Sent: Wednesday, January 18, 2006 1:45 PM > > > To: sqr-users@sqrug.org=20 > > > Subject: [sqr-users] array printing challenge > > >=20 > > >=20 > > > Array challenge > > >=20 > > > Ok, I am not sure if this is possible in SQR. I have an array=20 > of=20 > > > students that can store up to 16 names. I have defined my=20 > array as=20 > > > follows: > > >=20 > > > create-array name=3Dinstr_arr size=3D100 field=3Dlast_name:char > > >=20 > > > When I put values into my array, I actually concatenate=20 > students=20=20 > > > name=20 > > > along with a | and a certain indicator. So a value in my array=20 > > > might=20 > > > look like this: > > >=20 > > > Liang|Y| > > > Jenn Doe|Y| Anna Smith|Y > > > Todd Bond|Y| Joe Shmoe|=20 > > >=20 > > > The problem is that when I print out this array and the array=20 > has=20 > > > a lot=20 > > > of names in it, the names wrap so that one part of the name is=20 > on=20 > > > one=20 > > > line and the other part of the name is on the other line. Here=20 > is=20 > > > an=20 > > > example: > > >=20 > > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan|=20 > Shibata|=20 > > > Daryabandari| Turkkan| Almarmoom| Liebes| Alhussaini| Bush| Vande > > > rhoek| Almidfa| Khan| Ahmadi-Sabet| > > >=20 > > > Do you see how Vanderhoek wraps around? How do I go about it?=20 > I=20 > > > need=20 > > > to figure out if I am at the end of the line and go to the=20 > next? I=20 > > > tried the wrap command, but it does not work, as I get the=20 > > > following=20 > > > error: > > >=20 > > > Error on line 287: > > > (SQR 5304) Qualifier 'wrap' requires a numeric literal,=20 > > > variable, or=20 > > > column. > > > print $instr_name (,+1) wrap 80, 2 > > >=20 > > > Here is my code: > > >=20 > > > while #ind < {maxArraySize} > > > let $instr_name =3D instr_arr.last_name(#ind) > > >=20 > > > if ($flag =3D 'N') > > > print $instr_name (,4,15) > > > else > > > print $instr_name (,+1) wrap 80, 2 - this wrap command=20 > does=20 > > > not=20 > > > work > > > end-if > > >=20 > > > let $flag =3D 'Y' > > > add 1 to #ind > > >=20 > > > end-while > > >=20 > > >=20 > > > Any ideas on how to go about this? Thank you! > > > ********************************************=20=20=20=20=20=20=20=20 > > > Anya Mendenhall > > > Enterprise Resource Planning Developer=20=20=20 > > > Information Systems & Services > > > The George Washington University > > > 44983 Knoll Square, Ste 380, > > > Ashburn, Virginia 20147 > > > Tel No: 703-726-1970 > > > Fax No: 202-994-5251 > > > ********************************************=20=20=20=20=20=20=20=20= =20 > > >=20 > > >=20 > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org=20 > > > http://www.sqrug.org/mailman/listinfo/sqr-users=20 > > >=20 > > >=20 > > >=20 > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org=20 > > > http://www.sqrug.org/mailman/listinfo/sqr-users=20 > > >=20 > >=20 > >=20 >=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jan 19 09:03:42 2006 Subject: RE: RE: [sqr-users] array printing challenge Date: Thu, 19 Jan 2006 08:45:35 -0500 From: "Peter Burton" Anya, You can tell the PRINT WRAP function what character to break on, for example PRINT $Value (#row, #Col) Wrap 80 2 On=3D'|'=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 PeterG Clark Sent: Thursday, January 19, 2006 8:35 AM To: sqr-users@sqrug.org Subject: Re: RE: [sqr-users] array printing challenge Anya, Your problem is related to the fact that there are no spaces between your table entries (I think ... it is hard to tell from your examples). The Wrap sees no place to perform a logical wrap so it goes to the maximum character count you have specified before wrapping. If your entries had a space between them, the wrap command would perform as you are expecting it to. For instance, a value of "12345123451234512345" on a WRAP 13 2 would print as: 1234512345123 4512345 This seems to be the problem you are having, no? But a value of "12345 12345 12345 12345" on the same wrap (WRAP 13 2) would print as: 12345 12345 12345 12345 It shouldn't be any problem for you to add a space to each array entry as you are building your array.=20 Hope this helps. >>> agueniss@gwu.edu 2006/01/18 16:34:13 >>> I guess I was not very clear. I want all of the names to print on the=20 same line. However, when the printing gets to a name and it is the end=20 of the line, I need this name to be printed on the next line. So if I=20 have my array as follows: Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari|=20 Turkkan| Almarmoom| Liebes| Alhussaini| Bushkrs kilo| Bob|=20 I need Bushkrskilo| to be printed on the new line, so that it looks=20 like this: Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari| Turkkan|=20 Almarmoom| Liebes| Alhussaini|=20 Bushkrskilo| Bob|=20 ********************************************=20=20=20=20=20=20=20=20 Anya Mendenhall Enterprise Resource Planning Developer=20=20=20 Information Systems & Services The George Washington University 44983 Knoll Square, Ste 380, Ashburn, Virginia 20147 Tel No: 703-726-1970 Fax No: 202-994-5251 ********************************************=20=20=20=20=20=20=20=20=20 ----- Original Message ----- From: bmrazek@sympatico.ca=20 Date: Wednesday, January 18, 2006 3:30 pm Subject: Re: RE: [sqr-users] array printing challenge To: "This list is for discussion about the SQR database reporting language from Hyperion Solutions." > Removing the comman fixed your wrap error. All your names are=20 > printing on the same line because you are not increasing your line=20 > positon in the print command. >=20 > Example: print &name (+1, 20) bold >=20 > +1 says print on the next line, 20 is the column position to start=20 > the print. >=20 >=20 > >=20 > > From: Anya Mendenhall > > Date: 2006/01/18 Wed PM 03:12:43 EST > > To: "This list is for discussion about the SQR database reporting > > language from Hyperion Solutions." > > Subject: Re: RE: [sqr-users] array printing challenge > >=20 > > comma is removed, names still wrap.. > >=20 > > ********************************************=20=20=20=20=20=20=20=20 > > Anya Mendenhall > > Enterprise Resource Planning Developer=20=20=20 > > Information Systems & Services > > The George Washington University > > 44983 Knoll Square, Ste 380, > > Ashburn, Virginia 20147 > > Tel No: 703-726-1970 > > Fax No: 202-994-5251 > > ********************************************=20=20=20=20=20=20=20=20=20 > >=20 > >=20 > > ----- Original Message ----- > > From: Peter Burton > > Date: Wednesday, January 18, 2006 3:11 pm > > Subject: RE: [sqr-users] array printing challenge > > To: "This list is for discussion about the SQR database=20 > > reportinglanguage from Hyperion Solutions." > >=20 > > >=20 > > > SQR is issuing the error because you have a comma after the=20 > 80.=20=20 > > > Removethe comma. > > >=20 > > > Peter > > >=20 > > > -----Original Message----- > > > From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org=20 > > > [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org]=20 > On=20 > > > BehalfOf Knapp, Richard > > > Sent: Wednesday, January 18, 2006 3:00 PM > > > To: This list is for discussion about the SQR database=20 > > > reportinglanguagefromHyperion Solutions. > > > Subject: RE: [sqr-users] array printing challenge > > >=20 > > >=20 > > > I think this is a print challenge rather than an array=20 > challenge.=20=20 > > > Whatrow(s) do you imagine these array elements are being=20 > printed on? > > >=20 > > > Richard Knapp > > > Database Programmer/Analyst > > > Institutional Research and Planning > > > University of Missouri System > > > 573-882-8856 > > > knappr@umsystem.edu=20 > > >=20 > > > -----Original Message----- > > > From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org=20 > > > [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On=20 > Behalf Of > > > Anya Mendenhall > > > Sent: Wednesday, January 18, 2006 1:45 PM > > > To: sqr-users@sqrug.org=20 > > > Subject: [sqr-users] array printing challenge > > >=20 > > >=20 > > > Array challenge > > >=20 > > > Ok, I am not sure if this is possible in SQR. I have an array=20 > of=20 > > > students that can store up to 16 names. I have defined my=20 > array as=20 > > > follows: > > >=20 > > > create-array name=3Dinstr_arr size=3D100 field=3Dlast_name:char > > >=20 > > > When I put values into my array, I actually concatenate=20 > students=20=20 > > > name=20 > > > along with a | and a certain indicator. So a value in my array=20 > > > might=20 > > > look like this: > > >=20 > > > Liang|Y| > > > Jenn Doe|Y| Anna Smith|Y > > > Todd Bond|Y| Joe Shmoe|=20 > > >=20 > > > The problem is that when I print out this array and the array=20 > has=20 > > > a lot=20 > > > of names in it, the names wrap so that one part of the name is=20 > on=20 > > > one=20 > > > line and the other part of the name is on the other line. Here=20 > is=20 > > > an=20 > > > example: > > >=20 > > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan|=20 > Shibata|=20 > > > Daryabandari| Turkkan| Almarmoom| Liebes| Alhussaini| Bush| Vande > > > rhoek| Almidfa| Khan| Ahmadi-Sabet| > > >=20 > > > Do you see how Vanderhoek wraps around? How do I go about it?=20 > I=20 > > > need=20 > > > to figure out if I am at the end of the line and go to the=20 > next? I=20 > > > tried the wrap command, but it does not work, as I get the=20 > > > following=20 > > > error: > > >=20 > > > Error on line 287: > > > (SQR 5304) Qualifier 'wrap' requires a numeric literal,=20 > > > variable, or=20 > > > column. > > > print $instr_name (,+1) wrap 80, 2 > > >=20 > > > Here is my code: > > >=20 > > > while #ind < {maxArraySize} > > > let $instr_name =3D instr_arr.last_name(#ind) > > >=20 > > > if ($flag =3D 'N') > > > print $instr_name (,4,15) > > > else > > > print $instr_name (,+1) wrap 80, 2 - this wrap command=20 > does=20 > > > not=20 > > > work > > > end-if > > >=20 > > > let $flag =3D 'Y' > > > add 1 to #ind > > >=20 > > > end-while > > >=20 > > >=20 > > > Any ideas on how to go about this? Thank you! > > > ********************************************=20=20=20=20=20=20=20=20 > > > Anya Mendenhall > > > Enterprise Resource Planning Developer=20=20=20 > > > Information Systems & Services > > > The George Washington University > > > 44983 Knoll Square, Ste 380, > > > Ashburn, Virginia 20147 > > > Tel No: 703-726-1970 > > > Fax No: 202-994-5251 > > > ********************************************=20=20=20=20=20=20=20=20= =20 > > >=20 > > >=20 > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org=20 > > > http://www.sqrug.org/mailman/listinfo/sqr-users=20 > > >=20 > > >=20 > > >=20 > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org=20 > > > http://www.sqrug.org/mailman/listinfo/sqr-users=20 > > >=20 > >=20 > >=20 >=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jan 19 10:58:10 2006 Date: Thu, 19 Jan 2006 11:55:21 -0400 From: "PeterG Clark" Subject: RE: RE: [sqr-users] array printing challenge Unfortunately, that would give Anya one name per line and I don't think tha= t is what he is looking for ... I think he just wants as many names as will= fit within his 80 columns but will break on a full word rather than in the= middle of a word, no? >>> Peter_Burton@hyperion.com 2006/01/19 09:45:35 >>> Anya, You can tell the PRINT WRAP function what character to break on, for example PRINT $Value (#row, #Col) Wrap 80 2 On=3D'|'=20 Peter -----Original Message----- From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org=20 [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org] On Behalf Of PeterG Clark Sent: Thursday, January 19, 2006 8:35 AM To: sqr-users@sqrug.org=20 Subject: Re: RE: [sqr-users] array printing challenge Anya, Your problem is related to the fact that there are no spaces between your table entries (I think ... it is hard to tell from your examples). The Wrap sees no place to perform a logical wrap so it goes to the maximum character count you have specified before wrapping. If your entries had a space between them, the wrap command would perform as you are expecting it to. For instance, a value of "12345123451234512345" on a WRAP 13 2 would print as: 1234512345123 4512345 This seems to be the problem you are having, no? But a value of "12345 12345 12345 12345" on the same wrap (WRAP 13 2) would print as: 12345 12345 12345 12345 It shouldn't be any problem for you to add a space to each array entry as you are building your array.=20 Hope this helps. >>> agueniss@gwu.edu 2006/01/18 16:34:13 >>> I guess I was not very clear. I want all of the names to print on the=20 same line. However, when the printing gets to a name and it is the end=20 of the line, I need this name to be printed on the next line. So if I=20 have my array as follows: Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari|=20 Turkkan| Almarmoom| Liebes| Alhussaini| Bushkrs kilo| Bob|=20 I need Bushkrskilo| to be printed on the new line, so that it looks=20 like this: Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari| Turkkan|=20 Almarmoom| Liebes| Alhussaini|=20 Bushkrskilo| Bob|=20 ********************************************=20=20=20=20=20=20=20=20 Anya Mendenhall Enterprise Resource Planning Developer=20=20=20 Information Systems & Services The George Washington University 44983 Knoll Square, Ste 380, Ashburn, Virginia 20147 Tel No: 703-726-1970 Fax No: 202-994-5251 ********************************************=20=20=20=20=20=20=20=20=20 ----- Original Message ----- From: bmrazek@sympatico.ca=20 Date: Wednesday, January 18, 2006 3:30 pm Subject: Re: RE: [sqr-users] array printing challenge To: "This list is for discussion about the SQR database reporting language from Hyperion Solutions." > Removing the comman fixed your wrap error. All your names are=20 > printing on the same line because you are not increasing your line=20 > positon in the print command. >=20 > Example: print &name (+1, 20) bold >=20 > +1 says print on the next line, 20 is the column position to start=20 > the print. >=20 >=20 > >=20 > > From: Anya Mendenhall > > Date: 2006/01/18 Wed PM 03:12:43 EST > > To: "This list is for discussion about the SQR database reporting > > language from Hyperion Solutions." > > Subject: Re: RE: [sqr-users] array printing challenge > >=20 > > comma is removed, names still wrap.. > >=20 > > ********************************************=20=20=20=20=20=20=20=20 > > Anya Mendenhall > > Enterprise Resource Planning Developer=20=20=20 > > Information Systems & Services > > The George Washington University > > 44983 Knoll Square, Ste 380, > > Ashburn, Virginia 20147 > > Tel No: 703-726-1970 > > Fax No: 202-994-5251 > > ********************************************=20=20=20=20=20=20=20=20=20 > >=20 > >=20 > > ----- Original Message ----- > > From: Peter Burton > > Date: Wednesday, January 18, 2006 3:11 pm > > Subject: RE: [sqr-users] array printing challenge > > To: "This list is for discussion about the SQR database=20 > > reportinglanguage from Hyperion Solutions." > >=20 > > >=20 > > > SQR is issuing the error because you have a comma after the=20 > 80.=20=20 > > > Removethe comma. > > >=20 > > > Peter > > >=20 > > > -----Original Message----- > > > From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org=20 > > > [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org]=20 > On=20 > > > BehalfOf Knapp, Richard > > > Sent: Wednesday, January 18, 2006 3:00 PM > > > To: This list is for discussion about the SQR database=20 > > > reportinglanguagefromHyperion Solutions. > > > Subject: RE: [sqr-users] array printing challenge > > >=20 > > >=20 > > > I think this is a print challenge rather than an array=20 > challenge.=20=20 > > > Whatrow(s) do you imagine these array elements are being=20 > printed on? > > >=20 > > > Richard Knapp > > > Database Programmer/Analyst > > > Institutional Research and Planning > > > University of Missouri System > > > 573-882-8856 > > > knappr@umsystem.edu=20 > > >=20 > > > -----Original Message----- > > > From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org=20 > > > [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On=20 > Behalf Of > > > Anya Mendenhall > > > Sent: Wednesday, January 18, 2006 1:45 PM > > > To: sqr-users@sqrug.org=20 > > > Subject: [sqr-users] array printing challenge > > >=20 > > >=20 > > > Array challenge > > >=20 > > > Ok, I am not sure if this is possible in SQR. I have an array=20 > of=20 > > > students that can store up to 16 names. I have defined my=20 > array as=20 > > > follows: > > >=20 > > > create-array name=3Dinstr_arr size=3D100 field=3Dlast_name:char > > >=20 > > > When I put values into my array, I actually concatenate=20 > students=20=20 > > > name=20 > > > along with a | and a certain indicator. So a value in my array=20 > > > might=20 > > > look like this: > > >=20 > > > Liang|Y| > > > Jenn Doe|Y| Anna Smith|Y > > > Todd Bond|Y| Joe Shmoe|=20 > > >=20 > > > The problem is that when I print out this array and the array=20 > has=20 > > > a lot=20 > > > of names in it, the names wrap so that one part of the name is=20 > on=20 > > > one=20 > > > line and the other part of the name is on the other line. Here=20 > is=20 > > > an=20 > > > example: > > >=20 > > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan|=20 > Shibata|=20 > > > Daryabandari| Turkkan| Almarmoom| Liebes| Alhussaini| Bush| Vande > > > rhoek| Almidfa| Khan| Ahmadi-Sabet| > > >=20 > > > Do you see how Vanderhoek wraps around? How do I go about it?=20 > I=20 > > > need=20 > > > to figure out if I am at the end of the line and go to the=20 > next? I=20 > > > tried the wrap command, but it does not work, as I get the=20 > > > following=20 > > > error: > > >=20 > > > Error on line 287: > > > (SQR 5304) Qualifier 'wrap' requires a numeric literal,=20 > > > variable, or=20 > > > column. > > > print $instr_name (,+1) wrap 80, 2 > > >=20 > > > Here is my code: > > >=20 > > > while #ind < {maxArraySize} > > > let $instr_name =3D instr_arr.last_name(#ind) > > >=20 > > > if ($flag =3D 'N') > > > print $instr_name (,4,15) > > > else > > > print $instr_name (,+1) wrap 80, 2 - this wrap command=20 > does=20 > > > not=20 > > > work > > > end-if > > >=20 > > > let $flag =3D 'Y' > > > add 1 to #ind > > >=20 > > > end-while > > >=20 > > >=20 > > > Any ideas on how to go about this? Thank you! > > > ********************************************=20=20=20=20=20=20=20=20 > > > Anya Mendenhall > > > Enterprise Resource Planning Developer=20=20=20 > > > Information Systems & Services > > > The George Washington University > > > 44983 Knoll Square, Ste 380, > > > Ashburn, Virginia 20147 > > > Tel No: 703-726-1970 > > > Fax No: 202-994-5251 > > > ********************************************=20=20=20=20=20=20=20=20= =20 > > >=20 > > >=20 > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org=20 > > > http://www.sqrug.org/mailman/listinfo/sqr-users=20 > > >=20 > > >=20 > > >=20 > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org=20 > > > http://www.sqrug.org/mailman/listinfo/sqr-users=20 > > >=20 > >=20 > >=20 >=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jan 19 11:15:58 2006 From: Anya Mendenhall Date: Thu, 19 Jan 2006 11:13:46 -0500 Subject: Re: RE: RE: [sqr-users] array printing challenge This is a multi-part message in MIME format... ----5f492e1a271a559e Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 7bit yes, that is exactly what I need. Thank you all for the help, I am still working on it :( btw - I am she :) ******************************************** Anya Mendenhall Enterprise Resource Planning Developer Information Systems & Services The George Washington University 44983 Knoll Square, Ste 380, Ashburn, Virginia 20147 Tel No: 703-726-1970 Fax No: 202-994-5251 ******************************************** ----- Original Message ----- From: PeterG Clark Date: Thursday, January 19, 2006 10:58 am Subject: RE: RE: [sqr-users] array printing challenge To: sqr-users@sqrug.org > Unfortunately, that would give Anya one name per line and I don't > think that is what he is looking for ... I think he just wants as > many names as will fit within his 80 columns but will break on a > full word rather than in the middle of a word, no? > > >>> Peter_Burton@hyperion.com 2006/01/19 09:45:35 >>> > Anya, > > You can tell the PRINT WRAP function what character to break on, for > example > > PRINT $Value (#row, #Col) Wrap 80 2 On='|' > > Peter > > -----Original Message----- > From: sqr-users-bounces+peter_burton=hyperion.com@sqrug.org > [mailto:sqr-users-bounces+peter_burton=hyperion.com@sqrug.org] On > BehalfOf PeterG Clark > Sent: Thursday, January 19, 2006 8:35 AM > To: sqr-users@sqrug.org > Subject: Re: RE: [sqr-users] array printing challenge > > Anya, > > Your problem is related to the fact that there are no spaces between > your table entries (I think ... it is hard to tell from your > examples).The Wrap sees no place to perform a logical wrap so it > goes to the > maximum character count you have specified before wrapping. > > If your entries had a space between them, the wrap command would > performas you are expecting it to. > > > For instance, a value of "12345123451234512345" on a WRAP 13 2 would > print as: > 1234512345123 > 4512345 > > This seems to be the problem you are having, no? > > > But a value of "12345 12345 12345 12345" on the same wrap (WRAP 13 2) > would print as: > 12345 12345 > 12345 12345 > > It shouldn't be any problem for you to add a space to each array entry > as you are building your array. > > Hope this helps. > > >>> agueniss@gwu.edu 2006/01/18 16:34:13 >>> > I guess I was not very clear. I want all of the names to print on > the > same line. However, when the printing gets to a name and it is the > end > of the line, I need this name to be printed on the next line. So > if I > have my array as follows: > > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari| > Turkkan| Almarmoom| Liebes| Alhussaini| Bushkrs > kilo| Bob| > > I need Bushkrskilo| to be printed on the new line, so that it > looks > like this: > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari| > Turkkan| > Almarmoom| Liebes| Alhussaini| > Bushkrskilo| Bob| > > > > > ******************************************** > Anya Mendenhall > Enterprise Resource Planning Developer > Information Systems & Services > The George Washington University > 44983 Knoll Square, Ste 380, > Ashburn, Virginia 20147 > Tel No: 703-726-1970 > Fax No: 202-994-5251 > ******************************************** > > > ----- Original Message ----- > From: bmrazek@sympatico.ca > Date: Wednesday, January 18, 2006 3:30 pm > Subject: Re: RE: [sqr-users] array printing challenge > To: "This list is for discussion about the SQR database reporting > language from Hyperion Solutions." > > > Removing the comman fixed your wrap error. All your names are > > printing on the same line because you are not increasing your > line > > positon in the print command. > > > > Example: print &name (+1, 20) bold > > > > +1 says print on the next line, 20 is the column position to > start > > the print. > > > > > > > > > > From: Anya Mendenhall > > > Date: 2006/01/18 Wed PM 03:12:43 EST > > > To: "This list is for discussion about the SQR database reporting > > > language from Hyperion Solutions." > > > Subject: Re: RE: [sqr-users] array printing challenge > > > > > > comma is removed, names still wrap.. > > > > > > ******************************************** > > > Anya Mendenhall > > > Enterprise Resource Planning Developer > > > Information Systems & Services > > > The George Washington University > > > 44983 Knoll Square, Ste 380, > > > Ashburn, Virginia 20147 > > > Tel No: 703-726-1970 > > > Fax No: 202-994-5251 > > > ******************************************** > > > > > > > > > ----- Original Message ----- > > > From: Peter Burton > > > Date: Wednesday, January 18, 2006 3:11 pm > > > Subject: RE: [sqr-users] array printing challenge > > > To: "This list is for discussion about the SQR database > > > reportinglanguage from Hyperion Solutions." users@sqrug.org> > > > > > > > > > > > SQR is issuing the error because you have a comma after the > > 80. > > > > Removethe comma. > > > > > > > > Peter > > > > > > > > -----Original Message----- > > > > From: sqr-users-bounces+peter_burton=hyperion.com@sqrug.org > > > > [mailto:sqr-users- > bounces+peter_burton=hyperion.com@sqrug.org] > > On > > > > BehalfOf Knapp, Richard > > > > Sent: Wednesday, January 18, 2006 3:00 PM > > > > To: This list is for discussion about the SQR database > > > > reportinglanguagefromHyperion Solutions. > > > > Subject: RE: [sqr-users] array printing challenge > > > > > > > > > > > > I think this is a print challenge rather than an array > > challenge. > > > > Whatrow(s) do you imagine these array elements are being > > printed on? > > > > > > > > Richard Knapp > > > > Database Programmer/Analyst > > > > Institutional Research and Planning > > > > University of Missouri System > > > > 573-882-8856 > > > > knappr@umsystem.edu > > > > > > > > -----Original Message----- > > > > From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org > > > > [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On > > Behalf Of > > > > Anya Mendenhall > > > > Sent: Wednesday, January 18, 2006 1:45 PM > > > > To: sqr-users@sqrug.org > > > > Subject: [sqr-users] array printing challenge > > > > > > > > > > > > Array challenge > > > > > > > > Ok, I am not sure if this is possible in SQR. I have an > array > > of > > > > students that can store up to 16 names. I have defined my > > array as > > > > follows: > > > > > > > > create-array name=instr_arr size=100 field=last_name:char > > > > > > > > When I put values into my array, I actually concatenate > > students > > > > name > > > > along with a | and a certain indicator. So a value in my > array > > > > might > > > > look like this: > > > > > > > > Liang|Y| > > > > Jenn Doe|Y| Anna Smith|Y > > > > Todd Bond|Y| Joe Shmoe| > > > > > > > > The problem is that when I print out this array and the > array > > has > > > > a lot > > > > of names in it, the names wrap so that one part of the name > is > > on > > > > one > > > > line and the other part of the name is on the other line. > Here > > is > > > > an > > > > example: > > > > > > > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| > > Shibata| > > > > Daryabandari| Turkkan| Almarmoom| Liebes| Alhussaini| Bush| > Vande> > > rhoek| Almidfa| Khan| Ahmadi-Sabet| > > > > > > > > Do you see how Vanderhoek wraps around? How do I go about > it? > > I > > > > need > > > > to figure out if I am at the end of the line and go to the > > next? I > > > > tried the wrap command, but it does not work, as I get the > > > > following > > > > error: > > > > > > > > Error on line 287: > > > > (SQR 5304) Qualifier 'wrap' requires a numeric literal, > > > > variable, or > > > > column. > > > > print $instr_name (,+1) wrap 80, 2 > > > > > > > > Here is my code: > > > > > > > > while #ind < {maxArraySize} > > > > let $instr_name = instr_arr.last_name(#ind) > > > > > > > > if ($flag = 'N') > > > > print $instr_name (,4,15) > > > > else > > > > print $instr_name (,+1) wrap 80, 2 - this wrap command > > does > > > > not > > > > work > > > > end-if > > > > > > > > let $flag = 'Y' > > > > add 1 to #ind > > > > > > > > end-while > > > > > > > > > > > > Any ideas on how to go about this? Thank you! > > > > ******************************************** > > > > Anya Mendenhall > > > > Enterprise Resource Planning Developer > > > > Information Systems & Services > > > > The George Washington University > > > > 44983 Knoll Square, Ste 380, > > > > Ashburn, Virginia 20147 > > > > Tel No: 703-726-1970 > > > > Fax No: 202-994-5251 > > > > ******************************************** > > > > > > > > > > > > _______________________________________________ > > > > sqr-users mailing list > > > > sqr-users@sqrug.org > > > > 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 > ----5f492e1a271a559e Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'text/x-vcard' MIME type. It has been automatically discarded before sending the message to the list. ----5f492e1a271a559e 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 ----5f492e1a271a559e-- From sqr-users-bounces@sqrug.org Thu Jan 19 16:06:36 2006 Date: Thu, 19 Jan 2006 16:03:45 -0500 From: "George Jansen" Subject: Re: RE: RE: [sqr-users] array printing challenge If you are using Oracle (9i or up), you could use a pipelined function to a= ccomplish this in the database. If this is of interest to you, contact me o= ff-line; I don't think that arcane Oracle tricks are what the mailing list = wants. SQL> l 1 SELECT column_value, length(column_value) as column_length 2 FROM TABLE(slop.fill_to_column( 3* 'SELECT object_name FROM all_objects WHERE OWNER =3D ''SYS'' and rownu= m < 50')) SQL> / COLUMN_VALUE COLUMN_LENGTH ------------------------------------------------------------ ------------- DUAL|SYSTEM_PRIVILEGE_MAP|TABLE_PRIVILEGE_MAP| 46 STMT_AUDIT_OPTION_MAP|STANDARD|DBMS_STANDARD|USER_REGISTRY| 59 ALL_REGISTRY_BANNERS|V_$BH|V_$SESSION_LONGOPS| 46 V_$NLS_PARAMETERS|V_$NLS_VALID_VALUES|V_$MLS_PARAMETERS| 56 V_$OPTION|V_$VERSION|V_$PQ_SESSTAT|V_$SESSION_CONNECT_INFO| 59 V_$PQ_TQSTAT|V_$ACTIVE_INSTANCES|V_$LOCK_ACTIVITY| 50 V_$RSRC_CONSUMER_GROUP_CPU_MTH|V_$RSRC_PLAN_CPU_MTH| 52 V_$RSRC_CONSUMER_GROUP|V_$RSRC_PLAN|V_$TEMPORARY_LOBS| 54 V_$AW_OLAP|V_$AW_CALC|V_$AW_SESSION_INFO| 41 V_$MAX_ACTIVE_SESS_TARGET_MTH|V_$ACTIVE_SESS_POOL_MTH| 54 V_$PARALLEL_DEGREE_LIMIT_MTH|V_$QUEUEING_MTH| 45 V_$TIMEZONE_NAMES|GV_$BH|GV_$SESSION_LONGOPS| 45 GV_$NLS_PARAMETERS|GV_$NLS_VALID_VALUES|GV_$MLS_PARAMETERS| 59 GV_$OPTION|GV_$VERSION|GV_$PQ_SESSTAT|GV_$PQ_TQSTAT| 52 GV_$ACTIVE_INSTANCES|GV_$LOCK_ACTIVITY| 39 GV_$RSRC_CONSUME_GROUP_CPU_MTH|GV_$RSRC_PLAN_CPU_MTH| 53 GV_$RSRC_CONSUMER_GROUP|GV_$RSRC_PLAN|GV_$TEMPORARY_LOBS| 57 17 rows selected. SQL>=20 >>> agueniss@gwu.edu 01/19/06 11:13 AM >>> yes, that is exactly what I need. Thank you all for the help, I am=20 still working on it :( btw - I am she :) ********************************************=20=20=20=20=20=20=20=20 Anya Mendenhall Enterprise Resource Planning Developer=20=20=20 Information Systems & Services The George Washington University 44983 Knoll Square, Ste 380, Ashburn, Virginia 20147 Tel No: 703-726-1970 Fax No: 202-994-5251 ********************************************=20=20=20=20=20=20=20=20=20 ----- Original Message ----- From: PeterG Clark Date: Thursday, January 19, 2006 10:58 am Subject: RE: RE: [sqr-users] array printing challenge To: sqr-users@sqrug.org=20 > Unfortunately, that would give Anya one name per line and I don't=20 > think that is what he is looking for ... I think he just wants as=20 > many names as will fit within his 80 columns but will break on a=20 > full word rather than in the middle of a word, no? >=20 > >>> Peter_Burton@hyperion.com 2006/01/19 09:45:35 >>> > Anya, >=20 > You can tell the PRINT WRAP function what character to break on, for > example >=20 > PRINT $Value (#row, #Col) Wrap 80 2 On=3D'|'=20 >=20 > Peter >=20 > -----Original Message----- > From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org=20 > [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org] On=20 > BehalfOf PeterG Clark > Sent: Thursday, January 19, 2006 8:35 AM > To: sqr-users@sqrug.org=20 > Subject: Re: RE: [sqr-users] array printing challenge >=20 > Anya, >=20 > Your problem is related to the fact that there are no spaces between > your table entries (I think ... it is hard to tell from your=20 > examples).The Wrap sees no place to perform a logical wrap so it=20 > goes to the > maximum character count you have specified before wrapping. >=20 > If your entries had a space between them, the wrap command would=20 > performas you are expecting it to. >=20 >=20 > For instance, a value of "12345123451234512345" on a WRAP 13 2 would > print as: > 1234512345123 > 4512345 >=20 > This seems to be the problem you are having, no? >=20 >=20 > But a value of "12345 12345 12345 12345" on the same wrap (WRAP 13 2) > would print as: > 12345 12345 > 12345 12345 >=20 > It shouldn't be any problem for you to add a space to each array entry > as you are building your array.=20 >=20 > Hope this helps. >=20 > >>> agueniss@gwu.edu 2006/01/18 16:34:13 >>> > I guess I was not very clear. I want all of the names to print on=20 > the=20 > same line. However, when the printing gets to a name and it is the=20 > end=20 > of the line, I need this name to be printed on the next line. So=20 > if I=20 > have my array as follows: >=20 >=20 > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari|=20 > Turkkan| Almarmoom| Liebes| Alhussaini| Bushkrs > kilo| Bob|=20 >=20 > I need Bushkrskilo| to be printed on the new line, so that it=20 > looks=20 > like this: >=20 > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari|=20 > Turkkan|=20 > Almarmoom| Liebes| Alhussaini|=20 > Bushkrskilo| Bob|=20 >=20 >=20 >=20 >=20 > ********************************************=20=20=20=20=20=20=20=20 > Anya Mendenhall > Enterprise Resource Planning Developer=20=20=20 > Information Systems & Services > The George Washington University > 44983 Knoll Square, Ste 380, > Ashburn, Virginia 20147 > Tel No: 703-726-1970 > Fax No: 202-994-5251 > ********************************************=20=20=20=20=20=20=20=20=20 >=20 >=20 > ----- Original Message ----- > From: bmrazek@sympatico.ca=20 > Date: Wednesday, January 18, 2006 3:30 pm > Subject: Re: RE: [sqr-users] array printing challenge > To: "This list is for discussion about the SQR database reporting > language from Hyperion Solutions." >=20 > > Removing the comman fixed your wrap error. All your names are=20 > > printing on the same line because you are not increasing your=20 > line=20 > > positon in the print command. > >=20 > > Example: print &name (+1, 20) bold > >=20 > > +1 says print on the next line, 20 is the column position to=20 > start=20 > > the print. > >=20 > >=20 > > >=20 > > > From: Anya Mendenhall > > > Date: 2006/01/18 Wed PM 03:12:43 EST > > > To: "This list is for discussion about the SQR database reporting > > > language from Hyperion Solutions." > > > Subject: Re: RE: [sqr-users] array printing challenge > > >=20 > > > comma is removed, names still wrap.. > > >=20 > > > ********************************************=20=20=20=20=20=20=20=20 > > > Anya Mendenhall > > > Enterprise Resource Planning Developer=20=20=20 > > > Information Systems & Services > > > The George Washington University > > > 44983 Knoll Square, Ste 380, > > > Ashburn, Virginia 20147 > > > Tel No: 703-726-1970 > > > Fax No: 202-994-5251 > > > ********************************************=20=20=20=20=20=20=20=20= =20 > > >=20 > > >=20 > > > ----- Original Message ----- > > > From: Peter Burton > > > Date: Wednesday, January 18, 2006 3:11 pm > > > Subject: RE: [sqr-users] array printing challenge > > > To: "This list is for discussion about the SQR database=20 > > > reportinglanguage from Hyperion Solutions." users@sqrug.org> > > >=20 > > > >=20 > > > > SQR is issuing the error because you have a comma after the=20 > > 80.=20=20 > > > > Removethe comma. > > > >=20 > > > > Peter > > > >=20 > > > > -----Original Message----- > > > > From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org=20 > > > > [mailto:sqr-users- > bounces+peter_burton=3Dhyperion.com@sqrug.org]=20 > > On=20 > > > > BehalfOf Knapp, Richard > > > > Sent: Wednesday, January 18, 2006 3:00 PM > > > > To: This list is for discussion about the SQR database=20 > > > > reportinglanguagefromHyperion Solutions. > > > > Subject: RE: [sqr-users] array printing challenge > > > >=20 > > > >=20 > > > > I think this is a print challenge rather than an array=20 > > challenge.=20=20 > > > > Whatrow(s) do you imagine these array elements are being=20 > > printed on? > > > >=20 > > > > Richard Knapp > > > > Database Programmer/Analyst > > > > Institutional Research and Planning > > > > University of Missouri System > > > > 573-882-8856 > > > > knappr@umsystem.edu=20 > > > >=20 > > > > -----Original Message----- > > > > From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org=20 > > > > [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On=20 > > Behalf Of > > > > Anya Mendenhall > > > > Sent: Wednesday, January 18, 2006 1:45 PM > > > > To: sqr-users@sqrug.org=20 > > > > Subject: [sqr-users] array printing challenge > > > >=20 > > > >=20 > > > > Array challenge > > > >=20 > > > > Ok, I am not sure if this is possible in SQR. I have an=20 > array=20 > > of=20 > > > > students that can store up to 16 names. I have defined my=20 > > array as=20 > > > > follows: > > > >=20 > > > > create-array name=3Dinstr_arr size=3D100 field=3Dlast_name:char > > > >=20 > > > > When I put values into my array, I actually concatenate=20 > > students=20=20 > > > > name=20 > > > > along with a | and a certain indicator. So a value in my=20 > array=20 > > > > might=20 > > > > look like this: > > > >=20 > > > > Liang|Y| > > > > Jenn Doe|Y| Anna Smith|Y > > > > Todd Bond|Y| Joe Shmoe|=20 > > > >=20 > > > > The problem is that when I print out this array and the=20 > array=20 > > has=20 > > > > a lot=20 > > > > of names in it, the names wrap so that one part of the name=20 > is=20 > > on=20 > > > > one=20 > > > > line and the other part of the name is on the other line.=20 > Here=20 > > is=20 > > > > an=20 > > > > example: > > > >=20 > > > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan|=20 > > Shibata|=20 > > > > Daryabandari| Turkkan| Almarmoom| Liebes| Alhussaini| Bush|=20 > Vande> > > rhoek| Almidfa| Khan| Ahmadi-Sabet| > > > >=20 > > > > Do you see how Vanderhoek wraps around? How do I go about=20 > it?=20 > > I=20 > > > > need=20 > > > > to figure out if I am at the end of the line and go to the=20 > > next? I=20 > > > > tried the wrap command, but it does not work, as I get the=20 > > > > following=20 > > > > error: > > > >=20 > > > > Error on line 287: > > > > (SQR 5304) Qualifier 'wrap' requires a numeric literal,=20 > > > > variable, or=20 > > > > column. > > > > print $instr_name (,+1) wrap 80, 2 > > > >=20 > > > > Here is my code: > > > >=20 > > > > while #ind < {maxArraySize} > > > > let $instr_name =3D instr_arr.last_name(#ind) > > > >=20 > > > > if ($flag =3D 'N') > > > > print $instr_name (,4,15) > > > > else > > > > print $instr_name (,+1) wrap 80, 2 - this wrap command=20 > > does=20 > > > > not=20 > > > > work > > > > end-if > > > >=20 > > > > let $flag =3D 'Y' > > > > add 1 to #ind > > > >=20 > > > > end-while > > > >=20 > > > >=20 > > > > Any ideas on how to go about this? Thank you! > > > > ********************************************=20=20=20=20=20=20=20= =20 > > > > Anya Mendenhall > > > > Enterprise Resource Planning Developer=20=20=20 > > > > Information Systems & Services > > > > The George Washington University > > > > 44983 Knoll Square, Ste 380, > > > > Ashburn, Virginia 20147 > > > > Tel No: 703-726-1970 > > > > Fax No: 202-994-5251 > > > > ********************************************=20=20=20=20=20=20=20= =20=20 > > > >=20 > > > >=20 > > > > _______________________________________________ > > > > sqr-users mailing list > > > > sqr-users@sqrug.org=20 > > > > http://www.sqrug.org/mailman/listinfo/sqr-users=20 > > > >=20 > > > >=20 > > > >=20 > > > > _______________________________________________ > > > > sqr-users mailing list > > > > sqr-users@sqrug.org=20 > > > > http://www.sqrug.org/mailman/listinfo/sqr-users=20 > > > >=20 > > >=20 > > >=20 > >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 >=20 >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=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 Jan 19 18:11:03 2006 From: "Steve Cavill" Subject: Re: RE: RE: [sqr-users] array printing challenge Date: Fri, 20 Jan 2006 10:07:50 +1100 Note this is just like wrapping on spaces, it will only wrap when it needs to, not on every '|'. Steve. > Have a look at the on= option of wrap > e.g. > print $instr_name (,+1) wrap 80 2 on='|' !Note this will not print the last > | on the line. > Steve. > ----- Original Message ----- > From: "Anya Mendenhall" > To: "This list is for discussion about the SQR database reportinglanguage > from Hyperion Solutions." > Sent: Thursday, January 19, 2006 8:19 AM > Subject: Re: RE: RE: [sqr-users] array printing challenge > > > > yep. that is why I asked the question..Not sure about the logic .. > > > > ******************************************** > > Anya Mendenhall > > Enterprise Resource Planning Developer > > Information Systems & Services' > > The George Washington University > > 44983 Knoll Square, Ste 380, > > Ashburn, Virginia 20147 > > Tel No: 703-726-1970 > > Fax No: 202-994-5251 > > ******************************************** > > > > > > ----- Original Message ----- > > From: "Knapp, Richard" > > Date: Wednesday, January 18, 2006 4:10 pm > > Subject: RE: RE: [sqr-users] array printing challenge > > To: "This list is for discussion about the SQR database > > reportinglanguage from Hyperion Solutions." > > > > > > > > But all the names can't print on the same line. So you are going to > > > have to count characters and construct some logic to handle the > > > printing. > > > > > > Richard Knapp > > > Database Programmer/Analyst > > > Institutional Research and Planning > > > University of Missouri System > > > 573-882-8856 > > > knappr@umsystem.edu > > > > > > -----Original Message----- > > > From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org > > > [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of > > > Anya Mendenhall > > > Sent: Wednesday, January 18, 2006 2:34 PM > > > To: This list is for discussion about the SQR database > > > reportinglanguagefrom Hyperion Solutions. > > > Subject: Re: RE: [sqr-users] array printing challenge > > > > > > I guess I was not very clear. I want all of the names to print on > > > the > > > same line. However, when the printing gets to a name and it is the > > > end > > > of the line, I need this name to be printed on the next line. So > > > if I > > > have my array as follows: > > > > > > > > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari| > > > Turkkan| Almarmoom| Liebes| Alhussaini| Bushkrs > > > kilo| Bob| > > > > > > I need Bushkrskilo| to be printed on the new line, so that it > > > looks > > > like this: > > > > > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari| > > > Turkkan| > > > Almarmoom| Liebes| Alhussaini| > > > Bushkrskilo| Bob| > > > > > > > > > > > > > > > ******************************************** > > > Anya Mendenhall > > > Enterprise Resource Planning Developer > > > Information Systems & Services > > > The George Washington University > > > 44983 Knoll Square, Ste 380, > > > Ashburn, Virginia 20147 > > > Tel No: 703-726-1970 > > > Fax No: 202-994-5251 > > > ******************************************** > > > > > > > > > ----- Original Message ----- > > > From: bmrazek@sympatico.ca > > > Date: Wednesday, January 18, 2006 3:30 pm > > > Subject: Re: RE: [sqr-users] array printing challenge > > > To: "This list is for discussion about the SQR database reporting > > > language from Hyperion Solutions." > > > > > > > Removing the comman fixed your wrap error. All your names are > > > > printing on the same line because you are not increasing your > > > line > > > > positon in the print command. > > > > > > > > Example: print &name (+1, 20) bold > > > > > > > > +1 says print on the next line, 20 is the column position to > > > start > > > > the print. > > > > > > > > > > > > > > > > > > From: Anya Mendenhall > > > > > Date: 2006/01/18 Wed PM 03:12:43 EST > > > > > To: "This list is for discussion about the SQR database reporting > > > > > language from Hyperion Solutions." > > > > > Subject: Re: RE: [sqr-users] array printing challenge > > > > > > > > > > comma is removed, names still wrap.. > > > > > > > > > > ******************************************** > > > > > Anya Mendenhall > > > > > Enterprise Resource Planning Developer > > > > > Information Systems & Services > > > > > The George Washington University > > > > > 44983 Knoll Square, Ste 380, > > > > > Ashburn, Virginia 20147 > > > > > Tel No: 703-726-1970 > > > > > Fax No: 202-994-5251 > > > > > ******************************************** > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > From: Peter Burton > > > > > Date: Wednesday, January 18, 2006 3:11 pm > > > > > Subject: RE: [sqr-users] array printing challenge > > > > > To: "This list is for discussion about the SQR database > > > > > reportinglanguage from Hyperion Solutions." > > users@sqrug.org> > > > > > > > > > > > > > > > > > SQR is issuing the error because you have a comma after the > > > > 80. > > > > > > Removethe comma. > > > > > > > > > > > > Peter > > > > > > > > > > > > -----Original Message----- > > > > > > From: sqr-users-bounces+peter_burton=hyperion.com@sqrug.org > > > > > > [mailto:sqr-users- > > > bounces+peter_burton=hyperion.com@sqrug.org] > > > > On > > > > > > BehalfOf Knapp, Richard > > > > > > Sent: Wednesday, January 18, 2006 3:00 PM > > > > > > To: This list is for discussion about the SQR database > > > > > > reportinglanguagefromHyperion Solutions. > > > > > > Subject: RE: [sqr-users] array printing challenge > > > > > > > > > > > > > > > > > > I think this is a print challenge rather than an array > > > > challenge. > > > > > > Whatrow(s) do you imagine these array elements are being > > > > printed on? > > > > > > > > > > > > Richard Knapp > > > > > > Database Programmer/Analyst > > > > > > Institutional Research and Planning > > > > > > University of Missouri System > > > > > > 573-882-8856 > > > > > > knappr@umsystem.edu > > > > > > > > > > > > -----Original Message----- > > > > > > From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org > > > > > > [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On > > > > Behalf Of > > > > > > Anya Mendenhall > > > > > > Sent: Wednesday, January 18, 2006 1:45 PM > > > > > > To: sqr-users@sqrug.org > > > > > > Subject: [sqr-users] array printing challenge > > > > > > > > > > > > > > > > > > Array challenge > > > > > > > > > > > > Ok, I am not sure if this is possible in SQR. I have an > > > array > > > > of > > > > > > students that can store up to 16 names. I have defined my > > > > array as > > > > > > follows: > > > > > > > > > > > > create-array name=instr_arr size=100 field=last_name:char > > > > > > > > > > > > When I put values into my array, I actually concatenate > > > > students > > > > > > name > > > > > > along with a | and a certain indicator. So a value in my > > > array > > > > > > might > > > > > > look like this: > > > > > > > > > > > > Liang|Y| > > > > > > Jenn Doe|Y| Anna Smith|Y > > > > > > Todd Bond|Y| Joe Shmoe| > > > > > > > > > > > > The problem is that when I print out this array and the > > > array > > > > has > > > > > > a lot > > > > > > of names in it, the names wrap so that one part of the name > > > is > > > > on > > > > > > one > > > > > > line and the other part of the name is on the other line. > > > Here > > > > is > > > > > > an > > > > > > example: > > > > > > > > > > > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| > > > > Shibata| > > > > > > Daryabandari| Turkkan| Almarmoom| Liebes| Alhussaini| Bush| > > > Vande> > > rhoek| Almidfa| Khan| Ahmadi-Sabet| > > > > > > > > > > > > Do you see how Vanderhoek wraps around? How do I go about > > > it? > > > > I > > > > > > need > > > > > > to figure out if I am at the end of the line and go to the > > > > next? I > > > > > > tried the wrap command, but it does not work, as I get the > > > > > > following > > > > > > error: > > > > > > > > > > > > Error on line 287: > > > > > > (SQR 5304) Qualifier 'wrap' requires a numeric literal, > > > > > > variable, or > > > > > > column. > > > > > > print $instr_name (,+1) wrap 80, 2 > > > > > > > > > > > > Here is my code: > > > > > > > > > > > > while #ind < {maxArraySize} > > > > > > let $instr_name = instr_arr.last_name(#ind) > > > > > > > > > > > > if ($flag = 'N') > > > > > > print $instr_name (,4,15) > > > > > > else > > > > > > print $instr_name (,+1) wrap 80, 2 - this wrap command > > > > does > > > > > > not > > > > > > work > > > > > > end-if > > > > > > > > > > > > let $flag = 'Y' > > > > > > add 1 to #ind > > > > > > > > > > > > end-while > > > > > > > > > > > > > > > > > > Any ideas on how to go about this? Thank you! > > > > > > ******************************************** > > > > > > Anya Mendenhall > > > > > > Enterprise Resource Planning Developer > > > > > > Information Systems & Services > > > > > > The George Washington University > > > > > > 44983 Knoll Square, Ste 380, > > > > > > Ashburn, Virginia 20147 > > > > > > Tel No: 703-726-1970 > > > > > > Fax No: 202-994-5251 > > > > > > ******************************************** > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > sqr-users mailing list > > > > > > sqr-users@sqrug.org > > > > > > 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 > > > > > > > > -------------------------------------------------------------------------- -- > ---- > > > > Here was a non admissible message part of 'text/x-vcard' MIME type. It > > has been automatically discarded before sending the message to the > > list. > > > > > -------------------------------------------------------------------------- -- > ---- > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jan 20 06:14:02 2006 Date: Fri, 20 Jan 2006 07:09:59 -0400 From: "PeterG Clark" Subject: Re: RE: RE: [sqr-users] array printing challenge Are you sure? I ran tests and it wrapped on every '|'. Perhaps it works dif= ferently on different versions of SQR. >>> steve.cavill@infoclarity.com.au 2006/01/19 19:07:50 >>> Note this is just like wrapping on spaces, it will only wrap when it needs to, not on every '|'. Steve. > Have a look at the on=3D option of wrap > e.g. > print $instr_name (,+1) wrap 80 2 on=3D'|' !Note this will not print the last > | on the line. > Steve. > ----- Original Message ----- > From: "Anya Mendenhall" > To: "This list is for discussion about the SQR database reportinglanguage > from Hyperion Solutions." > Sent: Thursday, January 19, 2006 8:19 AM > Subject: Re: RE: RE: [sqr-users] array printing challenge > > > > yep. that is why I asked the question..Not sure about the logic .. > > > > ******************************************** > > Anya Mendenhall > > Enterprise Resource Planning Developer > > Information Systems & Services' > > The George Washington University > > 44983 Knoll Square, Ste 380, > > Ashburn, Virginia 20147 > > Tel No: 703-726-1970 > > Fax No: 202-994-5251 > > ******************************************** > > > > > > ----- Original Message ----- > > From: "Knapp, Richard" > > Date: Wednesday, January 18, 2006 4:10 pm > > Subject: RE: RE: [sqr-users] array printing challenge > > To: "This list is for discussion about the SQR database > > reportinglanguage from Hyperion Solutions." > > > > > > > > But all the names can't print on the same line. So you are going to > > > have to count characters and construct some logic to handle the > > > printing. > > > > > > Richard Knapp > > > Database Programmer/Analyst > > > Institutional Research and Planning > > > University of Missouri System > > > 573-882-8856 > > > knappr@umsystem.edu=20 > > > > > > -----Original Message----- > > > From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org=20 > > > [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf = Of > > > Anya Mendenhall > > > Sent: Wednesday, January 18, 2006 2:34 PM > > > To: This list is for discussion about the SQR database > > > reportinglanguagefrom Hyperion Solutions. > > > Subject: Re: RE: [sqr-users] array printing challenge > > > > > > I guess I was not very clear. I want all of the names to print on > > > the > > > same line. However, when the printing gets to a name and it is the > > > end > > > of the line, I need this name to be printed on the next line. So > > > if I > > > have my array as follows: > > > > > > > > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari| > > > Turkkan| Almarmoom| Liebes| Alhussaini| Bushkrs > > > kilo| Bob| > > > > > > I need Bushkrskilo| to be printed on the new line, so that it > > > looks > > > like this: > > > > > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari| > > > Turkkan| > > > Almarmoom| Liebes| Alhussaini| > > > Bushkrskilo| Bob| > > > > > > > > > > > > > > > ******************************************** > > > Anya Mendenhall > > > Enterprise Resource Planning Developer > > > Information Systems & Services > > > The George Washington University > > > 44983 Knoll Square, Ste 380, > > > Ashburn, Virginia 20147 > > > Tel No: 703-726-1970 > > > Fax No: 202-994-5251 > > > ******************************************** > > > > > > > > > ----- Original Message ----- > > > From: bmrazek@sympatico.ca=20 > > > Date: Wednesday, January 18, 2006 3:30 pm > > > Subject: Re: RE: [sqr-users] array printing challenge > > > To: "This list is for discussion about the SQR database reporting > > > language from Hyperion Solutions." > > > > > > > Removing the comman fixed your wrap error. All your names are > > > > printing on the same line because you are not increasing your > > > line > > > > positon in the print command. > > > > > > > > Example: print &name (+1, 20) bold > > > > > > > > +1 says print on the next line, 20 is the column position to > > > start > > > > the print. > > > > > > > > > > > > > > > > > > From: Anya Mendenhall > > > > > Date: 2006/01/18 Wed PM 03:12:43 EST > > > > > To: "This list is for discussion about the SQR database reporting > > > > > language from Hyperion Solutions." > > > > > Subject: Re: RE: [sqr-users] array printing challenge > > > > > > > > > > comma is removed, names still wrap.. > > > > > > > > > > ******************************************** > > > > > Anya Mendenhall > > > > > Enterprise Resource Planning Developer > > > > > Information Systems & Services > > > > > The George Washington University > > > > > 44983 Knoll Square, Ste 380, > > > > > Ashburn, Virginia 20147 > > > > > Tel No: 703-726-1970 > > > > > Fax No: 202-994-5251 > > > > > ******************************************** > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > From: Peter Burton > > > > > Date: Wednesday, January 18, 2006 3:11 pm > > > > > Subject: RE: [sqr-users] array printing challenge > > > > > To: "This list is for discussion about the SQR database > > > > > reportinglanguage from Hyperion Solutions." > > users@sqrug.org> > > > > > > > > > > > > > > > > > SQR is issuing the error because you have a comma after the > > > > 80. > > > > > > Removethe comma. > > > > > > > > > > > > Peter > > > > > > > > > > > > -----Original Message----- > > > > > > From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org= =20 > > > > > > [mailto:sqr-users- > > > bounces+peter_burton=3Dhyperion.com@sqrug.org]=20 > > > > On > > > > > > BehalfOf Knapp, Richard > > > > > > Sent: Wednesday, January 18, 2006 3:00 PM > > > > > > To: This list is for discussion about the SQR database > > > > > > reportinglanguagefromHyperion Solutions. > > > > > > Subject: RE: [sqr-users] array printing challenge > > > > > > > > > > > > > > > > > > I think this is a print challenge rather than an array > > > > challenge. > > > > > > Whatrow(s) do you imagine these array elements are being > > > > printed on? > > > > > > > > > > > > Richard Knapp > > > > > > Database Programmer/Analyst > > > > > > Institutional Research and Planning > > > > > > University of Missouri System > > > > > > 573-882-8856 > > > > > > knappr@umsystem.edu=20 > > > > > > > > > > > > -----Original Message----- > > > > > > From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org=20 > > > > > > [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On > > > > Behalf Of > > > > > > Anya Mendenhall > > > > > > Sent: Wednesday, January 18, 2006 1:45 PM > > > > > > To: sqr-users@sqrug.org=20 > > > > > > Subject: [sqr-users] array printing challenge > > > > > > > > > > > > > > > > > > Array challenge > > > > > > > > > > > > Ok, I am not sure if this is possible in SQR. I have an > > > array > > > > of > > > > > > students that can store up to 16 names. I have defined my > > > > array as > > > > > > follows: > > > > > > > > > > > > create-array name=3Dinstr_arr size=3D100 field=3Dlast_name:char > > > > > > > > > > > > When I put values into my array, I actually concatenate > > > > students > > > > > > name > > > > > > along with a | and a certain indicator. So a value in my > > > array > > > > > > might > > > > > > look like this: > > > > > > > > > > > > Liang|Y| > > > > > > Jenn Doe|Y| Anna Smith|Y > > > > > > Todd Bond|Y| Joe Shmoe| > > > > > > > > > > > > The problem is that when I print out this array and the > > > array > > > > has > > > > > > a lot > > > > > > of names in it, the names wrap so that one part of the name > > > is > > > > on > > > > > > one > > > > > > line and the other part of the name is on the other line. > > > Here > > > > is > > > > > > an > > > > > > example: > > > > > > > > > > > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| > > > > Shibata| > > > > > > Daryabandari| Turkkan| Almarmoom| Liebes| Alhussaini| Bush| > > > Vande> > > rhoek| Almidfa| Khan| Ahmadi-Sabet| > > > > > > > > > > > > Do you see how Vanderhoek wraps around? How do I go about > > > it? > > > > I > > > > > > need > > > > > > to figure out if I am at the end of the line and go to the > > > > next? I > > > > > > tried the wrap command, but it does not work, as I get the > > > > > > following > > > > > > error: > > > > > > > > > > > > Error on line 287: > > > > > > (SQR 5304) Qualifier 'wrap' requires a numeric literal, > > > > > > variable, or > > > > > > column. > > > > > > print $instr_name (,+1) wrap 80, 2 > > > > > > > > > > > > Here is my code: > > > > > > > > > > > > while #ind < {maxArraySize} > > > > > > let $instr_name =3D instr_arr.last_name(#ind) > > > > > > > > > > > > if ($flag =3D 'N') > > > > > > print $instr_name (,4,15) > > > > > > else > > > > > > print $instr_name (,+1) wrap 80, 2 - this wrap command > > > > does > > > > > > not > > > > > > work > > > > > > end-if > > > > > > > > > > > > let $flag =3D 'Y' > > > > > > add 1 to #ind > > > > > > > > > > > > end-while > > > > > > > > > > > > > > > > > > Any ideas on how to go about this? Thank you! > > > > > > ******************************************** > > > > > > Anya Mendenhall > > > > > > Enterprise Resource Planning Developer > > > > > > Information Systems & Services > > > > > > The George Washington University > > > > > > 44983 Knoll Square, Ste 380, > > > > > > Ashburn, Virginia 20147 > > > > > > Tel No: 703-726-1970 > > > > > > Fax No: 202-994-5251 > > > > > > ******************************************** > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > sqr-users mailing list > > > > > > sqr-users@sqrug.org=20 > > > > > > http://www.sqrug.org/mailman/listinfo/sqr-users=20 > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > sqr-users mailing list > > > > > > sqr-users@sqrug.org=20 > > > > > > http://www.sqrug.org/mailman/listinfo/sqr-users=20 > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org=20 > > > http://www.sqrug.org/mailman/listinfo/sqr-users=20 > > > > > > > > -------------------------------------------------------------------------- -- > ---- > > > > Here was a non admissible message part of 'text/x-vcard' MIME type. It > > has been automatically discarded before sending the message to the > > list. > > > > > -------------------------------------------------------------------------- -- > ---- > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org=20 > > http://www.sqrug.org/mailman/listinfo/sqr-users=20 > > > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jan 20 11:36:47 2006 Subject: RE: RE: RE: [sqr-users] array printing challenge Date: Fri, 20 Jan 2006 10:34:14 -0600 From: "Bob Helm" It occurred to me that you might double check the declare-layout section. P= erhaps the report width isn't wide enough? -----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 Anya Mendenhall Sent: Thursday, January 19, 2006 10:14 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: Re: RE: RE: [sqr-users] array printing challenge yes, that is exactly what I need. Thank you all for the help, I am=20 still working on it :( btw - I am she :) ********************************************=20=20=20=20=20=20=20=20 Anya Mendenhall Enterprise Resource Planning Developer=20=20=20 Information Systems & Services The George Washington University 44983 Knoll Square, Ste 380, Ashburn, Virginia 20147 Tel No: 703-726-1970 Fax No: 202-994-5251 ********************************************=20=20=20=20=20=20=20=20=20 ----- Original Message ----- From: PeterG Clark Date: Thursday, January 19, 2006 10:58 am Subject: RE: RE: [sqr-users] array printing challenge To: sqr-users@sqrug.org > Unfortunately, that would give Anya one name per line and I don't=20 > think that is what he is looking for ... I think he just wants as=20 > many names as will fit within his 80 columns but will break on a=20 > full word rather than in the middle of a word, no? >=20 > >>> Peter_Burton@hyperion.com 2006/01/19 09:45:35 >>> > Anya, >=20 > You can tell the PRINT WRAP function what character to break on, for > example >=20 > PRINT $Value (#row, #Col) Wrap 80 2 On=3D'|'=20 >=20 > Peter >=20 > -----Original Message----- > From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org=20 > [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org] On=20 > BehalfOf PeterG Clark > Sent: Thursday, January 19, 2006 8:35 AM > To: sqr-users@sqrug.org=20 > Subject: Re: RE: [sqr-users] array printing challenge >=20 > Anya, >=20 > Your problem is related to the fact that there are no spaces between > your table entries (I think ... it is hard to tell from your=20 > examples).The Wrap sees no place to perform a logical wrap so it=20 > goes to the > maximum character count you have specified before wrapping. >=20 > If your entries had a space between them, the wrap command would=20 > performas you are expecting it to. >=20 >=20 > For instance, a value of "12345123451234512345" on a WRAP 13 2 would > print as: > 1234512345123 > 4512345 >=20 > This seems to be the problem you are having, no? >=20 >=20 > But a value of "12345 12345 12345 12345" on the same wrap (WRAP 13 2) > would print as: > 12345 12345 > 12345 12345 >=20 > It shouldn't be any problem for you to add a space to each array entry > as you are building your array.=20 >=20 > Hope this helps. >=20 > >>> agueniss@gwu.edu 2006/01/18 16:34:13 >>> > I guess I was not very clear. I want all of the names to print on=20 > the=20 > same line. However, when the printing gets to a name and it is the=20 > end=20 > of the line, I need this name to be printed on the next line. So=20 > if I=20 > have my array as follows: >=20 >=20 > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari|=20 > Turkkan| Almarmoom| Liebes| Alhussaini| Bushkrs > kilo| Bob|=20 >=20 > I need Bushkrskilo| to be printed on the new line, so that it=20 > looks=20 > like this: >=20 > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari|=20 > Turkkan|=20 > Almarmoom| Liebes| Alhussaini|=20 > Bushkrskilo| Bob|=20 >=20 >=20 >=20 >=20 > ********************************************=20=20=20=20=20=20=20=20 > Anya Mendenhall > Enterprise Resource Planning Developer=20=20=20 > Information Systems & Services > The George Washington University > 44983 Knoll Square, Ste 380, > Ashburn, Virginia 20147 > Tel No: 703-726-1970 > Fax No: 202-994-5251 > ********************************************=20=20=20=20=20=20=20=20=20 >=20 >=20 > ----- Original Message ----- > From: bmrazek@sympatico.ca=20 > Date: Wednesday, January 18, 2006 3:30 pm > Subject: Re: RE: [sqr-users] array printing challenge > To: "This list is for discussion about the SQR database reporting > language from Hyperion Solutions." >=20 > > Removing the comman fixed your wrap error. All your names are=20 > > printing on the same line because you are not increasing your=20 > line=20 > > positon in the print command. > >=20 > > Example: print &name (+1, 20) bold > >=20 > > +1 says print on the next line, 20 is the column position to=20 > start=20 > > the print. > >=20 > >=20 > > >=20 > > > From: Anya Mendenhall > > > Date: 2006/01/18 Wed PM 03:12:43 EST > > > To: "This list is for discussion about the SQR database reporting > > > language from Hyperion Solutions." > > > Subject: Re: RE: [sqr-users] array printing challenge > > >=20 > > > comma is removed, names still wrap.. > > >=20 > > > ********************************************=20=20=20=20=20=20=20=20 > > > Anya Mendenhall > > > Enterprise Resource Planning Developer=20=20=20 > > > Information Systems & Services > > > The George Washington University > > > 44983 Knoll Square, Ste 380, > > > Ashburn, Virginia 20147 > > > Tel No: 703-726-1970 > > > Fax No: 202-994-5251 > > > ********************************************=20=20=20=20=20=20=20=20= =20 > > >=20 > > >=20 > > > ----- Original Message ----- > > > From: Peter Burton > > > Date: Wednesday, January 18, 2006 3:11 pm > > > Subject: RE: [sqr-users] array printing challenge > > > To: "This list is for discussion about the SQR database=20 > > > reportinglanguage from Hyperion Solutions." users@sqrug.org> > > >=20 > > > >=20 > > > > SQR is issuing the error because you have a comma after the=20 > > 80.=20=20 > > > > Removethe comma. > > > >=20 > > > > Peter > > > >=20 > > > > -----Original Message----- > > > > From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org=20 > > > > [mailto:sqr-users- > bounces+peter_burton=3Dhyperion.com@sqrug.org]=20 > > On=20 > > > > BehalfOf Knapp, Richard > > > > Sent: Wednesday, January 18, 2006 3:00 PM > > > > To: This list is for discussion about the SQR database=20 > > > > reportinglanguagefromHyperion Solutions. > > > > Subject: RE: [sqr-users] array printing challenge > > > >=20 > > > >=20 > > > > I think this is a print challenge rather than an array=20 > > challenge.=20=20 > > > > Whatrow(s) do you imagine these array elements are being=20 > > printed on? > > > >=20 > > > > Richard Knapp > > > > Database Programmer/Analyst > > > > Institutional Research and Planning > > > > University of Missouri System > > > > 573-882-8856 > > > > knappr@umsystem.edu=20 > > > >=20 > > > > -----Original Message----- > > > > From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org=20 > > > > [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On=20 > > Behalf Of > > > > Anya Mendenhall > > > > Sent: Wednesday, January 18, 2006 1:45 PM > > > > To: sqr-users@sqrug.org=20 > > > > Subject: [sqr-users] array printing challenge > > > >=20 > > > >=20 > > > > Array challenge > > > >=20 > > > > Ok, I am not sure if this is possible in SQR. I have an=20 > array=20 > > of=20 > > > > students that can store up to 16 names. I have defined my=20 > > array as=20 > > > > follows: > > > >=20 > > > > create-array name=3Dinstr_arr size=3D100 field=3Dlast_name:char > > > >=20 > > > > When I put values into my array, I actually concatenate=20 > > students=20=20 > > > > name=20 > > > > along with a | and a certain indicator. So a value in my=20 > array=20 > > > > might=20 > > > > look like this: > > > >=20 > > > > Liang|Y| > > > > Jenn Doe|Y| Anna Smith|Y > > > > Todd Bond|Y| Joe Shmoe|=20 > > > >=20 > > > > The problem is that when I print out this array and the=20 > array=20 > > has=20 > > > > a lot=20 > > > > of names in it, the names wrap so that one part of the name=20 > is=20 > > on=20 > > > > one=20 > > > > line and the other part of the name is on the other line.=20 > Here=20 > > is=20 > > > > an=20 > > > > example: > > > >=20 > > > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan|=20 > > Shibata|=20 > > > > Daryabandari| Turkkan| Almarmoom| Liebes| Alhussaini| Bush|=20 > Vande> > > rhoek| Almidfa| Khan| Ahmadi-Sabet| > > > >=20 > > > > Do you see how Vanderhoek wraps around? How do I go about=20 > it?=20 > > I=20 > > > > need=20 > > > > to figure out if I am at the end of the line and go to the=20 > > next? I=20 > > > > tried the wrap command, but it does not work, as I get the=20 > > > > following=20 > > > > error: > > > >=20 > > > > Error on line 287: > > > > (SQR 5304) Qualifier 'wrap' requires a numeric literal,=20 > > > > variable, or=20 > > > > column. > > > > print $instr_name (,+1) wrap 80, 2 > > > >=20 > > > > Here is my code: > > > >=20 > > > > while #ind < {maxArraySize} > > > > let $instr_name =3D instr_arr.last_name(#ind) > > > >=20 > > > > if ($flag =3D 'N') > > > > print $instr_name (,4,15) > > > > else > > > > print $instr_name (,+1) wrap 80, 2 - this wrap command=20 > > does=20 > > > > not=20 > > > > work > > > > end-if > > > >=20 > > > > let $flag =3D 'Y' > > > > add 1 to #ind > > > >=20 > > > > end-while > > > >=20 > > > >=20 > > > > Any ideas on how to go about this? Thank you! > > > > ********************************************=20=20=20=20=20=20=20= =20 > > > > Anya Mendenhall > > > > Enterprise Resource Planning Developer=20=20=20 > > > > Information Systems & Services > > > > The George Washington University > > > > 44983 Knoll Square, Ste 380, > > > > Ashburn, Virginia 20147 > > > > Tel No: 703-726-1970 > > > > Fax No: 202-994-5251 > > > > ********************************************=20=20=20=20=20=20=20= =20=20 > > > >=20 > > > >=20 > > > > _______________________________________________ > > > > sqr-users mailing list > > > > sqr-users@sqrug.org=20 > > > > http://www.sqrug.org/mailman/listinfo/sqr-users=20 > > > >=20 > > > >=20 > > > >=20 > > > > _______________________________________________ > > > > sqr-users mailing list > > > > sqr-users@sqrug.org=20 > > > > http://www.sqrug.org/mailman/listinfo/sqr-users=20 > > > >=20 > > >=20 > > >=20 > >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 >=20 >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jan 20 11:43:21 2006 Subject: RE: RE: RE: [sqr-users] array printing challenge Date: Fri, 20 Jan 2006 10:40:11 -0600 From: "Bob Stone" Why does a question like this get 50+ responses, and tough valid SQR conundrums are lucky to get 1? -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of Bob Helm Sent: Friday, January 20, 2006 10:34 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: RE: RE: [sqr-users] array printing challenge It occurred to me that you might double check the declare-layout section. Perhaps the report width isn't wide enough? -----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 Anya Mendenhall Sent: Thursday, January 19, 2006 10:14 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: Re: RE: RE: [sqr-users] array printing challenge yes, that is exactly what I need. Thank you all for the help, I am=20 still working on it :( btw - I am she :) ********************************************=20=20=20=20=20=20=20=20 Anya Mendenhall Enterprise Resource Planning Developer=20=20=20 Information Systems & Services The George Washington University 44983 Knoll Square, Ste 380, Ashburn, Virginia 20147 Tel No: 703-726-1970 Fax No: 202-994-5251 ********************************************=20=20=20=20=20=20=20=20=20 ----- Original Message ----- From: PeterG Clark Date: Thursday, January 19, 2006 10:58 am Subject: RE: RE: [sqr-users] array printing challenge To: sqr-users@sqrug.org > Unfortunately, that would give Anya one name per line and I don't=20 > think that is what he is looking for ... I think he just wants as=20 > many names as will fit within his 80 columns but will break on a=20 > full word rather than in the middle of a word, no? >=20 > >>> Peter_Burton@hyperion.com 2006/01/19 09:45:35 >>> > Anya, >=20 > You can tell the PRINT WRAP function what character to break on, for > example >=20 > PRINT $Value (#row, #Col) Wrap 80 2 On=3D'|'=20 >=20 > Peter >=20 > -----Original Message----- > From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org=20 > [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org] On=20 > BehalfOf PeterG Clark > Sent: Thursday, January 19, 2006 8:35 AM > To: sqr-users@sqrug.org=20 > Subject: Re: RE: [sqr-users] array printing challenge >=20 > Anya, >=20 > Your problem is related to the fact that there are no spaces between > your table entries (I think ... it is hard to tell from your=20 > examples).The Wrap sees no place to perform a logical wrap so it=20 > goes to the > maximum character count you have specified before wrapping. >=20 > If your entries had a space between them, the wrap command would=20 > performas you are expecting it to. >=20 >=20 > For instance, a value of "12345123451234512345" on a WRAP 13 2 would > print as: > 1234512345123 > 4512345 >=20 > This seems to be the problem you are having, no? >=20 >=20 > But a value of "12345 12345 12345 12345" on the same wrap (WRAP 13 2) > would print as: > 12345 12345 > 12345 12345 >=20 > It shouldn't be any problem for you to add a space to each array entry > as you are building your array.=20 >=20 > Hope this helps. >=20 > >>> agueniss@gwu.edu 2006/01/18 16:34:13 >>> > I guess I was not very clear. I want all of the names to print on=20 > the=20 > same line. However, when the printing gets to a name and it is the=20 > end=20 > of the line, I need this name to be printed on the next line. So=20 > if I=20 > have my array as follows: >=20 >=20 > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari|=20 > Turkkan| Almarmoom| Liebes| Alhussaini| Bushkrs > kilo| Bob|=20 >=20 > I need Bushkrskilo| to be printed on the new line, so that it=20 > looks=20 > like this: >=20 > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari|=20 > Turkkan|=20 > Almarmoom| Liebes| Alhussaini|=20 > Bushkrskilo| Bob|=20 >=20 >=20 >=20 >=20 > ********************************************=20=20=20=20=20=20=20=20 > Anya Mendenhall > Enterprise Resource Planning Developer=20=20=20 > Information Systems & Services > The George Washington University > 44983 Knoll Square, Ste 380, > Ashburn, Virginia 20147 > Tel No: 703-726-1970 > Fax No: 202-994-5251 > ********************************************=20=20=20=20=20=20=20=20=20 >=20 >=20 > ----- Original Message ----- > From: bmrazek@sympatico.ca=20 > Date: Wednesday, January 18, 2006 3:30 pm > Subject: Re: RE: [sqr-users] array printing challenge > To: "This list is for discussion about the SQR database reporting > language from Hyperion Solutions." >=20 > > Removing the comman fixed your wrap error. All your names are=20 > > printing on the same line because you are not increasing your=20 > line=20 > > positon in the print command. > >=20 > > Example: print &name (+1, 20) bold > >=20 > > +1 says print on the next line, 20 is the column position to=20 > start=20 > > the print. > >=20 > >=20 > > >=20 > > > From: Anya Mendenhall > > > Date: 2006/01/18 Wed PM 03:12:43 EST > > > To: "This list is for discussion about the SQR database reporting > > > language from Hyperion Solutions." > > > Subject: Re: RE: [sqr-users] array printing challenge > > >=20 > > > comma is removed, names still wrap.. > > >=20 > > > ********************************************=20=20=20=20=20=20=20=20 > > > Anya Mendenhall > > > Enterprise Resource Planning Developer=20=20=20 > > > Information Systems & Services > > > The George Washington University > > > 44983 Knoll Square, Ste 380, > > > Ashburn, Virginia 20147 > > > Tel No: 703-726-1970 > > > Fax No: 202-994-5251 > > > ********************************************=20=20=20=20=20=20=20=20= =20 > > >=20 > > >=20 > > > ----- Original Message ----- > > > From: Peter Burton > > > Date: Wednesday, January 18, 2006 3:11 pm > > > Subject: RE: [sqr-users] array printing challenge > > > To: "This list is for discussion about the SQR database=20 > > > reportinglanguage from Hyperion Solutions." users@sqrug.org> > > >=20 > > > >=20 > > > > SQR is issuing the error because you have a comma after the=20 > > 80.=20=20 > > > > Removethe comma. > > > >=20 > > > > Peter > > > >=20 > > > > -----Original Message----- > > > > From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org=20 > > > > [mailto:sqr-users- > bounces+peter_burton=3Dhyperion.com@sqrug.org]=20 > > On=20 > > > > BehalfOf Knapp, Richard > > > > Sent: Wednesday, January 18, 2006 3:00 PM > > > > To: This list is for discussion about the SQR database=20 > > > > reportinglanguagefromHyperion Solutions. > > > > Subject: RE: [sqr-users] array printing challenge > > > >=20 > > > >=20 > > > > I think this is a print challenge rather than an array=20 > > challenge.=20=20 > > > > Whatrow(s) do you imagine these array elements are being=20 > > printed on? > > > >=20 > > > > Richard Knapp > > > > Database Programmer/Analyst > > > > Institutional Research and Planning > > > > University of Missouri System > > > > 573-882-8856 > > > > knappr@umsystem.edu=20 > > > >=20 > > > > -----Original Message----- > > > > From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org=20 > > > > [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On=20 > > Behalf Of > > > > Anya Mendenhall > > > > Sent: Wednesday, January 18, 2006 1:45 PM > > > > To: sqr-users@sqrug.org=20 > > > > Subject: [sqr-users] array printing challenge > > > >=20 > > > >=20 > > > > Array challenge > > > >=20 > > > > Ok, I am not sure if this is possible in SQR. I have an=20 > array=20 > > of=20 > > > > students that can store up to 16 names. I have defined my=20 > > array as=20 > > > > follows: > > > >=20 > > > > create-array name=3Dinstr_arr size=3D100 field=3Dlast_name:char > > > >=20 > > > > When I put values into my array, I actually concatenate=20 > > students=20=20 > > > > name=20 > > > > along with a | and a certain indicator. So a value in my=20 > array=20 > > > > might=20 > > > > look like this: > > > >=20 > > > > Liang|Y| > > > > Jenn Doe|Y| Anna Smith|Y > > > > Todd Bond|Y| Joe Shmoe|=20 > > > >=20 > > > > The problem is that when I print out this array and the=20 > array=20 > > has=20 > > > > a lot=20 > > > > of names in it, the names wrap so that one part of the name=20 > is=20 > > on=20 > > > > one=20 > > > > line and the other part of the name is on the other line.=20 > Here=20 > > is=20 > > > > an=20 > > > > example: > > > >=20 > > > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan|=20 > > Shibata|=20 > > > > Daryabandari| Turkkan| Almarmoom| Liebes| Alhussaini| Bush|=20 > Vande> > > rhoek| Almidfa| Khan| Ahmadi-Sabet| > > > >=20 > > > > Do you see how Vanderhoek wraps around? How do I go about=20 > it?=20 > > I=20 > > > > need=20 > > > > to figure out if I am at the end of the line and go to the=20 > > next? I=20 > > > > tried the wrap command, but it does not work, as I get the=20 > > > > following=20 > > > > error: > > > >=20 > > > > Error on line 287: > > > > (SQR 5304) Qualifier 'wrap' requires a numeric literal,=20 > > > > variable, or=20 > > > > column. > > > > print $instr_name (,+1) wrap 80, 2 > > > >=20 > > > > Here is my code: > > > >=20 > > > > while #ind < {maxArraySize} > > > > let $instr_name =3D instr_arr.last_name(#ind) > > > >=20 > > > > if ($flag =3D 'N') > > > > print $instr_name (,4,15) > > > > else > > > > print $instr_name (,+1) wrap 80, 2 - this wrap command=20 > > does=20 > > > > not=20 > > > > work > > > > end-if > > > >=20 > > > > let $flag =3D 'Y' > > > > add 1 to #ind > > > >=20 > > > > end-while > > > >=20 > > > >=20 > > > > Any ideas on how to go about this? Thank you! > > > > ********************************************=20=20=20=20=20=20=20= =20 > > > > Anya Mendenhall > > > > Enterprise Resource Planning Developer=20=20=20 > > > > Information Systems & Services > > > > The George Washington University > > > > 44983 Knoll Square, Ste 380, > > > > Ashburn, Virginia 20147 > > > > Tel No: 703-726-1970 > > > > Fax No: 202-994-5251 > > > > ********************************************=20=20=20=20=20=20=20= =20=20 > > > >=20 > > > >=20 > > > > _______________________________________________ > > > > sqr-users mailing list > > > > sqr-users@sqrug.org=20 > > > > http://www.sqrug.org/mailman/listinfo/sqr-users=20 > > > >=20 > > > >=20 > > > >=20 > > > > _______________________________________________ > > > > sqr-users mailing list > > > > sqr-users@sqrug.org=20 > > > > http://www.sqrug.org/mailman/listinfo/sqr-users=20 > > > >=20 > > >=20 > > >=20 > >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 >=20 >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=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 Jan 20 11:49:37 2006 From: "Wright, David L. II" Subject: RE: RE: RE: [sqr-users] array printing challenge Date: Fri, 20 Jan 2006 08:46:17 -0800 That's obvious - it's an easy one. Nobody wants to tackle the tough ones for fear their answer might be incorrect. Dave -----Original Message----- From: sqr-users-bounces+david.l.wright.ii=saic.com@sqrug.org [mailto:sqr-users-bounces+david.l.wright.ii=saic.com@sqrug.org] On Behalf Of Bob Stone Sent: Friday, January 20, 2006 8:40 AM To: This list is for discussion about the SQR database reporting language from Hyperion Solutions. Subject: RE: RE: RE: [sqr-users] array printing challenge Why does a question like this get 50+ responses, and tough valid SQR conundrums are lucky to get 1? -----Original Message----- From: sqr-users-bounces+bstone=fastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=fastenal.com@sqrug.org] On Behalf Of Bob Helm Sent: Friday, January 20, 2006 10:34 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: RE: RE: [sqr-users] array printing challenge It occurred to me that you might double check the declare-layout section. Perhaps the report width isn't wide enough? -----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 Anya Mendenhall Sent: Thursday, January 19, 2006 10:14 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: Re: RE: RE: [sqr-users] array printing challenge yes, that is exactly what I need. Thank you all for the help, I am still working on it :( btw - I am she :) ******************************************** Anya Mendenhall Enterprise Resource Planning Developer Information Systems & Services The George Washington University 44983 Knoll Square, Ste 380, Ashburn, Virginia 20147 Tel No: 703-726-1970 Fax No: 202-994-5251 ******************************************** ----- Original Message ----- From: PeterG Clark Date: Thursday, January 19, 2006 10:58 am Subject: RE: RE: [sqr-users] array printing challenge To: sqr-users@sqrug.org > Unfortunately, that would give Anya one name per line and I don't > think that is what he is looking for ... I think he just wants as > many names as will fit within his 80 columns but will break on a > full word rather than in the middle of a word, no? > > >>> Peter_Burton@hyperion.com 2006/01/19 09:45:35 >>> > Anya, > > You can tell the PRINT WRAP function what character to break on, for > example > > PRINT $Value (#row, #Col) Wrap 80 2 On='|' > > Peter > > -----Original Message----- > From: sqr-users-bounces+peter_burton=hyperion.com@sqrug.org > [mailto:sqr-users-bounces+peter_burton=hyperion.com@sqrug.org] On > BehalfOf PeterG Clark > Sent: Thursday, January 19, 2006 8:35 AM > To: sqr-users@sqrug.org > Subject: Re: RE: [sqr-users] array printing challenge > > Anya, > > Your problem is related to the fact that there are no spaces between > your table entries (I think ... it is hard to tell from your > examples).The Wrap sees no place to perform a logical wrap so it goes > to the maximum character count you have specified before wrapping. > > If your entries had a space between them, the wrap command would > performas you are expecting it to. > > > For instance, a value of "12345123451234512345" on a WRAP 13 2 would > print as: 1234512345123 > 4512345 > > This seems to be the problem you are having, no? > > > But a value of "12345 12345 12345 12345" on the same wrap (WRAP 13 2) > would print as: 12345 12345 > 12345 12345 > > It shouldn't be any problem for you to add a space to each array entry > as you are building your array. > > Hope this helps. > > >>> agueniss@gwu.edu 2006/01/18 16:34:13 >>> > I guess I was not very clear. I want all of the names to print on > the > same line. However, when the printing gets to a name and it is the > end > of the line, I need this name to be printed on the next line. So > if I > have my array as follows: > > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari| > Turkkan| Almarmoom| Liebes| Alhussaini| Bushkrs > kilo| Bob| > > I need Bushkrskilo| to be printed on the new line, so that it > looks > like this: > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari| > Turkkan| > Almarmoom| Liebes| Alhussaini| > Bushkrskilo| Bob| > > > > > ******************************************** > Anya Mendenhall > Enterprise Resource Planning Developer > Information Systems & Services > The George Washington University > 44983 Knoll Square, Ste 380, > Ashburn, Virginia 20147 > Tel No: 703-726-1970 > Fax No: 202-994-5251 > ******************************************** > > > ----- Original Message ----- > From: bmrazek@sympatico.ca > Date: Wednesday, January 18, 2006 3:30 pm > Subject: Re: RE: [sqr-users] array printing challenge > To: "This list is for discussion about the SQR database reporting > language from Hyperion Solutions." > > > Removing the comman fixed your wrap error. All your names are > > printing on the same line because you are not increasing your > line > > positon in the print command. > > > > Example: print &name (+1, 20) bold > > > > +1 says print on the next line, 20 is the column position to > start > > the print. > > > > > > > > > > From: Anya Mendenhall > > > Date: 2006/01/18 Wed PM 03:12:43 EST > > > To: "This list is for discussion about the SQR database reporting > > > language from Hyperion Solutions." > > > Subject: Re: RE: [sqr-users] array printing challenge > > > > > > comma is removed, names still wrap.. > > > > > > ******************************************** > > > Anya Mendenhall > > > Enterprise Resource Planning Developer > > > Information Systems & Services > > > The George Washington University > > > 44983 Knoll Square, Ste 380, > > > Ashburn, Virginia 20147 > > > Tel No: 703-726-1970 > > > Fax No: 202-994-5251 > > > ******************************************** > > > > > > > > > ----- Original Message ----- > > > From: Peter Burton > > > Date: Wednesday, January 18, 2006 3:11 pm > > > Subject: RE: [sqr-users] array printing challenge > > > To: "This list is for discussion about the SQR database > > > reportinglanguage from Hyperion Solutions." users@sqrug.org> > > > > > > > > > > > SQR is issuing the error because you have a comma after the > > 80. > > > > Removethe comma. > > > > > > > > Peter > > > > > > > > -----Original Message----- > > > > From: sqr-users-bounces+peter_burton=hyperion.com@sqrug.org > > > > [mailto:sqr-users- > bounces+peter_burton=hyperion.com@sqrug.org] > > On > > > > BehalfOf Knapp, Richard > > > > Sent: Wednesday, January 18, 2006 3:00 PM > > > > To: This list is for discussion about the SQR database > > > > reportinglanguagefromHyperion Solutions. > > > > Subject: RE: [sqr-users] array printing challenge > > > > > > > > > > > > I think this is a print challenge rather than an array > > challenge. > > > > Whatrow(s) do you imagine these array elements are being > > printed on? > > > > > > > > Richard Knapp > > > > Database Programmer/Analyst > > > > Institutional Research and Planning > > > > University of Missouri System > > > > 573-882-8856 > > > > knappr@umsystem.edu > > > > > > > > -----Original Message----- > > > > From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org > > > > [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On > > Behalf Of > > > > Anya Mendenhall > > > > Sent: Wednesday, January 18, 2006 1:45 PM > > > > To: sqr-users@sqrug.org > > > > Subject: [sqr-users] array printing challenge > > > > > > > > > > > > Array challenge > > > > > > > > Ok, I am not sure if this is possible in SQR. I have an > array > > of > > > > students that can store up to 16 names. I have defined my > > array as > > > > follows: > > > > > > > > create-array name=instr_arr size=100 field=last_name:char > > > > > > > > When I put values into my array, I actually concatenate > > students > > > > name > > > > along with a | and a certain indicator. So a value in my > array > > > > might > > > > look like this: > > > > > > > > Liang|Y| > > > > Jenn Doe|Y| Anna Smith|Y > > > > Todd Bond|Y| Joe Shmoe| > > > > > > > > The problem is that when I print out this array and the > array > > has > > > > a lot > > > > of names in it, the names wrap so that one part of the name > is > > on > > > > one > > > > line and the other part of the name is on the other line. > Here > > is > > > > an > > > > example: > > > > > > > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| > > Shibata| > > > > Daryabandari| Turkkan| Almarmoom| Liebes| Alhussaini| Bush| > Vande> > > rhoek| Almidfa| Khan| Ahmadi-Sabet| > > > > > > > > Do you see how Vanderhoek wraps around? How do I go about > it? > > I > > > > need > > > > to figure out if I am at the end of the line and go to the > > next? I > > > > tried the wrap command, but it does not work, as I get the > > > > following > > > > error: > > > > > > > > Error on line 287: > > > > (SQR 5304) Qualifier 'wrap' requires a numeric literal, > > > > variable, or > > > > column. > > > > print $instr_name (,+1) wrap 80, 2 > > > > > > > > Here is my code: > > > > > > > > while #ind < {maxArraySize} > > > > let $instr_name = instr_arr.last_name(#ind) > > > > > > > > if ($flag = 'N') > > > > print $instr_name (,4,15) > > > > else > > > > print $instr_name (,+1) wrap 80, 2 - this wrap command > > does > > > > not > > > > work > > > > end-if > > > > > > > > let $flag = 'Y' > > > > add 1 to #ind > > > > > > > > end-while > > > > > > > > > > > > Any ideas on how to go about this? Thank you! > > > > ******************************************** > > > > Anya Mendenhall > > > > Enterprise Resource Planning Developer > > > > Information Systems & Services > > > > The George Washington University > > > > 44983 Knoll Square, Ste 380, > > > > Ashburn, Virginia 20147 > > > > Tel No: 703-726-1970 > > > > Fax No: 202-994-5251 > > > > ******************************************** > > > > > > > > > > > > _______________________________________________ > > > > sqr-users mailing list > > > > sqr-users@sqrug.org > > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > > > > > > > _______________________________________________ > > > > sqr-users mailing list > > > > sqr-users@sqrug.org > > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jan 20 12:02:11 2006 Subject: RE: RE: RE: [sqr-users] array printing challenge Date: Fri, 20 Jan 2006 10:59:22 -0600 From: "Knapp, Richard" Good question. The original inquiry was (and still is) vague. This permits people to project their favorite solutions and tidbits onto it. The tough work of clarifying the requirements is thus avoided and the field remains wide open for anything anyone wants to say. Under these conditions, damsels in distress appear to be rescued and our magnanimous natures are on display for all to see. Also agree with Dave. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Bob Stone Sent: Friday, January 20, 2006 10:40 AM To: This list is for discussion about the SQR database reporting languagefrom Hyperion Solutions. Subject: RE: RE: RE: [sqr-users] array printing challenge Why does a question like this get 50+ responses, and tough valid SQR conundrums are lucky to get 1? -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of Bob Helm Sent: Friday, January 20, 2006 10:34 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: RE: RE: RE: [sqr-users] array printing challenge It occurred to me that you might double check the declare-layout section. Perhaps the report width isn't wide enough? -----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 Anya Mendenhall Sent: Thursday, January 19, 2006 10:14 AM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: Re: RE: RE: [sqr-users] array printing challenge yes, that is exactly what I need. Thank you all for the help, I am=20 still working on it :( btw - I am she :) ********************************************=20=20=20=20=20=20=20=20 Anya Mendenhall Enterprise Resource Planning Developer=20=20=20 Information Systems & Services The George Washington University 44983 Knoll Square, Ste 380, Ashburn, Virginia 20147 Tel No: 703-726-1970 Fax No: 202-994-5251 ********************************************=20=20=20=20=20=20=20=20=20 ----- Original Message ----- From: PeterG Clark Date: Thursday, January 19, 2006 10:58 am Subject: RE: RE: [sqr-users] array printing challenge To: sqr-users@sqrug.org > Unfortunately, that would give Anya one name per line and I don't=20 > think that is what he is looking for ... I think he just wants as=20 > many names as will fit within his 80 columns but will break on a=20 > full word rather than in the middle of a word, no? >=20 > >>> Peter_Burton@hyperion.com 2006/01/19 09:45:35 >>> > Anya, >=20 > You can tell the PRINT WRAP function what character to break on, for > example >=20 > PRINT $Value (#row, #Col) Wrap 80 2 On=3D'|'=20 >=20 > Peter >=20 > -----Original Message----- > From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org=20 > [mailto:sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org] On=20 > BehalfOf PeterG Clark > Sent: Thursday, January 19, 2006 8:35 AM > To: sqr-users@sqrug.org=20 > Subject: Re: RE: [sqr-users] array printing challenge >=20 > Anya, >=20 > Your problem is related to the fact that there are no spaces between > your table entries (I think ... it is hard to tell from your=20 > examples).The Wrap sees no place to perform a logical wrap so it=20 > goes to the > maximum character count you have specified before wrapping. >=20 > If your entries had a space between them, the wrap command would=20 > performas you are expecting it to. >=20 >=20 > For instance, a value of "12345123451234512345" on a WRAP 13 2 would > print as: > 1234512345123 > 4512345 >=20 > This seems to be the problem you are having, no? >=20 >=20 > But a value of "12345 12345 12345 12345" on the same wrap (WRAP 13 2) > would print as: > 12345 12345 > 12345 12345 >=20 > It shouldn't be any problem for you to add a space to each array entry > as you are building your array.=20 >=20 > Hope this helps. >=20 > >>> agueniss@gwu.edu 2006/01/18 16:34:13 >>> > I guess I was not very clear. I want all of the names to print on=20 > the=20 > same line. However, when the printing gets to a name and it is the=20 > end=20 > of the line, I need this name to be printed on the next line. So=20 > if I=20 > have my array as follows: >=20 >=20 > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari|=20 > Turkkan| Almarmoom| Liebes| Alhussaini| Bushkrs > kilo| Bob|=20 >=20 > I need Bushkrskilo| to be printed on the new line, so that it=20 > looks=20 > like this: >=20 > Gallo|Y| Sarrafzdeh| Medghalchi| Swan| Shibata| Daryabandari|=20 > Turkkan|=20 > Almarmoom| Liebes| Alhussaini|=20 > Bushkrskilo| Bob|=20 >=20 >=20 >=20 >=20 > ********************************************=20=20=20=20=20=20=20=20 > Anya Mendenhall > Enterprise Resource Planning Developer=20=20=20 > Information Systems & Services > The George Washington University > 44983 Knoll Square, Ste 380, > Ashburn, Virginia 20147 > Tel No: 703-726-1970 > Fax No: 202-994-5251 > ********************************************=20=20=20=20=20=20=20=20=20 >=20 >=20 > ----- Original Message ----- > From: bmrazek@sympatico.ca=20 > Date: Wednesday, January 18, 2006 3:30 pm > Subject: Re: RE: [sqr-users] array printing challenge > To: "This list is for discussion about the SQR database reporting > language from Hyperion Solutions." >=20 > > Removing the comman fixed your wrap error. All your names are=20 > > printing on the same line because you are not increasing your=20 > line=20 > > positon in the print command. > >=20 > > Example: print &name (+1, 20) bold > >=20 > > +1 says print on the next line, 20 is the column position to=20 > start=20 > > the print. > >=20 > >=20 > > >=20 > > > From: Anya Mendenhall > > > Date: 2006/01/18 Wed PM 03:12:43 EST > > > To: "This list is for discussion about the SQR database reporting > > > language from Hyperion Solutions." > > > Subject: Re: RE: [sqr-users] array printing challenge > > >=20 > > > comma is removed, names still wrap.. > > >=20 > > > ********************************************=20=20=20=20=20=20=20=20 > > > Anya Mendenhall > > > Enterprise Resource Planning Developer=20=20=20 > > > Information Systems & Services > > > The George Washington University > > > 44983 Knoll Square, Ste 380, > > > Ashburn, Virginia 20147 > > > Tel No: 703-726-1970 > > > Fax No: 202-994-5251 > > > ********************************************=20=20=20=20=20=20=20=20= =20 > > >=20 > > >=20 > > > ----- Original Message ----- > > > From: Peter Burton > > > Date: Wednesday, January 18, 2006 3:11 pm > > > Subject: RE: [sqr-users] array printing challenge > > > To: "This list is for discussion about the SQR database=20 > > > reportinglanguage from Hyperion Solutions." users@sqrug.org> > > >=20 > > > >=20 > > > > SQR is issuing the error because you have a comma after the=20 > > 80.=20=20 > > > > Removethe comma. > > > >=20 > > > > Peter > > > >=20 > > > > -----Original Message----- > > > > From: sqr-users-bounces+peter_burton=3Dhyperion.com@sqrug.org=20 > > > > [mailto:sqr-users- > bounces+peter_burton=3Dhyperion.com@sqrug.org]=20 > > On=20 > > > > BehalfOf Knapp, Richard > > > > Sent: Wednesday, January 18, 2006 3:00 PM > > > > To: This list is for discussion about the SQR database=20 > > > > reportinglanguagefromHyperion Solutions. > > > > Subject: RE: [sqr-users] array printing challenge > > > >=20 > > > >=20 > > > > I think this is a print challenge rather than an array=20 > > challenge.=20=20 > > > > Whatrow(s) do you imagine these array elements are being=20 > > printed on? > > > >=20 > > > > Richard Knapp > > > > Database Programmer/Analyst > > > > Institutional Research and Planning > > > > University of Missouri System > > > > 573-882-8856 > > > > knappr@umsystem.edu=20 > > > >=20 > > > > -----Original Message----- > > > > From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org=20 > > > > [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On=20 > > Behalf Of > > > > Anya Mendenhall > > > > Sent: Wednesday, January 18, 2006 1:45 PM > > > > To: sqr-users@sqrug.org=20 > > > > Subject: [sqr-users] array printing challenge > > > >=20 > > > >=20 > > > > Array challenge > > > >=20 > > > > Ok, I am not sure if this is possible in SQR. I have an=20 > array=20 > > of=20 > > > > students that can store up to 16 names. I have defined my=20 > > array as=20 > > > > follows: > > > >=20 > > > > create-array name=3Dinstr_arr size=3D100 field=3Dlast_name:char > > > >=20 > > > > When I put values into my array, I actually concatenate=20 > > students=20=20 > > > > name=20 > > > > along with a | and a certain indicator. So a value in my=20 > array=20 > > > > might=20 > > > > look like this: > > > >=20 > > > > Liang|Y| > > > > Jenn Doe|Y| Anna Smith|Y > > > > Todd Bond|Y| Joe Shmoe|=20 > > > >=20 > > > > The problem is that when I print out this array and the=20 > array=20 > > has=20 > > > > a lot=20 > > > > of names in it, the names wrap so that one part of the name=20 > is=20 > > on=20 > > > > one=20 > > > > line and the other part of the name is on the other line.=20 > Here=20 > > is=20 > > > > an=20 > > > > example: > > > >=20 > > > > Gallo|Y| Sarrafzdeh| Medghalchi| Swan|=20 > > Shibata|=20 > > > > Daryabandari| Turkkan| Almarmoom| Liebes| Alhussaini| Bush|=20 > Vande> > > rhoek| Almidfa| Khan| Ahmadi-Sabet| > > > >=20 > > > > Do you see how Vanderhoek wraps around? How do I go about=20 > it?=20 > > I=20 > > > > need=20 > > > > to figure out if I am at the end of the line and go to the=20 > > next? I=20 > > > > tried the wrap command, but it does not work, as I get the=20 > > > > following=20 > > > > error: > > > >=20 > > > > Error on line 287: > > > > (SQR 5304) Qualifier 'wrap' requires a numeric literal,=20 > > > > variable, or=20 > > > > column. > > > > print $instr_name (,+1) wrap 80, 2 > > > >=20 > > > > Here is my code: > > > >=20 > > > > while #ind < {maxArraySize} > > > > let $instr_name =3D instr_arr.last_name(#ind) > > > >=20 > > > > if ($flag =3D 'N') > > > > print $instr_name (,4,15) > > > > else > > > > print $instr_name (,+1) wrap 80, 2 - this wrap command=20 > > does=20 > > > > not=20 > > > > work > > > > end-if > > > >=20 > > > > let $flag =3D 'Y' > > > > add 1 to #ind > > > >=20 > > > > end-while > > > >=20 > > > >=20 > > > > Any ideas on how to go about this? Thank you! > > > > ********************************************=20=20=20=20=20=20=20= =20 > > > > Anya Mendenhall > > > > Enterprise Resource Planning Developer=20=20=20 > > > > Information Systems & Services > > > > The George Washington University > > > > 44983 Knoll Square, Ste 380, > > > > Ashburn, Virginia 20147 > > > > Tel No: 703-726-1970 > > > > Fax No: 202-994-5251 > > > > ********************************************=20=20=20=20=20=20=20= =20=20 > > > >=20 > > > >=20 > > > > _______________________________________________ > > > > sqr-users mailing list > > > > sqr-users@sqrug.org=20 > > > > http://www.sqrug.org/mailman/listinfo/sqr-users=20 > > > >=20 > > > >=20 > > > >=20 > > > > _______________________________________________ > > > > sqr-users mailing list > > > > sqr-users@sqrug.org=20 > > > > http://www.sqrug.org/mailman/listinfo/sqr-users=20 > > > >=20 > > >=20 > > >=20 > >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 >=20 >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users >=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 Jan 18 15:26:38 2006 Date: Wed, 18 Jan 2006 15:24:17 -0500 From: "Sudheer Bachu" Subject: [sqr-users] Printing text vertically Hi, =20 Can somebody tell me how to print text vertically in a excel file. Iam generating the column heading though dynamic sql and at the same time I want the column heading printed vertically like the following format. =20 User Id First Name Last Name column 1 column2 column3=20 column 4 column 5 =20 =20 Sudheer Bachu DW Developer (248)-353-2700 x 4076 Credit Acceptance Corporation =20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jan 20 11:02:07 2006 From: "Ed Kelly" Date: Fri, 20 Jan 2006 15:59:38 +0000 Subject: [sqr-users] Re: array printing challenge This is not very eligant solution, but I think it might solve the problem. Unstring the field by you delimiter ('|'), then restring it with a single space on each side of the delimiter (' | '). If the number of values per line is variable, follow that with an RTrim to remove any unwanted trailing delimiters. Here's a little example: begin-program Let $NewVal = '123|456|789|123|456|789|123|456|789|123|456|789' Print 'As is, from input file:' (+0,1) Print $NewVal (+1,1) Wrap 14 10 Unstring $NewVal By '|' Into $F01 $F02 $F03 $F04 $F05 $F06 $F07 $F08 $F09 $F10 $F11 $F12 $F13 $F14 $F15 $F16 $F17 $F18 $F19 $F20 String $F01 $F02 $F03 $F04 $F05 $F06 $F07 $F08 $F09 $F10 $F11 $F12 $F13 $F14 $F15 $F16 $F17 $F18 $F19 $F20 By ' | ' Into $NewVal Print 'After Restring:' (+4,1) Print $NewVal (+1,1) Wrap 14 10 Let $NewVal = RTrim($NewVal,'| ') Print 'After RTrim:' (+4,1) Print $NewVal (+1,1) Wrap 14 10 End-Program And here's what the output would look like: As is, from input file: 123|456|789|12 3|456|789|123| 456|789|123|45 6|789 After Restring: 123 | 456 | 789 | 123 | 456 | 789 | 123 | 456 | 789 | 123 | 456 | 789 | | | | | | | | After RTrim: 123 | 456 | 789 | 123 | 456 | 789 | 123 | 456 | 789 | 123 | 456 | 789 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jan 23 11:33:52 2006 Date: Mon, 23 Jan 2006 08:31:28 -0800 (PST) From: prashanth reddy Subject: [sqr-users] sql delete from table where 1 = 1 Hi, I'm testing a sqr, I found a procedure delete-old-data. I'm not sure how the Where statement is identifying the old data, Where 1 = 1. BEGIN-PROCEDURE DELETE-OLD-DATA !************************************************************************** BEGIN-SQL DELETE FROM TABLE_NAME WHERE 1 = 1 END-SQL END-PROCEDURE Please can someone enlight me... Thanks __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jan 23 11:37:12 2006 Date: Mon, 23 Jan 2006 11:34:55 -0500 From: "Larry Roux" Subject: Re: [sqr-users] sql delete from table where 1 = 1 Are you sure it is 1 =3D 1 and not I =3D 1? If it is as listed then 1 =3D = 1 would always be true and all rows would be deleted (and so the where clau= de is unnecessary). Larry Roux Syracuse University lroux@syr.edu >>> bpreddy78@yahoo.com 01/23/06 11:31 AM >>> Hi, I'm testing a sqr, I found a procedure delete-old-data. I'm not sure how the Where statement is identifying the old data, Where 1 =3D 1. BEGIN-PROCEDURE DELETE-OLD-DATA !************************************************************************** BEGIN-SQL DELETE FROM TABLE_NAME WHERE 1 =3D 1 END-SQL END-PROCEDURE Please can someone enlight me... Thanks=20 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around=20 http://mail.yahoo.com=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=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 Jan 23 11:44:26 2006 Date: Mon, 23 Jan 2006 08:39:54 -0800 (PST) From: prashanth reddy Subject: Re: [sqr-users] sql delete from table where 1 = 1 Thanks for the reply, When do you use the condition where 1 = 1. What does it actually mean. --- Larry Roux wrote: > Are you sure it is 1 = 1 and not I = 1? If it is as > listed then 1 = 1 would always be true and all rows > would be deleted (and so the where claude is > unnecessary). > > > > > Larry Roux > Syracuse University > lroux@syr.edu > > > >>> bpreddy78@yahoo.com 01/23/06 11:31 AM >>> > Hi, > > I'm testing a sqr, I found a procedure > delete-old-data. > I'm not sure how the Where statement is identifying > the old data, Where 1 = 1. > > BEGIN-PROCEDURE DELETE-OLD-DATA > !************************************************************************** > BEGIN-SQL > DELETE FROM TABLE_NAME WHERE 1 = 1 > END-SQL > > END-PROCEDURE > > Please can someone enlight me... > > Thanks > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jan 23 11:40:33 2006 From: "the dragon" Subject: RE: [sqr-users] sql delete from table where 1 = 1 Date: Mon, 23 Jan 2006 10:37:54 -0600 That means everything, because 1 always = 1.... 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 testing a sqr, I found a procedure delete-old-data. I'm not sure how the Where statement is identifying the old data, Where 1 = 1. BEGIN-PROCEDURE DELETE-OLD-DATA !************************************************************************** BEGIN-SQL DELETE FROM TABLE_NAME WHERE 1 = 1 END-SQL END-PROCEDURE Please can someone enlight me... Thanks _________________________________________________________________ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Jan 23 11:48:03 2006 Date: Mon, 23 Jan 2006 11:45:54 -0500 From: "Larry Roux" Subject: Re: [sqr-users] sql delete from table where 1 = 1 It means "always" or "all rows" ie - if I said select NAME from NAMES_TABLE where 1 =3D 1 it is exactly the same as select NAME from NAMES_TABLE or "return every row in NAMES_TABLE" where 1 =3D 1 is totally unnecessary. Larry Roux Syracuse University lroux@syr.edu >>> bpreddy78@yahoo.com 01/23/06 11:39 AM >>> Thanks for the reply, When do you use the condition where 1 =3D 1. What does it actually mean. --- Larry Roux wrote: > Are you sure it is 1 =3D 1 and not I =3D 1? If it is as > listed then 1 =3D 1 would always be true and all rows > would be deleted (and so the where claude is > unnecessary). >=20 >=20 >=20 >=20 > Larry Roux > Syracuse University > lroux@syr.edu=20 >=20 >=20 > >>> bpreddy78@yahoo.com 01/23/06 11:31 AM >>> > Hi, >=20 > I'm testing a sqr, I found a procedure > delete-old-data. > I'm not sure how the Where statement is identifying > the old data, Where 1 =3D 1. >=20 > BEGIN-PROCEDURE DELETE-OLD-DATA > !************************************************************************** > BEGIN-SQL > DELETE FROM TABLE_NAME WHERE 1 =3D 1 > END-SQL >=20 > END-PROCEDURE >=20 > Please can someone enlight me... >=20 > Thanks=20 >=20 > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around=20 > http://mail.yahoo.com=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 >=20 >=20 > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org=20 > http://www.sqrug.org/mailman/listinfo/sqr-users=20 >=20 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around=20 http://mail.yahoo.com=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=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 Jan 23 12:59:14 2006 From: "Alexander, Steven" Subject: RE: [sqr-users] sql delete from table where 1 = 1 Date: Mon, 23 Jan 2006 09:57:10 -0800 The programmer may have left a where clause there in anticipation of someday restricting the deletion to certain rows (for testing purposes perhaps). When the goal is to delete all rows in a large table, it is much, much faster to say "truncate table NAMES_TABLE". However some DBAs don't like that because you cannot rollback a truncate. You should check on your shop's policy. -----Original Message----- From: Larry Roux [mailto:LRoux@syr.edu] Sent: Monday, January 23, 2006 8:46 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] sql delete from table where 1 = 1 It means "always" or "all rows" ie - if I said select NAME from NAMES_TABLE where 1 = 1 it is exactly the same as select NAME from NAMES_TABLE or "return every row in NAMES_TABLE" where 1 = 1 is totally unnecessary. Larry Roux Syracuse University lroux@syr.edu >>> bpreddy78@yahoo.com 01/23/06 11:39 AM >>> Thanks for the reply, When do you use the condition where 1 = 1. What does it actually mean. --- Larry Roux wrote: > Are you sure it is 1 = 1 and not I = 1? If it is as > listed then 1 = 1 would always be true and all rows > would be deleted (and so the where claude is > unnecessary). > > > > > Larry Roux > Syracuse University > lroux@syr.edu > > > >>> bpreddy78@yahoo.com 01/23/06 11:31 AM >>> > Hi, > > I'm testing a sqr, I found a procedure > delete-old-data. > I'm not sure how the Where statement is identifying > the old data, Where 1 = 1. > > BEGIN-PROCEDURE DELETE-OLD-DATA > !************************************************************************** > BEGIN-SQL > DELETE FROM TABLE_NAME WHERE 1 = 1 > END-SQL > > END-PROCEDURE > > Please can someone enlight me... > > Thanks > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 24 09:38:24 2006 From: "Paul Delange" Date: Tue, 24 Jan 2006 09:35:57 -0500 Subject: [sqr-users] (SQR 5528) ORACLE OCIServerAttach error 12154 in cursor 0: but TNSNAMES.ORA is correct! Hi All, I'm trying to run an SQR off our db server for speed reasons & get the following error; (SQR 5528) ORACLE OCIServerAttach error 12154 in cursor 0: ORA-12154: TNS:could not resolve service name (SQR 4701) Cannot logon to the database. There is only one TNSNAMES.ORA file on this box & it does contain the database in question. I suppose it's concievable that SQR is somehow finding a TNSNAMES file on the network (somewhere) that is not uptodate. I can login the the database on the same machine with SQLPlus no problem. Can anyone shed some light on this? Is there a setting I can make that will SQR look on the local drive for tnsnames.ora? Thanks, Paul _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 24 10:00:03 2006 From: "kyle.leonard" Subject: Re: [sqr-users] (SQR 5528) ORACLE OCIServerAttach error 12154 in cursor 0: but TNSNAMES.ORA is correct! Date: Tue, 24 Jan 2006 09:57:42 -0500 Search and find your SQR.ini file. Verify the [Environment: Oracle] section is pointing to the SQR directory on your machine. I've seen where this is pointed to a server and SQR runs the report on a server somewhere, using the databases defined there. If you aren't already, try running it with SQRW.exe (Windows environment) instead of the Developer. Kyle Leonard 1Answer Solutions On Tue, 24 Jan 2006 09:35:57 -0500, Paul Delange wrote > Hi All, > > I'm trying to run an SQR off our db server for speed reasons & get > the following error; > > (SQR 5528) ORACLE OCIServerAttach error 12154 in cursor 0: > ORA-12154: TNS:could not resolve service name > (SQR 4701) Cannot logon to the database. > > There is only one TNSNAMES.ORA file on this box & it does contain the > database in question. I suppose it's concievable that SQR is somehow > finding a TNSNAMES file on the network (somewhere) that is not uptodate. > > I can login the the database on the same machine with SQLPlus no problem. > > Can anyone shed some light on this? Is there a setting I can make > that will SQR look on the local drive for tnsnames.ora? > > Thanks, Paul > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ___________________________________ Kyle J. Leonard kyle.leonard@1answersolutions.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 24 10:03:20 2006 Subject: RE: [sqr-users] (SQR 5528) ORACLE OCIServerAttach error 12154 in cursor 0: but TNSNAMES.ORA is correct! Date: Tue, 24 Jan 2006 09:01:01 -0600 From: "Knapp, Richard" There will need to be a tnsnames file with an entry for your database on every machine involved - servers and clients. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Paul Delange Sent: Tuesday, January 24, 2006 8:36 AM To: sqr-users@sqrug.org Subject: [sqr-users] (SQR 5528) ORACLE OCIServerAttach error 12154 in cursor 0: but TNSNAMES.ORA is correct! Hi All, I'm trying to run an SQR off our db server for speed reasons & get the following error; (SQR 5528) ORACLE OCIServerAttach error 12154 in cursor 0: ORA-12154: TNS:could not resolve service name (SQR 4701) Cannot logon to the database. There is only one TNSNAMES.ORA file on this box & it does contain the database in question. I suppose it's concievable that SQR is somehow finding a TNSNAMES file on the network (somewhere) that is not uptodate. I can login the the database on the same machine with SQLPlus no problem. Can anyone shed some light on this? Is there a setting I can make that will SQR look on the local drive for tnsnames.ora? Thanks, Paul _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 24 10:20:02 2006 Subject: Re: [sqr-users] (SQR 5528) ORACLE OCIServerAttach error 12154 in cursor 0: but TNSNAMES.ORA is correct! From: "Paul Delange" Date: Tue, 24 Jan 2006 10:17:36 -0500 Kyle, et al, The Oracle section of SQR.ini shows only a date format - is there something else I should add? I am already running thru SQRW (peoplesoft installation). Thanks, and, any other idea's? Thanks, Paul |---------+------------------------------------------------> | | "kyle.leonard" | | | | | | Sent by: | | | sqr-users-bounces+paul.delange=cami.c| | | a@sqrug.org | | | | | | | | | 01/24/2006 09:57 AM | | | Please respond to "This list is for | | | discussion about the SQR database | | | reporting language from | | | Hyperion Solutions." | | | | |---------+------------------------------------------------> >----------------------------------------------------------------------------------------------| | | | To: "This list is for discussion about the SQR database reporting language from | | Hyperion Solutions." , sqr-users@sqrug.org | | cc: | | Subject: Re: [sqr-users] (SQR 5528) ORACLE OCIServerAttach error 12154 in cursor 0: | | but TNSNAMES.ORA is correct! | >----------------------------------------------------------------------------------------------| Search and find your SQR.ini file. Verify the [Environment: Oracle] section is pointing to the SQR directory on your machine. I've seen where this is pointed to a server and SQR runs the report on a server somewhere, using the databases defined there. If you aren't already, try running it with SQRW.exe (Windows environment) instead of the Developer. Kyle Leonard 1Answer Solutions On Tue, 24 Jan 2006 09:35:57 -0500, Paul Delange wrote > Hi All, > > I'm trying to run an SQR off our db server for speed reasons & get > the following error; > > (SQR 5528) ORACLE OCIServerAttach error 12154 in cursor 0: > ORA-12154: TNS:could not resolve service name > (SQR 4701) Cannot logon to the database. > > There is only one TNSNAMES.ORA file on this box & it does contain the > database in question. I suppose it's concievable that SQR is somehow > finding a TNSNAMES file on the network (somewhere) that is not uptodate. > > I can login the the database on the same machine with SQLPlus no problem. > > Can anyone shed some light on this? Is there a setting I can make > that will SQR look on the local drive for tnsnames.ora? > > Thanks, Paul > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ___________________________________ Kyle J. Leonard kyle.leonard@1answersolutions.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 24 10:23:24 2006 Subject: RE: [sqr-users] (SQR 5528) ORACLE OCIServerAttach error 12154 in cursor 0: but TNSNAMES.ORA is correct! From: "Paul Delange" Date: Tue, 24 Jan 2006 10:19:53 -0500 In this case the client and the server are the same machine. I am running my SQR on the Oracle db server for speed reasons. SQR executables are located on a different machine. BTW, the SQR runs fine on my workstation. Thanks, and let me know if you have other ideas! |---------+------------------------------------------------> | | "Knapp, Richard" | | | | | | Sent by: | | | sqr-users-bounces+paul.delange=cami.c| | | a@sqrug.org | | | | | | | | | 01/24/2006 10:01 AM | | | Please respond to "This list is for | | | discussion about the SQR database | | | reporting language from | | | Hyperion Solutions." | | | | |---------+------------------------------------------------> >----------------------------------------------------------------------------------------------| | | | To: "This list is for discussion about the SQR database reportinglanguage from | | Hyperion Solutions." | | cc: | | Subject: RE: [sqr-users] (SQR 5528) ORACLE OCIServerAttach error 12154 in cursor 0: | | but TNSNAMES.ORA is correct! | >----------------------------------------------------------------------------------------------| There will need to be a tnsnames file with an entry for your database on every machine involved - servers and clients. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of Paul Delange Sent: Tuesday, January 24, 2006 8:36 AM To: sqr-users@sqrug.org Subject: [sqr-users] (SQR 5528) ORACLE OCIServerAttach error 12154 in cursor 0: but TNSNAMES.ORA is correct! Hi All, I'm trying to run an SQR off our db server for speed reasons & get the following error; (SQR 5528) ORACLE OCIServerAttach error 12154 in cursor 0: ORA-12154: TNS:could not resolve service name (SQR 4701) Cannot logon to the database. There is only one TNSNAMES.ORA file on this box & it does contain the database in question. I suppose it's concievable that SQR is somehow finding a TNSNAMES file on the network (somewhere) that is not uptodate. I can login the the database on the same machine with SQLPlus no problem. Can anyone shed some light on this? Is there a setting I can make that will SQR look on the local drive for tnsnames.ora? Thanks, Paul _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 24 10:29:30 2006 From: "the dragon" Subject: RE: [sqr-users] (SQR 5528) ORACLE OCIServerAttach error 12154in cursor 0: but TNSNAMES.ORA is correct! Date: Tue, 24 Jan 2006 09:27:18 -0600 I'd troubleshoot first by trying a tnsping off the box that the sqr executable was running on. That's the first place I look when I have tns issues. If it doesn't connect, then recreate the stanza in the tnsnames.ora. For some bizarre reason, in very rare instances, the stanza *looks* correct but it won't work. 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---- In this case the client and the server are the same machine. I am running my SQR on the Oracle db server for speed reasons. SQR executables are located on a different machine. BTW, the SQR runs fine on my workstation. Thanks, and let me know if you have other ideas! There will need to be a tnsnames file with an entry for your database on every machine involved - servers and clients. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- Hi All, I'm trying to run an SQR off our db server for speed reasons & get the following error; (SQR 5528) ORACLE OCIServerAttach error 12154 in cursor 0: ORA-12154: TNS:could not resolve service name (SQR 4701) Cannot logon to the database. There is only one TNSNAMES.ORA file on this box & it does contain the database in question. I suppose it's concievable that SQR is somehow finding a TNSNAMES file on the network (somewhere) that is not uptodate. I can login the the database on the same machine with SQLPlus no problem. Can anyone shed some light on this? Is there a setting I can make that will SQR look on the local drive for tnsnames.ora? Thanks, Paul _________________________________________________________________ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 24 10:56:45 2006 From: "kyle.leonard" Subject: RE: [sqr-users] (SQR 5528) ORACLE OCIServerAttach error 12154 in cursor 0: but TNSNAMES.ORA is correct! Date: Tue, 24 Jan 2006 10:54:48 -0500 TNS issues are a game of cat and mouse sometimes. Setting up the proper TNS entry on all machines is a good start. I'd also try moving a working .sqr file to the DB server where your SQRw.exe is located to see if for some reason SQR is looking for a TNS file on the file server. As for what should be in an ini file, since your workstation is working, I'd look for the .ini file on your workstation and compare with the one on the DB server. Make sure to back up the one you change. Kyle On Tue, 24 Jan 2006 10:19:53 -0500, Paul Delange wrote > In this case the client and the server are the same machine. I am running > my SQR on the Oracle db server for speed reasons. SQR executables are > located on a different machine. > > BTW, the SQR runs fine on my workstation. > > Thanks, and let me know if you have other ideas! > > |---------+------------------------------------------------> > | | "Knapp, Richard" | > | | | > | | Sent by: | > | | sqr-users-bounces+paul.delange=cami.c| > | | a@sqrug.org | > | | | > | | | > | | 01/24/2006 10:01 AM | > | | Please respond to "This list is for | > | | discussion about the SQR database | > | | reporting language from | > | | Hyperion Solutions." | > | | | > |---------+------------------------------------------------> > >------------------------------------------------------------------ > ----------------------------| | > | | > To: "This list is for discussion about the SQR database > reportinglanguage from | | Hyperion Solutions." users@sqrug.org> | | > cc: > | | Subject: RE: [sqr-users] (SQR 5528) > ORACLE OCIServerAttach error 12154 in cursor 0: | | but > TNSNAMES.ORA is correct! > | >---------------------------------------------------- > ------------------------------------------| > > There will need to be a tnsnames file with an entry for your > database on every machine involved - servers and clients. > > Richard Knapp > Database Programmer/Analyst > Institutional Research and Planning > University of Missouri System > 573-882-8856 > knappr@umsystem.edu > > -----Original Message----- > From: sqr-users-bounces+knappr=umsystem.edu@sqrug.org > [mailto:sqr-users-bounces+knappr=umsystem.edu@sqrug.org] On Behalf Of > Paul Delange > Sent: Tuesday, January 24, 2006 8:36 AM > To: sqr-users@sqrug.org > Subject: [sqr-users] (SQR 5528) ORACLE OCIServerAttach error 12154 in > cursor 0: but TNSNAMES.ORA is correct! > > Hi All, > > I'm trying to run an SQR off our db server for speed reasons & get > the following error; > > (SQR 5528) ORACLE OCIServerAttach error 12154 in cursor 0: > ORA-12154: TNS:could not resolve service name > (SQR 4701) Cannot logon to the database. > > There is only one TNSNAMES.ORA file on this box & it does contain the > database in question. I suppose it's concievable that SQR is somehow > finding a TNSNAMES file on the network (somewhere) that is not uptodate. > > I can login the the database on the same machine with SQLPlus no > problem. > > Can anyone shed some light on this? Is there a setting I can make > that will SQR look on the local drive for tnsnames.ora? > > Thanks, Paul > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > 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 ___________________________________ Kyle J. Leonard kyle.leonard@1answersolutions.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 24 10:32:50 2006 From: "Elvis Pressly" Subject: Re: [sqr-users] (SQR 5528) ORACLE OCIServerAttach error 12154in cursor 0: but TN Date: Tue, 24 Jan 2006 15:28:09 +0000 Use ODBC. Make sure you have the oracle odbc driver. I happen to be working yesterday on graphics printing and my main database is oracle. I can also connect to other databases(at the same time) as long as they are properly setup in ODBC. >From: "Paul Delange" >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." >CC: "This list is for discussion about the SQR database reporting >languagefrom Hyperion Solutions." >,sqr-users-bounces+paul.delange=cami.ca@sqrug.org >Subject: Re: [sqr-users] (SQR 5528) ORACLE OCIServerAttach error >12154in cursor 0: but TNSNAMES.ORA is correct! >Date: Tue, 24 Jan 2006 10:17:36 -0500 > > >Kyle, et al, > >The Oracle section of SQR.ini shows only a date format - is there something >else I should add? > >I am already running thru SQRW (peoplesoft installation). > >Thanks, and, any other idea's? > >Thanks, Paul > > > >|---------+------------------------------------------------> >| | "kyle.leonard" | >| | | >| | Sent by: | >| | sqr-users-bounces+paul.delange=cami.c| >| | a@sqrug.org | >| | | >| | | >| | 01/24/2006 09:57 AM | >| | Please respond to "This list is for | >| | discussion about the SQR database | >| | reporting language from | >| | Hyperion Solutions." | >| | | >|---------+------------------------------------------------> > > >----------------------------------------------------------------------------------------------| > | > | > | To: "This list is for discussion about the SQR database >reporting language from | > | Hyperion Solutions." , sqr-users@sqrug.org > | > | cc: > | > | Subject: Re: [sqr-users] (SQR 5528) ORACLE OCIServerAttach >error 12154 in cursor 0: | > | but TNSNAMES.ORA is correct! > | > > >----------------------------------------------------------------------------------------------| > > > > >Search and find your SQR.ini file. Verify the [Environment: Oracle] >section >is pointing to the SQR directory on your machine. I've seen where this is >pointed to a server and SQR runs the report on a server somewhere, using >the >databases defined there. > >If you aren't already, try running it with SQRW.exe (Windows environment) >instead of the Developer. > >Kyle Leonard >1Answer Solutions > >On Tue, 24 Jan 2006 09:35:57 -0500, Paul Delange wrote > > Hi All, > > > > I'm trying to run an SQR off our db server for speed reasons & get > > the following error; > > > > (SQR 5528) ORACLE OCIServerAttach error 12154 in cursor 0: > > ORA-12154: TNS:could not resolve service name > > (SQR 4701) Cannot logon to the database. > > > > There is only one TNSNAMES.ORA file on this box & it does contain the > > database in question. I suppose it's concievable that SQR is somehow > > finding a TNSNAMES file on the network (somewhere) that is not uptodate. > > > > I can login the the database on the same machine with SQLPlus no >problem. > > > > Can anyone shed some light on this? Is there a setting I can make > > that will SQR look on the local drive for tnsnames.ora? > > > > Thanks, Paul > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > >___________________________________ >Kyle J. Leonard >kyle.leonard@1answersolutions.com > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 24 10:48:27 2006 Subject: Solved: RE: [sqr-users] (SQR 5528) ORACLE OCIServerAttach error 12154in cursor 0: but TNSNAMES.ORA is correct! From: "Paul Delange" Date: Tue, 24 Jan 2006 10:46:02 -0500 Thanks to all for these responses. I added a TNS_ADMIN environmental variable - it bit dangerous since this is an Oracle server used by many - but it worked, now my SQR runs and there have been no fires yet! Thanks again, Paul |---------+------------------------------------------------> | | "the dragon" | | | Sent by: | | | sqr-users-bounces+paul.delange=3Dcami.c| | | a@sqrug.org | | | | | | | | | 01/24/2006 10:27 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] (SQR 5528) ORACLE OCIServerAttach error= 12154in cursor 0: | | but TNSNAMES.ORA is correct! = | >------------------------------------------------------------------------= ----------------------| I'd troubleshoot first by trying a tnsping off the box that the sqr executable was running on. That's the first place I look when I have tns issues. If it doesn't connect, then recreate the stanza in the tnsnames.ora. For some bizarre reason, in very rare instances, the stanza *looks* correct but it won't work. 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---- In this case the client and the server are the same machine. I am running my SQR on the Oracle db server for speed reasons. SQR executables are located on a different machine. BTW, the SQR runs fine on my workstation. Thanks, and let me know if you have other ideas! There will need to be a tnsnames file with an entry for your database on every machine involved - servers and clients. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- Hi All, I'm trying to run an SQR off our db server for speed reasons & get the following error; (SQR 5528) ORACLE OCIServerAttach error 12154 in cursor 0: ORA-12154: TNS:could not resolve service name (SQR 4701) Cannot logon to the database. There is only one TNSNAMES.ORA file on this box & it does contain the database in question. I suppose it's concievable that SQR is somehow finding a TNSNAMES file on the network (somewhere) that is not uptodate. I can login the the database on the same machine with SQLPlus no problem. Can anyone shed some light on this? Is there a setting I can make that will SQR look on the local drive for tnsnames.ora? Thanks, Paul _________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jan 25 09:15:47 2006 From: Mina Yassini Date: Wed, 25 Jan 2006 15:02:23 +0100 Subject: [sqr-users] SQR developer : XLS output with PDF output Hello, I work with Sqr developer 8.2 and I've done a SQR program witch use sylk.inc to create an XLS output (with "write" command) Is it possible to convert this output into PDF format witch keep the same appearance of the XLS output without write again an sqr program (with "print" command) ? Thanks. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jan 25 14:30:16 2006 From: "Eric Gorghuber" Date: Wed, 25 Jan 2006 14:27:50 -0500 Subject: [sqr-users] Free Form SQL in SQR's Does anyone have any examples of a SQR that reads in SQL statements from a = flat file? --=20 ___________________________________________________ Play 100s of games for FREE! http://games.mail.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Jan 25 14:47:39 2006 From: "Mezzullo, Paul" Subject: RE: [sqr-users] Free Form SQL in SQR's Date: Wed, 25 Jan 2006 14:52:06 -0500 Do you assitance with code that reads from a flat file? -----Original Message----- From: Eric Gorghuber [mailto:egorghuber@usa.com] Sent: Wednesday, January 25, 2006 2:28 PM To: sqr-users@sqrug.org Subject: [sqr-users] Free Form SQL in SQR's Does anyone have any examples of a SQR that reads in SQL statements from a flat file? -- ___________________________________________________ Play 100s of games for FREE! http://games.mail.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Jan 26 20:39:04 2006 Date: Thu, 26 Jan 2006 17:37:04 -0800 From: David Donnelly Subject: [sqr-users] on-break and multi-line printing Apologies in advance for the length of this post. I have been programming SQR a very long time, but I have never gotten the following to work. I always end up doing my own on-break logic to get what I want. Seems silly to have to do that; someone here must have done it right by now. Consider the following data, which arrives in the order (observation, sex desc, group) shown: Observation Sex Group ========================= Dopey M 1 Dopey M 2 Dopey M 3 Dopey F 1 Dopey F 2 Dopey F 3 Lazy M 1 Lazy M 2 Lazy M 3 Lazy F 1 Lazy F 2 Lazy F 3 Silly M 1 Silly M 2 Silly M 3 Silly F 1 Silly F 2 Silly F 3 I want to print like this: Dopey M 1 2 3 F 1 2 3 Lazy M 1 2 3 F 1 2 3 Silly M 1 2 3 F 1 2 3 That is, I want to skip a line when Observation changes, and then print the Observation on a line by itself. Then I want to print each sex-group combination on a line, but print the value of sex only when it changes or at top-of-page. Of course I want to print Observation again at top-of-page if that happens in the middle of an Observation. The closest I've gotten is this: observation (+1,1) on-break print=change/top-page skiplines=1 level=1 sex (+1,3) on-break print=change/top-page level=2 group (,14) This is almost right, except that it skips a line after every sex-group line; apparently the "+1" spacing command is interpreted whether or not the value of sex is printed. So I tried observation (+1,1) on-break print=change/top-page skiplines=1 level=1 sex (,3) on-break print=change/top-page skiplines=1 level=2 groupnumber (,14) that is, taking out the +1 and adding skiplines. This got rid of the blank line between sex-group lines, all right, but the first one doesn't skip, so it prints right on top of the observation line. A further slight complication is that you don't want Observation to print as the last line on the page, with the first sex-group on the next. Can anyone offer a solution? PLEASE, PLEASE don't dream something up and say "try this." Believe me, I have tried everything I can think of, including next-listing with and without need= and no-advance. It's like squeezing Jello -- something always spurts out somewhere else. But if you have solved this problem -- "always skip a line, but print only on changes" -- please tell me how. Thanks to all for reading. Dave _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jan 27 04:39:23 2006 From: "Gopal Krishan" Subject: RE: [sqr-users] on-break and multi-line printing Date: Fri, 27 Jan 2006 20:44:14 +1100 As for my experience goes, using sqr native on-break can be very tricky and time consuming. For simple requirements, the effort may be minimal but in general it puts programmers into situations where he starts compromising on his real requirements. The option is to code your own break logic or use EDS (Event Driven SQRs). If you code your own break logic, later on maintenance can be time consuming and frustrating too. It took me only 30 minutes the achieve your functionality using EDS and the code is: Program reads your data from file: demo07.csv which contains: name,sex,group Dopey,M,1 Dopey,M,2 Dopey,M,3 Dopey,F,1 Dopey,F,2 Dopey,F,3 Lazy,M,1 Lazy,M,2 Lazy,M,3 Lazy,F,1 Lazy,F,2 Lazy,F,3 Silly,M,1 Silly,M,2 Silly,M,3 Silly,F,1 Silly,F,2 Silly,F,3 Code begin ======================= #include 'sqrp-eds.sqc' !include eds standard procedures #define FILE_FD 1 #define REC_LEN 1024 begin-procedure Report let $SqrPlus_dir = getenv('SQRPLUS_DIR') let $InpFile = $SqrPlus_dir || '\sqr\demo07.csv' open $InpFile as {FILE_FD} for-reading record={REC_LEN}:vary status=#filestat if #filestat != 0 let $errmsg = 'Unable to Open Input File: ' || $InpFile || ', Program aborted.' show $errmsg stop else show 'Input File: ' $InpFile end-if !Initialise EDS system for 'main' data input stream. do SRIT-EDS-begin-main ( 'key1=name, key2=sex', 'my-main-detail-section', '', '', '') let #SRIT_EDS_main_no_lf = {SRIT_EDS_TRUE} !required as first $group does not advance line let #rec_cnt = 0 while 1 ! Infinite loop, breaks when end of file is detected. read {FILE_FD} into $rec:{REC_LEN} if #end-file break ! End of file reached. end-if add 1 to #rec_cnt do SQRP-EDS-Get-Fld-By-Num ($rec, ',', 1, $name) do SQRP-EDS-Get-Fld-By-Num ($rec, ',', 2, $sex) do SQRP-EDS-Get-Fld-By-Num ($rec, ',', 3, $group) if #rec_cnt > 1 !ignore header record !submit record to EDS system do SRIT-EDS-process-main ( $name, !first key field $sex, !second key field $group, !detail line $effdt) !effdate from input stream, not applicable in your case. !save/compute fields that are required in printing detail section let $group_detail = $group end-if end-while close {FILE_FD} do SRIT-EDS-end-main (#no_data) !indicate end of main input stream to EDS system. if #no_data = {SRIT_EDS_TRUE} do SRIT-EDS-new-line (1) print 'No Data found to print' (,1) else do End-of-report end-if end-procedure begin-procedure main-before-name ($name, $effdt) if #_SRIT_EDS_main_first_detail = {SRIT_EDS_FALSE} do SRIT-EDS-new-line (1) !blank line required before name but not first time end-if do SRIT-EDS-new-line (3) !advance to next line before printing name. If current page !can't accommodate 3 lines, advance to new page. print $name (, 1, ) end-procedure begin-procedure main-before-sex ($name, $sex, $effdt) do SRIT-EDS-new-line (2) print $sex (, 5, ) let #_new_sex = {SRIT_EDS_TRUE} !set flag, used when printing $group end-procedure begin-procedure my-main-detail-section if #new_sex = {SRIT_EDS_FALSE} do SRIT-EDS-new-line (1) !advance to next line but not first time end-if print $group_detail (, 7, ) let #new_sex = {SRIT_EDS_FALSE} end-procedure Code end ======================= The important thing is that you only code for the events as dictated by requirements. EDS system calls these event procedure as required. BTW: EDS is part of SqrPlus software available at www.sritech.biz If you often produce sqr programs that require on-break logic, I suggest EDS can be very time saving and productive methodology/tool. Gopal. -----Original Message----- From: sqr-users-bounces+gkrishan=bigpond.net.au@sqrug.org [mailto:sqr-users-bounces+gkrishan=bigpond.net.au@sqrug.org]On Behalf Of David Donnelly Sent: Friday, January 27, 2006 12:37 PM To: sqr-users@sqrug.org Subject: [sqr-users] on-break and multi-line printing Apologies in advance for the length of this post. I have been programming SQR a very long time, but I have never gotten the following to work. I always end up doing my own on-break logic to get what I want. Seems silly to have to do that; someone here must have done it right by now. Consider the following data, which arrives in the order (observation, sex desc, group) shown: Observation Sex Group ========================= Dopey M 1 Dopey M 2 Dopey M 3 Dopey F 1 Dopey F 2 Dopey F 3 Lazy M 1 Lazy M 2 Lazy M 3 Lazy F 1 Lazy F 2 Lazy F 3 Silly M 1 Silly M 2 Silly M 3 Silly F 1 Silly F 2 Silly F 3 I want to print like this: Dopey M 1 2 3 F 1 2 3 Lazy M 1 2 3 F 1 2 3 Silly M 1 2 3 F 1 2 3 That is, I want to skip a line when Observation changes, and then print the Observation on a line by itself. Then I want to print each sex-group combination on a line, but print the value of sex only when it changes or at top-of-page. Of course I want to print Observation again at top-of-page if that happens in the middle of an Observation. The closest I've gotten is this: observation (+1,1) on-break print=change/top-page skiplines=1 level=1 sex (+1,3) on-break print=change/top-page level=2 group (,14) This is almost right, except that it skips a line after every sex-group line; apparently the "+1" spacing command is interpreted whether or not the value of sex is printed. So I tried observation (+1,1) on-break print=change/top-page skiplines=1 level=1 sex (,3) on-break print=change/top-page skiplines=1 level=2 groupnumber (,14) that is, taking out the +1 and adding skiplines. This got rid of the blank line between sex-group lines, all right, but the first one doesn't skip, so it prints right on top of the observation line. A further slight complication is that you don't want Observation to print as the last line on the page, with the first sex-group on the next. Can anyone offer a solution? PLEASE, PLEASE don't dream something up and say "try this." Believe me, I have tried everything I can think of, including next-listing with and without need= and no-advance. It's like squeezing Jello -- something always spurts out somewhere else. But if you have solved this problem -- "always skip a line, but print only on changes" -- please tell me how. Thanks to all for reading. Dave _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sat Jan 28 05:26:38 2006 From: "Steve Cavill" Subject: RE: [sqr-users] on-break and multi-line printing Date: Sat, 28 Jan 2006 21:23:23 +1100 What about a after=procedure E.g. observation (1,1) on-break print=change/top-page level=1 after=newobs sex (2,3) on-break print=change/top-page level=2 group (,14) Begin-procedure newobs Next-listing skiplines=1 need=2 End-procedure That would give the blank line between observations and prevent it being the last line on the page 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 David Donnelly Sent: Friday, 27 January 2006 12:37 PM To: sqr-users@sqrug.org Subject: [sqr-users] on-break and multi-line printing Apologies in advance for the length of this post. I have been programming SQR a very long time, but I have never gotten the following to work. I always end up doing my own on-break logic to get what I want. Seems silly to have to do that; someone here must have done it right by now. Consider the following data, which arrives in the order (observation, sex desc, group) shown: Observation Sex Group ========================= Dopey M 1 Dopey M 2 Dopey M 3 Dopey F 1 Dopey F 2 Dopey F 3 Lazy M 1 Lazy M 2 Lazy M 3 Lazy F 1 Lazy F 2 Lazy F 3 Silly M 1 Silly M 2 Silly M 3 Silly F 1 Silly F 2 Silly F 3 I want to print like this: Dopey M 1 2 3 F 1 2 3 Lazy M 1 2 3 F 1 2 3 Silly M 1 2 3 F 1 2 3 That is, I want to skip a line when Observation changes, and then print the Observation on a line by itself. Then I want to print each sex-group combination on a line, but print the value of sex only when it changes or at top-of-page. Of course I want to print Observation again at top-of-page if that happens in the middle of an Observation. The closest I've gotten is this: observation (+1,1) on-break print=change/top-page skiplines=1 level=1 sex (+1,3) on-break print=change/top-page level=2 group (,14) This is almost right, except that it skips a line after every sex-group line; apparently the "+1" spacing command is interpreted whether or not the value of sex is printed. So I tried observation (+1,1) on-break print=change/top-page skiplines=1 level=1 sex (,3) on-break print=change/top-page skiplines=1 level=2 groupnumber (,14) that is, taking out the +1 and adding skiplines. This got rid of the blank line between sex-group lines, all right, but the first one doesn't skip, so it prints right on top of the observation line. A further slight complication is that you don't want Observation to print as the last line on the page, with the first sex-group on the next. Can anyone offer a solution? PLEASE, PLEASE don't dream something up and say "try this." Believe me, I have tried everything I can think of, including next-listing with and without need= and no-advance. It's like squeezing Jello -- something always spurts out somewhere else. But if you have solved this problem -- "always skip a line, but print only on changes" -- please tell me how. Thanks to all for reading. Dave _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Sun Jan 29 13:26:03 2006 Date: Sun, 29 Jan 2006 10:24:05 -0800 From: David Donnelly Subject: RE: [sqr-users] on-break and multi-line printing Steve Cahill suggested: What about a after=procedure E.g. observation (1,1) on-break print=change/top-page level=1 after=newobs sex (2,3) on-break print=change/top-page level=2 group (,14) Begin-procedure newobs Next-listing skiplines=1 need=2 End-procedure and that was a start down the right path. what actually worked was observation (1,1) on-break print=change/top-page level=1 after=newobs next-listing sex (1,3) on-break print=change/top-page level=2 group (,14) Begin-procedure newobs Next-listing skiplines=1 need=2 End-procedure In other words, I really have two nested loops here. When observation breaks, the newobs procedure accomplishes the line skip and checks for room at end-of-page. The next-listing before sex accomplishes the line advance for each detail line. Thanks, Steve. 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 Fri Jan 27 14:09:59 2006 Date: Fri, 27 Jan 2006 14:07:34 -0500 From: "Kaithi, Murali" Subject: [sqr-users] SQR PRINT Hello Everybody, I am trying to print a SQR report. This is a very simple program which reads a file and prints the report. The report runs successfully from PeopleSoft and the log says that the file is copied to printer. The problem is nothing comes out of printer. I remember when my colleague said to me couple of years ago that when this happens use a program called PrFile32.exe that he had gotten from a consultant. What happens is if you just drag your .lis file into this program, it automatically prints the report perfectly from the printer. This program I believe is a print program from a DOS prompt. My question is why the report is not printed when ran from PeopleSoft. Any help would be appreciated. Thanks, Murali ________________________________________________________________________ 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 Jan 27 14:15:35 2006 Subject: RE: [sqr-users] SQR PRINT Date: Fri, 27 Jan 2006 13:13:12 -0600 From: "Bob Stone" you can use the command line to dos copy it directly to the printer if you want - copy %f \\printerdomain\printername filename -----Original Message----- From: sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+bstone=3Dfastenal.com@sqrug.org] On Behalf Of Kaithi, Murali Sent: Friday, January 27, 2006 1:08 PM To: This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions. Subject: [sqr-users] SQR PRINT Hello Everybody, I am trying to print a SQR report. This is a very simple program which reads a file and prints the report. The report runs successfully from PeopleSoft and the log says that the file is copied to printer. The problem is nothing comes out of printer. I remember when my colleague said to me couple of years ago that when this happens use a program called PrFile32.exe that he had gotten from a consultant. What happens is if you just drag your .lis file into this program, it automatically prints the report perfectly from the printer. This program I believe is a print program from a DOS prompt. My question is why the report is not printed when ran from PeopleSoft. Any help would be appreciated. Thanks, Murali ________________________________________________________________________ This Email has been scanned for all viruses by PAETEC Email Scanning Services, utilizing MessageLabs proprietary SkyScan infrastructure. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.paetec.com. ________________________________________________________________________ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Jan 27 16:45:16 2006 From: "Elvis Pressly" Subject: RE: [sqr-users] SQR PRINT Date: Fri, 27 Jan 2006 21:43:12 +0000 Your report can have simple to complex reasons why it is not printing. It helps very much if you can tell us your environment. 1. What is your operating system. 2. How is the printer setup. 3. Location of run time (server or client) 4. What are the parameters when running the sqr. I remember one user of mine was asking me the same question and we found out it was printing on a different printer location. Another one is because the PC was converted into new OS that was not compatible with the tools version of the application. >From: "Kaithi, Murali" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: "This list is for discussion about the SQR database reportinglanguage >fromHyperion Solutions." >Subject: [sqr-users] SQR PRINT >Date: Fri, 27 Jan 2006 14:07:34 -0500 > >Hello Everybody, >I am trying to print a SQR report. This is a very simple program which >reads a file and prints the report. The report runs successfully from >PeopleSoft and the log says that the file is copied to printer. >The problem is nothing comes out of printer. I remember when my >colleague said to me couple of years ago that when this happens use a >program called PrFile32.exe that he had gotten from a consultant. What >happens is if you just drag your .lis file into this program, it >automatically prints the report perfectly from the printer. This program >I believe is a print program from a DOS prompt. >My question is why the report is not printed when ran from PeopleSoft. >Any help would be appreciated. > >Thanks, >Murali > > >________________________________________________________________________ >This Email has been scanned for all viruses by PAETEC Email Scanning >Services, utilizing MessageLabs proprietary SkyScan infrastructure. For >more information on a proactive anti-virus service working around the >clock, around the globe, visit http://www.paetec.com. >________________________________________________________________________ > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 31 11:08:16 2006 From: "radhika reddy" Date: Tue, 31 Jan 2006 10:05:56 -0600 Subject: [sqr-users] rounding to thousand Hi, I have to round a number to thousands like the following: Number Result 6590.78 7000.00 5343.00 5000.00 3000.00 3000.00 I am not able to achieve this through Round function. Can you tell me is there any function or how to achieve this. Thanks, Radhika _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar – get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 31 11:13:21 2006 Date: Tue, 31 Jan 2006 11:10:09 -0500 From: "Larry Roux" Subject: Re: [sqr-users] rounding to thousand You could always use round by multiplying as such SELECT Round(3333 * .001) * 1000 FROM dual ie:=20 3333 * .001 =3D3.333 3.333 rounded is 3=20 3 * 1000 =3D 3000=20 Larry Roux Syracuse University lroux@syr.edu >>> radhika_05@hotmail.com 01/31/06 11:05 AM >>> Hi, I have to round a number to thousands like the following: Number Result 6590.78 7000.00 5343.00 5000.00 3000.00 3000.00 I am not able to achieve this through Round function. Can you tell me is=20 there any function or how to achieve this. Thanks, Radhika _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar * get it now!=20 http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org=20 http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 31 11:16:30 2006 Subject: RE: [sqr-users] rounding to thousand Date: Tue, 31 Jan 2006 11:11:26 -0500 From: "Sudheer Bachu" Try ceil or floor function LET #ceil =3D ceil(#var1) LET #floor =3D floor(#var2) I think floor gives the largest integer and the ceil gives the lowest integer. Sudheer Bachu DW Developer (248)-353-2700 x 4076 Credit Acceptance Corporation -----Original Message----- From: sqr-users-bounces+sbachu=3Dcreditacceptance.com@sqrug.org [mailto:sqr-users-bounces+sbachu=3Dcreditacceptance.com@sqrug.org] On Behalf Of radhika reddy Sent: Tuesday, January 31, 2006 11:06 AM To: sqr-users@sqrug.org Subject: [sqr-users] rounding to thousand Hi, I have to round a number to thousands like the following: Number Result 6590.78 7000.00 5343.00 5000.00 3000.00 3000.00 I am not able to achieve this through Round function. Can you tell me is there any function or how to achieve this. Thanks, Radhika _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar - get it now!=20 http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 31 11:30:49 2006 Subject: RE: [sqr-users] rounding to thousand Date: Tue, 31 Jan 2006 10:28:10 -0600 From: "Jim Womeldorf" If you have Oracle the following will work. Of course it requires a database hit for each calculation. Too bad the SQR folks didn't think of using a negative number for this purpose. let #x =3D 6590.78 show #x begin-select round(#X,-3) &rounded show &rounded=20=20=20 from dual end-select=20 Jim -----Original Message----- From: sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org [mailto:sqr-users-bounces+jwomeldo=3Dfastenal.com@sqrug.org] On Behalf Of radhika reddy Sent: Tuesday, January 31, 2006 10:06 AM To: sqr-users@sqrug.org Subject: [sqr-users] rounding to thousand Hi, I have to round a number to thousands like the following: Number Result 6590.78 7000.00 5343.00 5000.00 3000.00 3000.00 I am not able to achieve this through Round function. Can you tell me is there any function or how to achieve this. Thanks, Radhika _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar - get it now!=20 http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 31 11:35:06 2006 Date: Tue, 31 Jan 2006 09:32:46 -0700 From: kevin.reschenberg@sparkpath.com Subject: RE: [sqr-users] rounding to thousand let #Result = floor((#Number + 500) / 1000) * 1000 Kevin Reschenberg SparkPath Technologies, Inc. sparkpath.com | sqr-info.com > -------- Original Message -------- > Subject: [sqr-users] rounding to thousand > From: "radhika reddy" > Date: Tue, January 31, 2006 8:05 am > To: sqr-users@sqrug.org > > Hi, > > I have to round a number to thousands like the following: > > Number Result > 6590.78 7000.00 > 5343.00 5000.00 > 3000.00 3000.00 > > I am not able to achieve this through Round function. Can you tell me is > there any function or how to achieve this. > > Thanks, > Radhika > > _________________________________________________________________ > FREE pop-up blocking with the new MSN Toolbar – get it now! > http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 31 11:57:20 2006 From: "radhika reddy" Subject: RE: [sqr-users] rounding to thousand Date: Tue, 31 Jan 2006 10:54:54 -0600 Thanks to all. All the solutions worked. >From: kevin.reschenberg@sparkpath.com >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] rounding to thousand >Date: Tue, 31 Jan 2006 09:32:46 -0700 > >let #Result = floor((#Number + 500) / 1000) * 1000 > >Kevin Reschenberg >SparkPath Technologies, Inc. > >sparkpath.com | sqr-info.com > > > > -------- Original Message -------- > > Subject: [sqr-users] rounding to thousand > > From: "radhika reddy" > > Date: Tue, January 31, 2006 8:05 am > > To: sqr-users@sqrug.org > > > > Hi, > > > > I have to round a number to thousands like the following: > > > > Number Result > > 6590.78 7000.00 > > 5343.00 5000.00 > > 3000.00 3000.00 > > > > I am not able to achieve this through Round function. Can you tell me is > > there any function or how to achieve this. > > > > Thanks, > > Radhika > > > > _________________________________________________________________ > > FREE pop-up blocking with the new MSN Toolbar – get it now! > > http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 31 15:44:23 2006 From: "Elvis Pressly" Subject: RE: [sqr-users] rounding to thousand Date: Tue, 31 Jan 2006 20:42:08 +0000 Here's an example I always use to round to the nearest thousand. let #ResultRounded = 1000 * ceil(#NumberToRound / 1000) >From: "radhika reddy" >Reply-To: "This list is for discussion about the SQR database >reportinglanguage from Hyperion Solutions." >To: sqr-users@sqrug.org >Subject: [sqr-users] rounding to thousand >Date: Tue, 31 Jan 2006 10:05:56 -0600 > >Hi, > > I have to round a number to thousands like the following: > >Number Result >6590.78 7000.00 >5343.00 5000.00 >3000.00 3000.00 > >I am not able to achieve this through Round function. Can you tell me is >there any function or how to achieve this. > >Thanks, >Radhika > >_________________________________________________________________ >FREE pop-up blocking with the new MSN Toolbar – get it now! >http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Jan 31 16:16:47 2006 Date: Tue, 31 Jan 2006 16:14:49 -0500 From: don.barclay@srs.gov Subject: RE: [sqr-users] rounding to thousand Except your example rounds up. There have been several solutions provided that would work, although I haven't yet seen the simplest solution: let #ResultRounded = 1000 * round((#NumberToRound / 1000),0) Don > let #ResultRounded = 1000 * ceil(#NumberToRound / 1000) _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Feb 01 00:02:09 2006 Date: Wed, 1 Feb 2006 00:00:02 -0500 From: Nathan Stratton Treadway Subject: [sqr-users] Monthly sqr-users Hints Posting sqr-users Mailing List Hints and Guidelines Nathan Stratton Treadway, Ray Ontko & Co. (nathanst@ontko.com) $Revision: 1.22 $ $Date: 2005/08/19 05:12:40 $ This document gathers in one location information about the sqr-users mail list. It includes instructions for changing your subscription settings (including unsubscribing), as well are guidelines for using the list. ______________________________________________________________________ Table of Contents 1. Changes Since Previous Version 2. Introduction 2.1 sqr-users Mailing List 2.2 sqr-users Hints and Guidelines Document 2.3 Related Mailing Lists 3. Interacting with the list server 3.1 Subscribing to the list 3.2 Unsubscribing from the list 3.3 When your email address changes 3.4 Digests 3.5 Obtaining your password 3.6 Problems 4. Posting to the sqr-users List 4.1 General Guidelines 4.2 Posting a Message 4.3 Replying to a Message 5. Job Announcements ______________________________________________________________________ 1. Changes Since Previous Version Changes since the version dated 2004/03/04: o New name and URL for "HyperionSQR" mailing list. 2. Introduction 2.1. sqr-users Mailing List The sqr-users mailing list was created to enable discussion related to the SQR database language from Hyperion (and to other products in the SQR product suite). Note: SQR used to be published by SQRIBE Technologies, which was merged into Brio Technology on August 3, 1999. Brio Technology changed its name to Brio Software in October 2001. On October 16, 2003, Hyperion acquired Brio Software. SQR and related applications have also been called "Brio.Report" and "Brio Reports". The mailing list is provided as a service of Ray Ontko & Co. A searchable archive of past postings to the mailing list is available from the SQR Users Group web site . 2.2. sqr-users Hints and Guidelines Document This document gives various hints and guidelines about the sqr-users mailing list. It will be posted approximately monthly to the mailing list so that new users can see it (and existing users can find it easily). An HTML version of the document is always available at http://www.sqrug.org/sqr-users/sqr-users-hints.html. If you have comments or suggestions about this document, please contact me directly at the address listed in the title section. This document is Copyright (C) 1999-2004 by Ray Ontko & Co. It may be freely copied and distributed provided it is not modified in any way and it retains the original copyright notice. 2.3. Related Mailing Lists Here are some mailing lists that cover topics relating to SQR in some way. sqr-jobs : SQR Jobs This list may be used for posting SQR-related resumes, recruitments, job announcements, project announcments, help- wanted, work-wanted ads, etc. To join, follow the link above, or send any message to "sqr-jobs-subscribe@yahoogroups.com". peoplesoft-fans : PeopleSoft Fans Moderated list covering technical and functional aspects of PeopleSoft. To join, follow the link above, or send any message to "peoplesoft-fans-subscribe@yahoogroups.com". psusers : PeopleSoft Users For questions related to any aspect of PeopleSoft (including PeopleSoft-specific SQR issues). This list has merged with the Peoplesoft Fans mailing list and is no longer active, but the message achive can still be found at the link above. HyperionSQR : Hyperion- SQR List for discussion of SQR, SQR Developer (formerly called Brio.Report and Report Builder), and SQR iServer. To join, follow the link above, or send any message to "HyperionSQR- subscribe@yahoogroups.com". rm-users : Report- Mart Users List for discussion of Brio Portal (previously called ReportMart). To join, follow the link above, or send a message containing the word "subscribe" in the body to "rm-users- request@sqrug.org". brioportalusersgroup : Brio Portal Users Group list List for discussion of Brio Portal. To join, follow the link above, or send any message to "brioportalusersgroup- subscribe@yahoogroups.com". brio-l : OpenITx Brio List List for technical and functional discussion of all Brio products (but most messages are currently about Brio Intelligence). To join, follow the link above. briousers : Brio.Enter- prise Users List for discussion of the Brio.Enterprise (now called Intelligence) product. To join, follow the link above, or send any message to "briousers-subscribe@yahoogroups.com". briolist : Brio List List for discussion of Brio Intelligence. To join, follow the link above, or send any message to "briolist- subscribe@yahoogroups.com". 3. Interacting with the list server The sqr-users mailing list is hosted using the Mailman list server package. All of the Mailman functions described below are accessed from the sqr-users List Info page, "http://www.sqrug.org/mailman/listinfo/sqr-users". 3.1. Subscribing to the list To subscribe to the mailing list, enter your e-mail address in the box at the top of the "Subscribing to sqr-users" section on the sqr-users List Info page, then choose a password to assign to your subscription and enter it in both "Password" boxes. This password is used to allow you to securely make changes to your subscription over the web. This password will be e-mailed back to you at varous times, so you should not use the same password as you are using elsewhere. Once you have filled in the password, click the "Subscribe" button. You should soon receive an e-mail message from the list server requesting confirmation of your subscription request. Once you have replied to this message and your subscription has been processed, you will receive a "welcome" message giving you more information on the list server, and as well as a reminder of the subscription password you chose. 3.2. Unsubscribing from the list To unsubscribe from the list, go to the sqr-users List Info page, enter your e-mail address in the "sqr-users Subscribers" section near the bottom of the page, and click the "Unsubscribe or edit options" button. You will then see the "member options" page; fill in your password at the top of the page and click "Log in". (If you have forgotton your password, see the ``Obtaining your Password'' section, below). This will take you to the "membership configuration" page. In the middle of that page, there will be an "Unsubscribing from sqr- users" section; simply turn on the "Yes, I really want to unsubscribe" checkbox and click the "Unsubscribe" button. You should get a page back saying that the removal was successful (as well as a confirmation email message). The removal will take effect immediately; there is no need to send in a confirmation e-mail message. If you don't know your password, you can choose to unsubscribe using e-mail confirmation. Instead of entering the password on the "member options" page, just click the "Unsubscribe" button found just below the "Log In" button. You will then see a page noting that a confirmation e-mail has been sent; once you follow the confirmation instructions in that e-mail your removal will be complete. 3.3. When your email address changes If your e-mail address changes -- for example, if your company changes names, or if your mail administrator changes the way your name is spelled out or abbreviated -- you will need to update your subscription to match your new address before you can post to the list (see the ``Posting'' section, below). To do this, simply log in to your "membership configuration" page (see the directions for logging in to this page in the ``Unsubscribing'' section, above). At the top of that page you'll see a "Changing your membership information" section. Fill out the text boxes and click the "Change My Address and Name" button. You will be sent a confirmation e-mail, and once you have responded to that e-mail your subscription will be updated and you can begin posting from your new address. 3.4. Digests You can request to get your messages in digest form (one large message containing all of the posts made each day). To do this, log in to your "membership configuration" page (see the directions on doing this in the ``Unsubscribing'' section, above). At the bottom of the page, you will see a section titled "Your sqr-users Subscription Options". Change the "Set Digest Mode" option (the second option in the list) to "On" and click the "Submit My Changes" button at the bottom of the page. You actually have a choice of two different digest formats, "MIME" or "Plain Text". The MIME format sends each individual list message as a separate MIME attachment to the digest; the plain text format consists of one large text message, with all of the individual messages run together. Which format you will want to use depends on your mail- reading software (and personal preference). If you are not sure which format will work best, you can just leave the default setting of "MIME" and see if the next morning's digest is easy to read in your mail reader -- you can change to the other format at any time using that same web page. If you use digests, you should not just "reply" to the digest mailing. Instead, be sure your message's subject header matches the subject in the original posting to which you are replying, and that you don't include a quoted copy of the entire digest in your post. To restore normal distribution, simply follow the above instructions choosing the "Off" setting for the Digest option. 3.5. Obtaining your password You will not be able to change your subscription options without your password. If you have forgotten your password, simply click the "Email My Password to Me" button on the "member options" page and your password will be emailed to you. You will also be e-mailed a copy of your password at the beginning of each month, as part of a "mailing list memberships reminder" message from the Mailman software. 3.6. Problems If the above instructions do not work, please contact the list manager at "sqr-users-manager@sqrug.org". (Do not send a message to the list itself -- no one there can help you with your problem!) Please include a description of what you were trying to do and what exactly happened when you made the attempt. 4. Posting to the sqr-users List In order to post to the mailing list, you must be subscribed to it (see directions above). More specifically, in order for Mailman to recognize that this message was sent by a subscriber, the return address on your message much exactly match the addresss you used to subscribe -- if you have more than one address you will need to be sure that you are sending from the correct one. (See the ``When you email address changes'' section, above, if your e-mail address has changed since you subscribed.) 4.1. General Guidelines For any message you send to the list, please: o make sure your mail software is not requesting a "Return Receipt". (If a "Return Receipt Requested" message is sent to the list, several dozen receipt messages will be sent out to the mailing list as other subscribers' mail systems repond....) o do not send messages in HTML or other special formats. (These are not usable by many subscribers, especially those who receive their messages in digest format.) The list server will delete these special attachments from your message and send you a warning notice. Also, if you are trying to send (for example) SQR source code files, make sure your mail-reader software is assigning proper MIME types to your attachments or they may not be distributed. o keep in mind that over 500 people will receive your message, and that it will appear in the list archives. Try to keep your messages on-topic and relatively short. Consider sending your message directly to particular people if it won't interest many of the list's subscribers. o ignore abusive and inappropriate messages that get sent to the list, rather than getting drawn into a debate. The very nature of these messages will cause most subscribers to automatically discredit them -- no "response" is necessary. To the contrary, any response will only "add fuel to the fire," prolonging the controversy and further interupting the normal conversation on the list. 4.2. Posting a Message Once you are subscribed, you can post to the list by sending a message to "sqr-users@sqrug.org". Be sure your subject heading describes your specific problem or question (i.e. don't just use "SQR Question"). In the body of your message, please include the following information: o SQR product name and version number (see notes below) o Operating system name and version number o Database name and version number o Application name (i.e. PeopleSoft) and a version number, if any Also, include a short code sample whenever possible. It's much easier for other people to understand what you are trying to do when they can see the actual code. (At the same time, be careful not to post confidential or proprietary code, since the posting will be placed in a public web archive.) Note that your question should relate to SQR or other Brio Report product in some way. Don't ask questions about PeopleSoft, for example, unless you are having SQR-related issues. (For PeopleSoft- specific questions, see other lists mentioned in the ``Related Mailing Lists'' section.) In 2001, PeopleSoft purchased from Brio the rights to the source code for SQR and began releasing its own line of SQR. PeopleSoft's SQR version numbering is different from Brio/Hyperion's, so it's very important to mention whether you are using Hyperion's "SQR" or "SQR for PeopleSoft". (This info is included automatically if you include the full SQR version-id string as described below.) To get the version-id string for your copy of SQR, you can run the following program: begin-program show $sqr-ver end-program This will produce a line that looks something like this: SQR/3.0.15/Intel/SCO Unix R3.2 V5.0/Oracle 7.2.2.3/Sep 25 1996 Include the full line of output in your message. Note that the oper- ating system and database version numbers listed here are the ones under which this copy of SQR was compiled, so you'll still need to include this information for your own environment. In a command-line environment (Unix, etc.), you can also get this version-id string by saying sqr -id 4.3. Replying to a Message Messages sent out on the list have a Reply-To header pointing to the list. This means that you should be able to simply use your mail reader's "reply" function to send a reply to the list. Generally, all answers to questions sent out on the list should be public replies, so that other subscribers can benefit. In those cases where a private reply is appropriate, be sure to over-ride the default Reply-To address. If your message is not actually a reply to the earlier message, please do not use the "reply" function. Instead, address a new e-mail message to the list as described in the previous section. (This is because the list archives will incorrectly show the new message in the original thread if you use "reply".) You should quote enough lines from the original message that later readers can understand your answer even if they missed the original question. At the same time, you should remove any unnecessary lines from the quote in order to make your message shorter and easier to understand. (Remember that some people read the mailing list in digest form, and the digests become much larger if unnecessary lines are quoted.) 5. Job Announcements Please do not post job announcements on the sqr-users list, but use the sqr-jobs list instead. (See ``Related Mailing Lists'' for more information on this list.) A large number of sqr-users subscribers do not want to receive job announcements (for various reasons) and such posts tend to cause a lot of disruption of the discussion on the list. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Feb 01 21:44:35 2006 Date: Wed, 1 Feb 2006 18:42:10 -0800 (PST) From: Terence Yau Subject: [sqr-users] SQR return status 0 if missing input parameter To all SQR/8.1/HP 9000/HPUX B.11.00/Oracle 8.1.7 I write a new SQR program X with three input parameters. begin-program input $a 'Enter a:' input $b 'Enter b:' input $c 'Enter c:' end-program If I run the program X in batch mode ( sqrt X a b c ), the program works OK too. If I miss one or more of the parameters, the program abends with "(SQR 2500) Error getting INPUT." This is perfectly fine too. Since I need to run the program X a few times with different parameters, I set up a script like this while read p1 p2 p3 do sqrt X p1 p2 p3 done < parm.txt where parm.txt consists of 2 lines: a b c e f g The script runs successful with this parm.txt. If I only have 'a' and miss the 'b' and 'c' in the first line of parm.txt file, the program prompts 'Enter b:' and 'Enter c:' on the screen, wait for a few seconds, return a status of zero without processing the next line ( e f g ). Do any of you know why ZERO is returned? How to re-solve this? Terence __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Feb 02 03:36:27 2006 Date: Thu, 2 Feb 2006 09:33:54 +0100 (CET) Subject: Re: [sqr-users] SQR return status 0 if missing input parameter From: "Peter Daalder" I would guess that the while loop initiates the variables, eventhough they are empty. You state in the while loop to read into A B and C, however if a value is not set in the file, it could be the case that B and C are set to nothing, but they are initiated. Peter :: To all :: :: SQR/8.1/HP 9000/HPUX B.11.00/Oracle 8.1.7 :: :: I write a new SQR program X with three input :: parameters. :: :: begin-program :: input $a 'Enter a:' :: input $b 'Enter b:' :: input $c 'Enter c:' :: end-program :: :: :: If I run the program X in batch mode ( sqrt X a b c :: ), the program works OK too. :: :: If I miss one or more of the parameters, the program :: abends with "(SQR 2500) Error getting INPUT." This :: is perfectly fine too. :: :: Since I need to run the program X a few times with :: different parameters, I set up a script like this :: :: while read p1 p2 p3 :: do :: sqrt X p1 p2 p3 :: done < parm.txt :: :: where parm.txt consists of 2 lines: :: a b c :: e f g :: :: The script runs successful with this parm.txt. :: :: If I only have 'a' and miss the 'b' and 'c' in the :: first line of parm.txt file, the program prompts :: 'Enter b:' and 'Enter c:' on the screen, :: wait for a few seconds, return a status of zero :: without processing the next line ( e f g ). :: :: :: Do any of you know why ZERO is returned? How to :: re-solve this? :: :: :: Terence :: :: :: __________________________________________________ :: Do You Yahoo!? :: Tired of spam? Yahoo! Mail has the best spam protection around :: http://mail.yahoo.com :: :: _______________________________________________ :: sqr-users mailing list :: sqr-users@sqrug.org :: http://www.sqrug.org/mailman/listinfo/sqr-users :: _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Feb 08 11:42:59 2006 Subject: RE: [sqr-users] SQR return status 0 if missing input parameter Date: Wed, 8 Feb 2006 11:43:22 -0500 From: "Moran, Patrick T." Terence, I believe the problem you are having is related to how the UNIX (HP/UX in your case) shell handles the "read" command. The "read" shell command reads an entire line from the input, either from a file specified (as in your case) or from stdin. When you code "read p1 p2 p3", the first "word" of the input line read from the file (i.e. the characters up to a space, tab, or "new line" character) is stored in the variable "p1", the second "word" in "p2", and the third "word" in "p3". But suppose, as you state, that the input line contains only a single value (only a single "word"). Then the entire line is stored in "p1" and the variables "p2" and "p3" contain null strings. These values are then used as parameters to your SQR program. The way around this is to: 1. Use your input redirect from parm.txt at the command line when you execute your shell script, instead of as an object of the "while". 2. Read your variables outside your while loop in your shell script. 3. Check for null strings for your variables p1, p2, p3 and react accordingly. I hope this helps. Pat -----Original Message----- From: Terence Yau [mailto:terenceyau@yahoo.com]=20 Sent: Wednesday, February 01, 2006 9:42 PM To: sqr-users@sqrug.org Subject: [sqr-users] SQR return status 0 if missing input parameter To all=20 SQR/8.1/HP 9000/HPUX B.11.00/Oracle 8.1.7 I write a new SQR program X with three input parameters.=20 begin-program=20 input $a 'Enter a:'=20 input $b 'Enter b:'=20 input $c 'Enter c:'=20 end-program=20 If I run the program X in batch mode ( sqrt X a b c ), the program works OK too.=20 If I miss one or more of the parameters, the program abends with "(SQR 2500) Error getting INPUT." This is perfectly fine too.=20 Since I need to run the program X a few times with different parameters, I set up a script like this=20 while read p1 p2 p3=20 do=20 sqrt X p1 p2 p3=20 done < parm.txt=20 where parm.txt consists of 2 lines:=20 a b c=20 e f g=20 The script runs successful with this parm.txt.=20=20=20=20=20 If I only have 'a' and miss the 'b' and 'c' in the first line of parm.txt file, the program prompts 'Enter b:' and 'Enter c:' on the screen,=20 wait for a few seconds, return a status of zero without processing the next line ( e f g ).=20 Do any of you know why ZERO is returned? How to re-solve this?=20=20=20 Terence __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around=20 http://mail.yahoo.com=20 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Feb 07 08:29:11 2006 Date: Tue, 7 Feb 2006 18:57:11 +0530 From: jiju vengal Subject: [sqr-users] Comparing Payroll data across two databases Hi, I am writing an SQR to compare the Payroll data in two separate databases. One of the databases is the test instance and the other is the production instance. I will be comparing the Pay Components of each employee for the given Pay Run Id in both the databases and report the difference. The problem is that the *Line_Num and Page_Num may not be the same in the two databases*. In that case I am having trouble comparing the values from Earnings,Deduction and Tax tables where an employee is identified by the Line_Num and Page_Num. Has anyone done such a requirement before? Any ideas on how to achieve the comparison? Any creative suggestions? Thanks, Jiju. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Feb 07 09:30:20 2006 Date: Tue, 07 Feb 2006 09:28:22 -0500 From: don.barclay@srs.gov Subject: Re: [sqr-users] Comparing Payroll data across two databases Hi Jiju, Your question relates more to PeopleSoft than to SQR, but this is what I would do. You need to determine what would be identical between the two databases. I am assuming that the emplid, pay ending date, and off-cycle status would be the same between the two databases. You can use the PAY_CHECK table to match between the two databases, and determine the correct line and page numbers from that table. HTH, Don > Hi, > I am writing an SQR to compare the Payroll data in two separate databases. > One of the databases is the test instance and the other is the production > instance. I will be comparing the Pay Components of each employee for the > given Pay Run Id in both the databases and report the difference. > > The problem is that the *Line_Num and Page_Num may not be the same in the > two databases*. In that case I am having trouble comparing the values from > Earnings,Deduction and Tax tables where an employee is identified by the > Line_Num and Page_Num. > Has anyone done such a requirement before? Any ideas on how to achieve the > comparison? > Any creative suggestions? > > Thanks, > Jiju. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Feb 08 18:03:05 2006 Date: Wed, 08 Feb 2006 17:36:33 -0500 From: Jae Lee Subject: [sqr-users] query returns no rows for no obvious reason - it works fine on another machine hi, all, i have a program which has quite complex query("union", etc.) that takes over an hour to finish. it is SQR 8.1. it runs and pulls data fine on one of our sun solaris box, but not on the other - it returns zero row. Our database is Oracle 9. the other machine where it fails to return any data has 10 instances of oracle db, while the machine where this program works has only one instance. Could it be timing out, b/c too much is going on on that box? But it doesn't abort, ends normally - only it does not pull any data. also we run the executable SQR program through SCT Banner 7.1 job submission on this machine with 10 instances. On the other machine we have Banner 6.x. Did anybody have this kind of thing happen to them? The programs and data are identical on two machines. Any insight, hint, ideas are welcome.. Help! -- jae at applachian state university, boone, nc _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Feb 08 18:23:13 2006 From: "Alexander, Steven" Subject: RE: [sqr-users] query returns no rows for no obvious reason - it worksfine on another machine Date: Wed, 8 Feb 2006 15:21:17 -0800 Try running the query on SQL Plus to see if it's a database problem. (You may be able to speed it up by using "union all" versus "union". The union command has to collect all the rows in Oracle temp space (do you have enough?), sort them, and eliminate duplicates. The union-all command doesn't eliminate duplicates, so it doesn't have to buffer and sort the results.) -----Original Message----- From: Jae Lee [mailto:leejc@appstate.edu] Sent: Wednesday, February 08, 2006 2:37 PM To: sqr-users@sqrug.org Subject: [sqr-users] query returns no rows for no obvious reason - it worksfine on another machine hi, all, i have a program which has quite complex query("union", etc.) that takes over an hour to finish. it is SQR 8.1. it runs and pulls data fine on one of our sun solaris box, but not on the other - it returns zero row. Our database is Oracle 9. the other machine where it fails to return any data has 10 instances of oracle db, while the machine where this program works has only one instance. Could it be timing out, b/c too much is going on on that box? But it doesn't abort, ends normally - only it does not pull any data. also we run the executable SQR program through SCT Banner 7.1 job submission on this machine with 10 instances. On the other machine we have Banner 6.x. Did anybody have this kind of thing happen to them? The programs and data are identical on two machines. Any insight, hint, ideas are welcome.. Help! -- jae at applachian state university, boone, nc _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Feb 14 16:38:22 2006 Date: Tue, 14 Feb 2006 16:21:14 -0500 From: Jae Lee Subject: [sqr-users] how do i include a hint in begin-select? hi, all, i deperately need to pass a hint to use a specific index for a table in BEGIN-SELECT, such as, in a pl/sql procedure you can: SELECT /*+ INDEX(table name, index name) */ my query dies because of too much work load.. so i need to tell it to use a index for the largest table in the query. somehow, the optimizer does not use this index. because i have SQR commands to process data, i can't use BEGIN-SQL. any help would be greatly appreciated!! jae _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Feb 14 19:11:59 2006 Subject: RE: [sqr-users] how do i include a hint in begin-select? Date: Tue, 14 Feb 2006 19:09:28 -0500 From: "Peter Burton" =20 Jae, Begin-Select /*+ INDEX(table, index) */ Col1 Col2 .. From table .. End-Selecy 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 Jae Lee Sent: Tuesday, February 14, 2006 4:21 PM To: sqr-users@sqrug.org Subject: [sqr-users] how do i include a hint in begin-select? hi, all, i deperately need to pass a hint to use a specific index for a table in=20 BEGIN-SELECT, such as, in a pl/sql procedure you can: SELECT /*+ INDEX(table name, index name) */ my query dies because of too much work load.. so i need to tell it to=20 use a index for the largest table in the query. somehow, the optimizer=20 does not use this index. because i have SQR commands to process data, i can't use BEGIN-SQL. any help would be greatly appreciated!! jae _______________________________________________ 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 Hyperion does not, therefore, ac= cept legal responsibility for the contents of this message nor for any dama= ge caused by viruses. The views expressed here do not necessarily represent= those of Hyperion. For more information about Hyperion, please visit our Web site at www.hyper= ion.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Wed Feb 15 06:16:55 2006 From: "Steve Cavill" Subject: RE: [sqr-users] how do i include a hint in begin-select? Date: Wed, 15 Feb 2006 22:13:44 +1100 Begin-select /*+ INDEX(table name, index name) */ col1 Col2 End-select Should work -----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 Jae Lee Sent: Wednesday, 15 February 2006 8:21 AM To: sqr-users@sqrug.org Subject: [sqr-users] how do i include a hint in begin-select? hi, all, i deperately need to pass a hint to use a specific index for a table in BEGIN-SELECT, such as, in a pl/sql procedure you can: SELECT /*+ INDEX(table name, index name) */ my query dies because of too much work load.. so i need to tell it to use a index for the largest table in the query. somehow, the optimizer does not use this index. because i have SQR commands to process data, i can't use BEGIN-SQL. any help would be greatly appreciated!! jae _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Feb 17 11:38:36 2006 Date: Fri, 17 Feb 2006 08:36:01 -0800 (PST) From: Tony DeLia Subject: [sqr-users] Testing.... this group is still kicking... Greetings, Forgive the intrusion... haven't posted a message to SQRUG in years, just testing for now... Some may remember my www.sqrtools.com site... the domain name expired but the remnants exist under - http://users.erols.com/sqrtools/ Alot of broken links underneath but plenty of code examples (many can be applied to some of the recent questions)... I'm thinking of creating something new soon... been doing alot of coooool stuff... I see some familar names on the list - nice to see everyone alive & well... :) __________________________________________________ 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 Fri Feb 17 12:35:09 2006 Date: Fri, 17 Feb 2006 09:32:47 -0800 (PST) From: Sam Spritzer Subject: Re: [sqr-users] Testing.... this group is still kicking... Kicking the tires, huh...or Ray's shins? Sam Tony DeLia wrote: Greetings, Forgive the intrusion... haven't posted a message to SQRUG in years, just testing for now... Some may remember my www.sqrtools.com site... the domain name expired but the remnants exist under - http://users.erols.com/sqrtools/ Alot of broken links underneath but plenty of code examples (many can be applied to some of the recent questions)... I'm thinking of creating something new soon... been doing alot of coooool stuff... I see some familar names on the list - nice to see everyone alive & well... :) __________________________________________________ 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 ************************************************************ "In the beginning, there was something...which exploded yet, they find nothing." --------------------------------- What are the most popular cars? Find out at Yahoo! Autos _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Thu Feb 16 14:28:21 2006 Date: Fri, 17 Feb 2006 00:56:03 +0530 From: Kirti Subject: [sqr-users] Printing bar graph with specific colors. NewGraphics doesnt seem to be working... This is a multi-part message in MIME format... ------=_Part_21579_15504590.1140117963317 Content-Disposition: inline Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable [Default-Settings] AllowDateAsChar=3DTRUE output-file-mode=3Dlong OutputTwoDigitYearWarningMsg=3DFALSE UseY2KCenturyAlgorithm=3DTRUE Default-Numeric=3DDecimal(26) ;NewGraphics=3DFALSE NewGraphics=3DTRUE [Environment:Common] SQRDIR=3DE:\Psoft\CRM89DMO\bin\sqr\ora\BINW SQRBIN=3DE:\Psoft\CRM89DMO\bin\sqr\ora\BINW ENCODING=3DCP1252 [Environment:DB2] SQR_DB_DATE_FORMAT=3DYYYY-MM-DD-HH.MI.SS.NNNNNN SQR_DB_TIME_ONLY_FORMAT=3DHH.MI.SS SQR_DB_DATE_ONLY_FORMAT=3DYYYY-MM-DD ;ENCODING-DATABASE-API=3DUCS2 [Environment:ODBC] SQR_DB_DATE_FORMAT=3DYYYY-MM-DD HH:MI:SS.NNN ;SQR_DB_TIME_ONLY_FORMAT=3D ;SQR_DB_DATE_ONLY_FORMAT=3D FixODBCAccuracy=3DTRUE ;ENCODING-DATABASE-API=3DUCS2 [Environment:Sybase] SQR_DB_DATE_FORMAT=3DYYYY-MM-DD HH:MI:SS.NNN [Environment:Oracle] SQR_DB_DATE_FORMAT=3DDD-MON-YYYY [Environment:Informix] SQR_DB_DATE_FORMAT=3DYYYY-MM-DD HH:MI:SS.000 SQR_DB_DATE_ONLY_FORMAT=3DYYYY-MM-DD [HTML:Images] Prev-Page=3D40,40,/sqr_images/prevpg.gif Next-Page=3D40,40,/sqr_images/nextpg.gif First-Page=3D40,40,/sqr_images/firstpg.gif Last-Page=3D40,40,/sqr_images/lastpg.gif ;Wallpaper=3D [Processing-Limits] ;DYNAMICARGS=3D1500 DYNAMICARGS=3D32767 EXPRESSIONSPACE=3D65535 FORWARDREFS=3D1000 NUMVARIABLES=3D1100 ONBREAKS=3D75 POSITIONS=3D5000 PROGLINEPARS=3D65535 PROGLINES=3D32767 QUERIES=3D1000 QUERYARGS=3D4000 SQLSIZE=3D30000 STRINGSPACE=3D65535 SUBVARS=3D10000 VARIABLES=3D32767 WHENS=3D1000 ;BREAKS=3D100 ;LONGSPACE=3D32766 [Fonts] ; The following are SQR predefined font styles. ; The numbers on the left are associated with font styles on the right. ; Users may define their own associations between font_numbers and font ; styles using the font_numbers 900 thru 999. ; ; Notes: ; ; - If SQR does not find a particular font a substitute is used. ; - If a font style (fixed or proportional) is defined inside SQR, ; its style will override the setting in this file. ; - Proportional is assumed if the second field begins with the character 'p'. ; (i.e., "4=3DArial,p" would equate to "4=3DArial,proportional") ; - Bold is assumed if a third parameter is supplied. ; 3=3DCourier New,fixed 300=3DCourier New,fixed,bold 4=3DArial,proportional 400=3DArial,proportional,bold 5=3DTimes New Roman,proportional 500=3DTimes New Roman,proportional,bold 6=3DAvantGarde,proportional 8=3DPalatino,proportional 800=3DPalatino,proportional,bold 11=3DSymbol,symbol 900=3Dunknown,proportional 901=3DTimes New Roman,proportional 28825=3DMS UI Gothic,proportional [PDF Fonts] ; The following is the list of fonts used for PDF output ; ; Fonts are ordered by priority from left. If a character is not ; covered by higher priority font, font with next priority will be used. ; Up to 10 fonts can be linked for a font number. ; ; Font Types Supported for PDF: Adobe Reader Core 14 fonts ; Adobe Reader Asian Fontpack fonts ; OpenType/TrueType fonts ; OpenType/TrueType font files must be listed in [TrueType Fonts] ; section. OpenType/TrueType fonts are always embedded in output PDF ; file as subset. ; ; Base font number * 100 is a bold variant of the base font. Font ; number 30 to 39 are recognized as italic fonts. If fonts listed ; under these numbers are not bold/italic fonts, bold and italic ; effect will be created in output. ; 3=3DCourier,Cumberland,HeiseiKakuGo-W5,MHei-Medium,STSong-Light,HYGoThic-Me= dium,Angsana 300=3DCourier-Bold,Cumberland-Bold,HeiseiKakuGo-W5,MHei-Medium,STSong-Light= ,HYGoThic-Medium,Angsana 4=3DHelvetica,Albany,HeiseiKakuGo-W5,MHei-Medium,STSong-Light,HYGoThic-Medi= um,Angsana 400=3DHelvetica-Bold,Albany-Bold,HeiseiKakuGo-W5,MHei-Medium,STSong-Light,H= YGoThic-Medium,Angsana 5=3DTimes-Roman,Thorndale,HeiseiMin-W3,MSung-Light,STSong-Light,HYSMyeongJo= -Medium,Angsana 500=3DTimes-Bold,Thorndale-Bold,HeiseiMin-W3,MSung-Light,STSong-Light,HYSMy= eongJo-Medium,Angsana 11=3DSymbol 12=3DZapfDingbats 30=3DCourier-Oblique,Cumberland,HeiseiKakuGo-W5,MHei-Medium,STSong-Light,HY= GoThic-Medium,Angsana 3000=3DCourier-BoldOblique,Cumberland-Bold,HeiseiKakuGo-W5,MHei-Medium,STSo= ng-Light,HYGoThic-Medium,Angsana 31=3DHelvetica-Oblique,Albany,HeiseiKakuGo-W5,MHei-Medium,STSong-Light,HYGo= Thic-Medium,Angsana 3100=3DHelvetica-BoldOblique,Albany-Bold,HeiseiKakuGo-W5,MHei-Medium,STSong= -Light,HYGoThic-Medium,Angsana 32=3DTimes-Italic,Thorndale,HeiseiMin-W3,MSung-Light,STSong-Light,HYSMyeong= Jo-Medium,Angsana 3200=3DTimes-BoldItalic,Thorndale-Bold,HeiseiMin-W3,MSung-Light,STSong-Ligh= t,HYSMyeongJo-Medium,Angsana 28825=3DCourier,HeiseiKakuGo-W5 28752=3DCourier,HeiseiMin-W3 37110=3DCourier,STSong-Light 37058=3DCourier,STSong-Light 33269=3DCourier,MSung-Light [PDF Fonts:Exclusion Ranges] ; This section specifies exclusion ranges for the range covered by fonts ; listed in [PDF Fonts] section. If exclusion range is set, if a ; character is actually covered by a font, the font is not used to print ; the character. Ranges are specified in Unicode, in hex or in decimal. ; No Exclusion range for base configuration [TrueType Fonts] ; This section specifies the mapping from TrueType font names used in ; above configuration section and physical file path of the font on ; operating system. For TrueType collection file (.ttc), font directory ; number should also be specified. ; (ex. font name=3Dfile path, directory number) ; Font Path=3Ddirectory where fonts resides. Default is SQRDIR. On ; Windows, Windows font directory will be looked up too. Fonts not ; residing on other directories must be specified full physical path.FontPath=3De:\psoft\crm89dmo\fonts\truetype\ Albany=3Dalbw.ttf Albany-Bold=3Dalbwb.ttf Cumberland=3Dcumbwr__.ttf Cumberland-Bold=3Dcumbwb__.ttf Thorndale=3Dthowr___.ttf Thorndale-Bold=3Dthowb___.ttf Angsana=3Dangsa.ttf Font Path=3DE:\psoft\crm89dmo\fonts\truetype\ [Colors] Color_1 =3D (255,0,0) Color_2 =3D (0,255,0) Color_3 =3D (0,0,255) Color_4 =3D (230,230,250) Color_5 =3D (0,0,128) Color_6 =3D (0,100,0) Color_7 =3D (255,255,0) Color_8 =3D (210,105,30) Color_9 =3D (0,191,255) Color_10 =3D (255,165,0) Color_11 =3D (255,20,147) Color_12 =3D (238,130,238) Color_13 =3D (127,255,212) Color_14 =3D (255,52,179) Color_15 =3D (238,44,44) Color_16 =3D (205,173,0) Color_17 =3D (227,130,23) Color_18 =3D (59,94,43) Color_19 =3D (51,161,201) Color_20 =3D (173,255,47) Color_21 =3D (25,25,112) Color_22 =3D (160,82,45) The above is my pssqr.ini file... I have added the NewGraphics flag and the color section. I have defined the color palette in my sqr and used it in print chart. But the bar graph is not getting printed if I keep NewGraphics =3D TRUE. If it is set to false the graph is getting printed. I have read m= ost of the previous posts on this topic and tried several different combinations, but I cannot manage to print the grpah with the colours I want. Also I get a color dataset error when I try to print a graph having more than 14 columns with legend. Without legend the limit is 17. I am at my wits end trying to figure out what I have missed. Please any help would be appreciated. In case you want to see the sqr and its output let me know... ------=_Part_21579_15504590.1140117963317 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/octet-stream' MIME type. It has been automatically discarded before sending the message to the list. ------=_Part_21579_15504590.1140117963317 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 ------=_Part_21579_15504590.1140117963317-- From sqr-users-bounces@sqrug.org Mon Feb 20 06:52:11 2006 From: "Steve Cavill" Subject: RE: [sqr-users] Printing bar graph with specific colors. NewGraphicsdoesnt seem to be working... Date: Mon, 20 Feb 2006 22:48:55 +1100 Does the spf file have the right colours? That will help determine if the problem is with sqr or sqrw/driver. 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 Kirti Sent: Friday, 17 February 2006 6:26 AM To: sqr-users@sqrug.org Subject: [sqr-users] Printing bar graph with specific colors. NewGraphicsdoesnt seem to be working... [Default-Settings] AllowDateAsChar=TRUE output-file-mode=long OutputTwoDigitYearWarningMsg=FALSE UseY2KCenturyAlgorithm=TRUE Default-Numeric=Decimal(26) ;NewGraphics=FALSE NewGraphics=TRUE [Environment:Common] SQRDIR=E:\Psoft\CRM89DMO\bin\sqr\ora\BINW SQRBIN=E:\Psoft\CRM89DMO\bin\sqr\ora\BINW ENCODING=CP1252 [Environment:DB2] SQR_DB_DATE_FORMAT=YYYY-MM-DD-HH.MI.SS.NNNNNN SQR_DB_TIME_ONLY_FORMAT=HH.MI.SS SQR_DB_DATE_ONLY_FORMAT=YYYY-MM-DD ;ENCODING-DATABASE-API=UCS2 [Environment:ODBC] SQR_DB_DATE_FORMAT=YYYY-MM-DD HH:MI:SS.NNN ;SQR_DB_TIME_ONLY_FORMAT= ;SQR_DB_DATE_ONLY_FORMAT= FixODBCAccuracy=TRUE ;ENCODING-DATABASE-API=UCS2 [Environment:Sybase] SQR_DB_DATE_FORMAT=YYYY-MM-DD HH:MI:SS.NNN [Environment:Oracle] SQR_DB_DATE_FORMAT=DD-MON-YYYY [Environment:Informix] SQR_DB_DATE_FORMAT=YYYY-MM-DD HH:MI:SS.000 SQR_DB_DATE_ONLY_FORMAT=YYYY-MM-DD [HTML:Images] Prev-Page=40,40,/sqr_images/prevpg.gif Next-Page=40,40,/sqr_images/nextpg.gif First-Page=40,40,/sqr_images/firstpg.gif Last-Page=40,40,/sqr_images/lastpg.gif ;Wallpaper= [Processing-Limits] ;DYNAMICARGS=1500 DYNAMICARGS=32767 EXPRESSIONSPACE=65535 FORWARDREFS=1000 NUMVARIABLES=1100 ONBREAKS=75 POSITIONS=5000 PROGLINEPARS=65535 PROGLINES=32767 QUERIES=1000 QUERYARGS=4000 SQLSIZE=30000 STRINGSPACE=65535 SUBVARS=10000 VARIABLES=32767 WHENS=1000 ;BREAKS=100 ;LONGSPACE=32766 [Fonts] ; The following are SQR predefined font styles. ; The numbers on the left are associated with font styles on the right. ; Users may define their own associations between font_numbers and font ; styles using the font_numbers 900 thru 999. ; ; Notes: ; ; - If SQR does not find a particular font a substitute is used. ; - If a font style (fixed or proportional) is defined inside SQR, ; its style will override the setting in this file. ; - Proportional is assumed if the second field begins with the character 'p'. ; (i.e., "4=Arial,p" would equate to "4=Arial,proportional") ; - Bold is assumed if a third parameter is supplied. ; 3=Courier New,fixed 300=Courier New,fixed,bold 4=Arial,proportional 400=Arial,proportional,bold 5=Times New Roman,proportional 500=Times New Roman,proportional,bold 6=AvantGarde,proportional 8=Palatino,proportional 800=Palatino,proportional,bold 11=Symbol,symbol 900=unknown,proportional 901=Times New Roman,proportional 28825=MS UI Gothic,proportional [PDF Fonts] ; The following is the list of fonts used for PDF output ; ; Fonts are ordered by priority from left. If a character is not ; covered by higher priority font, font with next priority will be used. ; Up to 10 fonts can be linked for a font number. ; ; Font Types Supported for PDF: Adobe Reader Core 14 fonts ; Adobe Reader Asian Fontpack fonts ; OpenType/TrueType fonts ; OpenType/TrueType font files must be listed in [TrueType Fonts] ; section. OpenType/TrueType fonts are always embedded in output PDF ; file as subset. ; ; Base font number * 100 is a bold variant of the base font. Font ; number 30 to 39 are recognized as italic fonts. If fonts listed ; under these numbers are not bold/italic fonts, bold and italic ; effect will be created in output. ; 3=Courier,Cumberland,HeiseiKakuGo-W5,MHei-Medium,STSong-Light,HYGoThic-Medium,Angsana 300=Courier-Bold,Cumberland-Bold,HeiseiKakuGo-W5,MHei-Medium,STSong-Light,HYGoThic-Medium,Angsana 4=Helvetica,Albany,HeiseiKakuGo-W5,MHei-Medium,STSong-Light,HYGoThic-Medium,Angsana 400=Helvetica-Bold,Albany-Bold,HeiseiKakuGo-W5,MHei-Medium,STSong-Light,HYGoThic-Medium,Angsana 5=Times-Roman,Thorndale,HeiseiMin-W3,MSung-Light,STSong-Light,HYSMyeongJo-Medium,Angsana 500=Times-Bold,Thorndale-Bold,HeiseiMin-W3,MSung-Light,STSong-Light,HYSMyeongJo-Medium,Angsana 11=Symbol 12=ZapfDingbats 30=Courier-Oblique,Cumberland,HeiseiKakuGo-W5,MHei-Medium,STSong-Light,HYGoThic-Medium,Angsana 3000=Courier-BoldOblique,Cumberland-Bold,HeiseiKakuGo-W5,MHei-Medium,STSong-Light,HYGoThic-Medium,Angsana 31=Helvetica-Oblique,Albany,HeiseiKakuGo-W5,MHei-Medium,STSong-Light,HYGoThic-Medium,Angsana 3100=Helvetica-BoldOblique,Albany-Bold,HeiseiKakuGo-W5,MHei-Medium,STSong-Light,HYGoThic-Medium,Angsana 32=Times-Italic,Thorndale,HeiseiMin-W3,MSung-Light,STSong-Light,HYSMyeongJo-Medium,Angsana 3200=Times-BoldItalic,Thorndale-Bold,HeiseiMin-W3,MSung-Light,STSong-Light,HYSMyeongJo-Medium,Angsana 28825=Courier,HeiseiKakuGo-W5 28752=Courier,HeiseiMin-W3 37110=Courier,STSong-Light 37058=Courier,STSong-Light 33269=Courier,MSung-Light [PDF Fonts:Exclusion Ranges] ; This section specifies exclusion ranges for the range covered by fonts ; listed in [PDF Fonts] section. If exclusion range is set, if a ; character is actually covered by a font, the font is not used to print ; the character. Ranges are specified in Unicode, in hex or in decimal. ; No Exclusion range for base configuration [TrueType Fonts] ; This section specifies the mapping from TrueType font names used in ; above configuration section and physical file path of the font on ; operating system. For TrueType collection file (.ttc), font directory ; number should also be specified. ; (ex. font name=file path, directory number) ; Font Path=directory where fonts resides. Default is SQRDIR. On ; Windows, Windows font directory will be looked up too. Fonts not ; residing on other directories must be specified full physical path.FontPath=e:\psoft\crm89dmo\fonts\truetype\ Albany=albw.ttf Albany-Bold=albwb.ttf Cumberland=cumbwr__.ttf Cumberland-Bold=cumbwb__.ttf Thorndale=thowr___.ttf Thorndale-Bold=thowb___.ttf Angsana=angsa.ttf Font Path=E:\psoft\crm89dmo\fonts\truetype\ [Colors] Color_1 = (255,0,0) Color_2 = (0,255,0) Color_3 = (0,0,255) Color_4 = (230,230,250) Color_5 = (0,0,128) Color_6 = (0,100,0) Color_7 = (255,255,0) Color_8 = (210,105,30) Color_9 = (0,191,255) Color_10 = (255,165,0) Color_11 = (255,20,147) Color_12 = (238,130,238) Color_13 = (127,255,212) Color_14 = (255,52,179) Color_15 = (238,44,44) Color_16 = (205,173,0) Color_17 = (227,130,23) Color_18 = (59,94,43) Color_19 = (51,161,201) Color_20 = (173,255,47) Color_21 = (25,25,112) Color_22 = (160,82,45) The above is my pssqr.ini file... I have added the NewGraphics flag and the color section. I have defined the color palette in my sqr and used it in print chart. But the bar graph is not getting printed if I keep NewGraphics = TRUE. If it is set to false the graph is getting printed. I have read most of the previous posts on this topic and tried several different combinations, but I cannot manage to print the grpah with the colours I want. Also I get a color dataset error when I try to print a graph having more than 14 columns with legend. Without legend the limit is 17. I am at my wits end trying to figure out what I have missed. Please any help would be appreciated. In case you want to see the sqr and its output let me know... _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Feb 17 11:49:12 2006 Date: Fri, 17 Feb 2006 08:47:23 -0800 From: "Ray James" Subject: [sqr-users] RE: UNABLE TO START SQRT How do you send a request for help. My topic is connectivity to the oracle server from a workstation. The error I keep geeting at the workstation is UNABLE TO START SQRT. -----Original Message----- From: sqr-users-bounces+ray=3Dspargertechnology.com@sqrug.org [mailto:sqr-users-bounces+ray=3Dspargertechnology.com@sqrug.org] On Behalf Of sqr-users-request@sqrug.org Sent: Friday, February 17, 2006 3:04 AM To: sqr-users@sqrug.org Subject: sqr-users Digest, Vol 24, Issue 7 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..." Sparger Technology, Inc message center _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Feb 17 11:55:21 2006 Subject: RE: [sqr-users] RE: UNABLE TO START SQRT Date: Fri, 17 Feb 2006 10:53:21 -0600 From: "Knapp, Richard" Doesn't _sound_ like a connectivity problem. Maybe there is more to it? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Ray James Sent: Friday, February 17, 2006 10:47 AM To: sqr-users@sqrug.org Subject: [sqr-users] RE: UNABLE TO START SQRT How do you send a request for help. My topic is connectivity to the oracle server from a workstation. The error I keep geeting at the workstation is UNABLE TO START SQRT. -----Original Message----- From: sqr-users-bounces+ray=3Dspargertechnology.com@sqrug.org [mailto:sqr-users-bounces+ray=3Dspargertechnology.com@sqrug.org] On Behalf Of sqr-users-request@sqrug.org Sent: Friday, February 17, 2006 3:04 AM To: sqr-users@sqrug.org Subject: sqr-users Digest, Vol 24, Issue 7 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..." Sparger Technology, Inc message center _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Mon Feb 20 20:27:15 2006 Date: Mon, 20 Feb 2006 20:24:40 -0500 From: "Mingazov, Maya" Subject: [sqr-users] double-sided printing Does any one know how to get double-sided printed output in SQR? Any ideas or example of code would be very helpful. =20 Thank you, =20 Maya Mingazov Developer, Applications Information Services Ph.: 203-563-6448 Fax: 203-563-6503 mmingazov@newsamerica.com =20 =20 This message and its attachments may contain legally privileged or confiden= tial information. It is intended solely for the named addressee. If you a= re not the addressee indicated in this message (or responsible for delivery= of the message to the addressee), you may not copy or deliver this message= or its attachments to anyone. Rather, you should permanently delete this = message and its attachments and kindly notify the sender by reply e-mail. = Any content of this message and its attachments that does not relate to the= official business of News America Incorporated or its subsidiaries must be= taken not to have been sent or endorsed by any of them. No warranty is ma= de that the e-mail or attachment(s) are free from computer virus or other d= efect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Feb 21 10:17:57 2006 Subject: RE: [sqr-users] double-sided printing Date: Tue, 21 Feb 2006 09:13:19 -0600 From: "Knapp, Richard" If your printer supports duplex printing and it speaks HP printer control language (PCL) - many non-HP printers do - send the duplexing control sequences to the printer as part of the print file. This will not work in a Windows environment, however. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Mingazov, Maya Sent: Monday, February 20, 2006 7:25 PM To: sqr-users@sqrug.org Subject: [sqr-users] double-sided printing Does any one know how to get double-sided printed output in SQR? Any ideas or example of code would be very helpful. =20 Thank you, =20 Maya Mingazov Developer, Applications Information Services Ph.: 203-563-6448 Fax: 203-563-6503 mmingazov@newsamerica.com =20 =20 This message and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message (or responsible for delivery of the message to the addressee), you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments that does not relate to the official business of News America Incorporated or its subsidiaries must be taken not to have been sent or endorsed by any of them. No warranty is made that the e-mail or attachment(s) are free from computer virus or other defect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Fri Mar 17 10:27:20 2006 Subject: RE: [sqr-users] double-sided printing Date: Fri, 17 Mar 2006 10:24:47 -0500 From: "Mingazov, Maya" Hello everyone, I am trying to modify SQR Report to print double-sided for a while already and still can not figure it out. And I am new to SQR. Does anybody have any experience with that. Any idea would be very helpful. Thank you, Maya Mingazov Developer, Applications Information Services Ph.: 203-563-6448 Fax: 203-563-6503 mmingazov@newsamerica.com -----Original Message----- From: sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org [mailto:sqr-users-bounces+mmingazov=3Dnewsamerica.com@sqrug.org] On Behalf Of tam kag Sent: Friday, March 17, 2006 9:58 AM To: sqr-users@sqrug.org Subject: [sqr-users] personal SQR vs SQR Server for windows Hello, -Brio Portal 7.0.4 -SQR 6.2 I want to have a seprate job factory on a windows platform, so I installed=20 Job Factory on the windows machine and installed personal SQR V6.2 too. but now when I run a sqr job that uses that job factory, the following error=20 is produced: Thread=3DJF_Windows-0; User=3Dbrepdev; Runtime error: exit code =3D 6 I think that exit code 6 means that SQRDIR is pointing to an incorrect=20 directory but I have checked the SQR directory in the Job factory setting,=20 it is pointing to the correct location on the windows machine. which leads me to think that this could be becuase I don't have SQR server=20 for windows installed, do you agree with this conclusion or something else=20 is going on? Please advice. Thank you _________________________________________________________________ Is your PC infected? Get a FREE online computer virus scan from McAfee(r)=20 Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3D3963 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users This message and its attachments may contain legally privileged or confiden= tial information. It is intended solely for the named addressee. If you a= re not the addressee indicated in this message (or responsible for delivery= of the message to the addressee), you may not copy or deliver this message= or its attachments to anyone. Rather, you should permanently delete this = message and its attachments and kindly notify the sender by reply e-mail. = Any content of this message and its attachments that does not relate to the= official business of News America Incorporated or its subsidiaries must be= taken not to have been sent or endorsed by any of them. No warranty is ma= de that the e-mail or attachment(s) are free from computer virus or other d= efect. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Feb 21 10:13:38 2006 Date: Tue, 21 Feb 2006 10:10:51 -0500 From: "Griffith, Peggy" Subject: [sqr-users] Writing a single quote in a string Hi - my SQR is writing a text file and I need to include a single quote as part of a string; does anyone know how to do that?=20=20 =20 Example: let xxx =3D ''3207368'10001 'HRAF' (after the first single quote there is supposed to be a single quote, and then within the string there are 2 other single quotes as well as a space). =20 I have been told to try using the single quote within single quotes which does not work, also told to try 4 single quotes before the string but that does not work. =20 Peggy Griffith Business Systems Analyst Sappi Fine Paper North America 179 John Roberts Road South Portland, Maine 04016 Tel: 207.854.7466 =20 =20 This message may contain information which is private, privileged or confid= ential and is intended solely for the use of the individual or entity named= in the message. If you are not the intended recipient of this message, ple= ase notify the sender thereof and destroy / delete the message. Neither the= sender nor Sappi Limited (including its subsidiaries and associated compan= ies) shall incur any liability resulting directly or indirectly from access= ing any of the attached files which may contain a virus or the like. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-bounces@sqrug.org Tue Feb 21 10:21:08 2006 Subject: RE: [sqr-users] Writing a single quote in a string Date: Tue, 21 Feb 2006 09:15:04 -0600 From: "Knapp, Richard" Create a string that contains the ASCII value of the single quote and concatenate that to the rest of your string. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org [mailto:sqr-users-bounces+knappr=3Dumsystem.edu@sqrug.org] On Behalf Of Griffith, Peggy Sent: Tuesday, February 21, 2006 9:11 AM To: sqr-users@sqrug.org Subject: [sqr-users] Writing a single quote in a string Hi - my SQR is writing a text file and I need to include a single quote as part of a string; does anyone know how to do that?=20=20 =20 Example: let xxx =3D ''3207368'10001 'HRAF' (after the first single quote there is supposed to be a single quote, and then within the string there are 2 other single quotes as well as a space). =20 I have been told to try using the single quote within single quotes which does not work, also told to try 4 single quotes before the string but that does not work. =20 Peggy Griffith Business Systems Analyst Sappi Fine Paper North America 179 John Roberts Road South Portland, Maine 04016 Tel: 207.854.7466 =20 =20 This message may contain information which is private, privileged or confidential and is intended solely for the use of the individual or entity named in the message. If you are not the intended recipient of this message, please notify the sender thereof and destroy / delete the message. Neither the sender nor Sappi Limited (including its subsidiaries and associated companies) shall incur any liability resulting directly or indirectly from accessing any of the attached files which may contain a virus or the like. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ________________