From sqr-users-admin@sqrug.org Thu Jan 1 00:01:56 2004 Date: Thu, 1 Jan 2004 00:00:02 -0500 From: Nathan Stratton Treadway Subject: [sqr-users] Monthly sqr-users Hints Posting sqr-users Mailing List Hints and Guidelines Nathan Stratton Treadway, Ray Ontko & Co. (nathanst@ontko.com) $Revision: 1.17 $ $Date: 2003-11-01 09:45:47-05 $ This document gathers in one location information about the sqr-users mail list. It includes instructions for changing your subscription settings (including unsubscribing), as well are guidelines for using the list. ______________________________________________________________________ Table of Contents 1. Changes Since Previous Version 2. Introduction 2.1 sqr-users Mailing List 2.2 sqr-users Hints and Guidelines Document 2.3 Related Mailing Lists 3. Interacting with the list server 3.1 Subscribing to the list 3.2 Unsubscribing from the list 3.3 When your email address changes 3.4 Digests 3.5 Obtaining your password 3.6 Problems 4. Posting to the sqr-users List 4.1 General Guidelines 4.2 Posting a Message 4.3 Replying to a Message 5. Job Announcements ______________________________________________________________________ 1. Changes Since Previous Version Changes since the version dated 2002/11/13: o Hyperion has aqcuired Brio Software. o Add section on what to do when one's e-mail address changes. o Mention that the subscription address and message return address must exactly match in order to post to the 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-2002 by Ray Ontko & Co. It may be freely copied and distributed provided it is not modified in any way and it retains the original copyright notice. 2.3. Related Mailing Lists Here are some mailing lists that cover topics relating to SQR in some way. sqr-jobs : SQR Jobs This list may be used for posting SQR-related resumes, recruitments, job announcements, project announcments, help- wanted, work-wanted ads, etc. To join, follow the link above, or send any message to "sqr-jobs-subscribe@yahoogroups.com". peoplesoft-fans : PeopleSoft Fans Moderated list covering technical and functional aspects of PeopleSoft. To join, follow the link above, or send any message to "peoplesoft-fans-subscribe@yahoogroups.com". psusers : PeopleSoft Users For questions related to any aspect of PeopleSoft (including PeopleSoft-specific SQR issues). This list has merged with the Peoplesoft Fans mailing list and is no longer active, but the message achive can still be found at the link above. BrioSQRReport : Brio SQR Report List for discussion of SQR and SQR Developer (formerly called Brio.Report and Report Builder). To join, follow the link above, or send any message to "BrioSQRReport- subscribe@yahoogroups.com". rm-users : Report- Mart Users List for discussion of Brio Portal (previously called ReportMart). To join, follow the link above, or send a message containing the word "subscribe" in the body to "rm-users- request@sqrug.org". brioportalusersgroup : Brio Portal Users Group list List for discussion of Brio Portal. To join, follow the link above, or send any message to "brioportalusersgroup- subscribe@yahoogroups.com". brio-l : OpenITx Brio List List for technical and functional discussion of all Brio products (but most messages are currently about Brio Intelligence). To join, follow the link above. briousers : Brio.Enter- prise Users List for discussion of the Brio.Enterprise (now called Intelligence) product. To join, follow the link above, or send any message to "briousers-subscribe@yahoogroups.com". briolist : Brio List List for discussion of Brio Intelligence. To join, follow the link above, or send any message to "briolist- subscribe@yahoogroups.com". 3. Interacting with the list server The sqr-users mailing list is hosted using the Mailman list server package. All of the Mailman functions described below are accessed from the sqr-users List Info page, "http://www.sqrug.org/mailman/listinfo/sqr-users". 3.1. Subscribing to the list To subscribe to the mailing list, enter your e-mail address in the box at the top of the "Subscribing to sqr-users" section on the sqr-users List Info page, then choose a password to assign to your subscription and enter it in both "Password" boxes. This password is used to allow you to securely make changes to your subscription over the web. This password will be e-mailed back to you at varous times, so you should not use the same password as you are using elsewhere. Once you have filled in the password, click the "Subscribe" button. You should soon receive an e-mail message from the list server requesting confirmation of your subscription request. Once you have replied to this message and your subscription has been processed, you will receive a "welcome" message giving you more information on the list server, and as well as a reminder of the subscription password you chose. 3.2. Unsubscribing from the list To unsubscribe from the list, go to the sqr-users List Info page, enter your e-mail address in the "sqr-users Subscribers" section, and click the "Edit Options" button. In the page that comes up, there will be an "Unsubscribing from sqr-users" section; simply enter your password in the box there and click the "Unsubscribe" button. Assuming you enter the correct password, you will recieve a message stating "You have been unsubscribed." and the removal will take effect immediately (there is no need to send in a confirmation e-mail message). (If you have forgotton your password, see the ``Obtaining your Password'' section, below). 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). Unfortunately, the list server software currently does not provide a way for you to change the e-mail address used in a list subscription. This means that you will need to subscribe yourself from your new address and then unsubscribe yourself from the old address, using the normal subscribe and unsubscribe processes described above. 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, enter your address in the "sqr-users Subscribers" section of the sqr-users List Info page and click the "Edit Options" button. At the bottom of the resulting page, you will see a section titled "Your sqr-users Subscription Options". Change the "Set Digest Mode" option to "On", enter your subscription password in the box provided, and click the "Submit My Changes" button. (If you have forgotton your password, see the instructions below.) 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 unsubscribe or change your subscription options without your password. If you have forgotten your password, simply click the "Email My Password to Me" button on the Edit 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.) 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 in reply from other subscribers.) 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 Brio product and version number (see notes below) o Operating system 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's, so it's very important to mention whether you are using Brio'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 version number listed here is the one under which this copy of SQR was compiled, so you'll still need to include this infor- mation 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-admin@sqrug.org Thu Jan 1 01:16:17 2004 Subject: RE: [sqr-users] ORA-1004 or ORA-3113 Date: Thu, 1 Jan 2004 16:15:09 +1000 From: "Bruce Young" We use SQR 4.3.4 with PeopleSoft. I re-linked it against Oracle 9.2 before using it and have had no issues. PeopleSoft listed the relink as a required update for using oracle 9.2. The relink was done using sqrmake. hope this helps, Bruce -----Original Message----- From: George Jansen [mailto:GJANSEN@aflcio.org] Sent: Thursday, 1 January 2004 4:42 AM To: sqr-users@sqrug.org Subject: [sqr-users] ORA-1004 or ORA-3113 We have SQR 4.3.4 linked against Oracle 8.1.7 as our production SQR. When I try to run it against Oracle 9.2.0, I get one of two errors: ORA-01004: default username feature not supported; logon denied if I try to log in over a dispatched connection, ORA-03113: end-of-file on communication channel if I try to log in over a dedicated connection (no @db in my connectivity string, or with (Server=Dedicated) specified in my tnsnames.ora). With SQR 6.2 linked against Oracle 9.2.0, I can connect to 9.2 or 8.1.7 databases with no problem. This strongly suggests, of course, that I should quit worrying and run with 6.2; unfortunately I'm not ready to do that yet. Has anybody else run up against this particular problem with SQR 4.3.4 and Oracle 9.2? George Jansen _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 6 02:19:06 2004 From: "Sudeep Vaidya" Date: Tue, 6 Jan 2004 12:48:52 +0530 Subject: [sqr-users] Memory fault Error while Running SQR. Hi, I'm facing the following error when running a SQR report on Brio Portal. Can somebody give me a clue as to where to look for the problem.. kpir0014 execution failed. kgefec: fatal er/brio/portal/BrioPortal/server/JF_gbo314-d/tmp/JF_gbo314-d-3async-58/sqr_e xec.sh[12]: 20376 Memory fault I'm fetching data from database into an array, and printing it after performing certain calculations. Thanks in Advance, Sudeep _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 6 07:55:05 2004 Date: Tue, 6 Jan 2004 13:53:47 +0100 From: edwin.hommes@bluewin.ch Subject: [sqr-users] 20376 Memory Error Sudeep, Error 20376 is a Null Pointer Deference Error. Basically means that Unix encounters a NULL value in your Array, where it should contain either a blank or a zero. You may want to check your SQL statement that fills your array or work with a temporary table. Regards, Edwin >Hi, > >I'm facing the following error when running a SQR report on Brio Portal. >Can >somebody give me a clue as to where to look for the problem.. > > >kpir0014 execution failed. kgefec: fatal >er/brio/portal/BrioPortal/server/JF_gbo314-d/tmp/JF_gbo314-d-3async-58/sqr_e >xec.sh[12]: 20376 Memory fault > >I'm fetching data from database into an array, and printing it after >performing certain calculations. > >Thanks in Advance, > > >Sudeep _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 6 10:33:42 2004 From: Ray Ontko Date: Tue, 6 Jan 2004 10:32:10 -0500 Subject: Re: [sqr-users] Memory fault Error while Running SQR. Are you sure that SQR is failing? Did you modify start_JF_.sh to set JFdebug=true? If so, what's on line 12 of sqr_exec.sh? If it's the SQR program, then I suppose we can look deeper at the SQR. Ray On Tue, Jan 06, 2004 at 12:48:52PM +0530, Sudeep Vaidya wrote: > Hi, > > I'm facing the following error when running a SQR report on Brio Portal. Can > somebody give me a clue as to where to look for the problem.. > > > kpir0014 execution failed. kgefec: fatal > er/brio/portal/BrioPortal/server/JF_gbo314-d/tmp/JF_gbo314-d-3async-58/sqr_e > xec.sh[12]: 20376 Memory fault > > I'm fetching data from database into an array, and printing it after > performing certain calculations. > > Thanks in Advance, > > > Sudeep > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------------- Ray Ontko rayo@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788 Ray Ontko & Co. Software Consulting Services http://www.ontko.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 6 13:03:53 2004 Subject: RE: [sqr-users] Memory fault Error while Running SQR. Date: Tue, 6 Jan 2004 12:57:59 -0500 From: "Tom Cormier" This is a multi-part message in MIME format... ------_=_NextPart_001_01C3D47E.9F171044 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 SGksDQogDQpEb3VibGUgY2hlY2sgeW91ciBzdWJzY3JpcHRzIGFzIHdlbGwu ICBNYWtlIHN1cmUgeW91IGFyZSBub3QgcG9pbnRpbmcgdG8gb3V0LW9mLWJv dW5kIGFyZWFzIGluIHlvdXIgYXJyYXkgd2hpbGUgbG9hZGluZyBvciBwcmlu dGluZy4NCiANCi0tLXRvbWNvcm1pZXINCg0KCS0tLS0tT3JpZ2luYWwgTWVz c2FnZS0tLS0tIA0KCUZyb206IHNxci11c2Vycy1hZG1pbkBzcXJ1Zy5vcmcg b24gYmVoYWxmIG9mIFJheSBPbnRrbyANCglTZW50OiBUdWUgMS82LzIwMDQg MTA6MzIgQU0gDQoJVG86IHNxci11c2Vyc0BzcXJ1Zy5vcmcgDQoJQ2M6IA0K CVN1YmplY3Q6IFJlOiBbc3FyLXVzZXJzXSBNZW1vcnkgZmF1bHQgRXJyb3Ig d2hpbGUgUnVubmluZyBTUVIuDQoJDQoJDQoNCglBcmUgeW91IHN1cmUgdGhh dCBTUVIgaXMgZmFpbGluZz8gIERpZCB5b3UgbW9kaWZ5IHN0YXJ0X0pGXzxi bGFoPi5zaA0KCXRvIHNldCBKRmRlYnVnPXRydWU/ICBJZiBzbywgd2hhdCdz IG9uIGxpbmUgMTIgb2Ygc3FyX2V4ZWMuc2g/ICBJZg0KCWl0J3MgdGhlIFNR UiBwcm9ncmFtLCB0aGVuIEkgc3VwcG9zZSB3ZSBjYW4gbG9vayBkZWVwZXIg YXQgdGhlIFNRUi4NCgkNCglSYXkNCgkNCglPbiBUdWUsIEphbiAwNiwgMjAw NCBhdCAxMjo0ODo1MlBNICswNTMwLCBTdWRlZXAgVmFpZHlhIHdyb3RlOg0K CT4gSGksDQoJPg0KCT4gSSdtIGZhY2luZyB0aGUgZm9sbG93aW5nIGVycm9y IHdoZW4gcnVubmluZyBhIFNRUiByZXBvcnQgb24gQnJpbyBQb3J0YWwuIENh bg0KCT4gc29tZWJvZHkgZ2l2ZSBtZSBhIGNsdWUgYXMgdG8gd2hlcmUgdG8g bG9vayBmb3IgdGhlIHByb2JsZW0uLg0KCT4NCgk+DQoJPiBrcGlyMDAxNCBl eGVjdXRpb24gZmFpbGVkLiBrZ2VmZWM6IGZhdGFsDQoJPiBlci9icmlvL3Bv cnRhbC9CcmlvUG9ydGFsL3NlcnZlci9KRl9nYm8zMTQtZC90bXAvSkZfZ2Jv MzE0LWQtM2FzeW5jLTU4L3Nxcl9lDQoJPiB4ZWMuc2hbMTJdOiAyMDM3NiBN ZW1vcnkgZmF1bHQNCgk+DQoJPiBJJ20gZmV0Y2hpbmcgZGF0YSBmcm9tIGRh dGFiYXNlIGludG8gYW4gYXJyYXksIGFuZCBwcmludGluZyBpdCBhZnRlcg0K CT4gcGVyZm9ybWluZyBjZXJ0YWluIGNhbGN1bGF0aW9ucy4NCgk+DQoJPiBU aGFua3MgaW4gQWR2YW5jZSwNCgk+DQoJPg0KCT4gU3VkZWVwDQoJPg0KCT4N Cgk+IF9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fDQoJPiBzcXItdXNlcnMgbWFpbGluZyBsaXN0DQoJPiBzcXItdXNl cnNAc3FydWcub3JnDQoJPiBodHRwOi8vd3d3LnNxcnVnLm9yZy9tYWlsbWFu L2xpc3RpbmZvL3Nxci11c2Vycw0KCS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0NCglSYXkgT250a28gICByYXlvQG9udGtvLmNvbSAgIFBob25lIDEuNzY1 LjkzNS40MjgzICAgRmF4IDEuNzY1Ljk2Mi45Nzg4DQoJUmF5IE9udGtvICYg Q28uICAgU29mdHdhcmUgQ29uc3VsdGluZyBTZXJ2aWNlcyAgIGh0dHA6Ly93 d3cub250a28uY29tLw0KCQ0KCV9fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fDQoJc3FyLXVzZXJzIG1haWxpbmcgbGlz dA0KCXNxci11c2Vyc0BzcXJ1Zy5vcmcNCglodHRwOi8vd3d3LnNxcnVnLm9y Zy9tYWlsbWFuL2xpc3RpbmZvL3Nxci11c2Vycw0KCQ0KDQo= ------_=_NextPart_001_01C3D47E.9F171044 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/ms-tnef' MIME type. It has been automatically discarded before sending the message to the list. ------_=_NextPart_001_01C3D47E.9F171044-- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 6 22:15:09 2004 Date: Wed, 07 Jan 2004 14:12:34 +1100 From: "Ian Mills" Subject: [sqr-users] No Value returned from Sybase Stored procedure Hi all, I was wondering if anyone would be able to help me with this strange problem. I am trying to use a stored procedure running against a Sybase database and the output variable doesn't contain any value. Source code below. I have tested the stored procedure in a query analyser tool and it works okay. begin-procedure get_schedule($as_contract_number) declare-variable text $as_contract_number end-declare execute osp_sec_calcschedule $as_contract_number, $_gs_schedule out #debugt show ':' $_gs_schedule ':' end-procedure I use similar functionality in 2 other reports and the values are returned correctly. (shown below) execute osp_arrears_calcfields $as_lease $as_port $as_branch $as_prod $as_sub #ai_del1 out #ai_del2 out #ai_del3 out #ai_del4 out #ai_del5 out #af_arrears out I am running SQR v6.1.3 Any assistance will be appreciated. Regards, Ian Mills Systems Analyst ORIX Australia Corp Ltd _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 7 06:43:21 2004 Subject: Re: [sqr-users] No Value returned from Sybase Stored procedure From: "Richard C Spoth" Date: Wed, 7 Jan 2004 06:41:11 -0500 Ian, Try this. Where @INPUT_VARIALBE is verbatim to the variable in the SP. execute osp_sec_calcschedule @INPUT_VARIABLE = $as_contract_number INTO &schedule Let $_gs_schedule = &schedule #debugt show ':' $_gs_schedule ':' Rick Spoth "Ian Mills" Sent by: sqr-users-admin@sqrug.org 01/06/04 10:12 PM Please respond to sqr-users To: cc: Subject: [sqr-users] No Value returned from Sybase Stored procedure Hi all, I was wondering if anyone would be able to help me with this strange problem. I am trying to use a stored procedure running against a Sybase database and the output variable doesn't contain any value. Source code below. I have tested the stored procedure in a query analyser tool and it works okay. begin-procedure get_schedule($as_contract_number) declare-variable text $as_contract_number end-declare execute osp_sec_calcschedule $as_contract_number, $_gs_schedule out #debugt show ':' $_gs_schedule ':' end-procedure I use similar functionality in 2 other reports and the values are returned correctly. (shown below) execute osp_arrears_calcfields $as_lease $as_port $as_branch $as_prod $as_sub #ai_del1 out #ai_del2 out #ai_del3 out #ai_del4 out #ai_del5 out #af_arrears out I am running SQR v6.1.3 Any assistance will be appreciated. Regards, Ian Mills Systems Analyst ORIX Australia Corp Ltd _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users CONFIDENTIALITY NOTICE: This email message and any attachments are for the sole use of the intended recipient(s) and may contain proprietary, confidential, trade secret or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited and may be a violation of law. If you are not the intended recipient or a person responsible for delivering this message to an intended recipient, please contact the sender by reply email and destroy all copies of the original message. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 7 06:50:14 2004 Subject: Re: [sqr-users] No Value returned from Sybase Stored procedure From: "Richard C Spoth" Date: Wed, 7 Jan 2004 06:49:54 -0500 I forgot to mention you also need to define the data type for &schedule. It should be the same as the value in the SELECT statement of the SP. execute osp_sec_calcschedule @INPUT_VARIABLE = $as_contract_number INTO &schedule char(8) Rick Spoth "Richard C Spoth" Sent by: sqr-users-admin@sqrug.org 01/07/04 06:41 AM Please respond to sqr-users To: sqr-users@sqrug.org cc: Subject: Re: [sqr-users] No Value returned from Sybase Stored procedure Ian, Try this. Where @INPUT_VARIALBE is verbatim to the variable in the SP. execute osp_sec_calcschedule @INPUT_VARIABLE = $as_contract_number INTO &schedule Let $_gs_schedule = &schedule #debugt show ':' $_gs_schedule ':' Rick Spoth "Ian Mills" Sent by: sqr-users-admin@sqrug.org 01/06/04 10:12 PM Please respond to sqr-users To: cc: Subject: [sqr-users] No Value returned from Sybase Stored procedure Hi all, I was wondering if anyone would be able to help me with this strange problem. I am trying to use a stored procedure running against a Sybase database and the output variable doesn't contain any value. Source code below. I have tested the stored procedure in a query analyser tool and it works okay. begin-procedure get_schedule($as_contract_number) declare-variable text $as_contract_number end-declare execute osp_sec_calcschedule $as_contract_number, $_gs_schedule out #debugt show ':' $_gs_schedule ':' end-procedure I use similar functionality in 2 other reports and the values are returned correctly. (shown below) execute osp_arrears_calcfields $as_lease $as_port $as_branch $as_prod $as_sub #ai_del1 out #ai_del2 out #ai_del3 out #ai_del4 out #ai_del5 out #af_arrears out I am running SQR v6.1.3 Any assistance will be appreciated. Regards, Ian Mills Systems Analyst ORIX Australia Corp Ltd _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users CONFIDENTIALITY NOTICE: This email message and any attachments are for the sole use of the intended recipient(s) and may contain proprietary, confidential, trade secret or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited and may be a violation of law. If you are not the intended recipient or a person responsible for delivering this message to an intended recipient, please contact the sender by reply email and destroy all copies of the original message. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 7 17:18:47 2004 Date: Thu, 08 Jan 2004 09:15:42 +1100 From: "Ian Mills" Subject: Re: [sqr-users] No Value returned from Sybase Stored procedure Rick, Thanks for your assistance. I tried to do as you suggested and got the following error (SQR 5528) Sybase CT_RESULTS error in cursor 10: (201) Procedure osp_sec_calcschedule expects parameter @schedule_out, which was not supplied. So I added "@schedule_out = $ls_temp" and got the following error (SQR 5508) The number of EXECUTE...INTO &columns does not match the procedure. If I take away the INTO part the report doesn't crash but the stored procedure still returns no data. Then I changed my thinking. I knew the stored procedure was working, just not with the execute command. I Created a single column temporary table to store the value. Then ran the stored procedure within a BEGIN-SQL block and inserted the returned value into the temporary table. Then used a BEGIN-SELECT block to get the value from the stored procedure. Below is the final procedure that now works. begin-procedure get_schedule($as_contract_number) declare-variable text $as_contract_number end-declare begin-sql delete from [$_gs_table_name] DECLARE @structure varchar(30) exec osp_sec_calcschedule $as_contract_number, @structure out insert INTO [$_gs_table_name] values(@structure) end-sql begin-select structure &structure=char let $_gs_schedule = &structure from [$_gs_table_name] end-select end-procedure Hopefully others can use this if they ever encounter the same problem. Regards, Ian Mills Systems Analyst ORIX Australia Corp Ltd >>> Spoth.Richard@healthnow.org 07/01/2004 10:49:54 pm >>> I forgot to mention you also need to define the data type for &schedule. It should be the same as the value in the SELECT statement of the SP. execute osp_sec_calcschedule @INPUT_VARIABLE = $as_contract_number INTO &schedule char(8) Rick Spoth "Richard C Spoth" Sent by: sqr-users-admin@sqrug.org 01/07/04 06:41 AM Please respond to sqr-users To: sqr-users@sqrug.org cc: Subject: Re: [sqr-users] No Value returned from Sybase Stored procedure Ian, Try this. Where @INPUT_VARIALBE is verbatim to the variable in the SP. execute osp_sec_calcschedule @INPUT_VARIABLE = $as_contract_number INTO &schedule Let $_gs_schedule = &schedule #debugt show ':' $_gs_schedule ':' Rick Spoth "Ian Mills" Sent by: sqr-users-admin@sqrug.org 01/06/04 10:12 PM Please respond to sqr-users To: cc: Subject: [sqr-users] No Value returned from Sybase Stored procedure Hi all, I was wondering if anyone would be able to help me with this strange problem. I am trying to use a stored procedure running against a Sybase database and the output variable doesn't contain any value. Source code below. I have tested the stored procedure in a query analyser tool and it works okay. begin-procedure get_schedule($as_contract_number) declare-variable text $as_contract_number end-declare execute osp_sec_calcschedule $as_contract_number, $_gs_schedule out #debugt show ':' $_gs_schedule ':' end-procedure I use similar functionality in 2 other reports and the values are returned correctly. (shown below) execute osp_arrears_calcfields $as_lease $as_port $as_branch $as_prod $as_sub #ai_del1 out #ai_del2 out #ai_del3 out #ai_del4 out #ai_del5 out #af_arrears out I am running SQR v6.1.3 Any assistance will be appreciated. Regards, Ian Mills Systems Analyst ORIX Australia Corp Ltd _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users CONFIDENTIALITY NOTICE: This email message and any attachments are for the sole use of the intended recipient(s) and may contain proprietary, confidential, trade secret or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited and may be a violation of law. If you are not the intended recipient or a person responsible for delivering this message to an intended recipient, please contact the sender by reply email and destroy all copies of the original message. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 8 08:22:57 2004 Subject: Re: [sqr-users] No Value returned from Sybase Stored procedure From: "Richard C Spoth" Date: Thu, 8 Jan 2004 08:21:44 -0500 That will work but it seems more like a work around. The use of "INTO" is for SP that return the values like a query. You can get the syntax I originally supplied to work by modifying the SP to return the value as part of a SELECT instead for an output variable. Which is what I assumed the SP was structured like. OR To use the SP as is try the following: execute osp_sec_calcschedule @INPUT_PUT = $as_contract_number, @schedule_out = $_gs_schedule OUTPUT You basically need to flag each "OUTPUT" variable when executing in SQR a SP with output variables. Rick Spoth "Ian Mills" Sent by: sqr-users-admin@sqrug.org 01/07/04 05:15 PM Please respond to sqr-users To: cc: Subject: Re: [sqr-users] No Value returned from Sybase Stored procedure Rick, Thanks for your assistance. I tried to do as you suggested and got the following error (SQR 5528) Sybase CT_RESULTS error in cursor 10: (201) Procedure osp_sec_calcschedule expects parameter @schedule_out, which was not supplied. So I added "@schedule_out = $ls_temp" and got the following error (SQR 5508) The number of EXECUTE...INTO &columns does not match the procedure. If I take away the INTO part the report doesn't crash but the stored procedure still returns no data. Then I changed my thinking. I knew the stored procedure was working, just not with the execute command. I Created a single column temporary table to store the value. Then ran the stored procedure within a BEGIN-SQL block and inserted the returned value into the temporary table. Then used a BEGIN-SELECT block to get the value from the stored procedure. Below is the final procedure that now works. begin-procedure get_schedule($as_contract_number) declare-variable text $as_contract_number end-declare begin-sql delete from [$_gs_table_name] DECLARE @structure varchar(30) exec osp_sec_calcschedule $as_contract_number, @structure out insert INTO [$_gs_table_name] values(@structure) end-sql begin-select structure &structure=char let $_gs_schedule = &structure from [$_gs_table_name] end-select end-procedure Hopefully others can use this if they ever encounter the same problem. Regards, Ian Mills Systems Analyst ORIX Australia Corp Ltd >>> Spoth.Richard@healthnow.org 07/01/2004 10:49:54 pm >>> I forgot to mention you also need to define the data type for &schedule. It should be the same as the value in the SELECT statement of the SP. execute osp_sec_calcschedule @INPUT_VARIABLE = $as_contract_number INTO &schedule char(8) Rick Spoth "Richard C Spoth" Sent by: sqr-users-admin@sqrug.org 01/07/04 06:41 AM Please respond to sqr-users To: sqr-users@sqrug.org cc: Subject: Re: [sqr-users] No Value returned from Sybase Stored procedure Ian, Try this. Where @INPUT_VARIALBE is verbatim to the variable in the SP. execute osp_sec_calcschedule @INPUT_VARIABLE = $as_contract_number INTO &schedule Let $_gs_schedule = &schedule #debugt show ':' $_gs_schedule ':' Rick Spoth "Ian Mills" Sent by: sqr-users-admin@sqrug.org 01/06/04 10:12 PM Please respond to sqr-users To: cc: Subject: [sqr-users] No Value returned from Sybase Stored procedure Hi all, I was wondering if anyone would be able to help me with this strange problem. I am trying to use a stored procedure running against a Sybase database and the output variable doesn't contain any value. Source code below. I have tested the stored procedure in a query analyser tool and it works okay. begin-procedure get_schedule($as_contract_number) declare-variable text $as_contract_number end-declare execute osp_sec_calcschedule $as_contract_number, $_gs_schedule out #debugt show ':' $_gs_schedule ':' end-procedure I use similar functionality in 2 other reports and the values are returned correctly. (shown below) execute osp_arrears_calcfields $as_lease $as_port $as_branch $as_prod $as_sub #ai_del1 out #ai_del2 out #ai_del3 out #ai_del4 out #ai_del5 out #af_arrears out I am running SQR v6.1.3 Any assistance will be appreciated. Regards, Ian Mills Systems Analyst ORIX Australia Corp Ltd _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users CONFIDENTIALITY NOTICE: This email message and any attachments are for the sole use of the intended recipient(s) and may contain proprietary, confidential, trade secret or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited and may be a violation of law. If you are not the intended recipient or a person responsible for delivering this message to an intended recipient, please contact the sender by reply email and destroy all copies of the original message. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Thu Jan 8 08:25:07 2004 From: "Sudeep Vaidya" Subject: FW: [sqr-users] 20376 Memory Error Date: Thu, 8 Jan 2004 18:55:05 +0530 Hi, This is regarding the Memory Fault Error which I had asked earlier about.The number 20376 which the error throws is not the error number because this number changes everytime I run the report.So I suppose that this is the Unix Id for the job.As for the other solutions suggested for the problem, on line 12 of the file sqr_exec.sh, we have the following SQRDIR="/brio/portal/ora/bin" export SQRDIR NLS_LANG='american_america.UTF8" export NLS_LANG if [ -n "$PATH" ]; then PATH=$SQRDIR":"$PATH else PATH=$SQRDIR so it has got nothing to do with the memory fault. This is not the problem with the array also because the array is getting cleared after all the lines for a particular order number are populated. Can anyone suggest any other cause for the same error. thanx for the cooperation in advance. regards, sudeep. -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of edwin.hommes@bluewin.ch Sent: Tuesday, January 06, 2004 6:24 PM To: sqr-users@sqrug.org Subject: [sqr-users] 20376 Memory Error Sudeep, Error 20376 is a Null Pointer Deference Error. Basically means that Unix encounters a NULL value in your Array, where it should contain either a blank or a zero. You may want to check your SQL statement that fills your array or work with a temporary table. Regards, Edwin >Hi, > >I'm facing the following error when running a SQR report on Brio Portal. >Can >somebody give me a clue as to where to look for the problem.. > > >kpir0014 execution failed. kgefec: fatal >er/brio/portal/BrioPortal/server/JF_gbo314-d/tmp/JF_gbo314-d-3async-58/sqr_ e >xec.sh[12]: 20376 Memory fault > >I'm fetching data from database into an array, and printing it after >performing certain calculations. > >Thanks in Advance, > > >Sudeep _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 9 11:25:25 2004 Date: Fri, 9 Jan 2004 11:21:27 -0500 From: "Vito Campanelli" Subject: [sqr-users] JSP and SQR Hi, I am very new to SQR, so let me apologize in advance. I wanted to know if anybody had any experience with JSP and SQR. Also, I wanted to know, if it was possible to have a JSP act as a parameter page and then invoke SQR to run the report and display it in either HTML, PDF or excel. Is there any example? Thanks Vito _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 9 11:37:07 2004 Date: Fri, 09 Jan 2004 10:36:23 -0600 From: Bob.Melosi@edwardjones.com Subject: Re: [sqr-users] JSP and SQR I've got experience with both. (6 with SQR and 3 with JSP). Where I work we do a lot of display pages in our PeopleSoft self-service applications so it kind of acts like a SQR in a web page. (we also do updates). This really isn't the forum for JSPs so you can email me directly and let me know what you are doing and maybe I can help. > Hi, > > I am very new to SQR, so let me apologize in advance. > I wanted to know if anybody had any experience with JSP and SQR. > Also, I wanted to know, if it was possible to have a JSP act as a > parameter page and then invoke SQR to run the report and display it in > either HTML, PDF or excel. Is there any example? > > Thanks > Vito > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users Bob Melosi x5-8427 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 9 12:57:12 2004 Date: Fri, 9 Jan 2004 12:56:23 -0500 From: "Wes Williams" Subject: [sqr-users] Report run from editor new-report, pdf files ok, run from command-line files are corrupted why? Hi I am at a loss to explain why I see corrupted pdf's running from a command-line and from the design editor everything works perfect. Sqr 6.13 (Brio report builder 6.13) Any ideas? Thx Wes Williams !******************************************************************** ! Create separate pdf outputs for each room inspected * !******************************************************************** begin-procedure create_PDF_reports let $report = &room||'.pdf' new-report $report use-report one end-procedure _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 9 13:53:08 2004 From: Lori.Puntasecca@frx.com Subject: RE: [sqr-users] Report run from editor new-report, pdf files ok, run from command-line files are corrupted why? Date: Fri, 9 Jan 2004 13:49:41 -0500 Are you running in UNIX? If yes, you need a -PRINTER:PD flag (after your database connectivity) in the command line to create PDFs. Lori A Puntasecca Forest Laboratories, Inc. MIS- Data Tools Team email: lori.puntasecca@frx.com -----Original Message----- From: Wes Williams [mailto:wes@Princeton.EDU] Sent: Friday, January 09, 2004 12:56 PM To: sqr-users@sqrug.org Subject: [sqr-users] Report run from editor new-report, pdf files ok, run from command-line files are corrupted why? Hi I am at a loss to explain why I see corrupted pdf's running from a command-line and from the design editor everything works perfect. Sqr 6.13 (Brio report builder 6.13) Any ideas? Thx Wes Williams !******************************************************************** ! Create separate pdf outputs for each room inspected * !******************************************************************** begin-procedure create_PDF_reports let $report = &room||'.pdf' new-report $report use-report one end-procedure _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ____________________________________________________________________ This e-mail and its attachments may contain Forest Laboratories, Inc. proprietary information that is privileged, confidential or subject to copyright belonging to Forest Laboratories, Inc. This e-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this e-mail, or the employee or agent responsible for delivering this e-mail to the intended recipient, you are hereby notified that any dissemination, distribution, copying or action taken in relation to the contents of and attachments to this e-mail is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify the sender immediately and permanently delete the original and any copy of this e-mail and any printout. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 9 14:12:14 2004 Date: Fri, 9 Jan 2004 14:11:39 -0500 From: "Wes Williams" Subject: [sqr-users] Good files now, but no attachments from command-line, but works from editor. Thanks , Looks like that is true for windows too. New issue I am using Blat and code Tony Delia created for e-mailing. Again runs fine from editor PDF files are attached to mail. From the command-line no attachments are in mail, but now with the -PRINTER:PD flag good pdf's are being created. I guess I may have to put all the address and rooms into an array and do a pass as the last step. Doesn't make sense though. Thx Wes Williams -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org] On Behalf Of Lori.Puntasecca@frx.com Sent: Friday, January 09, 2004 1:50 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Report run from editor new-report, pdf files ok, run from command-line files are corrupted why? Are you running in UNIX? If yes, you need a -PRINTER:PD flag (after your database connectivity) in the command line to create PDFs. Lori A Puntasecca Forest Laboratories, Inc. MIS- Data Tools Team email: lori.puntasecca@frx.com -----Original Message----- From: Wes Williams [mailto:wes@Princeton.EDU] Sent: Friday, January 09, 2004 12:56 PM To: sqr-users@sqrug.org Subject: [sqr-users] Report run from editor new-report, pdf files ok, run from command-line files are corrupted why? Hi I am at a loss to explain why I see corrupted pdf's running from a command-line and from the design editor everything works perfect. Sqr 6.13 (Brio report builder 6.13) Any ideas? Thx Wes Williams !******************************************************************** ! Create separate pdf outputs for each room inspected * !******************************************************************** begin-procedure create_PDF_reports let $report = &room||'.pdf' new-report $report use-report one end-procedure _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ____________________________________________________________________ This e-mail and its attachments may contain Forest Laboratories, Inc. proprietary information that is privileged, confidential or subject to copyright belonging to Forest Laboratories, Inc. This e-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this e-mail, or the employee or agent responsible for delivering this e-mail to the intended recipient, you are hereby notified that any dissemination, distribution, copying or action taken in relation to the contents of and attachments to this e-mail is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify the sender immediately and permanently delete the original and any copy of this e-mail and any printout. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 13 09:28:15 2004 From: AmiPatel@loews.com Date: Tue, 13 Jan 2004 09:25:41 -0500 Subject: [sqr-users] Multiple Reports - one to printer and one to specific location. Hello , I want to create 2 reports out of my SQR program , one should go to printer or file ( depending upon whatever is selected from peoplesoft PANEL) and other should go to specific file location. Contents in both reports are not same. I tried NEW-REPORT and also tried USE-REPORT . Now trying both in same program , lets see how it goes....... Please give your suggestions. Please Help.... Thanks AMI PATEL _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 13 09:44:08 2004 Subject: RE: [sqr-users] Multiple Reports - one to printer and one to specific location. Date: Tue, 13 Jan 2004 08:43:27 -0600 From: "Knapp, Richard" My solution to this is to create a print file with write commands, close the file and then send the operating system command (via call system) to print the file. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of AmiPatel@loews.com Sent: Tuesday, January 13, 2004 8:26 AM To: sqr-users@sqrug.org Subject: [sqr-users] Multiple Reports - one to printer and one to specific location. Hello , I want to create 2 reports out of my SQR program , one should go to printer or file ( depending upon whatever is selected from peoplesoft PANEL) and other should go to specific file location. Contents in both reports are not same. I tried NEW-REPORT and also tried USE-REPORT . Now trying both in same program , lets see how it goes....... Please give your suggestions. Please Help.... Thanks AMI PATEL _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 13 12:20:18 2004 Date: Tue, 13 Jan 2004 12:18:26 -0500 From: "Maria Ravanis" Subject: [sqr-users] Decimal Issue Can someone tell me how I can get a numeric value to display 8 decimal positions? It appears to be defaulting to 6. I have tried using this code: begin-setup declare-variable default-numeric=decimal decimal = #NEWPERCENT(11) end-declare END-SETUP But I keep getting the following error message: Error on line 37: (SQR 7202) Variable (#newpercent) is not a decimal variable and cannot have a precision associated with it. decimal = #NEWPERCENT(11) Errors were found in the program file. SQR for PeopleSoft: Program Aborting. Thanks! Maria _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 13 13:02:38 2004 From: Peter Burton Subject: RE: [sqr-users] Decimal Issue Date: Tue, 13 Jan 2004 13:01:22 -0500 This is a multi-part message in MIME format... ------_=_NextPart_000_01C3D9FF.40ED7EA0 Content-Type: text/plain Maria, You must specify an edit mask. Peter > -----Original Message----- > From: sqr-users-admin@sqrug.org@HYPERION On Behalf Of "Maria > Ravanis" > Sent: Tuesday, January 13, 2004 12:18 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] Decimal Issue > > Can someone tell me how I can get a numeric value to display 8 decimal > positions? It appears to be defaulting to 6. I have tried using this > code: > > > > begin-setup > > declare-variable > > default-numeric=decimal > > decimal = #NEWPERCENT(11) > > end-declare > > END-SETUP > > > > But I keep getting the following error message: > > Error on line 37: > (SQR 7202) Variable (#newpercent) is not a decimal variable and > cannot > have a precision associated with it. > decimal = #NEWPERCENT(11) > > Errors were found in the program file. > > SQR for PeopleSoft: Program Aborting. > > > Thanks! Maria > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > ------_=_NextPart_000_01C3D9FF.40ED7EA0 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/ms-tnef' MIME type. It has been automatically discarded before sending the message to the list. ------_=_NextPart_000_01C3D9FF.40ED7EA0-- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 13 14:57:17 2004 Subject: RE: [sqr-users] Multiple Reports - one to printer and one to specific location. From: AmiPatel@loews.com Date: Tue, 13 Jan 2004 14:56:16 -0500 THANKS ITS WORKING ... I am preparing .lis only and then redirecting it to lpt1 with system call command.....Thanks ap "Knapp, Richard" edu> cc: Sent by: Subject: RE: [sqr-users] Multiple Reports - one to printer sqr-users-admin@s and one to specific location. qrug.org 01/13/2004 09:43 AM Please respond to sqr-users My solution to this is to create a print file with write commands, close the file and then send the operating system command (via call system) to print the file. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of AmiPatel@loews.com Sent: Tuesday, January 13, 2004 8:26 AM To: sqr-users@sqrug.org Subject: [sqr-users] Multiple Reports - one to printer and one to specific location. Hello , I want to create 2 reports out of my SQR program , one should go to printer or file ( depending upon whatever is selected from peoplesoft PANEL) and other should go to specific file location. Contents in both reports are not same. I tried NEW-REPORT and also tried USE-REPORT . Now trying both in same program , lets see how it goes....... Please give your suggestions. Please Help.... Thanks AMI PATEL _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Tue Jan 13 17:39:58 2004 Date: Tue, 13 Jan 2004 17:38:28 -0500 From: Matt Rogish Subject: [sqr-users] Having trouble with negative line positioning Hi all, I have a list of donations with attached user name records that I'm grabbing in one query, so the output looks like: $123,555 Matt Cash $12,000,000 Bob Cash $12,000 Joe Credit Card $14,000 Happy Credit Card $15,000 Gilmore Credit Card etc. *Note the order by is type (cash, credit card, etc.) and then dollar amount. What I'd like to do is add the multi-line (it's from a DBMS table) description of the type to the output in a third column. So my sample output would look something like: $123,555 Matt Cash Cash is usually collected on Fridays $12,000,000 Bob Cash and is delivered to the bank in an armored car. Note that the driver is armed with a bazooka, so attempting a robbery would be ill-advised. $12,000 Joe Credit Card Credit Card payments are handled instantly $14,000 Happy Credit Card via our supplier. $15,000 Gilmore Credit Card I was thinking I could do something like this: let #num_in_type = 0 begin-select dollar_amount name type on-break print=never after=get_type_description add 1 to #num_in_type from foo ... end-select procedure get_type_description position (-#num_in_type ) let #num_in_type = 0 end-procedure There are two things wrong with this. First off, I can't use negative positioning with any sort of a variable. If I use position (-#num_in_type) I get: (SQR 4501) Use '+' and negate variable for reverse relative placement. -#num_in_type Ok, so I changed it to be: let #num_in_type = #num_in_type * -1 position (#num_in_type) Which, unsurprisingly, does not work either: (SQR 4503) Fixed line placement #num_in_type must be > 0. Use relative positioning, (+#line,10,0). Is there no way to dynamically use position with a negative variable? I can do position (-1) just fine! Secondly, if the description for 'cash' is more rows than the number of cash items, then it bleeds into the description for credit card, so I'd need a way to create whitespace in between cash and credit card as shown in the example. I can't seem to make this work. Any ideas!? Thanks, -- Matt Rogish - rogishmn@muohio.edu Programmer Advancement Services Miami University 513.529.1420 Do not meddle in the affairs of SQR, for it is subtle and quick to anger! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 13 17:52:06 2004 From: Ray Ontko Date: Tue, 13 Jan 2004 17:51:31 -0500 Subject: Re: [sqr-users] Having trouble with negative line positioning Matt, Use this: let #num_in_type = #num_in_type * -1 position (+#num_in_type) Also, you may be interested in the KEEP-TOP modifier for PRINT WRAP. Ray On Tue, Jan 13, 2004 at 05:38:28PM -0500, Matt Rogish wrote: > Hi all, > > I have a list of donations with attached user name records that I'm > grabbing in one query, so the output looks like: > $123,555 Matt Cash > $12,000,000 Bob Cash > $12,000 Joe Credit Card > $14,000 Happy Credit Card > $15,000 Gilmore Credit Card > etc. > *Note the order by is type (cash, credit card, etc.) and then dollar amount. > > What I'd like to do is add the multi-line (it's from a DBMS table) > description of the type to the output in a third column. So my sample > output would look something like: > $123,555 Matt Cash Cash is usually collected on Fridays > $12,000,000 Bob Cash and is delivered to the bank in an > armored car. Note that the driver is > armed with a bazooka, > so attempting a robbery would be > ill-advised. > $12,000 Joe Credit Card Credit Card payments are handled instantly > $14,000 Happy Credit Card via our supplier. > $15,000 Gilmore Credit Card > > I was thinking I could do something like this: > > let #num_in_type = 0 > > begin-select > dollar_amount > name > type on-break print=never after=get_type_description > > add 1 to #num_in_type > > from foo > ... > end-select > > procedure get_type_description > > position (-#num_in_type ) > let #num_in_type = 0 > > end-procedure > > There are two things wrong with this. First off, I can't use negative > positioning with any sort of a variable. If I use position (-#num_in_type) > I get: > (SQR 4501) Use '+' and negate variable for reverse relative placement. > -#num_in_type > > Ok, so I changed it to be: > let #num_in_type = #num_in_type * -1 > position (#num_in_type) > > Which, unsurprisingly, does not work either: > (SQR 4503) Fixed line placement #num_in_type must be > 0. Use relative > positioning, (+#line,10,0). > > Is there no way to dynamically use position with a negative variable? I > can do position (-1) just fine! > > Secondly, if the description for 'cash' is more rows than the number of > cash items, then it bleeds into the description for credit card, so I'd > need a way to create whitespace in between cash and credit card as shown in > the example. I can't seem to make this work. Any ideas!? > > > Thanks, > > -- > Matt Rogish - rogishmn@muohio.edu > Programmer > Advancement Services > Miami University > 513.529.1420 > > Do not meddle in the affairs of SQR, > for it is subtle and quick to anger! > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------------- Ray Ontko rayo@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788 Ray Ontko & Co. Software Consulting Services http://www.ontko.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 14 07:54:57 2004 Date: Wed, 14 Jan 2004 07:53:24 -0500 From: Matt Rogish Subject: Re: [sqr-users] Having trouble with negative line positioning Ray, Thanks for the reply -- it works! The only problem I have now is when I have so many rows that it splits over a page: (SQR 5402) String cannot be placed on page: -- placement specified is out of range. (-24,0,0) The line number it specifies is the "position (+#num_in_type)". So obviously the text needs to start on the previous page, but I can't find anything like 'previous-page' in the docs. I think I might be sunk and have to include it later on in the report as a legend or a footnote, although we like the idea of having it off to the right. >From: Ray Ontko >Date: Tue, 13 Jan 2004 17:51:31 -0500 >To: sqr-users@sqrug.org >Subject: Re: [sqr-users] Having trouble with negative line positioning > >Matt, > >Use this: > let #num_in_type = #num_in_type * -1 > position (+#num_in_type) > >Also, you may be interested in the KEEP-TOP modifier for PRINT WRAP. > >Ray Thanks, -- Matt Rogish - rogishmn@muohio.edu Programmer Advancement Services Miami University 513.529.1420 Do not meddle in the affairs of SQR, for it is subtle and quick to anger! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 14 08:30:13 2004 From: Ray Ontko Date: Wed, 14 Jan 2004 08:29:00 -0500 Subject: Re: [sqr-users] Having trouble with negative line positioning Matt, For that you'll want to use a function called wrapdepth() to determine how many lines the wrap text will require before you attempt to print it. You may also wish to write a procedure called wrapsplit() that splits the wrap text into two pieces: what will fit in a specified depth, and what must be deferred to the next page (or pages). Ray On Wed, Jan 14, 2004 at 07:53:24AM -0500, Matt Rogish wrote: > Ray, > > Thanks for the reply -- it works! > > The only problem I have now is when I have so many rows that it splits over > a page: > (SQR 5402) String cannot be placed on page: > -- placement specified is out of range. (-24,0,0) > > The line number it specifies is the "position (+#num_in_type)". > > So obviously the text needs to start on the previous page, but I can't find > anything like 'previous-page' in the docs. I think I might be sunk and > have to include it later on in the report as a legend or a footnote, > although we like the idea of having it off to the right. > > >From: Ray Ontko > >Date: Tue, 13 Jan 2004 17:51:31 -0500 > >To: sqr-users@sqrug.org > >Subject: Re: [sqr-users] Having trouble with negative line positioning > > > >Matt, > > > >Use this: > > let #num_in_type = #num_in_type * -1 > > position (+#num_in_type) > > > >Also, you may be interested in the KEEP-TOP modifier for PRINT WRAP. > > > >Ray > > Thanks, > > -- > Matt Rogish - rogishmn@muohio.edu > Programmer > Advancement Services > Miami University > 513.529.1420 > > Do not meddle in the affairs of SQR, > for it is subtle and quick to anger! > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------------- Ray Ontko rayo@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788 Ray Ontko & Co. Software Consulting Services http://www.ontko.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 14 13:24:42 2004 From: AmiPatel@loews.com Date: Wed, 14 Jan 2004 13:22:23 -0500 Subject: [sqr-users] SPF file question I am creating SPF file with -KEEP flag. but for some reason it is giving me all junk in SPF file. Its not formatted and readable. .LIS file is OK . How can somebody print SPF file? and what exactly we use it for? AMI PATEL _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 14 13:32:11 2004 Subject: RE: [sqr-users] Multiple Reports - one to printer and one to specific location. From: AmiPatel@loews.com Date: Wed, 14 Jan 2004 13:31:02 -0500 Thank you Richard , It looks like your idea will work. I tried your idea but with .LIS reports. I created 2 .lis reports and send one report to printer with CALL command at the end of report, but in that case it is printing report from previous run , because current reports is not ready yet I guess. Is that anything we can do to overcome this problem ....? As last option I will write to PRN files , close it and print using CALL . I am not sure that you can print PRN file to different printer without re-formatting it again or not... ? I am trying it out but if you know please help..... Thanks My solution to this is to create a print file with write commands, close the file and then send the operating system command (via call system) to print the file. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of AmiPatel@loews.com Sent: Tuesday, January 13, 2004 8:26 AM To: sqr-users@sqrug.org Subject: [sqr-users] Multiple Reports - one to printer and one to specific location. Hello , I want to create 2 reports out of my SQR program , one should go to printer or file ( depending upon whatever is selected from peoplesoft PANEL) and other should go to specific file location. Contents in both reports are not same. I tried NEW-REPORT and also tried USE-REPORT . Now trying both in same program , lets see how it goes....... Please give your suggestions. Please Help.... Thanks AMI PATEL _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Wed Jan 14 13:40:16 2004 Date: Wed, 14 Jan 2004 13:39:12 -0500 From: "Larry Roux" Subject: Re: [sqr-users] SPF file question You have to use the SPF viewer to read it (supplied with your SQR installation. Look for SQRVW.exe. The SPF file shows the formatted output where the Lis file is the raw data with the printer codes etc thrown in. ****************************** Larry Roux Syracuse University lroux@syr.edu ******************************* >>> AmiPatel@loews.com 01/14/04 01:22PM >>> I am creating SPF file with -KEEP flag. but for some reason it is giving me all junk in SPF file. Its not formatted and readable. .LIS file is OK . How can somebody print SPF file? and what exactly we use it for? AMI PATEL _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 14 14:25:26 2004 Subject: RE: [sqr-users] Multiple Reports - one to printer and one to specific location. Date: Wed, 14 Jan 2004 13:24:24 -0600 From: "Knapp, Richard" I would name the print files something like xxxxx.txt so as not to get confused with the .lis files SQR is producing. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of AmiPatel@loews.com Sent: Wednesday, January 14, 2004 12:31 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Multiple Reports - one to printer and one to specific location. Thank you Richard , It looks like your idea will work. I tried your idea but with .LIS reports. I created 2 .lis reports and send one report to printer with CALL command at the end of report, but in that case it is printing report from previous run , because current reports is not ready yet I guess. Is that anything we can do to overcome this problem ....? As last option I will write to PRN files , close it and print using CALL . I am not sure that you can print PRN file to different printer without re-formatting it again or not... ? I am trying it out but if you know please help..... Thanks My solution to this is to create a print file with write commands, close the file and then send the operating system command (via call system) to print the file. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of AmiPatel@loews.com Sent: Tuesday, January 13, 2004 8:26 AM To: sqr-users@sqrug.org Subject: [sqr-users] Multiple Reports - one to printer and one to specific location. Hello , I want to create 2 reports out of my SQR program , one should go to printer or file ( depending upon whatever is selected from peoplesoft PANEL) and other should go to specific file location. Contents in both reports are not same. I tried NEW-REPORT and also tried USE-REPORT . Now trying both in same program , lets see how it goes....... Please give your suggestions. Please Help.... Thanks AMI PATEL _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Wed Jan 14 22:44:00 2004 Subject: RE: [sqr-users] SPF file question Date: Thu, 15 Jan 2004 11:41:28 +0800 From: v.prabhakaran@accenture.com This is a multi-part message in MIME format... ------_=_NextPart_001_01C3DB19.75483BB1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Hi, =20 We can publish an spf file by mentioning different output types that we req= uired. I mean, if our requirement is to generate pdf out, csv output only,= while publishing an spf file, we can mention true for pdf and csv (refer = one api to loadspfset) only and we do not need to generate and publish the = pdf and csv separately. =20 The above way of publishing the spf and the users can view the brio portal = page for this report with the required output type ... meaning... in the re= ports page.. will show the output line with pdf and csv only.=20=20 =20 Does this answer your q? =20 cheers prabha =20 =20 -----Original Message-----=20 From: sqr-users-admin@sqrug.org on behalf of AmiPatel@loews.com=20 Sent: Thu 1/15/2004 2:22 AM=20 To: sqr-users@sqrug.org=20 Cc:=20 Subject: [sqr-users] SPF file question =09 =09 I am creating SPF file with -KEEP flag. but for some reason it is giving me all junk in SPF file. Its not formatted and readable. .LIS file is OK . How can somebody print SPF file? and what exactly we use it for? =09 AMI PATEL =09 =09 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users =09 This message is for the designated recipient only and may contain privilege= d, proprietary, or otherwise private information. If you have received it = in error, please notify the sender immediately and delete the original. An= y other use of the email by you is prohibited. ------_=_NextPart_001_01C3DB19.75483BB1 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/ms-tnef' MIME type. It has been automatically discarded before sending the message to the list. ------_=_NextPart_001_01C3DB19.75483BB1-- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 15 09:04:58 2004 Date: Thu, 15 Jan 2004 09:03:27 -0500 From: "White, Denise" Subject: [sqr-users] RE: Multiple Reports - one to printer and one to specific I would try issuing a NEW-REPORT just before your CALL command. When you are writing a report, it actually writes an .spf file and then when the program ends, converts it to a .lis file and deletes the .spf (unless you use a flag to keep it). Therefore, the .lis file is not available until the program has completed. When you use a NEW-REPORT, it immediately closes the current report and creates the .lis file for it, making it available before the end of the program. Since you will not be writing anything to the new report, you do not need to specify a name for it. HTH, Denise M. White Sr. Software Engineer Vicor --__--__-- Message: 4 Subject: RE: [sqr-users] Multiple Reports - one to printer and one to specific location. To: sqr-users@sqrug.org From: AmiPatel@loews.com Date: Wed, 14 Jan 2004 13:31:02 -0500 Reply-To: sqr-users@sqrug.org Thank you Richard , It looks like your idea will work. I tried your idea but with .LIS reports. I created 2 .lis reports and send one report to printer with CALL command at the end of report, but in that case it is printing report from previous run , because current reports is not ready yet I guess. Is that anything we can do to overcome this problem ....? As last option I will write to PRN files , close it and print using CALL . I am not sure that you can print PRN file to different printer without re-formatting it again or not... ? I am trying it out but if you know please help..... Thanks _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 15 09:36:19 2004 Subject: Re: [sqr-users] RE: Multiple Reports - one to printer and one to specific From: AmiPatel@loews.com Date: Thu, 15 Jan 2004 09:35:30 -0500 Denise , you are so right, I tried and it worked .... !!! and report with New-Report is just dummy and has nothing in it so it did not even created that. Just perfect. I combined yours and Richards solution. Its working for me. One more change I made is I included setup32.sqc instead of setup02.sqc , b/c 32 has all declare statements that is compatible with Declare Report in my program. Thanks very much all of you... AMI PATEL _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 15 10:41:27 2004 From: AmiPatel@loews.com Date: Thu, 15 Jan 2004 10:40:04 -0500 Subject: [sqr-users] Call system command question Hello friends, I am using following code from my SQR program & it looks like its working fine on my machine. Do you see any harm if program runs from scheduler on server....I am not sure about "cmd /c @start /min /wait cmd /c" part.. I will change my printer accordingly. I have no knowledge for this commands... let $cmd = 'cmd /c @start /min /wait cmd /c "copy /b c:\winnt\temp\sal0110t.lis lpt1"' let $cmd1 = 'cmd /c @start /min /wait cmd /c "move /y c:\winnt\temp\sal0110t_01.lis c:\sal0110t_moved.lis"' Call System using $cmd #status call system using $cmd1 #status1 AMI PATEL _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 15 11:04:11 2004 Subject: RE: [sqr-users] Call system command question Date: Thu, 15 Jan 2004 10:03:10 -0600 From: "Knapp, Richard" Those commands will only work for a standalone windows OS (your desktop machine). You will need to change the commands and the file locations depending on the OS of your server Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of AmiPatel@loews.com Sent: Thursday, January 15, 2004 9:40 AM To: sqr-users@sqrug.org Subject: [sqr-users] Call system command question Hello friends, I am using following code from my SQR program & it looks like its working fine on my machine. Do you see any harm if program runs from scheduler on server....I am not sure about "cmd /c @start /min /wait cmd /c" part.. I will change my printer accordingly. I have no knowledge for this commands... let $cmd = 'cmd /c @start /min /wait cmd /c "copy /b c:\winnt\temp\sal0110t.lis lpt1"' let $cmd1 = 'cmd /c @start /min /wait cmd /c "move /y c:\winnt\temp\sal0110t_01.lis c:\sal0110t_moved.lis"' Call System using $cmd #status call system using $cmd1 #status1 AMI PATEL _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 15 11:38:07 2004 Date: Thu, 15 Jan 2004 10:37:14 -0600 From: "Hallmark, Robert J" Subject: [sqr-users] Printing Vertically Brio 6.0 Oracle 8i Database UNIX Server Is there any way have a portion of an SQR report, such as column headings, to print vertically? Thanks Bob H _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 15 11:46:10 2004 Subject: RE: [sqr-users] Printing Vertically Date: Thu, 15 Jan 2004 10:44:57 -0600 From: "Knapp, Richard" Carefully work it out line by line? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Hallmark, Robert J Sent: Thursday, January 15, 2004 10:37 AM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Printing Vertically Brio 6.0 Oracle 8i Database UNIX Server Is there any way have a portion of an SQR report, such as column headings, to print vertically? Thanks Bob H _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 15 12:19:17 2004 Date: Thu, 15 Jan 2004 12:18:37 -0500 From: "Steve Wowelko" Subject: Re: [sqr-users] Printing Vertically Bob, If you have your printer-type defined as hp you can send escape sequences to the printer to rotate text. Here are some snippets from one of my programs that do column headings vertically. Stephen Wowelko Information Systems Syracuse University .. .. .. !---------------- print rotated font ---------------- alter-printer point-size=9 font=5 encode '<27>&a90P' into $rotatefont Print-Direct Nolf Printer = hp $rotatefont ! rotate text to 90 degrees print 'Completely' (32,26) print 'Satisfactory' (33,26) print 'Attendance' (36,26) print 'Participation' (39,26) print 'Assignments' (42,26) print 'Exams/Quizzes' (45,26) print 'Mid-Semester Grade' (48,26) print '(optional)' (49,26) !---------------- end print rotated font ---------------- .. .. .. encode '<27>&a0P' into $rotatefont Print-Direct Nolf Printer = hp $rotatefont ! rotate text back to 0 new-page ! done with this back page .. .. .. >>> robert.j.hallmark@lmco.com 01/15/04 11:37AM >>> Brio 6.0 Oracle 8i Database UNIX Server Is there any way have a portion of an SQR report, such as column headings, to print vertically? Thanks Bob H _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 15 12:21:05 2004 From: AmiPatel@loews.com Date: Thu, 15 Jan 2004 12:18:59 -0500 Subject: [sqr-users] Multiple reports using use-Reports , 2nd report going to SQR directory Hello , I am running SQR reports from PS Panel . 1) When I select 'CLIENT' and selecting 'FILE' (Specifying %%temp%% in file box). Two reports are available in TEMP of my machine - SAL0110.lis and SAL0110_01.lis which is good. 2) But when I select 'SERVER' and selecting 'FILE' (Specifying %%temp%% in file box) . My first report SAL1_1234.lis(1234 is automatic counter..when any lis file is created ) is getting created in TEMP directory on server. and My second report SAL1_01.lis is going to directory where my SQR program is sitting. I want it to go to same location as first one... Thanks in advance for any input...Please help... AMI PATEL _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 15 12:28:08 2004 From: Al H Date: Thu, 15 Jan 2004 09:28:28 -0800 Subject: [sqr-users] #sql-status and unique constraint Has anyone encountered issues with testing #sql-status for unique constraint and not getting correct results? Oracle's return code for unique contstraint is -9. I've found that for some reason, #sql-status doesn't always contain this value. It seems to be inconsistant, as I ran one program today that had repeated unique constraint errors and it worked for awhile, then suddenly failed (the program is supposed to ignore unique constraint errors and abort on an error other than unique constraint). I have found a more dependable alternative in using an instr for the value of "unique constraint" in $sql-error, but it is mystifying to me why the #sql-status seems to be unreliable. Any ideas? Note this is an SQR 4.x installation, on Oracle 8. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 15 12:23:06 2004 From: "Paul Hoyte" Date: Thu, 15 Jan 2004 10:29:02 -0700 Subject: [sqr-users] SQR Graphs on UNIX... This is a multi-part message in MIME format... ------=_NextPart_000_0007_01C3DB52.6527BC50 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hello all: Would like to know if anyone is publishing graphs using sqr on a UNIX platform. Looks like the graphs are being squeezed vertically the more months that are requested. Has anyone experienced this and come up with a work around? Thanks for the help. Paul Hoyte Sharidionne Inc. (248) 752-6970 paul.hoyte@sharidionne.com ------=_NextPart_000_0007_01C3DB52.6527BC50 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'image/gif' MIME type. It has been automatically discarded before sending the message to the list. ------=_NextPart_000_0007_01C3DB52.6527BC50-- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 15 13:16:19 2004 Date: Thu, 15 Jan 2004 12:14:17 -0600 From: "Hallmark, Robert J" Subject: RE: [sqr-users] Printing Vertically Stephen, Thanks a lot. That did the trick. Bob H ************************************ Bob, If you have your printer-type defined as hp you can send escape sequences to the printer to rotate text. Here are some snippets from one of my programs that do column headings vertically. Stephen Wowelko Information Systems Syracuse University .. .. .. !---------------- print rotated font ---------------- alter-printer point-size=9 font=5 encode '<27>&a90P' into $rotatefont Print-Direct Nolf Printer = hp $rotatefont ! rotate text to 90 degrees print 'Completely' (32,26) print 'Satisfactory' (33,26) print 'Attendance' (36,26) print 'Participation' (39,26) print 'Assignments' (42,26) print 'Exams/Quizzes' (45,26) print 'Mid-Semester Grade' (48,26) print '(optional)' (49,26) !---------------- end print rotated font ---------------- .. .. .. encode '<27>&a0P' into $rotatefont Print-Direct Nolf Printer = hp $rotatefont ! rotate text back to 0 new-page ! done with this back page .. .. .. >>> robert.j.hallmark@lmco.com 01/15/04 11:37AM >>> Brio 6.0 Oracle 8i Database UNIX Server Is there any way have a portion of an SQR report, such as column headings, to print vertically? Thanks Bob H _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Thu Jan 15 15:08:55 2004 Subject: Re: [sqr-users] Multiple reports using use-Reports , 2nd report going to SQR directory From: Ramzi_Salameh@daveandbusters.com Date: Thu, 15 Jan 2004 14:06:32 -0600 When you run the SQR on the client it's doing just that - being ran on the client (or local) machine, so the output is going to the local temp directory. When you run it on the server it's sending the output to the temp directory on the server because the SQR is being ran on THAT machine (the server machine). It doesn't know about your local temp directory. A solution is to specify a network folder in your output parameter whenever your run it on the server. Hope that makes sense. Ramzi AmiPatel@loews.co m To: sqr-users@sqrug.org Sent by: cc: sqr-users-admin@s Subject: [sqr-users] Multiple reports using use-Reports , 2nd report going to SQR qrug.org directory 01/15/04 11:18 AM Please respond to sqr-users Hello , I am running SQR reports from PS Panel . 1) When I select 'CLIENT' and selecting 'FILE' (Specifying %%temp%% in file box). Two reports are available in TEMP of my machine - SAL0110.lis and SAL0110_01.lis which is good. 2) But when I select 'SERVER' and selecting 'FILE' (Specifying %%temp%% in file box) . My first report SAL1_1234.lis(1234 is automatic counter..when any lis file is created ) is getting created in TEMP directory on server. and My second report SAL1_01.lis is going to directory where my SQR program is sitting. I want it to go to same location as first one... Thanks in advance for any input...Please help... AMI PATEL _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 15 15:13:07 2004 Date: Thu, 15 Jan 2004 15:12:42 -0500 From: "White, Denise" Subject: [sqr-users] Weird problem with load-lookup Hi, This makes no sense at all. I have a program that has been running in production every weeknight since late October, and as of last Friday, it will no longer run. I have managed to narrow the problem down to a load-lookup (when I remove the load-lookup, it runs successfully). The job is run in PeopleSoft and retrieves data from ADP through a database link. When the job is run from a PeopleSoft panel, it remains in Initiated status and never runs. When I run it from SQRW, I get the icon for SQR in my task bar, but the DOS window never appears (it should appear with that message about hitting enter without entering anything that is standard for PSoft jobs and is generated by one of the copybooks). Because of this, I am assuming that the job is failing to compile, and so never gets to the point where it starts to run. I have made no modifications to the program recently. I have confirmed that the database link to ADP works, and that I can do a regular begin-select of the same data using it and successfully display the data retrieved. Does anyone have any idea why my load-lookup would suddenly fail to compile, when it has been doing so successfully for months? Here is the code: BEGIN-SETUP #Include 'setup01a.sqc' ! Load shift differentials from ADP database load-lookup name=shift_differential table=reports.v_employee@pay4win key=file# return_value=substr(datacontrol,4,1) rows=9999 where='status in (''A'',''L'')' END-SETUP I guess I will have to give up and rewrite it using an array, since I find I can still select data with the database link, but I hate to admit defeat! (SQR 4.3.2) TIA! Denise M. White Sr. Software Engineer Vicor _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 15 15:43:19 2004 Subject: RE: [sqr-users] Weird problem with load-lookup Date: Thu, 15 Jan 2004 14:42:15 -0600 From: "Knapp, Richard" The 'stuck in initiated' sounds like the process scheduler is not running. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of White, Denise Sent: Thursday, January 15, 2004 2:13 PM To: SQR Users Group (E-mail) Subject: [sqr-users] Weird problem with load-lookup Hi, This makes no sense at all. I have a program that has been running in production every weeknight since late October, and as of last Friday, it will no longer run. I have managed to narrow the problem down to a load-lookup (when I remove the load-lookup, it runs successfully). The job is run in PeopleSoft and retrieves data from ADP through a database link. When the job is run from a PeopleSoft panel, it remains in Initiated status and never runs. When I run it from SQRW, I get the icon for SQR in my task bar, but the DOS window never appears (it should appear with that message about hitting enter without entering anything that is standard for PSoft jobs and is generated by one of the copybooks). Because of this, I am assuming that the job is failing to compile, and so never gets to the point where it starts to run. I have made no modifications to the program recently. I have confirmed that the database link to ADP works, and that I can do a regular begin-select of the same data using it and successfully display the data retrieved. Does anyone have any idea why my load-lookup would suddenly fail to compile, when it has been doing so successfully for months? Here is the code: BEGIN-SETUP #Include 'setup01a.sqc' ! Load shift differentials from ADP database load-lookup name=shift_differential table=reports.v_employee@pay4win key=file# return_value=substr(datacontrol,4,1) rows=9999 where='status in (''A'',''L'')' END-SETUP I guess I will have to give up and rewrite it using an array, since I find I can still select data with the database link, but I hate to admit defeat! (SQR 4.3.2) TIA! Denise M. White Sr. Software Engineer Vicor _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 15 15:52:06 2004 Subject: RE: [sqr-users] Multiple reports using use-Reports , 2nd report going to SQR directory Date: Thu, 15 Jan 2004 14:51:04 -0600 From: "Knapp, Richard" I've had this problem. The only solution I could find was to modify pssqr.ini. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of AmiPatel@loews.com Sent: Thursday, January 15, 2004 11:19 AM To: sqr-users@sqrug.org Subject: [sqr-users] Multiple reports using use-Reports , 2nd report going to SQR directory Hello , I am running SQR reports from PS Panel . 1) When I select 'CLIENT' and selecting 'FILE' (Specifying %%temp%% in file box). Two reports are available in TEMP of my machine - SAL0110.lis and SAL0110_01.lis which is good. 2) But when I select 'SERVER' and selecting 'FILE' (Specifying %%temp%% in file box) . My first report SAL1_1234.lis(1234 is automatic counter..when any lis file is created ) is getting created in TEMP directory on server. and My second report SAL1_01.lis is going to directory where my SQR program is sitting. I want it to go to same location as first one... Thanks in advance for any input...Please help... AMI PATEL _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 15 15:53:05 2004 Date: Thu, 15 Jan 2004 15:52:32 -0500 From: "Larry Roux" Subject: RE: [sqr-users] Weird problem with load-lookup Yes, I agree 100% with this one. Either the process scheduler is stuck or not running. ****************************** Larry Roux Syracuse University lroux@syr.edu ******************************* >>> KnappR@umsystem.edu 01/15/04 03:42PM >>> The 'stuck in initiated' sounds like the process scheduler is not running. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of White, Denise Sent: Thursday, January 15, 2004 2:13 PM To: SQR Users Group (E-mail) Subject: [sqr-users] Weird problem with load-lookup Hi, This makes no sense at all. I have a program that has been running in production every weeknight since late October, and as of last Friday, it will no longer run. I have managed to narrow the problem down to a load-lookup (when I remove the load-lookup, it runs successfully). The job is run in PeopleSoft and retrieves data from ADP through a database link. When the job is run from a PeopleSoft panel, it remains in Initiated status and never runs. When I run it from SQRW, I get the icon for SQR in my task bar, but the DOS window never appears (it should appear with that message about hitting enter without entering anything that is standard for PSoft jobs and is generated by one of the copybooks). Because of this, I am assuming that the job is failing to compile, and so never gets to the point where it starts to run. I have made no modifications to the program recently. I have confirmed that the database link to ADP works, and that I can do a regular begin-select of the same data using it and successfully display the data retrieved. Does anyone have any idea why my load-lookup would suddenly fail to compile, when it has been doing so successfully for months? Here is the code: BEGIN-SETUP #Include 'setup01a.sqc' ! Load shift differentials from ADP database load-lookup name=shift_differential table=reports.v_employee@pay4win key=file# return_value=substr(datacontrol,4,1) rows=9999 where='status in (''A'',''L'')' END-SETUP I guess I will have to give up and rewrite it using an array, since I find I can still select data with the database link, but I hate to admit defeat! (SQR 4.3.2) TIA! Denise M. White Sr. Software Engineer Vicor _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Thu Jan 15 16:26:25 2004 From: "Lynds,Rick" Subject: RE: [sqr-users] Weird problem with load-lookup Date: Thu, 15 Jan 2004 13:25:11 -0800 Denise, I might try doing some things like... 1. Using -s and praying that something shows up on the log - especially the generated SQL 2. Placing quotes around the table name (why that would become a problem, I have NO idea) 3. Having a DBA check to see if there is activity on the database while it is running. 4. Changing the number or rows (another one I can't see having an effect) This seems weird - Good Luck! Rick -----Original Message----- From: White, Denise [mailto:DEWhite@vicr.com] Sent: Thursday, January 15, 2004 12:13 PM To: SQR Users Group (E-mail) Subject: [sqr-users] Weird problem with load-lookup Hi, This makes no sense at all. I have a program that has been running in production every weeknight since late October, and as of last Friday, it will no longer run. I have managed to narrow the problem down to a load-lookup (when I remove the load-lookup, it runs successfully). The job is run in PeopleSoft and retrieves data from ADP through a database link. When the job is run from a PeopleSoft panel, it remains in Initiated status and never runs. When I run it from SQRW, I get the icon for SQR in my task bar, but the DOS window never appears (it should appear with that message about hitting enter without entering anything that is standard for PSoft jobs and is generated by one of the copybooks). Because of this, I am assuming that the job is failing to compile, and so never gets to the point where it starts to run. I have made no modifications to the program recently. I have confirmed that the database link to ADP works, and that I can do a regular begin-select of the same data using it and successfully display the data retrieved. Does anyone have any idea why my load-lookup would suddenly fail to compile, when it has been doing so successfully for months? Here is the code: BEGIN-SETUP #Include 'setup01a.sqc' ! Load shift differentials from ADP database load-lookup name=shift_differential table=reports.v_employee@pay4win key=file# return_value=substr(datacontrol,4,1) rows=9999 where='status in (''A'',''L'')' END-SETUP I guess I will have to give up and rewrite it using an array, since I find I can still select data with the database link, but I hate to admit defeat! (SQR 4.3.2) TIA! Denise M. White Sr. Software Engineer Vicor _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 15 16:28:06 2004 Date: Thu, 15 Jan 2004 16:26:27 -0500 From: "George Jansen" Subject: Re: [sqr-users] #sql-status and unique constraint Why would you want to ignore such errors? It is straightforward to encapsulate your DDL in PL/SQL code that will insert OR update. >>> maillists@starbuckk.net 01/15/04 12:28PM >>> Has anyone encountered issues with testing #sql-status for unique constraint and not getting correct results? Oracle's return code for unique contstraint is -9. I've found that for some reason, #sql-status doesn't always contain this value. It seems to be inconsistant, as I ran one program today that had repeated unique constraint errors and it worked for awhile, then suddenly failed (the program is supposed to ignore unique constraint errors and abort on an error other than unique constraint). I have found a more dependable alternative in using an instr for the value of "unique constraint" in $sql-error, but it is mystifying to me why the #sql-status seems to be unreliable. Any ideas? Note this is an SQR 4.x installation, on Oracle 8. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 15 17:02:07 2004 Subject: RE: [sqr-users] Weird problem with load-lookup From: rwulfson@bost.com Date: Thu, 15 Jan 2004 15:05:11 -0700 I would suspect that something has changed with dblink and that this is either not connecting or really slow. Thanks, Russ Wulfson Developer Boston Market Corporation Office: 303-216-5614 Fax: 303 -216- 8727 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 15 22:47:53 2004 From: Al H Subject: Re: [sqr-users] #sql-status and unique constraint Date: Thu, 15 Jan 2004 19:48:10 -0800 To reduce database hits and network traffic. 99% of the time, there will NOT be a record out there. But out of maybe 200,000 records, I might have 5 or six repeats. Using a query ahead of time, or a "where not exists" subquiery in this particular case simply generates unnecessary database traffic. On Thu, 15 Jan 2004 16:26:27 -0500, you wrote: >Why would you want to ignore such errors? > >It is straightforward to encapsulate your DDL in PL/SQL code that will >insert OR update. > >>>> maillists@starbuckk.net 01/15/04 12:28PM >>> >Has anyone encountered issues with testing #sql-status for unique >constraint and not getting correct results? > >Oracle's return code for unique contstraint is -9. I've found that for >some reason, #sql-status doesn't always contain this value. It seems >to be inconsistant, as I ran one program today that had repeated >unique constraint errors and it worked for awhile, then suddenly >failed (the program is supposed to ignore unique constraint errors and >abort on an error other than unique constraint). > >I have found a more dependable alternative in using an instr for the >value of "unique constraint" in $sql-error, but it is mystifying to me >why the #sql-status seems to be unreliable. > >Any ideas? > >Note this is an SQR 4.x installation, on Oracle 8. > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 16 05:22:05 2004 From: "Steve Cavill" Subject: RE: [sqr-users] Weird problem with load-lookup Date: Fri, 16 Jan 2004 21:19:35 +1100 Hi Denise, you should try the exact select that the load-lookup is trying: begin-select loops=9999 file# (1,1,10) substr(datacontrol,4,1) () from reports.v_employee@pay4win where status in ('A','L') end-select and see what happens. Steve. -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of White, Denise Sent: Friday, 16 January 2004 7:13 AM To: SQR Users Group (E-mail) Subject: [sqr-users] Weird problem with load-lookup Hi, This makes no sense at all. I have a program that has been running in production every weeknight since late October, and as of last Friday, it will no longer run. I have managed to narrow the problem down to a load-lookup (when I remove the load-lookup, it runs successfully). The job is run in PeopleSoft and retrieves data from ADP through a database link. When the job is run from a PeopleSoft panel, it remains in Initiated status and never runs. When I run it from SQRW, I get the icon for SQR in my task bar, but the DOS window never appears (it should appear with that message about hitting enter without entering anything that is standard for PSoft jobs and is generated by one of the copybooks). Because of this, I am assuming that the job is failing to compile, and so never gets to the point where it starts to run. I have made no modifications to the program recently. I have confirmed that the database link to ADP works, and that I can do a regular begin-select of the same data using it and successfully display the data retrieved. Does anyone have any idea why my load-lookup would suddenly fail to compile, when it has been doing so successfully for months? Here is the code: BEGIN-SETUP #Include 'setup01a.sqc' ! Load shift differentials from ADP database load-lookup name=shift_differential table=reports.v_employee@pay4win key=file# return_value=substr(datacontrol,4,1) rows=9999 where='status in (''A'',''L'')' END-SETUP I guess I will have to give up and rewrite it using an array, since I find I can still select data with the database link, but I hate to admit defeat! (SQR 4.3.2) TIA! Denise M. White Sr. Software Engineer Vicor _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 16 09:10:55 2004 Subject: RE: [sqr-users] Weird problem with load-lookup Date: Fri, 16 Jan 2004 09:08:51 -0500 From: "White, Denise" Thanks Richard and Larry, the process scheduler had actually gone down when this problem first started, but it has since been restored and the job still would not run. All other jobs, both scheduled and ad hoc, are running successfully on the process scheduler. Also, that would not explain why the same thing happens with SQRW, since that does not use the process scheduler at all. I should also say that I have the same problem whether running on the server or the client. Denise M. White Sr. Software Engineer Vicor --__--__-- Message: 16 Date: Thu, 15 Jan 2004 15:52:32 -0500 From: "Larry Roux" To: , Subject: RE: [sqr-users] Weird problem with load-lookup Reply-To: sqr-users@sqrug.org Yes, I agree 100% with this one. Either the process scheduler is stuck or not running. ****************************** Larry Roux Syracuse University lroux@syr.edu ******************************* >>> KnappR@umsystem.edu 01/15/04 03:42PM >>> The 'stuck in initiated' sounds like the process scheduler is not running. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of White, Denise Sent: Thursday, January 15, 2004 2:13 PM To: SQR Users Group (E-mail) Subject: [sqr-users] Weird problem with load-lookup Hi, This makes no sense at all. I have a program that has been running in production every weeknight since late October, and as of last Friday, it will no longer run. I have managed to narrow the problem down to a load-lookup (when I remove the load-lookup, it runs successfully). The job is run in PeopleSoft and retrieves data from ADP through a database link. When the job is run from a PeopleSoft panel, it remains in Initiated status and never runs. When I run it from SQRW, I get the icon for SQR in my task bar, but the DOS window never appears (it should appear with that message about hitting enter without entering anything that is standard for PSoft jobs and is generated by one of the copybooks). Because of this, I am assuming that the job is failing to compile, and so never gets to the point where it starts to run. I have made no modifications to the program recently. I have confirmed that the database link to ADP works, and that I can do a regular begin-select of the same data using it and successfully display the data retrieved. Does anyone have any idea why my load-lookup would suddenly fail to compile, when it has been doing so successfully for months? Here is the code: BEGIN-SETUP #Include 'setup01a.sqc' ! Load shift differentials from ADP database load-lookup name=shift_differential table=reports.v_employee@pay4win key=file# return_value=substr(datacontrol,4,1) rows=9999 where='status in (''A'',''L'')' END-SETUP I guess I will have to give up and rewrite it using an array, since I find I can still select data with the database link, but I hate to admit defeat! (SQR 4.3.2) TIA! Denise M. White Sr. Software Engineer Vicor _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 16 09:14:30 2004 Subject: RE: [sqr-users] Weird problem with load-lookup Date: Fri, 16 Jan 2004 09:08:53 -0500 From: "White, Denise" Thanks, Russ, since it is apparently failing in the compile phase, I don't think it would even be trying to connect at that point; I think it would do that once it has compiled and started running. Actually, there had been a problem at the time this originally started where the account used in the dblink had lost its password, but that has since been restored. I am able to run anything using that dblink except this program. Denise M. White Sr. Software Engineer Vicor --__--__-- Message: 19 Subject: RE: [sqr-users] Weird problem with load-lookup To: sqr-users@sqrug.org From: rwulfson@bost.com Date: Thu, 15 Jan 2004 15:05:11 -0700 Reply-To: sqr-users@sqrug.org I would suspect that something has changed with dblink and that this is either not connecting or really slow. Thanks, Russ Wulfson Developer Boston Market Corporation Office: 303-216-5614 Fax: 303 -216- 8727 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 16 09:16:21 2004 Subject: RE: [sqr-users] Weird problem with load-lookup Date: Fri, 16 Jan 2004 09:08:56 -0500 From: "White, Denise" Thanks Steve, as I mentioned, I did that and it worked fine. Rewriting the program to do that select and populate an array instead of using the load-lookup is succesful; it's just the load-lookup that won't compile. Denise M. White Sr. Software Engineer Vicor --__--__-- Message: 21 From: "Steve Cavill" To: Subject: RE: [sqr-users] Weird problem with load-lookup Date: Fri, 16 Jan 2004 21:19:35 +1100 Reply-To: sqr-users@sqrug.org Hi Denise, you should try the exact select that the load-lookup is trying: begin-select loops=9999 file# (1,1,10) substr(datacontrol,4,1) () from reports.v_employee@pay4win where status in ('A','L') end-select and see what happens. Steve. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 16 09:19:08 2004 From: RHudgins@genencor.com Date: Fri, 16 Jan 2004 09:16:46 -0500 Subject: RE: [sqr-users] Weird problem with load-lookup Denise - I'm only guessing, but has the amount of data increased? I've seen funny things happen when the amount of data loaded in to arrays or look up tables excees the limits. good luck. Thanks! Rhonda Hudgins @}---'----,---- Genencor International, Inc office - 585/256-5266 rhudgins@genencor.com -------------------------------------------------------------------------- This message (including any attachments) may contain information which is confidential or privileged. Use, dissemination, distribution, or reproduction of this message by unintended recipients is not authorized and may be unlawful. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. -------------------------------------------------------------------------- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 16 10:00:19 2004 Date: Fri, 16 Jan 2004 09:59:08 -0500 From: "White, Denise" Subject: [sqr-users] Load-lookup problem - solved??? Thanks to all who replied to my problem with the load-lookup that suddenly would not compile, after running successfully for months. I have now narrowed it down to what in the load-lookup is specifically causing the problem. It is the Oracle substr() function. Again, the following was my code: ! Load shift differentials from ADP database load-lookup name=shift_differential table=reports.v_employee@pay4win key=file# return_value=substr(datacontrol,4,1) rows=9999 where='status in (''A'',''L'')' When I removed the substr() function and just returned the datacontrol field, this worked fine. I was then able to use the SQR substr() function in a LET command to get the character I wanted. However, now I am confused as to why the Oracle substr() function, which had been working fine, all of a sudden ceased to function (no pun intended!). I confirmed that I was still able to use it successfully in a regular BEGIN-SELECT; it only is in the load-lookup that I am having this problem. Any ideas? At this point, it is really only curiosity, as I can now get the program to run successfully. Thanks! Denise M. White Sr. Software Engineer Vicor _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 16 11:04:13 2004 Date: Fri, 16 Jan 2004 11:03:44 -0500 From: "George Jansen" Subject: Re: [sqr-users] #sql-status and unique constraint You wrote >>> maillists@starbuckk.net 01/15/04 10:48PM >>> To reduce database hits and network traffic. 99% of the time, there will NOT be a record out there. But out of maybe 200,000 records, I might have 5 or six repeats. Using a query ahead of time, or a "where not exists" subquiery in this particular case simply generates unnecessary database traffic. >>> Well, you know the business requirements. But do you know what this overhead amounts to? In my quick and dirty testing, encapsulating with PL/SQL ups the runtime about 40% if I just trap the DUP_VAL_ON_INDEX error, and about 80% if I apply the data in the duplicate record. Pretty grim, until you consider that the baseline is about 1000 records per second to SCOTT.EMP on not a very fast machine. So if I had 200,000 records and my alternatives were a. running in 3 min 20 sec and praying that the #sql-status would come back -9 b. running in 6 min and knowing that I had trapped my primary key conflicts maybe I'd choose option b) and make a coffe run. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 16 15:16:37 2004 Date: Fri, 16 Jan 2004 14:11:16 -0600 From: "Bob Helm" Subject: [sqr-users] computing string size with proportional fonts Is there anything in SQR (or any tools you know of) that computes the size of a string before it's printed? I didn't see anything at sqrtools.com or any other searches. Hyperion says it's a "possible future enhancement". Thanks for any info, B The Programmer formerly known as Bob Mediware Information Systems, Inc. bob.helm@mediware.com 913-307-1045 This message (including any attachments) constitutes a confidential communication and/or contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please notify the sender by return email and delete this message and any attachments. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 16 15:30:12 2004 Subject: RE: [sqr-users] computing string size with proportional fonts Date: Fri, 16 Jan 2004 14:25:28 -0600 From: "Bob Helm" I should be a little more clear. I don't mean length of characters like the length() function returns, I meant length in inches, mm, even dots. I have reports with columns of data and I'm using proportional font. I'd like to truncate stings in one column before they spill over into the next column. Simply using the length() function is inconsistent at best since strings with X number of characters are different physical lengths in mm, in, etc. So, one string might truncate nicely, while another is cut way too short and still another may spill over. Thanks for any help. -----Original Message----- From: Bob Helm Sent: Friday, January 16, 2004 2:11 PM To: SQR Users (E-mail) Subject: [sqr-users] computing string size with proportional fonts Is there anything in SQR (or any tools you know of) that computes the size of a string before it's printed? I didn't see anything at sqrtools.com or any other searches. Hyperion says it's a "possible future enhancement". Thanks for any info, B The Programmer formerly known as Bob Mediware Information Systems, Inc. bob.helm@mediware.com 913-307-1045 This message (including any attachments) constitutes a confidential communication and/or contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please notify the sender by return email and delete this message and any attachments. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 16 15:59:10 2004 From: Ray Ontko Date: Fri, 16 Jan 2004 15:58:24 -0500 Subject: Re: [sqr-users] computing string size with proportional fonts Hi Bob, We have a proportional fonts library, written in SQR, that reads Adobe Font Metrics (AFM) files and calculates the size (in points) for strings. The library does many common proportional font functions like wrapping and centering. Getting the length of a string is certainly one of the supported procedures. We have found the library to be VERY useful for working with proportional fonts. We've got enough time in it that we'd like to recoup some of our investment, but we haven't really decided to make it into a product. Is this important enough that you might consider paying a small but reasonable fee to license the software from us? Ray On Fri, Jan 16, 2004 at 02:25:28PM -0600, Bob Helm wrote: > I should be a little more clear. I don't mean length of characters like the length() function returns, I meant length in inches, mm, even dots. > > I have reports with columns of data and I'm using proportional font. I'd like to truncate stings in one column before they spill over into the next column. Simply using the length() function is inconsistent at best since strings with X number of characters are different physical lengths in mm, in, etc. So, one string might truncate nicely, while another is cut way too short and still another may spill over. > > Thanks for any help. > > > > -----Original Message----- > From: Bob Helm > Sent: Friday, January 16, 2004 2:11 PM > To: SQR Users (E-mail) > Subject: [sqr-users] computing string size with proportional fonts > > > Is there anything in SQR (or any tools you know of) that computes the size of a string before it's printed? > I didn't see anything at sqrtools.com or any other searches. > Hyperion says it's a "possible future enhancement". > > > Thanks for any info, > B > The Programmer formerly known as Bob > Mediware Information Systems, Inc. > bob.helm@mediware.com > 913-307-1045 > > > > > > This message (including any attachments) constitutes a confidential communication and/or contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please notify the sender by return email and delete this message and any attachments. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------------- Ray Ontko rayo@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788 Ray Ontko & Co. Software Consulting Services http://www.ontko.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 16 16:09:10 2004 From: NEDOLPH@aol.com Date: Fri, 16 Jan 2004 16:08:15 EST Subject: Re: [sqr-users] computing string size with proportional fonts Bob: Three.5 ways: (assuming an HP LaserJet) 1. if what you want can be put into columns of known width you can use the horizontal cursor position function as a "hard tab key" to a fixed postion to the right of the left margin. you encode the function into a variable and then Print (or write) this variable before you print your string. if you make column 1 wide enough to cover the worst case, then you won't have run over. where the number is the column number ENCODE '<27>&a14C' into $headercol ENCODE '<27>&a32C' into $pagetopcol ENCODE '<27>&a59C' into $emplidcol ENCODE '<27>&a78C' into $ssncol ENCODE '<27>&a100C' into $phonecol ENCODE '<27>&a130C' into $farright to use this,... write $headercol write $yourstring write $ssncol write $yourssnstring you might try these font set ups which look quite attractive in comparison to courier and are native to the HP Laser Jet. ENCODE '<27>(s1p10v0s3b4168T' into $bigfont !antique olive ENCODE '<27>(s0p14h3b4102T' into $littlefont ENCODE '<27>(s1p8v0s2b4168T' into $italfont !antique olive ENCODE '<27>(s1p14v0s3b4168T' into $hugefont !antique olive 2. Otherwise you need a table of "printer font metrics" which is a lookup table for the font, and weight you need and you will need to do a letter by letter parsing of the string to be printed accumulating the width of the resulting string in HP measure (decipoints) You will then multiply it by a constant for the point size of the type and then move the cursor accordingly. You could -with enough re-inventing of the wheel, actually do your own justification of the columns. 3. a halfbaked version of 2. make about four categories of letter CAP W M Q etc = very wide = 4units, U T R S etc = wide = 3 units a b c = regular = 2 units I i , . etc as narrow. = 1 unit and assemble a metrics and multiply it by a point size constant etc. You will have to tinker with the point size constant to get the line width you want. 4. somebody may know a better heuristic way eg. for normal english text in 14pt Times Roman , allow 1.3 * Len(of the string) for the space it will take to print. personally I use method number 1 Hope this helps Norman Dolph _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 16 16:48:18 2004 Date: Fri, 16 Jan 2004 16:47:02 -0500 From: "Vito Campanelli" Subject: [sqr-users] Newbie Question Hi, I am fairly new to SQR and Brio. I just installed Brio Developer and Brio SQR for Oracle. I configured my ODBC connection. When I try to run a simple report I get the following error message: "Failed to produce the HTML output file. Additionally, no .SPF, .LOG, or .ERR files were generate. Most likely cause include: AQR configuration, and the BRB datasource definition used for this report." Can anybody help? Thanks Vito _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 16 20:22:07 2004 From: "Steve Cavill" Subject: RE: [sqr-users] Newbie Question Date: Sat, 17 Jan 2004 12:21:16 +1100 Hi Vito, try a report that does not connect to a database to see if that is your problem: begin-program print 'it works' () end-program If that works, then the problem is with your Oracle connection setup. If the above sample does not work, then there is something wrong with your brio setup Steve. -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Vito Campanelli Sent: Saturday, 17 January 2004 8:47 AM To: sqr-users@sqrug.org Subject: [sqr-users] Newbie Question Hi, I am fairly new to SQR and Brio. I just installed Brio Developer and Brio SQR for Oracle. I configured my ODBC connection. When I try to run a simple report I get the following error message: "Failed to produce the HTML output file. Additionally, no .SPF, .LOG, or .ERR files were generate. Most likely cause include: AQR configuration, and the BRB datasource definition used for this report." Can anybody help? Thanks Vito _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Sun Jan 18 21:14:44 2004 Subject: RE: [sqr-users] Newbie Question Date: Sun, 18 Jan 2004 21:11:37 -0500 From: "Vito Campanelli" Hi Steve, Thanks for your reply. I tried your program, and it didn't work. I uninstall and reinstalled same thing. Any other suggestions? Vito -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org] On Behalf Of Steve Cavill Sent: Friday, January 16, 2004 8:21 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Newbie Question Hi Vito, try a report that does not connect to a database to see if that is your problem: begin-program print 'it works' () end-program If that works, then the problem is with your Oracle connection setup. If the above sample does not work, then there is something wrong with your brio setup Steve. -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Vito Campanelli Sent: Saturday, 17 January 2004 8:47 AM To: sqr-users@sqrug.org Subject: [sqr-users] Newbie Question Hi, I am fairly new to SQR and Brio. I just installed Brio Developer and Brio SQR for Oracle. I configured my ODBC connection. When I try to run a simple report I get the following error message: "Failed to produce the HTML output file. Additionally, no .SPF, .LOG, or .ERR files were generate. Most likely cause include: AQR configuration, and the BRB datasource definition used for this report." Can anybody help? Thanks Vito _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Sun Jan 18 22:57:34 2004 From: "Steve Cavill" Subject: RE: [sqr-users] Newbie Question Date: Mon, 19 Jan 2004 14:57:30 +1100 Check in the directory that your .sqr code is in and also the sqr binw directory if there is a file called sqr.log or program_name.err or program_name.log which may give more info. Also when you run the program, instead of clicking the "process" button, from the file pull down menu, click print preview. This will bring up a dialog box. Type in -xl into the parameters box which will prevent sqr from trying to connect to oracle. Steve. -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Vito Campanelli Sent: Monday, 19 January 2004 1:12 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Newbie Question Hi Steve, Thanks for your reply. I tried your program, and it didn't work. I uninstall and reinstalled same thing. Any other suggestions? Vito -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org] On Behalf Of Steve Cavill Sent: Friday, January 16, 2004 8:21 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Newbie Question Hi Vito, try a report that does not connect to a database to see if that is your problem: begin-program print 'it works' () end-program If that works, then the problem is with your Oracle connection setup. If the above sample does not work, then there is something wrong with your brio setup Steve. -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Vito Campanelli Sent: Saturday, 17 January 2004 8:47 AM To: sqr-users@sqrug.org Subject: [sqr-users] Newbie Question Hi, I am fairly new to SQR and Brio. I just installed Brio Developer and Brio SQR for Oracle. I configured my ODBC connection. When I try to run a simple report I get the following error message: "Failed to produce the HTML output file. Additionally, no .SPF, .LOG, or .ERR files were generate. Most likely cause include: AQR configuration, and the BRB datasource definition used for this report." Can anybody help? Thanks Vito _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Mon Jan 19 04:25:57 2004 Date: Mon, 19 Jan 2004 10:25:33 +0100 From: LEBLANC Philippe FTC Subject: [sqr-users] =?ISO-8859-1?Q?R=E9p.=20:=20[sqr-users]=20Newbie=20Question?= Ignore this message cause it can't be avoid (log to Brio bring me they have not found why) !!! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Jan 19 11:22:56 2004 Subject: RE: [sqr-users] Newbie Question Date: Mon, 19 Jan 2004 11:21:34 -0500 From: "Vito Campanelli" Thanks Steve, That seemed to do the trick. Vito -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org] On Behalf Of Steve Cavill Sent: Sunday, January 18, 2004 10:58 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Newbie Question Check in the directory that your .sqr code is in and also the sqr binw directory if there is a file called sqr.log or program_name.err or program_name.log which may give more info. Also when you run the program, instead of clicking the "process" button, from the file pull down menu, click print preview. This will bring up a dialog box. Type in -xl into the parameters box which will prevent sqr from trying to connect to oracle. Steve. -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Vito Campanelli Sent: Monday, 19 January 2004 1:12 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Newbie Question Hi Steve, Thanks for your reply. I tried your program, and it didn't work. I uninstall and reinstalled same thing. Any other suggestions? Vito -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org] On Behalf Of Steve Cavill Sent: Friday, January 16, 2004 8:21 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Newbie Question Hi Vito, try a report that does not connect to a database to see if that is your problem: begin-program print 'it works' () end-program If that works, then the problem is with your Oracle connection setup. If the above sample does not work, then there is something wrong with your brio setup Steve. -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Vito Campanelli Sent: Saturday, 17 January 2004 8:47 AM To: sqr-users@sqrug.org Subject: [sqr-users] Newbie Question Hi, I am fairly new to SQR and Brio. I just installed Brio Developer and Brio SQR for Oracle. I configured my ODBC connection. When I try to run a simple report I get the following error message: "Failed to produce the HTML output file. Additionally, no .SPF, .LOG, or .ERR files were generate. Most likely cause include: AQR configuration, and the BRB datasource definition used for this report." Can anybody help? Thanks Vito _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Mon Jan 19 12:47:26 2004 Date: Mon, 19 Jan 2004 12:46:49 -0500 From: "Vito Campanelli" Subject: [sqr-users] Newbie Question 2 Hi, I am reading the "Getting Started with SQR" document from Brio. I noticed there was a section on running reports with CGI. I wanted to know from the group, has anybody been successful in trying to run a report via PHP, .NET of JSP? If yes, can you please provide any good tutorials, documents or examples? Thanks Vito _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Jan 19 15:08:11 2004 Date: Mon, 19 Jan 2004 20:05:50 +0000 (GMT) From: =?iso-8859-1?q?Jinesh=20Shah?= Subject: [sqr-users] Exporting SQR Report through SQR Viewer..not Working Hello I'm try to Export my SQR report from the option given in SQR Report viewer file menu ..-> Save as CSV.. but it's not working . So if anybody know is there any other setting for exporting report from Report viewer then help me.. Any advice will be appriciated Thanks in advance Regards Jinesh Shah ________________________________________________________________________ Yahoo! India Mobile: Download the latest polyphonic ringtones. Go to http://in.mobile.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Jan 19 17:55:41 2004 Date: Mon, 19 Jan 2004 14:54:36 -0800 From: Adriana Avelar Subject: [sqr-users] Re: SQR question please > Greetings, > > Where can I take a course in SQR(besides PeopleSoft) in the Los Angeles > Area or Orange County(Irvine, Costa mesa, etc). > > What is the vendor name for SQR ?? Also some PeopleSoft courses like > PeopleTools, Financials, etc.. > > most appreciatted your help, thanks > > Adriana > aavelar@earthlink.net _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Jan 19 18:20:37 2004 From: Ray Ontko Date: Mon, 19 Jan 2004 18:19:45 -0500 Subject: Re: [sqr-users] Re: SQR question please Adriana, > > Where can I take a course in SQR(besides PeopleSoft) in the Los Angeles > > Area or Orange County(Irvine, Costa mesa, etc). The official courses by the SQR vendor (Hyperion Solutions, successor to Brio Software) can be found at: http://www.hyperion.com/services/education_services/courses_and_schedules/brio_classes.cfm These courses won't know anything about the PeopleSoft-specific coding techniques or include files. > > What is the vendor name for SQR ?? Also some PeopleSoft courses like > > PeopleTools, Financials, etc.. Hyperion. www.hyperion.com. > > most appreciatted your help, thanks > > > > Adriana > > aavelar@earthlink.net > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------------- Ray Ontko rayo@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788 Ray Ontko & Co. Software Consulting Services http://www.ontko.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 20 04:58:45 2004 Date: Tue, 20 Jan 2004 10:53:04 +0100 From: LEBLANC Philippe FTC Subject: [sqr-users] =?ISO-8859-1?Q?R=E9p.=20:=20[sqr-users]=20Exporting=20SQR=20Repo?==?ISO-8859-1?Q?rt=20through=20SQR=20Viewer..not=20Working?= With SQR Report viewer you can export a .SPF file as .CSV. Do you use a .SPF file ? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 20 07:35:14 2004 Date: Tue, 20 Jan 2004 07:34:29 -0500 From: "George Jansen" Subject: Re: [sqr-users] Newbie Question 2 Well, AOLServer, and through the old Oracle App Server's Perl cartridge. It has been a while, but it it is straightforward to link SQR into a shared library such that AOLServer's TCL API can call it, or a Perl module using ExtUtils::MakeMaker. For JSPs you should be able to write a class to wrap a "native" call to int sqr(). AOLServer is an excellent web server, but seems to be pretty much a nice product these days. It sounds to me as if you'd probably prefer to use Apache and create a loadable file that would allow you to invoke SQR from within Perl. If you have reasonable experience with Perl modules, you should find the task quite straightforward. If you don't, have a look at "the Camel book" (http://www.oreilly.com/catalog/pperl3/ ). And of course you can, in most web servers, escape out to a shell prompt--whence the effectiveness of little gems such as the NIMDA worm. I don't think that in general this is a good idea. >>> vito.campanelli@mcgill.ca 01/19/04 12:46PM >>> Hi, I am reading the "Getting Started with SQR" document from Brio. I noticed there was a section on running reports with CGI. I wanted to know from the group, has anybody been successful in trying to run a report via PHP, .NET of JSP? If yes, can you please provide any good tutorials, documents or examples? Thanks Vito _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 20 07:51:08 2004 Date: Tue, 20 Jan 2004 07:49:53 -0500 From: "Larry Roux" Subject: [sqr-users] =?ISO-8859-1?Q?Re:=20[sqr-users]=20R=E9p.=20:=20[sqr-users]=20Ex?= =?ISO-8859-1?Q?porting=20SQR=20Report=20through=20SQR=20Viewer..not=20Wo?= =?ISO-8859-1?Q?rking?= I believe that currently SQR Viewer is the only product to read spf files. ****************************** Larry Roux Syracuse University lroux@syr.edu ******************************* >>> p.leblanc@francetelecom.com 01/20/04 05:06 AM >>> With SQR Report viewer you can export a .SPF file as .CSV. Do you use a .SPF file ? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 20 08:13:42 2004 From: Peter Burton Date: Tue, 20 Jan 2004 05:12:13 -0800 Subject: [sqr-users] =?iso-8859-1?Q?RE=3A_=5Bsqr-users=5D_Re=3A_=5Bsqr-users=5D_R=E9?= =?iso-8859-1?Q?p=2E_=3A_=5Bsqr-users=5D_Exporting_SQR_Report_through_S?= =?iso-8859-1?Q?QR_Viewer=2E=2Enot_Working?= This is a multi-part message in MIME format... ----=_NextPart_ST_08_12_26_Tuesday_January_20_2004_31470 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable SQR Print (SQRWP or SQRP) also processes .SPF files. Peter > -----Original Message----- > From: sqr-users-admin@sqrug.org@HYPERION On Behalf Of "Larry > Roux" > Sent: Tuesday, January 20, 2004 7:50 AM > To: sqr-users@sqrug.org > Subject: [sqr-users] Re: [sqr-users] R=E9p. : [sqr-users] Exporting SQR > Report through SQR Viewer..not Working >=20 > I believe that currently SQR Viewer is the only product to read spf > files. >=20 >=20 >=20 > ****************************** > Larry Roux > Syracuse University > lroux@syr.edu > ******************************* > >>> p.leblanc@francetelecom.com 01/20/04 05:06 AM >>> > With SQR Report viewer you can export a .SPF file as .CSV. > Do you use a .SPF file ? >=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 ************************************************************************ If you have received this e-mail in error, please delete it and notify the = sender as soon as possible. The contents of this e-mail may be confidential= and the unauthorized use, copying, or dissemination of it and any attachme= nts to it, is prohibited.=20 Internet communications are not secure and Hyperion does not, therefore, ac= cept legal responsibility for the contents of this message nor for any dama= ge caused by viruses. The views expressed here do not necessarily represen= t those of Hyperion. For more information about Hyperion, please visit our Web site at www.hyper= ion.com ----=_NextPart_ST_08_12_26_Tuesday_January_20_2004_31470 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/ms-tnef' MIME type. It has been automatically discarded before sending the message to the list. ----=_NextPart_ST_08_12_26_Tuesday_January_20_2004_31470-- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 20 10:31:17 2004 Date: Tue, 20 Jan 2004 15:30:21 +0000 (GMT) From: =?iso-8859-1?q?Jinesh=20Shah?= Subject: Re: [sqr-users] Re: [sqr-users] Rép. : [sqr-users] Exporting SQR Report through SQR Viewer..not Working Hi Larry , Thanks for your reply. Yes I'm using .SPF file with SQR Viewer in Maximo. There is one option is file menu of SQR viewer for "Save as .CSV" file but it's not working and actually I want to export my report to Excel file after viewing the report. So, I thought through Excel we can read .csv file and then I'll conver it to Excel. I think there is no facility for exporting data after report shows output in .SPF file. If there is any thing I'm missing than pls help me to shor out this problem.. Ok thanks once again. Regards Jinesh --- Larry Roux wrote: > I believe that currently SQR Viewer is the only > product to read spf files. > > > > ****************************** > Larry Roux > Syracuse University > lroux@syr.edu > ******************************* > >>> p.leblanc@francetelecom.com 01/20/04 05:06 AM > >>> > With SQR Report viewer you can export a .SPF file as > .CSV. > Do you use a .SPF file ? > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ________________________________________________________________________ Yahoo! India Mobile: Download the latest polyphonic ringtones. Go to http://in.mobile.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 20 11:04:09 2004 Date: Tue, 20 Jan 2004 16:42:56 +0100 From: LEBLANC Philippe FTC Subject: [sqr-users] =?ISO-8859-1?Q?Re:=20[sqr-users]=20Re:=20[sqr-users]=20R=E9p.=20?==?ISO-8859-1?Q?:=20[sqr-users]=20Exporting=20SQR=20Report=20through=20SQ?==?ISO-8859-1?Q?R=20Viewer..not=20Work?= Oh, you must have writing rights to the current directory where you opened the .SPF file because the 'save as .CSV' menu of SQR viewer do the conversion in the same directory !!! Je reste à votre disposition pour toute demande d'information complémentaire. Cordialement, Philippe LEBLANC France Télécom Câble Direction Informatique Cellule Finances & Statistiques Assistance centralisée: 01.55.58.36.00 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 20 11:20:40 2004 From: James Womeldorf Date: Tue, 20 Jan 2004 10:19:46 -0600 Subject: [sqr-users] Cannot open log files in progress under Windows Hi group, We are running SQR 4.3.4 When we run SQRs under UNIX we are able to open the log files before the report finishes. Very handy for checking on the progress of long-running reports. When we run them under Windows we are presented with a sharing violation message when we attempt to look at the log files using UltraEdit or Notepad. Is there a way to observe these log files under Windows or is this a 'feature' of the DOS version of SQR? Thanks for your consideration, Jim Womeldorf Fastenal Company _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 20 11:50:15 2004 Date: Tue, 20 Jan 2004 11:49:32 -0500 From: "Larry Roux" Subject: Re: [sqr-users] Cannot open log files in progress under Windows I use PFE (Programmers File Editor) and that usually allows me to open any file without the permission problems. http://download.com.com/3000-2352-904159.html ****************************** Larry Roux Syracuse University lroux@syr.edu ******************************* >>> jwomeldo@fastenal.com 01/20/04 11:19AM >>> Hi group, We are running SQR 4.3.4 When we run SQRs under UNIX we are able to open the log files before the report finishes. Very handy for checking on the progress of long-running reports. When we run them under Windows we are presented with a sharing violation message when we attempt to look at the log files using UltraEdit or Notepad. Is there a way to observe these log files under Windows or is this a 'feature' of the DOS version of SQR? Thanks for your consideration, Jim Womeldorf Fastenal Company _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 20 12:01:06 2004 Date: Tue, 20 Jan 2004 11:57:09 -0500 From: "Jamie Harris" Subject: Re: [sqr-users] Cannot open log files in progress under Windows I have the same problem with those editors, but the text editor I use most does not mind. It treats it as a read-only file, but you're able to open it. My editor is from www.semware.com (and is called TSE Pro). The problem is that Windows locks the file to prevent other programs from changing the file, but Notepad and UltraEdit do not check file locking correctly to see if the file is locked exclusively or if it can be read. Being familiar with Unix, I would bet you could write a quick Perl script to dump the log file to the screen piped through "more". Or, if you're only looking for the end of the file there are some nice Windows implementations of the "tail" command you could grab. I have one that's pretty good but don't remember where I got it from. ----------------------------------------------------- James Harris Junior Systems Programmer/Analyst Information Technology Division Frederick Community College ----------------------------------------------------- >>> jwomeldo@fastenal.com 1/20/2004 11:19:46 AM >>> Hi group, We are running SQR 4.3.4 When we run SQRs under UNIX we are able to open the log files before the report finishes. Very handy for checking on the progress of long-running reports. When we run them under Windows we are presented with a sharing violation message when we attempt to look at the log files using UltraEdit or Notepad. Is there a way to observe these log files under Windows or is this a 'feature' of the DOS version of SQR? Thanks for your consideration, Jim Womeldorf Fastenal Company _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 20 11:58:10 2004 Subject: Re: [sqr-users] Cannot open log files in progress under Windows From: "Richard C Spoth" Date: Tue, 20 Jan 2004 11:59:11 -0500 Check your settings in UltraEdit. It should be able read the file even if it is still being written to. I think the setting is "Lock file when editing" this must be disabled. Rick Spoth James Womeldorf Sent by: sqr-users-admin@sqrug.org 01/20/04 11:19 AM Please respond to sqr-users To: "'sqr-users@sqrug.org'" cc: Subject: [sqr-users] Cannot open log files in progress under Windows Hi group, We are running SQR 4.3.4 When we run SQRs under UNIX we are able to open the log files before the report finishes. Very handy for checking on the progress of long-running reports. When we run them under Windows we are presented with a sharing violation message when we attempt to look at the log files using UltraEdit or Notepad. Is there a way to observe these log files under Windows or is this a 'feature' of the DOS version of SQR? Thanks for your consideration, Jim Womeldorf Fastenal Company _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users CONFIDENTIALITY NOTICE: This email message and any attachments are for the sole use of the intended recipient(s) and may contain proprietary, confidential, trade secret or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited and may be a violation of law. If you are not the intended recipient or a person responsible for delivering this message to an intended recipient, please contact the sender by reply email and destroy all copies of the original message. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 20 12:09:08 2004 Date: Tue, 20 Jan 2004 09:08:39 -0800 From: "Aleksandra Gacevic" Subject: Re: [sqr-users] Cannot open log files in progress under Windows Copy and paste file while the process is still running - you'll be able to open 'pasted' log file. Aleksandra >>> jwomeldo@fastenal.com 1/20/2004 8:19:46 AM >>> Hi group, We are running SQR 4.3.4 When we run SQRs under UNIX we are able to open the log files before the report finishes. Very handy for checking on the progress of long-running reports. When we run them under Windows we are presented with a sharing violation message when we attempt to look at the log files using UltraEdit or Notepad. Is there a way to observe these log files under Windows or is this a 'feature' of the DOS version of SQR? Thanks for your consideration, Jim Womeldorf Fastenal Company _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 20 13:07:20 2004 From: James Womeldorf Subject: RE: [sqr-users] Cannot open log files in progress under Windows Date: Tue, 20 Jan 2004 12:06:07 -0600 Thanks to everyone for their suggestions. I tried Aleksandra's suggestion since it was the easiest one to try, but I get a 'permission denied' error when trying to copy the file. Our version of UltraEdit is 5.20, and perhaps that is the root of the problem. I'll have to try to talk someone into getting me a copy of the new version to try. In the meantime, I would be interested in having one of you who are running SQRs under NT try opening an active log file using Windows Notepad. If you cannot open it with Notepad but CAN open it using UltraEdit then the version of UE is probably the issue. Thanks for all your help, Jim -----Original Message----- From: Aleksandra Gacevic [mailto:AGacevic@scu.edu] Sent: Tuesday, January 20, 2004 11:09 AM To: James Womeldorf; sqr-users@sqrug.org Subject: Re: [sqr-users] Cannot open log files in progress under Windows Copy and paste file while the process is still running - you'll be able to open 'pasted' log file. Aleksandra >>> jwomeldo@fastenal.com 1/20/2004 8:19:46 AM >>> Hi group, We are running SQR 4.3.4 When we run SQRs under UNIX we are able to open the log files before the report finishes. Very handy for checking on the progress of long-running reports. When we run them under Windows we are presented with a sharing violation message when we attempt to look at the log files using UltraEdit or Notepad. Is there a way to observe these log files under Windows or is this a 'feature' of the DOS version of SQR? Thanks for your consideration, Jim Womeldorf Fastenal Company _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Tue Jan 20 13:18:07 2004 From: James Womeldorf Subject: RE: [sqr-users] Cannot open log files in progress under Windows Date: Tue, 20 Jan 2004 12:17:00 -0600 I get the same permission error using PFE. Jim -----Original Message----- From: Larry Roux [mailto:LRoux@syr.edu] Sent: Tuesday, January 20, 2004 10:50 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Cannot open log files in progress under Windows I use PFE (Programmers File Editor) and that usually allows me to open any file without the permission problems. http://download.com.com/3000-2352-904159.html ****************************** Larry Roux Syracuse University lroux@syr.edu ******************************* >>> jwomeldo@fastenal.com 01/20/04 11:19AM >>> Hi group, We are running SQR 4.3.4 When we run SQRs under UNIX we are able to open the log files before the report finishes. Very handy for checking on the progress of long-running reports. When we run them under Windows we are presented with a sharing violation message when we attempt to look at the log files using UltraEdit or Notepad. Is there a way to observe these log files under Windows or is this a 'feature' of the DOS version of SQR? Thanks for your consideration, Jim Womeldorf Fastenal Company _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Tue Jan 20 15:52:06 2004 Date: Tue, 20 Jan 2004 11:44:07 -0800 (PST) From: Yuri Lakef Subject: [sqr-users] -S flag for cursors Is there a way to view the values of bind variables when using -S flag for cursors? --------------------------------- Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 20 15:01:05 2004 Date: Tue, 20 Jan 2004 11:59:18 -0800 (PST) From: Darshil Mehta Subject: [sqr-users] Rows as columns using SQR Hi folks, I am completely new to SQR. I want to put rows of an SQL output as column headings. e.g. i'm getting data in SQL like code qtrnum fiscalyr sum(qty) ------------------------------------------------------------ 10 2 2003 100 10 3 2003 200 10 4 2003 240 10 1 2004 250 10 2 2004 200 20 2 2003 140 20 3 2003 100 20 4 2003 200 20 1 2004 340 20 2 2004 300 here, code & sum(qty) are coming from prod table and qtr and yr are coming from fiscal cal table i want to display this result using SQR in following way code Q22003 Q32003 Q42003 Q12004 Q2004 --------------------------------------------------------------------------------------------- 10 100 200 240 250 200 20 140 100 200 340 300 Please suggest how to do it. Thanks in advance.... Darshil --------------------------------- Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 20 15:12:13 2004 From: Date: Tue, 20 Jan 2004 15:11:01 -0500 Subject: [sqr-users] Using Call System to FTP on file on WINNT-and PeopleSoft Hi Everyone, I have read a few postings on this issue, and have tried recommended changes, but nothing seems to be working for me. I an running an SQR under PeopleSoft PIA (Web) that is using call system to ftp a file from NT to the FTP site. The code works fine if I run it through SQRW, but when running it through a PeopleSoft page, nothing happens. I don't believe I am getting a valid status code either, as it is always 0, though from what I read in the SQR manuals, for NT, anything less than 32 is an error. Though my code is built dynamically in the SQR, ultimately, when call system is executed, it looks like this: C:\WINNT\system32\cmd.exe /c ftp -n -s:\\scanty\psoftfm\\FMDEV\user\upload\fms_ftpout.bat As stated, this works fine from the "run" command in windows, and also running through SQRW, but running it from within peoplesoft results in no results :-) Any suggestions would be greatly appreciated. Barb _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 20 15:32:11 2004 Subject: RE: [sqr-users] Using Call System to FTP on file on WINNT-and PeopleSoft Date: Tue, 20 Jan 2004 14:31:03 -0600 From: "Knapp, Richard" Peoplesoft is running on a different machine than your desktop, no? So how can you expect that commands that work on your desktop machine will work on the PS server? Make a command that uses the server OS and file paths for when it runs on the server. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of bmrazek@sympatico.ca Sent: Tuesday, January 20, 2004 2:11 PM To: sqr-users@sqrug.org Subject: [sqr-users] Using Call System to FTP on file on WINNT-and PeopleSoft Hi Everyone, I have read a few postings on this issue, and have tried recommended changes, but nothing seems to be working for me. I an running an SQR under PeopleSoft PIA (Web) that is using call system to ftp a file from NT to the FTP site. The code works fine if I run it through SQRW, but when running it through a PeopleSoft page, nothing happens. I don't believe I am getting a valid status code either, as it is always 0, though from what I read in the SQR manuals, for NT, anything less than 32 is an error. Though my code is built dynamically in the SQR, ultimately, when call system is executed, it looks like this: C:\WINNT\system32\cmd.exe /c ftp -n -s:\\scanty\psoftfm\\FMDEV\user\upload\fms_ftpout.bat As stated, this works fine from the "run" command in windows, and also running through SQRW, but running it from within peoplesoft results in no results :-) Any suggestions would be greatly appreciated. Barb _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 20 16:00:08 2004 From: Subject: Re: RE: [sqr-users] Using Call System to FTP on file on WINNT-and PeopleSoft Date: Tue, 20 Jan 2004 15:59:24 -0500 I appreciate your reply. I am using COMSPEC to create the command, so what I sent to you is correct for the server the program is running on. They only run NT here. Here is the code that creates the command: LET $COMMAND = GETENV('COMSPEC') || ' /c ' let $command = $command || $sign_string CALL SYSTEM USING $command #nt_status WAIT where $sign_string = 'ftp -n -s:\\scanty\psoftfm\\FMDEV\user\upload\fms_ftpout.bat' So, I appreciate that the server is not my desktop, but the command created with COMSPEC seems to be the same. The file path is also a server file path. Thanks > > From: "Knapp, Richard" > Date: 2004/01/20 Tue PM 03:31:03 EST > To: > Subject: RE: [sqr-users] Using Call System to FTP on file on WINNT-and PeopleSoft > > > Peoplesoft is running on a different machine than your desktop, no? So how can you expect that commands that work on your desktop machine will work on the PS server? > > Make a command that uses the server OS and file paths for when it runs on the server. > > Richard Knapp > Database Programmer/Analyst > Institutional Research and Planning > University of Missouri System > 573-882-8856 > knappr@umsystem.edu > > > -----Original Message----- > From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On > Behalf Of bmrazek@sympatico.ca > Sent: Tuesday, January 20, 2004 2:11 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] Using Call System to FTP on file on WINNT-and > PeopleSoft > > > Hi Everyone, > > I have read a few postings on this issue, and have tried recommended changes, but nothing seems to be working for me. I an running an SQR under PeopleSoft PIA (Web) that is using call system to ftp a file from NT to the FTP site. The code works fine if I run it through SQRW, but when running it through a PeopleSoft page, nothing happens. I don't believe I am getting a valid status code either, as it is always 0, though from what I read in the SQR manuals, for NT, anything less than 32 is an error. > > Though my code is built dynamically in the SQR, ultimately, when call system is executed, it looks like this: > > C:\WINNT\system32\cmd.exe /c ftp -n -s:\\scanty\psoftfm\\FMDEV\user\upload\fms_ftpout.bat > > As stated, this works fine from the "run" command in windows, and also running through SQRW, but running it from within peoplesoft results in no results :-) > > Any suggestions would be greatly appreciated. > > Barb > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > 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-admin@sqrug.org Tue Jan 20 17:26:26 2004 Subject: RE: RE: [sqr-users] Using Call System to FTP on file on WINNT-and PeopleSoft Date: Tue, 20 Jan 2004 16:25:01 -0600 From: "Knapp, Richard" Is ftp secure in some way? What is the -s part? Is that a flag or a drive? Try to find a log file that records the error messages the bum command is producing. Ask your sysop or DBA if you don't have privs. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of bmrazek@sympatico.ca Sent: Tuesday, January 20, 2004 2:59 PM To: sqr-users@sqrug.org; sqr-users@sqrug.org Subject: Re: RE: [sqr-users] Using Call System to FTP on file on WINNT-and PeopleSoft I appreciate your reply. I am using COMSPEC to create the command, so what I sent to you is correct for the server the program is running on. They only run NT here. Here is the code that creates the command: LET $COMMAND = GETENV('COMSPEC') || ' /c ' let $command = $command || $sign_string CALL SYSTEM USING $command #nt_status WAIT where $sign_string = 'ftp -n -s:\\scanty\psoftfm\\FMDEV\user\upload\fms_ftpout.bat' So, I appreciate that the server is not my desktop, but the command created with COMSPEC seems to be the same. The file path is also a server file path. Thanks > > From: "Knapp, Richard" > Date: 2004/01/20 Tue PM 03:31:03 EST > To: > Subject: RE: [sqr-users] Using Call System to FTP on file on WINNT-and PeopleSoft > > > Peoplesoft is running on a different machine than your desktop, no? So how can you expect that commands that work on your desktop machine will work on the PS server? > > Make a command that uses the server OS and file paths for when it runs on the server. > > Richard Knapp > Database Programmer/Analyst > Institutional Research and Planning > University of Missouri System > 573-882-8856 > knappr@umsystem.edu > > > -----Original Message----- > From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On > Behalf Of bmrazek@sympatico.ca > Sent: Tuesday, January 20, 2004 2:11 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] Using Call System to FTP on file on WINNT-and > PeopleSoft > > > Hi Everyone, > > I have read a few postings on this issue, and have tried recommended changes, but nothing seems to be working for me. I an running an SQR under PeopleSoft PIA (Web) that is using call system to ftp a file from NT to the FTP site. The code works fine if I run it through SQRW, but when running it through a PeopleSoft page, nothing happens. I don't believe I am getting a valid status code either, as it is always 0, though from what I read in the SQR manuals, for NT, anything less than 32 is an error. > > Though my code is built dynamically in the SQR, ultimately, when call system is executed, it looks like this: > > C:\WINNT\system32\cmd.exe /c ftp -n -s:\\scanty\psoftfm\\FMDEV\user\upload\fms_ftpout.bat > > As stated, this works fine from the "run" command in windows, and also running through SQRW, but running it from within peoplesoft results in no results :-) > > Any suggestions would be greatly appreciated. > > Barb > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > 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-admin@sqrug.org Tue Jan 20 17:37:12 2004 From: Peter Burton Subject: RE: [sqr-users] -S flag for cursors Date: Tue, 20 Jan 2004 17:35:57 -0500 This is a multi-part message in MIME format... ------_=_NextPart_000_01C3DFA5.C5A8D580 Content-Type: text/plain; charset="iso-8859-1" Yuri, If you have SQR 8.0 (or higher) from Brio (or Hyperion) you can examine the SQR resevered variable $SQL-TEXT after a BEGIN-SELECT or BEGIN-SQL block to see exactly what was sent to the database. The -S command line flag only shows you the last SQL statement used for all the cursors when the report terminates. Note that cursors get reused in SQR. If the SQL is dynamic (i.e. bind and/or dynamic variables were used) then you will see the template. Peter > -----Original Message----- > From: sqr-users-admin@sqrug.org@HYPERION On Behalf Of Yuri Lakef > > Sent: Tuesday, January 20, 2004 2:44 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] -S flag for cursors > > > Is there a way to view the values of bind variables when using -S flag for > cursors? > > > --------------------------------- > Do you Yahoo!? > Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ------_=_NextPart_000_01C3DFA5.C5A8D580 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/ms-tnef' MIME type. It has been automatically discarded before sending the message to the list. ------_=_NextPart_000_01C3DFA5.C5A8D580-- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 20 19:23:49 2004 Date: Tue, 20 Jan 2004 14:56:50 -0800 (PST) From: Yuri Lakef Subject: RE: [sqr-users] -S flag for cursors Thank you, Peter. We are using PeopleSoft 8.4 version (not sure what that translates to for the non-PeopleSoft world of SQR ever since PS licensed their own version of SQR for 8.0). Anyone else? Thank you in advance. Peter Burton wrote:Yuri, If you have SQR 8.0 (or higher) from Brio (or Hyperion) you can examine the SQR resevered variable $SQL-TEXT after a BEGIN-SELECT or BEGIN-SQL block to see exactly what was sent to the database. The -S command line flag only shows you the last SQL statement used for all the cursors when the report terminates. Note that cursors get reused in SQR. If the SQL is dynamic (i.e. bind and/or dynamic variables were used) then you will see the template. Peter > -----Original Message----- > From: sqr-users-admin@sqrug.org@HYPERION On Behalf Of Yuri Lakef > > Sent: Tuesday, January 20, 2004 2:44 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] -S flag for cursors > > > Is there a way to view the values of bind variables when using -S flag for > cursors? > > > --------------------------------- > Do you Yahoo!? > Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > Here was a non admissible message part of 'application/ms-tnef' MIME type. It has been automatically discarded before sending the message to the list. --------------------------------- Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 21 05:06:03 2004 Date: Wed, 21 Jan 2004 11:02:53 +0100 (CET) From: =?iso-8859-1?q?Charly=20Lebrun?= Subject: RE: [sqr-users] Cannot open log files in progress under Windows Hello, If you get the permission error with all editors and mainly, with copy&paste under Windows, then I suspect that your log file is open in a special way, OR that the NT priviledges on the file do not allow you to access that file... Some questions : - What log file is this : standard SQR.LOG or your own (open with the OPEN command) ? With the first one, you can also follow the progress in the "message window" (kind of 'DOS' box, ok this might slow down your process) With the second one, I'm able to open it with UltraEdit or other editor (my second choice is MicroEMACS, freeware comming from Unix). - Are the SQR process running in the same account name ? Are you opening the file thru the LAN (privilidge settings ?) or in a folder belonging to 'someone' else (again : priviledges) ? The stangest issue here is that you cannot copy&paste... You should be able to, unless you do not have the priviliedges.... IMHO, as far as I know, etc (std disclaimer ;-) Hope this helps !!! Charly _________________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 21 08:37:17 2004 From: James Womeldorf Subject: RE: [sqr-users] Cannot open log files in progress under Windows Date: Wed, 21 Jan 2004 07:35:22 -0600 I think you have nailed it Charly. It is the standard log files I am concerned with. I've been working with our NT admins on this and we are leaning toward the lack of privileges as being the root of the problem. Especially since I AM able to look at 'open' log files when I run sqrw.exe from the command line. I see no mention of a command line flag that affects the way files are opened, so I assume they are opened the same way in all cases. I believe that leaves us with a permissions problem. Thanks to everyone for their ideas and suggestions. Jim -----Original Message----- From: Charly Lebrun [mailto:calebrun@yahoo.com] Sent: Wednesday, January 21, 2004 4:03 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Cannot open log files in progress under Windows Hello, If you get the permission error with all editors and mainly, with copy&paste under Windows, then I suspect that your log file is open in a special way, OR that the NT priviledges on the file do not allow you to access that file... Some questions : - What log file is this : standard SQR.LOG or your own (open with the OPEN command) ? With the first one, you can also follow the progress in the "message window" (kind of 'DOS' box, ok this might slow down your process) With the second one, I'm able to open it with UltraEdit or other editor (my second choice is MicroEMACS, freeware comming from Unix). - Are the SQR process running in the same account name ? Are you opening the file thru the LAN (privilidge settings ?) or in a folder belonging to 'someone' else (again : priviledges) ? The stangest issue here is that you cannot copy&paste... You should be able to, unless you do not have the priviliedges.... IMHO, as far as I know, etc (std disclaimer ;-) Hope this helps !!! Charly _________________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.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-admin@sqrug.org Wed Jan 21 09:46:39 2004 Date: Wed, 21 Jan 2004 14:45:22 +0000 (GMT) From: =?iso-8859-1?q?Jinesh=20Shah?= Subject: [sqr-users] Re: [sqr-users]Exporting SQR Report through Report Viewer..not Working Hi Leblanc, Thanks for your reply. I'll check that and let you inform. Regards Jinesh --- LEBLANC Philippe FTC wrote: > Oh, you must have writing rights to the current > directory where you opened the .SPF file > because the 'save as .CSV' menu of SQR viewer do the > conversion in the same directory !!! > > > Je reste à votre disposition pour toute demande > d'information complémentaire. > > Cordialement, Philippe LEBLANC > France Télécom Câble > Direction Informatique > Cellule Finances & Statistiques > Assistance centralisée: 01.55.58.36.00 > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ________________________________________________________________________ Yahoo! India Mobile: Download the latest polyphonic ringtones. Go to http://in.mobile.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 21 10:13:30 2004 From: "Bambach, Tom" Subject: RE: [sqr-users] Using Call System to FTP on file on WINNT-and Peo pleSoft Date: Wed, 21 Jan 2004 10:12:46 -0500 Barb, create a file with contents like this: open 123.456.789.12 gtkps go4it ascii put T:\transfer\gcidvnd.txt /peoplesoft/gcidvnd.txt quit EXIT (use append instead of put if you want to append to the file if it exists - put and append will both create the file if it doesn't exist) this file could be created and written by your SQR program; assume that it is and that $local_file = 'T:\transfer\gcidvnd.txt' and that $ftp_file is the name of the above file close $ftp_file after writing it... then in your SQR program, do this: let $syscmd = 'FTP -s:' || $ftp_file CALL SYSTEM USING $syscmd #stat WAIT if #stat = 0 let $disp = 'FTP successful...' display $disp let #stat1 = delete($local_file) if #stat1 <> 0 let $disp = 'Error ' || to_char(#stat1) || ' deleting ' || $local_file display $disp end-if else let $disp = 'Error ' || to_char(#stat) || ' attempting FTP...' display $disp end-if end-if Tom > -----Original Message----- > From: bmrazek@sympatico.ca [SMTP:bmrazek@sympatico.ca] > Sent: Tuesday, January 20, 2004 3:11 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] Using Call System to FTP on file on WINNT-and > PeopleSoft > > Hi Everyone, > > I have read a few postings on this issue, and have tried recommended > changes, but nothing seems to be working for me. I an running an SQR > under PeopleSoft PIA (Web) that is using call system to ftp a file from NT > to the FTP site. The code works fine if I run it through SQRW, but when > running it through a PeopleSoft page, nothing happens. I don't believe I > am getting a valid status code either, as it is always 0, though from what > I read in the SQR manuals, for NT, anything less than 32 is an error. > > Though my code is built dynamically in the SQR, ultimately, when call > system is executed, it looks like this: > > C:\WINNT\system32\cmd.exe /c ftp -n > -s:\\scanty\psoftfm\\FMDEV\user\upload\fms_ftpout.bat > > As stated, this works fine from the "run" command in windows, and also > running through SQRW, but running it from within peoplesoft results in no > results :-) > > Any suggestions would be greatly appreciated. > > Barb > > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 21 12:25:40 2004 From: Subject: Re: RE: [sqr-users] Using Call System to FTP on file on WINNT-and Peo pleSoft Date: Wed, 21 Jan 2004 12:22:54 -0500 Thanks for all your assistance. As it turns out it was firewall issue, the development environment did not have access to the ftp environment, go figure, hey? :-) Barb > > From: "Bambach, Tom" > Date: 2004/01/21 Wed AM 10:12:46 EST > To: sqr-users@sqrug.org > Subject: RE: [sqr-users] Using Call System to FTP on file on WINNT-and Peo > pleSoft > > Barb, > > create a file with contents like this: > > open 123.456.789.12 > gtkps > go4it > ascii > put T:\transfer\gcidvnd.txt /peoplesoft/gcidvnd.txt > > quit > EXIT > > (use append instead of put if you want to append to the file if it > exists - put and append will both create the file if it doesn't exist) > > this file could be created and written by your SQR program; assume > that it is and that $local_file = 'T:\transfer\gcidvnd.txt' > and that $ftp_file is the name of the above file > > close $ftp_file after writing it... > > then in your SQR program, do this: > > let $syscmd = 'FTP -s:' || $ftp_file > CALL SYSTEM USING $syscmd #stat WAIT > if #stat = 0 > let $disp = 'FTP successful...' > display $disp > > let #stat1 = delete($local_file) > if #stat1 <> 0 > let $disp = 'Error ' || to_char(#stat1) || ' deleting ' || $local_file > display $disp > end-if > > else > let $disp = 'Error ' || to_char(#stat) || ' attempting FTP...' > display $disp > end-if > end-if > > Tom > > > > -----Original Message----- > > From: bmrazek@sympatico.ca [SMTP:bmrazek@sympatico.ca] > > Sent: Tuesday, January 20, 2004 3:11 PM > > To: sqr-users@sqrug.org > > Subject: [sqr-users] Using Call System to FTP on file on WINNT-and > > PeopleSoft > > > > Hi Everyone, > > > > I have read a few postings on this issue, and have tried recommended > > changes, but nothing seems to be working for me. I an running an SQR > > under PeopleSoft PIA (Web) that is using call system to ftp a file from NT > > to the FTP site. The code works fine if I run it through SQRW, but when > > running it through a PeopleSoft page, nothing happens. I don't believe I > > am getting a valid status code either, as it is always 0, though from what > > I read in the SQR manuals, for NT, anything less than 32 is an error. > > > > Though my code is built dynamically in the SQR, ultimately, when call > > system is executed, it looks like this: > > > > C:\WINNT\system32\cmd.exe /c ftp -n > > -s:\\scanty\psoftfm\\FMDEV\user\upload\fms_ftpout.bat > > > > As stated, this works fine from the "run" command in windows, and also > > running through SQRW, but running it from within peoplesoft results in no > > results :-) > > > > Any suggestions would be greatly appreciated. > > > > Barb > > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 21 12:34:26 2004 Date: Wed, 21 Jan 2004 12:32:18 -0500 From: "Hunsaker, Michael S" Subject: [sqr-users] ENCODE I'm trying to get my hands on all the possible values that can be encoded. I know that a TAB is <009> but not sure about the rest. I am especially trying to find out how to encode a comma (,). Does anyone have a list of values that can be encoded, or how I can find out? Thanks much, Mike _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 21 12:43:26 2004 Date: Wed, 21 Jan 2004 12:42:11 -0500 From: "Larry Roux" Subject: Re: [sqr-users] ENCODE Check out http://www.asciitable.com/ or search the web for ASCII table ****************************** Larry Roux Syracuse University lroux@syr.edu ******************************* >>> mhunsake@indiana.edu 01/21/04 12:32PM >>> I'm trying to get my hands on all the possible values that can be encoded. I know that a TAB is <009> but not sure about the rest. I am especially trying to find out how to encode a comma (,). Does anyone have a list of values that can be encoded, or how I can find out? Thanks much, Mike _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 21 12:45:09 2004 From: James Womeldorf Subject: RE: [sqr-users] ENCODE Date: Wed, 21 Jan 2004 11:42:35 -0600 Try http://www.cdrummond.qc.ca/cegep/informat/Professeurs/Alain/files/ascii.htm Jim -----Original Message----- From: Hunsaker, Michael S [mailto:mhunsake@indiana.edu] Sent: Wednesday, January 21, 2004 11:32 AM To: sqr-users@sqrug.org Subject: [sqr-users] ENCODE I'm trying to get my hands on all the possible values that can be encoded. I know that a TAB is <009> but not sure about the rest. I am especially trying to find out how to encode a comma (,). Does anyone have a list of values that can be encoded, or how I can find out? Thanks much, Mike _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 21 12:56:28 2004 From: "the dragon" Subject: RE: [sqr-users] ENCODE Date: Wed, 21 Jan 2004 11:55:35 -0600 try here http://www.jimprice.com/jim-asc.htm clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- I'm trying to get my hands on all the possible values that can be encoded. I know that a TAB is <009> but not sure about the rest. I am especially trying to find out how to encode a comma (,). Does anyone have a list of values that can be encoded, or how I can find out? Thanks much, Mike _________________________________________________________________ Check out the coupons and bargains on MSN Offers! http://shopping.msn.com/softcontent/softcontent.aspx?scmId=1418 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 21 13:11:27 2004 From: "Overcashier, Patricia" Date: Wed, 21 Jan 2004 13:09:54 -0500 Subject: [sqr-users] quick question about max files Up until now, I have not had an issue with max files. Now I am getting an error suggesting that I increase the variables in the max file. I am not using the -m flag, but tried it. I created a file on c:\temp\allmaxes.max and on line 1 put variables=500; I am sure my syntax is bad, but cannot find any other max files anywhere to compare against. When I run sqrw it says ' what the heck it that?' variable = 500; Any help on the correct syntax to place inside my max file would be appreciated. Thanks, Patti ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 21 13:20:26 2004 Subject: RE: [sqr-users] ENCODE Date: Wed, 21 Jan 2004 13:18:06 -0500 From: "Hunsaker, Michael S" Thanks all. I didn't piece together the fact the ENCODE values are simply ASCII characters. Thanks, Mike -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org] On Behalf Of James Womeldorf Sent: Wednesday, January 21, 2004 12:43 PM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] ENCODE Try http://www.cdrummond.qc.ca/cegep/informat/Professeurs/Alain/files/ascii. htm Jim -----Original Message----- From: Hunsaker, Michael S [mailto:mhunsake@indiana.edu] Sent: Wednesday, January 21, 2004 11:32 AM To: sqr-users@sqrug.org Subject: [sqr-users] ENCODE I'm trying to get my hands on all the possible values that can be encoded. I know that a TAB is <009> but not sure about the rest. I am especially trying to find out how to encode a comma (,). Does anyone have a list of values that can be encoded, or how I can find out? Thanks much, Mike _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Wed Jan 21 14:58:35 2004 Subject: Re: [sqr-users] quick question about max files From: Ramzi_Salameh@daveandbusters.com Date: Wed, 21 Jan 2004 12:57:27 -0600 Here's a list out of a max file we use: !CURSORS Max number of database cursors (SQLBase only) !DYNAMICARGS Max number of dynamic SQL arguments !EXPRESSIONSPACE Max length of temp string storage during LET operations !FORWARDREFS Max number of &column forward references !NUMVARIABLES Max number of numeric variables and literal values !ONBREAKS Max number of ON-BREAK LEVEL=values per SET !POSITIONS Max number of placement parameters, "(10,5,30)" !PROGLINEPARS Max number of arguments for all program lines !PROGLINES Max number of program lines (SQR commands) !QUERIES Max number of BEGIN-SQL and BEGIN-SELECT paragraphs !QUERYARGS Max number of bind variables for all SQL statements !SQLSIZE Max length of a SQL statement in characters !STRINGSPACE Max length of string space for program line arguments !SUBVARS Max number of run-time substitution variables !VARIABLES Max number of variables, literals and database columns !WHENS Max number of WHEN arguments allowed per EVALUATE ------------------------------------------------ Ramzi Salameh PeopleSoft Technical Analyst Dave & Busters, Inc. Voice (214) 904-2550 Fax (214) 350-0941 ------------------------------------------------ "Overcashier, Patricia" To: sqr-users@sqrug.org Subject: [sqr-users] quick question about max files Sent by: sqr-users-admin@sqr ug.org 01/21/04 12:09 PM Please respond to sqr-users Up until now, I have not had an issue with max files. Now I am getting an error suggesting that I increase the variables in the max file. I am not using the -m flag, but tried it. I created a file on c:\temp\allmaxes.max and on line 1 put variables=500; I am sure my syntax is bad, but cannot find any other max files anywhere to compare against. When I run sqrw it says ' what the heck it that?' variable = 500; Any help on the correct syntax to place inside my max file would be appreciated. Thanks, Patti ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.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-admin@sqrug.org Wed Jan 21 15:18:28 2004 Date: Wed, 21 Jan 2004 14:17:11 -0600 From: "Donna Randall" Subject: [sqr-users] sqr training Can anyone recommend SQR training in Dallas? We have two open positions for PL/SQL, Pro*C, COBOL, C Developers but the manager is insisting on experience with SQR. I may need to send some consultants to training. Donna Randall Technical Recruiter Systemware Professional Services 972-239-0200 800-535-8681 donna.randall@systemware.com www.systemware.com 15601 Dallas Parkway, Suite 150 Addison, Texas 75001 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 21 15:32:58 2004 From: "the dragon" Subject: RE: [sqr-users] sqr training Date: Wed, 21 Jan 2004 14:31:20 -0600 Or, you could hire qualified sqr people... SQR training does not make a qualified SQR programmer. just a thought. clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Can anyone recommend SQR training in Dallas? We have two open positions for PL/SQL, Pro*C, COBOL, C Developers but the manager is insisting on experience with SQR. I may need to send some consultants to training. Donna Randall Technical Recruiter Systemware Professional Services 972-239-0200 800-535-8681 donna.randall@systemware.com www.systemware.com 15601 Dallas Parkway, Suite 150 Addison, Texas 75001 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Let the new MSN Premium Internet Software make the most of your high-speed experience. http://join.msn.com/?pgmarket=en-us&page=byoa/prem&ST=1 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 21 16:21:36 2004 From: Ray Ontko Date: Wed, 21 Jan 2004 16:20:37 -0500 Subject: Re: [sqr-users] sqr training Donna, As far as I know, only Hyperion and PeopleSoft offer SQR training. Ray On Wed, Jan 21, 2004 at 02:17:11PM -0600, Donna Randall wrote: > Can anyone recommend SQR training in Dallas? > > We have two open positions for PL/SQL, Pro*C, COBOL, C Developers but the manager is insisting on experience with SQR. I may need to send some consultants to training. > > > > Donna Randall > Technical Recruiter > Systemware Professional Services > 972-239-0200 > 800-535-8681 > donna.randall@systemware.com > www.systemware.com > > 15601 Dallas Parkway, Suite 150 > Addison, Texas 75001 > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------------- Ray Ontko rayo@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788 Ray Ontko & Co. Software Consulting Services http://www.ontko.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Jan 21 23:25:29 2004 From: Al H Subject: Re: [sqr-users] Cannot open log files in progress under Windows Date: Wed, 21 Jan 2004 20:24:46 -0800 You didn't indicate if you are using the communication box or not. If that is an option, just make sure you aren't using -xcb in the command line or ini files. If you aren't and still don't see the box, try specifying -cb in the command line. Another possibility is from a dos command line, use a type command. On Tue, 20 Jan 2004 10:19:46 -0600, you wrote: >Hi group, > >We are running SQR 4.3.4 > >When we run SQRs under UNIX we are able to open the log files before the >report finishes. Very handy for checking on the progress of long-running >reports. >When we run them under Windows we are presented with a sharing violation >message when we attempt to look at the log files using UltraEdit or Notepad. > >Is there a way to observe these log files under Windows or is this a >'feature' of the DOS version of SQR? > >Thanks for your consideration, >Jim Womeldorf >Fastenal Company > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 22 02:01:39 2004 Date: Thu, 22 Jan 2004 01:01:51 -0600 From: "Rodrigo Martinez Ayala" Subject: [sqr-users] Brio sqr working with rexec but not locally in Solaris Hi: I'm using a SHELL SCRIPT to generate HTML and PDF output (-Printer:EP). The script is in a Unix server. When I use rexec to run the script, it works just fine. But when I make a telnet to unix server and run the script, it only produces pdf and a CSS file. NO HTML IS GENERATED!!! Any ideas? Greetings Rodrigo Martinez _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 22 08:28:47 2004 From: James Womeldorf Subject: RE: [sqr-users] Cannot open log files in progress under Windows Date: Thu, 22 Jan 2004 07:26:25 -0600 Thanks for the ideas Al, but neither worked. We are pretty sure it is a permissions issue rather than an SQR issue unless SQRW.EXE is opening the files in a locked manner. Thanks to all who have offered suggestions. Jim -----Original Message----- From: Al H [mailto:maillists@starbuckk.net] Sent: Wednesday, January 21, 2004 10:25 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Cannot open log files in progress under Windows You didn't indicate if you are using the communication box or not. If that is an option, just make sure you aren't using -xcb in the command line or ini files. If you aren't and still don't see the box, try specifying -cb in the command line. Another possibility is from a dos command line, use a type command. On Tue, 20 Jan 2004 10:19:46 -0600, you wrote: >Hi group, > >We are running SQR 4.3.4 > >When we run SQRs under UNIX we are able to open the log files before the >report finishes. Very handy for checking on the progress of long-running >reports. >When we run them under Windows we are presented with a sharing violation >message when we attempt to look at the log files using UltraEdit or Notepad. > >Is there a way to observe these log files under Windows or is this a >'feature' of the DOS version of SQR? > >Thanks for your consideration, >Jim Womeldorf >Fastenal Company > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 22 08:35:07 2004 From: "Schuster, Steven" Subject: RE: [sqr-users] Cannot open log files in progress under Windows Date: Thu, 22 Jan 2004 08:35:38 -0500 Sorry for the delay in answering but this can't be done. Unlike UNIX , NT secures a file with permissions while it is being worked on. Until the process that started the file write is completely finished with it the file is locked at essentially the root level. That I am aware of there is no way to view the file in any standard mode. Stephen E. Schuster PeopleSoft Administrator 2000 Ashland Drive Ashland, KY 41101 Office Phone 606.920.7447 Cell Phone 606.831.4590 -----Original Message----- From: James Womeldorf [mailto:jwomeldo@fastenal.com] Sent: Thursday, January 22, 2004 8:26 AM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] Cannot open log files in progress under Windows Thanks for the ideas Al, but neither worked. We are pretty sure it is a permissions issue rather than an SQR issue unless SQRW.EXE is opening the files in a locked manner. Thanks to all who have offered suggestions. Jim -----Original Message----- From: Al H [mailto:maillists@starbuckk.net] Sent: Wednesday, January 21, 2004 10:25 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Cannot open log files in progress under Windows You didn't indicate if you are using the communication box or not. If that is an option, just make sure you aren't using -xcb in the command line or ini files. If you aren't and still don't see the box, try specifying -cb in the command line. Another possibility is from a dos command line, use a type command. On Tue, 20 Jan 2004 10:19:46 -0600, you wrote: >Hi group, > >We are running SQR 4.3.4 > >When we run SQRs under UNIX we are able to open the log files before the >report finishes. Very handy for checking on the progress of long-running >reports. >When we run them under Windows we are presented with a sharing violation >message when we attempt to look at the log files using UltraEdit or Notepad. > >Is there a way to observe these log files under Windows or is this a >'feature' of the DOS version of SQR? > >Thanks for your consideration, >Jim Womeldorf >Fastenal Company > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Thu Jan 22 09:39:31 2004 From: Peter Burton Date: Thu, 22 Jan 2004 05:41:21 -0800 Subject: RE: [sqr-users] Cannot open log files in progress under Windows This is a multi-part message in MIME format... ----=_NextPart_ST_09_38_17_Thursday_January_22_2004_5659 Content-Type: text/plain James, When using "notepad" and "edit" I do not get any sharing violation. Both let me look at the file but will not allow me to write any updates to it. When using "write" I get a warning that "the file is in use by another application and cannot be accessed". This is action is correct because SQR opens the file in a non-sharing mode to prevent any other application from writing to it while it has it open. I am running as a user with Administrator privs on a Windows 2000 platform. Peter > -----Original Message----- > From: sqr-users-admin@sqrug.org@HYPERION On Behalf Of James > Womeldorf > Sent: Thursday, January 22, 2004 8:26 AM > To: 'sqr-users@sqrug.org' > Subject: RE: [sqr-users] Cannot open log files in progress under > Windows > > Thanks for the ideas Al, but neither worked. > We are pretty sure it is a permissions issue rather than an SQR issue > unless > SQRW.EXE is opening the files in a locked manner. > Thanks to all who have offered suggestions. > Jim > > -----Original Message----- > From: Al H [mailto:maillists@starbuckk.net > ] > Sent: Wednesday, January 21, 2004 10:25 PM > To: sqr-users@sqrug.org > Subject: Re: [sqr-users] Cannot open log files in progress under Windows > > > You didn't indicate if you are using the communication box or not. If > that is an option, just make sure you aren't using -xcb in the command > line or ini files. If you aren't and still don't see the box, try > specifying -cb in the command line. > > Another possibility is from a dos command line, use a type command. > > On Tue, 20 Jan 2004 10:19:46 -0600, you wrote: > > >Hi group, > > > >We are running SQR 4.3.4 > > > >When we run SQRs under UNIX we are able to open the log files before the > >report finishes. Very handy for checking on the progress of long-running > >reports. > >When we run them under Windows we are presented with a sharing violation > >message when we attempt to look at the log files using UltraEdit or > Notepad. > > > >Is there a way to observe these log files under Windows or is this a > >'feature' of the DOS version of SQR? > > > >Thanks for your consideration, > >Jim Womeldorf > >Fastenal Company > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > ************************************************************************ If you have received this e-mail in error, please delete it and notify the sender as soon as possible. The contents of this e-mail may be confidential and the unauthorized use, copying, or dissemination of it and any attachments to it, is prohibited. Internet communications are not secure and Hyperion does not, therefore, accept legal responsibility for the contents of this message nor for any damage caused by viruses. The views expressed here do not necessarily represent those of Hyperion. For more information about Hyperion, please visit our Web site at www.hyperion.com ----=_NextPart_ST_09_38_17_Thursday_January_22_2004_5659 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/ms-tnef' MIME type. It has been automatically discarded before sending the message to the list. ----=_NextPart_ST_09_38_17_Thursday_January_22_2004_5659-- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 22 09:56:07 2004 Date: Thu, 22 Jan 2004 09:53:21 -0500 From: "White, Denise" Subject: [sqr-users] RE: quick question about max files Hi Patti, I took a look at our max file. It has VARIABLES=6000. I don't know if case matters. What I notice in your message, although it may be a typo, is that you say that you put "variables=500", but what you say it is echoing back is "variable= 500", with no "s" and a space before the 500. You need the "s", and maybe need to take out the space, if that is what you have. HTH, Denise M. White Sr. Software Engineer Vicor --__--__-- Message: 9 From: "Overcashier, Patricia" To: sqr-users@sqrug.org Date: Wed, 21 Jan 2004 13:09:54 -0500 Subject: [sqr-users] quick question about max files Reply-To: sqr-users@sqrug.org Up until now, I have not had an issue with max files. Now I am getting an error suggesting that I increase the variables in the max file. I am not using the -m flag, but tried it. I created a file on c:\temp\allmaxes.max and on line 1 put variables=500; I am sure my syntax is bad, but cannot find any other max files anywhere to compare against. When I run sqrw it says ' what the heck it that?' variable = 500; Any help on the correct syntax to place inside my max file would be appreciated. Thanks, Patti _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 22 10:00:07 2004 Subject: RE: [sqr-users] sqr training Date: Thu, 22 Jan 2004 08:58:56 -0600 From: "Donna Randall" I can't find any local candidates with solid Oracle, PL/SQL and SQR. If I could that would be my first choice. -----Original Message----- From: the dragon [mailto:ceprn@hotmail.com] Sent: Wednesday, January 21, 2004 2:31 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] sqr training Or, you could hire qualified sqr people... SQR training does not make a qualified SQR programmer. just a thought. clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Can anyone recommend SQR training in Dallas? We have two open positions for PL/SQL, Pro*C, COBOL, C Developers but the manager is insisting on experience with SQR. I may need to send some consultants to training. Donna Randall Technical Recruiter Systemware Professional Services 972-239-0200 800-535-8681 donna.randall@systemware.com www.systemware.com 15601 Dallas Parkway, Suite 150 Addison, Texas 75001 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Let the new MSN Premium Internet Software make the most of your high-speed experience. http://join.msn.com/?pgmarket=en-us&page=byoa/prem&ST=1 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 22 10:01:05 2004 From: "Brandt, Fred" Date: Thu, 22 Jan 2004 16:00:36 +0100 Subject: [sqr-users] On-break (lowest level identical while level above breaks) Hi, System: Peoplesoft 7.5 HRM Database: MsSQL 7.0 SQR: 4.3.4 In my code I use ON-BREAK with three levels. The data is in an array and is selected by a begin-select. In this select-statement is a WHILE-construction to get all the data from the array row by row. The lowest level (level=3) in the ON-BREAK-statement can be empty (value = ""). I will show a part of the code: ********************************************************************* let #idx4 = 0 begin-select loops=1 'X' WHILE #idx4 <= #ar_rs_total_records get $divisie_id_rs $divisie_descr_rs $afdeling_id_rs $afdeling_descr_rs $groep_id_rs $groep_descr_rs $emplid_rs $sex_rs #fte_rs #teller_zv_emplid_rs #freq_rs #noemer_zv_emplid_rs #noemer_zd_emplid_rs #teller_zd_emplid_rs from result(#idx4) ar_rs_divisie_id ar_rs_divisie_descr ar_rs_afdeling_id ar_rs_afdeling_descr ar_rs_groep_id ar_rs_groep_descr ar_rs_Emplid ar_rs_Sex ar_rs_fte ar_rs_teller_zv_emplid ar_rs_freq_emplid ar_rs_noemer_zv_emplid ar_rs_noemer_zd_emplid ar_rs_teller_zd_emplid let #idx4 = #idx4 + 1 print $divisie_descr_rs () ON-BREAK PRINT=never AFTER=DIV_BREAK LEVEL=1 SAVE=$OLD_DIV skiplines=1 print $afdeling_descr_rs () ON-BREAK PRINT=never BEFORE=set-teller AFTER=AFD_BREAK LEVEL=2 SAVE=$OLD_AFD skiplines=1 print $groep_descr_rs () ON-BREAK PRINT=never AFTER=GRP_BREAK LEVEL=3 SAVE=$OLD_GRP skiplines=1 do compute-totals END-WHILE from PS_ABS_TYPE_TBL end-select ************************************************************************ NB: structure of the data in the array concerning the first 3 fields (i.e. the ON-BREAK-fields) : divisie_descr_rs afdeling_descr_rs groep_descr div1 afd1 grp1 div1 afd1 grp2 div1 afd2 "" = div1 afd3 "" = div2 afd4 grp6 etc. Result for div1: totals from afd2 and afd3 will be summarized, because there is no group-break on $groep_descr_rs. One possibility (work-around): fill the values with a value (for example '0' and the next empty value '1' and the next empty value '0' etc). In that case the BREAK will occur on the group-level (level=3). But in the rest of the code I have to make lots of adjustments if I choose this work-around. What I am looking for is a way to let SQR 'see' that when a break on a higher level occurs, it must automatically Break there, even when there is no break on a lower level. Can anyone help me? Thanks, Fred Brandt ================================================================== De informatie verzonden met dit e-mail bericht is vertrouwelijk en uitsluitend bestemd voor de geadresseerde. Indien bovenstaand e-mailbericht niet aan u is gericht, verzoeken wij u vriendelijk doch dringend het e-mailbericht te retourneren aan de verzender en het origineel en eventuele kopieen te verwijderen en te vernietigen. Gebruik van deze informatie door anderen dan de geadresseerde is verboden. Openbaarmaking, vermenigvuldiging, verspreiding en/of verstrekking van deze informatie aan derden is niet toegestaan. CZ staat niet in voor de juiste en volledige overbrenging van de inhoud van een verzonden e-mail, noch voor tijdige ontvangst daarvan. ================================================================== The information contained in this communication is confidential and may be legally privileged. If you are not the intended recipient of this communication please return the communication to the sender and delete and destroy all copies. It is intended solely for the use of the individual or entity to whom it is addressed and others authorised to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. CZ health insurance is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt. =================================================================== _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 22 10:15:08 2004 From: Peter Burton Subject: RE: [sqr-users] sqrext.dll Date: Thu, 22 Jan 2004 10:14:32 -0500 This is a multi-part message in MIME format... ------_=_NextPart_000_01C3E0FA.70482D10 Content-Type: text/plain Raj, SQREXT.DLL contains the UFUNC and UCALL modules. Look in the LIBW directory and you will find EXTUCALL.C EXTUFUNC.C SQRAPI.H SQREXT.MAK Peter > -----Original Message----- > From: sqr-users-admin@sqrug.org@HYPERION On Behalf Of "Raj > Srinivasan" > Sent: Thursday, January 22, 2004 10:16 AM > To: Sqr-Users@Sqrug. Org > Cc: Raj Srinivasan > Subject: [sqr-users] sqrext.dll > > Hi: > > Aprreciate feedback from anyone who knows what "sqrext.dll" does? > > Thanks, > > Raj > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > ------_=_NextPart_000_01C3E0FA.70482D10 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/ms-tnef' MIME type. It has been automatically discarded before sending the message to the list. ------_=_NextPart_000_01C3E0FA.70482D10-- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 22 10:07:09 2004 From: "Raj Srinivasan" Date: Thu, 22 Jan 2004 09:15:51 -0600 Subject: [sqr-users] sqrext.dll Hi: Aprreciate feedback from anyone who knows what "sqrext.dll" does? Thanks, Raj _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 22 10:25:07 2004 Subject: RE: [sqr-users] sqr training Date: Thu, 22 Jan 2004 10:23:16 -0500 From: "Hunsaker, Michael S" I would look on the PeopleSoft Pros web site for some qualified SQR folks. There are quite a few out there. The dragon was right...I've had SQR training and I'm not qualified! Mike -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org] On Behalf Of Donna Randall Sent: Thursday, January 22, 2004 9:59 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] sqr training I can't find any local candidates with solid Oracle, PL/SQL and SQR. If I could that would be my first choice. -----Original Message----- From: the dragon [mailto:ceprn@hotmail.com] Sent: Wednesday, January 21, 2004 2:31 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] sqr training Or, you could hire qualified sqr people... SQR training does not make a qualified SQR programmer. just a thought. clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Can anyone recommend SQR training in Dallas? We have two open positions for PL/SQL, Pro*C, COBOL, C Developers but the manager is insisting on experience with SQR. I may need to send some consultants to training. Donna Randall Technical Recruiter Systemware Professional Services 972-239-0200 800-535-8681 donna.randall@systemware.com www.systemware.com 15601 Dallas Parkway, Suite 150 Addison, Texas 75001 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ Let the new MSN Premium Internet Software make the most of your high-speed experience. http://join.msn.com/?pgmarket=en-us&page=byoa/prem&ST=1 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 22 10:56:14 2004 From: James Womeldorf Subject: RE: [sqr-users] Cannot open log files in progress under Windows Date: Thu, 22 Jan 2004 09:55:19 -0600 Thanks Peter, I'll forward that to our admins. Jim -----Original Message----- From: Peter Burton [mailto:Peter_Burton@hyperion.com] Sent: Thursday, January 22, 2004 7:41 AM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] Cannot open log files in progress under Windows James, When using "notepad" and "edit" I do not get any sharing violation. Both let me look at the file but will not allow me to write any updates to it. When using "write" I get a warning that "the file is in use by another application and cannot be accessed". This is action is correct because SQR opens the file in a non-sharing mode to prevent any other application from writing to it while it has it open. I am running as a user with Administrator privs on a Windows 2000 platform. Peter > -----Original Message----- > From: sqr-users-admin@sqrug.org@HYPERION On Behalf Of James > Womeldorf > Sent: Thursday, January 22, 2004 8:26 AM > To: 'sqr-users@sqrug.org' > Subject: RE: [sqr-users] Cannot open log files in progress under > Windows > > Thanks for the ideas Al, but neither worked. > We are pretty sure it is a permissions issue rather than an SQR issue > unless > SQRW.EXE is opening the files in a locked manner. > Thanks to all who have offered suggestions. > Jim > > -----Original Message----- > From: Al H [mailto:maillists@starbuckk.net > ] > Sent: Wednesday, January 21, 2004 10:25 PM > To: sqr-users@sqrug.org > Subject: Re: [sqr-users] Cannot open log files in progress under Windows > > > You didn't indicate if you are using the communication box or not. If > that is an option, just make sure you aren't using -xcb in the command > line or ini files. If you aren't and still don't see the box, try > specifying -cb in the command line. > > Another possibility is from a dos command line, use a type command. > > On Tue, 20 Jan 2004 10:19:46 -0600, you wrote: > > >Hi group, > > > >We are running SQR 4.3.4 > > > >When we run SQRs under UNIX we are able to open the log files before the > >report finishes. Very handy for checking on the progress of long-running > >reports. > >When we run them under Windows we are presented with a sharing violation > >message when we attempt to look at the log files using UltraEdit or > Notepad. > > > >Is there a way to observe these log files under Windows or is this a > >'feature' of the DOS version of SQR? > > > >Thanks for your consideration, > >Jim Womeldorf > >Fastenal Company > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > ************************************************************************ If you have received this e-mail in error, please delete it and notify the sender as soon as possible. The contents of this e-mail may be confidential and the unauthorized use, copying, or dissemination of it and any attachments to it, is prohibited. Internet communications are not secure and Hyperion does not, therefore, accept legal responsibility for the contents of this message nor for any damage caused by viruses. The views expressed here do not necessarily represent those of Hyperion. For more information about Hyperion, please visit our Web site at www.hyperion.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 22 11:27:09 2004 Date: Thu, 22 Jan 2004 21:58:46 +0530 From: "Vankina, Venkateswara Rao (Cognizant)" Subject: [sqr-users] (no subject) This is a multi-part message in MIME format... ------=_NextPartTM-000-fd889be7-69c2-4a2a-958c-e4faf330bf23 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 UkVNT1ZFDQo= ------=_NextPartTM-000-fd889be7-69c2-4a2a-958c-e4faf330bf23 Content-Type: text/plain; name="InterScan_Disclaimer.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="InterScan_Disclaimer.txt" This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com ------=_NextPartTM-000-fd889be7-69c2-4a2a-958c-e4faf330bf23-- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 22 11:48:36 2004 Date: Thu, 22 Jan 2004 10:47:43 -0600 From: Gar Longworth Subject: Re: [sqr-users] Nested Evaluate with multiple conditions??? Using an "or' condition between two "not-equals" will never get the results you want whether in an evaluate or a "if then else". I would think this would work, but I didn't test it: Evaluate &A When='1' Evaluate &B When='1' When='2' break When-other Do blah End-Evaluate End-Evaluate Harris, Sam wrote: >I think this sort of logic will better be handle in an "If then else" >construct. > > >-----Original Message----- >From: Darrel Scott [mailto:darrel_1977@yahoo.com] >Sent: Wednesday, December 17, 2003 5:49 PM >To: sqr-users@sqrug.org >Subject: [sqr-users] Nested Evaluate with multiple conditions??? > > > >Hello all - > >I'm trying to get this EVALUATE code to work.... > > Evaluate &A > When='1' > Evaluate &B > When!='1' > When!='2' > Do blah > End-Evaluate > End-Evaluate > >In a nutshell, if &A is equal to 1 and &B is NOT equal to 1 or 2 do "blah". > >What am I doing wrong? > >Thanks in advance. > > >--------------------------------- >Do you Yahoo!? >New Yahoo! Photos - easier uploading and sharing > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > > -- Gar Longworth IS Specialist, Application Development Information & Media Technologies University of Wisconsin - Milwaukee P. O. Box 413 Milwaukee, WI 53201 gpl@uwm.edu 414-229-6183 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 22 13:29:13 2004 Date: Thu, 22 Jan 2004 12:26:20 -0600 From: "Turner, Ivan" Subject: [sqr-users] Oracle Date Arithmetic I need to subtract 100 yrs from some dates. JD363258 14-FEB-2097 needs to be 14-FEB-1997 If I do an oracle query I get a March date in the correct year. I know this is due to leap year so I need to add a day for every day that's a leap year. Is there a quick and easy way to do this? select to_char(since_dt - 36500,dd-mon-yyyy') from ps_customer where cust_id = JD363258; SQL> / TO_CHAR(SIN ----------- 11-mar-1997 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 22 13:33:09 2004 Date: Thu, 22 Jan 2004 13:32:25 -0500 From: "George Jansen" Subject: Re: [sqr-users] Oracle Date Arithmetic SQL> select Sysdate as Today, add_months(Sysdate, -1200) as LongAgo 2 from dual; TODAY LONGAGO ----------- ----------- 22-JAN-2004 22-JAN-1904 SQL> _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 22 13:42:06 2004 Date: Thu, 22 Jan 2004 12:41:28 -0600 From: Bob.Melosi@edwardjones.com Subject: Re: [sqr-users] Oracle Date Arithmetic Try this select to_char(add_months(since_dt,-1200),'dd-mon-yyyy') from ps_customer where cust_id = JD363258; > I need to subtract 100 yrs from some dates. > JD363258 14-FEB-2097 > needs to be 14-FEB-1997 > > If I do an oracle query I get a March date in the correct year. I know > this is due to leap year so I need to add a day for every day that's a > leap year. > Is there a quick and easy way to do this? > > select to_char(since_dt - 36500,dd-mon-yyyy') > from ps_customer > where cust_id = JD363258; > SQL> / > > TO_CHAR(SIN > ----------- > 11-mar-1997 > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users Bob Melosi x5-8427 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 22 13:46:05 2004 From: "Poonam Auluck" Date: Thu, 22 Jan 2004 13:45:29 -0500 Subject: [sqr-users] Numbers not printing Hi SQRusers! I was wondering if anyone has run into the problem of numbers not printing out on reports. I have a report that is printing out character text, and then numbers, but for some reason, the numbers on the report do not print. But the text does. The problem occurs when one runs the report on a 3800 Sun Fire Server, with 4 GB RAM, 2 UltraSparc III CPUs (750MHz). The OS is Solaris 8 (UNIX). However, I cannot duplicate the problem on a Windows 2000 Server; Dell PowerEdge 2500, 4GB RAM. Has anyone experienced problems running reports between two servers/operating systems? The report prints the amounts using the numeric variable with an edit mask; Print #initiations ( , #INITIATIONS_SP ) edit 99,999,999,999.99 Any suggestions/ideas would be appreciated! Thanks! Poonam _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 22 15:15:31 2004 Date: Thu, 22 Jan 2004 12:13:30 -0800 (PST) From: Darrel Scott Subject: [sqr-users] Creating Comma Delimited Strings for "WHERE IN" statements Hello All... I'm trying to automate a SQL process using SQR. Up to this point, I've never had to deal with working with the "IN" portion of SQL within SQR. How do I pass a list of returned variables into a comma delimited string? Example: BEGIN-PROCEDURE ABC BEGIN-Select a.ID a.NBR &NBR Move &NBR to $NBR FROM TABLE A END-Select END-PROCEDURE Based on the above procedure, I need to format my $NBR string where it now becomes ('$NBR','$NBR','$NBR','$NBR',....) for however many instances of &NBR procedure ABC returns. This way I can then use the values in the below procedure... BEGIN-PROCEDURE ABC BEGIN-Select b.NBR b.TEXT FROM TABLE B WHERE b.NBR in ($NBR) END-Select END-PROCEDURE I will be doing this a few more times in my program and (for now) my values that I need passed into separate comma delimited strings are number values. Any assistance would be greatly appreciated. Thanks, Darrel --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 22 15:30:18 2004 Date: Thu, 22 Jan 2004 15:26:56 -0500 From: "Jamie Harris" Subject: Re: [sqr-users] Creating Comma Delimited Strings for "WHERE IN" statements See if this gets you close to where you need to be: BEGIN-PROCEDURE ABC BEGIN-Select a.ID a.NBR &NBR if ($NBR = '') let $NBR = &NBR ! Initialize the string the first time. else let $NBR = ', ' || &NBR ! Append other numbers to the first one. end-if show $NBR FROM TABLE A END-Select END-PROCEDURE ----------------------------------------------------- James Harris Junior Systems Programmer/Analyst Information Technology Division Frederick Community College ----------------------------------------------------- >>> darrel_1977@yahoo.com 1/22/2004 3:13:30 PM >>> Hello All... I'm trying to automate a SQL process using SQR. Up to this point, I've never had to deal with working with the "IN" portion of SQL within SQR. How do I pass a list of returned variables into a comma delimited string? Example: BEGIN-PROCEDURE ABC BEGIN-Select a.ID a.NBR &NBR Move &NBR to $NBR FROM TABLE A END-Select END-PROCEDURE Based on the above procedure, I need to format my $NBR string where it now becomes ('$NBR','$NBR','$NBR','$NBR',....) for however many instances of &NBR procedure ABC returns. This way I can then use the values in the below procedure... BEGIN-PROCEDURE ABC BEGIN-Select b.NBR b.TEXT FROM TABLE B WHERE b.NBR in ($NBR) END-Select END-PROCEDURE I will be doing this a few more times in my program and (for now) my values that I need passed into separate comma delimited strings are number values. Any assistance would be greatly appreciated. Thanks, Darrel --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 22 15:28:09 2004 Subject: RE: [sqr-users] Creating Comma Delimited Strings for "WHERE IN" statements Date: Thu, 22 Jan 2004 14:27:05 -0600 From: "Knapp, Richard" Set the string up to have a '(' before your program enters its initial select. Then concatenate a single quote, the &NBR, another single quote and a comma. At the end of the initial select (before you call the second select) strip off the last comma and adsd ')'. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Darrel Scott Sent: Thursday, January 22, 2004 2:14 PM To: sqr-users@sqrug.org Subject: [sqr-users] Creating Comma Delimited Strings for "WHERE IN" statements Hello All... I'm trying to automate a SQL process using SQR. Up to this point, I've never had to deal with working with the "IN" portion of SQL within SQR. How do I pass a list of returned variables into a comma delimited string? Example: BEGIN-PROCEDURE ABC BEGIN-Select a.ID a.NBR &NBR Move &NBR to $NBR FROM TABLE A END-Select END-PROCEDURE Based on the above procedure, I need to format my $NBR string where it now becomes ('$NBR','$NBR','$NBR','$NBR',....) for however many instances of &NBR procedure ABC returns. This way I can then use the values in the below procedure... BEGIN-PROCEDURE ABC BEGIN-Select b.NBR b.TEXT FROM TABLE B WHERE b.NBR in ($NBR) END-Select END-PROCEDURE I will be doing this a few more times in my program and (for now) my values that I need passed into separate comma delimited strings are number values. Any assistance would be greatly appreciated. Thanks, Darrel --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 22 15:33:05 2004 Date: Thu, 22 Jan 2004 15:31:46 -0500 From: "George Jansen" Subject: RE: [sqr-users] Creating Comma Delimited Strings for "WHERE IN" statements Why not Begin-Select b.NBR FROM table_b WHERE b.NBR IN (SELECT a.nbr FROM table_a a) End-Select ??? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 22 15:39:09 2004 Date: Thu, 22 Jan 2004 15:38:30 -0500 From: don.barclay@srs.gov Subject: Re: [sqr-users] Creating Comma Delimited Strings for "WHERE IN" statements This should do the trick... BEGIN-PROCEDURE ABC let $FirstPass = 'Y' BEGIN-Select a.ID a.NBR &NBR if $FirstPass = 'Y' let $FirstPass = 'N' let $NBR = '(''' || &NBR else let $NBR = $NBR || ''',''' || &NBR end-if FROM TABLE A END-Select if $FirstPass = 'N' let $NBR = $NBR || ''')' end-if show $NBR END-PROCEDURE BEGIN-PROCEDURE ABC BEGIN-Select b.NBR b.TEXT FROM TABLE B WHERE b.NBR in [$NBR] END-Select END-PROCEDURE sqr-users-admin@sqrug.org wrote on 01/22/2004 03:13:30 PM: > > Hello All... > > I'm trying to automate a SQL process using SQR. Up to this point, > I've never had to deal with working with the "IN" portion of SQL > within SQR. How do I pass a list of returned variables into a comma > delimited string? Example: > > BEGIN-PROCEDURE ABC > BEGIN-Select > a.ID > a.NBR &NBR > Move &NBR to $NBR > FROM TABLE A > END-Select > END-PROCEDURE > > Based on the above procedure, I need to format my $NBR string where > it now becomes ('$NBR','$NBR','$NBR','$NBR',....) for however many > instances of &NBR procedure ABC returns. This way I can then use the > values in the below procedure... > > BEGIN-PROCEDURE ABC > BEGIN-Select > b.NBR > b.TEXT > FROM TABLE B > WHERE b.NBR in ($NBR) > END-Select > END-PROCEDURE > > I will be doing this a few more times in my program and (for now) my > values that I need passed into separate comma delimited strings are > number values. > > Any assistance would be greatly appreciated. > > Thanks, > Darrel _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 22 15:51:20 2004 Date: Thu, 22 Jan 2004 12:50:17 -0800 (PST) From: Darrel Scott Subject: RE: [sqr-users] Creating Comma Delimited Strings for "WHERE IN" statements George - It's not that simple. I "simplified" the query for example purposes only. I'm gonna try some of the suggestions I've received so far and post my results. Thanks, Darrel George Jansen wrote: Why not Begin-Select b.NBR FROM table_b WHERE b.NBR IN (SELECT a.nbr FROM table_a a) End-Select ??? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 22 15:57:08 2004 Date: Thu, 22 Jan 2004 12:55:58 -0800 (PST) From: Darrel Scott Subject: Re: [sqr-users] Creating Comma Delimited Strings for "WHERE IN" statements I tried this and I get the below error: "(SQR 4048) Function or operator '||' must be a string or date argument." Jamie Harris wrote: See if this gets you close to where you need to be: BEGIN-PROCEDURE ABC BEGIN-Select a.ID a.NBR &NBR if ($NBR = '') let $NBR = &NBR ! Initialize the string the first time. else let $NBR = ', ' || &NBR ! Append other numbers to the first one. end-if show $NBR FROM TABLE A END-Select END-PROCEDURE ----------------------------------------------------- James Harris Junior Systems Programmer/Analyst Information Technology Division Frederick Community College ----------------------------------------------------- >>> darrel_1977@yahoo.com 1/22/2004 3:13:30 PM >>> Hello All... I'm trying to automate a SQL process using SQR. Up to this point, I've never had to deal with working with the "IN" portion of SQL within SQR. How do I pass a list of returned variables into a comma delimited string? Example: BEGIN-PROCEDURE ABC BEGIN-Select a.ID a.NBR &NBR Move &NBR to $NBR FROM TABLE A END-Select END-PROCEDURE Based on the above procedure, I need to format my $NBR string where it now becomes ('$NBR','$NBR','$NBR','$NBR',....) for however many instances of &NBR procedure ABC returns. This way I can then use the values in the below procedure... BEGIN-PROCEDURE ABC BEGIN-Select b.NBR b.TEXT FROM TABLE B WHERE b.NBR in ($NBR) END-Select END-PROCEDURE I will be doing this a few more times in my program and (for now) my values that I need passed into separate comma delimited strings are number values. Any assistance would be greatly appreciated. Thanks, Darrel --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 22 16:04:32 2004 Date: Thu, 22 Jan 2004 13:03:09 -0800 (PST) From: Darrel Scott Subject: Re: [sqr-users] Creating Comma Delimited Strings for "WHERE IN" statements Don - Thanks, but I tried your suggestion and also received the below error (upon compiling): "(SQR 4048) Function or operator '||' must be a string or date argument." - Darrel don.barclay@srs.gov wrote: This should do the trick... BEGIN-PROCEDURE ABC let $FirstPass = 'Y' BEGIN-Select a.ID a.NBR &NBR if $FirstPass = 'Y' let $FirstPass = 'N' let $NBR = '(''' || &NBR else let $NBR = $NBR || ''',''' || &NBR end-if FROM TABLE A END-Select if $FirstPass = 'N' let $NBR = $NBR || ''')' end-if show $NBR END-PROCEDURE BEGIN-PROCEDURE ABC BEGIN-Select b.NBR b.TEXT FROM TABLE B WHERE b.NBR in [$NBR] END-Select END-PROCEDURE sqr-users-admin@sqrug.org wrote on 01/22/2004 03:13:30 PM: > > Hello All... > > I'm trying to automate a SQL process using SQR. Up to this point, > I've never had to deal with working with the "IN" portion of SQL > within SQR. How do I pass a list of returned variables into a comma > delimited string? Example: > > BEGIN-PROCEDURE ABC > BEGIN-Select > a.ID > a.NBR &NBR > Move &NBR to $NBR > FROM TABLE A > END-Select > END-PROCEDURE > > Based on the above procedure, I need to format my $NBR string where > it now becomes ('$NBR','$NBR','$NBR','$NBR',....) for however many > instances of &NBR procedure ABC returns. This way I can then use the > values in the below procedure... > > BEGIN-PROCEDURE ABC > BEGIN-Select > b.NBR > b.TEXT > FROM TABLE B > WHERE b.NBR in ($NBR) > END-Select > END-PROCEDURE > > I will be doing this a few more times in my program and (for now) my > values that I need passed into separate comma delimited strings are > number values. > > Any assistance would be greatly appreciated. > > Thanks, > Darrel _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 22 16:07:27 2004 Date: Thu, 22 Jan 2004 13:06:11 -0800 (PST) From: Darrel Scott Subject: Re: Fw: [sqr-users] Creating Comma Delimited Strings for "WHERE IN" statements That did the trick!!! Thank you all. - Darrel don.barclay@srs.gov wrote: For a number, you have to use let $NBR = ', ' || to_char(&NBR) Don ----- Forwarded by Don Barclay/WSRC/Srs on 01/22/2004 04:02 PM ----- Darrel Scott Sent by: sqr-users-admin@sqrug.org 01/22/2004 03:55 PM Please respond to sqr-users@sqrug.org To sqr-users@sqrug.org cc Subject Re: [sqr-users] Creating Comma Delimited Strings for "WHERE IN" statements I tried this and I get the below error: "(SQR 4048) Function or operator '||' must be a string or date argument." Jamie Harris wrote: See if this gets you close to where you need to be: BEGIN-PROCEDURE ABC BEGIN-Select a.ID a.NBR &NBR if ($NBR = '') let $NBR = &NBR ! Initialize the string the first time. else let $NBR = ', ' || &NBR ! Append other numbers to the first one. end-if show $NBR FROM TABLE A END-Select END-PROCEDURE ----------------------------------------------------- James Harris Junior Systems Programmer/Analyst Information Technology Division Frederick Community College ----------------------------------------------------- >>> darrel_1977@yahoo.com 1/22/2004 3:13:30 PM >>> Hello All... I'm trying to automate a SQL process using SQR. Up to this point, I've never had to deal with working with the "IN" portion of SQL within SQR. How do I pass a list of returned variables into a comma delimited string? Example: BEGIN-PROCEDURE ABC BEGIN-Select a.ID a.NBR &NBR Move &NBR to $NBR FROM TABLE A END-Select END-PROCEDURE Based on the above procedure, I need to format my $NBR string where it now becomes ('$NBR','$NBR','$NBR','$NBR',....) for however many instances of &NBR procedure ABC returns. This way I can then use the values in the below procedure... BEGIN-PROCEDURE ABC BEGIN-Select b.NBR b.TEXT FROM TABLE B WHERE b.NBR in ($NBR) END-Select END-PROCEDURE I will be doing this a few more times in my program and (for now) my values that I need passed into separate comma delimited strings are number values. Any assistance would be greatly appreciated. Thanks, Darrel --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 22 16:11:29 2004 From: "Lynds,Rick" Subject: RE: [sqr-users] Creating Comma Delimited Strings for "WHERE IN" s tatements Date: Thu, 22 Jan 2004 13:10:30 -0800 You will have to use the "edit" function to convert the numeric value to a string i.e. BEGIN-PROCEDURE ABC let $FirstPass = 'Y' BEGIN-Select a.ID a.NBR &NBR if $FirstPass = 'Y' let $FirstPass = 'N' let $NBR = '(''' || edit(&NBR,'999.99') else let $NBR = $NBR || ''',''' || edit(&NBR,'999.99') end-if FROM TABLE A END-Select HTH.. Rick -----Original Message----- From: Darrel Scott [mailto:darrel_1977@yahoo.com] Sent: Thursday, January 22, 2004 1:03 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Creating Comma Delimited Strings for "WHERE IN" statements Don - Thanks, but I tried your suggestion and also received the below error (upon compiling): "(SQR 4048) Function or operator '||' must be a string or date argument." - Darrel don.barclay@srs.gov wrote: This should do the trick... BEGIN-PROCEDURE ABC let $FirstPass = 'Y' BEGIN-Select a.ID a.NBR &NBR if $FirstPass = 'Y' let $FirstPass = 'N' let $NBR = '(''' || &NBR else let $NBR = $NBR || ''',''' || &NBR end-if FROM TABLE A END-Select if $FirstPass = 'N' let $NBR = $NBR || ''')' end-if show $NBR END-PROCEDURE BEGIN-PROCEDURE ABC BEGIN-Select b.NBR b.TEXT FROM TABLE B WHERE b.NBR in [$NBR] END-Select END-PROCEDURE sqr-users-admin@sqrug.org wrote on 01/22/2004 03:13:30 PM: > > Hello All... > > I'm trying to automate a SQL process using SQR. Up to this point, > I've never had to deal with working with the "IN" portion of SQL > within SQR. How do I pass a list of returned variables into a comma > delimited string? Example: > > BEGIN-PROCEDURE ABC > BEGIN-Select > a.ID > a.NBR &NBR > Move &NBR to $NBR > FROM TABLE A > END-Select > END-PROCEDURE > > Based on the above procedure, I need to format my $NBR string where > it now becomes ('$NBR','$NBR','$NBR','$NBR',....) for however many > instances of &NBR procedure ABC returns. This way I can then use the > values in the below procedure... > > BEGIN-PROCEDURE ABC > BEGIN-Select > b.NBR > b.TEXT > FROM TABLE B > WHERE b.NBR in ($NBR) > END-Select > END-PROCEDURE > > I will be doing this a few more times in my program and (for now) my > values that I need passed into separate comma delimited strings are > number values. > > Any assistance would be greatly appreciated. > > Thanks, > Darrel _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 22 16:13:29 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] Creating Comma Delimited Strings for "WHERE IN" s tatements Date: Thu, 22 Jan 2004 13:11:23 -0800 If &NBR is a numeric field, you must convert it to a string before concatenating it; edit(&NBR, '999'). -----Original Message----- From: Darrel Scott [mailto:darrel_1977@yahoo.com] Sent: Thursday, January 22, 2004 1:03 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Creating Comma Delimited Strings for "WHERE IN" statements Don - Thanks, but I tried your suggestion and also received the below error (upon compiling): "(SQR 4048) Function or operator '||' must be a string or date argument." - Darrel don.barclay@srs.gov wrote: This should do the trick... BEGIN-PROCEDURE ABC let $FirstPass = 'Y' BEGIN-Select a.ID a.NBR &NBR if $FirstPass = 'Y' let $FirstPass = 'N' let $NBR = '(''' || &NBR else let $NBR = $NBR || ''',''' || &NBR end-if FROM TABLE A END-Select if $FirstPass = 'N' let $NBR = $NBR || ''')' end-if show $NBR END-PROCEDURE BEGIN-PROCEDURE ABC BEGIN-Select b.NBR b.TEXT FROM TABLE B WHERE b.NBR in [$NBR] END-Select END-PROCEDURE sqr-users-admin@sqrug.org wrote on 01/22/2004 03:13:30 PM: > > Hello All... > > I'm trying to automate a SQL process using SQR. Up to this point, > I've never had to deal with working with the "IN" portion of SQL > within SQR. How do I pass a list of returned variables into a comma > delimited string? Example: > > BEGIN-PROCEDURE ABC > BEGIN-Select > a.ID > a.NBR &NBR > Move &NBR to $NBR > FROM TABLE A > END-Select > END-PROCEDURE > > Based on the above procedure, I need to format my $NBR string where > it now becomes ('$NBR','$NBR','$NBR','$NBR',....) for however many > instances of &NBR procedure ABC returns. This way I can then use the > values in the below procedure... > > BEGIN-PROCEDURE ABC > BEGIN-Select > b.NBR > b.TEXT > FROM TABLE B > WHERE b.NBR in ($NBR) > END-Select > END-PROCEDURE > > I will be doing this a few more times in my program and (for now) my > values that I need passed into separate comma delimited strings are > number values. > > Any assistance would be greatly appreciated. > > Thanks, > Darrel _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 22 16:14:29 2004 From: "Alexander, Steve" Subject: RE: Fw: [sqr-users] Creating Comma Delimited Strings for "WHERE I N" statements Date: Thu, 22 Jan 2004 13:13:09 -0800 Careful, the to_char() function appends a decimal point and zeroes to an integer. -----Original Message----- From: Darrel Scott [mailto:darrel_1977@yahoo.com] Sent: Thursday, January 22, 2004 1:06 PM To: don.barclay@srs.gov Cc: sqr-users@sqrug.org Subject: Re: Fw: [sqr-users] Creating Comma Delimited Strings for "WHERE IN" statements That did the trick!!! Thank you all. - Darrel don.barclay@srs.gov wrote: For a number, you have to use let $NBR = ', ' || to_char(&NBR) Don ----- Forwarded by Don Barclay/WSRC/Srs on 01/22/2004 04:02 PM ----- Darrel Scott Sent by: sqr-users-admin@sqrug.org 01/22/2004 03:55 PM Please respond to sqr-users@sqrug.org To sqr-users@sqrug.org cc Subject Re: [sqr-users] Creating Comma Delimited Strings for "WHERE IN" statements I tried this and I get the below error: "(SQR 4048) Function or operator '||' must be a string or date argument." Jamie Harris wrote: See if this gets you close to where you need to be: BEGIN-PROCEDURE ABC BEGIN-Select a.ID a.NBR &NBR if ($NBR = '') let $NBR = &NBR ! Initialize the string the first time. else let $NBR = ', ' || &NBR ! Append other numbers to the first one. end-if show $NBR FROM TABLE A END-Select END-PROCEDURE ----------------------------------------------------- James Harris Junior Systems Programmer/Analyst Information Technology Division Frederick Community College ----------------------------------------------------- >>> darrel_1977@yahoo.com 1/22/2004 3:13:30 PM >>> Hello All... I'm trying to automate a SQL process using SQR. Up to this point, I've never had to deal with working with the "IN" portion of SQL within SQR. How do I pass a list of returned variables into a comma delimited string? Example: BEGIN-PROCEDURE ABC BEGIN-Select a.ID a.NBR &NBR Move &NBR to $NBR FROM TABLE A END-Select END-PROCEDURE Based on the above procedure, I need to format my $NBR string where it now becomes ('$NBR','$NBR','$NBR','$NBR',....) for however many instances of &NBR procedure ABC returns. This way I can then use the values in the below procedure... BEGIN-PROCEDURE ABC BEGIN-Select b.NBR b.TEXT FROM TABLE B WHERE b.NBR in ($NBR) END-Select END-PROCEDURE I will be doing this a few more times in my program and (for now) my values that I need passed into separate comma delimited strings are number values. Any assistance would be greatly appreciated. Thanks, Darrel --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 22 16:26:42 2004 Subject: Re: [sqr-users] Creating Comma Delimited Strings for "WHERE IN" statements From: rwulfson@bost.com Date: Thu, 22 Jan 2004 14:29:44 -0700 I just solved this problem for myself encode '<39>' into $tic then use the $tic this works for ' you'll need the ascii code for the , Thanks, Russ Wulfson Developer Boston Market Corporation Office: 303-216-5614 Fax: 303 -216- 8727 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 22 18:05:52 2004 From: "the dragon" Subject: RE: [sqr-users] Numbers not printing Date: Thu, 22 Jan 2004 17:04:44 -0600 put some show statements in a debug before you print. My guess is you have no numbers to print for some reason..... PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hi SQRusers! I was wondering if anyone has run into the problem of numbers not printing out on reports. I have a report that is printing out character text, and then numbers, but for some reason, the numbers on the report do not print. But the text does. The problem occurs when one runs the report on a 3800 Sun Fire Server, with 4 GB RAM, 2 UltraSparc III CPUs (750MHz). The OS is Solaris 8 (UNIX). However, I cannot duplicate the problem on a Windows 2000 Server; Dell PowerEdge 2500, 4GB RAM. Has anyone experienced problems running reports between two servers/operating systems? The report prints the amounts using the numeric variable with an edit mask; Print #initiations ( , #INITIATIONS_SP ) edit 99,999,999,999.99 Any suggestions/ideas would be appreciated! Thanks! Poonam _________________________________________________________________ Rethink your business approach for the new year with the helpful tips here. http://special.msn.com/bcentral/prep04.armx _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 23 00:46:08 2004 From: RGumbo@cottco.co.zw Subject: RE: [sqr-users] Nested Evaluate with multiple conditions??? Date: Fri, 23 Jan 2004 07:45:16 +0200 This construct will give you the outcome you want evaluate &B when = 1 let $ind = 'N' when = 2 let $ind = 'N' when-other if &A = 1 do my_procedure end-if end-evaluate -----Original Message----- From: Gar Longworth [mailto:gpl@uwm.edu] Sent: 22 January 2004 06:48 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Nested Evaluate with multiple conditions??? Using an "or' condition between two "not-equals" will never get the results you want whether in an evaluate or a "if then else". I would think this would work, but I didn't test it: Evaluate &A When='1' Evaluate &B When='1' When='2' break When-other Do blah End-Evaluate End-Evaluate Harris, Sam wrote: >I think this sort of logic will better be handle in an "If then else" >construct. > > >-----Original Message----- >From: Darrel Scott [mailto:darrel_1977@yahoo.com] >Sent: Wednesday, December 17, 2003 5:49 PM >To: sqr-users@sqrug.org >Subject: [sqr-users] Nested Evaluate with multiple conditions??? > > > >Hello all - > >I'm trying to get this EVALUATE code to work.... > > Evaluate &A > When='1' > Evaluate &B > When!='1' > When!='2' > Do blah > End-Evaluate > End-Evaluate > >In a nutshell, if &A is equal to 1 and &B is NOT equal to 1 or 2 do "blah". > >What am I doing wrong? > >Thanks in advance. > > >--------------------------------- >Do you Yahoo!? >New Yahoo! Photos - easier uploading and sharing > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users > > -- Gar Longworth IS Specialist, Application Development Information & Media Technologies University of Wisconsin - Milwaukee P. O. Box 413 Milwaukee, WI 53201 gpl@uwm.edu 414-229-6183 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 23 08:28:31 2004 Date: Fri, 23 Jan 2004 08:26:49 -0500 From: Nathan Stratton Treadway Subject: [sqr-users] Re: Brio sqr working with rexec but not locally in Solaris On Thu, Jan 22, 2004 at 01:01:51AM -0600, Rodrigo Martinez Ayala wrote: > I'm using a SHELL SCRIPT to generate HTML and PDF output > (-Printer:EP). The script is in a Unix server. When I use rexec to run > the script, it works just fine. But when I make a telnet to unix > server and run the script, it only produces pdf and a CSS file. NO > HTML IS GENERATED!!! It's hard to guess without more info on what exactly your script does, but the first thing I'd check is that your environment variables are getting set correctly. In particular, generating Enhanced HTML output requires that the SQRIBE_HOME or BRIO_HOME variable be set so that SQR can find the JRE it needs to run the HTML-generation routines. It may be that this variable is getting set correctly when you connect using "rexec" but not with "telnet". However, if that's not set SQR should give you an error message telling you so.... In fact, whatever the problem it's likely that SQR is giving you some error message, so make sure those messages are not getting redirected to a log file or something. If you can find such a message that should help you narrow things down. If you can't find any error message, I would probably try running each "sqr" or "sqrp" command found in the script file invidually (i.e. manually) from the command line and see if you can get an error message that way. Nathan ---------------------------------------------------------------------------- Nathan Stratton Treadway - nathanst@ontko.com - Mid-Atlantic region Ray Ontko & Co. - Software consulting services - http://www.ontko.com/ GPG Key: http://www.ontko.com/~nathanst/gpg_key.txt ID: 1023D/ECFB6239 Key fingerprint = 6AD8 485E 20B9 5C71 231C 0C32 15F3 ADCD ECFB 6239 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 23 09:45:10 2004 Date: Fri, 23 Jan 2004 09:43:19 -0500 From: "White, Denise" Subject: [sqr-users] RE: On-break (lowest level identical while level above breaks) Hi Fred, I'm not really sure how to help, as the way you have constructed the breaks appears to be correct, and your assumptions as to how they should work are also correct. If you have a break at level 2 (afd2 to afd3) without any break at level 3, it should still perform the break logic. First it would do the logic associated with your level 3 break, and then the logic associated with your level 2 break (i.e. it 'clears' all lower-level breaks ['lower-level' being those with a higher level #]). Could it be something in the break procedures themselves that is making it appear that there has been no break? I've never seen on-break used when retrieving data from an array, only with data returned from a select, but I assume from what you are saying that it is working in general with just this one problem. BTW, I was wondering as I read the beginning of your message how you could possibly be selecting data from an array with a begin-select. I am not sure if you abbreviated the logic when you wrote your message, but there is really no reason at all for you to have that begin-select procedure, as you are not actually selecting anything. You could do your array logic within a regular begin-procedure paragraph. Denise M. White Sr. Software Engineer Vicor --__--__-- Message: 6 From: "Brandt, Fred" To: "'sqr-users@sqrug.org'" Date: Thu, 22 Jan 2004 16:00:36 +0100 Subject: [sqr-users] On-break (lowest level identical while level above breaks) Reply-To: sqr-users@sqrug.org Hi, System: Peoplesoft 7.5 HRM Database: MsSQL 7.0 SQR: 4.3.4 In my code I use ON-BREAK with three levels. The data is in an array and is selected by a begin-select. In this select-statement is a WHILE-construction to get all the data from the array row by row. The lowest level (level=3) in the ON-BREAK-statement can be empty (value = ""). I will show a part of the code: ********************************************************************* let #idx4 = 0 begin-select loops=1 'X' WHILE #idx4 <= #ar_rs_total_records get $divisie_id_rs $divisie_descr_rs $afdeling_id_rs $afdeling_descr_rs $groep_id_rs $groep_descr_rs $emplid_rs $sex_rs #fte_rs #teller_zv_emplid_rs #freq_rs #noemer_zv_emplid_rs #noemer_zd_emplid_rs #teller_zd_emplid_rs from result(#idx4) ar_rs_divisie_id ar_rs_divisie_descr ar_rs_afdeling_id ar_rs_afdeling_descr ar_rs_groep_id ar_rs_groep_descr ar_rs_Emplid ar_rs_Sex ar_rs_fte ar_rs_teller_zv_emplid ar_rs_freq_emplid ar_rs_noemer_zv_emplid ar_rs_noemer_zd_emplid ar_rs_teller_zd_emplid let #idx4 = #idx4 + 1 print $divisie_descr_rs () ON-BREAK PRINT=never AFTER=DIV_BREAK LEVEL=1 SAVE=$OLD_DIV skiplines=1 print $afdeling_descr_rs () ON-BREAK PRINT=never BEFORE=set-teller AFTER=AFD_BREAK LEVEL=2 SAVE=$OLD_AFD skiplines=1 print $groep_descr_rs () ON-BREAK PRINT=never AFTER=GRP_BREAK LEVEL=3 SAVE=$OLD_GRP skiplines=1 do compute-totals END-WHILE from PS_ABS_TYPE_TBL end-select ************************************************************************ NB: structure of the data in the array concerning the first 3 fields (i.e. the ON-BREAK-fields) : divisie_descr_rs afdeling_descr_rs groep_descr div1 afd1 grp1 div1 afd1 grp2 div1 afd2 "" = div1 afd3 "" = div2 afd4 grp6 etc. Result for div1: totals from afd2 and afd3 will be summarized, because there is no group-break on $groep_descr_rs. One possibility (work-around): fill the values with a value (for example '0' and the next empty value '1' and the next empty value '0' etc). In that case the BREAK will occur on the group-level (level=3). But in the rest of the code I have to make lots of adjustments if I choose this work-around. What I am looking for is a way to let SQR 'see' that when a break on a higher level occurs, it must automatically Break there, even when there is no break on a lower level. Can anyone help me? Thanks, Fred Brandt _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 23 09:48:46 2004 Date: Fri, 23 Jan 2004 06:45:44 -0800 (PST) From: Dattatraya Shetty Subject: Re: [sqr-users] Creating Comma Delimited Strings for "WHERE IN" statements Hi I think your NBR is a Numeric Value, Try this let $NBR='(''' begin-select a.id &id a.nbr &nbr let $NBR = $NBR || to_char(&nbr) || ''',''' from table a end-select let $NBR = $NBR || ''')' --- Darrel Scott wrote: > Don - > > Thanks, but I tried your suggestion and also received the below error > (upon compiling): > > "(SQR 4048) Function or operator '||' must be a string or date > argument." > > - Darrel > > don.barclay@srs.gov wrote: > This should do the trick... > > BEGIN-PROCEDURE ABC > let $FirstPass = 'Y' > BEGIN-Select > a.ID > a.NBR &NBR > if $FirstPass = 'Y' > let $FirstPass = 'N' > let $NBR = '(''' || &NBR > else > let $NBR = $NBR || ''',''' || &NBR > end-if > FROM TABLE A > END-Select > if $FirstPass = 'N' > let $NBR = $NBR || ''')' > end-if > show $NBR > END-PROCEDURE > > BEGIN-PROCEDURE ABC > BEGIN-Select > b.NBR > b.TEXT > FROM TABLE B > WHERE b.NBR in [$NBR] > END-Select > END-PROCEDURE > > sqr-users-admin@sqrug.org wrote on 01/22/2004 03:13:30 PM: > > > > > Hello All... > > > > I'm trying to automate a SQL process using SQR. Up to this point, > > I've never had to deal with working with the "IN" portion of SQL > > within SQR. How do I pass a list of returned variables into a comma > > > delimited string? Example: > > > > BEGIN-PROCEDURE ABC > > BEGIN-Select > > a.ID > > a.NBR &NBR > > Move &NBR to $NBR > > FROM TABLE A > > END-Select > > END-PROCEDURE > > > > Based on the above procedure, I need to format my $NBR string where > > > it now becomes ('$NBR','$NBR','$NBR','$NBR',....) for however many > > instances of &NBR procedure ABC returns. This way I can then use > the > > values in the below procedure... > > > > BEGIN-PROCEDURE ABC > > BEGIN-Select > > b.NBR > > b.TEXT > > FROM TABLE B > > WHERE b.NBR in ($NBR) > > END-Select > > END-PROCEDURE > > > > I will be doing this a few more times in my program and (for now) > my > > values that I need passed into separate comma delimited strings are > > > number values. > > > > Any assistance would be greatly appreciated. > > > > Thanks, > > Darrel > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > --------------------------------- > Do you Yahoo!? > Yahoo! SiteBuilder - Free web site building tool. Try it! > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 23 11:45:53 2004 Date: Fri, 23 Jan 2004 11:43:30 -0500 (EST) From: Don Mellen Subject: Re: [sqr-users] RE: On-break (lowest level identical while level above breaks) Au contraire, mon ami (sorry for the poor french spelling). While the construct does look good and should be working, and I agree it's probably a problem in the break procedures... The begin-select is most necessary. On-break is tied to begin-select for some of it's logic (and won't even compile outside of a begin-select in some versions). Having a one row select (from dual for most oracle users) allows the on-break logic to be used for arrays or from reading a flat file. The only caveat being that your array or file needs to already be sorted in the order you need. On Fri, 23 Jan 2004, White, Denise wrote: > Hi Fred, > > I'm not really sure how to help, as the way you have constructed the > breaks appears to be correct, and your assumptions as to how they should > work are also correct. If you have a break at level 2 (afd2 to afd3) > without any break at level 3, it should still perform the break logic. > First it would do the logic associated with your level 3 break, and then > the logic associated with your level 2 break (i.e. it 'clears' all > lower-level breaks ['lower-level' being those with a higher level #]). > Could it be something in the break procedures themselves that is making > it appear that there has been no break? I've never seen on-break used > when retrieving data from an array, only with data returned from a > select, but I assume from what you are saying that it is working in > general with just this one problem. > > BTW, I was wondering as I read the beginning of your message how you > could possibly be selecting data from an array with a begin-select. I > am not sure if you abbreviated the logic when you wrote your message, > but there is really no reason at all for you to have that begin-select > procedure, as you are not actually selecting anything. You could do > your array logic within a regular begin-procedure paragraph. > > Denise M. White > Sr. Software Engineer > Vicor > --__--__-- > > Message: 6 > From: "Brandt, Fred" > To: "'sqr-users@sqrug.org'" > Date: Thu, 22 Jan 2004 16:00:36 +0100 > Subject: [sqr-users] On-break (lowest level identical while level above breaks) > Reply-To: sqr-users@sqrug.org > > Hi, > > System: > Peoplesoft 7.5 HRM > Database: MsSQL 7.0 > SQR: 4.3.4 > > In my code I use ON-BREAK with three levels. The data is in an array and is > selected by a begin-select. In this select-statement is a WHILE-construction > to get all the > data from the array row by row. > The lowest level (level=3) in the ON-BREAK-statement can be empty (value = > ""). > I will show a part of the code: > > ********************************************************************* > let #idx4 = 0 > > begin-select loops=1 > 'X' > WHILE #idx4 <= #ar_rs_total_records > get $divisie_id_rs $divisie_descr_rs $afdeling_id_rs $afdeling_descr_rs > $groep_id_rs $groep_descr_rs $emplid_rs $sex_rs #fte_rs #teller_zv_emplid_rs > > #freq_rs #noemer_zv_emplid_rs #noemer_zd_emplid_rs #teller_zd_emplid_rs > from result(#idx4) > ar_rs_divisie_id ar_rs_divisie_descr ar_rs_afdeling_id > ar_rs_afdeling_descr ar_rs_groep_id ar_rs_groep_descr ar_rs_Emplid ar_rs_Sex > ar_rs_fte ar_rs_teller_zv_emplid > ar_rs_freq_emplid ar_rs_noemer_zv_emplid ar_rs_noemer_zd_emplid > ar_rs_teller_zd_emplid > > let #idx4 = #idx4 + 1 > > print $divisie_descr_rs () ON-BREAK PRINT=never > AFTER=DIV_BREAK LEVEL=1 SAVE=$OLD_DIV skiplines=1 > print $afdeling_descr_rs () ON-BREAK PRINT=never BEFORE=set-teller > AFTER=AFD_BREAK LEVEL=2 SAVE=$OLD_AFD skiplines=1 > print $groep_descr_rs () ON-BREAK PRINT=never > AFTER=GRP_BREAK LEVEL=3 SAVE=$OLD_GRP skiplines=1 > > do compute-totals > END-WHILE > from PS_ABS_TYPE_TBL > end-select > > ************************************************************************ > > NB: structure of the data in the array concerning the first 3 fields (i.e. > the ON-BREAK-fields) : > divisie_descr_rs afdeling_descr_rs groep_descr > div1 afd1 grp1 > div1 afd1 grp2 > div1 afd2 "" = > div1 afd3 "" = > div2 afd4 grp6 > etc. > > Result for div1: totals from afd2 and afd3 will be summarized, because there > is no group-break on $groep_descr_rs. > > One possibility (work-around): fill the values with a value (for > example '0' and the next empty value '1' and the next empty value '0' etc). > In that case the BREAK will occur on the group-level (level=3). > But in the rest of the code I have to make lots of adjustments if I choose > this work-around. > What I am looking for is a way to let SQR 'see' that when a break on a > higher level occurs, it must automatically Break there, even when there is > no break on a lower level. > Can anyone help me? > > Thanks, > Fred Brandt > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 23 12:17:10 2004 From: "Hawkins, Paul" Date: Fri, 23 Jan 2004 12:13:03 -0500 Subject: [sqr-users] Check Signature Font, Logo Image, HP Printers - It just shouldn't be sooooo hard. My first post is a desperate call for assistance... We upgraded to PS 8.3 SP1, PT 8.20.02, SQR 4.3.4 and Oracle 9. During this upgrade last year, a consultant got our HR paycheck signature working on SQR PAY003. We continued to use FLOAD.EXE to send the MICR font and the Signature font to printer RAM as an HP soft printer font (.SFP). However, we were not sure "why or how" it works. So our CFO then leaves, and we have to change the signature... Here is where the nightmare, and investment of 60 some man hours of fruitless effort begins... We thought if we: 1. Created a new signature image (scanned 2 color .bmp file) 2. Created a true-type font (.ttf) using a font creator program 3. Converted to a soft printer font (.sfp) 4. Named it to be identical to the previous "working" signature font 5. Used FLOAD.EXE to send it to the printer (also used HP Web JetAdmin to send font and macro to printer) that we'd be home free... Apparently not! So we've explored countless posts in this user group related to check printing, and have tried countless variations that we saw posted. None of these seems to work. So off we go to PLAN B - lets just print the signature as an image file... Well, that appears to be a secret science as well. So many people report how they print images, and none of that works for us - none of it. We've done the "convert to HP-GL format too, and we get a partial image with thin lines all pointing to the upper right hand corner of the image. We've used Hiijack to create every file format we could find reference to, and nothing seems to work. How hard can it be to get a company logo to print? A JPG or BMP or TIF or PS file should be a cinch to print in most systems. Why not ours? Technical assistance? We paid for time, travel, and accommodations (well over $1500) to the company who upgraded us to send an "expert" to help us. He was here all day and never got anything to print... Even worked for Bottom Line before and supposedly new check font methodology. Is there anyone out there that has been down this path? Paul Hawkins HealthAlliance _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 23 12:44:07 2004 Subject: RE: [sqr-users] Check Signature Font, Logo Image, HP Printers - It just shouldn't be sooooo hard. Date: Fri, 23 Jan 2004 11:42:12 -0600 From: Paul, I am not sure what you have tried with the spf file : some points for spf file output will be to use the -NOLIS , -KEEP , -ZIV flags also if i am right there was some font criteria for spf file. you have to use particular font - font Times will surely work. I am not sure of any other font. ======================= Printing any image shouldn't be any hard : the sqr code will be like this : begin-setup declare-image logo Type = BMP-FILE Source = 'C:\company.BMP' end-declare end-setup begin-program Print-Image logo (1,1) etc.. ================== Let me know if you want more info. Rajib Sengupta Systems Analyst Peoplesoft Financial Consultant Conagra Business Systems Phone: 402-595-5749 -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Hawkins, Paul Sent: Friday, January 23, 2004 11:13 AM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Check Signature Font, Logo Image, HP Printers - It just shouldn't be sooooo hard. My first post is a desperate call for assistance... We upgraded to PS 8.3 SP1, PT 8.20.02, SQR 4.3.4 and Oracle 9. During this upgrade last year, a consultant got our HR paycheck signature working on SQR PAY003. We continued to use FLOAD.EXE to send the MICR font and the Signature font to printer RAM as an HP soft printer font (.SFP). However, we were not sure "why or how" it works. So our CFO then leaves, and we have to change the signature... Here is where the nightmare, and investment of 60 some man hours of fruitless effort begins... We thought if we: 1. Created a new signature image (scanned 2 color .bmp file) 2. Created a true-type font (.ttf) using a font creator program 3. Converted to a soft printer font (.sfp) 4. Named it to be identical to the previous "working" signature font 5. Used FLOAD.EXE to send it to the printer (also used HP Web JetAdmin to send font and macro to printer) that we'd be home free... Apparently not! So we've explored countless posts in this user group related to check printing, and have tried countless variations that we saw posted. None of these seems to work. So off we go to PLAN B - lets just print the signature as an image file... Well, that appears to be a secret science as well. So many people report how they print images, and none of that works for us - none of it. We've done the "convert to HP-GL format too, and we get a partial image with thin lines all pointing to the upper right hand corner of the image. We've used Hiijack to create every file format we could find reference to, and nothing seems to work. How hard can it be to get a company logo to print? A JPG or BMP or TIF or PS file should be a cinch to print in most systems. Why not ours? Technical assistance? We paid for time, travel, and accommodations (well over $1500) to the company who upgraded us to send an "expert" to help us. He was here all day and never got anything to print... Even worked for Bottom Line before and supposedly new check font methodology. Is there anyone out there that has been down this path? Paul Hawkins HealthAlliance _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 23 12:52:11 2004 From: "Schuster, Steven" Subject: RE: [sqr-users] Check Signature Font, Logo Image, HP Printers - I t just shouldn't be sooooo hard. Date: Fri, 23 Jan 2004 12:49:55 -0500 This isn't much of a help but we always sent our signatures in to a company who put them on a MICR Font catridge. We would then just wait for the catridge to come back to us, load in the new MICR code in PAY003 and away we were. Have you thought of just sending it in and getting it put on a MICR catridge for you. Of course if you do it that way you have to either dedicate a printer for paycheck printing (what we do) or remember to swap the catridge just before you print paychecks. Stephen E. Schuster PeopleSoft Administrator 2000 Ashland Drive Ashland, KY 41101 Office Phone 606.920.7447 Cell Phone 606.831.4590 -----Original Message----- From: Hawkins, Paul [mailto:phawkins@healthalliance.com] Sent: Friday, January 23, 2004 12:13 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Check Signature Font, Logo Image, HP Printers - It just shouldn't be sooooo hard. My first post is a desperate call for assistance... We upgraded to PS 8.3 SP1, PT 8.20.02, SQR 4.3.4 and Oracle 9. During this upgrade last year, a consultant got our HR paycheck signature working on SQR PAY003. We continued to use FLOAD.EXE to send the MICR font and the Signature font to printer RAM as an HP soft printer font (.SFP). However, we were not sure "why or how" it works. So our CFO then leaves, and we have to change the signature... Here is where the nightmare, and investment of 60 some man hours of fruitless effort begins... We thought if we: 1. Created a new signature image (scanned 2 color .bmp file) 2. Created a true-type font (.ttf) using a font creator program 3. Converted to a soft printer font (.sfp) 4. Named it to be identical to the previous "working" signature font 5. Used FLOAD.EXE to send it to the printer (also used HP Web JetAdmin to send font and macro to printer) that we'd be home free... Apparently not! So we've explored countless posts in this user group related to check printing, and have tried countless variations that we saw posted. None of these seems to work. So off we go to PLAN B - lets just print the signature as an image file... Well, that appears to be a secret science as well. So many people report how they print images, and none of that works for us - none of it. We've done the "convert to HP-GL format too, and we get a partial image with thin lines all pointing to the upper right hand corner of the image. We've used Hiijack to create every file format we could find reference to, and nothing seems to work. How hard can it be to get a company logo to print? A JPG or BMP or TIF or PS file should be a cinch to print in most systems. Why not ours? Technical assistance? We paid for time, travel, and accommodations (well over $1500) to the company who upgraded us to send an "expert" to help us. He was here all day and never got anything to print... Even worked for Bottom Line before and supposedly new check font methodology. Is there anyone out there that has been down this path? Paul Hawkins HealthAlliance _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 23 14:16:31 2004 From: Ray Ontko Date: Fri, 23 Jan 2004 14:14:22 -0500 Subject: Re: [sqr-users] Check Signature Font, Logo Image, HP Printers - It just shouldn't be sooooo hard. Paul, I wrote an SQR program a few years ago that converts a BMP file into an HPGL file suitable for use with SQR. You may be able to use this program if you're considering the PLAN B approach of converting a BMP file to HPGL and printing the file to an HP printer. Look for "bmp_to_hpg.sqr" on this page in the "Utilities" section: http://www.ontko.com/sqr/ http://www.ontko.com/sqr/#utilities There you'll find a sample usage program, input, and output files. The actual program is here: http://www.ontko.com/sqr/bmp_to_hpg.sqr Hope this helps. Ray On Fri, Jan 23, 2004 at 12:13:03PM -0500, Hawkins, Paul wrote: > My first post is a desperate call for assistance... > > We upgraded to PS 8.3 SP1, PT 8.20.02, SQR 4.3.4 and Oracle 9. During this > upgrade last year, a consultant got our HR paycheck signature working on SQR > PAY003. We continued to use FLOAD.EXE to send the MICR font and the > Signature font to printer RAM as an HP soft printer font (.SFP). However, we > were not sure "why or how" it works. > > So our CFO then leaves, and we have to change the signature... Here is where > the nightmare, and investment of 60 some man hours of fruitless effort > begins... > > We thought if we: > > 1. Created a new signature image (scanned 2 color .bmp file) > 2. Created a true-type font (.ttf) using a font creator program > 3. Converted to a soft printer font (.sfp) > 4. Named it to be identical to the previous "working" signature font > 5. Used FLOAD.EXE to send it to the printer (also used HP Web JetAdmin to > send font and macro to printer) > > that we'd be home free... Apparently not! > > So we've explored countless posts in this user group related to check > printing, and have tried countless variations that we saw posted. None of > these seems to work. > > So off we go to PLAN B - lets just print the signature as an image file... > Well, that appears to be a secret science as well. So many people report how > they print images, and none of that works for us - none of it. We've done > the "convert to HP-GL format too, and we get a partial image with thin lines > all pointing to the upper right hand corner of the image. We've used Hiijack > to create every file format we could find reference to, and nothing seems to > work. How hard can it be to get a company logo to print? A JPG or BMP or TIF > or PS file should be a cinch to print in most systems. Why not ours? > > Technical assistance? We paid for time, travel, and accommodations (well > over $1500) to the company who upgraded us to send an "expert" to help us. > He was here all day and never got anything to print... Even worked for > Bottom Line before and supposedly new check font methodology. > > Is there anyone out there that has been down this path? > > Paul Hawkins > HealthAlliance > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------------- Ray Ontko rayo@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788 Ray Ontko & Co. Software Consulting Services http://www.ontko.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 23 14:27:07 2004 Subject: RE: [sqr-users] Check Signature Font, Logo Image, HP Printers - It just shouldn't be sooooo hard. Date: Fri, 23 Jan 2004 13:25:28 -0600 From: "Knapp, Richard" This was our solution as well. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Schuster, Steven Sent: Friday, January 23, 2004 11:50 AM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] Check Signature Font, Logo Image, HP Printers - It just shouldn't be sooooo hard. This isn't much of a help but we always sent our signatures in to a company who put them on a MICR Font catridge. We would then just wait for the catridge to come back to us, load in the new MICR code in PAY003 and away we were. Have you thought of just sending it in and getting it put on a MICR catridge for you. Of course if you do it that way you have to either dedicate a printer for paycheck printing (what we do) or remember to swap the catridge just before you print paychecks. Stephen E. Schuster PeopleSoft Administrator 2000 Ashland Drive Ashland, KY 41101 Office Phone 606.920.7447 Cell Phone 606.831.4590 -----Original Message----- From: Hawkins, Paul [mailto:phawkins@healthalliance.com] Sent: Friday, January 23, 2004 12:13 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Check Signature Font, Logo Image, HP Printers - It just shouldn't be sooooo hard. My first post is a desperate call for assistance... We upgraded to PS 8.3 SP1, PT 8.20.02, SQR 4.3.4 and Oracle 9. During this upgrade last year, a consultant got our HR paycheck signature working on SQR PAY003. We continued to use FLOAD.EXE to send the MICR font and the Signature font to printer RAM as an HP soft printer font (.SFP). However, we were not sure "why or how" it works. So our CFO then leaves, and we have to change the signature... Here is where the nightmare, and investment of 60 some man hours of fruitless effort begins... We thought if we: 1. Created a new signature image (scanned 2 color .bmp file) 2. Created a true-type font (.ttf) using a font creator program 3. Converted to a soft printer font (.sfp) 4. Named it to be identical to the previous "working" signature font 5. Used FLOAD.EXE to send it to the printer (also used HP Web JetAdmin to send font and macro to printer) that we'd be home free... Apparently not! So we've explored countless posts in this user group related to check printing, and have tried countless variations that we saw posted. None of these seems to work. So off we go to PLAN B - lets just print the signature as an image file... Well, that appears to be a secret science as well. So many people report how they print images, and none of that works for us - none of it. We've done the "convert to HP-GL format too, and we get a partial image with thin lines all pointing to the upper right hand corner of the image. We've used Hiijack to create every file format we could find reference to, and nothing seems to work. How hard can it be to get a company logo to print? A JPG or BMP or TIF or PS file should be a cinch to print in most systems. Why not ours? Technical assistance? We paid for time, travel, and accommodations (well over $1500) to the company who upgraded us to send an "expert" to help us. He was here all day and never got anything to print... Even worked for Bottom Line before and supposedly new check font methodology. Is there anyone out there that has been down this path? Paul Hawkins HealthAlliance _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Fri Jan 23 18:32:37 2004 Subject: RE: [sqr-users] sqr training Date: Fri, 23 Jan 2004 18:31:21 -0500 From: "Ven Garlapati" This is a multi-part message in MIME format... ------_=_NextPart_001_01C3E209.02478E47 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 IA0KDQoJLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0gDQoJRnJvbTogRG9u bmEgUmFuZGFsbCBbbWFpbHRvOmRvbm5hLnJhbmRhbGxAc3lzdGVtd2FyZS5j b21dIA0KCVNlbnQ6IFRodSAxLzIyLzIwMDQgOTo1OCBBTSANCglUbzogc3Fy LXVzZXJzQHNxcnVnLm9yZyANCglDYzogDQoJU3ViamVjdDogUkU6IFtzcXIt dXNlcnNdIHNxciB0cmFpbmluZw0KCQ0KCQ0KDQoJSSBjYW4ndCBmaW5kIGFu eSBsb2NhbCBjYW5kaWRhdGVzIHdpdGggc29saWQgT3JhY2xlLCBQTC9TUUwg YW5kIFNRUi4gIElmIEkgY291bGQgdGhhdCB3b3VsZCBiZSBteSBmaXJzdCBj aG9pY2UuDQoJDQoJLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCglGcm9t OiB0aGUgZHJhZ29uIFttYWlsdG86Y2Vwcm5AaG90bWFpbC5jb21dDQoJU2Vu dDogV2VkbmVzZGF5LCBKYW51YXJ5IDIxLCAyMDA0IDI6MzEgUE0NCglUbzog c3FyLXVzZXJzQHNxcnVnLm9yZw0KCVN1YmplY3Q6IFJFOiBbc3FyLXVzZXJz XSBzcXIgdHJhaW5pbmcNCgkNCgkNCglPciwgeW91IGNvdWxkIGhpcmUgcXVh bGlmaWVkIHNxciBwZW9wbGUuLi4NCgkNCglTUVIgdHJhaW5pbmcgZG9lcyBu b3QgbWFrZSBhIHF1YWxpZmllZCBTUVIgcHJvZ3JhbW1lci4NCgkNCglqdXN0 IGEgIHRob3VnaHQuDQoJDQoJY2xhcmsgJ3RoZSBkcmFnb24nIHdpbGxpcw0K CQ0KCVBTQTogU2FsYXJ5IDw+IFNsYXZlcnkuICBJZiB5b3UgZWFybiBhIHNh bGFyeSwgeW91ciBlbXBsb3llciBpcyByZW50aW5nIHlvdXINCglzZXJ2aWNl cyBmb3IgNDAgaG91cnMgYSB3ZWVrLCBub3QgcHVyY2hhc2luZyB5b3VyIHNv dWwuICBZb3VyIHRpbWUgaXMgdGhlDQoJb25seSByZWFsIGZpbml0ZSBhc3Nl dCB0aGF0IHlvdSBoYXZlLCBhbmQgb25jZSB1c2VkIGl0IGNhbiBuZXZlciBi ZQ0KCXJlY292ZXJlZCwgc28gZG9uJ3Qgd2FzdGUgaXQgYnkgZ2l2aW5nIGl0 IGF3YXkuDQoJDQoJIlRpbWUgaXMgdGhlIGNvaW4gb2YgeW91ciBsaWZlLiBJ dCBpcyB0aGUgb25seSBjb2luIHlvdSBoYXZlLCBhbmQgb25seSB5b3UNCglj YW4gZGV0ZXJtaW5lIGhvdyBpdCB3aWxsIGJlIHNwZW50LiAgQmUgY2FyZWZ1 bCBsZXN0IHlvdSBsZXQgb3RoZXIgcGVvcGxlDQoJc3BlbmQgaXQgZm9yIHlv dS4iDQoJDQoJQ2FybCBTYW5kYnVyZw0KCSgxODc4IC0gMTk2NykNCgkNCgkN CgkNCgktLS0tT3JpZ2luYWwgTWVzc2FnZSBGb2xsb3dzLS0tLQ0KCQ0KCUNh biBhbnlvbmUgcmVjb21tZW5kIFNRUiB0cmFpbmluZyBpbiBEYWxsYXM/DQoJ DQoJV2UgaGF2ZSB0d28gb3BlbiBwb3NpdGlvbnMgZm9yICBQTC9TUUwsIFBy bypDLCBDT0JPTCwgQyBEZXZlbG9wZXJzIGJ1dCB0aGUNCgltYW5hZ2VyIGlz IGluc2lzdGluZyBvbiBleHBlcmllbmNlIHdpdGggU1FSLiAgSSBtYXkgbmVl ZCB0byBzZW5kIHNvbWUNCgljb25zdWx0YW50cyB0byB0cmFpbmluZy4NCgkN CgkNCgkNCglEb25uYSBSYW5kYWxsDQoJVGVjaG5pY2FsIFJlY3J1aXRlcg0K CVN5c3RlbXdhcmUgUHJvZmVzc2lvbmFsIFNlcnZpY2VzDQoJOTcyLTIzOS0w MjAwDQoJODAwLTUzNS04NjgxDQoJZG9ubmEucmFuZGFsbEBzeXN0ZW13YXJl LmNvbQ0KCXd3dy5zeXN0ZW13YXJlLmNvbSA8aHR0cDovL3d3dy5zeXN0ZW13 YXJlLmNvbS8+DQoJDQoJMTU2MDEgRGFsbGFzIFBhcmt3YXksIFN1aXRlIDE1 MA0KCUFkZGlzb24sIFRleGFzIDc1MDAxDQoJDQoJDQoJDQoJDQoJX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18NCglz cXItdXNlcnMgbWFpbGluZyBsaXN0DQoJc3FyLXVzZXJzQHNxcnVnLm9yZyBo dHRwOi8vd3d3LnNxcnVnLm9yZy9tYWlsbWFuL2xpc3RpbmZvL3Nxci11c2Vy cw0KCQ0KCV9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fDQoJTGV0IHRoZSBuZXcgTVNO IFByZW1pdW0gSW50ZXJuZXQgU29mdHdhcmUgbWFrZSB0aGUgbW9zdCBvZiB5 b3VyIGhpZ2gtc3BlZWQNCglleHBlcmllbmNlLiBodHRwOi8vam9pbi5tc24u Y29tLz9wZ21hcmtldD1lbi11cyZwYWdlPWJ5b2EvcHJlbSZTVD0xDQoJDQoJ X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X18NCglzcXItdXNlcnMgbWFpbGluZyBsaXN0DQoJc3FyLXVzZXJzQHNxcnVn Lm9yZyBodHRwOi8vd3d3LnNxcnVnLm9yZy9tYWlsbWFuL2xpc3RpbmZvL3Nx ci11c2Vycw0KCQ0KCQ0KCV9fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fDQoJc3FyLXVzZXJzIG1haWxpbmcgbGlzdA0K CXNxci11c2Vyc0BzcXJ1Zy5vcmcNCglodHRwOi8vd3d3LnNxcnVnLm9yZy9t YWlsbWFuL2xpc3RpbmZvL3Nxci11c2Vycw0KCQ0KDQo= ------_=_NextPart_001_01C3E209.02478E47 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/ms-tnef' MIME type. It has been automatically discarded before sending the message to the list. ------_=_NextPart_001_01C3E209.02478E47-- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Sat Jan 24 08:51:02 2004 From: Ray Ontko Date: Sat, 24 Jan 2004 08:49:06 -0500 Subject: Re: [sqr-users] -S flag for cursors Yuri, (Peter), I can't answer with authority (since I don't have access to the source code), but it was my understanding that PSSQR 8.0 = SQR 6.2. That's when the fork occurred, I think. Of course, you can simply try looking at $sql-text after a begin-select or begin-sql block and see if it contains anything. Peter: Thanks for this exciting feature addition to sqr 8.0! Ray On Tue, Jan 20, 2004 at 02:56:50PM -0800, Yuri Lakef wrote: > Thank you, Peter. We are using PeopleSoft 8.4 version (not sure what that translates to for the non-PeopleSoft world of SQR ever since PS licensed their own version of SQR for 8.0). Anyone else? Thank you in advance. > > > Peter Burton wrote:Yuri, > > If you have SQR 8.0 (or higher) from Brio (or Hyperion) you can examine the > SQR resevered variable $SQL-TEXT after a BEGIN-SELECT or BEGIN-SQL block to > see exactly what was sent to the database. > > The -S command line flag only shows you the last SQL statement used for all > the cursors when the report terminates. Note that cursors get reused in > SQR. If the SQL is dynamic (i.e. bind and/or dynamic variables were used) > then you will see the template. > > Peter > > > -----Original Message----- > > From: sqr-users-admin@sqrug.org@HYPERION On Behalf Of Yuri Lakef > > > > Sent: Tuesday, January 20, 2004 2:44 PM > > To: sqr-users@sqrug.org > > Subject: [sqr-users] -S flag for cursors > > > > > > Is there a way to view the values of bind variables when using -S flag for > > cursors? > > > > > > --------------------------------- > > Do you Yahoo!? > > Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > Here was a non admissible message part of 'application/ms-tnef' MIME > type. It has been automatically discarded before sending the message to > the list. > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------------- Ray Ontko rayo@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788 Ray Ontko & Co. Software Consulting Services http://www.ontko.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Jan 26 08:57:32 2004 Date: Mon, 26 Jan 2004 08:55:02 -0500 From: "White, Denise" Subject: [sqr-users] RE: On-break (lowest level identical while level above breaks) Thanks, Don! You learn something new every day! A bit of experimentation revealed that using break procedures (before, after) requires a begin-select, while just using skiplines did not. As I said, I had never seen on-break used on an array before, hence my ignorance. BTW, I would be an 'amie'! Other than getting my gender wrong, your French was fine! Denise M. White Sr. Software Engineer Vicor --__--__-- Message: 4 Date: Fri, 23 Jan 2004 11:43:30 -0500 (EST) From: Don Mellen To: "SQR Users Group (E-mail)" Subject: Re: [sqr-users] RE: On-break (lowest level identical while level above breaks) Reply-To: sqr-users@sqrug.org Au contraire, mon ami (sorry for the poor french spelling). While the construct does look good and should be working, and I agree it's probably a problem in the break procedures... The begin-select is most necessary. On-break is tied to begin-select for some of it's logic (and won't even compile outside of a begin-select in some versions). Having a one row select (from dual for most oracle users) allows the on-break logic to be used for arrays or from reading a flat file. The only caveat being that your array or file needs to already be sorted in the order you need. On Fri, 23 Jan 2004, White, Denise wrote: > > BTW, I was wondering as I read the beginning of your message how you > could possibly be selecting data from an array with a begin-select. I > am not sure if you abbreviated the logic when you wrote your message, > but there is really no reason at all for you to have that begin-select > procedure, as you are not actually selecting anything. You could do > your array logic within a regular begin-procedure paragraph. > > Denise M. White > Sr. Software Engineer > Vicor _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Jan 26 17:04:59 2004 From: "Bressers, Mark" Date: Mon, 26 Jan 2004 17:03:30 -0500 Subject: [sqr-users] Report fails after compilation I get the following error message "(SQR 4747) The SQT file is corrupted and cannot be processed." every time I try to execute a compiled report. However, when I run this report directly from source code the report runs without incidence. I increased the processor limits to their maximum values, tried using SQR 6.2 and SQR 8.1, tried running and compiling under Windows, Linux (Red Hat), and Unix, all without success. I'm running short of ideas. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Jan 26 22:29:32 2004 From: Ray Ontko Date: Mon, 26 Jan 2004 22:28:11 -0500 Subject: Re: [sqr-users] Report fails after compilation Mark, What commands are you giving? I assume that this works: sqr myprog.sqr username/password If so, then this should also work: sqr myprog.sqr username/password -rs followed by either sqrt myprog.sqt username/password or sqr myprog.sqt username/password -rt (They're equivalent.) Is this what you're doing? Note: under Windows, sqr -> sqrw, and sqrt -> sqrwt. Ray On Mon, Jan 26, 2004 at 05:03:30PM -0500, Bressers, Mark wrote: > I get the following error message "(SQR 4747) The SQT file is corrupted and > cannot be processed." every time I try to execute a compiled report. > However, when I run this report directly from source code the report runs > without incidence. > > I increased the processor limits to their maximum values, tried using SQR > 6.2 and SQR 8.1, tried running and compiling under Windows, Linux (Red Hat), > and Unix, all without success. > > I'm running short of ideas. > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------------- Ray Ontko rayo@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788 Ray Ontko & Co. Software Consulting Services http://www.ontko.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 27 03:19:32 2004 From: "David Ellick" Subject: Re: [sqr-users] Report fails after compilation Date: Tue, 27 Jan 2004 08:17:47 -0000 Mark, You can get this error message if you have special characters in the source code. Problem characters can include any accented letter ('é') or certain punctuation or currency symbols such as '£' or '€'. You can get around this by encoding the character into a variable by it's ASCII number or I believe if you go back and compile it under SQR V4 it may work. I had to go back to SQR 4.3.4 to get around this problem for a report with Czech headers. In the first instance, remove them all and see if that solves the problem. Regards, David ----- Original Message ----- From: "Bressers, Mark" To: Sent: Monday, January 26, 2004 10:03 PM Subject: [sqr-users] Report fails after compilation > I get the following error message "(SQR 4747) The SQT file is corrupted and > cannot be processed." every time I try to execute a compiled report. > However, when I run this report directly from source code the report runs > without incidence. > > I increased the processor limits to their maximum values, tried using SQR > 6.2 and SQR 8.1, tried running and compiling under Windows, Linux (Red Hat), > and Unix, all without success. > > I'm running short of ideas. > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 27 07:50:34 2004 From: "Brandt, Fred" Subject: RE: [sqr-users] RE: On-break (lowest level identical while level above breaks) Date: Tue, 27 Jan 2004 13:49:44 +0100 Thanx for the replies. The problem seemed to be in the On-Break itself, but the real problem was the data in the array. After adjusting the procedure that loads the array, the on-break works just fine: when a higher level breaks (even if the lower level doesn´t break) the on-break-procedures start up. My mistake was to assume that the data in the array was correct without checking what was really inside. Fred Brandt -----Oorspronkelijk bericht----- Van: White, Denise [mailto:DEWhite@vicr.com] Verzonden: 26 January 2004 14:55 Aan: SQR Users Group (E-mail) Onderwerp: [sqr-users] RE: On-break (lowest level identical while level above breaks) Thanks, Don! You learn something new every day! A bit of experimentation revealed that using break procedures (before, after) requires a begin-select, while just using skiplines did not. As I said, I had never seen on-break used on an array before, hence my ignorance. BTW, I would be an 'amie'! Other than getting my gender wrong, your French was fine! Denise M. White Sr. Software Engineer Vicor -- __--__-- Message: 4 Date: Fri, 23 Jan 2004 11:43:30 -0500 (EST) From: Don Mellen To: "SQR Users Group (E-mail)" Subject: Re: [sqr-users] RE: On-break (lowest level identical while level above breaks) Reply-To: sqr-users@sqrug.org Au contraire, mon ami (sorry for the poor french spelling). While the construct does look good and should be working, and I agree it's probably a problem in the break procedures... The begin-select is most necessary. On-break is tied to begin-select for some of it's logic (and won't even compile outside of a begin-select in some versions). Having a one row select (from dual for most oracle users) allows the on-break logic to be used for arrays or from reading a flat file. The only caveat being that your array or file needs to already be sorted in the order you need. On Fri, 23 Jan 2004, White, Denise wrote: > > BTW, I was wondering as I read the beginning of your message how you > could possibly be selecting data from an array with a begin-select. I > am not sure if you abbreviated the logic when you wrote your message, > but there is really no reason at all for you to have that begin-select > procedure, as you are not actually selecting anything. You could do > your array logic within a regular begin-procedure paragraph. > > Denise M. White > Sr. Software Engineer > Vicor ================================================================== De informatie verzonden met dit e-mail bericht is vertrouwelijk en uitsluitend bestemd voor de geadresseerde. Indien bovenstaand e-mailbericht niet aan u is gericht, verzoeken wij u vriendelijk doch dringend het e-mailbericht te retourneren aan de verzender en het origineel en eventuele kopieën te verwijderen en te vernietigen. Gebruik van deze informatie door anderen dan de geadresseerde is verboden. Openbaarmaking, vermenigvuldiging, verspreiding en/of verstrekking van deze informatie aan derden is niet toegestaan. CZ staat niet in voor de juiste en volledige overbrenging van de inhoud van een verzonden e-mail, noch voor tijdige ontvangst daarvan. ================================================================== The information contained in this communication is confidential and may be legally privileged. If you are not the intended recipient of this communication please return the communication to the sender and delete and destroy all copies. It is intended solely for the use of the individual or entity to whom it is addressed and others authorised to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. CZ health insurance is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt. =================================================================== _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 27 13:54:55 2004 From: Joan Hill/MPTC Date: Tue, 27 Jan 2004 12:56:02 -0600 Subject: [sqr-users] 1098T printing in PeopleSoft Help! Is anyone having as much difficulty as I am printing 3 1098T forms on 1 page in SF1098RP.SQR?? Everything but the last two X's for the 3rd form print on one page, then each X prints on an additional page! Joan Hill, Information Systems Developer Moraine Park Technical College jhill@morainepark.edu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 27 14:34:11 2004 Date: Tue, 27 Jan 2004 14:32:02 -0500 From: "F. Christopher Costa" Subject: Re: [sqr-users] 1098T printing in PeopleSoft Joan, We had a similar problem. We added FORMFEED = NO into the 1098T-layout declaration. What appears to be happening (on our side) is that the last row or two is passing the printable area of the page and the printer is form feeding it to finish the job then doing another FormFeed that the SQR sent (0C hex) to start the next page. Hope this helps you out. F. Christopher Costa, Software Developer College of the Holy Cross Information Technology Services Smith Hall - Room 101 One College Street Worcester, MA 01610-2395 508.793.3865 >>> jhill@morainepark.edu 01/27/04 01:56PM >>> Help! Is anyone having as much difficulty as I am printing 3 1098T forms on 1 page in SF1098RP.SQR?? Everything but the last two X's for the 3rd form print on one page, then each X prints on an additional page! Joan Hill, Information Systems Developer Moraine Park Technical College jhill@morainepark.edu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 27 15:39:11 2004 From: "Deborah Harris" Date: Tue, 27 Jan 2004 14:38:32 -0600 Subject: [sqr-users] SQR - PDF output problem I have a sqr report where I output PDF. Whenever the last page is ½ full the report is fine. If the last page is full a blank page gets added to the end of the report. Any Ideas what is causing the extra page to be generated? Deb _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 27 15:46:07 2004 From: "Deborah Harris" Subject: RE: [sqr-users] SQR - PDF output problem Date: Tue, 27 Jan 2004 14:45:36 -0600 I Can't.. It must be PDF output. -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org] On Behalf Of Joan Hill/MPTC Sent: Tuesday, January 27, 2004 2:46 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] SQR - PDF output problem Don't output pdf -- use hp instead. PDF puts a margin around the page! Joan Hill, Information Systems Developer Moraine Park Technical College 235 N. National Avenue Fond du Lac, WI 54935 920.924.6317 jhill@morainepark.edu |---------+----------------------------> | | "Deborah Harris" | | | | | | Sent by: | | | sqr-users-admin@s| | | qrug.org | | | | | | | | | 01/27/2004 02:38 | | | PM | | | Please respond to| | | sqr-users | |---------+----------------------------> >----------------------------------------------------------------------- ----------------------------------------| | | | To: | | cc: | | Subject: [sqr-users] SQR - PDF output problem | >----------------------------------------------------------------------- ----------------------------------------| I have a sqr report where I output PDF. Whenever the last page is ½ full the report is fine. If the last page is full a blank page gets added to the end of the report. Any Ideas what is causing the extra page to be generated? Deb _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Tue Jan 27 15:44:06 2004 Subject: Re: [sqr-users] SQR - PDF output problem From: Joan Hill/MPTC Date: Tue, 27 Jan 2004 14:46:19 -0600 Don't output pdf -- use hp instead. PDF puts a margin around the page! Joan Hill, Information Systems Developer Moraine Park Technical College 235 N. National Avenue Fond du Lac, WI 54935 920.924.6317 jhill@morainepark.edu |---------+----------------------------> | | "Deborah Harris" | | | | | | Sent by: | | | sqr-users-admin@s| | | qrug.org | | | | | | | | | 01/27/2004 02:38 | | | PM | | | Please respond to| | | sqr-users | |---------+----------------------------> >---------------------------------------------------------------------------------------------------------------| | | | To: | | cc: | | Subject: [sqr-users] SQR - PDF output problem | >---------------------------------------------------------------------------------------------------------------| I have a sqr report where I output PDF. Whenever the last page is ½ full the report is fine. If the last page is full a blank page gets added to the end of the report. Any Ideas what is causing the extra page to be generated? Deb _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 27 16:00:10 2004 From: Lori.Puntasecca@frx.com Subject: RE: [sqr-users] SQR - PDF output problem Date: Tue, 27 Jan 2004 15:56:52 -0500 Try adding formfeed=no to your declare-layout. Lori A Puntasecca Forest Laboratories, Inc. MIS- Data Tools Team email: lori.puntasecca@frx.com -----Original Message----- From: Deborah Harris [mailto:dharris@activeinterest.com] Sent: Tuesday, January 27, 2004 3:46 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] SQR - PDF output problem I Can't.. It must be PDF output. -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org] On Behalf Of Joan Hill/MPTC Sent: Tuesday, January 27, 2004 2:46 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] SQR - PDF output problem Don't output pdf -- use hp instead. PDF puts a margin around the page! Joan Hill, Information Systems Developer Moraine Park Technical College 235 N. National Avenue Fond du Lac, WI 54935 920.924.6317 jhill@morainepark.edu |---------+----------------------------> | | "Deborah Harris" | | | | | | Sent by: | | | sqr-users-admin@s| | | qrug.org | | | | | | | | | 01/27/2004 02:38 | | | PM | | | Please respond to| | | sqr-users | |---------+----------------------------> >----------------------------------------------------------------------- ----------------------------------------| | | | To: | | cc: | | Subject: [sqr-users] SQR - PDF output problem | >----------------------------------------------------------------------- ----------------------------------------| I have a sqr report where I output PDF. Whenever the last page is ½ full the report is fine. If the last page is full a blank page gets added to the end of the report. Any Ideas what is causing the extra page to be generated? Deb _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 ____________________________________________________________________ This e-mail and its attachments may contain Forest Laboratories, Inc. proprietary information that is privileged, confidential or subject to copyright belonging to Forest Laboratories, Inc. This e-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this e-mail, or the employee or agent responsible for delivering this e-mail to the intended recipient, you are hereby notified that any dissemination, distribution, copying or action taken in relation to the contents of and attachments to this e-mail is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify the sender immediately and permanently delete the original and any copy of this e-mail and any printout. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 27 16:03:06 2004 Subject: RE: [sqr-users] SQR - PDF output problem From: Joan Hill/MPTC Date: Tue, 27 Jan 2004 15:05:23 -0600 We are running Type - WEB and Format - HP with success. WEB/PDF was giving us the same problems you described. Joan Hill, Information Systems Developer Moraine Park Technical College 235 N. National Avenue Fond du Lac, WI 54935 920.924.6317 jhill@morainepark.edu |---------+----------------------------> | | "Deborah Harris" | | | | | | Sent by: | | | sqr-users-admin@s| | | qrug.org | | | | | | | | | 01/27/2004 02:45 | | | PM | | | Please respond to| | | sqr-users | |---------+----------------------------> >---------------------------------------------------------------------------------------------------------------| | | | To: | | cc: | | Subject: RE: [sqr-users] SQR - PDF output problemtyp | >---------------------------------------------------------------------------------------------------------------| I Can't.. It must be PDF output. -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org] On Behalf Of Joan Hill/MPTC Sent: Tuesday, January 27, 2004 2:46 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] SQR - PDF output problem Don't output pdf -- use hp instead. PDF puts a margin around the page! Joan Hill, Information Systems Developer Moraine Park Technical College 235 N. National Avenue Fond du Lac, WI 54935 920.924.6317 jhill@morainepark.edu |---------+----------------------------> | | "Deborah Harris" | | | | | | Sent by: | | | sqr-users-admin@s| | | qrug.org | | | | | | | | | 01/27/2004 02:38 | | | PM | | | Please respond to| | | sqr-users | |---------+----------------------------> >----------------------------------------------------------------------- ----------------------------------------| | | | To: | | cc: | | Subject: [sqr-users] SQR - PDF output problem | >----------------------------------------------------------------------- ----------------------------------------| I have a sqr report where I output PDF. Whenever the last page is ½ full the report is fine. If the last page is full a blank page gets added to the end of the report. Any Ideas what is causing the extra page to be generated? Deb _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Tue Jan 27 16:11:11 2004 Date: Tue, 27 Jan 2004 16:10:05 -0500 From: don.barclay@srs.gov Subject: RE: [sqr-users] SQR - PDF output problem So what you are saying is that if your report has room for 50 entries per page, that if your last page has 49 entries, it prints okay, but if it fills all 50 entries, it will print add an extra (blank) page to the report? If that is the case, it sounds like it is trying to print an extra (blank) line after the last entry. Do you have any type of skip command after each entry is printed? If so, add logic to not include the skip if you are done printing. Hope that helps, Don sqr-users-admin@sqrug.org wrote on 01/27/2004 03:45:36 PM: > > I Can't.. It must be PDF output. > > -----Original Message----- > From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org] On > Behalf Of Joan Hill/MPTC > Sent: Tuesday, January 27, 2004 2:46 PM > To: sqr-users@sqrug.org > Subject: Re: [sqr-users] SQR - PDF output problem _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 27 16:20:06 2004 Subject: RE: [sqr-users] SQR - PDF output problem From: Joan Hill/MPTC Date: Tue, 27 Jan 2004 15:22:31 -0600 No. Three fields should print on the last line. It prints the first field fine, but puts the other two fields (X) on two additional pages, positioned correctly where they should be appearing on the first page. Joan Hill, Information Systems Developer Moraine Park Technical College 235 N. National Avenue Fond du Lac, WI 54935 920.924.6317 jhill@morainepark.edu |---------+----------------------------> | | don.barclay@srs.g| | | ov | | | Sent by: | | | sqr-users-admin@s| | | qrug.org | | | | | | | | | 01/27/2004 03:10 | | | PM | | | Please respond to| | | sqr-users | |---------+----------------------------> >---------------------------------------------------------------------------------------------------------------| | | | To: sqr-users@sqrug.org | | cc: sqr-users@sqrug.org, sqr-users-admin@sqrug.org | | Subject: RE: [sqr-users] SQR - PDF output problem | >---------------------------------------------------------------------------------------------------------------| So what you are saying is that if your report has room for 50 entries per page, that if your last page has 49 entries, it prints okay, but if it fills all 50 entries, it will print add an extra (blank) page to the report? If that is the case, it sounds like it is trying to print an extra (blank) line after the last entry. Do you have any type of skip command after each entry is printed? If so, add logic to not include the skip if you are done printing. Hope that helps, Don sqr-users-admin@sqrug.org wrote on 01/27/2004 03:45:36 PM: > > I Can't.. It must be PDF output. > > -----Original Message----- > From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org] On > Behalf Of Joan Hill/MPTC > Sent: Tuesday, January 27, 2004 2:46 PM > To: sqr-users@sqrug.org > Subject: Re: [sqr-users] SQR - PDF output problem _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 27 16:48:12 2004 From: Ray Ontko Date: Tue, 27 Jan 2004 16:47:35 -0500 Subject: Re: [sqr-users] SQR - PDF output problem Joan, Are you trying to print a PDF file on an HP printer, by any chance? I have seen the problem you describe when printing -printer:hp output on an HP printer where the printer was set to automatically go to a new page if you printed past a certain point on the page. This is a printer setting that sometimes gets set by the print spooler. If it's happening with both the PDF and HTML printing, then my best guess is that something is causing the printer page to be shorter than it should, and each print element beyond this is causing a new page to be started automatically by the printer. Hope this helps? Ray On Tue, Jan 27, 2004 at 03:22:31PM -0600, Joan Hill/MPTC wrote: > > > > > > No. Three fields should print on the last line. It prints the first > field fine, but puts the other two fields (X) on two additional pages, > positioned correctly where they should be appearing on the first page. > > Joan Hill, Information Systems Developer > Moraine Park Technical College > 235 N. National Avenue > Fond du Lac, WI 54935 > 920.924.6317 > jhill@morainepark.edu > > > |---------+----------------------------> > | | don.barclay@srs.g| > | | ov | > | | Sent by: | > | | sqr-users-admin@s| > | | qrug.org | > | | | > | | | > | | 01/27/2004 03:10 | > | | PM | > | | Please respond to| > | | sqr-users | > |---------+----------------------------> > >---------------------------------------------------------------------------------------------------------------| > | | > | To: sqr-users@sqrug.org | > | cc: sqr-users@sqrug.org, sqr-users-admin@sqrug.org | > | Subject: RE: [sqr-users] SQR - PDF output problem | > >---------------------------------------------------------------------------------------------------------------| > > > > > So what you are saying is that if your report has room for 50 entries per > page, that if your last page has 49 entries, it prints okay, but if it > fills all 50 entries, it will print add an extra (blank) page to the > report? > > If that is the case, it sounds like it is trying to print an extra (blank) > line after the last entry. Do you have any type of skip command after > each entry is printed? If so, add logic to not include the skip if you > are done printing. > > Hope that helps, > Don > > sqr-users-admin@sqrug.org wrote on 01/27/2004 03:45:36 PM: > > > > > I Can't.. It must be PDF output. > > > > -----Original Message----- > > From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org] On > > Behalf Of Joan Hill/MPTC > > Sent: Tuesday, January 27, 2004 2:46 PM > > To: sqr-users@sqrug.org > > Subject: Re: [sqr-users] SQR - PDF output problem > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------------- Ray Ontko rayo@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788 Ray Ontko & Co. Software Consulting Services http://www.ontko.com/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Jan 27 17:18:16 2004 Subject: Re: [sqr-users] SQR - PDF output problem From: Joan Hill/MPTC Date: Tue, 27 Jan 2004 16:19:59 -0600 That sounds like what is happening, and we were initially trying to print WEB/PDF, but we are now printing WEB/HP with better but similar results. Joan Hill, Information Systems Developer Moraine Park Technical College 235 N. National Avenue Fond du Lac, WI 54935 920.924.6317 jhill@morainepark.edu |---------+----------------------------> | | Ray Ontko | | | | | | Sent by: | | | sqr-users-admin@s| | | qrug.org | | | | | | | | | 01/27/2004 03:47 | | | PM | | | Please respond to| | | sqr-users | |---------+----------------------------> >---------------------------------------------------------------------------------------------------------------| | | | To: sqr-users@sqrug.org | | cc: | | Subject: Re: [sqr-users] SQR - PDF output problem | >---------------------------------------------------------------------------------------------------------------| Joan, Are you trying to print a PDF file on an HP printer, by any chance? I have seen the problem you describe when printing -printer:hp output on an HP printer where the printer was set to automatically go to a new page if you printed past a certain point on the page. This is a printer setting that sometimes gets set by the print spooler. If it's happening with both the PDF and HTML printing, then my best guess is that something is causing the printer page to be shorter than it should, and each print element beyond this is causing a new page to be started automatically by the printer. Hope this helps? Ray On Tue, Jan 27, 2004 at 03:22:31PM -0600, Joan Hill/MPTC wrote: > > > > > > No. Three fields should print on the last line. It prints the first > field fine, but puts the other two fields (X) on two additional pages, > positioned correctly where they should be appearing on the first page. > > Joan Hill, Information Systems Developer > Moraine Park Technical College > 235 N. National Avenue > Fond du Lac, WI 54935 > 920.924.6317 > jhill@morainepark.edu > > > |---------+----------------------------> > | | don.barclay@srs.g| > | | ov | > | | Sent by: | > | | sqr-users-admin@s| > | | qrug.org | > | | | > | | | > | | 01/27/2004 03:10 | > | | PM | > | | Please respond to| > | | sqr-users | > |---------+----------------------------> > >---------------------------------------------------------------------------------------------------------------| > | | > | To: sqr-users@sqrug.org | > | cc: sqr-users@sqrug.org, sqr-users-admin@sqrug.org | > | Subject: RE: [sqr-users] SQR - PDF output problem | > >---------------------------------------------------------------------------------------------------------------| > > > > > So what you are saying is that if your report has room for 50 entries per > page, that if your last page has 49 entries, it prints okay, but if it > fills all 50 entries, it will print add an extra (blank) page to the > report? > > If that is the case, it sounds like it is trying to print an extra (blank) > line after the last entry. Do you have any type of skip command after > each entry is printed? If so, add logic to not include the skip if you > are done printing. > > Hope that helps, > Don > > sqr-users-admin@sqrug.org wrote on 01/27/2004 03:45:36 PM: > > > > > I Can't.. It must be PDF output. > > > > -----Original Message----- > > From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org] On > > Behalf Of Joan Hill/MPTC > > Sent: Tuesday, January 27, 2004 2:46 PM > > To: sqr-users@sqrug.org > > Subject: Re: [sqr-users] SQR - PDF output problem > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------------- Ray Ontko rayo@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788 Ray Ontko & Co. Software Consulting Services http://www.ontko.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-admin@sqrug.org Thu Jan 29 08:53:26 2004 Date: Thu, 29 Jan 2004 05:51:52 -0800 (PST) From: Darrel Scott Subject: [sqr-users] Array Hello Fellow SQR'ers... I'm wondering if anyone out there can assist me. I'm working with an array with two numeric values (#ID & #NBR) in which when loaded into the array can look like the output below... ********************* #ID: 001 #NBR: 123456 #ID: 002 #NBR: 987456 #ID: 003 #NBR: 555444 #ID: 001 #NBR: 000111 ********************* As you can see I have two instances of the #ID variable (which is expected). Is it possible to sum the #NBR variable for both (or however many) instances of the #ID and pass that total into a new variable? I guess I'm looking for a FOR-EACH type of a loop or some type of array sort, but I've been unable to find any documentation to assist in this situation. BTW....my load array logic is below... --------------------------------------------------- Begin-Procedure Load-Array Let #Ctr=0 While #Ctr <= #i - 1 If #Ctr > #i - 1 break End-If Get #ID #NBR From DataArray(#Ctr) Add 1 to #Ctr #Debug Show 'ID: '#ID !-- TEST #Debug Show 'NBR: '#NBR !-- TEST End-While Let #ID=0 Let #NBR=0 End-Procedure --------------------------------------------------- Any assistance would be greatly appreciated. Thanks, Darrel --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 29 09:23:11 2004 Date: Thu, 29 Jan 2004 09:21:36 -0500 From: "George Jansen" Subject: Re: [sqr-users] Array What is your data source? If a relational database, why not write your SELECT as SELECT id, sum(nbr) as nbr FROM whatever GROUP BY id >>> darrel_1977@yahoo.com 01/29/04 08:51AM >>> Hello Fellow SQR'ers... I'm wondering if anyone out there can assist me. I'm working with an array with two numeric values (#ID & #NBR) in which when loaded into the array can look like the output below... ********************* #ID: 001 #NBR: 123456 #ID: 002 #NBR: 987456 #ID: 003 #NBR: 555444 #ID: 001 #NBR: 000111 ********************* As you can see I have two instances of the #ID variable (which is expected). Is it possible to sum the #NBR variable for both (or however many) instances of the #ID and pass that total into a new variable? I guess I'm looking for a FOR-EACH type of a loop or some type of array sort, but I've been unable to find any documentation to assist in this situation. BTW....my load array logic is below... --------------------------------------------------- Begin-Procedure Load-Array Let #Ctr=0 While #Ctr <= #i - 1 If #Ctr > #i - 1 break End-If Get #ID #NBR From DataArray(#Ctr) Add 1 to #Ctr #Debug Show 'ID: '#ID !-- TEST #Debug Show 'NBR: '#NBR !-- TEST End-While Let #ID=0 Let #NBR=0 End-Procedure --------------------------------------------------- Any assistance would be greatly appreciated. Thanks, Darrel --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 29 10:03:11 2004 Date: Thu, 29 Jan 2004 07:02:07 -0800 (PST) From: Darrel Scott Subject: Re: [sqr-users] Array Sort/Grouping Help George - First of all let me apologize for the title of this email. I didn't mean for it to be so vague. I've changed it accordingly. Secondly, If it was that simple, I wouldn't have posted to this forum :) What's funny is that I'm already using a GROUP BY expression in my data source before passing the values in to the array. See below... ------------------------------------- Begin-Procedure Get-IDs Begin-Select a.ID &ID Move &ID to $ID Move &ID to #ID SUM(b.nbr) &NBR Move &NBR to $NBR Move &NBR to #NBR Let #i=0 Do Build-Array Do Load-Array FROM TABLE a, TABLE2 b WHERE a.key = &Key !-- Passed from earlier procedure AND a.seqnbr IN [$SEQNBR_list] !-- Passed from earlier procedure AND a.ID = b.ID group by a.ID End-Select End-Procedure ------------------------------------- Here's the detailed gist...in a nutshell, I grab the KEY from an earlier query. Using that key I get a list of SEQNBRs. I concatenate those SEQNBRs and pass them into a list that I inturn use to get the specific IDs that I need. The problem is that I can get multiple IDs for each KEY. So why can't I use GROUP-BY logic on the key? Simple - the KEY is unique and will never be the same. Thus grouping on both the key and ID prevents an accurate list throwing off the entire SQR. That's what brings me to this point. Is there a way to get my results from within my array? Thanks, Darrel George Jansen wrote: What is your data source? If a relational database, why not write your SELECT as SELECT id, sum(nbr) as nbr FROM whatever GROUP BY id >>> darrel_1977@yahoo.com 01/29/04 08:51AM >>> Hello Fellow SQR'ers... I'm wondering if anyone out there can assist me. I'm working with an array with two numeric values (#ID & #NBR) in which when loaded into the array can look like the output below... ********************* #ID: 001 #NBR: 123456 #ID: 002 #NBR: 987456 #ID: 003 #NBR: 555444 #ID: 001 #NBR: 000111 ********************* As you can see I have two instances of the #ID variable (which is expected). Is it possible to sum the #NBR variable for both (or however many) instances of the #ID and pass that total into a new variable? I guess I'm looking for a FOR-EACH type of a loop or some type of array sort, but I've been unable to find any documentation to assist in this situation. BTW....my load array logic is below... --------------------------------------------------- Begin-Procedure Load-Array Let #Ctr=0 While #Ctr <= #i - 1 If #Ctr > #i - 1 break End-If Get #ID #NBR >From DataArray(#Ctr) Add 1 to #Ctr #Debug Show 'ID: '#ID !-- TEST #Debug Show 'NBR: '#NBR !-- TEST End-While Let #ID=0 Let #NBR=0 End-Procedure --------------------------------------------------- Any assistance would be greatly appreciated. Thanks, Darrel --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 29 10:19:07 2004 From: "the dragon" Subject: Re: [sqr-users] Array Sort/Grouping Help Date: Thu, 29 Jan 2004 09:18:05 -0600 sure - you can use a sort on the array. My favorite is a bubble sort. then, once the array is sorted, you can process it. clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- George - First of all let me apologize for the title of this email. I didn't mean for it to be so vague. I've changed it accordingly. Secondly, If it was that simple, I wouldn't have posted to this forum :) What's funny is that I'm already using a GROUP BY expression in my data source before passing the values in to the array. See below... ------------------------------------- Begin-Procedure Get-IDs Begin-Select a.ID &ID Move &ID to $ID Move &ID to #ID SUM(b.nbr) &NBR Move &NBR to $NBR Move &NBR to #NBR Let #i=0 Do Build-Array Do Load-Array FROM TABLE a, TABLE2 b WHERE a.key = &Key !-- Passed from earlier procedure AND a.seqnbr IN [$SEQNBR_list] !-- Passed from earlier procedure AND a.ID = b.ID group by a.ID End-Select End-Procedure ------------------------------------- Here's the detailed gist...in a nutshell, I grab the KEY from an earlier query. Using that key I get a list of SEQNBRs. I concatenate those SEQNBRs and pass them into a list that I inturn use to get the specific IDs that I need. The problem is that I can get multiple IDs for each KEY. So why can't I use GROUP-BY logic on the key? Simple - the KEY is unique and will never be the same. Thus grouping on both the key and ID prevents an accurate list throwing off the entire SQR. That's what brings me to this point. Is there a way to get my results from within my array? Thanks, Darrel George Jansen wrote: What is your data source? If a relational database, why not write your SELECT as SELECT id, sum(nbr) as nbr FROM whatever GROUP BY id >>> darrel_1977@yahoo.com 01/29/04 08:51AM >>> Hello Fellow SQR'ers... I'm wondering if anyone out there can assist me. I'm working with an array with two numeric values (#ID & #NBR) in which when loaded into the array can look like the output below... ********************* #ID: 001 #NBR: 123456 #ID: 002 #NBR: 987456 #ID: 003 #NBR: 555444 #ID: 001 #NBR: 000111 ********************* As you can see I have two instances of the #ID variable (which is expected). Is it possible to sum the #NBR variable for both (or however many) instances of the #ID and pass that total into a new variable? I guess I'm looking for a FOR-EACH type of a loop or some type of array sort, but I've been unable to find any documentation to assist in this situation. BTW....my load array logic is below... --------------------------------------------------- Begin-Procedure Load-Array Let #Ctr=0 While #Ctr <= #i - 1 If #Ctr > #i - 1 break End-If Get #ID #NBR >From DataArray(#Ctr) Add 1 to #Ctr #Debug Show 'ID: '#ID !-- TEST #Debug Show 'NBR: '#NBR !-- TEST End-While Let #ID=0 Let #NBR=0 End-Procedure --------------------------------------------------- Any assistance would be greatly appreciated. Thanks, Darrel --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ There are now three new levels of MSN Hotmail Extra Storage! Learn more. http://join.msn.com/?pgmarket=en-us&page=hotmail/es2&ST=1 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 29 10:56:10 2004 Date: Thu, 29 Jan 2004 10:55:12 -0500 From: "George Jansen" Subject: Re: [sqr-users] Array Sort/Grouping Help So you have K1 -> S1 -> ID1, ID2 ... S2 -> ID1, ID2 K2 -> S1 -> ID1, ID2 ... S3 -> ID4, ID5... ... Is it possible that you are approaching this the wrong way around? Perhaps instead of build the IN lists you need a three-way join, and a series of ON-BREAK procedures. This would allow you to Failing that, what if you did a load lookup? 1. Create a view of the unique IDs--in Oracle terms this might be CREATE OR REPLACE VIEW unique_b_ids AS SELECT id, rownum as rn FROM (SELECT id from b order by id); 2. Code your load-lookup load-lookup name=b_ids rows=???? table=unique_b_ids key=id return_value=rn 3. Then you can find out where in the array to stash your value (or add it) with lookup b_ids #id #idx _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 29 11:38:18 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] Array Sort/Grouping Help Date: Thu, 29 Jan 2004 08:37:00 -0800 Are you trying to get the total for just one value of ID, or the totals for each value? -----Original Message----- From: the dragon [mailto:ceprn@hotmail.com] Sent: Thursday, January 29, 2004 7:18 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Array Sort/Grouping Help sure - you can use a sort on the array. My favorite is a bubble sort. then, once the array is sorted, you can process it. clark 'the dragon' willis PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- George - First of all let me apologize for the title of this email. I didn't mean for it to be so vague. I've changed it accordingly. Secondly, If it was that simple, I wouldn't have posted to this forum :) What's funny is that I'm already using a GROUP BY expression in my data source before passing the values in to the array. See below... ------------------------------------- Begin-Procedure Get-IDs Begin-Select a.ID &ID Move &ID to $ID Move &ID to #ID SUM(b.nbr) &NBR Move &NBR to $NBR Move &NBR to #NBR Let #i=0 Do Build-Array Do Load-Array FROM TABLE a, TABLE2 b WHERE a.key = &Key !-- Passed from earlier procedure AND a.seqnbr IN [$SEQNBR_list] !-- Passed from earlier procedure AND a.ID = b.ID group by a.ID End-Select End-Procedure ------------------------------------- Here's the detailed gist...in a nutshell, I grab the KEY from an earlier query. Using that key I get a list of SEQNBRs. I concatenate those SEQNBRs and pass them into a list that I inturn use to get the specific IDs that I need. The problem is that I can get multiple IDs for each KEY. So why can't I use GROUP-BY logic on the key? Simple - the KEY is unique and will never be the same. Thus grouping on both the key and ID prevents an accurate list throwing off the entire SQR. That's what brings me to this point. Is there a way to get my results from within my array? Thanks, Darrel George Jansen wrote: What is your data source? If a relational database, why not write your SELECT as SELECT id, sum(nbr) as nbr FROM whatever GROUP BY id >>> darrel_1977@yahoo.com 01/29/04 08:51AM >>> Hello Fellow SQR'ers... I'm wondering if anyone out there can assist me. I'm working with an array with two numeric values (#ID & #NBR) in which when loaded into the array can look like the output below... ********************* #ID: 001 #NBR: 123456 #ID: 002 #NBR: 987456 #ID: 003 #NBR: 555444 #ID: 001 #NBR: 000111 ********************* As you can see I have two instances of the #ID variable (which is expected). Is it possible to sum the #NBR variable for both (or however many) instances of the #ID and pass that total into a new variable? I guess I'm looking for a FOR-EACH type of a loop or some type of array sort, but I've been unable to find any documentation to assist in this situation. BTW....my load array logic is below... --------------------------------------------------- Begin-Procedure Load-Array Let #Ctr=0 While #Ctr <= #i - 1 If #Ctr > #i - 1 break End-If Get #ID #NBR >From DataArray(#Ctr) Add 1 to #Ctr #Debug Show 'ID: '#ID !-- TEST #Debug Show 'NBR: '#NBR !-- TEST End-While Let #ID=0 Let #NBR=0 End-Procedure --------------------------------------------------- Any assistance would be greatly appreciated. Thanks, Darrel --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _________________________________________________________________ There are now three new levels of MSN Hotmail Extra Storage! Learn more. http://join.msn.com/?pgmarket=en-us&page=hotmail/es2&ST=1 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 29 12:47:39 2004 Date: Thu, 29 Jan 2004 09:46:20 -0800 (PST) From: Darrel Scott Subject: Re: [sqr-users] Array Sort/Grouping Help George - I'm not sure if your solutions will help. Let me apologize in advance if they do, but I can't see it. My array already passes in the values I need. My problem is due to the way the data is set up, I will obtain multiple IDs with my initially "summed up" NBRs. I've tried every possible way I can think of to re-write my SQL to give me the results I need, but to no avail. So for every #ID in my array, I need to add the values from their cooresponding #NBRs together. That new value (#NBR_SUM) along with the #ID will be then printed to an output file. In other words, rather than printing: ********************* #ID: 001 #NBR: 123456 #ID: 002 #NBR: 987456 #ID: 003 #NBR: 555444 #ID: 001 #NBR: 000111 ********************* ....I need to see: ********************* #ID: 001 #NBR_SUM: 123567 <--- NEW VALUE #ID: 002 #NBR_SUM: 987456 #ID: 003 #NBR_SUM: 555444 ********************* I'm in the process of putting together a "bubble sort" as "The Dragon" suggested. But I'm always open to other possibilities. Thanks, Darrel George Jansen wrote: So you have K1 -> S1 -> ID1, ID2 ... S2 -> ID1, ID2 K2 -> S1 -> ID1, ID2 ... S3 -> ID4, ID5... ... Is it possible that you are approaching this the wrong way around? Perhaps instead of build the IN lists you need a three-way join, and a series of ON-BREAK procedures. This would allow you to Failing that, what if you did a load lookup? 1. Create a view of the unique IDs--in Oracle terms this might be CREATE OR REPLACE VIEW unique_b_ids AS SELECT id, rownum as rn FROM (SELECT id from b order by id); 2. Code your load-lookup load-lookup name=b_ids rows=???? table=unique_b_ids key=id return_value=rn 3. Then you can find out where in the array to stash your value (or add it) with lookup b_ids #id #idx _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 29 13:05:28 2004 From: "Patel, Samir" Subject: RE: [sqr-users] Array Sort/Grouping Help Date: Thu, 29 Jan 2004 13:03:41 -0500 Darrel, I did not read the entire thread, so I don't have a full understanding of what you are trying to do, but you may want to try something like this: 1) Do your select 2) For each row, check if it exists in array 3) If so,then add #nbr, else, put in array 4) Do for all rows, thus your array will now everything summed up 5) After the select is done, get from array and print Hope that helps, Samir -----Original Message----- From: Darrel Scott [mailto:darrel_1977@yahoo.com] Sent: Thursday, January 29, 2004 12:46 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Array Sort/Grouping Help George - I'm not sure if your solutions will help. Let me apologize in advance if they do, but I can't see it. My array already passes in the values I need. My problem is due to the way the data is set up, I will obtain multiple IDs with my initially "summed up" NBRs. I've tried every possible way I can think of to re-write my SQL to give me the results I need, but to no avail. So for every #ID in my array, I need to add the values from their cooresponding #NBRs together. That new value (#NBR_SUM) along with the #ID will be then printed to an output file. In other words, rather than printing: ********************* #ID: 001 #NBR: 123456 #ID: 002 #NBR: 987456 #ID: 003 #NBR: 555444 #ID: 001 #NBR: 000111 ********************* ....I need to see: ********************* #ID: 001 #NBR_SUM: 123567 <--- NEW VALUE #ID: 002 #NBR_SUM: 987456 #ID: 003 #NBR_SUM: 555444 ********************* I'm in the process of putting together a "bubble sort" as "The Dragon" suggested. But I'm always open to other possibilities. Thanks, Darrel George Jansen wrote: So you have K1 -> S1 -> ID1, ID2 ... S2 -> ID1, ID2 K2 -> S1 -> ID1, ID2 ... S3 -> ID4, ID5... ... Is it possible that you are approaching this the wrong way around? Perhaps instead of build the IN lists you need a three-way join, and a series of ON-BREAK procedures. This would allow you to Failing that, what if you did a load lookup? 1. Create a view of the unique IDs--in Oracle terms this might be CREATE OR REPLACE VIEW unique_b_ids AS SELECT id, rownum as rn FROM (SELECT id from b order by id); 2. Code your load-lookup load-lookup name=b_ids rows=???? table=unique_b_ids key=id return_value=rn 3. Then you can find out where in the array to stash your value (or add it) with lookup b_ids #id #idx _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 29 13:07:05 2004 From: "Alexander, Steve" Subject: RE: [sqr-users] Array Sort/Grouping Help Date: Thu, 29 Jan 2004 10:04:37 -0800 Use an array of totals and pass through your array once, adding each #nbr into the appropriate element of the totals array. If the #IDs are all integers and you know their range, the #ID can be the index of the totals array. Otherwise, use load-lookup to map the #IDs into a consecutive sequence of row numbers, which could then be the index of the totals array. -----Original Message----- From: Darrel Scott [mailto:darrel_1977@yahoo.com] Sent: Thursday, January 29, 2004 9:46 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Array Sort/Grouping Help George - I'm not sure if your solutions will help. Let me apologize in advance if they do, but I can't see it. My array already passes in the values I need. My problem is due to the way the data is set up, I will obtain multiple IDs with my initially "summed up" NBRs. I've tried every possible way I can think of to re-write my SQL to give me the results I need, but to no avail. So for every #ID in my array, I need to add the values from their cooresponding #NBRs together. That new value (#NBR_SUM) along with the #ID will be then printed to an output file. In other words, rather than printing: ********************* #ID: 001 #NBR: 123456 #ID: 002 #NBR: 987456 #ID: 003 #NBR: 555444 #ID: 001 #NBR: 000111 ********************* ....I need to see: ********************* #ID: 001 #NBR_SUM: 123567 <--- NEW VALUE #ID: 002 #NBR_SUM: 987456 #ID: 003 #NBR_SUM: 555444 ********************* I'm in the process of putting together a "bubble sort" as "The Dragon" suggested. But I'm always open to other possibilities. Thanks, Darrel George Jansen wrote: So you have K1 -> S1 -> ID1, ID2 ... S2 -> ID1, ID2 K2 -> S1 -> ID1, ID2 ... S3 -> ID4, ID5... ... Is it possible that you are approaching this the wrong way around? Perhaps instead of build the IN lists you need a three-way join, and a series of ON-BREAK procedures. This would allow you to Failing that, what if you did a load lookup? 1. Create a view of the unique IDs--in Oracle terms this might be CREATE OR REPLACE VIEW unique_b_ids AS SELECT id, rownum as rn FROM (SELECT id from b order by id); 2. Code your load-lookup load-lookup name=b_ids rows=???? table=unique_b_ids key=id return_value=rn 3. Then you can find out where in the array to stash your value (or add it) with lookup b_ids #id #idx _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 29 13:12:09 2004 Date: Thu, 29 Jan 2004 12:16:33 -0600 From: "Mike Eischen" Subject: Re: [sqr-users] Array Sort/Grouping Help Hi Darrell, I'm not sure I totally understand your requirements but I think something like this might work... What about creating a cursor or temp table, for storage of all the ID numbers that you need to summarize. Then traverse your original data, and for records that meet your criteria, either insert into the cursor or temp table, or if the ID already exists, add the value to the total. Then use the cursor or temp table to generate your report. Hope this helps. Mike >>> darrel_1977@yahoo.com 01/29/04 11:46AM >>> George - I'm not sure if your solutions will help. Let me apologize in advance if they do, but I can't see it. My array already passes in the values I need. My problem is due to the way the data is set up, I will obtain multiple IDs with my initially "summed up" NBRs. I've tried every possible way I can think of to re-write my SQL to give me the results I need, but to no avail. So for every #ID in my array, I need to add the values from their cooresponding #NBRs together. That new value (#NBR_SUM) along with the #ID will be then printed to an output file. In other words, rather than printing: ********************* #ID: 001 #NBR: 123456 #ID: 002 #NBR: 987456 #ID: 003 #NBR: 555444 #ID: 001 #NBR: 000111 ********************* .....I need to see: ********************* #ID: 001 #NBR_SUM: 123567 <--- NEW VALUE #ID: 002 #NBR_SUM: 987456 #ID: 003 #NBR_SUM: 555444 ********************* I'm in the process of putting together a "bubble sort" as "The Dragon" suggested. But I'm always open to other possibilities. Thanks, Darrel George Jansen wrote: So you have K1 -> S1 -> ID1, ID2 ... S2 -> ID1, ID2 K2 -> S1 -> ID1, ID2 ... S3 -> ID4, ID5... .... Is it possible that you are approaching this the wrong way around? Perhaps instead of build the IN lists you need a three-way join, and a series of ON-BREAK procedures. This would allow you to Failing that, what if you did a load lookup? 1. Create a view of the unique IDs--in Oracle terms this might be CREATE OR REPLACE VIEW unique_b_ids AS SELECT id, rownum as rn FROM (SELECT id from b order by id); 2. Code your load-lookup load-lookup name=b_ids rows=???? table=unique_b_ids key=id return_value=rn 3. Then you can find out where in the array to stash your value (or add it) with lookup b_ids #id #idx _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 29 14:43:40 2004 Date: Thu, 29 Jan 2004 14:41:41 -0500 From: "George Jansen" Subject: Re: [sqr-users] Array Sort/Grouping Help I continue to suspect you are doing this the hard way, and that there is a simpler solution. However, your immediate problem is that SQR arrays are dense and your IDs are sparse. You can map the sparse IDs onto the dense array using LOAD-LOOKUP/LOOKUP: the KEY of the lookup table will be the ID#, the RETURN_VALUE will be some arbitrary but unique number such as Oracle's ROWNUM pseudo-column. Then when you go to stash an pair in the array, you will first lookup the array index (the ROWNUM), then use array-add to sum. The following pointless SQR illustrates this method using a view built as CREATE VIEW DISTINCT_COLUMNS AS SELECT DISTINCT COLUMN_NAME FROM USER_TAB_COLUMNS Begin-Report Do init-array Do with-tables Do show-sums End-Report Begin-Setup Load-Lookup Name=ids Table=distinct_columns Key=column_name Return_Value=rownum Create-Array name=cols size=50 field=id:char field=sum_of_length:number=0 End-Setup Begin-Procedure init-array let #i = 0 while #i < 50 put 0 into cols(#i) sum_of_length let #i = #i + 1 end-while End-Procedure Begin-Procedure with-tables Begin-Select table_name do with-columns(&table_name) >From user_tables End-Select End-Procedure Begin-Procedure with-columns($table_name) Begin-Select column_name data_length lookup ids &column_name $idx let #idx = to_number($idx) array-add &data_length to cols(#idx) sum_of_length put &column_name into cols(#idx) id ! idempotent, isn't that the word? >From user_tab_columns Where table_name = $table_name End-Select End-Procedure Begin-Procedure show-sums let #i = 0 while #i < 50 get $colname #sum from cols(#i) if #sum > 0 display $colname noline display ' -> ' noline display #sum end-if let #i = #i + 1 end-while End-Procedure _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 29 15:32:09 2004 From: "Overcashier, Patricia" Date: Thu, 29 Jan 2004 15:31:29 -0500 Subject: [sqr-users] help with finding gaps O.k., I guess this is more of an sql question than an sqr question, but it is in an sqr I am creating, so I thought I would check with you guys to see if you could help. My sqr needs to check for gaps in emplids and report on them. The reporting part is easy, it's the select logic I am having a hard time with. We have thousands of emplids on PS_JOB table. Occasionally there are gaps, i.e. 000001 000002 000004 where 000003 is missing. Sometimes there are gaps of hundreds instead of one or two. I need to create an sqr that will report all of the emplid that are not in my sequential select. I hope I explained this o.k. Any ideas. The reporting part is easy and I don't need help with that, it's just what sql to use. P.S. I really hate arrays, so if there is a solution that doesn't require an array, it will be much appreciated! This is what I have so far :) select distinct(emplid) from ps_job order by emplid ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ********************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Jan 29 15:52:30 2004 Date: Thu, 29 Jan 2004 15:51:29 -0500 From: "Larry Roux" Subject: Re: [sqr-users] help with finding gaps Can't you just do a "last number" thing? ie: begin-procedure find-gaps Let #LAST_EMPLID = 0 select A.EMPLID Let #PRESENT_EMPLID = &A.EMPLID Let #GAP = #PRESENT_EMPLID - #LAST_EMPLID if #GAP > 1 show 'Gap between ' #LAST_EMPLID ' and ' #PRESENT_EMPLID end-if Let #LAST_EMPLID = #PRESENT_EMPLID from PS_JOB A order by A.EMPLID end-select end-procedure ****************************** Larry Roux Syracuse University lroux@syr.edu ******************************* >>> Patricia.Overcashier@aam.com 01/29/04 03:31PM >>> O.k., I guess this is more of an sql question than an sqr question, but it is in an sqr I am creating, so I thought I would check with you guys to see if you could help. My sqr needs to check for gaps in emplids and report on them. The reporting part is easy, it's the select logic I am having a hard time with. We have thousands of emplids on PS_JOB table. Occasionally there are gaps, i.e. 000001 000002 000004 where 000003 is missing. Sometimes there are gaps of hundreds instead of one or two. I need to create an sqr that will report all of the emplid that are not in my sequential select. I hope I explained this o.k. Any ideas. The reporting part is easy and I don't need help with that, it's just what sql to use. P.S. I really hate arrays, so if there is a solution that doesn't require an array, it will be much appreciated! This is what I have so far :) select distinct(emplid) from ps_job order by emplid ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.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-admin@sqrug.org Thu Jan 29 15:58:09 2004 From: "Overcashier, Patricia" Subject: RE: [sqr-users] help with finding gaps Date: Thu, 29 Jan 2004 15:57:30 -0500 Thank you! It worked like a charm! Sometimes when I ask my questions I feel like there is such a thing as a stupid question, but then I really appreciate the help I get from this group, even if they are novice questions that I ask. -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Larry Roux Sent: Thursday, January 29, 2004 3:51 PM To: Patricia.Overcashier@aam.com; sqr-users@sqrug.org Subject: Re: [sqr-users] help with finding gaps Can't you just do a "last number" thing? ie: begin-procedure find-gaps Let #LAST_EMPLID = 0 select A.EMPLID Let #PRESENT_EMPLID = &A.EMPLID Let #GAP = #PRESENT_EMPLID - #LAST_EMPLID if #GAP > 1 show 'Gap between ' #LAST_EMPLID ' and ' #PRESENT_EMPLID end-if Let #LAST_EMPLID = #PRESENT_EMPLID from PS_JOB A order by A.EMPLID end-select end-procedure ****************************** Larry Roux Syracuse University lroux@syr.edu ******************************* >>> Patricia.Overcashier@aam.com 01/29/04 03:31PM >>> O.k., I guess this is more of an sql question than an sqr question, but it is in an sqr I am creating, so I thought I would check with you guys to see if you could help. My sqr needs to check for gaps in emplids and report on them. The reporting part is easy, it's the select logic I am having a hard time with. We have thousands of emplids on PS_JOB table. Occasionally there are gaps, i.e. 000001 000002 000004 where 000003 is missing. Sometimes there are gaps of hundreds instead of one or two. I need to create an sqr that will report all of the emplid that are not in my sequential select. I hope I explained this o.k. Any ideas. The reporting part is easy and I don't need help with that, it's just what sql to use. P.S. I really hate arrays, so if there is a solution that doesn't require an array, it will be much appreciated! This is what I have so far :) select distinct(emplid) from ps_job order by emplid ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.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-admin@sqrug.org Thu Jan 29 16:03:06 2004 Date: Thu, 29 Jan 2004 16:02:20 -0500 From: "George Jansen" Subject: Re: [sqr-users] help with finding gaps If you are using Oracle 8.1 or up SQL> SELECT emplid, next_emplid 2 FROM 3 (SELECT emplid, lead(emplid, 1, NULL) OVER (ORDER BY emplid) AS next_emplid 4 FROM (SELECT DISTINCT EMPLID FROM PS_JOB) 5 ) 6 WHERE emplid + 1 != next_emplid; EMPLID NEXT_EMPLID ----------- ----------- 1565 1567 1645 1647 1679 1681 will show you the edges of the gap. Otherwise you could do an outer join. Showing you the missing ones.... Well, you'd have to generate a dense sequence from min(emplid) to max(emplid). Hmm... SQL> l 1 SELECT aa.rn AS missing_emplid 2 FROM 3 (SELECT rownum AS rn 4 FROM all_objects) aa, 5 (SELECT emplid, next_emplid 6 FROM 7 (SELECT emplid, lead(emplid, 1, NULL) OVER (ORDER BY emplid) AS next_emplid 8 FROM (SELECT DISTINCT EMPLID FROM PS_JOB) 9 ) 10 WHERE emplid + 1 != next_emplid 11 ) j 12 WHERE aa.rn > j.emplid 13 AND aa.rn < j.next_emplid 14* ORDER BY aa.rn SQL> / MISSING_EMPLID -------------- 1566 1646 1680 ... Now, ALL_OBJECTS amply covers my puny range of EMPLIDs. For GM, say, you might find it necessary to take a Cartesian join of ALL_OBJECTS with itself.... >>> Patricia.Overcashier@aam.com 01/29/04 03:31PM >>> O.k., I guess this is more of an sql question than an sqr question, but it is in an sqr I am creating, so I thought I would check with you guys to see if you could help. My sqr needs to check for gaps in emplids and report on them. The reporting part is easy, it's the select logic I am having a hard time with. We have thousands of emplids on PS_JOB table. Occasionally there are gaps, i.e. 000001 000002 000004 where 000003 is missing. Sometimes there are gaps of hundreds instead of one or two. I need to create an sqr that will report all of the emplid that are not in my sequential select. I hope I explained this o.k. Any ideas. The reporting part is easy and I don't need help with that, it's just what sql to use. P.S. I really hate arrays, so if there is a solution that doesn't require an array, it will be much appreciated! This is what I have so far :) select distinct(emplid) from ps_job order by emplid ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.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-admin@sqrug.org Fri Jan 30 11:31:48 2004 Date: Fri, 30 Jan 2004 11:30:07 -0500 From: "Maria Ravanis" Subject: [sqr-users] Left Outer Join Hi All - I really feel stupid asking this but I can't seem to get the syntax right to do a left outer join within my SQR - being new to SQL Server I am at a loss - can someone help? Syntax visuals will be very useful! Thanks - Maria _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 30 11:48:07 2004 Date: Fri, 30 Jan 2004 11:47:13 -0500 From: "Larry Roux" Subject: Re: [sqr-users] Left Outer Join Which RDBMS are you using? The joins are DB specific For Oracle: You have table A and B You want all rows in A, and only data from B if it exists: select A.NAME, B.SSN from NAMES_TBL A, NIDS B where A.ID = B.ID (+) The same in Sybase would be select A.NAME, B.SSN from NAMES_TBL A, NIDS B where A.ID += B.ID Hope this helps. ****************************** Larry Roux Syracuse University lroux@syr.edu ******************************* >>> Maria_Ravanis@skillsoft.com 01/30/04 11:30AM >>> Hi All - I really feel stupid asking this but I can't seem to get the syntax right to do a left outer join within my SQR - being new to SQL Server I am at a loss - can someone help? Syntax visuals will be very useful! Thanks - Maria _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 30 12:10:11 2004 Subject: RE: [sqr-users] Left Outer Join Date: Fri, 30 Jan 2004 12:09:48 -0500 From: "Maria Ravanis" -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org] On Behalf Of Larry Roux Sent: Friday, January 30, 2004 11:47 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Left Outer Join Which RDBMS are you using? The joins are DB specific For Oracle: You have table A and B You want all rows in A, and only data from B if it exists: select A.NAME, B.SSN from NAMES_TBL A, NIDS B where A.ID = B.ID (+) The same in Sybase would be select A.NAME, B.SSN from NAMES_TBL A, NIDS B where A.ID += B.ID Hope this helps. ****************************** Larry Roux Syracuse University lroux@syr.edu ******************************* >>> Maria_Ravanis@skillsoft.com 01/30/04 11:30AM >>> Hi All - I really feel stupid asking this but I can't seem to get the syntax right to do a left outer join within my SQR - being new to SQL Server I am at a loss - can someone help? Syntax visuals will be very useful! Thanks - Maria _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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-admin@sqrug.org Fri Jan 30 13:18:14 2004 Date: Fri, 30 Jan 2004 10:17:21 -0800 (PST) From: Darrel Scott Subject: Re: [sqr-users] Array Sort/Grouping Help Hello all.... Based on what's been sugessted (and heavy trial and error), here's what my code looks like now... Begin-Procedure Build-Array Let #i = 0 Let $Exists = 'N' While #i < #ArrayCtr If #ID = ID_Array.ID(#i) Array-Add #NBR to ID_Array(#i) NBR Let $Exists = 'Y' Let #i = #ArrayCtr End-If Add 1 to #i End-While If $Exists = 'N' PUT #ID #NBR INTO ID_Array(#ArrayCtr) ID NBR Add 1 to #ArrayCtr End-If End-Procedure I call the above procedure from within the select statement in which I gather all my IDs and their appropriate sum(NBRs). When I'm ready to send my data to an output file, I pass my logic from within a second While loop (similar to the one in my Build-Array procedure). I've throughly tested this and I get exactly what I need. Thank you all for your help. - Darrel George Jansen wrote: I continue to suspect you are doing this the hard way, and that there is a simpler solution. However, your immediate problem is that SQR arrays are dense and your IDs are sparse. You can map the sparse IDs onto the dense array using LOAD-LOOKUP/LOOKUP: the KEY of the lookup table will be the ID#, the RETURN_VALUE will be some arbitrary but unique number such as Oracle's ROWNUM pseudo-column. Then when you go to stash an NBR> pair in the array, you will first lookup the array index (the ROWNUM), then use array-add to sum. The following pointless SQR illustrates this method using a view built as CREATE VIEW DISTINCT_COLUMNS AS SELECT DISTINCT COLUMN_NAME FROM USER_TAB_COLUMNS Begin-Report Do init-array Do with-tables Do show-sums End-Report Begin-Setup Load-Lookup Name=ids Table=distinct_columns Key=column_name Return_Value=rownum Create-Array name=cols size=50 field=id:char field=sum_of_length:number=0 End-Setup Begin-Procedure init-array let #i = 0 while #i < 50 put 0 into cols(#i) sum_of_length let #i = #i + 1 end-while End-Procedure Begin-Procedure with-tables Begin-Select table_name do with-columns(&table_name) >From user_tables End-Select End-Procedure Begin-Procedure with-columns($table_name) Begin-Select column_name data_length lookup ids &column_name $idx let #idx = to_number($idx) array-add &data_length to cols(#idx) sum_of_length put &column_name into cols(#idx) id ! idempotent, isn't that the word? >From user_tab_columns Where table_name = $table_name End-Select End-Procedure Begin-Procedure show-sums let #i = 0 while #i < 50 get $colname #sum from cols(#i) if #sum > 0 display $colname noline display ' -> ' noline display #sum end-if let #i = #i + 1 end-while End-Procedure _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 30 16:19:42 2004 Date: Fri, 30 Jan 2004 16:18:05 -0500 From: "Kutz, Frederick" Subject: [sqr-users] DB2 Optimizer question I'm an old hat at basic SQR using older versions, but new to DB2, as well as new to the latest versions of SQR. We have some SQR reports that are running dog slow, because the SQL is complex enough to give the DB2 optmizer too many choices. So we spend hours waiting for it to figure out the right "path" to execute, and seconds actually getting results. The same SQL statements could be compiled and run in a few seconds, if the optimizer level was set lower. My question is pretty basic. Any idea how to do this in an SQR? I tried setting the optimizer level in a SQL block, but I fear that it only applies to one cursor at a time. I also tried using the old syntax "begin-sql -cx" (x being a cursor number), and using the same thing in the begin-select, in hopes of using the same cursor with the optimizer level being set on it. I just got back an error though. Other suggestions? Fred... _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 30 17:34:30 2004 From: Peter Burton Subject: RE: [sqr-users] DB2 Optimizer question Date: Fri, 30 Jan 2004 17:32:59 -0500 This is a multi-part message in MIME format... ------_=_NextPart_000_01C3E781.03991F70 Content-Type: text/plain; charset="iso-8859-1" Fred, Run this "SQR {Program} {Connectivity}" as you will see the default level (in my case a 5). Running this as "SQR {Program} {Connectivity} -DEBUG" will show the level as a "3". Therefore, setting the level within a Begin-SQL block affects the program as a whole. #ifDef Debug Begin-Setup Begin-SQL set current query optimization 3 End-SQL End-Setup #EndIf Begin-Report Move 'current query optimization' To $C Begin-Select [$C] &cqo=number From Dual End-Select Show &cqo End-Report Peter > -----Original Message----- > From: sqr-users-admin@sqrug.org@HYPERION On Behalf Of "Kutz, Frederick" > > Sent: Friday, January 30, 2004 4:18 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] DB2 Optimizer question > > I'm an old hat at basic SQR using older versions, but new to DB2, as > well as new to the latest versions of SQR. > > We have some SQR reports that are running dog slow, because the SQL is > complex enough to give the DB2 optmizer too many choices. So we spend > hours waiting for it to figure out the right "path" to execute, and > seconds actually getting results. The same SQL statements could be > compiled and run in a few seconds, if the optimizer level was set lower. > > My question is pretty basic. Any idea how to do this in an SQR? > > I tried setting the optimizer level in a SQL block, but I fear that it > only applies to one cursor at a time. I also tried using the old syntax > "begin-sql -cx" (x being a cursor number), and using the same thing in > the begin-select, in hopes of using the same cursor with the optimizer > level being set on it. I just got back an error though. > > Other suggestions? > > Fred... > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > ------_=_NextPart_000_01C3E781.03991F70 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/ms-tnef' MIME type. It has been automatically discarded before sending the message to the list. ------_=_NextPart_000_01C3E781.03991F70-- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 30 17:40:07 2004 Date: Fri, 30 Jan 2004 14:39:08 -0800 (PST) From: "Prasad. Koneru" Subject: [sqr-users] Capturing SQL Errors in Oracle. Hi folks, We are converting from PeopleSoft 8SP2 on MVS/DB2 to UNIX/ORACLE9i. I don't have the environment to test yet, but am assigned the task of handling the SQL Errors in our SQRs so that the code will work both in an MVS/DB2 and UNIX/ORACLE environments. Has anyone come across a similar situation ? If so could you please give me some insight into it. I think more specifically I'm looking for what kind of SQL Error messages would we get in the ORACLE database for corresponding DB2 codes like +100, -803, -811, -903 etc. Thanks in advance for your help. Prasad Koneru. Aquila Inc. __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 30 19:03:15 2004 Date: Fri, 30 Jan 2004 19:02:05 -0500 (EST) From: mc_integra8 Subject: [sqr-users] CURSOR error message when running SQR on Unix with readonly user This is a multi-part message in MIME format... --0-1419990707-1075507325=:33185 Content-Type: text/plain; charset=us-ascii I am hoping someone can help me with this. Here is all the version info: SQR: SQR/3.0.12.3/Sun/Solaris 2.4/Sybase 4.9.2/Mar 19 1996 Unix: Solaris OS V2.8, database: Sybase V11.9.2. For the last couple of years, I have a SQR program executing with no problems. Due to security issues with the sybase user (local) that executes this program (it has dbo access to the database db_local), I was asked to change the sybase user to a different user that has less privileges. I had a new sybase user setup (report) that has read, execute, update privileges to a database called db_local). I am now running into an error, this is the error: (SQR 5528) Sybase DBSQLEXEC error in cursor 2: (10331) CREATE PROCEDURE permission denied, database concorde, owner dbo SQL: create procedure SQR_19849_1075416278;1 @__p1 varchar(12) as select cpty_margin_ai from db_local..reporac where trade_id = @__p1 Error on line 154: (SQR 3722) Couldn't set up cursor. SQR: Program Aborting. Please note that the new user, report & local both have readonly to the database concorde. This error also occurs on NT, here is the version info: SQR/4.0.2/PC/WINDOWS NT 4.0/Sybase CT-LIB 10.0.3/MAY02 1997 I have attached my SQR program Thanks in advance, Martha --------------------------------- Post your free ad now! Yahoo! Canada Personals --0-1419990707-1075507325=:33185 Content-Type: text/plain; name="repo_1202_693.sqr" Content-Description: repo_1202_693.sqr Content-Disposition: inline; filename="repo_1202_693.sqr" BEGIN-REPORT do main END-REPORT BEGIN-SETUP declare Printer Type=HPLaserJet orientation=Landscape Font=45 Top-Margin=0.5 Left-Margin=0.0 !Lines-Inch=10 Lines-Inch=9 Chars-Inch=16.6 Point-size=7 Symbol-Set=8U Font-Style=Fixed Page-size 65 230 printer-init <27>&l3A END-SETUP BEGIN-HEADING 6 print '' (1,1) print 'OUTSTANDING REPOS/REVERSES LENDS/BORROWS' (1) center bold do print_as_of_date print '<----- Before Margin Requirements ----->' (+3,138) bold print '<------ Including Margin Requirements ----->' (,183) bold print 'Customer' (+1,1) bold print 'Cusip' (,12) bold print 'Maturity' (,23) bold print 'Repo' (,36) bold print 'Trade' (,43) bold print 'On Date' (,51) bold print 'Off Date' (,63) bold print 'Trade' (,75) bold print 'Type' (,84) bold print 'Depo' (,89) bold print 'Nominal' (,99) bold print 'Instrument' (,107) bold print 'Price' (,127) bold print 'Bonds' (,145) bold print 'Cash/Collatl' (,154) bold print 'Net Diff' (,169) bold print 'Bonds' (,189) bold print 'Cash/Collatl' (,202) bold print 'Net Diff' (,217) bold print '(in mm)' (+1,99) bold print 'Date' (,25) bold print 'Rate' (,36) bold print 'Price' (,43) bold graphic (+1,1,230) horz-line print ' ' (+1) END-HEADING BEGIN-FOOTING 2 print 'Printed: ' (2,1,0) bold date-time (2,11,0) page-number (2,220) 'Page ' END-FOOTING BEGIN-PROCEDURE main move 0 to #bond_before_tot move 0 to #grand_bond_before_tot move 0 to #net_before_tot move 0 to #grand_net_before_tot move 0 to #net_diff_before_tot move 0 to #grand_net_diff_before_tot move 0 to #bond_after_tot move 0 to #grand_bond_after_tot move 0 to #net_after_tot move 0 to #grand_net_after_tot move 0 to #net_diff_after_tot move 0 to #grand_net_diff_after_tot do get_data do grand_print_totals END-PROCEDURE main BEGIN-PROCEDURE get_data BEGIN-SELECT nm_cpty_name (+1,1) ON-BREAK LEVEL = 1 SKIPLINES = 2 sort_type (,11) ON-BREAK LEVEL = 2 AFTER=print_totals SKIPLINES = 2 PRINT=NEVER cusip (+1,12) sec_mat_date (,23) edit DD/Mon/YYYY repo_rate (,36) edit 99.99 trade_price (,42) edit 999.99 on_date (,51) edit DD/Mon/YYYY off_date (,63) edit DD/Mon/YYYY trade_id (,75) trade_type (,84) depository (,89) nominal (,96) edit 9,999.999 sec_name (,107) market_price (,127) edit 999.999 bonds_amt &bonds_before_amt (,137) edit b9,999,999,999 net_amt + interest_amt &net_before_amt (,152) edit b9,999,999,999 bonds_amt + net_amt + interest_amt &net_before_diff (,166) edit b9,999,999,999 bonds_after_margin_amt &bonds_after_amt (,182) edit b9,999,999,999 cash_after_margin_amt + int_after_margin_amt &net_after_amt (,197) edit b9,999,999,999 bonds_after_margin_amt + cash_after_margin_amt + int_after_margin_amt &net_after_diff (,212) edit b9,999,999,999 add &bonds_before_amt to #bond_before_tot add &net_before_amt to #net_before_tot add &net_before_diff to #net_diff_before_tot add &bonds_after_amt to #bond_after_tot add &net_after_amt to #net_after_tot add &net_after_diff to #net_diff_after_tot from db_local..reporac order by nm_cpty_name, sort_type, trade_type, sec_mat_date, cusip END-SELECT END-PROCEDURE get_data BEGIN-PROCEDURE get_date BEGIN-SELECT dt_current &dt_current from concorde..concorde END-SELECT do date END-PROCEDURE get_date BEGIN-PROCEDURE date let $date = &dt_current END-PROCEDURE date BEGIN-PROCEDURE print_as_of_date do get_date print 'As of date: ' (,202) bold print $date (,216) edit DD-Mon-YYYY END-PROCEDURE print_as_of_date BEGIN-PROCEDURE print_totals print '------------' (+1,139) print '------------' (,154) print '-----------' (,169) print '------------' (,184) print '------------' (,199) print '-----------' (,215) print #bond_before_tot (+2,137) edit 99,999,999,999 print #net_before_tot (,152) edit 99,999,999,999 print #net_diff_before_tot (,167) edit 9,999,999,999 print #bond_after_tot (,182) edit 99,999,999,999 print #net_after_tot (,197) edit 99,999,999,999 print #net_diff_after_tot (,213) edit 9,999,999,999 add #bond_before_tot to #grand_bond_before_tot add #net_before_tot to #grand_net_before_tot add #net_diff_before_tot to #grand_net_diff_before_tot add #bond_after_tot to #grand_bond_after_tot add #net_after_tot to #grand_net_after_tot add #net_diff_after_tot to #grand_net_diff_after_tot move 0 to #bond_before_tot move 0 to #net_before_tot move 0 to #net_diff_before_tot move 0 to #bond_after_tot move 0 to #net_after_tot move 0 to #net_diff_after_tot END-PROCEDURE print_totals BEGIN-PROCEDURE grand_print_totals print '============' (+3,139) print '============' (,154) print '============' (,168) print '============' (,184) print '============' (,199) print '============' (,214) print #grand_bond_before_tot (+2,137) edit 99,999,999,999 print #grand_net_before_tot (,152) edit 99,999,999,999 print #grand_net_diff_before_tot (,167) edit 9,999,999,999 print #grand_bond_after_tot (,182) edit 99,999,999,999 print #grand_net_after_tot (,197) edit 99,999,999,999 print #grand_net_diff_after_tot (,213) edit 9,999,999,999 END-PROCEDURE grand_print_totals --0-1419990707-1075507325=:33185-- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Jan 30 20:16:31 2004 From: Peter Burton Subject: RE: [sqr-users] CURSOR error message when running SQR on Unix wit h readonly user Date: Fri, 30 Jan 2004 20:15:22 -0500 This is a multi-part message in MIME format... ------_=_NextPart_000_01C3E797.B2B3C670 Content-Type: text/plain; charset="iso-8859-1" Martha, By default SQR will automatically create stored procedures as needed. To disable this functionality add the -XP to the command line. Peter > -----Original Message----- > From: sqr-users-admin@sqrug.org@HYPERION On Behalf Of mc_integra8 > > Sent: Friday, January 30, 2004 7:02 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] CURSOR error message when running SQR on Unix > with readonly user > > I am hoping someone can help me with this. Here is all the version info: > > SQR: SQR/3.0.12.3/Sun/Solaris 2.4/Sybase 4.9.2/Mar 19 1996 > Unix: Solaris OS V2.8, > database: Sybase V11.9.2. > > For the last couple of years, I have a SQR program executing with no > problems. Due to security issues with the sybase user (local) that > executes this program (it has dbo access to the database db_local), I was > asked to change the sybase user to a different user that has less > privileges. I had a new sybase user setup (report) that has read, > execute, update privileges to a database called db_local). I am now > running into an error, this is the error: > > (SQR 5528) Sybase DBSQLEXEC error in cursor 2: > (10331) CREATE PROCEDURE permission denied, database concorde, owner dbo > SQL: create procedure SQR_19849_1075416278;1 @__p1 varchar(12) as select > cpty_margin_ai from db_local..reporac where trade_id = @__p1 > Error on line 154: > (SQR 3722) Couldn't set up cursor. > SQR: Program Aborting. > > Please note that the new user, report & local both have readonly to the > database concorde. > > This error also occurs on NT, here is the version info: > SQR/4.0.2/PC/WINDOWS NT 4.0/Sybase CT-LIB 10.0.3/MAY02 1997 > > I have attached my SQR program > > Thanks in advance, > Martha > > > > > --------------------------------- > Post your free ad now! Yahoo! Canada Personals > > > BEGIN-REPORT > do main > END-REPORT > BEGIN-SETUP > declare Printer > Type=HPLaserJet > orientation=Landscape > Font=45 > Top-Margin=0.5 > Left-Margin=0.0 > !Lines-Inch=10 > Lines-Inch=9 > Chars-Inch=16.6 > Point-size=7 > Symbol-Set=8U > Font-Style=Fixed > Page-size 65 230 > printer-init <27>&l3A > END-SETUP > BEGIN-HEADING 6 > print '' (1,1) > print 'OUTSTANDING REPOS/REVERSES LENDS/BORROWS' (1) center bold > do print_as_of_date > print '<----- Before Margin Requirements ----->' (+3,138) bold > print '<------ Including Margin Requirements ----->' (,183) bold > print 'Customer' (+1,1) bold > print 'Cusip' (,12) bold > print 'Maturity' (,23) bold > print 'Repo' (,36) bold > print 'Trade' (,43) bold > print 'On Date' (,51) bold > print 'Off Date' (,63) bold > print 'Trade' (,75) bold > print 'Type' (,84) bold > print 'Depo' (,89) bold > print 'Nominal' (,99) bold > print 'Instrument' (,107) bold > print 'Price' (,127) bold > print 'Bonds' (,145) bold > print 'Cash/Collatl' (,154) bold > print 'Net Diff' (,169) bold > print 'Bonds' (,189) bold > print 'Cash/Collatl' (,202) bold > print 'Net Diff' (,217) bold > print '(in mm)' (+1,99) bold > print 'Date' (,25) bold > print 'Rate' (,36) bold > print 'Price' (,43) bold > graphic (+1,1,230) horz-line > print ' ' (+1) > END-HEADING > BEGIN-FOOTING 2 > print 'Printed: ' (2,1,0) bold > date-time (2,11,0) > page-number (2,220) 'Page ' > END-FOOTING > BEGIN-PROCEDURE main > move 0 to #bond_before_tot > move 0 to #grand_bond_before_tot > move 0 to #net_before_tot > move 0 to #grand_net_before_tot > move 0 to #net_diff_before_tot > move 0 to #grand_net_diff_before_tot > move 0 to #bond_after_tot > move 0 to #grand_bond_after_tot > move 0 to #net_after_tot > move 0 to #grand_net_after_tot > move 0 to #net_diff_after_tot > move 0 to #grand_net_diff_after_tot > do get_data > do grand_print_totals > END-PROCEDURE main > BEGIN-PROCEDURE get_data > BEGIN-SELECT > nm_cpty_name (+1,1) > ON-BREAK LEVEL = 1 SKIPLINES = 2 > sort_type (,11) ON-BREAK > LEVEL = 2 AFTER=print_totals SKIPLINES = 2 PRINT=NEVER > cusip (+1,12) > sec_mat_date (,23) edit > DD/Mon/YYYY > repo_rate (,36) edit 99.99 > trade_price (,42) edit 999.99 > on_date (,51) edit > DD/Mon/YYYY > off_date (,63) edit > DD/Mon/YYYY > trade_id (,75) > trade_type (,84) > depository (,89) > nominal (,96) edit > 9,999.999 > sec_name (,107) > market_price (,127) edit 999.999 > bonds_amt &bonds_before_amt > (,137) edit b9,999,999,999 > net_amt + interest_amt > &net_before_amt (,152) edit b9,999,999,999 > bonds_amt + net_amt + interest_amt &net_before_diff > (,166) edit b9,999,999,999 > bonds_after_margin_amt > &bonds_after_amt (,182) edit b9,999,999,999 > cash_after_margin_amt + int_after_margin_amt &net_after_amt > (,197) edit b9,999,999,999 > bonds_after_margin_amt + cash_after_margin_amt + int_after_margin_amt > &net_after_diff (,212) edit b9,999,999,999 > add &bonds_before_amt to #bond_before_tot > add &net_before_amt to #net_before_tot > add &net_before_diff to #net_diff_before_tot > add &bonds_after_amt to #bond_after_tot > add &net_after_amt to #net_after_tot > add &net_after_diff to #net_diff_after_tot > from db_local..reporac > order by nm_cpty_name, sort_type, trade_type, sec_mat_date, cusip > END-SELECT > END-PROCEDURE get_data > BEGIN-PROCEDURE get_date > BEGIN-SELECT > dt_current &dt_current > from concorde..concorde > END-SELECT > do date > END-PROCEDURE get_date > BEGIN-PROCEDURE date > let $date = &dt_current > END-PROCEDURE date > BEGIN-PROCEDURE print_as_of_date > do get_date > print 'As of date: ' > (,202) bold > print $date (,216) > edit DD-Mon-YYYY > END-PROCEDURE print_as_of_date > > BEGIN-PROCEDURE print_totals > print '------------' (+1,139) > print '------------' (,154) > print '-----------' (,169) > print '------------' (,184) > print '------------' (,199) > print '-----------' (,215) > print #bond_before_tot > (+2,137) edit 99,999,999,999 > print #net_before_tot (,152) edit > 99,999,999,999 > print #net_diff_before_tot (,167) edit > 9,999,999,999 > print #bond_after_tot (,182) edit > 99,999,999,999 > print #net_after_tot (,197) edit > 99,999,999,999 > print #net_diff_after_tot (,213) edit > 9,999,999,999 > add #bond_before_tot to #grand_bond_before_tot > add #net_before_tot to #grand_net_before_tot > add #net_diff_before_tot to #grand_net_diff_before_tot > add #bond_after_tot to #grand_bond_after_tot > add #net_after_tot to #grand_net_after_tot > add #net_diff_after_tot to #grand_net_diff_after_tot > move 0 to #bond_before_tot > move 0 to #net_before_tot > move 0 to #net_diff_before_tot > move 0 to #bond_after_tot > move 0 to #net_after_tot > move 0 to #net_diff_after_tot > END-PROCEDURE print_totals > > BEGIN-PROCEDURE grand_print_totals > print '============' (+3,139) > print '============' (,154) > print '============' (,168) > print '============' (,184) > print '============' (,199) > print '============' (,214) > print #grand_bond_before_tot > (+2,137) edit 99,999,999,999 > print #grand_net_before_tot > (,152) edit 99,999,999,999 > print #grand_net_diff_before_tot > (,167) edit 9,999,999,999 > print #grand_bond_after_tot > (,182) edit 99,999,999,999 > print #grand_net_after_tot > (,197) edit 99,999,999,999 > print #grand_net_diff_after_tot > (,213) edit 9,999,999,999 > END-PROCEDURE grand_print_totals > ------_=_NextPart_000_01C3E797.B2B3C670 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/ms-tnef' MIME type. It has been automatically discarded before sending the message to the list. ------_=_NextPart_000_01C3E797.B2B3C670-- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Sat Jan 31 09:56:06 2004 Date: Sat, 31 Jan 2004 09:54:06 -0500 From: "George Jansen" Subject: Re: [sqr-users] Capturing SQL Errors in Oracle. You can trap Oracle errors very well by using PL/SQL stored procedures (preferably packaged) called from a Begin-SQL/End-SQL block. But is that an option for you? You write "our SQRs". Are these supplied by PeopleSoft, or do you mean that your company has written them? If the former, you might want to talk to PeopleSoft support. I suppose that what I'd aim at is establishing the list of errors I wanted to handle: key conflict, table or index out of space, etc. Then I'd set up a test schema in DB2 that included tables of test data and a table of error names and error codes. Then I could write a test program with sections like let $next-error = 'PRIMARY KEY CONFLICT Begin-SQL ON-Error=record-error INSERT INTO VICTIM1 (keycol) VALUES (1); End-SQL .... Begin-Procedure Begin-SQL INSERT INTO standard-errors VALUES(#sql-error, $error-description); End-SQL End-Procedure Then you can accumulate the Oracle & DB2 error codes you want to handle. Knowing them, you can create an SQC and you use #IFs to define your variable names by which the error codes shall be known. >>> manukoneru@yahoo.com 01/30/04 5:39 PM >>> Hi folks, We are converting from PeopleSoft 8SP2 on MVS/DB2 to UNIX/ORACLE9i. I don't have the environment to test yet, but am assigned the task of handling the SQL Errors in our SQRs so that the code will work both in an MVS/DB2 and UNIX/ORACLE environments. Has anyone come across a similar situation ? If so could you please give me some insight into it. I think more specifically I'm looking for what kind of SQL Error messages would we get in the ORACLE database for corresponding DB2 codes like +100, -803, -811, -903 etc. Thanks in advance for your help. Prasad Koneru. Aquila Inc. __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Sun Feb 1 00:01:59 2004 Date: Sun, 1 Feb 2004 00:00:03 -0500 From: Nathan Stratton Treadway Subject: [sqr-users] Monthly sqr-users Hints Posting sqr-users Mailing List Hints and Guidelines Nathan Stratton Treadway, Ray Ontko & Co. (nathanst@ontko.com) $Revision: 1.17 $ $Date: 2003-11-01 09:45:47-05 $ This document gathers in one location information about the sqr-users mail list. It includes instructions for changing your subscription settings (including unsubscribing), as well are guidelines for using the list. ______________________________________________________________________ Table of Contents 1. Changes Since Previous Version 2. Introduction 2.1 sqr-users Mailing List 2.2 sqr-users Hints and Guidelines Document 2.3 Related Mailing Lists 3. Interacting with the list server 3.1 Subscribing to the list 3.2 Unsubscribing from the list 3.3 When your email address changes 3.4 Digests 3.5 Obtaining your password 3.6 Problems 4. Posting to the sqr-users List 4.1 General Guidelines 4.2 Posting a Message 4.3 Replying to a Message 5. Job Announcements ______________________________________________________________________ 1. Changes Since Previous Version Changes since the version dated 2002/11/13: o Hyperion has aqcuired Brio Software. o Add section on what to do when one's e-mail address changes. o Mention that the subscription address and message return address must exactly match in order to post to the 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-2002 by Ray Ontko & Co. It may be freely copied and distributed provided it is not modified in any way and it retains the original copyright notice. 2.3. Related Mailing Lists Here are some mailing lists that cover topics relating to SQR in some way. sqr-jobs : SQR Jobs This list may be used for posting SQR-related resumes, recruitments, job announcements, project announcments, help- wanted, work-wanted ads, etc. To join, follow the link above, or send any message to "sqr-jobs-subscribe@yahoogroups.com". peoplesoft-fans : PeopleSoft Fans Moderated list covering technical and functional aspects of PeopleSoft. To join, follow the link above, or send any message to "peoplesoft-fans-subscribe@yahoogroups.com". psusers : PeopleSoft Users For questions related to any aspect of PeopleSoft (including PeopleSoft-specific SQR issues). This list has merged with the Peoplesoft Fans mailing list and is no longer active, but the message achive can still be found at the link above. BrioSQRReport : Brio SQR Report List for discussion of SQR and SQR Developer (formerly called Brio.Report and Report Builder). To join, follow the link above, or send any message to "BrioSQRReport- subscribe@yahoogroups.com". rm-users : Report- Mart Users List for discussion of Brio Portal (previously called ReportMart). To join, follow the link above, or send a message containing the word "subscribe" in the body to "rm-users- request@sqrug.org". brioportalusersgroup : Brio Portal Users Group list List for discussion of Brio Portal. To join, follow the link above, or send any message to "brioportalusersgroup- subscribe@yahoogroups.com". brio-l : OpenITx Brio List List for technical and functional discussion of all Brio products (but most messages are currently about Brio Intelligence). To join, follow the link above. briousers : Brio.Enter- prise Users List for discussion of the Brio.Enterprise (now called Intelligence) product. To join, follow the link above, or send any message to "briousers-subscribe@yahoogroups.com". briolist : Brio List List for discussion of Brio Intelligence. To join, follow the link above, or send any message to "briolist- subscribe@yahoogroups.com". 3. Interacting with the list server The sqr-users mailing list is hosted using the Mailman list server package. All of the Mailman functions described below are accessed from the sqr-users List Info page, "http://www.sqrug.org/mailman/listinfo/sqr-users". 3.1. Subscribing to the list To subscribe to the mailing list, enter your e-mail address in the box at the top of the "Subscribing to sqr-users" section on the sqr-users List Info page, then choose a password to assign to your subscription and enter it in both "Password" boxes. This password is used to allow you to securely make changes to your subscription over the web. This password will be e-mailed back to you at varous times, so you should not use the same password as you are using elsewhere. Once you have filled in the password, click the "Subscribe" button. You should soon receive an e-mail message from the list server requesting confirmation of your subscription request. Once you have replied to this message and your subscription has been processed, you will receive a "welcome" message giving you more information on the list server, and as well as a reminder of the subscription password you chose. 3.2. Unsubscribing from the list To unsubscribe from the list, go to the sqr-users List Info page, enter your e-mail address in the "sqr-users Subscribers" section, and click the "Edit Options" button. In the page that comes up, there will be an "Unsubscribing from sqr-users" section; simply enter your password in the box there and click the "Unsubscribe" button. Assuming you enter the correct password, you will recieve a message stating "You have been unsubscribed." and the removal will take effect immediately (there is no need to send in a confirmation e-mail message). (If you have forgotton your password, see the ``Obtaining your Password'' section, below). 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). Unfortunately, the list server software currently does not provide a way for you to change the e-mail address used in a list subscription. This means that you will need to subscribe yourself from your new address and then unsubscribe yourself from the old address, using the normal subscribe and unsubscribe processes described above. 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, enter your address in the "sqr-users Subscribers" section of the sqr-users List Info page and click the "Edit Options" button. At the bottom of the resulting page, you will see a section titled "Your sqr-users Subscription Options". Change the "Set Digest Mode" option to "On", enter your subscription password in the box provided, and click the "Submit My Changes" button. (If you have forgotton your password, see the instructions below.) 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 unsubscribe or change your subscription options without your password. If you have forgotten your password, simply click the "Email My Password to Me" button on the Edit 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.) 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 in reply from other subscribers.) 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 Brio product and version number (see notes below) o Operating system 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's, so it's very important to mention whether you are using Brio'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 version number listed here is the one under which this copy of SQR was compiled, so you'll still need to include this infor- mation 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-admin@sqrug.org Mon Feb 2 06:10:43 2004 Subject: RE: [sqr-users] CURSOR error message when running SQR on Unix wit h readonly user (directmail) From: "Richard C Spoth" Date: Mon, 2 Feb 2004 06:11:50 -0500 You could also have your DBA grant the new "report" user permission to create Stored Procedures. Rick Spoth Peter Burton Sent by: sqr-users-admin@sqrug.org 01/30/04 08:15 PM Please respond to sqr-users To: "'sqr-users@sqrug.org'" cc: Subject: RE: [sqr-users] CURSOR error message when running SQR on Unix wit h readonly user Martha, By default SQR will automatically create stored procedures as needed. To disable this functionality add the -XP to the command line. Peter > -----Original Message----- > From: sqr-users-admin@sqrug.org@HYPERION On Behalf Of mc_integra8 > > Sent: Friday, January 30, 2004 7:02 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] CURSOR error message when running SQR on Unix > with readonly user > > I am hoping someone can help me with this. Here is all the version info: > > SQR: SQR/3.0.12.3/Sun/Solaris 2.4/Sybase 4.9.2/Mar 19 1996 > Unix: Solaris OS V2.8, > database: Sybase V11.9.2. > > For the last couple of years, I have a SQR program executing with no > problems. Due to security issues with the sybase user (local) that > executes this program (it has dbo access to the database db_local), I was > asked to change the sybase user to a different user that has less > privileges. I had a new sybase user setup (report) that has read, > execute, update privileges to a database called db_local). I am now > running into an error, this is the error: > > (SQR 5528) Sybase DBSQLEXEC error in cursor 2: > (10331) CREATE PROCEDURE permission denied, database concorde, owner dbo > SQL: create procedure SQR_19849_1075416278;1 @__p1 varchar(12) as select > cpty_margin_ai from db_local..reporac where trade_id = @__p1 > Error on line 154: > (SQR 3722) Couldn't set up cursor. > SQR: Program Aborting. > > Please note that the new user, report & local both have readonly to the > database concorde. > > This error also occurs on NT, here is the version info: > SQR/4.0.2/PC/WINDOWS NT 4.0/Sybase CT-LIB 10.0.3/MAY02 1997 > > I have attached my SQR program > > Thanks in advance, > Martha > > > > > --------------------------------- > Post your free ad now! Yahoo! Canada Personals > > > BEGIN-REPORT > do main > END-REPORT > BEGIN-SETUP > declare Printer > Type=HPLaserJet > orientation=Landscape > Font=45 > Top-Margin=0.5 > Left-Margin=0.0 > !Lines-Inch=10 > Lines-Inch=9 > Chars-Inch=16.6 > Point-size=7 > Symbol-Set=8U > Font-Style=Fixed > Page-size 65 230 > printer-init <27>&l3A > END-SETUP > BEGIN-HEADING 6 > print '' (1,1) > print 'OUTSTANDING REPOS/REVERSES LENDS/BORROWS' (1) center bold > do print_as_of_date > print '<----- Before Margin Requirements ----->' (+3,138) bold > print '<------ Including Margin Requirements ----->' (,183) bold > print 'Customer' (+1,1) bold > print 'Cusip' (,12) bold > print 'Maturity' (,23) bold > print 'Repo' (,36) bold > print 'Trade' (,43) bold > print 'On Date' (,51) bold > print 'Off Date' (,63) bold > print 'Trade' (,75) bold > print 'Type' (,84) bold > print 'Depo' (,89) bold > print 'Nominal' (,99) bold > print 'Instrument' (,107) bold > print 'Price' (,127) bold > print 'Bonds' (,145) bold > print 'Cash/Collatl' (,154) bold > print 'Net Diff' (,169) bold > print 'Bonds' (,189) bold > print 'Cash/Collatl' (,202) bold > print 'Net Diff' (,217) bold > print '(in mm)' (+1,99) bold > print 'Date' (,25) bold > print 'Rate' (,36) bold > print 'Price' (,43) bold > graphic (+1,1,230) horz-line > print ' ' (+1) > END-HEADING > BEGIN-FOOTING 2 > print 'Printed: ' (2,1,0) bold > date-time (2,11,0) > page-number (2,220) 'Page ' > END-FOOTING > BEGIN-PROCEDURE main > move 0 to #bond_before_tot > move 0 to #grand_bond_before_tot > move 0 to #net_before_tot > move 0 to #grand_net_before_tot > move 0 to #net_diff_before_tot > move 0 to #grand_net_diff_before_tot > move 0 to #bond_after_tot > move 0 to #grand_bond_after_tot > move 0 to #net_after_tot > move 0 to #grand_net_after_tot > move 0 to #net_diff_after_tot > move 0 to #grand_net_diff_after_tot > do get_data > do grand_print_totals > END-PROCEDURE main > BEGIN-PROCEDURE get_data > BEGIN-SELECT > nm_cpty_name (+1,1) > ON-BREAK LEVEL = 1 SKIPLINES = 2 > sort_type (,11) ON-BREAK > LEVEL = 2 AFTER=print_totals SKIPLINES = 2 PRINT=NEVER > cusip (+1,12) > sec_mat_date (,23) edit > DD/Mon/YYYY > repo_rate (,36) edit 99.99 > trade_price (,42) edit 999.99 > on_date (,51) edit > DD/Mon/YYYY > off_date (,63) edit > DD/Mon/YYYY > trade_id (,75) > trade_type (,84) > depository (,89) > nominal (,96) edit > 9,999.999 > sec_name (,107) > market_price (,127) edit 999.999 > bonds_amt &bonds_before_amt > (,137) edit b9,999,999,999 > net_amt + interest_amt > &net_before_amt (,152) edit b9,999,999,999 > bonds_amt + net_amt + interest_amt &net_before_diff > (,166) edit b9,999,999,999 > bonds_after_margin_amt > &bonds_after_amt (,182) edit b9,999,999,999 > cash_after_margin_amt + int_after_margin_amt &net_after_amt > (,197) edit b9,999,999,999 > bonds_after_margin_amt + cash_after_margin_amt + int_after_margin_amt > &net_after_diff (,212) edit b9,999,999,999 > add &bonds_before_amt to #bond_before_tot > add &net_before_amt to #net_before_tot > add &net_before_diff to #net_diff_before_tot > add &bonds_after_amt to #bond_after_tot > add &net_after_amt to #net_after_tot > add &net_after_diff to #net_diff_after_tot > from db_local..reporac > order by nm_cpty_name, sort_type, trade_type, sec_mat_date, cusip > END-SELECT > END-PROCEDURE get_data > BEGIN-PROCEDURE get_date > BEGIN-SELECT > dt_current &dt_current > from concorde..concorde > END-SELECT > do date > END-PROCEDURE get_date > BEGIN-PROCEDURE date > let $date = &dt_current > END-PROCEDURE date > BEGIN-PROCEDURE print_as_of_date > do get_date > print 'As of date: ' > (,202) bold > print $date (,216) > edit DD-Mon-YYYY > END-PROCEDURE print_as_of_date > > BEGIN-PROCEDURE print_totals > print '------------' (+1,139) > print '------------' (,154) > print '-----------' (,169) > print '------------' (,184) > print '------------' (,199) > print '-----------' (,215) > print #bond_before_tot > (+2,137) edit 99,999,999,999 > print #net_before_tot (,152) edit > 99,999,999,999 > print #net_diff_before_tot (,167) edit > 9,999,999,999 > print #bond_after_tot (,182) edit > 99,999,999,999 > print #net_after_tot (,197) edit > 99,999,999,999 > print #net_diff_after_tot (,213) edit > 9,999,999,999 > add #bond_before_tot to #grand_bond_before_tot > add #net_before_tot to #grand_net_before_tot > add #net_diff_before_tot to #grand_net_diff_before_tot > add #bond_after_tot to #grand_bond_after_tot > add #net_after_tot to #grand_net_after_tot > add #net_diff_after_tot to #grand_net_diff_after_tot > move 0 to #bond_before_tot > move 0 to #net_before_tot > move 0 to #net_diff_before_tot > move 0 to #bond_after_tot > move 0 to #net_after_tot > move 0 to #net_diff_after_tot > END-PROCEDURE print_totals > > BEGIN-PROCEDURE grand_print_totals > print '============' (+3,139) > print '============' (,154) > print '============' (,168) > print '============' (,184) > print '============' (,199) > print '============' (,214) > print #grand_bond_before_tot > (+2,137) edit 99,999,999,999 > print #grand_net_before_tot > (,152) edit 99,999,999,999 > print #grand_net_diff_before_tot > (,167) edit 9,999,999,999 > print #grand_bond_after_tot > (,182) edit 99,999,999,999 > print #grand_net_after_tot > (,197) edit 99,999,999,999 > print #grand_net_diff_after_tot > (,213) edit 9,999,999,999 > END-PROCEDURE grand_print_totals > Here was a non admissible message part of 'application/ms-tnef' MIME type. It has been automatically discarded before sending the message to the list. CONFIDENTIALITY NOTICE: This email message and any attachments are for the sole use of the intended recipient(s) and may contain proprietary, confidential, trade secret or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited and may be a violation of law. If you are not the intended recipient or a person responsible for delivering this message to an intended recipient, please contact the sender by reply email and destroy all copies of the original message. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Feb 2 07:51:11 2004 Subject: RE: [sqr-users] DB2 Optimizer question Date: Mon, 2 Feb 2004 07:50:09 -0500 From: "Kutz, Frederick" Thanks!!!! The key was putting the change to the optimization in the begin-setup. Now it works great. You are a lifesaver! Fred... -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org] On Behalf Of Peter Burton Sent: Friday, January 30, 2004 5:33 PM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] DB2 Optimizer question Fred, Run this "SQR {Program} {Connectivity}" as you will see the default level (in my case a 5). Running this as "SQR {Program} {Connectivity} -DEBUG" will show the level as a "3". Therefore, setting the level within a Begin-SQL block affects the program as a whole. #ifDef Debug Begin-Setup Begin-SQL set current query optimization 3 End-SQL End-Setup #EndIf Begin-Report Move 'current query optimization' To $C Begin-Select [$C] &cqo=number From Dual End-Select Show &cqo End-Report Peter > -----Original Message----- > From: sqr-users-admin@sqrug.org@HYPERION On Behalf Of "Kutz, Frederick" > > Sent: Friday, January 30, 2004 4:18 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] DB2 Optimizer question > > I'm an old hat at basic SQR using older versions, but new to DB2, as > well as new to the latest versions of SQR. > > We have some SQR reports that are running dog slow, because the SQL is > complex enough to give the DB2 optmizer too many choices. So we spend > hours waiting for it to figure out the right "path" to execute, and > seconds actually getting results. The same SQL statements could be > compiled and run in a few seconds, if the optimizer level was set > lower. > > My question is pretty basic. Any idea how to do this in an SQR? > > I tried setting the optimizer level in a SQL block, but I fear that it > only applies to one cursor at a time. I also tried using the old > syntax "begin-sql -cx" (x being a cursor number), and using the same > thing in the begin-select, in hopes of using the same cursor with the > optimizer level being set on it. I just got back an error though. > > Other suggestions? > > Fred... > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Feb 2 10:55:24 2004 From: Lori.Puntasecca@frx.com Date: Mon, 2 Feb 2004 10:50:29 -0500 Subject: [sqr-users] Using On-Error=Skip Hi All - I created an SQR that needs to check for the existence of a table and if it exists load the cust_id's to a temp table. It works fine if the table exists but if it doesn't I get an error on compile: (SQR 5528) INFORMIX SQL PREPARE/DECLARE error -206 (ISAM: -111) in cursor 4: The specified table (aafp_targs) is not in the database. Here is the code I use: Begin-Setup Begin-SQL Create temp table tmp_LeadFIDs ! all CustIDs from the Leads table (if exists) (cust_id integer ); End-SQL Begin-SQL On-Error=Skip Insert into tmp_LeadFIDs Select Distinct cust_id >From {$prefix}_targs ! prefix passed in LeadArgs file End-SQL End-Setup Does anyone have any other ideas on how to do this? Thanks in advance, Lori A Puntasecca Forest Laboratories, Inc. MIS- Data Tools Team email: lori.puntasecca@frx.com ____________________________________________________________________ This e-mail and its attachments may contain Forest Laboratories, Inc. proprietary information that is privileged, confidential or subject to copyright belonging to Forest Laboratories, Inc. This e-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this e-mail, or the employee or agent responsible for delivering this e-mail to the intended recipient, you are hereby notified that any dissemination, distribution, copying or action taken in relation to the contents of and attachments to this e-mail is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify the sender immediately and permanently delete the original and any copy of this e-mail and any printout. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Feb 2 11:07:08 2004 Subject: Re: [sqr-users] Using On-Error=Skip From: "Richard C Spoth" Date: Mon, 2 Feb 2004 11:08:25 -0500 SQR needs to see the table when it complies. There are 2 solutions I have used in the past. 1. Create the table in the Begin-Setup or 2. Use a SQR substtitution variable for the table name in all queries. Rick Spoth Lori.Puntasecca@frx.com Sent by: sqr-users-admin@sqrug.org 02/02/04 10:50 AM Please respond to sqr-users To: sqr-users@sqrug.org cc: Subject: [sqr-users] Using On-Error=Skip Hi All - I created an SQR that needs to check for the existence of a table and if it exists load the cust_id's to a temp table. It works fine if the table exists but if it doesn't I get an error on compile: (SQR 5528) INFORMIX SQL PREPARE/DECLARE error -206 (ISAM: -111) in cursor 4: The specified table (aafp_targs) is not in the database. Here is the code I use: Begin-Setup Begin-SQL Create temp table tmp_LeadFIDs ! all CustIDs from the Leads table (if exists) (cust_id integer ); End-SQL Begin-SQL On-Error=Skip Insert into tmp_LeadFIDs Select Distinct cust_id >From {$prefix}_targs ! prefix passed in LeadArgs file End-SQL End-Setup Does anyone have any other ideas on how to do this? Thanks in advance, Lori A Puntasecca Forest Laboratories, Inc. MIS- Data Tools Team email: lori.puntasecca@frx.com ____________________________________________________________________ This e-mail and its attachments may contain Forest Laboratories, Inc. proprietary information that is privileged, confidential or subject to copyright belonging to Forest Laboratories, Inc. This e-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this e-mail, or the employee or agent responsible for delivering this e-mail to the intended recipient, you are hereby notified that any dissemination, distribution, copying or action taken in relation to the contents of and attachments to this e-mail is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify the sender immediately and permanently delete the original and any copy of this e-mail and any printout. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Feb 2 12:09:18 2004 From: Lori.Puntasecca@frx.com Subject: RE: [sqr-users] Using On-Error=Skip Date: Mon, 2 Feb 2004 12:05:23 -0500 Thanks for the quick response, Rick. Questions re: your solutions: 1 - I don't want to create the table if it does exist (I would get an error too). Is there a way to say 'If not exists, Create table ...'? 2 - This is the only place in the SQR I attempt to access this table. That is why I try to load the data to a temp table to be accessed later in the program. If I use a substitution #variable (rather than an ask (@ file) variable, will that avoid the error? Thanks again, Lori Puntasecca -----Original Message----- From: Richard C Spoth [mailto:Spoth.Richard@healthnow.org] Sent: Monday, February 02, 2004 11:08 AM To: sqr-users@sqrug.org Cc: sqr-users@sqrug.org; sqr-users-admin@sqrug.org Subject: Re: [sqr-users] Using On-Error=Skip SQR needs to see the table when it complies. There are 2 solutions I have used in the past. 1. Create the table in the Begin-Setup or 2. Use a SQR substtitution variable for the table name in all queries. Rick Spoth Lori.Puntasecca@frx.com Sent by: sqr-users-admin@sqrug.org 02/02/04 10:50 AM Please respond to sqr-users To: sqr-users@sqrug.org cc: Subject: [sqr-users] Using On-Error=Skip Hi All - I created an SQR that needs to check for the existence of a table and if it exists load the cust_id's to a temp table. It works fine if the table exists but if it doesn't I get an error on compile: (SQR 5528) INFORMIX SQL PREPARE/DECLARE error -206 (ISAM: -111) in cursor 4: The specified table (aafp_targs) is not in the database. Here is the code I use: Begin-Setup Begin-SQL Create temp table tmp_LeadFIDs ! all CustIDs from the Leads table (if exists) (cust_id integer ); End-SQL Begin-SQL On-Error=Skip Insert into tmp_LeadFIDs Select Distinct cust_id >From {$prefix}_targs ! prefix passed in LeadArgs file End-SQL End-Setup Does anyone have any other ideas on how to do this? Thanks in advance, Lori A Puntasecca Forest Laboratories, Inc. MIS- Data Tools Team email: lori.puntasecca@frx.com ____________________________________________________________________ This e-mail and its attachments may contain Forest Laboratories, Inc. proprietary information that is privileged, confidential or subject to copyright belonging to Forest Laboratories, Inc. This e-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this e-mail, or the employee or agent responsible for delivering this e-mail to the intended recipient, you are hereby notified that any dissemination, distribution, copying or action taken in relation to the contents of and attachments to this e-mail is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify the sender immediately and permanently delete the original and any copy of this e-mail and any printout. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 e-mail and its attachments may contain Forest Laboratories, Inc. proprietary information that is privileged, confidential or subject to copyright belonging to Forest Laboratories, Inc. This e-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this e-mail, or the employee or agent responsible for delivering this e-mail to the intended recipient, you are hereby notified that any dissemination, distribution, copying or action taken in relation to the contents of and attachments to this e-mail is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify the sender immediately and permanently delete the original and any copy of this e-mail and any printout. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Feb 2 12:16:11 2004 Subject: RE: [sqr-users] Using On-Error=Skip From: "Richard C Spoth" Date: Mon, 2 Feb 2004 12:17:49 -0500 You should be able to just set a standard string variable with the table. Try something like this. Let $TableName ='tmp_LeadFIDs' Begin-SQL On-Error=Skip Insert into [$TableName] Select Distinct cust_id >From {$prefix}_targs ! prefix passed in LeadArgs file End-SQL Rick Spoth Lori.Puntasecca@frx.com Sent by: sqr-users-admin@sqrug.org 02/02/04 12:05 PM Please respond to sqr-users To: sqr-users@sqrug.org cc: Subject: RE: [sqr-users] Using On-Error=Skip Thanks for the quick response, Rick. Questions re: your solutions: 1 - I don't want to create the table if it does exist (I would get an error too). Is there a way to say 'If not exists, Create table ...'? 2 - This is the only place in the SQR I attempt to access this table. That is why I try to load the data to a temp table to be accessed later in the program. If I use a substitution #variable (rather than an ask (@ file) variable, will that avoid the error? Thanks again, Lori Puntasecca -----Original Message----- From: Richard C Spoth [mailto:Spoth.Richard@healthnow.org] Sent: Monday, February 02, 2004 11:08 AM To: sqr-users@sqrug.org Cc: sqr-users@sqrug.org; sqr-users-admin@sqrug.org Subject: Re: [sqr-users] Using On-Error=Skip SQR needs to see the table when it complies. There are 2 solutions I have used in the past. 1. Create the table in the Begin-Setup or 2. Use a SQR substtitution variable for the table name in all queries. Rick Spoth Lori.Puntasecca@frx.com Sent by: sqr-users-admin@sqrug.org 02/02/04 10:50 AM Please respond to sqr-users To: sqr-users@sqrug.org cc: Subject: [sqr-users] Using On-Error=Skip Hi All - I created an SQR that needs to check for the existence of a table and if it exists load the cust_id's to a temp table. It works fine if the table exists but if it doesn't I get an error on compile: (SQR 5528) INFORMIX SQL PREPARE/DECLARE error -206 (ISAM: -111) in cursor 4: The specified table (aafp_targs) is not in the database. Here is the code I use: Begin-Setup Begin-SQL Create temp table tmp_LeadFIDs ! all CustIDs from the Leads table (if exists) (cust_id integer ); End-SQL Begin-SQL On-Error=Skip Insert into tmp_LeadFIDs Select Distinct cust_id >From {$prefix}_targs ! prefix passed in LeadArgs file End-SQL End-Setup Does anyone have any other ideas on how to do this? Thanks in advance, Lori A Puntasecca Forest Laboratories, Inc. MIS- Data Tools Team email: lori.puntasecca@frx.com ____________________________________________________________________ This e-mail and its attachments may contain Forest Laboratories, Inc. proprietary information that is privileged, confidential or subject to copyright belonging to Forest Laboratories, Inc. This e-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this e-mail, or the employee or agent responsible for delivering this e-mail to the intended recipient, you are hereby notified that any dissemination, distribution, copying or action taken in relation to the contents of and attachments to this e-mail is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify the sender immediately and permanently delete the original and any copy of this e-mail and any printout. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 e-mail and its attachments may contain Forest Laboratories, Inc. proprietary information that is privileged, confidential or subject to copyright belonging to Forest Laboratories, Inc. This e-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this e-mail, or the employee or agent responsible for delivering this e-mail to the intended recipient, you are hereby notified that any dissemination, distribution, copying or action taken in relation to the contents of and attachments to this e-mail is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify the sender immediately and permanently delete the original and any copy of this e-mail and any printout. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Feb 2 12:27:08 2004 From: Lori.Puntasecca@frx.com Subject: RE: [sqr-users] Using On-Error=Skip Date: Mon, 2 Feb 2004 12:23:17 -0500 Hi again - Sorry if I wasnt clear - I do create the tmp_LeadFIDs table. It's the {$prefix}_targs (a database table) that does not exist (for some runs). Thanks, Lori -----Original Message----- From: Richard C Spoth [mailto:Spoth.Richard@healthnow.org] Sent: Monday, February 02, 2004 12:18 PM To: sqr-users@sqrug.org Cc: sqr-users@sqrug.org; sqr-users-admin@sqrug.org Subject: RE: [sqr-users] Using On-Error=Skip You should be able to just set a standard string variable with the table. Try something like this. Let $TableName ='tmp_LeadFIDs' Begin-SQL On-Error=Skip Insert into [$TableName] Select Distinct cust_id >From {$prefix}_targs ! prefix passed in LeadArgs file End-SQL Rick Spoth Lori.Puntasecca@frx.com Sent by: sqr-users-admin@sqrug.org 02/02/04 12:05 PM Please respond to sqr-users To: sqr-users@sqrug.org cc: Subject: RE: [sqr-users] Using On-Error=Skip Thanks for the quick response, Rick. Questions re: your solutions: 1 - I don't want to create the table if it does exist (I would get an error too). Is there a way to say 'If not exists, Create table ...'? 2 - This is the only place in the SQR I attempt to access this table. That is why I try to load the data to a temp table to be accessed later in the program. If I use a substitution #variable (rather than an ask (@ file) variable, will that avoid the error? Thanks again, Lori Puntasecca -----Original Message----- From: Richard C Spoth [mailto:Spoth.Richard@healthnow.org] Sent: Monday, February 02, 2004 11:08 AM To: sqr-users@sqrug.org Cc: sqr-users@sqrug.org; sqr-users-admin@sqrug.org Subject: Re: [sqr-users] Using On-Error=Skip SQR needs to see the table when it complies. There are 2 solutions I have used in the past. 1. Create the table in the Begin-Setup or 2. Use a SQR substtitution variable for the table name in all queries. Rick Spoth Lori.Puntasecca@frx.com Sent by: sqr-users-admin@sqrug.org 02/02/04 10:50 AM Please respond to sqr-users To: sqr-users@sqrug.org cc: Subject: [sqr-users] Using On-Error=Skip Hi All - I created an SQR that needs to check for the existence of a table and if it exists load the cust_id's to a temp table. It works fine if the table exists but if it doesn't I get an error on compile: (SQR 5528) INFORMIX SQL PREPARE/DECLARE error -206 (ISAM: -111) in cursor 4: The specified table (aafp_targs) is not in the database. Here is the code I use: Begin-Setup Begin-SQL Create temp table tmp_LeadFIDs ! all CustIDs from the Leads table (if exists) (cust_id integer ); End-SQL Begin-SQL On-Error=Skip Insert into tmp_LeadFIDs Select Distinct cust_id >From {$prefix}_targs ! prefix passed in LeadArgs file End-SQL End-Setup Does anyone have any other ideas on how to do this? Thanks in advance, Lori A Puntasecca Forest Laboratories, Inc. MIS- Data Tools Team email: lori.puntasecca@frx.com ____________________________________________________________________ This e-mail and its attachments may contain Forest Laboratories, Inc. proprietary information that is privileged, confidential or subject to copyright belonging to Forest Laboratories, Inc. This e-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this e-mail, or the employee or agent responsible for delivering this e-mail to the intended recipient, you are hereby notified that any dissemination, distribution, copying or action taken in relation to the contents of and attachments to this e-mail is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify the sender immediately and permanently delete the original and any copy of this e-mail and any printout. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 e-mail and its attachments may contain Forest Laboratories, Inc. proprietary information that is privileged, confidential or subject to copyright belonging to Forest Laboratories, Inc. This e-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this e-mail, or the employee or agent responsible for delivering this e-mail to the intended recipient, you are hereby notified that any dissemination, distribution, copying or action taken in relation to the contents of and attachments to this e-mail is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify the sender immediately and permanently delete the original and any copy of this e-mail and any printout. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 e-mail and its attachments may contain Forest Laboratories, Inc. proprietary information that is privileged, confidential or subject to copyright belonging to Forest Laboratories, Inc. This e-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this e-mail, or the employee or agent responsible for delivering this e-mail to the intended recipient, you are hereby notified that any dissemination, distribution, copying or action taken in relation to the contents of and attachments to this e-mail is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify the sender immediately and permanently delete the original and any copy of this e-mail and any printout. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Feb 2 12:29:05 2004 Subject: RE: [sqr-users] Using On-Error=Skip From: rwulfson@bost.com Date: Mon, 2 Feb 2004 10:32:18 -0700 We routinely drop the table with on-error=skip then rebuild it. That avoids all the sql errors and ensures that the table is empty when you start. Thanks, Russ Wulfson _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Feb 2 12:33:07 2004 Subject: RE: [sqr-users] Using On-Error=Skip From: "Richard C Spoth" Date: Mon, 2 Feb 2004 12:34:43 -0500 Then substitue that table name using a varaible. Let $TableName ='{$prefix}_targs' Begin-SQL On-Error=Skip Insert into tmp_LeadFIDs Select Distinct cust_id >From $TableName ! prefix passed in LeadArgs file End-SQL Rick Spoth Lori.Puntasecca@frx.com Sent by: sqr-users-admin@sqrug.org 02/02/04 12:23 PM Please respond to sqr-users To: sqr-users@sqrug.org cc: Subject: RE: [sqr-users] Using On-Error=Skip Hi again - Sorry if I wasnt clear - I do create the tmp_LeadFIDs table. It's the {$prefix}_targs (a database table) that does not exist (for some runs). Thanks, Lori -----Original Message----- From: Richard C Spoth [mailto:Spoth.Richard@healthnow.org] Sent: Monday, February 02, 2004 12:18 PM To: sqr-users@sqrug.org Cc: sqr-users@sqrug.org; sqr-users-admin@sqrug.org Subject: RE: [sqr-users] Using On-Error=Skip You should be able to just set a standard string variable with the table. Try something like this. Let $TableName ='tmp_LeadFIDs' Begin-SQL On-Error=Skip Insert into [$TableName] Select Distinct cust_id >From {$prefix}_targs ! prefix passed in LeadArgs file End-SQL Rick Spoth Lori.Puntasecca@frx.com Sent by: sqr-users-admin@sqrug.org 02/02/04 12:05 PM Please respond to sqr-users To: sqr-users@sqrug.org cc: Subject: RE: [sqr-users] Using On-Error=Skip Thanks for the quick response, Rick. Questions re: your solutions: 1 - I don't want to create the table if it does exist (I would get an error too). Is there a way to say 'If not exists, Create table ...'? 2 - This is the only place in the SQR I attempt to access this table. That is why I try to load the data to a temp table to be accessed later in the program. If I use a substitution #variable (rather than an ask (@ file) variable, will that avoid the error? Thanks again, Lori Puntasecca -----Original Message----- From: Richard C Spoth [mailto:Spoth.Richard@healthnow.org] Sent: Monday, February 02, 2004 11:08 AM To: sqr-users@sqrug.org Cc: sqr-users@sqrug.org; sqr-users-admin@sqrug.org Subject: Re: [sqr-users] Using On-Error=Skip SQR needs to see the table when it complies. There are 2 solutions I have used in the past. 1. Create the table in the Begin-Setup or 2. Use a SQR substtitution variable for the table name in all queries. Rick Spoth Lori.Puntasecca@frx.com Sent by: sqr-users-admin@sqrug.org 02/02/04 10:50 AM Please respond to sqr-users To: sqr-users@sqrug.org cc: Subject: [sqr-users] Using On-Error=Skip Hi All - I created an SQR that needs to check for the existence of a table and if it exists load the cust_id's to a temp table. It works fine if the table exists but if it doesn't I get an error on compile: (SQR 5528) INFORMIX SQL PREPARE/DECLARE error -206 (ISAM: -111) in cursor 4: The specified table (aafp_targs) is not in the database. Here is the code I use: Begin-Setup Begin-SQL Create temp table tmp_LeadFIDs ! all CustIDs from the Leads table (if exists) (cust_id integer ); End-SQL Begin-SQL On-Error=Skip Insert into tmp_LeadFIDs Select Distinct cust_id >From {$prefix}_targs ! prefix passed in LeadArgs file End-SQL End-Setup Does anyone have any other ideas on how to do this? Thanks in advance, Lori A Puntasecca Forest Laboratories, Inc. MIS- Data Tools Team email: lori.puntasecca@frx.com ____________________________________________________________________ This e-mail and its attachments may contain Forest Laboratories, Inc. proprietary information that is privileged, confidential or subject to copyright belonging to Forest Laboratories, Inc. This e-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this e-mail, or the employee or agent responsible for delivering this e-mail to the intended recipient, you are hereby notified that any dissemination, distribution, copying or action taken in relation to the contents of and attachments to this e-mail is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify the sender immediately and permanently delete the original and any copy of this e-mail and any printout. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 e-mail and its attachments may contain Forest Laboratories, Inc. proprietary information that is privileged, confidential or subject to copyright belonging to Forest Laboratories, Inc. This e-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this e-mail, or the employee or agent responsible for delivering this e-mail to the intended recipient, you are hereby notified that any dissemination, distribution, copying or action taken in relation to the contents of and attachments to this e-mail is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify the sender immediately and permanently delete the original and any copy of this e-mail and any printout. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 e-mail and its attachments may contain Forest Laboratories, Inc. proprietary information that is privileged, confidential or subject to copyright belonging to Forest Laboratories, Inc. This e-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this e-mail, or the employee or agent responsible for delivering this e-mail to the intended recipient, you are hereby notified that any dissemination, distribution, copying or action taken in relation to the contents of and attachments to this e-mail is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify the sender immediately and permanently delete the original and any copy of this e-mail and any printout. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Feb 2 19:15:38 2004 From: Peter Burton Date: Mon, 2 Feb 2004 09:52:13 -0800 Subject: RE: [sqr-users] Using On-Error=Skip This is a multi-part message in MIME format... ----=_NextPart_ST_09_52_17_Monday_February_02_2004_2184 Content-Type: text/plain Lori, 1) In the Begin-Setup section Begin-SQL On-Error=Skip Create temp table tmp_LeadFIDs ! all CustIDs from the Leads table (if exists) ( cust_id integer ) End-SQL 2) In the Begin-Report section Move '{$prefix}_targs' To $Table Begin-SQL On-Error=Ignore Insert into tmp_LeadFIDs Select Distinct cust_id From [$Table] End-SQL 2) Add procedure "Ignore" Begin-Procedure Ignore End-Procedure Peter > -----Original Message----- > From: sqr-users-admin@sqrug.org@HYPERION On Behalf Of "Richard C > Spoth" > Sent: Monday, February 02, 2004 12:35 PM > To: sqr-users@sqrug.org > Cc: sqr-users@sqrug.org; sqr-users-admin@sqrug.org > Subject: RE: [sqr-users] Using On-Error=Skip > > Then substitue that table name using a varaible. > > Let $TableName ='{$prefix}_targs' > > Begin-SQL On-Error=Skip > Insert into tmp_LeadFIDs > Select Distinct > cust_id > >From $TableName ! prefix passed in LeadArgs > file > End-SQL > > Rick Spoth > > > > > > Lori.Puntasecca@frx.com > Sent by: sqr-users-admin@sqrug.org > 02/02/04 12:23 PM > Please respond to sqr-users > > > To: sqr-users@sqrug.org > cc: > Subject: RE: [sqr-users] Using On-Error=Skip > > > Hi again - > Sorry if I wasnt clear - I do create the tmp_LeadFIDs table. It's the > {$prefix}_targs (a database table) that does not exist (for some runs). > Thanks, > Lori > > -----Original Message----- > From: Richard C Spoth [mailto:Spoth.Richard@healthnow.org > ] > Sent: Monday, February 02, 2004 12:18 PM > To: sqr-users@sqrug.org > Cc: sqr-users@sqrug.org; sqr-users-admin@sqrug.org > Subject: RE: [sqr-users] Using On-Error=Skip > You should be able to just set a standard string variable with the table. > > Try something like this. > > Let $TableName ='tmp_LeadFIDs' > > Begin-SQL On-Error=Skip > Insert into [$TableName] > Select Distinct > cust_id > >From {$prefix}_targs ! prefix passed in LeadArgs > file > End-SQL > > Rick Spoth > > > > > > Lori.Puntasecca@frx.com > Sent by: sqr-users-admin@sqrug.org > 02/02/04 12:05 PM > Please respond to sqr-users > > > To: sqr-users@sqrug.org > cc: > Subject: RE: [sqr-users] Using On-Error=Skip > > > Thanks for the quick response, Rick. > Questions re: your solutions: > 1 - I don't want to create the table if it does exist (I would get an > error > too). Is there a way to say 'If not exists, Create table ...'? 2 - This is > the only place in the SQR I attempt to access this table. That is why I > try > to load the data to a temp table to be accessed later in the program. If I > use a substitution #variable (rather than an ask (@ file) variable, will > that avoid the error? > > Thanks again, > Lori Puntasecca > > -----Original Message----- > From: Richard C Spoth [mailto:Spoth.Richard@healthnow.org > ] > Sent: Monday, February 02, 2004 11:08 AM > To: sqr-users@sqrug.org > Cc: sqr-users@sqrug.org; sqr-users-admin@sqrug.org > Subject: Re: [sqr-users] Using On-Error=Skip > > > SQR needs to see the table when it complies. > > There are 2 solutions I have used in the past. > > 1. Create the table in the Begin-Setup > > or > > 2. Use a SQR substtitution variable for the table name in all queries. > > Rick Spoth > > > > > > Lori.Puntasecca@frx.com > Sent by: sqr-users-admin@sqrug.org > 02/02/04 10:50 AM > Please respond to sqr-users > > > To: sqr-users@sqrug.org > cc: > Subject: [sqr-users] Using On-Error=Skip > > > Hi All - > I created an SQR that needs to check for the existence of a table and if > it > exists load the cust_id's to a temp table. > It works fine if the table exists but if it doesn't I get an error on > compile: > > (SQR 5528) INFORMIX SQL PREPARE/DECLARE error -206 (ISAM: -111) in cursor > 4: > The specified table (aafp_targs) is not in the database. > > Here is the code I use: > > Begin-Setup > > Begin-SQL > Create temp table tmp_LeadFIDs ! all CustIDs from > the > Leads table (if exists) > (cust_id integer > ); > End-SQL > > Begin-SQL On-Error=Skip > Insert into tmp_LeadFIDs > Select Distinct > cust_id > >From {$prefix}_targs ! prefix passed in LeadArgs > file > End-SQL > > End-Setup > > Does anyone have any other ideas on how to do this? > Thanks in advance, > Lori A Puntasecca > Forest Laboratories, Inc. > MIS- Data Tools Team > email: > > lori.puntasecca@frx.com > > > > > ____________________________________________________________________ > > This e-mail and its attachments may contain Forest Laboratories, Inc. > proprietary information that is privileged, confidential or subject to > copyright belonging to Forest Laboratories, Inc. This e-mail is intended > solely for the use of the individual or entity to which it is addressed. > If > you are not the intended recipient of this e-mail, or the employee or > agent > responsible for delivering this e-mail to the intended recipient, you are > hereby notified that any dissemination, distribution, copying or action > taken in relation to the contents of and attachments to this e-mail is > strictly prohibited and may be unlawful. If you have received this e-mail > in > error, please notify the sender immediately and permanently delete the > original and any copy of this e-mail and any printout. > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org 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 e-mail and its attachments may contain Forest Laboratories, Inc. > proprietary information that is privileged, confidential or subject to > copyright belonging to Forest Laboratories, Inc. This e-mail is intended > solely for the use of the individual or entity to which it is addressed. > If > you are not the intended recipient of this e-mail, or the employee or > agent > responsible for delivering this e-mail to the intended recipient, you are > hereby notified that any dissemination, distribution, copying or action > taken in relation to the contents of and attachments to this e-mail is > strictly prohibited and may be unlawful. If you have received this e-mail > in > error, please notify the sender immediately and permanently delete the > original and any copy of this e-mail and any printout. > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org 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 e-mail and its attachments may contain Forest Laboratories, Inc. > proprietary information that is privileged, confidential or subject to > copyright belonging to Forest Laboratories, Inc. This e-mail is intended > solely for the use of the individual or entity to which it is addressed. > If > you are not the intended recipient of this e-mail, or the employee or > agent > responsible for delivering this e-mail to the intended recipient, you are > hereby notified that any dissemination, distribution, copying or action > taken in relation to the contents of and attachments to this e-mail is > strictly prohibited and may be unlawful. If you have received this e-mail > in > error, please notify the sender immediately and permanently delete the > original and any copy of this e-mail and any printout. > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > ************************************************************************ If you have received this e-mail in error, please delete it and notify the sender as soon as possible. The contents of this e-mail may be confidential and the unauthorized use, copying, or dissemination of it and any attachments to it, is prohibited. Internet communications are not secure and Hyperion does not, therefore, accept legal responsibility for the contents of this message nor for any damage caused by viruses. The views expressed here do not necessarily represent those of Hyperion. For more information about Hyperion, please visit our Web site at www.hyperion.com ----=_NextPart_ST_09_52_17_Monday_February_02_2004_2184 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/ms-tnef' MIME type. It has been automatically discarded before sending the message to the list. ----=_NextPart_ST_09_52_17_Monday_February_02_2004_2184-- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Feb 2 13:43:13 2004 From: ssatguru@mchsi.com Date: Mon, 02 Feb 2004 18:42:22 +0000 Subject: [sqr-users] jEdit plugin for SQR jEdit is a popular free open source editor. I have started writing a SQR plugin for this. An initial release (0.10) is ready. If you are interested you can check it out at http://home.mchsi.com/~ssatguru/SQR/index.html Would love any feedback Thanks Satguru _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Feb 2 19:21:07 2004 From: Peter Burton Date: Mon, 2 Feb 2004 11:14:09 -0800 Subject: RE: [sqr-users] Using On-Error=Skip This is a multi-part message in MIME format... ----=_NextPart_ST_11_14_27_Monday_February_02_2004_18283 Content-Type: text/plain Lori, 1) In the Begin-Setup section Begin-SQL On-Error=Skip Create temp table tmp_LeadFIDs ! all CustIDs from the Leads table (if exists) ( cust_id integer ) End-SQL 2) In the Begin-Report section Move '{$prefix}_targs' To $Table Begin-SQL On-Error=Ignore Insert into tmp_LeadFIDs Select Distinct cust_id From [$Table] End-SQL 2) Add procedure "Ignore" Begin-Procedure Ignore End-Procedure Peter > -----Original Message----- > From: sqr-users-admin@sqrug.org@HYPERION On Behalf Of "Richard C > Spoth" > Sent: Monday, February 02, 2004 12:35 PM > To: sqr-users@sqrug.org > Cc: sqr-users@sqrug.org; sqr-users-admin@sqrug.org > Subject: RE: [sqr-users] Using On-Error=Skip > > Then substitue that table name using a varaible. > > Let $TableName ='{$prefix}_targs' > > Begin-SQL On-Error=Skip > Insert into tmp_LeadFIDs > Select Distinct > cust_id > >From $TableName ! prefix passed in LeadArgs > file > End-SQL > > Rick Spoth > > > > > > Lori.Puntasecca@frx.com > Sent by: sqr-users-admin@sqrug.org > 02/02/04 12:23 PM > Please respond to sqr-users > > > To: sqr-users@sqrug.org > cc: > Subject: RE: [sqr-users] Using On-Error=Skip > > > Hi again - > Sorry if I wasnt clear - I do create the tmp_LeadFIDs table. It's the > {$prefix}_targs (a database table) that does not exist (for some runs). > Thanks, > Lori > > -----Original Message----- > From: Richard C Spoth [mailto:Spoth.Richard@healthnow.org > ] > Sent: Monday, February 02, 2004 12:18 PM > To: sqr-users@sqrug.org > Cc: sqr-users@sqrug.org; sqr-users-admin@sqrug.org > Subject: RE: [sqr-users] Using On-Error=Skip > You should be able to just set a standard string variable with the table. > > Try something like this. > > Let $TableName ='tmp_LeadFIDs' > > Begin-SQL On-Error=Skip > Insert into [$TableName] > Select Distinct > cust_id > >From {$prefix}_targs ! prefix passed in LeadArgs > file > End-SQL > > Rick Spoth > > > > > > Lori.Puntasecca@frx.com > Sent by: sqr-users-admin@sqrug.org > 02/02/04 12:05 PM > Please respond to sqr-users > > > To: sqr-users@sqrug.org > cc: > Subject: RE: [sqr-users] Using On-Error=Skip > > > Thanks for the quick response, Rick. > Questions re: your solutions: > 1 - I don't want to create the table if it does exist (I would get an > error > too). Is there a way to say 'If not exists, Create table ...'? 2 - This is > the only place in the SQR I attempt to access this table. That is why I > try > to load the data to a temp table to be accessed later in the program. If I > use a substitution #variable (rather than an ask (@ file) variable, will > that avoid the error? > > Thanks again, > Lori Puntasecca > > -----Original Message----- > From: Richard C Spoth [mailto:Spoth.Richard@healthnow.org > ] > Sent: Monday, February 02, 2004 11:08 AM > To: sqr-users@sqrug.org > Cc: sqr-users@sqrug.org; sqr-users-admin@sqrug.org > Subject: Re: [sqr-users] Using On-Error=Skip > > > SQR needs to see the table when it complies. > > There are 2 solutions I have used in the past. > > 1. Create the table in the Begin-Setup > > or > > 2. Use a SQR substtitution variable for the table name in all queries. > > Rick Spoth > > > > > > Lori.Puntasecca@frx.com > Sent by: sqr-users-admin@sqrug.org > 02/02/04 10:50 AM > Please respond to sqr-users > > > To: sqr-users@sqrug.org > cc: > Subject: [sqr-users] Using On-Error=Skip > > > Hi All - > I created an SQR that needs to check for the existence of a table and if > it > exists load the cust_id's to a temp table. > It works fine if the table exists but if it doesn't I get an error on > compile: > > (SQR 5528) INFORMIX SQL PREPARE/DECLARE error -206 (ISAM: -111) in cursor > 4: > The specified table (aafp_targs) is not in the database. > > Here is the code I use: > > Begin-Setup > > Begin-SQL > Create temp table tmp_LeadFIDs ! all CustIDs from > the > Leads table (if exists) > (cust_id integer > ); > End-SQL > > Begin-SQL On-Error=Skip > Insert into tmp_LeadFIDs > Select Distinct > cust_id > >From {$prefix}_targs ! prefix passed in LeadArgs > file > End-SQL > > End-Setup > > Does anyone have any other ideas on how to do this? > Thanks in advance, > Lori A Puntasecca > Forest Laboratories, Inc. > MIS- Data Tools Team > email: > > lori.puntasecca@frx.com > > > > > ____________________________________________________________________ > > This e-mail and its attachments may contain Forest Laboratories, Inc. > proprietary information that is privileged, confidential or subject to > copyright belonging to Forest Laboratories, Inc. This e-mail is intended > solely for the use of the individual or entity to which it is addressed. > If > you are not the intended recipient of this e-mail, or the employee or > agent > responsible for delivering this e-mail to the intended recipient, you are > hereby notified that any dissemination, distribution, copying or action > taken in relation to the contents of and attachments to this e-mail is > strictly prohibited and may be unlawful. If you have received this e-mail > in > error, please notify the sender immediately and permanently delete the > original and any copy of this e-mail and any printout. > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org 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 e-mail and its attachments may contain Forest Laboratories, Inc. > proprietary information that is privileged, confidential or subject to > copyright belonging to Forest Laboratories, Inc. This e-mail is intended > solely for the use of the individual or entity to which it is addressed. > If > you are not the intended recipient of this e-mail, or the employee or > agent > responsible for delivering this e-mail to the intended recipient, you are > hereby notified that any dissemination, distribution, copying or action > taken in relation to the contents of and attachments to this e-mail is > strictly prohibited and may be unlawful. If you have received this e-mail > in > error, please notify the sender immediately and permanently delete the > original and any copy of this e-mail and any printout. > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org 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 e-mail and its attachments may contain Forest Laboratories, Inc. > proprietary information that is privileged, confidential or subject to > copyright belonging to Forest Laboratories, Inc. This e-mail is intended > solely for the use of the individual or entity to which it is addressed. > If > you are not the intended recipient of this e-mail, or the employee or > agent > responsible for delivering this e-mail to the intended recipient, you are > hereby notified that any dissemination, distribution, copying or action > taken in relation to the contents of and attachments to this e-mail is > strictly prohibited and may be unlawful. If you have received this e-mail > in > error, please notify the sender immediately and permanently delete the > original and any copy of this e-mail and any printout. > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > ************************************************************************ If you have received this e-mail in error, please delete it and notify the sender as soon as possible. The contents of this e-mail may be confidential and the unauthorized use, copying, or dissemination of it and any attachments to it, is prohibited. Internet communications are not secure and Hyperion does not, therefore, accept legal responsibility for the contents of this message nor for any damage caused by viruses. The views expressed here do not necessarily represent those of Hyperion. For more information about Hyperion, please visit our Web site at www.hyperion.com ----=_NextPart_ST_11_14_27_Monday_February_02_2004_18283 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/ms-tnef' MIME type. It has been automatically discarded before sending the message to the list. ----=_NextPart_ST_11_14_27_Monday_February_02_2004_18283-- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Feb 2 15:41:34 2004 From: "Nair, Sumesh" Date: Mon, 2 Feb 2004 15:40:15 -0500 Subject: [sqr-users] Mail Attachment thru SQR on UNIX Hi, My requirement is to send across a csv file as attachment using sqr with >From mail id specified. I have been able to send mail with attachment via sqr on UNIX through uuencode along with mailx...but it sends out the mail with the From emailid as the owner of the Unix instance...I want to specify a From part....can this be done??? I also have been able to find that /usr/lib/sendmail option can be used for sending attachments but I am not clear regarding the rulesets which have to be used with this option.... In this option, I am able to specify a From part but the attachment is not going through.. Kindly help me out in this issue. Thanks in advance, Regards Sumesh ------------------------------------------------------------------------------ This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Feb 2 17:19:16 2004 Subject: RE: [sqr-users] Mail Attachment thru SQR on UNIX Date: Mon, 2 Feb 2004 17:18:27 -0500 From: "MacLellan, David" I have been using this on Unix, with -r as the returnid. I delete the file ${RPTCSV} first, ${RPTLOG} is already in csv format. uuencode ${RPTLOG} ${RPTCSV} | mailx -r dmaclellan5@tva.gov -s "MR Counts" dmaclellan5@tva.gov -----Original Message----- From: Nair, Sumesh [mailto:sumesh.nair@lehman.com] Sent: Monday, February 02, 2004 3:40 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Mail Attachment thru SQR on UNIX Hi, My requirement is to send across a csv file as attachment using sqr with >From mail id specified. I have been able to send mail with attachment via sqr on UNIX through uuencode along with mailx...but it sends out the mail with the From emailid as the owner of the Unix instance...I want to specify a From part....can this be done??? I also have been able to find that /usr/lib/sendmail option can be used for sending attachments but I am not clear regarding the rulesets which have to be used with this option.... In this option, I am able to specify a From part but the attachment is not going through.. Kindly help me out in this issue. Thanks in advance, Regards Sumesh ------------------------------------------------------------------------ ------ This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Feb 3 04:11:01 2004 From: "Mark Bailey" Date: Tue, 3 Feb 2004 11:09:11 +0200 Subject: [sqr-users] SQR -F Parameter Can anyone please help me by showing me how the -F parameter works.How do I change the file directory and file name where the output of the sqr must write to? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Feb 3 09:18:21 2004 Date: Tue, 3 Feb 2004 09:17:26 -0500 From: "White, Denise" Subject: [sqr-users] RE: SQR -F Parameter If you just want to specify the directory in the -f flag: -fc:\temp\ If you want the report to go to the same directory as the SQR source code, but want to change the default name of the report: -fmyrpt.lis If you want to do both: -fc:\temp\myrpt.lis You also can override whatever is in the -f flag within your program, by using the new-report command with whatever directory\filename you want. Of course, this is for reports written with print commands. If you are using write commands to create a flat file, then you would specify the directory\filename in your open command. HTH, Denise M. White Sr. Software Engineer Vicor --__--__-- Message: 14 To: sqr-users@sqrug.org From: "Mark Bailey" Date: Tue, 3 Feb 2004 11:09:11 +0200 Subject: [sqr-users] SQR -F Parameter Reply-To: sqr-users@sqrug.org Can anyone please help me by showing me how the -F parameter works.How do I change the file directory and file name where the output of the sqr must write to? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Feb 4 12:37:53 2004 Date: Wed, 4 Feb 2004 09:35:47 -0800 (PST) From: Savio J Subject: [sqr-users] (SQR 5528) ORACLE OCIBindByName error 1036 in cursor 4: Hi All, ***(SQR 5528) ORACLE OCIBindByName error 1036 in cursor 4: *** New to SQR and have been getting this error that does not make sense coz I tried everything within my limited knowledge :) ... If anyone has an idea as to what may be causing then pls let me know...Thx in advance... (I have included the entire procedure here for better explaining this) Amount_Array is an array that has been defined in the Set-up routine and #RowId is the index used.... begin-select on-error=Wrap-Up YTD.DeptId let $YTD_DeptID = &YTD.DEPTID YTD.ACCOUNT let $YTD_account = &YTD.ACCOUNT sum(YTD.POSTED_TOTAL_AMT) let $YTD_posted_total_amt = &YTD.POSTED_TOTAL_AMT !* Load array YTD buckets for PeopleSoft Accounts *! Evaluate $YTD.Account When = 299100 Let Amount_Array.YTD299100(#RowId) = $YTD_posted_total_amt Break !exit The Evaluate Statement When = 299110 Let Amount_Array.YTD299110(#RowId) = $YTD_posted_total_amt Break !exit The Evaluate Statement When = 299120 Let Amount_Array.YTD299120(#RowId) = $YTD_posted_total_amt Break !exit The Evaluate Statement When = 299130 Let Amount_Array.YTD299130(#RowId) = $YTD_posted_total_amt Break !exit The Evaluate Statement When = 299140 Let Amount_Array.YTD299140(#RowId) = $YTD_posted_total_amt Break !exit The Evaluate Statement When = 299150 Let Amount_Array.YTD299150(#RowId) = $YTD_posted_total_amt Break !exit The Evaluate Statement When-other Break !exit The Evaluate Statement End-evaluate FROM PS_ZGLT_PDRREF YTD where YTD.Business_Unit = $Business_Unit_WK and YTD.DeptID = $DeptID_WK and YTD.Account IN(299100, 299110, 299120, 299130, 299140, 299150) and YTD.Accounting_Period between 0 and $Accounting_Month group by YTD.DeptID, YTD.Account end-select __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Feb 4 12:50:08 2004 Subject: RE: [sqr-users] (SQR 5528) ORACLE OCIBindByName error 1036 in cursor 4: Date: Wed, 4 Feb 2004 11:49:24 -0600 From: "Kent Schaetzly" Check to make sure all of your variables are initialized properly. ($Business_unit_WK, $DeptID_WK, $Accounting_Month) -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Savio J Sent: Wednesday, February 04, 2004 11:36 AM To: sqr-users@sqrug.org Subject: [sqr-users] (SQR 5528) ORACLE OCIBindByName error 1036 in cursor 4: Hi All, ***(SQR 5528) ORACLE OCIBindByName error 1036 in cursor 4: *** New to SQR and have been getting this error that does not make sense coz I tried everything within my limited knowledge :) ... If anyone has an idea as to what may be causing then pls let me know...Thx in advance... (I have included the entire procedure here for better explaining this) Amount_Array is an array that has been defined in the Set-up routine and #RowId is the index used.... begin-select on-error=Wrap-Up YTD.DeptId let $YTD_DeptID = &YTD.DEPTID YTD.ACCOUNT let $YTD_account = &YTD.ACCOUNT sum(YTD.POSTED_TOTAL_AMT) let $YTD_posted_total_amt = &YTD.POSTED_TOTAL_AMT !* Load array YTD buckets for PeopleSoft Accounts *! Evaluate $YTD.Account When = 299100 Let Amount_Array.YTD299100(#RowId) = $YTD_posted_total_amt Break !exit The Evaluate Statement When = 299110 Let Amount_Array.YTD299110(#RowId) = $YTD_posted_total_amt Break !exit The Evaluate Statement When = 299120 Let Amount_Array.YTD299120(#RowId) = $YTD_posted_total_amt Break !exit The Evaluate Statement When = 299130 Let Amount_Array.YTD299130(#RowId) = $YTD_posted_total_amt Break !exit The Evaluate Statement When = 299140 Let Amount_Array.YTD299140(#RowId) = $YTD_posted_total_amt Break !exit The Evaluate Statement When = 299150 Let Amount_Array.YTD299150(#RowId) = $YTD_posted_total_amt Break !exit The Evaluate Statement When-other Break !exit The Evaluate Statement End-evaluate FROM PS_ZGLT_PDRREF YTD where YTD.Business_Unit = $Business_Unit_WK and YTD.DeptID = $DeptID_WK and YTD.Account IN(299100, 299110, 299120, 299130, 299140, 299150) and YTD.Accounting_Period between 0 and $Accounting_Month group by YTD.DeptID, YTD.Account end-select __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Feb 4 13:02:18 2004 Subject: RE: [sqr-users] (SQR 5528) ORACLE OCIBindByName error 1036 in cursor 4: Date: Wed, 4 Feb 2004 12:00:50 -0600 From: "Knapp, Richard" I see several things I would do differently: begin-select on-error=Wrap-Up DeptId &deptid ACCOUNT &account sum(POSTED_TOTAL_AMT) &total Evaluate &Account When = '299100' Let Amount_Array.YTD299100(#RowId) = &total Break When = '299110' Let Amount_Array.YTD299110(#RowId) = &total Break When = '299120' Let Amount_Array.YTD299120(#RowId) = &total Break When = '299130' Let Amount_Array.YTD299130(#RowId) = &total Break When = '299140' Let Amount_Array.YTD299140(#RowId) = &total Break When = '299150' Let Amount_Array.YTD299150(#RowId) = &total Break When-other Break End-evaluate FROM PS_ZGLT_PDRREF where Business_Unit = $Business_Unit_WK and DeptID = $DeptID_WK and Account IN('299100','299110','299120','299130','299140','299150') and Accounting_Period between 0 and $Accounting_Month group by DeptID, Account end-select Where does your index get a value? You're doing a lot of stuff you don't have to (the alias, assigning the columns to SQR variables) but you do have to treat a string (account) like a string and not a number. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Savio J Sent: Wednesday, February 04, 2004 11:36 AM To: sqr-users@sqrug.org Subject: [sqr-users] (SQR 5528) ORACLE OCIBindByName error 1036 in cursor 4: Hi All, ***(SQR 5528) ORACLE OCIBindByName error 1036 in cursor 4: *** New to SQR and have been getting this error that does not make sense coz I tried everything within my limited knowledge :) ... If anyone has an idea as to what may be causing then pls let me know...Thx in advance... (I have included the entire procedure here for better explaining this) Amount_Array is an array that has been defined in the Set-up routine and #RowId is the index used.... begin-select on-error=Wrap-Up YTD.DeptId let $YTD_DeptID = &YTD.DEPTID YTD.ACCOUNT let $YTD_account = &YTD.ACCOUNT sum(YTD.POSTED_TOTAL_AMT) let $YTD_posted_total_amt = &YTD.POSTED_TOTAL_AMT !* Load array YTD buckets for PeopleSoft Accounts *! Evaluate $YTD.Account When = 299100 Let Amount_Array.YTD299100(#RowId) = $YTD_posted_total_amt Break !exit The Evaluate Statement When = 299110 Let Amount_Array.YTD299110(#RowId) = $YTD_posted_total_amt Break !exit The Evaluate Statement When = 299120 Let Amount_Array.YTD299120(#RowId) = $YTD_posted_total_amt Break !exit The Evaluate Statement When = 299130 Let Amount_Array.YTD299130(#RowId) = $YTD_posted_total_amt Break !exit The Evaluate Statement When = 299140 Let Amount_Array.YTD299140(#RowId) = $YTD_posted_total_amt Break !exit The Evaluate Statement When = 299150 Let Amount_Array.YTD299150(#RowId) = $YTD_posted_total_amt Break !exit The Evaluate Statement When-other Break !exit The Evaluate Statement End-evaluate FROM PS_ZGLT_PDRREF YTD where YTD.Business_Unit = $Business_Unit_WK and YTD.DeptID = $DeptID_WK and YTD.Account IN(299100, 299110, 299120, 299130, 299140, 299150) and YTD.Accounting_Period between 0 and $Accounting_Month group by YTD.DeptID, YTD.Account end-select __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailma