From sqr-users-admin@sqrug.org Wed Oct 1 00:02:57 2003 Date: Wed, 1 Oct 2003 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.14 $ $Date: 2002-11-13 12:55:07-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 Digests 3.4 Obtaining your password 3.5 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/04/17: o Reflect the new location of the list and the new list server software being used. 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 Brio Software (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. 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 instructions below.) 3.3. 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.4. 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 e-mailed 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.5. 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). 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. 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 fule 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 Wed Oct 1 08:37:31 2003 From: "Ottaway, Eric (PS, GNF, Contractor)" Date: Wed, 1 Oct 2003 09:35:39 -0400 Subject: [sqr-users] Formatting $CURRENT-DATE Does anyone know how to format the $CURRENT-DATE predefined variable to something like 'MM/DD/YY:HH:MI:SS'? Thanks in advance, Eric B. Ottaway _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Oct 1 09:12:09 2003 From: "Schelske, Steve K." Subject: RE: [sqr-users] Formatting $CURRENT-DATE Date: Wed, 1 Oct 2003 10:11:42 -0400 Its not exactly what you asked for, but here's another option let $ReportDate = datetostr(datenow(),'MM/DD/YYYY') let $ReportTime = datetostr(datenow(),'HH:MI:SS') You probably can put the formatting together into one variable. -----Original Message----- From: Ottaway, Eric (PS, GNF, Contractor) [mailto:Eric.Ottaway@gnf.com] Sent: Wednesday, October 01, 2003 9:36 AM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Formatting $CURRENT-DATE Does anyone know how to format the $CURRENT-DATE predefined variable to something like 'MM/DD/YY:HH:MI:SS'? Thanks in advance, Eric B. Ottaway _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.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 Oct 1 09:19:06 2003 Date: Thu, 02 Oct 2003 00:18:59 +1000 From: Steve Cavill Subject: RE: [sqr-users] Formatting $CURRENT-DATE Hi Eric, $current-date is a standard SQR date variable, so you can format it using edit masks like any date, either with the print command or the edit function e.g. print $current-date (1,1) edit dd/mm/yy:hh:mi:ss let $textdate=edit($current-date,'dd/mm/yy:hh:mi:ss') print $textdate (2,1) Cheers, Steve. -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Ottaway, Eric (PS, GNF, Contractor) Sent: Wednesday, 1 October 2003 11:36 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] Formatting $CURRENT-DATE Does anyone know how to format the $CURRENT-DATE predefined variable to something like 'MM/DD/YY:HH:MI:SS'? Thanks in advance, Eric B. Ottaway _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.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 Oct 1 13:11:40 2003 From: "Ottaway, Eric (PS, GNF, Contractor)" Date: Wed, 1 Oct 2003 14:08:38 -0400 Subject: [sqr-users] String to Date format Hey guys and gals, I'm still having trouble trying to format a string ('06/05/2003 01:03:00) into a date with the same format. Anyone have any ideas on how to do this? I've tried using a to_date function and a strtodate function. Both failed. Thanks, Eric B. Ottaway _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Oct 1 13:34:12 2003 Date: Wed, 01 Oct 2003 13:36:24 -0500 From: "Mike Eischen" Subject: Re: [sqr-users] String to Date format Hi Eric, With strtodate you need to use a format mask which indicates the date format you want the strtodate function to return, and the format masks vary depending on what database you're using. What database are you using? Can you include a code sample showing the syntax? Thanks, Mike >>> Eric.Ottaway@gnf.com 10/01/03 01:08PM >>> Hey guys and gals, I'm still having trouble trying to format a string ('06/05/2003 01:03:00) into a date with the same format. Anyone have any ideas on how to do this? I've tried using a to_date function and a strtodate function. Both failed. Thanks, Eric B. Ottaway _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.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 Oct 1 13:38:04 2003 Subject: RE: [sqr-users] String to Date format Date: Wed, 1 Oct 2003 13:37:00 -0500 From: "Knapp, Richard" I'm guessing the the date part is month/day so the format string for your example would be: 'MM/DD/YYYY HH:MI:SS' Do you not have access to any SQR documentation? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Ottaway, Eric (PS, GNF, Contractor) [mailto:Eric.Ottaway@gnf.com] Sent: Wednesday, October 01, 2003 1:09 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] String to Date format Hey guys and gals, I'm still having trouble trying to format a string ('06/05/2003 01:03:00) into a date with the same format. Anyone have any ideas on how to do this? I've tried using a to_date function and a strtodate function. Both failed. Thanks, Eric B. Ottaway _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.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 Oct 1 13:41:07 2003 From: "Ottaway, Eric (PS, GNF, Contractor)" Subject: RE: [sqr-users] String to Date format Date: Wed, 1 Oct 2003 14:39:51 -0400 !**************************************************************** BEGIN-PROCEDURE get_last_time BEGIN-SELECT to_date(maxvars.varvalue,'MM/DD/YYYY HH:MI:SS') &lastdate FROM [$schema]maxvars WHERE maxvars.varname = 'GNF_RCPT_TIMESTAMP' END-SELECT END-PROCEDURE !**************************************************************** BEGIN-PROCEDURE check_date ! LET $lastdate = strtodate($lastdate,'MM/DD/YYYY HH:MI:SS') PRINT $lastdate (+10,1)!edit 'MM/DD/YYYY HH:MI:SS' !***************TESTING BEGIN-SELECT DISTINCT MAX_RCV_INTERFACE.PONUM &currPO MAX_RCV_INTERFACE.IMPORTTIMESTAMP &currdates MOVE &currPO TO $currPO MOVE &currdates TO $currdates :$DATEMASK LET $currdates = strtodate($currdates,'MM/DD/YYYY') PRINT $currdates (+1,1)!edit 'MM/DD/YYYY HH:MI:SS' !***************TESTING NEW-PAGE ! LET #diffdate = datediff($currdates,$lastdate,'SECOND') ! SHOW 'CurrDates = ' $currdates ! SHOW 'LastDate = ' $lastdate ! IF #diffdate > 0 ! DO Get_Receiving_Ticket_Data ! END-IF -----Original Message----- From: Mike Eischen [mailto:MEISCHEN@genesco.com] Sent: Wednesday, October 01, 2003 2:36 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] String to Date format Hi Eric, With strtodate you need to use a format mask which indicates the date format you want the strtodate function to return, and the format masks vary depending on what database you're using. What database are you using? Can you include a code sample showing the syntax? Thanks, Mike >>> Eric.Ottaway@gnf.com 10/01/03 01:08PM >>> Hey guys and gals, I'm still having trouble trying to format a string ('06/05/2003 01:03:00) into a date with the same format. Anyone have any ideas on how to do this? I've tried using a to_date function and a strtodate function. Both failed. Thanks, Eric B. Ottaway _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Oct 1 13:47:08 2003 From: Jim McKeever Subject: RE: [sqr-users] String to Date format Date: Wed, 1 Oct 2003 12:40:45 -0600 Could the problem be that you have &lastdate in your first procedure, but then you reference $lastdate when you print? -----Original Message----- From: Ottaway, Eric (PS, GNF, Contractor) [mailto:Eric.Ottaway@gnf.com] Sent: Wednesday, October 01, 2003 12:40 PM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] String to Date format !**************************************************************** BEGIN-PROCEDURE get_last_time BEGIN-SELECT to_date(maxvars.varvalue,'MM/DD/YYYY HH:MI:SS') &lastdate FROM [$schema]maxvars WHERE maxvars.varname = 'GNF_RCPT_TIMESTAMP' END-SELECT END-PROCEDURE !**************************************************************** BEGIN-PROCEDURE check_date ! LET $lastdate = strtodate($lastdate,'MM/DD/YYYY HH:MI:SS') PRINT $lastdate (+10,1)!edit 'MM/DD/YYYY HH:MI:SS' !***************TESTING BEGIN-SELECT DISTINCT MAX_RCV_INTERFACE.PONUM &currPO MAX_RCV_INTERFACE.IMPORTTIMESTAMP &currdates MOVE &currPO TO $currPO MOVE &currdates TO $currdates :$DATEMASK LET $currdates = strtodate($currdates,'MM/DD/YYYY') PRINT $currdates (+1,1)!edit 'MM/DD/YYYY HH:MI:SS' !***************TESTING NEW-PAGE ! LET #diffdate = datediff($currdates,$lastdate,'SECOND') ! SHOW 'CurrDates = ' $currdates ! SHOW 'LastDate = ' $lastdate ! IF #diffdate > 0 ! DO Get_Receiving_Ticket_Data ! END-IF -----Original Message----- From: Mike Eischen [mailto:MEISCHEN@genesco.com] Sent: Wednesday, October 01, 2003 2:36 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] String to Date format Hi Eric, With strtodate you need to use a format mask which indicates the date format you want the strtodate function to return, and the format masks vary depending on what database you're using. What database are you using? Can you include a code sample showing the syntax? Thanks, Mike >>> Eric.Ottaway@gnf.com 10/01/03 01:08PM >>> Hey guys and gals, I'm still having trouble trying to format a string ('06/05/2003 01:03:00) into a date with the same format. Anyone have any ideas on how to do this? I've tried using a to_date function and a strtodate function. Both failed. Thanks, Eric B. Ottaway _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Oct 1 13:52:07 2003 From: "Ottaway, Eric (PS, GNF, Contractor)" Subject: RE: [sqr-users] String to Date format Date: Wed, 1 Oct 2003 14:51:10 -0400 Thanks for the quick responses "SQR in Peoplesoft" has been of little help. The string looks like a date in the table I reference, but is not in fact a DATE. Therefore, I can't use datediff() to return a value. So I'm trying to basically keep the string as it is, but as a date instead of a string. Convert this into a date of the same format(String = 01/01/2001 01:15:00). Eric -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu] Sent: Wednesday, October 01, 2003 2:37 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] String to Date format I'm guessing the the date part is month/day so the format string for your example would be: 'MM/DD/YYYY HH:MI:SS' Do you not have access to any SQR documentation? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Ottaway, Eric (PS, GNF, Contractor) [mailto:Eric.Ottaway@gnf.com] Sent: Wednesday, October 01, 2003 1:09 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] String to Date format Hey guys and gals, I'm still having trouble trying to format a string ('06/05/2003 01:03:00) into a date with the same format. Anyone have any ideas on how to do this? I've tried using a to_date function and a strtodate function. Both failed. Thanks, Eric B. Ottaway _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Oct 1 13:54:08 2003 From: "Ottaway, Eric (PS, GNF, Contractor)" Subject: RE: [sqr-users] String to Date format Date: Wed, 1 Oct 2003 14:52:33 -0400 Hey Jim, &lastdate is moved between procedure calls. I just didn't show that part of the code. Eric -----Original Message----- From: Jim McKeever [mailto:JMcKeever@fastaff.com] Sent: Wednesday, October 01, 2003 2:41 PM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] String to Date format Could the problem be that you have &lastdate in your first procedure, but then you reference $lastdate when you print? -----Original Message----- From: Ottaway, Eric (PS, GNF, Contractor) [mailto:Eric.Ottaway@gnf.com] Sent: Wednesday, October 01, 2003 12:40 PM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] String to Date format !**************************************************************** BEGIN-PROCEDURE get_last_time BEGIN-SELECT to_date(maxvars.varvalue,'MM/DD/YYYY HH:MI:SS') &lastdate FROM [$schema]maxvars WHERE maxvars.varname = 'GNF_RCPT_TIMESTAMP' END-SELECT END-PROCEDURE !**************************************************************** BEGIN-PROCEDURE check_date ! LET $lastdate = strtodate($lastdate,'MM/DD/YYYY HH:MI:SS') PRINT $lastdate (+10,1)!edit 'MM/DD/YYYY HH:MI:SS' !***************TESTING BEGIN-SELECT DISTINCT MAX_RCV_INTERFACE.PONUM &currPO MAX_RCV_INTERFACE.IMPORTTIMESTAMP &currdates MOVE &currPO TO $currPO MOVE &currdates TO $currdates :$DATEMASK LET $currdates = strtodate($currdates,'MM/DD/YYYY') PRINT $currdates (+1,1)!edit 'MM/DD/YYYY HH:MI:SS' !***************TESTING NEW-PAGE ! LET #diffdate = datediff($currdates,$lastdate,'SECOND') ! SHOW 'CurrDates = ' $currdates ! SHOW 'LastDate = ' $lastdate ! IF #diffdate > 0 ! DO Get_Receiving_Ticket_Data ! END-IF -----Original Message----- From: Mike Eischen [mailto:MEISCHEN@genesco.com] Sent: Wednesday, October 01, 2003 2:36 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] String to Date format Hi Eric, With strtodate you need to use a format mask which indicates the date format you want the strtodate function to return, and the format masks vary depending on what database you're using. What database are you using? Can you include a code sample showing the syntax? Thanks, Mike >>> Eric.Ottaway@gnf.com 10/01/03 01:08PM >>> Hey guys and gals, I'm still having trouble trying to format a string ('06/05/2003 01:03:00) into a date with the same format. Anyone have any ideas on how to do this? I've tried using a to_date function and a strtodate function. Both failed. Thanks, Eric B. Ottaway _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Wed Oct 1 13:58:07 2003 Date: Wed, 01 Oct 2003 14:00:36 -0500 From: "Mike Eischen" Subject: RE: [sqr-users] String to Date format Okay, and what database are you using? >>> Eric.Ottaway@gnf.com 10/01/03 01:39PM >>> !**************************************************************** BEGIN-PROCEDURE get_last_time BEGIN-SELECT to_date(maxvars.varvalue,'MM/DD/YYYY HH:MI:SS') &lastdate FROM [$schema]maxvars WHERE maxvars.varname = 'GNF_RCPT_TIMESTAMP' END-SELECT END-PROCEDURE !**************************************************************** BEGIN-PROCEDURE check_date ! LET $lastdate = strtodate($lastdate,'MM/DD/YYYY HH:MI:SS') PRINT $lastdate (+10,1)!edit 'MM/DD/YYYY HH:MI:SS' !***************TESTING BEGIN-SELECT DISTINCT MAX_RCV_INTERFACE.PONUM &currPO MAX_RCV_INTERFACE.IMPORTTIMESTAMP &currdates MOVE &currPO TO $currPO MOVE &currdates TO $currdates :$DATEMASK LET $currdates = strtodate($currdates,'MM/DD/YYYY') PRINT $currdates (+1,1)!edit 'MM/DD/YYYY HH:MI:SS' !***************TESTING NEW-PAGE ! LET #diffdate = datediff($currdates,$lastdate,'SECOND') ! SHOW 'CurrDates = ' $currdates ! SHOW 'LastDate = ' $lastdate ! IF #diffdate > 0 ! DO Get_Receiving_Ticket_Data ! END-IF -----Original Message----- From: Mike Eischen [mailto:MEISCHEN@genesco.com] Sent: Wednesday, October 01, 2003 2:36 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] String to Date format Hi Eric, With strtodate you need to use a format mask which indicates the date format you want the strtodate function to return, and the format masks vary depending on what database you're using. What database are you using? Can you include a code sample showing the syntax? Thanks, Mike >>> Eric.Ottaway@gnf.com 10/01/03 01:08PM >>> Hey guys and gals, I'm still having trouble trying to format a string ('06/05/2003 01:03:00) into a date with the same format. Anyone have any ideas on how to do this? I've tried using a to_date function and a strtodate function. Both failed. Thanks, Eric B. Ottaway _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Oct 1 14:16:52 2003 Date: Wed, 01 Oct 2003 15:15:32 -0400 From: Matt Rogish Subject: [sqr-users] Dynamic Programming and Output Generation Hi all, We're using SQR 4.3.4 (on AIX??) to write many, many SQR reports. The problem we've found is that over the years (and hundreds of programs later) we've got a mix of different styles etc. and it's becoming increasingly difficult. Oftentimes we have reports that take the same input parameters but, of course, they are written differently so that some have bounds checking and others don't etc. What I'd like to do is store the input parameters in a DBMS table and then run it at the beginning of every report to build the input list, e.g. something like this: (pseudocode) begin-select name &name prompt &prompt length &len type &type !this way input &name MAXLEN=&len &text TYPE=&type !or with an array to be gone over later Put &name &prompt &len &type Into paramArray( #something ) FROM params WHERE program_name = '{program_name}' end-select But I can't get SQR to accept any sort of input like that. Secondly, we use BRIO Portal 6 (whatever is one or two version(s) behind the current one) which doesn't support emailing the output from a job (SQR Program) to more than one person. We're not entirely sure the latest version of BRIO.Portal supports this, so if it doesn't we'd like a way to be able to email output to more than one person using SQR. I was thinking storing the distribution lists in another DBMS table and then using the Unix mail command to mail it to someone else. I see from this old thread (http://www.sqrug.org/sqr-users/sqrusers_97/msg00150.html) that I can close the output of the current program, but how do I find out the file name of the output file (usually a .pdf via -printer:pd) so that I can use it as an attachment. Anyone tried something like this and have a better way? Or is Brio Portal 7 (the version we're looking at upgrading to) more advanced than the version we're using now? 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 Oct 1 14:19:06 2003 Subject: RE: [sqr-users] String to Date format Date: Wed, 1 Oct 2003 15:16:44 -0400 From: "Ven Garlapati" Eric: If I read your message right, you are trying to convert a string to date format? In Oracle you can use like: select to_date ('06/05/2003 01:03:00','dd/mm/yyyy HH:MI:SS') from dual; I got the answer as: 6-May-2003 1:03:00. If this is right, you can incorporate same logic!! Thanks, Ven Garlapati vxg@creditacceptance.com (248) 353-2700 ext.514 -----Original Message----- From: Ottaway, Eric (PS, GNF, Contractor) [mailto:Eric.Ottaway@gnf.com] Sent: Wednesday, October 01, 2003 2:51 PM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] String to Date format Thanks for the quick responses "SQR in Peoplesoft" has been of little help. The string looks like a date in the table I reference, but is not in fact a DATE. Therefore, I can't use datediff() to return a value. So I'm trying to basically keep the string as it is, but as a date instead of a string. Convert this into a date of the same format(String = 01/01/2001 01:15:00). Eric -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu] Sent: Wednesday, October 01, 2003 2:37 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] String to Date format I'm guessing the the date part is month/day so the format string for your example would be: 'MM/DD/YYYY HH:MI:SS' Do you not have access to any SQR documentation? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Ottaway, Eric (PS, GNF, Contractor) [mailto:Eric.Ottaway@gnf.com] Sent: Wednesday, October 01, 2003 1:09 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] String to Date format Hey guys and gals, I'm still having trouble trying to format a string ('06/05/2003 01:03:00) into a date with the same format. Anyone have any ideas on how to do this? I've tried using a to_date function and a strtodate function. Both failed. Thanks, Eric B. Ottaway _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Oct 1 15:06:07 2003 Subject: RE: [sqr-users] Dynamic Programming and Output Generation Date: Wed, 1 Oct 2003 15:05:30 -0500 From: "Sengupta, Rajib (CAG-CC-Contractor)" I am not sure exactly what you want here , but I guess we do almost the same thing in our Peoplesoft environment while creating report from online. We have hundreds of reports which have different parameters , also depending on the value entered or not entered on the panel the sqr query become dynamic - It happens this way : When a user enters some value on online and run the report the values are stored in a DBMS table .Then at start of the SQR we do a select on the table as you have mentioned below . There are two parts in the whole thing: A. store the data/values on the table. In our peoplesoft system we use the usual peopletools and peoplecode to save and edit data entered online. B. then run the SQR report in the server Your SQR structure will be sumthing like this : BEGIN-REPORT DO INIT-REPORT DO GET-AGING-CATEGORY DO MAIN-PROCESS -- here is the actual report DO GRAND-TOTAL DO END-PROCESS END-REPORT in the init-report you can query the above table to get your data : BEGIN-PROCEDURE INIT-REPORT DO INIT-DATETIME ..... DO SELECT-PARAMETERS -- this will have your select statement as below ........... END-PROCEDURE !INIT-REPORT you will have your data in the $variables - now depending on the value in the $variables you will create your dynamic where clause of the sql which you can use in your main-process SELECT. ============================ about email it depends on which system you are - if you are in unix box- you can use the unix email shell commands to send your sqr outputs- .lis or .spf files to multiple users. I guess there should be similar batch commands for windows. for mainframe(MVS) environment you can use MQseries - lotus notes to send multiple emails. Infact there is some API by which lotus notes can send emails to microsoft exchange. so you create your file in MVS (OS/390) - write it to MQ- lotus notes will pick it up from MQ and will send it to exchange server. But for all these you have to have a good understanding of each of the technology mentioned. Thanks, Rajib Rajib Sengupta Systems Analyst and Team Lead Peoplesoft Financial Consultant Conagra Business Systems Phone: 402-595-5749 -----Original Message----- From: Matt Rogish [mailto:rogishmn@muohio.edu] Sent: Wednesday, October 01, 2003 2:16 PM To: sqr-users@sqrug.org Subject: [sqr-users] Dynamic Programming and Output Generation Hi all, We're using SQR 4.3.4 (on AIX??) to write many, many SQR reports. The problem we've found is that over the years (and hundreds of programs later) we've got a mix of different styles etc. and it's becoming increasingly difficult. Oftentimes we have reports that take the same input parameters but, of course, they are written differently so that some have bounds checking and others don't etc. What I'd like to do is store the input parameters in a DBMS table and then run it at the beginning of every report to build the input list, e.g. something like this: (pseudocode) begin-select name &name prompt &prompt length &len type &type !this way input &name MAXLEN=&len &text TYPE=&type !or with an array to be gone over later Put &name &prompt &len &type Into paramArray( #something ) FROM params WHERE program_name = '{program_name}' end-select But I can't get SQR to accept any sort of input like that. Secondly, we use BRIO Portal 6 (whatever is one or two version(s) behind the current one) which doesn't support emailing the output from a job (SQR Program) to more than one person. We're not entirely sure the latest version of BRIO.Portal supports this, so if it doesn't we'd like a way to be able to email output to more than one person using SQR. I was thinking storing the distribution lists in another DBMS table and then using the Unix mail command to mail it to someone else. I see from this old thread (http://www.sqrug.org/sqr-users/sqrusers_97/msg00150.html) that I can close the output of the current program, but how do I find out the file name of the output file (usually a .pdf via -printer:pd) so that I can use it as an attachment. Anyone tried something like this and have a better way? Or is Brio Portal 7 (the version we're looking at upgrading to) more advanced than the version we're using now? 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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Oct 1 16:09:31 2003 From: "subrahmanyam uppuganti" Date: Wed, 01 Oct 2003 21:08:05 +0000 Subject: [sqr-users] problems with wrap when working on the main frame Hi, I am working on an sqr in Purchasing that has Descr254 and prints it on to the report,the environment that Iam working with is IBM main frames/OS390/DB2. Iam trying to wrap the Descr 254 on Print that will look like this: print $descr_long (#line, 10, 115) wrap 115 10 on=<37> as 37 is the EBCDIC decimal for line feed and to my surprise its wrapping when it encounters either 3 or 7 or 37 and not on the line feed or carriage return.Looks like its not recogising angular braces (<>) and simply ignoring them. I was wondering if there is any equivalent for <> (angular Braces ) when working on the main frame. I tried using \37\ and didnt work on. Is there any way that will make it work. I would reallly appreciate if some one can help me in this regard. Thanks In advance Subbu Uppuganti _________________________________________________________________ Share your photos without swamping your Inbox. Get Hotmail Extra Storage today! http://join.msn.com/?PAGE=features/es _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Oct 2 01:18:19 2003 Date: Thu, 02 Oct 2003 16:08:15 +1000 From: Steve Cavill Subject: RE: [sqr-users] Dynamic Programming and Output Generation Hi Matt, Rajib's method for dynamically selecting run time parms is fairly common - don't use input command at all, rather store the parms in a table, and retrieve them with select. Regarding the email, you can email the output to a distribution list, would that help? Another method is to subscribe multiple users to the job output, then Portal will send multiple emails, one for each subscriber. You can use the Portal API to maintain the subscription list. I know the above works in V7, I'm pretty sure that will work in V6 also. Cheers, Steve. -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Sengupta, Rajib (CAG-CC-Contractor) Sent: Thursday, 2 October 2003 6:06 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Dynamic Programming and Output Generation I am not sure exactly what you want here , but I guess we do almost the same thing in our Peoplesoft environment while creating report from online. We have hundreds of reports which have different parameters , also depending on the value entered or not entered on the panel the sqr query become dynamic - It happens this way : When a user enters some value on online and run the report the values are stored in a DBMS table .Then at start of the SQR we do a select on the table as you have mentioned below . There are two parts in the whole thing: A. store the data/values on the table. In our peoplesoft system we use the usual peopletools and peoplecode to save and edit data entered online. B. then run the SQR report in the server Your SQR structure will be sumthing like this : BEGIN-REPORT DO INIT-REPORT DO GET-AGING-CATEGORY DO MAIN-PROCESS -- here is the actual report DO GRAND-TOTAL DO END-PROCESS END-REPORT in the init-report you can query the above table to get your data : BEGIN-PROCEDURE INIT-REPORT DO INIT-DATETIME ..... DO SELECT-PARAMETERS -- this will have your select statement as below ........... END-PROCEDURE !INIT-REPORT you will have your data in the $variables - now depending on the value in the $variables you will create your dynamic where clause of the sql which you can use in your main-process SELECT. ============================ about email it depends on which system you are - if you are in unix box- you can use the unix email shell commands to send your sqr outputs- .lis or .spf files to multiple users. I guess there should be similar batch commands for windows. for mainframe(MVS) environment you can use MQseries - lotus notes to send multiple emails. Infact there is some API by which lotus notes can send emails to microsoft exchange. so you create your file in MVS (OS/390) - write it to MQ- lotus notes will pick it up from MQ and will send it to exchange server. But for all these you have to have a good understanding of each of the technology mentioned. Thanks, Rajib Rajib Sengupta Systems Analyst and Team Lead Peoplesoft Financial Consultant Conagra Business Systems Phone: 402-595-5749 -----Original Message----- From: Matt Rogish [mailto:rogishmn@muohio.edu] Sent: Wednesday, October 01, 2003 2:16 PM To: sqr-users@sqrug.org Subject: [sqr-users] Dynamic Programming and Output Generation Hi all, We're using SQR 4.3.4 (on AIX??) to write many, many SQR reports. The problem we've found is that over the years (and hundreds of programs later) we've got a mix of different styles etc. and it's becoming increasingly difficult. Oftentimes we have reports that take the same input parameters but, of course, they are written differently so that some have bounds checking and others don't etc. What I'd like to do is store the input parameters in a DBMS table and then run it at the beginning of every report to build the input list, e.g. something like this: (pseudocode) begin-select name &name prompt &prompt length &len type &type !this way input &name MAXLEN=&len &text TYPE=&type !or with an array to be gone over later Put &name &prompt &len &type Into paramArray( #something ) FROM params WHERE program_name = '{program_name}' end-select But I can't get SQR to accept any sort of input like that. Secondly, we use BRIO Portal 6 (whatever is one or two version(s) behind the current one) which doesn't support emailing the output from a job (SQR Program) to more than one person. We're not entirely sure the latest version of BRIO.Portal supports this, so if it doesn't we'd like a way to be able to email output to more than one person using SQR. I was thinking storing the distribution lists in another DBMS table and then using the Unix mail command to mail it to someone else. I see from this old thread (http://www.sqrug.org/sqr-users/sqrusers_97/msg00150.html) that I can close the output of the current program, but how do I find out the file name of the output file (usually a .pdf via -printer:pd) so that I can use it as an attachment. Anyone tried something like this and have a better way? Or is Brio Portal 7 (the version we're looking at upgrading to) more advanced than the version we're using now? 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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.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 Oct 3 11:31:56 2003 From: "Alexander, Steve" Subject: RE: [sqr-users] Dynamic Programming and Output Generation Date: Fri, 3 Oct 2003 09:37:03 -0700 Matt, A lot of the body of many SQR commands has to be literals. The variable that is to contain the values you input has to be a variable, not a variable containing the name of a variable. That still leaves you some options - I can think of three. First possibility: write a program to read the database table and construct an SQR command line like this: sqr myprog.sqr [connectivity] [flags] $first_parm 5 "Enter zipcode" char Then execute that command line. Within the program (myprog), use the ASK command to read the command line. Program: begin-setup ask variable ask length ask prompt ask type end-setup begin-program input {variable} maxlen={length} '{prompt}' type={type} ... end-program Drawbacks: Your program has to be hardcoded for the number of parameters, with possibly a lot of ask commands (variable1, variable2, variable3). If the command line gets too long, there is a provision to use a text file instead. Second possibility: write a program to read the data table and construct an SQR include file that contains the input commands. Then compile and execute the main program, which contains an include statement like so: begin-program #include 'input_statements.sqc' ... end-program Drawbacks: If you're running more than one program at once, you need a different include file name for each. If you're running more than one copy of the same program at once, you may need to differentiate the include file names and pass the different name through the command line / ask statement technique. Even if every copy of the program has the same input statements, you don't want to be deleting/rewriting an include file when the SQR compiler is looking for it. Third possibility: Instead of put the input statement parameters in a database table, put the input values in a database table. Now that I given you the techniques, I'm wondering why you want to do this. The input parameters to a program don't change that often, so why not hardcode them in that program? It's easier to maintain a program when everything is in one place, rather than hiding information about the parameters in a database. If you expect to change the inputs frequently, you'll have to change the programs anyway. If many of your programs use the same parameters, use include files. If the parameters you use vary widely from program to program, what use is this change? Since you have so many programs, and this approach forces you to change them all, is it worth it. -----Original Message----- From: Steve Cavill [mailto:steve.cavill@infoclarity.com.au] Sent: Wednesday, October 01, 2003 11:08 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Dynamic Programming and Output Generation Hi Matt, Rajib's method for dynamically selecting run time parms is fairly common - don't use input command at all, rather store the parms in a table, and retrieve them with select. Regarding the email, you can email the output to a distribution list, would that help? Another method is to subscribe multiple users to the job output, then Portal will send multiple emails, one for each subscriber. You can use the Portal API to maintain the subscription list. I know the above works in V7, I'm pretty sure that will work in V6 also. Cheers, Steve. -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Sengupta, Rajib (CAG-CC-Contractor) Sent: Thursday, 2 October 2003 6:06 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Dynamic Programming and Output Generation I am not sure exactly what you want here , but I guess we do almost the same thing in our Peoplesoft environment while creating report from online. We have hundreds of reports which have different parameters , also depending on the value entered or not entered on the panel the sqr query become dynamic - It happens this way : When a user enters some value on online and run the report the values are stored in a DBMS table .Then at start of the SQR we do a select on the table as you have mentioned below . There are two parts in the whole thing: A. store the data/values on the table. In our peoplesoft system we use the usual peopletools and peoplecode to save and edit data entered online. B. then run the SQR report in the server Your SQR structure will be sumthing like this : BEGIN-REPORT DO INIT-REPORT DO GET-AGING-CATEGORY DO MAIN-PROCESS -- here is the actual report DO GRAND-TOTAL DO END-PROCESS END-REPORT in the init-report you can query the above table to get your data : BEGIN-PROCEDURE INIT-REPORT DO INIT-DATETIME ..... DO SELECT-PARAMETERS -- this will have your select statement as below ........... END-PROCEDURE !INIT-REPORT you will have your data in the $variables - now depending on the value in the $variables you will create your dynamic where clause of the sql which you can use in your main-process SELECT. ============================ about email it depends on which system you are - if you are in unix box- you can use the unix email shell commands to send your sqr outputs- .lis or .spf files to multiple users. I guess there should be similar batch commands for windows. for mainframe(MVS) environment you can use MQseries - lotus notes to send multiple emails. Infact there is some API by which lotus notes can send emails to microsoft exchange. so you create your file in MVS (OS/390) - write it to MQ- lotus notes will pick it up from MQ and will send it to exchange server. But for all these you have to have a good understanding of each of the technology mentioned. Thanks, Rajib Rajib Sengupta Systems Analyst and Team Lead Peoplesoft Financial Consultant Conagra Business Systems Phone: 402-595-5749 -----Original Message----- From: Matt Rogish [mailto:rogishmn@muohio.edu] Sent: Wednesday, October 01, 2003 2:16 PM To: sqr-users@sqrug.org Subject: [sqr-users] Dynamic Programming and Output Generation Hi all, We're using SQR 4.3.4 (on AIX??) to write many, many SQR reports. The problem we've found is that over the years (and hundreds of programs later) we've got a mix of different styles etc. and it's becoming increasingly difficult. Oftentimes we have reports that take the same input parameters but, of course, they are written differently so that some have bounds checking and others don't etc. What I'd like to do is store the input parameters in a DBMS table and then run it at the beginning of every report to build the input list, e.g. something like this: (pseudocode) begin-select name &name prompt &prompt length &len type &type !this way input &name MAXLEN=&len &text TYPE=&type !or with an array to be gone over later Put &name &prompt &len &type Into paramArray( #something ) FROM params WHERE program_name = '{program_name}' end-select But I can't get SQR to accept any sort of input like that. Secondly, we use BRIO Portal 6 (whatever is one or two version(s) behind the current one) which doesn't support emailing the output from a job (SQR Program) to more than one person. We're not entirely sure the latest version of BRIO.Portal supports this, so if it doesn't we'd like a way to be able to email output to more than one person using SQR. I was thinking storing the distribution lists in another DBMS table and then using the Unix mail command to mail it to someone else. I see from this old thread (http://www.sqrug.org/sqr-users/sqrusers_97/msg00150.html) that I can close the output of the current program, but how do I find out the file name of the output file (usually a .pdf via -printer:pd) so that I can use it as an attachment. Anyone tried something like this and have a better way? Or is Brio Portal 7 (the version we're looking at upgrading to) more advanced than the version we're using now? 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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Oct 2 07:19:22 2003 From: "Ottaway, Eric (PS, GNF, Contractor)" Date: Thu, 2 Oct 2003 08:16:02 -0400 Subject: [sqr-users] #DEFINE directive Anyone, Can the #DEFINE directive be used in a program to substitute the SQR_DB_DATE_FORMAT value in the SQR.ini file? Thanks a bunch, Eric B. Ottaway _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Oct 6 03:50:23 2003 Date: Fri, 03 Oct 2003 10:36:50 +1000 From: Steve Cavill Subject: RE: [sqr-users] #DEFINE directive I don't think so, but you could use the -ZIF flag to point to a different SQR.INI. Why do you want to dynamically change the SQR_DB_DATE_FORMAT setting, there may be another way to achieve your end result. Steve. -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Ottaway, Eric (PS, GNF, Contractor) Sent: Thursday, 2 October 2003 10:16 PM To: 'sqr-users@sqrug.org' Subject: [sqr-users] #DEFINE directive Anyone, Can the #DEFINE directive be used in a program to substitute the SQR_DB_DATE_FORMAT value in the SQR.ini file? Thanks a bunch, Eric B. Ottaway _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.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 Oct 2 16:33:32 2003 Date: Thu, 02 Oct 2003 17:31:46 -0400 From: Matt Rogish Subject: [sqr-users] Problem with Printing w/On-Break and Before/After All, I have a result set like this: (column names) Event, Function, Function_Start_Date, Function_End_Date, Task, Task_Start_Date, Task_End_date, Task_Complete_Date I'm ordering by event, function, function_start_date, task, task_start_date Example Rows: Setup, AAI, 25-MAR-2002, 19-AUG-2002, Conduct Research on Branding, 25-MAR-2002, 05-APR-2002, 25-MAR-2002 Setup, AAI, 25-MAR-2002, 19-AUG-2002, Prepare Presentation to Board, 25-MAR-2002, 12-APR-2002, 25-MAR-2002 Setup, AAI, 25-MAR-2002, 19-AUG-2002, Presentation to Board, 12-APR-2002, 12-APR-2002, 12-APR-2002 Setup, Athl, 19-JUN-2002, 01-AUG-2002,,,, ..... Setup, Launch, 22-NOV-2002, 22-NOV-2002, Launch web site, 01-JAN-2003, 01-JAN-2003, 01-JAN-2003 What I'd like to see in the output is: --Event-- Setup Function AAI 25-MAR-2002 19-AUG-2002 Tasks Conduct Research on Branding 25-MAR-2002 05-APR-2002 Prepare Presentation to Board 25-MAR-2002 12-APR-2002 Presentation to Board 12-APR-2002 12-APR-2002 Function Athl .... ... Function Launch ... Tasks Launch web site My printing logic looks something like this: begin-select event (,) On-Break Level=1 Before=event_heading function (,) On-Break Level=2 Before=function_heading f_start_date (,) On-Break Level=2 ... task (,) On-Break Level=3 Before=task_heading t_start_date (,) On-Break Level=4 ... And the event_heading function looks something like: begin-function event-heading Print 'Event' (+1) Position (+1) end-function This one works fine. The problem is with the function_heading and task_heading functions (which look just like the event-heading function). Obviously they end up firing every time and don't even work correctly. Can anyone provide some insight? 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 Mon Oct 6 00:35:36 2003 Date: Fri, 03 Oct 2003 10:18:10 +1000 From: Steve Cavill Subject: RE: [sqr-users] Problem with Printing w/On-Break and Before/After Matt, i think you just have too many break fields, if two or more fields are related, (e.g. your Function, Function_Start_Date, Function_End_Date, ), just break on one of them. so your code would read begin-select event () On-Break Level=1 Before=event_heading function () On-Break Level=2 PRINT=NEVER Before=function_heading f_start_date f_end_date ... task (1,10) On-Break Level=3 Before=task_heading t_start_date (,+2) ... Note that function, f_start_date and f_end_date are NOT printed in the select. Instead you print then in the function_heading e..g begin-procedure function_heading next-listing print 'Function' (1,1) print &Function (2,10) print &f_start_date (2,20) print &f_end_date (2,30) next-listing ... I recommend you use next-listing instead of position (), position can get very confusing with line positioning. HTH. Regards, Steve -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Matt Rogish Sent: Friday, 3 October 2003 7:32 AM To: sqr-users@sqrug.org Subject: [sqr-users] Problem with Printing w/On-Break and Before/After All, I have a result set like this: (column names) Event, Function, Function_Start_Date, Function_End_Date, Task, Task_Start_Date, Task_End_date, Task_Complete_Date I'm ordering by event, function, function_start_date, task, task_start_date Example Rows: Setup, AAI, 25-MAR-2002, 19-AUG-2002, Conduct Research on Branding, 25-MAR-2002, 05-APR-2002, 25-MAR-2002 Setup, AAI, 25-MAR-2002, 19-AUG-2002, Prepare Presentation to Board, 25-MAR-2002, 12-APR-2002, 25-MAR-2002 Setup, AAI, 25-MAR-2002, 19-AUG-2002, Presentation to Board, 12-APR-2002, 12-APR-2002, 12-APR-2002 Setup, Athl, 19-JUN-2002, 01-AUG-2002,,,, ..... Setup, Launch, 22-NOV-2002, 22-NOV-2002, Launch web site, 01-JAN-2003, 01-JAN-2003, 01-JAN-2003 What I'd like to see in the output is: --Event-- Setup Function AAI 25-MAR-2002 19-AUG-2002 Tasks Conduct Research on Branding 25-MAR-2002 05-APR-2002 Prepare Presentation to Board 25-MAR-2002 12-APR-2002 Presentation to Board 12-APR-2002 12-APR-2002 Function Athl .... ... Function Launch ... Tasks Launch web site My printing logic looks something like this: begin-select event (,) On-Break Level=1 Before=event_heading function (,) On-Break Level=2 Before=function_heading f_start_date (,) On-Break Level=2 ... task (,) On-Break Level=3 Before=task_heading t_start_date (,) On-Break Level=4 ... And the event_heading function looks something like: begin-function event-heading Print 'Event' (+1) Position (+1) end-function This one works fine. The problem is with the function_heading and task_heading functions (which look just like the event-heading function). Obviously they end up firing every time and don't even work correctly. Can anyone provide some insight? 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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Oct 3 09:09:00 2003 Date: Fri, 3 Oct 2003 09:06:28 -0500 (EST) From: Don Mellen Subject: Re: [sqr-users] Problem with Printing w/On-Break and Before/After Try using print=never and printing the "whole" heading section and dropping the level=3 and 4 breaks. Something like.... begin-select event (,) On-Break print=never Level=1 Before=event_heading function (,) On-Break print=never Level=2 Before=function_heading f_start_date (,) On-Break print=never Level=2 ... task || ' ' || t_start_date || ' ' || t_end_date (+1) ... begin-function event_heading Print 'Event' (+1) Print &event (+1) Position (+1) end-function begin-function function_heading Print 'Function' (+1) Print &function (+1) Print &f_start_date ( , #date1_pos) Print &f_end_date ( , #date2_pos) Position (+1) Print 'Task' (+1) end-function (of course, you'll need your databases date to char function in the select). HTH, Don On Thu, 2 Oct 2003, Matt Rogish wrote: > All, > > I have a result set like this: > (column names) > Event, Function, Function_Start_Date, Function_End_Date, Task, > Task_Start_Date, Task_End_date, Task_Complete_Date > > I'm ordering by event, function, function_start_date, task, task_start_date > > Example Rows: > Setup, AAI, 25-MAR-2002, 19-AUG-2002, Conduct Research on > Branding, 25-MAR-2002, 05-APR-2002, 25-MAR-2002 > Setup, AAI, 25-MAR-2002, 19-AUG-2002, Prepare Presentation to Board, > 25-MAR-2002, 12-APR-2002, 25-MAR-2002 > Setup, AAI, 25-MAR-2002, 19-AUG-2002, Presentation to > Board, 12-APR-2002, 12-APR-2002, 12-APR-2002 > Setup, Athl, 19-JUN-2002, 01-AUG-2002,,,, > ..... > Setup, Launch, 22-NOV-2002, 22-NOV-2002, Launch web site, 01-JAN-2003, > 01-JAN-2003, 01-JAN-2003 > > > What I'd like to see in the output is: > --Event-- > Setup > > Function > AAI 25-MAR-2002 19-AUG-2002 > > Tasks > Conduct Research on Branding 25-MAR-2002 05-APR-2002 > Prepare Presentation to Board 25-MAR-2002 12-APR-2002 > Presentation to Board 12-APR-2002 12-APR-2002 > > Function > Athl .... > ... > Function > Launch ... > > Tasks > Launch web site > > My printing logic looks something like this: > begin-select > event (,) On-Break Level=1 Before=event_heading > function (,) On-Break Level=2 Before=function_heading > f_start_date (,) On-Break Level=2 > ... > task (,) On-Break Level=3 Before=task_heading > t_start_date (,) On-Break Level=4 > ... > > And the event_heading function looks something like: > begin-function event-heading > Print 'Event' (+1) > Position (+1) > end-function > > This one works fine. The problem is with the function_heading and > task_heading functions (which look just like the event-heading function). > > Obviously they end up firing every time and don't even work correctly. Can > anyone provide some insight? > > > 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 > ----------------------------------------------------------------------- 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 Oct 3 00:20:13 2003 Date: Fri, 03 Oct 2003 15:17:46 +1000 From: "Ian Mills" Subject: [sqr-users] Hi All, Hi All, I am getting the following error from me report. I am running against a Sybase database using SQR v6.1.2. I did find a similar error posted to this user group in Sep 2001 but noticed that nobody replied. I was wondering if anyone else more recently has encounted this problem and remembers how they fixed it. I would agree with the message in Sep 2001 that it is somehow related to using a temporyary table. What makes this more confusing is that the error does not occur when I call the procedure using "Cursor #1:" (shown below). If I call either "Cursor #2:" or "Cursor #3:", the error occurs. (SQR 5528) Sybase dbdesc: ct_results error in cursor 3: (5702) The SQL Server is terminating this process. Error on line 471: (SQR 3722) Could not set up cursor. SQR: Program Aborting. (SQR 5528) Sybase ct_send error in cursor 0: (49) ct_send(): user api layer: external error: This routine cannot be called because another command structure has results pending. (SQR 5528) Sybase dblogf: ct_send (end tran) error in cursor 0: (49) ct_send(): user api layer: external error: This routine cannot be called because another command structure has results pending. (SQR 5528) Sybase ct_send error in cursor 0: (49) ct_send(): user api layer: external error: This routine cannot be called because another command structure has results pending. (SQR 5528) Sybase dblogf: ct_send error in cursor 0: (49) ct_send(): user api layer: external error: This routine cannot be called because another command structure has results pending. (SQR 5502) Cannot drop SQR generated stored procedure: SQR_1404_1065157375. Cursor Status: Cursor #1: SQL = SELECT les_s, name, sum(tot_rec), sum(borr_rec), sum(co_rec), count(distinct lse_s), count(distinct unit_s) FROM [$_gs_temp_table] GROUP BY les_s ,name order by 3 desc Compiles = 0 Executes = 0 Rows = 0 Cursor #2: SQL = SELECT asset_code_desc, les_s, name, sum(tot_rec), sum(borr_rec), sum(co_rec), count(distinct lse_s), count(distinct unit_s) FROM [$_gs_temp_table] GROUP BY asset_code_desc ,les_s ,name order by 1 ,4 desc Compiles = 0 Executes = 0 Rows = 0 Cursor #3: SQL = SELECT com_s, les_s, name, sum(tot_rec), sum(borr_rec), sum(co_rec), count(distinct lse_s), count(distinct unit_s) FROM [$_gs_temp_table] GROUP BY com_s ,les_s ,name order by 1 ,4 desc Compiles = 1 Executes = 0 Rows = 0 below is the create statement that creates the temporary table... create table [$_gs_temp_table] ( com_s char(2) NULL ,les_s char(9) ,lse_s char(10) ,unit_s char(10) ,asset_code_desc varchar(50) ,name varchar(125) NULL ,tot_rec float ,borr_rec float ,co_rec float ); Regards, Ian Mills ORIX Australia Pty Ltd _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Oct 3 02:01:52 2003 Date: Fri, 03 Oct 2003 16:36:15 +1000 From: Steve Cavill Subject: RE: [sqr-users] Hi All, Hi Ian, You are using a global variable for the temp table name - is there any chance that could contribute to the problem - are all the procedures that use the table name local? Steve. -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Ian Mills Sent: Friday, 3 October 2003 3:18 PM To: sqr-users@sqrug.org Subject: [sqr-users] Hi All, Hi All, I am getting the following error from me report. I am running against a Sybase database using SQR v6.1.2. I did find a similar error posted to this user group in Sep 2001 but noticed that nobody replied. I was wondering if anyone else more recently has encounted this problem and remembers how they fixed it. I would agree with the message in Sep 2001 that it is somehow related to using a temporyary table. What makes this more confusing is that the error does not occur when I call the procedure using "Cursor #1:" (shown below). If I call either "Cursor #2:" or "Cursor #3:", the error occurs. (SQR 5528) Sybase dbdesc: ct_results error in cursor 3: (5702) The SQL Server is terminating this process. Error on line 471: (SQR 3722) Could not set up cursor. SQR: Program Aborting. (SQR 5528) Sybase ct_send error in cursor 0: (49) ct_send(): user api layer: external error: This routine cannot be called because another command structure has results pending. (SQR 5528) Sybase dblogf: ct_send (end tran) error in cursor 0: (49) ct_send(): user api layer: external error: This routine cannot be called because another command structure has results pending. (SQR 5528) Sybase ct_send error in cursor 0: (49) ct_send(): user api layer: external error: This routine cannot be called because another command structure has results pending. (SQR 5528) Sybase dblogf: ct_send error in cursor 0: (49) ct_send(): user api layer: external error: This routine cannot be called because another command structure has results pending. (SQR 5502) Cannot drop SQR generated stored procedure: SQR_1404_1065157375. Cursor Status: Cursor #1: SQL = SELECT les_s, name, sum(tot_rec), sum(borr_rec), sum(co_rec), count(distinct lse_s), count(distinct unit_s) FROM [$_gs_temp_table] GROUP BY les_s ,name order by 3 desc Compiles = 0 Executes = 0 Rows = 0 Cursor #2: SQL = SELECT asset_code_desc, les_s, name, sum(tot_rec), sum(borr_rec), sum(co_rec), count(distinct lse_s), count(distinct unit_s) FROM [$_gs_temp_table] GROUP BY asset_code_desc ,les_s ,name order by 1 ,4 desc Compiles = 0 Executes = 0 Rows = 0 Cursor #3: SQL = SELECT com_s, les_s, name, sum(tot_rec), sum(borr_rec), sum(co_rec), count(distinct lse_s), count(distinct unit_s) FROM [$_gs_temp_table] GROUP BY com_s ,les_s ,name order by 1 ,4 desc Compiles = 1 Executes = 0 Rows = 0 below is the create statement that creates the temporary table... create table [$_gs_temp_table] ( com_s char(2) NULL ,les_s char(9) ,lse_s char(10) ,unit_s char(10) ,asset_code_desc varchar(50) ,name varchar(125) NULL ,tot_rec float ,borr_rec float ,co_rec float ); Regards, Ian Mills ORIX Australia Pty Ltd _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.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 Oct 6 17:36:05 2003 Date: Tue, 07 Oct 2003 08:34:47 +1000 From: "Ian Mills" Subject: RE: [sqr-users] Hi All, Steve, Thanks for your reply. I use global variables all the time in my SQR programs when doing temporary tables. I also have a habit of declaring all my procedures local. I have investigated the error message returned and it appears as though it comes from a known bug in Sybase V12. We plan to investigate further on Wednesday morning. Regards, Ian Mills ORIX Australia Pty Ltd >>> steve.cavill@infoclarity.com.au 03/10/2003 4:36:15 pm >>> Hi Ian, You are using a global variable for the temp table name - is there any chance that could contribute to the problem - are all the procedures that use the table name local? Steve. -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Ian Mills Sent: Friday, 3 October 2003 3:18 PM To: sqr-users@sqrug.org Subject: [sqr-users] Hi All, Hi All, I am getting the following error from me report. I am running against a Sybase database using SQR v6.1.2. I did find a similar error posted to this user group in Sep 2001 but noticed that nobody replied. I was wondering if anyone else more recently has encounted this problem and remembers how they fixed it. I would agree with the message in Sep 2001 that it is somehow related to using a temporyary table. What makes this more confusing is that the error does not occur when I call the procedure using "Cursor #1:" (shown below). If I call either "Cursor #2:" or "Cursor #3:", the error occurs. (SQR 5528) Sybase dbdesc: ct_results error in cursor 3: (5702) The SQL Server is terminating this process. Error on line 471: (SQR 3722) Could not set up cursor. SQR: Program Aborting. (SQR 5528) Sybase ct_send error in cursor 0: (49) ct_send(): user api layer: external error: This routine cannot be called because another command structure has results pending. (SQR 5528) Sybase dblogf: ct_send (end tran) error in cursor 0: (49) ct_send(): user api layer: external error: This routine cannot be called because another command structure has results pending. (SQR 5528) Sybase ct_send error in cursor 0: (49) ct_send(): user api layer: external error: This routine cannot be called because another command structure has results pending. (SQR 5528) Sybase dblogf: ct_send error in cursor 0: (49) ct_send(): user api layer: external error: This routine cannot be called because another command structure has results pending. (SQR 5502) Cannot drop SQR generated stored procedure: SQR_1404_1065157375. Cursor Status: Cursor #1: SQL = SELECT les_s, name, sum(tot_rec), sum(borr_rec), sum(co_rec), count(distinct lse_s), count(distinct unit_s) FROM [$_gs_temp_table] GROUP BY les_s ,name order by 3 desc Compiles = 0 Executes = 0 Rows = 0 Cursor #2: SQL = SELECT asset_code_desc, les_s, name, sum(tot_rec), sum(borr_rec), sum(co_rec), count(distinct lse_s), count(distinct unit_s) FROM [$_gs_temp_table] GROUP BY asset_code_desc ,les_s ,name order by 1 ,4 desc Compiles = 0 Executes = 0 Rows = 0 Cursor #3: SQL = SELECT com_s, les_s, name, sum(tot_rec), sum(borr_rec), sum(co_rec), count(distinct lse_s), count(distinct unit_s) FROM [$_gs_temp_table] GROUP BY com_s ,les_s ,name order by 1 ,4 desc Compiles = 1 Executes = 0 Rows = 0 below is the create statement that creates the temporary table... create table [$_gs_temp_table] ( com_s char(2) NULL ,les_s char(9) ,lse_s char(10) ,unit_s char(10) ,asset_code_desc varchar(50) ,name varchar(125) NULL ,tot_rec float ,borr_rec float ,co_rec float ); Regards, Ian Mills ORIX Australia Pty Ltd _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Oct 3 11:34:06 2003 From: "Alexander, Steve" Subject: RE: [sqr-users] (SQR 6806) String2Em: String to Decimal Object Co nversion Error. Date: Fri, 3 Oct 2003 09:37:49 -0700 Thanks for the reference, Larry, but I didn't understand the advice given there. That forum seems to be pretty loose compared to the serious tone we usually keep here. I've done some further research and found I was wrong about the values in the field. It's actually a different field causing the problem, and that field usually has 11 digit numbers. Does that give anybody any ideas? -----Original Message----- From: Larry Roux [mailto:lroux@syr.edu] Sent: Friday, September 26, 2003 6:06 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] (SQR 6806) String2Em: String to Decimal Object Conversion Error. There is a similar question answered on the PeopleSoft Fans site: http://www.peoplesoftfans.com/psfans/forum/tools/messages/3295.html ****************************** Larry Roux Syracuse University lroux@syr.edu ******************************* >>> Steve.Alexander@ci.sj.ca.us 09/26/03 20:35 PM >>> Thanks for the suggestion. I had done that. Also, the select worked when I didn't return this field and didn't work when I did return this field. Strangely, this program has been in production (unchanged) for months. -----Original Message----- From: the dragon [mailto:ceprn@hotmail.com] Sent: Friday, September 26, 2003 3:48 PM To: sqr-users@sqrug.org Cc: Steve.Alexander@ci.sj.ca.us Subject: Re: [sqr-users] (SQR 6806) String2Em: String to Decimal Object Conversion Error. Look in your where clause. check for data type mismatches. copy your sql statement tinot your sql tool and run it with the same values you're using in your sqr. clarl '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 got the following message on the first row of a select statement when reading a numeric field: (SQR 6806) String2Em: String to Decimal Object Conversion Error. What does it mean? The field contains the number 1. _________________________________________________________________ Get MSN 8 Dial-up Internet Service FREE for one month. Limited time offer-- sign up now! http://join.msn.com/?page=dept/dialup _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Fri Oct 17 12:54:23 2003 From: Peter Burton Subject: RE: [sqr-users] (SQR 6806) String2Em: String to Decimal Object Co nversion Error. Date: Fri, 17 Oct 2003 13:53:29 -0400 Steve, This is because Oracle made a change in 9.2.0.3. Have a DBA issue the following command: alter system set event='10499 trace name context forever,level 1' COMMENT='return 0 for the scale if NUMBER created without specifying the scale' SCOPE=SPFILE Peter > -----Original Message----- > From: Alexander, Steve [mailto:Steven.Alexander@sanjoseca.gov] > Sent: Friday, October 17, 2003 11:34 AM > To: SQR User Group (E-mail) > Subject: [sqr-users] (SQR 6806) String2Em: String to Decimal Object > Conversion Error. > > > When I got this error message a few weeks ago, I dealt with > it by rewritting > the program. Now I've got it again, on a > Peoplesoft-delivered program, > BEN040. Both programs used to work, and I've just realized that they > stopped working on our STAGE database when we upgraded from > Oracle 8.1.7.4 > to 9.2.0.3. BEN040 still works in PROD, which is still at > Oracle 8.1.7.4. > Does anyone know of a bad SQR 6/Oracle 9 interaction? > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.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 Oct 3 14:32:00 2003 From: Margaret.Bermel@bbh.com Date: Fri, 3 Oct 2003 15:10:49 -0400 Subject: [sqr-users] Relative Printing with a PDF File Hi all, I am trying to use relative printing with a PDF File and it doesn't seem to be working. Alter-Printer Font=3 Point-Size=12 font-type=fixed Print &Entity_nam () Center print $first_break (+2,60,) bold print '(' (,+1,1) bold print #first_break1_total (,+2,5) edit 99.99 print ')' (,+1,1) bold If I open the PDF file the "(" on some lines print correctly on others it isoverlapping on the first field that it should be relative to. What's strange is that when I export the file from adobe into a text file and view it, it looks fine. Is there a printer option or font that needs to be set? Any help will be most appreciated. Thanks, Margaret _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Oct 7 21:50:25 2003 From: Ray Ontko Date: Tue, 7 Oct 2003 21:48:16 -0500 Subject: Re: [sqr-users] Relative Printing with a PDF File Hi Margaret, When you use relative positioning, make sure that the size of your character cell matches the font size. In this case, 12-point courier would dictate a char-width of 12*0.6 = 7.2 pts (10 char/inch). Another popular size for Courier is 10pt which results in a char-width of 10*0.6= 6 pts (12 char/inch). What does it say in your declare-layout? Ray On Fri, Oct 03, 2003 at 03:10:49PM -0400, Margaret.Bermel@bbh.com wrote: > Hi all, > > I am trying to use relative printing with a PDF File and it doesn't seem > to be working. > > Alter-Printer Font=3 Point-Size=12 font-type=fixed > Print &Entity_nam () Center > print $first_break (+2,60,) bold > print '(' (,+1,1) bold > print #first_break1_total (,+2,5) edit 99.99 > print ')' (,+1,1) bold > > If I open the PDF file the "(" on some lines print correctly on others it > isoverlapping on the first field that it should be relative to. > > What's strange is that when I export the file from adobe into a text file > and view it, it looks fine. > > Is there a printer option or font that needs to be set? Any help will be > most appreciated. > > Thanks, > Margaret > > _______________________________________________ > 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 Oct 3 17:22:32 2003 From: "the dragon" Date: Fri, 03 Oct 2003 17:21:12 -0500 Subject: [sqr-users] post OK, I'll probably get in trouble for it, but this affects US IT workers, some of whom actually use sqr, so I'll post this.. If it is inappropriate, I apologize in advance. LEAD STORY H1-B VISA CAP FALLS TO 65,000 | eWeek As IT unemployment numbers continue to soar, the U.S. Congress this week decided on dropping the H-1B visa limit back to 65,000. That's a new low since 2000, when the number of visas granted was boosted to 195,000. For the full details, click: http://www.eweek.com/article2/0,4149,1305899,00.asp 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) _________________________________________________________________ Get MSN 8 Dial-up Internet Service FREE for one month. Limited time offer-- sign up now! http://join.msn.com/?page=dept/dialup _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Sat Oct 4 20:37:58 2003 Date: Sat, 4 Oct 2003 18:35:33 -0700 (PDT) From: Ania Wajda Subject: [sqr-users] Declare-Chart and Print-chart help Hello friends, We are using PS v8.15 tools. I am trying to run a sqr with declare-chart and print-chart commands. I am getting the following error. Are there any settings to change in the .ini file? Any help appreciated. -Ania Error on line 67: (SQR 3503) Unknown variable type. Chart-Size = ( 50,50) Error on line 68: (SQR 3701) Invalid command. Title = 'Employee Sales' Error on line 69: (SQR 3701) Invalid command. Type = 100%-bar Error on line 70: (SQR 3701) Invalid command. 3D-Effects = yes Error on line 71: (SQR 3701) Invalid command. X-Axis-Label = 'Employees' Error on line 72: (SQR 3701) Invalid command. Y-Axis-Label = 'Sales (in thousands)' Error on line 73: (SQR 3701) Invalid command. End-Declare Error on line 95: (SQR 3503) Unknown variable type. Print-Chart emp_sales_chart (#y, #x) Error on line 96: (SQR 3701) Invalid command. Fill = color Error on line 97: (SQR 3701) Invalid command. Sub-Title = '100% Bar-Chart: bar100.sqr' Error on line 98: (SQR 3701) Invalid command. Data-Array-Row-Count = #row Error on line 99: (SQR 3701) Invalid command. Data-Array-Column-Count = #col Error on line 100: (SQR 3701) Invalid command. Data-Array-Column-Labels = ('Jun', 'Jul', 'Aug') Error on line 101: (SQR 3701) Invalid command. Data-Array = emp_sales Errors were found in the program file. SQR for PeopleSoft: Program Aborting. --------------------------------- Do you Yahoo!? The New Yahoo! Shopping - with improved product search _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Oct 6 09:10:21 2003 Date: Mon, 06 Oct 2003 09:09:32 -0500 From: Bob.Melosi@edwardjones.com Subject: Re: [sqr-users] Declare-Chart and Print-chart help I had the same problem. It is the version of PS tools you are using. The version of SQR that comes with that version has a problem with charts. We are running PS v8.18 in HR and it didn't work. I ran with PS v8.42 in our financial area and it worked. If I remember correctly, v8.19 is the lowest version you can use. Bob > Hello friends, > > > We are using PS v8.15 tools. I am trying to run a sqr with declare-chart and print-chart commands. I am getting the following error. Are there any settings to change in the .ini file? > > Any help appreciated. > > > -Ania > > Error on line 67: > (SQR 3503) Unknown variable type. > Chart-Size = ( 50,50) > Error on line 68: > (SQR 3701) Invalid command. > Title = 'Employee Sales' > Error on line 69: > (SQR 3701) Invalid command. > Type = 100%-bar > Error on line 70: > (SQR 3701) Invalid command. > 3D-Effects = yes > Error on line 71: > (SQR 3701) Invalid command. > X-Axis-Label = 'Employees' > Error on line 72: > (SQR 3701) Invalid command. > Y-Axis-Label = 'Sales (in thousands)' > Error on line 73: > (SQR 3701) Invalid command. > End-Declare > Error on line 95: > (SQR 3503) Unknown variable type. > Print-Chart emp_sales_chart (#y, #x) > Error on line 96: > (SQR 3701) Invalid command. > Fill = color > Error on line 97: > (SQR 3701) Invalid command. > Sub-Title = '100% Bar-Chart: bar100.sqr' > Error on line 98: > (SQR 3701) Invalid command. > Data-Array-Row-Count = #row > Error on line 99: > (SQR 3701) Invalid command. > Data-Array-Column-Count = #col > Error on line 100: > (SQR 3701) Invalid command. > Data-Array-Column-Labels = ('Jun', 'Jul', 'Aug') > Error on line 101: > (SQR 3701) Invalid command. > Data-Array = emp_sales > Errors were found in the program file. > SQR for PeopleSoft: Program Aborting. > > > > > --------------------------------- > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.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 Oct 6 19:02:15 2003 Date: Mon, 6 Oct 2003 17:01:20 -0700 (PDT) From: Ania Wajda Subject: Re: [sqr-users] Declare-Chart and Print-chart help Hi Bob, Thanks for the information, you provided. We are planing to Upgrade PS tools to version 8.19. I will try again using PS tools v8.19. Thanks again. Ania. Bob.Melosi@edwardjones.com wrote: I had the same problem. It is the version of PS tools you are using. The version of SQR that comes with that version has a problem with charts. We are running PS v8.18 in HR and it didn't work. I ran with PS v8.42 in our financial area and it worked. If I remember correctly, v8.19 is the lowest version you can use. Bob > Hello friends, > > > We are using PS v8.15 tools. I am trying to run a sqr with declare-chart and print-chart commands. I am getting the following error. Are there any settings to change in the .ini file? > > Any help appreciated. > > > -Ania > > Error on line 67: > (SQR 3503) Unknown variable type. > Chart-Size = ( 50,50) > Error on line 68: > (SQR 3701) Invalid command. > Title = 'Employee Sales' > Error on line 69: > (SQR 3701) Invalid command. > Type = 100%-bar > Error on line 70: > (SQR 3701) Invalid command. > 3D-Effects = yes > Error on line 71: > (SQR 3701) Invalid command. > X-Axis-Label = 'Employees' > Error on line 72: > (SQR 3701) Invalid command. > Y-Axis-Label = 'Sales (in thousands)' > Error on line 73: > (SQR 3701) Invalid command. > End-Declare > Error on line 95: > (SQR 3503) Unknown variable type. > Print-Chart emp_sales_chart (#y, #x) > Error on line 96: > (SQR 3701) Invalid command. > Fill = color > Error on line 97: > (SQR 3701) Invalid command. > Sub-Title = '100% Bar-Chart: bar100.sqr' > Error on line 98: > (SQR 3701) Invalid command. > Data-Array-Row-Count = #row > Error on line 99: > (SQR 3701) Invalid command. > Data-Array-Column-Count = #col > Error on line 100: > (SQR 3701) Invalid command. > Data-Array-Column-Labels = ('Jun', 'Jul', 'Aug') > Error on line 101: > (SQR 3701) Invalid command. > Data-Array = emp_sales > Errors were found in the program file. > SQR for PeopleSoft: Program Aborting. > > > > > --------------------------------- > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users --------------------------------- Do you Yahoo!? The New Yahoo! Shopping - with improved product search _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Sun Oct 5 15:01:24 2003 Date: Sun, 5 Oct 2003 12:59:27 -0700 (PDT) From: Roland Ferreras Subject: [sqr-users] on-break Performance I have an SQR program that will be processing a lot on information and I'm in need to tweak it as much as possible. My question is what's the overhead performance of ON-BREAK commands when used in a BEGIN-SELECT block? I'm thinking of rewriting the following code using 'if-then' logic to find my breaks depending on the performance. I have around 5 BEGIN-SELECT procedures that I would have to recode. Below is a copy of my code... begin-SELECT on-error = ESG-SQL-Error LINE.EMPLID () ON-BREAK level=1 save=$EMPLID LINE.COMPANY () ON-BREAK level=2 save=$COMPANY LINE.PAYGROUP () ON-BREAK level=3 save=$PAYGROUP LINE.PAY_END_DT () ON-BREAK level=4 save=$PAY_END_DT LINE.OFF_CYCLE () ON-BREAK level=5 save=$OFF_CYCLE to_char(LINE.PAGE_NBR) () ON-BREAK level=6 save=$PAGE_NBR to_char(LINE.LINE_NBR) () ON-BREAK level=7 save=$LINE_NBR AFTER=Pay-Line-Break to_char(LINE.EMPL_TYPE) () ON-BREAK level=8 save=$EMPL_TYPE FROM PS_PAY_LINE LINE !------------------------------------------- WHERE LINE.COMPANY = $COMPANY AND LINE.PAYGROUP = $PAYGROUP AND LINE.PAY_END_DT = $PAY_END_DT AND LINE.CONFIRMED = 'Y' ORDER BY LINE.EMPLID ,LINE.COMPANY ,LINE.PAYGROUP ,LINE.PAY_END_DT ,LINE.OFF_CYCLE ,LINE.PAGE_NBR ,LINE.LINE_NBR end-SELECT FYI I'm running this in a Windows 2000/Oracle 9 shop. Thanks! Roland "If you are going through hell, keep going." - Sir Winston Churchill (1874-1965) --------------------------------- Do you Yahoo!? The New Yahoo! Shopping - with improved product search _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Sun Oct 5 20:24:53 2003 From: Ray Ontko Date: Sun, 5 Oct 2003 20:23:04 -0500 Subject: Re: [sqr-users] on-break Performance Roland, I've never seen any performance problems caused by on-break. It should be as fast or faster then putting in your own if-then logic. Ray On Sun, Oct 05, 2003 at 12:59:27PM -0700, Roland Ferreras wrote: > I have an SQR program that will be processing a lot on information and I'm in need to tweak it as much as possible. My question is what's the overhead performance of ON-BREAK commands when used in a BEGIN-SELECT block? I'm thinking of rewriting the following code using 'if-then' logic to find my breaks depending on the performance. I have around 5 BEGIN-SELECT procedures that I would have to recode. > > Below is a copy of my code... > > begin-SELECT on-error = ESG-SQL-Error > LINE.EMPLID () ON-BREAK level=1 save=$EMPLID > LINE.COMPANY () ON-BREAK level=2 save=$COMPANY > LINE.PAYGROUP () ON-BREAK level=3 save=$PAYGROUP > LINE.PAY_END_DT () ON-BREAK level=4 save=$PAY_END_DT > LINE.OFF_CYCLE () ON-BREAK level=5 save=$OFF_CYCLE > to_char(LINE.PAGE_NBR) () ON-BREAK level=6 save=$PAGE_NBR > to_char(LINE.LINE_NBR) () ON-BREAK level=7 save=$LINE_NBR AFTER=Pay-Line-Break > to_char(LINE.EMPL_TYPE) () ON-BREAK level=8 save=$EMPL_TYPE > > FROM PS_PAY_LINE LINE > !------------------------------------------- > WHERE LINE.COMPANY = $COMPANY > AND LINE.PAYGROUP = $PAYGROUP > AND LINE.PAY_END_DT = $PAY_END_DT > AND LINE.CONFIRMED = 'Y' > ORDER BY LINE.EMPLID > ,LINE.COMPANY > ,LINE.PAYGROUP > ,LINE.PAY_END_DT > ,LINE.OFF_CYCLE > ,LINE.PAGE_NBR > ,LINE.LINE_NBR > end-SELECT > > > FYI I'm running this in a Windows 2000/Oracle 9 shop. > > Thanks! > > Roland > > > > > > "If you are going through hell, keep going." > - Sir Winston Churchill (1874-1965) > > --------------------------------- > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > > _______________________________________________ > 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 Oct 6 10:56:05 2003 From: "Alexander, Steve" Subject: RE: [sqr-users] on-break Performance Date: Mon, 6 Oct 2003 08:59:03 -0700 Given the fact that this table is indexed, it may not matter, but you might simplify the sort. Since there's only one value of COMPANY, PAYGROUP, and PAY_END_DT, why sort on them? And, do you really care which PAGE_NUM, LINE_NUM, and OFF_CYCLE values come first? Or is there more to this program than we see? PS_PAY_LINE has some interesting information, but I usually use it to link EMPLID to the rest of the paycheck. Are you doing that? If so, select the other tables at the same time; join PS_PAY_LINE with PS_PAY_EARNINGS or PS_PAY_DEDUCTION or whatever. That's much, much faster than reading each row of PS_PAY_LINE and then using the key fields to read one row of another table. -----Original Message----- From: Ray Ontko [mailto:rayo@ontko.com] Sent: Sunday, October 05, 2003 6:23 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] on-break Performance Roland, I've never seen any performance problems caused by on-break. It should be as fast or faster then putting in your own if-then logic. Ray On Sun, Oct 05, 2003 at 12:59:27PM -0700, Roland Ferreras wrote: > I have an SQR program that will be processing a lot on information and I'm in need to tweak it as much as possible. My question is what's the overhead performance of ON-BREAK commands when used in a BEGIN-SELECT block? I'm thinking of rewriting the following code using 'if-then' logic to find my breaks depending on the performance. I have around 5 BEGIN-SELECT procedures that I would have to recode. > > Below is a copy of my code... > > begin-SELECT on-error = ESG-SQL-Error > LINE.EMPLID () ON-BREAK level=1 save=$EMPLID > LINE.COMPANY () ON-BREAK level=2 save=$COMPANY > LINE.PAYGROUP () ON-BREAK level=3 save=$PAYGROUP > LINE.PAY_END_DT () ON-BREAK level=4 save=$PAY_END_DT > LINE.OFF_CYCLE () ON-BREAK level=5 save=$OFF_CYCLE > to_char(LINE.PAGE_NBR) () ON-BREAK level=6 save=$PAGE_NBR > to_char(LINE.LINE_NBR) () ON-BREAK level=7 save=$LINE_NBR AFTER=Pay-Line-Break > to_char(LINE.EMPL_TYPE) () ON-BREAK level=8 save=$EMPL_TYPE > > FROM PS_PAY_LINE LINE > !------------------------------------------- > WHERE LINE.COMPANY = $COMPANY > AND LINE.PAYGROUP = $PAYGROUP > AND LINE.PAY_END_DT = $PAY_END_DT > AND LINE.CONFIRMED = 'Y' > ORDER BY LINE.EMPLID > ,LINE.COMPANY > ,LINE.PAYGROUP > ,LINE.PAY_END_DT > ,LINE.OFF_CYCLE > ,LINE.PAGE_NBR > ,LINE.LINE_NBR > end-SELECT > > > FYI I'm running this in a Windows 2000/Oracle 9 shop. > > Thanks! > > Roland > > > > > > "If you are going through hell, keep going." > - Sir Winston Churchill (1874-1965) > > --------------------------------- > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > > _______________________________________________ > 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 Mon Oct 6 07:50:23 2003 From: Margaret.Bermel@bbh.com Date: Mon, 6 Oct 2003 08:46:39 -0400 Subject: [sqr-users] Relative Printing with a PDF File Hi all, If anyone can help, please do. Thanks. I am trying to use relative printing with a PDF File and it doesn't seem to be working. Alter-Printer Font=3 Point-Size=12 font-type=fixed Print &Entity_nam () Center print $first_break (+2,60,) bold print '(' (,+1,1) bold print #first_break1_total (,+2,5) edit 99.99 print ')' (,+1,1) bold If I open the PDF file the "(" on some lines print correctly on others it isoverlapping on the first field that it should be relative to. What's strange is that when I export the file from adobe into a text file and view it, it looks fine. Is there a printer option or font that needs to be set? Any help will be most appreciated. Thanks, Margaret _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Oct 6 08:01:07 2003 From: Peter Burton Subject: RE: [sqr-users] Relative Printing with a PDF File Date: Mon, 6 Oct 2003 06:00:05 -0700 This is a multi-part message in MIME format... ------_=_NextPart_000_01C38C09.C363FC90 Content-Type: text/plain; charset="iso-8859-1" Margaret, Works fine for me. Peter -----Original Message----- From: Margaret.Bermel@bbh.com [mailto:Margaret.Bermel@bbh.com] Sent: Monday, October 06, 2003 8:47 AM To: sqr-users@sqrug.org Subject: [sqr-users] Relative Printing with a PDF File Hi all, If anyone can help, please do. Thanks. I am trying to use relative printing with a PDF File and it doesn't seem to be working. Alter-Printer Font=3 Point-Size=12 font-type=fixed Print &Entity_nam () Center print $first_break (+2,60,) bold print '(' (,+1,1) bold print #first_break1_total (,+2,5) edit 99.99 print ')' (,+1,1) bold If I open the PDF file the "(" on some lines print correctly on others it isoverlapping on the first field that it should be relative to. What's strange is that when I export the file from adobe into a text file and view it, it looks fine. Is there a printer option or font that needs to be set? Any help will be most appreciated. Thanks, Margaret _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------_=_NextPart_000_01C38C09.C363FC90 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/octet-stream' MIME type. It has been automatically discarded before sending the message to the list. ------_=_NextPart_000_01C38C09.C363FC90 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/octet-stream' MIME type. It has been automatically discarded before sending the message to the list. ------_=_NextPart_000_01C38C09.C363FC90-- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Oct 6 10:53:48 2003 Date: Mon, 6 Oct 2003 09:51:19 -0600 From: "Turner, Ivan" Subject: [sqr-users] Dynamically Use Oracle Hint I usually know the hint I want to use and write the code as such: Begin-Select on-error = mucked-up /*+ index(ia PSBITEM_ACTIVITY) */ C.segment_id ia.business_unit o o o from ps_item_activity ia, pc_customer c where ... End-Select I now need to know if there is a way to build hints dynamically. I will be accessing the table based on user choices where each choice has an index that is optimal for table access. Has anyone done this? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Oct 6 16:27:26 2003 From: "Mark Hall" Date: Mon, 06 Oct 2003 16:23:57 -0500 Subject: [sqr-users] Help! SQR mysteriously prints extra pages! I am totally stumped on this one. I have an sqr (DDP003P.SQR, The check advice print, for all of you peoplesoft types out there) that for some strange reason prints mystery pages. I can see no reason why. My checks print fine and the advices use the same layout. When I run the process to a pdf file the pdf looks fine. All the text and graphics are on one page just like they should be. When I look at the raw .lis file I only see one formfeed (at the bottom of the page where it should be). But when I run it to an hp printer it just goes crazy. It prints some stuff on the first page. Then it prints some stuff on the next page. Then it goes to the next page and prints a line. Then it prints a line on the next page. And so on for a few more pages. Then it prints a whole bunch of blank pages. Then it prints the category subtotals on one page. Then finally it prints the grand totals on the last page. It spits out about 45 pages between blanks and pages with stuff on them. I've tried the formfeed=no option but that doesn't work. Like I said I don't see any extra formfeeds. Does anyone have any idea what the problem is? Any help would be greatly appreciated. We are going live in a few weeks and I am at my wits end. I am running the PeopleSoft version of sqr on an AIX 5.1 box and printing to an HP LaserJet 4000T. PeopleTools release 8.4.3. Mark Hall IS Analyst ERP Team 260-373-8796 mark.hall@parkview.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Oct 6 16:38:06 2003 From: "Alexander, Steve" Subject: RE: [sqr-users] Help! SQR mysteriously prints extra pages! Date: Mon, 6 Oct 2003 14:43:54 -0700 Does the "some stuff" look like HP's printer control language or like Postscript? Maybe SQR is writing Postscript and the printer is expecting PCL or vica versa. -----Original Message----- From: Mark Hall [mailto:Mark.Hall@parkview.com] Sent: Monday, October 06, 2003 2:24 PM To: sqr-users@sqrug.org Subject: [sqr-users] Help! SQR mysteriously prints extra pages! I am totally stumped on this one. I have an sqr (DDP003P.SQR, The check advice print, for all of you peoplesoft types out there) that for some strange reason prints mystery pages. I can see no reason why. My checks print fine and the advices use the same layout. When I run the process to a pdf file the pdf looks fine. All the text and graphics are on one page just like they should be. When I look at the raw .lis file I only see one formfeed (at the bottom of the page where it should be). But when I run it to an hp printer it just goes crazy. It prints some stuff on the first page. Then it prints some stuff on the next page. Then it goes to the next page and prints a line. Then it prints a line on the next page. And so on for a few more pages. Then it prints a whole bunch of blank pages. Then it prints the category subtotals on one page. Then finally it prints the grand totals on the last page. It spits out about 45 pages between blanks and pages with stuff on them. I've tried the formfeed=no option but that doesn't work. Like I said I don't see any extra formfeeds. Does anyone have any idea what the problem is? Any help would be greatly appreciated. We are going live in a few weeks and I am at my wits end. I am running the PeopleSoft version of sqr on an AIX 5.1 box and printing to an HP LaserJet 4000T. PeopleTools release 8.4.3. Mark Hall IS Analyst ERP Team 260-373-8796 mark.hall@parkview.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 Mon Oct 6 16:45:05 2003 Date: Mon, 06 Oct 2003 16:47:30 -0500 From: "Mike Eischen" Subject: Re: [sqr-users] Help! SQR mysteriously prints extra pages! Is it possible that your printer has a setting that does a page eject after a certain amount of time? I seem to remember some laser printers having that feature. If you were printing something with graphics, the printer would eject a partially completed image. >>> Mark.Hall@parkview.com 10/06/03 04:23PM >>> I am totally stumped on this one. I have an sqr (DDP003P.SQR, The check advice print, for all of you peoplesoft types out there) that for some strange reason prints mystery pages. I can see no reason why. My checks print fine and the advices use the same layout. When I run the process to a pdf file the pdf looks fine. All the text and graphics are on one page just like they should be. When I look at the raw .lis file I only see one formfeed (at the bottom of the page where it should be). But when I run it to an hp printer it just goes crazy. It prints some stuff on the first page. Then it prints some stuff on the next page. Then it goes to the next page and prints a line. Then it prints a line on the next page. And so on for a few more pages. Then it prints a whole bunch of blank pages. Then it prints the category subtotals on one page. Then finally it prints the grand totals on the last page. It spits out about 45 pages between blanks and pages with stuff on them. I've tried the formfeed=no option but that doesn't work. Like I said I don't see any extra formfeeds. Does anyone have any idea what the problem is? Any help would be greatly appreciated. We are going live in a few weeks and I am at my wits end. I am running the PeopleSoft version of sqr on an AIX 5.1 box and printing to an HP LaserJet 4000T. PeopleTools release 8.4.3. Mark Hall IS Analyst ERP Team 260-373-8796 mark.hall@parkview.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 Mon Oct 6 17:07:06 2003 From: "Mark Hall" Date: Mon, 06 Oct 2003 17:06:12 -0500 Subject: RE: [sqr-users] Help! SQR mysteriously prints extra pages! No strange "stuff" appears on the report. Everythng that prints is what I expect to print it just prints on different pages. Mark Hall IS Analyst ERP Team 260-373-8796 mark.hall@parkview.com >>> Steve.Alexander@sanjoseca.gov 10/06/03 04:43PM >>> Does the "some stuff" look like HP's printer control language or like Postscript? Maybe SQR is writing Postscript and the printer is expecting PCL or vica versa. -----Original Message----- From: Mark Hall [mailto:Mark.Hall@parkview.com] Sent: Monday, October 06, 2003 2:24 PM To: sqr-users@sqrug.org Subject: [sqr-users] Help! SQR mysteriously prints extra pages! I am totally stumped on this one. I have an sqr (DDP003P.SQR, The check advice print, for all of you peoplesoft types out there) that for some strange reason prints mystery pages. I can see no reason why. My checks print fine and the advices use the same layout. When I run the process to a pdf file the pdf looks fine. All the text and graphics are on one page just like they should be. When I look at the raw .lis file I only see one formfeed (at the bottom of the page where it should be). But when I run it to an hp printer it just goes crazy. It prints some stuff on the first page. Then it prints some stuff on the next page. Then it goes to the next page and prints a line. Then it prints a line on the next page. And so on for a few more pages. Then it prints a whole bunch of blank pages. Then it prints the category subtotals on one page. Then finally it prints the grand totals on the last page. It spits out about 45 pages between blanks and pages with stuff on them. I've tried the formfeed=no option but that doesn't work. Like I said I don't see any extra formfeeds. Does anyone have any idea what the problem is? Any help would be greatly appreciated. We are going live in a few weeks and I am at my wits end. I am running the PeopleSoft version of sqr on an AIX 5.1 box and printing to an HP LaserJet 4000T. PeopleTools release 8.4.3. Mark Hall IS Analyst ERP Team 260-373-8796 mark.hall@parkview.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 Mon Oct 6 17:20:07 2003 From: "Alexander, Steve" Subject: RE: [sqr-users] Help! SQR mysteriously prints extra pages! Date: Mon, 6 Oct 2003 15:25:40 -0700 Do other reports print OK? How about other employees' advices? -----Original Message----- From: Mark Hall [mailto:Mark.Hall@parkview.com] Sent: Monday, October 06, 2003 3:06 PM To: Steve.Alexander@sanjoseca.gov; sqr-users@sqrug.org Subject: RE: [sqr-users] Help! SQR mysteriously prints extra pages! No strange "stuff" appears on the report. Everythng that prints is what I expect to print it just prints on different pages. Mark Hall IS Analyst ERP Team 260-373-8796 mark.hall@parkview.com >>> Steve.Alexander@sanjoseca.gov 10/06/03 04:43PM >>> Does the "some stuff" look like HP's printer control language or like Postscript? Maybe SQR is writing Postscript and the printer is expecting PCL or vica versa. -----Original Message----- From: Mark Hall [mailto:Mark.Hall@parkview.com] Sent: Monday, October 06, 2003 2:24 PM To: sqr-users@sqrug.org Subject: [sqr-users] Help! SQR mysteriously prints extra pages! I am totally stumped on this one. I have an sqr (DDP003P.SQR, The check advice print, for all of you peoplesoft types out there) that for some strange reason prints mystery pages. I can see no reason why. My checks print fine and the advices use the same layout. When I run the process to a pdf file the pdf looks fine. All the text and graphics are on one page just like they should be. When I look at the raw .lis file I only see one formfeed (at the bottom of the page where it should be). But when I run it to an hp printer it just goes crazy. It prints some stuff on the first page. Then it prints some stuff on the next page. Then it goes to the next page and prints a line. Then it prints a line on the next page. And so on for a few more pages. Then it prints a whole bunch of blank pages. Then it prints the category subtotals on one page. Then finally it prints the grand totals on the last page. It spits out about 45 pages between blanks and pages with stuff on them. I've tried the formfeed=no option but that doesn't work. Like I said I don't see any extra formfeeds. Does anyone have any idea what the problem is? Any help would be greatly appreciated. We are going live in a few weeks and I am at my wits end. I am running the PeopleSoft version of sqr on an AIX 5.1 box and printing to an HP LaserJet 4000T. PeopleTools release 8.4.3. Mark Hall IS Analyst ERP Team 260-373-8796 mark.hall@parkview.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Oct 6 17:32:11 2003 From: Ray Ontko Date: Mon, 6 Oct 2003 17:31:20 -0500 Subject: Re: [sqr-users] Help! SQR mysteriously prints extra pages! Mark, The problem is that you are attempting to print past the end of the page, so the HP printer is adding a newline after each print attempt. I don't recall the exact escape sequence that you need to send the printer, but it's the one that defines the printable area of the page. Since you're printing past the printable area, the printer thinks you want to start the NEXT text on a fresh page. Ray On Mon, Oct 06, 2003 at 04:23:57PM -0500, Mark Hall wrote: > I am totally stumped on this one. I have an sqr (DDP003P.SQR, The check > advice print, for all of you peoplesoft types out there) that for some > strange reason prints mystery pages. I can see no reason why. My > checks print fine and the advices use the same layout. When I run the > process to a pdf file the pdf looks fine. All the text and graphics are > on one page just like they should be. When I look at the raw .lis file > I only see one formfeed (at the bottom of the page where it should be). > But when I run it to an hp printer it just goes crazy. It prints some > stuff on the first page. Then it prints some stuff on the next page. > Then it goes to the next page and prints a line. Then it prints a line > on the next page. And so on for a few more pages. Then it prints a > whole bunch of blank pages. Then it prints the category subtotals on > one page. Then finally it prints the grand totals on the last page. It > spits out about 45 pages between blanks and pages with stuff on them. > > I've tried the formfeed=no option but that doesn't work. Like I said I > don't see any extra formfeeds. > > Does anyone have any idea what the problem is? Any help would be > greatly appreciated. We are going live in a few weeks and I am at my > wits end. > > I am running the PeopleSoft version of sqr on an AIX 5.1 box and > printing to an HP LaserJet 4000T. PeopleTools release 8.4.3. > > > > Mark Hall > IS Analyst > ERP Team > 260-373-8796 > mark.hall@parkview.com > > _______________________________________________ > 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 Oct 6 17:57:13 2003 From: "Mark Hall" Date: Mon, 06 Oct 2003 17:35:42 -0500 Subject: RE: [sqr-users] Help! SQR mysteriously prints extra pages! Like I said ealier, my checks print fine; everything is on one page. Other reports print fine. This is why I am so stumped. I can't see any reason why the report behaves this way. Mark Hall IS Analyst ERP Team 260-373-8796 mark.hall@parkview.com >>> Steve.Alexander@sanjoseca.gov 10/06/03 05:25PM >>> Do other reports print OK? How about other employees' advices? -----Original Message----- From: Mark Hall [mailto:Mark.Hall@parkview.com] Sent: Monday, October 06, 2003 3:06 PM To: Steve.Alexander@sanjoseca.gov; sqr-users@sqrug.org Subject: RE: [sqr-users] Help! SQR mysteriously prints extra pages! No strange "stuff" appears on the report. Everythng that prints is what I expect to print it just prints on different pages. Mark Hall IS Analyst ERP Team 260-373-8796 mark.hall@parkview.com >>> Steve.Alexander@sanjoseca.gov 10/06/03 04:43PM >>> Does the "some stuff" look like HP's printer control language or like Postscript? Maybe SQR is writing Postscript and the printer is expecting PCL or vica versa. -----Original Message----- From: Mark Hall [mailto:Mark.Hall@parkview.com] Sent: Monday, October 06, 2003 2:24 PM To: sqr-users@sqrug.org Subject: [sqr-users] Help! SQR mysteriously prints extra pages! I am totally stumped on this one. I have an sqr (DDP003P.SQR, The check advice print, for all of you peoplesoft types out there) that for some strange reason prints mystery pages. I can see no reason why. My checks print fine and the advices use the same layout. When I run the process to a pdf file the pdf looks fine. All the text and graphics are on one page just like they should be. When I look at the raw .lis file I only see one formfeed (at the bottom of the page where it should be). But when I run it to an hp printer it just goes crazy. It prints some stuff on the first page. Then it prints some stuff on the next page. Then it goes to the next page and prints a line. Then it prints a line on the next page. And so on for a few more pages. Then it prints a whole bunch of blank pages. Then it prints the category subtotals on one page. Then finally it prints the grand totals on the last page. It spits out about 45 pages between blanks and pages with stuff on them. I've tried the formfeed=no option but that doesn't work. Like I said I don't see any extra formfeeds. Does anyone have any idea what the problem is? Any help would be greatly appreciated. We are going live in a few weeks and I am at my wits end. I am running the PeopleSoft version of sqr on an AIX 5.1 box and printing to an HP LaserJet 4000T. PeopleTools release 8.4.3. Mark Hall IS Analyst ERP Team 260-373-8796 mark.hall@parkview.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Oct 7 06:48:38 2003 Date: Tue, 07 Oct 2003 07:45:54 -0400 From: "George Jansen" Subject: RE: [sqr-users] Help! SQR mysteriously prints extra pages! Adding my own uninformed speculation: is it possible that you are defining too wide a page? Your blank pages might be (empty) line continuations then. The page-size command Ray Ontko referred to is probably ESC&lXa, where the X selects a paper size. If worst comes to worst you may want to go command by command to see what the file is telling your printer to do--try Emacs in hexl-mode. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Oct 7 09:32:25 2003 From: "Mark Hall" Date: Tue, 07 Oct 2003 09:30:37 -0500 Subject: Re: [sqr-users] Help! SQR mysteriously prints extra pages! When you say printing past the end of the page do you mean vertically or horizontally? Thanks for your help. Mark Hall IS Analyst ERP Team 260-373-8796 mark.hall@parkview.com >>> rayo@ontko.com 10/06/03 05:31PM >>> Mark, The problem is that you are attempting to print past the end of the page, so the HP printer is adding a newline after each print attempt. I don't recall the exact escape sequence that you need to send the printer, but it's the one that defines the printable area of the page. Since you're printing past the printable area, the printer thinks you want to start the NEXT text on a fresh page. Ray On Mon, Oct 06, 2003 at 04:23:57PM -0500, Mark Hall wrote: > I am totally stumped on this one. I have an sqr (DDP003P.SQR, The check > advice print, for all of you peoplesoft types out there) that for some > strange reason prints mystery pages. I can see no reason why. My > checks print fine and the advices use the same layout. When I run the > process to a pdf file the pdf looks fine. All the text and graphics are > on one page just like they should be. When I look at the raw .lis file > I only see one formfeed (at the bottom of the page where it should be). > But when I run it to an hp printer it just goes crazy. It prints some > stuff on the first page. Then it prints some stuff on the next page. > Then it goes to the next page and prints a line. Then it prints a line > on the next page. And so on for a few more pages. Then it prints a > whole bunch of blank pages. Then it prints the category subtotals on > one page. Then finally it prints the grand totals on the last page. It > spits out about 45 pages between blanks and pages with stuff on them. > > I've tried the formfeed=no option but that doesn't work. Like I said I > don't see any extra formfeeds. > > Does anyone have any idea what the problem is? Any help would be > greatly appreciated. We are going live in a few weeks and I am at my > wits end. > > I am running the PeopleSoft version of sqr on an AIX 5.1 box and > printing to an HP LaserJet 4000T. PeopleTools release 8.4.3. > > > > Mark Hall > IS Analyst > ERP Team > 260-373-8796 > mark.hall@parkview.com > > _______________________________________________ > 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 Tue Oct 7 09:36:05 2003 Subject: RE: [sqr-users] Help! SQR mysteriously prints extra pages! Date: Tue, 7 Oct 2003 10:34:54 -0400 From: "Beller, Jay" I agree with Ray, the HP "thinks" you're trying to print after the end-of-page. This frequently occurs when your document has embedded binary data (graphics or escape sequences) and is sent to the printer as a Text document. Even though the binary data doesn't "use up" any space on the printed page, the HP thinks you're printing text and counts the number of bytes per line (affects wrap) and lines per page (affects formfeed). So, if you're creating a .lis file that has more than the "number-of-lines-per-page" lines before reaching the character, the printer will eject to a new page (typically a spooler function), regardless of the formfeed=no setting on the printer. What you need is a way to tell the printer (or spooler) that you're printing binary and your document will handle the pagination. In VMS, this would be the PRINT /PASSALL /NOFORMFEED command - not sure what the equivalent would be under AIX. Hopefully, someone out there can supply that. jay -----Original Message----- From: Ray Ontko [mailto:rayo@ontko.com] Sent: Monday, October 06, 2003 6:31 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Help! SQR mysteriously prints extra pages! Mark, The problem is that you are attempting to print past the end of the page, so the HP printer is adding a newline after each print attempt. I don't recall the exact escape sequence that you need to send the printer, but it's the one that defines the printable area of the page. Since you're printing past the printable area, the printer thinks you want to start the NEXT text on a fresh page. Ray On Mon, Oct 06, 2003 at 04:23:57PM -0500, Mark Hall wrote: > I am totally stumped on this one. I have an sqr (DDP003P.SQR, The check > advice print, for all of you peoplesoft types out there) that for some > strange reason prints mystery pages. I can see no reason why. My > checks print fine and the advices use the same layout. When I run the > process to a pdf file the pdf looks fine. All the text and graphics are > on one page just like they should be. When I look at the raw .lis file > I only see one formfeed (at the bottom of the page where it should be). > But when I run it to an hp printer it just goes crazy. It prints some > stuff on the first page. Then it prints some stuff on the next page. > Then it goes to the next page and prints a line. Then it prints a line > on the next page. And so on for a few more pages. Then it prints a > whole bunch of blank pages. Then it prints the category subtotals on > one page. Then finally it prints the grand totals on the last page. It > spits out about 45 pages between blanks and pages with stuff on them. > > I've tried the formfeed=no option but that doesn't work. Like I said I > don't see any extra formfeeds. > > Does anyone have any idea what the problem is? Any help would be > greatly appreciated. We are going live in a few weeks and I am at my > wits end. > > I am running the PeopleSoft version of sqr on an AIX 5.1 box and > printing to an HP LaserJet 4000T. PeopleTools release 8.4.3. > > > > Mark Hall > IS Analyst > ERP Team > 260-373-8796 > mark.hall@parkview.com > > _______________________________________________ > 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 Tue Oct 7 15:29:08 2003 From: "Sahani, Dev" Date: Tue, 7 Oct 2003 16:25:50 -0400 Subject: [sqr-users] CSV_ONLY not producing any output. Hey Everyone, I have a couple of SQR Jobs that need to produce output files in HTML, PDF and CSV formats. The problem is that, for some bizarre reason, I am not getting a csv output. I have tried using the EH CSV, EH CSV_ONLY command line flags. I also tried putting this job on Brio Portal, checked on the CSV box in the format section and ran the job from there, but I got only an spf output. Has anyone encountered something like this before? Thanks in advance, Dèv Rishi Sahani ____________________ FESCo DB Systems Fidelity Investments _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Oct 8 10:09:45 2003 From: "Mark Hall" Date: Wed, 08 Oct 2003 10:07:13 -0500 Subject: [sqr-users] Re: Help! ddp003.sqr mysteriously prints extra pages! By all means please let me know how you solved this problem. I am not having any luck myself. The only thing I've heard that makes sense is that in order to print the graphics, boxes in my case, binary data is being sent to the printer and that this binary data is being factored into the line count by the printer and causing it to eject extra pages. I was told, as I understand it, that I need to inform the printer, or the spooler, that I am sending binary data and to add code to the sqr to handle the pagination. I can handle the pagination part but as far as telling the printer, or the spooler, not to worry about the binary data I haven't a clue. Mark Hall IS Analyst ERP Team 260-373-8796 mark.hall@parkview.com >>> Gaurav Mohan 10/07/03 09:31PM >>> Mark, I understand your pain. I have gone thru this years back. You need to control the temperature & humidity to fix it .. Unbelievable but it will work .. Need more info send me an e-mail Gaurav >>>>> I am totally stumped on this one. DDP003P.SQR, The check advice print, for some strange reason prints mystery pages. I can see no reason why. My checks print fine and the advices use the same layout. When I run the process to a pdf file the pdf looks fine. All the text and graphics are on one page just like they should be. When I look at the raw .lis file I only see one formfeed (at the bottom of the page where it should be). But when I run it to an hp printer it just goes crazy. It prints some stuff on the first page. Then it prints some stuff on the next page. Then it goes to the next page and prints a line. Then it prints a line on the next page. And so on for a few more pages. Then it prints a whole bunch of blank pages. Then it prints the category subtotals on one page. Then finally it prints the grand totals on the last page. It spits out about 45 pages between blanks and pages with stuff on them. I've tried the formfeed=no option but that doesn't work. Like I said I don't see any extra formfeeds. Does anyone have any idea what the problem is? Any help would be greatly appreciated. We are going live in a few weeks and I am at my wit send. I am running the PeopleSoft version of sqr on an AIX 5.1 box and printing to an HP LaserJet 4000T. PeopleTools release 8.4.3. Mark Hall IS Analyst ERP Team 260-373-8796 mark.hall@parkview.com __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.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 Oct 8 11:12:13 2003 Subject: RE: [sqr-users] Re: Help! ddp003.sqr mysteriously prints extra pages! Date: Wed, 8 Oct 2003 11:09:06 -0500 From: "Bob Helm" Perhaps you could solve it by tweaking your page size parameters, such as your Heading size, Footing size, max-columns, max-lines, (or maybe you box sizes are too deep/wide relative to those settings). Better yet, try DEcreasing your bottom and top margins and see if that gets any more data on there. Sounds like you've defined your report bigger than the page can handle. Sum up the total size of your heading, footing, and body, and see if it's more than the page, which is my guess. -----Original Message----- From: Mark Hall [mailto:Mark.Hall@parkview.com] Sent: Wednesday, October 08, 2003 10:07 AM To: <; gaurav_mohan@yahoo.com Subject: [sqr-users] Re: Help! ddp003.sqr mysteriously prints extra pages! By all means please let me know how you solved this problem. I am not having any luck myself. The only thing I've heard that makes sense is that in order to print the graphics, boxes in my case, binary data is being sent to the printer and that this binary data is being factored into the line count by the printer and causing it to eject extra pages. I was told, as I understand it, that I need to inform the printer, or the spooler, that I am sending binary data and to add code to the sqr to handle the pagination. I can handle the pagination part but as far as telling the printer, or the spooler, not to worry about the binary data I haven't a clue. Mark Hall IS Analyst ERP Team 260-373-8796 mark.hall@parkview.com >>> Gaurav Mohan 10/07/03 09:31PM >>> Mark, I understand your pain. I have gone thru this years back. You need to control the temperature & humidity to fix it .. Unbelievable but it will work .. Need more info send me an e-mail Gaurav >>>>> I am totally stumped on this one. DDP003P.SQR, The check advice print, for some strange reason prints mystery pages. I can see no reason why. My checks print fine and the advices use the same layout. When I run the process to a pdf file the pdf looks fine. All the text and graphics are on one page just like they should be. When I look at the raw .lis file I only see one formfeed (at the bottom of the page where it should be). But when I run it to an hp printer it just goes crazy. It prints some stuff on the first page. Then it prints some stuff on the next page. Then it goes to the next page and prints a line. Then it prints a line on the next page. And so on for a few more pages. Then it prints a whole bunch of blank pages. Then it prints the category subtotals on one page. Then finally it prints the grand totals on the last page. It spits out about 45 pages between blanks and pages with stuff on them. I've tried the formfeed=no option but that doesn't work. Like I said I don't see any extra formfeeds. Does anyone have any idea what the problem is? Any help would be greatly appreciated. We are going live in a few weeks and I am at my wit send. I am running the PeopleSoft version of sqr on an AIX 5.1 box and printing to an HP LaserJet 4000T. PeopleTools release 8.4.3. Mark Hall IS Analyst ERP Team 260-373-8796 mark.hall@parkview.com __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.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 Oct 8 14:22:06 2003 From: "Mark Hall" Date: Wed, 08 Oct 2003 14:11:41 -0500 Subject: RE: [sqr-users] Re: Help! ddp003.sqr mysteriously prints extra pages! This is the exact setup. I am sending the report to a unix print que. (We are running AIX 5.1.) The que is defined as follows in qconfig. pay_checks: device = hp@pay_checks hp@pay_checks: file = /var/spool/lpd/pio/@local/dev/hp@pay_checks#hpJetDirect#9100 header = never trailer = never access = both backend = /usr/lib/lpd/pio/etc/piojetd pay_checks 9100 I am theorizing that if I could pass the passthru option to the pioformat command utilized by the que backend this might turn off the line feed and allow me to control the pagination myself. Does this make any sense to anyone? If it does how do I do it? Mark Hall IS Analyst ERP Team 260-373-8796 mark.hall@parkview.com >>> Sschuster@horizonnr.com 10/08/03 11:21AM >>> Are you printing through a UNIX spool to a mapped NT printer? Exactly what is the setup? Steve -----Original Message----- From: Mark Hall [mailto:Mark.Hall@parkview.com] Sent: Wednesday, October 08, 2003 11:07 AM To: <; gaurav_mohan@yahoo.com Subject: [sqr-users] Re: Help! ddp003.sqr mysteriously prints extra pages! By all means please let me know how you solved this problem. I am not having any luck myself. The only thing I've heard that makes sense is that in order to print the graphics, boxes in my case, binary data is being sent to the printer and that this binary data is being factored into the line count by the printer and causing it to eject extra pages. I was told, as I understand it, that I need to inform the printer, or the spooler, that I am sending binary data and to add code to the sqr to handle the pagination. I can handle the pagination part but as far as telling the printer, or the spooler, not to worry about the binary data I haven't a clue. Mark Hall IS Analyst ERP Team 260-373-8796 mark.hall@parkview.com >>> Gaurav Mohan 10/07/03 09:31PM >>> Mark, I understand your pain. I have gone thru this years back. You need to control the temperature & humidity to fix it .. Unbelievable but it will work .. Need more info send me an e-mail Gaurav >>>>> I am totally stumped on this one. DDP003P.SQR, The check advice print, for some strange reason prints mystery pages. I can see no reason why. My checks print fine and the advices use the same layout. When I run the process to a pdf file the pdf looks fine. All the text and graphics are on one page just like they should be. When I look at the raw .lis file I only see one formfeed (at the bottom of the page where it should be). But when I run it to an hp printer it just goes crazy. It prints some stuff on the first page. Then it prints some stuff on the next page. Then it goes to the next page and prints a line. Then it prints a line on the next page. And so on for a few more pages. Then it prints a whole bunch of blank pages. Then it prints the category subtotals on one page. Then finally it prints the grand totals on the last page. It spits out about 45 pages between blanks and pages with stuff on them. I've tried the formfeed=no option but that doesn't work. Like I said I don't see any extra formfeeds. Does anyone have any idea what the problem is? Any help would be greatly appreciated. We are going live in a few weeks and I am at my wit send. I am running the PeopleSoft version of sqr on an AIX 5.1 box and printing to an HP LaserJet 4000T. PeopleTools release 8.4.3. Mark Hall IS Analyst ERP Team 260-373-8796 mark.hall@parkview.com __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Oct 8 11:21:06 2003 From: "Schuster, Steven" Subject: RE: [sqr-users] Re: Help! ddp003.sqr mysteriously prints extra p ages! Date: Wed, 8 Oct 2003 12:21:45 -0400 Are you printing through a UNIX spool to a mapped NT printer? Exactly what is the setup? Steve -----Original Message----- From: Mark Hall [mailto:Mark.Hall@parkview.com] Sent: Wednesday, October 08, 2003 11:07 AM To: <; gaurav_mohan@yahoo.com Subject: [sqr-users] Re: Help! ddp003.sqr mysteriously prints extra pages! By all means please let me know how you solved this problem. I am not having any luck myself. The only thing I've heard that makes sense is that in order to print the graphics, boxes in my case, binary data is being sent to the printer and that this binary data is being factored into the line count by the printer and causing it to eject extra pages. I was told, as I understand it, that I need to inform the printer, or the spooler, that I am sending binary data and to add code to the sqr to handle the pagination. I can handle the pagination part but as far as telling the printer, or the spooler, not to worry about the binary data I haven't a clue. Mark Hall IS Analyst ERP Team 260-373-8796 mark.hall@parkview.com >>> Gaurav Mohan 10/07/03 09:31PM >>> Mark, I understand your pain. I have gone thru this years back. You need to control the temperature & humidity to fix it .. Unbelievable but it will work .. Need more info send me an e-mail Gaurav >>>>> I am totally stumped on this one. DDP003P.SQR, The check advice print, for some strange reason prints mystery pages. I can see no reason why. My checks print fine and the advices use the same layout. When I run the process to a pdf file the pdf looks fine. All the text and graphics are on one page just like they should be. When I look at the raw .lis file I only see one formfeed (at the bottom of the page where it should be). But when I run it to an hp printer it just goes crazy. It prints some stuff on the first page. Then it prints some stuff on the next page. Then it goes to the next page and prints a line. Then it prints a line on the next page. And so on for a few more pages. Then it prints a whole bunch of blank pages. Then it prints the category subtotals on one page. Then finally it prints the grand totals on the last page. It spits out about 45 pages between blanks and pages with stuff on them. I've tried the formfeed=no option but that doesn't work. Like I said I don't see any extra formfeeds. Does anyone have any idea what the problem is? Any help would be greatly appreciated. We are going live in a few weeks and I am at my wit send. I am running the PeopleSoft version of sqr on an AIX 5.1 box and printing to an HP LaserJet 4000T. PeopleTools release 8.4.3. Mark Hall IS Analyst ERP Team 260-373-8796 mark.hall@parkview.com __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.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 Oct 8 17:04:22 2003 Date: Wed, 8 Oct 2003 17:03:39 -0500 From: "Turner, Ivan" Subject: [sqr-users] email a file from sqr Isn't there an easier way to email a file to users that have entered their e-mail address on a panel? The example below creates a ksh script for a unix box. I would think I could give a one liner in a sqr "call system". Begin-Procedure 810-email-csv-file let $rptdir = getenv('ARMSRPT') string $rptdir '/' 'email_list.ksh' by '' into $emailscript open $emailscript as 3 for-writing record = 500 status = #scriptst if #scriptst != 0 let $prcs_run_status='E' let $prcs_message_parm1 = 'FTP File open error' do update-prcs-run-status rollback stop end-if Let $csvfile = 'CSV_FILE='||$file_name let $mail_sub = 'Cash Tracking Report ' || $file_name Let $mail_list = 'EMAIL_LIST='||$email_list show $emailscript show $csvfile show $mail_sub show $mail_list write 3 from $csvfile write 3 from $mail_list Let $email_string1='uuencode ' || $file_name || ' ' || $file_name Let $email_string2='mailx -m -s "' || $mail_sub || '" $EMAIL_LIST ' string $email_string1 $email_string2 by '|' into $email_string show $email_string write 3 from $email_string close 3 string 'chmod +x ' $emailscript by '' into $chmode_command call system using $chmode_command #unix_status call system using $emailscript #emailrc Let #emailrc = 0 if #emailrc != 0 let $prcs_run_status='E' let $prcs_message_parm1 = 'ftp error' do update-prcs-run-status rollback end-if end-procedure -----Original Message----- From: Poonam Auluck [mailto:poonam.auluck@ams.com] Sent: Wednesday, September 10, 2003 10:55 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Alphabetize Question Hey All, I didn't word my question correctly last night....I wasn't trying to order a recordset resulting from sql... I just had two input variables, that I needed to alphabetize because I was building a between clause. I've figured it out as such: let $doc1 = 'BB' let $doc2 = 'AA' if $doc1 > $doc2 let $from_doc = $doc2 let $to_doc = $doc1 else let $from_doc = $doc1 let $to_doc = $doc2 end-if Which is exactly what I needed... Thanks for your help, Poonam Scotty Barnes .edu> cc: Sent by: Subject: RE: [sqr-users] Alphabetize Question sqr-users-admin@s qrug.org 09/10/2003 09:29 AM Please respond to sqr-users Don't listen to this suggestion. If you use order by col1 , col2 it will put all of col1 in ascending order if any of col1 are duplicate values it will put col2 in ascending order after it ordered col1. e.g. (1,3),(1,2),(2,2),(2,1) would be selected as col 1 col2 1 2 1 3 2 1 2 2 Thus col1 is not always less than col2 which it seemed you were asking for. There earlier suggestion of $col1 < $col2 is the best if you want to check to variables of which is first. or you can use select col1 from table union select col2 from table order by 1 end-select This would sort the list above like this: 1 1 1 2 2 2 2 3 or There is a chapter on the quick sort in the SQR reference guide if you need to sort many items in a list that can not be selected in the example I showed you above. Hope this helps scotty At 09:08 AM 9/10/2003, Thornton, Robert wrote: >One option would be to put order by in the select clause. > >Example: > >BEGIN-SELECT >value1 &value1 >value2 &value2 >from table >where blah blah >Order by value1, value2 > >END-SELECT > >-----Original Message----- >From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org] On >Behalf Of Poonam Auluck >Sent: Tuesday, September 09, 2003 8:46 PM >To: sqr-users@sqrug.org >Subject: [sqr-users] Alphabetize Question > > >Hi, > >I was wondering if anyone knows if there is a sqr function that will >alphabetize two variables. > >Or if I can put the variables into an array and then alphabetize them. > >Any ideas?? > >Any help is appreciated!! > >Thanks, >Poonam > > > > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users ---------- Scott A Barnes Programmer/Analyst Wesleyan University North College 860-685-2807 ---------- Lottery: A tax on people who are bad at math! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Oct 9 08:32:24 2003 Subject: RE: [sqr-users] email a file from sqr Date: Thu, 9 Oct 2003 08:29:21 -0500 From: "Knapp, Richard" I've used call system to e-mail a file from within the sqr environment. Two things: The file has to be closed (can't create with print, need to use write and an explicit close), the mailer on the source machine has to be accessible from the command line. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Turner, Ivan [mailto:Ivan.Turner@qwest.com] Sent: Wednesday, October 08, 2003 5:04 PM To: sqr-users@sqrug.org Subject: [sqr-users] email a file from sqr Isn't there an easier way to email a file to users that have entered their e-mail address on a panel? The example below creates a ksh script for a unix box. I would think I could give a one liner in a sqr "call system". Begin-Procedure 810-email-csv-file let $rptdir = getenv('ARMSRPT') string $rptdir '/' 'email_list.ksh' by '' into $emailscript open $emailscript as 3 for-writing record = 500 status = #scriptst if #scriptst != 0 let $prcs_run_status='E' let $prcs_message_parm1 = 'FTP File open error' do update-prcs-run-status rollback stop end-if Let $csvfile = 'CSV_FILE='||$file_name let $mail_sub = 'Cash Tracking Report ' || $file_name Let $mail_list = 'EMAIL_LIST='||$email_list show $emailscript show $csvfile show $mail_sub show $mail_list write 3 from $csvfile write 3 from $mail_list Let $email_string1='uuencode ' || $file_name || ' ' || $file_name Let $email_string2='mailx -m -s "' || $mail_sub || '" $EMAIL_LIST ' string $email_string1 $email_string2 by '|' into $email_string show $email_string write 3 from $email_string close 3 string 'chmod +x ' $emailscript by '' into $chmode_command call system using $chmode_command #unix_status call system using $emailscript #emailrc Let #emailrc = 0 if #emailrc != 0 let $prcs_run_status='E' let $prcs_message_parm1 = 'ftp error' do update-prcs-run-status rollback end-if end-procedure -----Original Message----- From: Poonam Auluck [mailto:poonam.auluck@ams.com] Sent: Wednesday, September 10, 2003 10:55 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Alphabetize Question Hey All, I didn't word my question correctly last night....I wasn't trying to order a recordset resulting from sql... I just had two input variables, that I needed to alphabetize because I was building a between clause. I've figured it out as such: let $doc1 = 'BB' let $doc2 = 'AA' if $doc1 > $doc2 let $from_doc = $doc2 let $to_doc = $doc1 else let $from_doc = $doc1 let $to_doc = $doc2 end-if Which is exactly what I needed... Thanks for your help, Poonam Scotty Barnes .edu> cc: Sent by: Subject: RE: [sqr-users] Alphabetize Question sqr-users-admin@s qrug.org 09/10/2003 09:29 AM Please respond to sqr-users Don't listen to this suggestion. If you use order by col1 , col2 it will put all of col1 in ascending order if any of col1 are duplicate values it will put col2 in ascending order after it ordered col1. e.g. (1,3),(1,2),(2,2),(2,1) would be selected as col 1 col2 1 2 1 3 2 1 2 2 Thus col1 is not always less than col2 which it seemed you were asking for. There earlier suggestion of $col1 < $col2 is the best if you want to check to variables of which is first. or you can use select col1 from table union select col2 from table order by 1 end-select This would sort the list above like this: 1 1 1 2 2 2 2 3 or There is a chapter on the quick sort in the SQR reference guide if you need to sort many items in a list that can not be selected in the example I showed you above. Hope this helps scotty At 09:08 AM 9/10/2003, Thornton, Robert wrote: >One option would be to put order by in the select clause. > >Example: > >BEGIN-SELECT >value1 &value1 >value2 &value2 >from table >where blah blah >Order by value1, value2 > >END-SELECT > >-----Original Message----- >From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org] On >Behalf Of Poonam Auluck >Sent: Tuesday, September 09, 2003 8:46 PM >To: sqr-users@sqrug.org >Subject: [sqr-users] Alphabetize Question > > >Hi, > >I was wondering if anyone knows if there is a sqr function that will >alphabetize two variables. > >Or if I can put the variables into an array and then alphabetize them. > >Any ideas?? > >Any help is appreciated!! > >Thanks, >Poonam > > > > > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >http://www.sqrug.org/mailman/listinfo/sqr-users ---------- Scott A Barnes Programmer/Analyst Wesleyan University North College 860-685-2807 ---------- Lottery: A tax on people who are bad at math! _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.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 Oct 9 09:04:47 2003 From: Ray Ontko Date: Thu, 9 Oct 2003 09:03:29 -0500 Subject: Re: [sqr-users] email a file from sqr Richard, Ivan, You can get around the "file has to be closed" problem by using the new-report command (e.g., "new-report ''"). This causes SQR to end the output file (to start a new one) and the various output files are produced. Ray On Thu, Oct 09, 2003 at 08:29:21AM -0500, Knapp, Richard wrote: > > I've used call system to e-mail a file from within the sqr environment. Two things: The file has to be closed (can't create with print, need to use write and an explicit close), the mailer on the source machine has to be accessible from the command line. > > Richard Knapp > Database Programmer/Analyst > Institutional Research and Planning > University of Missouri System > 573-882-8856 > knappr@umsystem.edu > > > -----Original Message----- > From: Turner, Ivan [mailto:Ivan.Turner@qwest.com] > Sent: Wednesday, October 08, 2003 5:04 PM > To: sqr-users@sqrug.org > Subject: [sqr-users] email a file from sqr > > > Isn't there an easier way to email a file to users that have entered their e-mail address on a panel? The example below creates a ksh script for a unix box. I would think I could give a one liner in a sqr "call system". > > Begin-Procedure 810-email-csv-file > let $rptdir = getenv('ARMSRPT') > string > $rptdir > '/' > 'email_list.ksh' > by '' into $emailscript > > open $emailscript as 3 for-writing record = 500 status = #scriptst > > if #scriptst != 0 > let $prcs_run_status='E' > let $prcs_message_parm1 = 'FTP File open error' > do update-prcs-run-status > rollback > stop > end-if > > Let $csvfile = 'CSV_FILE='||$file_name > let $mail_sub = 'Cash Tracking Report ' || $file_name > Let $mail_list = 'EMAIL_LIST='||$email_list > show $emailscript > show $csvfile > show $mail_sub > show $mail_list > write 3 from $csvfile > write 3 from $mail_list > Let $email_string1='uuencode ' || $file_name || ' ' || $file_name > Let $email_string2='mailx -m -s "' || $mail_sub || '" $EMAIL_LIST ' > string $email_string1 > $email_string2 > by '|' > into $email_string > show $email_string > write 3 from $email_string > close 3 > string 'chmod +x ' $emailscript by '' into $chmode_command > call system using $chmode_command #unix_status > call system using $emailscript #emailrc > > Let #emailrc = 0 > > if #emailrc != 0 > let $prcs_run_status='E' > let $prcs_message_parm1 = 'ftp error' > do update-prcs-run-status > rollback > end-if > end-procedure > > -----Original Message----- > From: Poonam Auluck [mailto:poonam.auluck@ams.com] > Sent: Wednesday, September 10, 2003 10:55 AM > To: sqr-users@sqrug.org > Subject: RE: [sqr-users] Alphabetize Question > > > > Hey All, > > I didn't word my question correctly last night....I wasn't trying to order > a recordset resulting from sql... > > I just had two input variables, that I needed to alphabetize because I was > building a between clause. > > I've figured it out as such: > > > let $doc1 = 'BB' > let $doc2 = 'AA' > if $doc1 > $doc2 > let $from_doc = $doc2 > let $to_doc = $doc1 > else > let $from_doc = $doc1 > let $to_doc = $doc2 > end-if > > Which is exactly what I needed... > > Thanks for your help, > Poonam > > > > > Scotty Barnes > > .edu> cc: > Sent by: Subject: RE: [sqr-users] Alphabetize Question > sqr-users-admin@s > qrug.org > > > 09/10/2003 09:29 > AM > Please respond to > sqr-users > > > > > > > Don't listen to this suggestion. > If you use order by col1 , col2 > > it will put all of col1 in ascending order if any of col1 are duplicate > values it will put col2 in ascending order after it ordered col1. e.g. > > (1,3),(1,2),(2,2),(2,1) > > would be selected as > > col 1 col2 > 1 2 > 1 3 > 2 1 > 2 2 > > Thus col1 is not always less than col2 which it seemed you were asking for. > > There earlier suggestion of $col1 < $col2 is the best if you want to check > to variables of which is first. > > or you can use > select > col1 > from table > union > select col2 > from table > order by 1 > end-select > > This would sort the list above like this: > > 1 > 1 > 1 > 2 > 2 > 2 > 2 > 3 > > > or > > There is a chapter on the quick sort in the SQR reference guide if you need > > to sort many items in a list that can not be selected in the example I > showed you above. > > Hope this helps > > scotty > > > At 09:08 AM 9/10/2003, Thornton, Robert wrote: > >One option would be to put order by in the select clause. > > > >Example: > > > >BEGIN-SELECT > >value1 &value1 > >value2 &value2 > >from table > >where blah blah > >Order by value1, value2 > > > >END-SELECT > > > >-----Original Message----- > >From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org] On > >Behalf Of Poonam Auluck > >Sent: Tuesday, September 09, 2003 8:46 PM > >To: sqr-users@sqrug.org > >Subject: [sqr-users] Alphabetize Question > > > > > >Hi, > > > >I was wondering if anyone knows if there is a sqr function that will > >alphabetize two variables. > > > >Or if I can put the variables into an array and then alphabetize them. > > > >Any ideas?? > > > >Any help is appreciated!! > > > >Thanks, > >Poonam > > > > > > > > > > > >_______________________________________________ > >sqr-users mailing list > >sqr-users@sqrug.org > >http://www.sqrug.org/mailman/listinfo/sqr-users > > > ---------- > > Scott A Barnes > Programmer/Analyst > Wesleyan University > North College > 860-685-2807 > > > ---------- > Lottery: A tax on people who are bad at math! > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > 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 Wed Oct 8 17:33:57 2003 From: "Mark Hall" Date: Wed, 08 Oct 2003 17:32:12 -0500 Subject: RE: [sqr-users] Help! SQR mysteriously prints extra pages! Problem solved After a lot of digging and some good pointers from Jay and Ray this is how I solved the problem. For the benefit of those who may encounter this problem in the future I will attempt to explain the problem and the solution as I understand them. (Which isn't necessarily very well.) SQR was sending a report, actually a check advice form (DDP003.sqr for all of you PeopleSoft types), to a unix print que. When I generated the advice as a PDF file it looked just fine; all of the text and graphics appeared on one page as they should. But when I sent it to an HP printer the text and graphics were being printed across a range of pages. In addition many blank pages were being ejected from the printer. In the raw .lis file I couldn't see any extra formfeeds. Nor could I see anything in the program logic that would have caused this problem. Ray (see below) pointed out what the basic problem was and Jay (also see below) elaborated on it further. If I understand what Jay was saying correctly the problem was that the graphics being printed on the form, boxes and shading in this case, caused a lot of extra bytes of binary data to be included in the data stream that was sent to the printer. The printer was factoring these extra bytes into its line wrap and line feed calculations - even though this extra binary data wasn't actually printed on the report - and the extra line feeds were eventually forcing the unwanted extra page ejects. Jay noted how to solve this problem for VMS. I then began to search for an equivalent solution for AIX. I found a handy AIX tutorial at the following URL http://www.unet.univie.ac.at/aix/aixbman/printrgd/toc.htm. After studying how the Unix print spooler works I determined that if I could pass the passthru argument to unix this should cause the spooler to ignore all of the binary data when it calculated the number of lines printed on the page and thereby prevent the extra lines feeds which were causing the extra pages to eject. After a while I stumbled onto a setting in smit. The navigation is Print Spooling>Change / Show Print Que Characteristics. Select the appropriate print que. Select Default Print Job Attributes. There you will find a setting for the Pre-processing FILTER NAME. Select the pass-through filter option from the list of choices available for that setting (capital I). This solved the problem. Mark Hall IS Analyst ERP Team 260-373-8796 mark.hall@parkview.com >>> jbeller@lbisoftware.com 10/07/03 09:34AM >>> I agree with Ray, the HP "thinks" you're trying to print after the end-of-page. This frequently occurs when your document has embedded binary data (graphics or escape sequences) and is sent to the printer as a Text document. Even though the binary data doesn't "use up" any space on the printed page, the HP thinks you're printing text and counts the number of bytes per line (affects wrap) and lines per page (affects formfeed). So, if you're creating a .lis file that has more than the "number-of-lines-per-page" lines before reaching the character, the printer will eject to a new page (typically a spooler function), regardless of the formfeed=no setting on the printer. What you need is a way to tell the printer (or spooler) that you're printing binary and your document will handle the pagination. In VMS, this would be the PRINT /PASSALL /NOFORMFEED command - not sure what the equivalent would be under AIX. Hopefully, someone out there can supply that. jay -----Original Message----- From: Ray Ontko [mailto:rayo@ontko.com] Sent: Monday, October 06, 2003 6:31 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Help! SQR mysteriously prints extra pages! Mark, The problem is that you are attempting to print past the end of the page, so the HP printer is adding a newline after each print attempt. I don't recall the exact escape sequence that you need to send the printer, but it's the one that defines the printable area of the page. Since you're printing past the printable area, the printer thinks you want to start the NEXT text on a fresh page. Ray On Mon, Oct 06, 2003 at 04:23:57PM -0500, Mark Hall wrote: > I am totally stumped on this one. I have an sqr (DDP003P.SQR, The check > advice print, for all of you peoplesoft types out there) that for some > strange reason prints mystery pages. I can see no reason why. My > checks print fine and the advices use the same layout. When I run the > process to a pdf file the pdf looks fine. All the text and graphics are > on one page just like they should be. When I look at the raw .lis file > I only see one formfeed (at the bottom of the page where it should be). > But when I run it to an hp printer it just goes crazy. It prints some > stuff on the first page. Then it prints some stuff on the next page. > Then it goes to the next page and prints a line. Then it prints a line > on the next page. And so on for a few more pages. Then it prints a > whole bunch of blank pages. Then it prints the category subtotals on > one page. Then finally it prints the grand totals on the last page. It > spits out about 45 pages between blanks and pages with stuff on them. > > I've tried the formfeed=no option but that doesn't work. Like I said I > don't see any extra formfeeds. > > Does anyone have any idea what the problem is? Any help would be > greatly appreciated. We are going live in a few weeks and I am at my > wits end. > > I am running the PeopleSoft version of sqr on an AIX 5.1 box and > printing to an HP LaserJet 4000T. PeopleTools release 8.4.3. > > > > Mark Hall > IS Analyst > ERP Team > 260-373-8796 > mark.hall@parkview.com > > _______________________________________________ > 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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Oct 8 18:44:25 2003 From: Ray Ontko Date: Wed, 8 Oct 2003 18:43:40 -0500 Subject: Re: [sqr-users] Help! SQR mysteriously prints extra pages! Problem solved Congratulations, Mark! Thanks for sharing the solution back to the group. [I always love it when none of us know the complete solution but we put our heads together and we find the solution.] Ray On Wed, Oct 08, 2003 at 05:32:12PM -0500, Mark Hall wrote: > After a lot of digging and some good pointers from Jay and Ray this is > how I solved the problem. > > For the benefit of those who may encounter this problem in the future I > will attempt to explain the problem and the solution as I understand > them. (Which isn't necessarily very well.) SQR was sending a report, > actually a check advice form (DDP003.sqr for all of you PeopleSoft > types), to a unix print que. When I generated the advice as a PDF file > it looked just fine; all of the text and graphics appeared on one page > as they should. But when I sent it to an HP printer the text and > graphics were being printed across a range of pages. In addition many > blank pages were being ejected from the printer. In the raw .lis file I > couldn't see any extra formfeeds. Nor could I see anything in the > program logic that would have caused this problem. Ray (see below) > pointed out what the basic problem was and Jay (also see below) > elaborated on it further. If I understand what Jay was saying correctly > the problem was that the graphics being printed on the form, boxes and > shading in this case, caused a lot of extra bytes of binary data to be > included in the data stream that was sent to the printer. The printer > was factoring these extra bytes into its line wrap and line feed > calculations - even though this extra binary data wasn't actually > printed on the report - and the extra line feeds were eventually forcing > the unwanted extra page ejects. Jay noted how to solve this problem > for VMS. I then began to search for an equivalent solution for AIX. I > found a handy AIX tutorial at the following URL > http://www.unet.univie.ac.at/aix/aixbman/printrgd/toc.htm. > After studying how the Unix print spooler works I determined that if I > could pass the passthru argument to unix this should cause the spooler > to ignore all of the binary data when it calculated the number of lines > printed on the page and thereby prevent the extra lines feeds which were > causing the extra pages to eject. After a while I stumbled onto a > setting in smit. The navigation is Print Spooling>Change / Show Print > Que Characteristics. Select the appropriate print que. Select Default > Print Job Attributes. There you will find a setting for the > Pre-processing FILTER NAME. Select the pass-through filter option from > the list of choices available for that setting (capital I). > > This solved the problem. > > > Mark Hall > IS Analyst > ERP Team > 260-373-8796 > mark.hall@parkview.com > > > >>> jbeller@lbisoftware.com 10/07/03 09:34AM >>> > I agree with Ray, the HP "thinks" you're trying to print after the > end-of-page. > > This frequently occurs when your document has embedded binary data > (graphics or escape sequences) and is sent to the printer as a Text > document. Even though the binary data doesn't "use up" any space on the > printed page, the HP thinks you're printing text and counts the number > of bytes per line (affects wrap) and lines per page (affects formfeed). > > So, if you're creating a .lis file that has more than the > "number-of-lines-per-page" lines before reaching the character, the > printer will eject to a new page (typically a spooler function), > regardless of the formfeed=no setting on the printer. > > What you need is a way to tell the printer (or spooler) that you're > printing binary and your document will handle the pagination. > > In VMS, this would be the PRINT /PASSALL /NOFORMFEED command - not sure > what the equivalent would be under AIX. Hopefully, someone out there can > supply that. > > jay > > -----Original Message----- > From: Ray Ontko [mailto:rayo@ontko.com] > Sent: Monday, October 06, 2003 6:31 PM > To: sqr-users@sqrug.org > Subject: Re: [sqr-users] Help! SQR mysteriously prints extra pages! > > > Mark, > > The problem is that you are attempting to print past the > end of the page, so the HP printer is adding a newline after > each print attempt. > > I don't recall the exact escape sequence that you need to > send the printer, but it's the one that defines the printable > area of the page. Since you're printing past the printable > area, the printer thinks you want to start the NEXT text on > a fresh page. > > Ray > > On Mon, Oct 06, 2003 at 04:23:57PM -0500, Mark Hall wrote: > > I am totally stumped on this one. I have an sqr (DDP003P.SQR, The > check > > advice print, for all of you peoplesoft types out there) that for > some > > strange reason prints mystery pages. I can see no reason why. My > > checks print fine and the advices use the same layout. When I run > the > > process to a pdf file the pdf looks fine. All the text and graphics > are > > on one page just like they should be. When I look at the raw .lis > file > > I only see one formfeed (at the bottom of the page where it should > be). > > But when I run it to an hp printer it just goes crazy. It prints > some > > stuff on the first page. Then it prints some stuff on the next page. > > > Then it goes to the next page and prints a line. Then it prints a > line > > on the next page. And so on for a few more pages. Then it prints a > > whole bunch of blank pages. Then it prints the category subtotals > on > > one page. Then finally it prints the grand totals on the last page. > It > > spits out about 45 pages between blanks and pages with stuff on them. > > > > > I've tried the formfeed=no option but that doesn't work. Like I said > I > > don't see any extra formfeeds. > > > > Does anyone have any idea what the problem is? Any help would be > > greatly appreciated. We are going live in a few weeks and I am at > my > > wits end. > > > > I am running the PeopleSoft version of sqr on an AIX 5.1 box and > > printing to an HP LaserJet 4000T. PeopleTools release 8.4.3. > > > > > > > > Mark Hall > > IS Analyst > > ERP Team > > 260-373-8796 > > mark.hall@parkview.com > > > > _______________________________________________ > > 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 > > > _______________________________________________ > 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 Thu Oct 9 08:35:46 2003 From: "ruscs ___" Subject: [sqr-users] Re: PeopleSoft manuals Date: Thu, 09 Oct 2003 13:30:55 +0000 I am interested in buying the most recent technical PeopleSoft course manuals (originals or copies). If interested, please send an email to perekat@yahoo.com Thank you. _________________________________________________________________ Instant message with integrated webcam using MSN Messenger 6.0. Try it now FREE! http://msnmessenger-download.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Oct 9 09:22:47 2003 Subject: RE: [sqr-users] Re: PeopleSoft manuals Date: Thu, 9 Oct 2003 09:21:32 -0500 From: "Knapp, Richard" PS training materials are copywrited. Contact PS. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: ruscs ___ [mailto:ruscols@hotmail.com] Sent: Thursday, October 09, 2003 8:31 AM To: sqr-users@sqrug.org Subject: [sqr-users] Re: PeopleSoft manuals I am interested in buying the most recent technical PeopleSoft course manuals (originals or copies). If interested, please send an email to perekat@yahoo.com Thank you. _________________________________________________________________ Instant message with integrated webcam using MSN Messenger 6.0. Try it now FREE! http://msnmessenger-download.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 Oct 9 09:23:50 2003 From: "Katchur, Ken DCRE" Subject: Re: [sqr-users] Re: PeopleSoft manuals Date: Thu, 9 Oct 2003 08:23:09 -0600 I would be interested in buying some as well. Thanks Ken From: ruscs ___ on 10/09/2003 07:30 AM Please respond to sqr-users@sqrug.org@SMTP@Exchange To: sqr-users@sqrug.org@SMTP@Exchange cc: Subject: [sqr-users] Re: PeopleSoft manuals I am interested in buying the most recent technical PeopleSoft course manuals (originals or copies). If interested, please send an email to perekat@yahoo.com Thank you. _________________________________________________________________ Instant message with integrated webcam using MSN Messenger 6.0. Try it now FREE! http://msnmessenger-download.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 Oct 9 09:36:56 2003 From: "Katchur, Ken DCRE" Subject: Re: [sqr-users] Re: PeopleSoft manuals Date: Thu, 9 Oct 2003 08:37:08 -0600 Thanks Richard for the information. PS training materials are copywrited. Contact PS. Your right I should contact Peoplesoft for this and other material. I am at a site working on old versions of Peoplesoft (Version 5.12 and 6.12)and SQR (version 3). Would Peoplesoft sell the most recent technical PeopleSoft manuals not course manuals to a person who is on a contract at a site. I do not want to go through my site because I want to bring myself up to, speed to find a new job with more current versions of SQR and Peoplesoft. Thanks Ken From: Ken Katchur/SKSOCSRV@SKSOCSRV on 10/09/2003 08:23 AM Please respond to sqr-users@sqrug.org@SMTP@Exchange To: sqr-users@sqrug.org@SMTP@Exchange cc: Subject: Re: [sqr-users] Re: PeopleSoft manuals I would be interested in buying some as well. Thanks Ken From: ruscs ___ on 10/09/2003 07:30 AM Please respond to sqr-users@sqrug.org@SMTP@Exchange To: sqr-users@sqrug.org@SMTP@Exchange cc: Subject: [sqr-users] Re: PeopleSoft manuals I am interested in buying the most recent technical PeopleSoft course manuals (originals or copies). If interested, please send an email to perekat@yahoo.com Thank you. _________________________________________________________________ Instant message with integrated webcam using MSN Messenger 6.0. Try it now FREE! http://msnmessenger-download.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 Oct 9 10:05:06 2003 From: "Mark Hall" Date: Thu, 09 Oct 2003 09:57:38 -0500 Subject: Re: [sqr-users] Re: PeopleSoft manuals Download the install guides and read PeopleBooks. The training guides are usually nothing but plagiarized rewrites of those documents. PeopleSoft training guides are notoriously bad. I know, I was a technical instructor for PeopleSoft for two and half years. Mark Hall IS Analyst ERP Team 260-373-8796 mark.hall@parkview.com >>> KKatchur@dcre.gov.sk.ca 10/09/03 09:37AM >>> Thanks Richard for the information. PS training materials are copywrited. Contact PS. Your right I should contact Peoplesoft for this and other material. I am at a site working on old versions of Peoplesoft (Version 5.12 and 6.12)and SQR (version 3). Would Peoplesoft sell the most recent technical PeopleSoft manuals not course manuals to a person who is on a contract at a site. I do not want to go through my site because I want to bring myself up to, speed to find a new job with more current versions of SQR and Peoplesoft. Thanks Ken From: Ken Katchur/SKSOCSRV@SKSOCSRV on 10/09/2003 08:23 AM Please respond to sqr-users@sqrug.org@SMTP@Exchange To: sqr-users@sqrug.org@SMTP@Exchange cc: Subject: Re: [sqr-users] Re: PeopleSoft manuals I would be interested in buying some as well. Thanks Ken From: ruscs ___ on 10/09/2003 07:30 AM Please respond to sqr-users@sqrug.org@SMTP@Exchange To: sqr-users@sqrug.org@SMTP@Exchange cc: Subject: [sqr-users] Re: PeopleSoft manuals I am interested in buying the most recent technical PeopleSoft course manuals (originals or copies). If interested, please send an email to perekat@yahoo.com Thank you. _________________________________________________________________ Instant message with integrated webcam using MSN Messenger 6.0. Try it now FREE! http://msnmessenger-download.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Oct 9 10:07:06 2003 Subject: RE: [sqr-users] Re: PeopleSoft manuals Date: Thu, 9 Oct 2003 10:06:56 -0500 From: "Knapp, Richard" Version 4.3 of SQR is covered in the SQR Server Language Reference and the Users Guide published by Sqribe (now Brio). This version of SQR is used in the PS 7.X world. You may be able to get these from Brio or even on ebay. They are not PS training materials. For version 8 of PS, PS and Brio split and PS developed 8.x of SQR. For those docs I'm pretty sure you will have to go to PS. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Katchur, Ken DCRE [mailto:KKatchur@dcre.gov.sk.ca] Sent: Thursday, October 09, 2003 9:37 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Re: PeopleSoft manuals Thanks Richard for the information. PS training materials are copywrited. Contact PS. Your right I should contact Peoplesoft for this and other material. I am at a site working on old versions of Peoplesoft (Version 5.12 and 6.12)and SQR (version 3). Would Peoplesoft sell the most recent technical PeopleSoft manuals not course manuals to a person who is on a contract at a site. I do not want to go through my site because I want to bring myself up to, speed to find a new job with more current versions of SQR and Peoplesoft. Thanks Ken From: Ken Katchur/SKSOCSRV@SKSOCSRV on 10/09/2003 08:23 AM Please respond to sqr-users@sqrug.org@SMTP@Exchange To: sqr-users@sqrug.org@SMTP@Exchange cc: Subject: Re: [sqr-users] Re: PeopleSoft manuals I would be interested in buying some as well. Thanks Ken From: ruscs ___ on 10/09/2003 07:30 AM Please respond to sqr-users@sqrug.org@SMTP@Exchange To: sqr-users@sqrug.org@SMTP@Exchange cc: Subject: [sqr-users] Re: PeopleSoft manuals I am interested in buying the most recent technical PeopleSoft course manuals (originals or copies). If interested, please send an email to perekat@yahoo.com Thank you. _________________________________________________________________ Instant message with integrated webcam using MSN Messenger 6.0. Try it now FREE! http://msnmessenger-download.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Oct 9 10:18:17 2003 From: Ray Ontko Date: Thu, 9 Oct 2003 10:16:26 -0500 Subject: Re: [sqr-users] Re: PeopleSoft manuals I think that the SQR Version 6.2 manuals published by Brio (soon to be Hyperion) correspond with PeopleSoft V8.0. I would expect the 6.2 sqr books to be useful for all 8.x PS implementations. Ray On Thu, Oct 09, 2003 at 10:06:56AM -0500, Knapp, Richard wrote: > > Version 4.3 of SQR is covered in the SQR Server Language Reference and the Users Guide published by Sqribe (now Brio). This version of SQR is used in the PS 7.X world. You may be able to get these from Brio or even on ebay. They are not PS training materials. For version 8 of PS, PS and Brio split and PS developed 8.x of SQR. For those docs I'm pretty sure you will have to go to PS. > > Richard Knapp > Database Programmer/Analyst > Institutional Research and Planning > University of Missouri System > 573-882-8856 > knappr@umsystem.edu > > > -----Original Message----- > From: Katchur, Ken DCRE [mailto:KKatchur@dcre.gov.sk.ca] > Sent: Thursday, October 09, 2003 9:37 AM > To: sqr-users@sqrug.org > Subject: Re: [sqr-users] Re: PeopleSoft manuals > > > Thanks Richard for the information. > > PS training materials are copywrited. Contact PS. > > Your right I should contact Peoplesoft for this and other material. > I am at a site working on old versions of Peoplesoft (Version 5.12 and > 6.12)and SQR (version 3). Would Peoplesoft sell the most recent technical > PeopleSoft manuals not course manuals to a person who is on a contract at a > site. I do not want to go through my site because I want to bring myself up > to, speed to find a new job with more current versions of SQR and > Peoplesoft. > > Thanks Ken > > > > > From: Ken Katchur/SKSOCSRV@SKSOCSRV on 10/09/2003 08:23 AM > Please respond to sqr-users@sqrug.org@SMTP@Exchange > To: sqr-users@sqrug.org@SMTP@Exchange > cc: > Subject: Re: [sqr-users] Re: PeopleSoft manuals > > I would be interested in buying some as well. > > > Thanks Ken > > > > From: ruscs ___ on 10/09/2003 07:30 > AM > Please respond to sqr-users@sqrug.org@SMTP@Exchange > To: sqr-users@sqrug.org@SMTP@Exchange > cc: > Subject: [sqr-users] Re: PeopleSoft manuals > > I am interested in buying the most recent technical > PeopleSoft > course > manuals (originals or copies). > If interested, please send an email to > perekat@yahoo.com > > Thank you. > > > _________________________________________________________________ > Instant message with integrated webcam using MSN Messenger > 6.0. Try > it now > FREE! http://msnmessenger-download.com > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------------- 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 Thu Oct 9 17:34:36 2003 From: "Stephen Ratliff" Subject: Re: [sqr-users] Re: PeopleSoft manuals Date: Thu, 9 Oct 2003 17:31:53 -0500 You would have to be able to log into the PeopleSoft Customer Connection website, and order them that way. The only way to get in is if you have an account, usually through the client site. This is really not the board for advertise that you are interested in buying PeopleSoft Documentation. There are other lists and sites for that. (i.e. www.peoplesoftpros.com) Not trying to be a pain, but others have been asked not to divert from SQR questions. ----- Original Message ----- From: "Knapp, Richard" To: Sent: Thursday, October 09, 2003 10:06 AM Subject: RE: [sqr-users] Re: PeopleSoft manuals > > Version 4.3 of SQR is covered in the SQR Server Language Reference and the Users Guide published by Sqribe (now Brio). This version of SQR is used in the PS 7.X world. You may be able to get these from Brio or even on ebay. They are not PS training materials. For version 8 of PS, PS and Brio split and PS developed 8.x of SQR. For those docs I'm pretty sure you will have to go to PS. > > Richard Knapp > Database Programmer/Analyst > Institutional Research and Planning > University of Missouri System > 573-882-8856 > knappr@umsystem.edu > > > -----Original Message----- > From: Katchur, Ken DCRE [mailto:KKatchur@dcre.gov.sk.ca] > Sent: Thursday, October 09, 2003 9:37 AM > To: sqr-users@sqrug.org > Subject: Re: [sqr-users] Re: PeopleSoft manuals > > > Thanks Richard for the information. > > PS training materials are copywrited. Contact PS. > > Your right I should contact Peoplesoft for this and other material. > I am at a site working on old versions of Peoplesoft (Version 5.12 and > 6.12)and SQR (version 3). Would Peoplesoft sell the most recent technical > PeopleSoft manuals not course manuals to a person who is on a contract at a > site. I do not want to go through my site because I want to bring myself up > to, speed to find a new job with more current versions of SQR and > Peoplesoft. > > Thanks Ken > > > > > From: Ken Katchur/SKSOCSRV@SKSOCSRV on 10/09/2003 08:23 AM > Please respond to sqr-users@sqrug.org@SMTP@Exchange > To: sqr-users@sqrug.org@SMTP@Exchange > cc: > Subject: Re: [sqr-users] Re: PeopleSoft manuals > > I would be interested in buying some as well. > > > Thanks Ken > > > > From: ruscs ___ on 10/09/2003 07:30 > AM > Please respond to sqr-users@sqrug.org@SMTP@Exchange > To: sqr-users@sqrug.org@SMTP@Exchange > cc: > Subject: [sqr-users] Re: PeopleSoft manuals > > I am interested in buying the most recent technical > PeopleSoft > course > manuals (originals or copies). > If interested, please send an email to > perekat@yahoo.com > > Thank you. > > > _________________________________________________________________ > Instant message with integrated webcam using MSN Messenger > 6.0. Try > it now > FREE! http://msnmessenger-download.com > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Oct 9 12:02:32 2003 From: "Alexander, Steve" Subject: RE: [sqr-users] Re: PeopleSoft manuals Date: Thu, 9 Oct 2003 10:07:17 -0700 Ken, let us know how your job search goes. My experience as a contractor was that clients insisted on actual experience with the latest versions of Peoplesoft. Mere knowledge was irrelevent. If you can come up to speed by reading the books, and get work, I'd love to hear your story. -----Original Message----- From: Ray Ontko [mailto:rayo@ontko.com] Sent: Thursday, October 09, 2003 8:16 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Re: PeopleSoft manuals I think that the SQR Version 6.2 manuals published by Brio (soon to be Hyperion) correspond with PeopleSoft V8.0. I would expect the 6.2 sqr books to be useful for all 8.x PS implementations. Ray On Thu, Oct 09, 2003 at 10:06:56AM -0500, Knapp, Richard wrote: > > Version 4.3 of SQR is covered in the SQR Server Language Reference and the Users Guide published by Sqribe (now Brio). This version of SQR is used in the PS 7.X world. You may be able to get these from Brio or even on ebay. They are not PS training materials. For version 8 of PS, PS and Brio split and PS developed 8.x of SQR. For those docs I'm pretty sure you will have to go to PS. > > Richard Knapp > Database Programmer/Analyst > Institutional Research and Planning > University of Missouri System > 573-882-8856 > knappr@umsystem.edu > > > -----Original Message----- > From: Katchur, Ken DCRE [mailto:KKatchur@dcre.gov.sk.ca] > Sent: Thursday, October 09, 2003 9:37 AM > To: sqr-users@sqrug.org > Subject: Re: [sqr-users] Re: PeopleSoft manuals > > > Thanks Richard for the information. > > PS training materials are copywrited. Contact PS. > > Your right I should contact Peoplesoft for this and other material. > I am at a site working on old versions of Peoplesoft (Version 5.12 and > 6.12)and SQR (version 3). Would Peoplesoft sell the most recent technical > PeopleSoft manuals not course manuals to a person who is on a contract at a > site. I do not want to go through my site because I want to bring myself up > to, speed to find a new job with more current versions of SQR and > Peoplesoft. > > Thanks Ken > > > > > From: Ken Katchur/SKSOCSRV@SKSOCSRV on 10/09/2003 08:23 AM > Please respond to sqr-users@sqrug.org@SMTP@Exchange > To: sqr-users@sqrug.org@SMTP@Exchange > cc: > Subject: Re: [sqr-users] Re: PeopleSoft manuals > > I would be interested in buying some as well. > > > Thanks Ken > > > > From: ruscs ___ on 10/09/2003 07:30 > AM > Please respond to sqr-users@sqrug.org@SMTP@Exchange > To: sqr-users@sqrug.org@SMTP@Exchange > cc: > Subject: [sqr-users] Re: PeopleSoft manuals > > I am interested in buying the most recent technical > PeopleSoft > course > manuals (originals or copies). > If interested, please send an email to > perekat@yahoo.com > > Thank you. > > > _________________________________________________________________ > Instant message with integrated webcam using MSN Messenger > 6.0. Try > it now > FREE! http://msnmessenger-download.com > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users ---------------------------------------------------------------------- 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 Oct 9 09:52:27 2003 From: "Ed Kelly" Date: Thu, 09 Oct 2003 14:50:57 +0000 Subject: [sqr-users] Re: Declare-Chart and Print-chart help I have been able to use chart commands since at least version 7.5 (maybe earlier). While the error message says there is something wrong on line 67 of your program, the actual error probably was on the preceding line. Based on the first error message that you are seeing, the compiler thinks it has completed the chart command and that you are now trying to do an assignment statement. What are the lines of code that lead up to the error? >We are using PS v8.15 tools. I am trying to run a sqr with declare-chart >and print-chart commands. I am getting the following error. Are there any >settings to change in the .ini file? > >Any help appreciated. > > -Ania > Error on line 67: > (SQR 3503) Unknown variable type. > Chart-Size = ( 50,50) >Error on line 68: > (SQR 3701) Invalid command. > Title = 'Employee Sales' >Error on line 69: > (SQR 3701) Invalid command. > Type = 100%-bar >Error on line 70: > (SQR 3701) Invalid command. > 3D-Effects = yes >Error on line 71: > (SQR 3701) Invalid command. > X-Axis-Label = 'Employees' >Error on line 72: > (SQR 3701) Invalid command. > Y-Axis-Label = 'Sales (in thousands)' >Error on line 73: > (SQR 3701) Invalid command. > End-Declare >Error on line 95: > (SQR 3503) Unknown variable type. > Print-Chart emp_sales_chart (#y, #x) >Error on line 96: > (SQR 3701) Invalid command. > Fill = color >Error on line 97: > (SQR 3701) Invalid command. > Sub-Title = '100% Bar-Chart: bar100.sqr' >Error on line 98: > (SQR 3701) Invalid command. > Data-Array-Row-Count = #row >Error on line 99: > (SQR 3701) Invalid command. > Data-Array-Column-Count = #col >Error on line 100: > (SQR 3701) Invalid command. > Data-Array-Column-Labels = ('Jun', 'Jul', 'Aug') >Error on line 101: > (SQR 3701) Invalid command. > Data-Array = emp_sales >Errors were found in the program file. >SQR for PeopleSoft: Program Aborting. _________________________________________________________________ Add MSN 8 Internet Software to your existing Internet access and enjoy patented spam protection and more. Sign up now! http://join.msn.com/?page=dept/byoa _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Oct 10 01:24:18 2003 From: "nssvprasad" Date: Fri, 10 Oct 2003 14:23:36 +0800 Subject: [sqr-users] how to print headers and footers dyanmically with different sizes i have the senario to print headers and footers dynamically.these headers and footer are different sizes. ex:- header1 (heading-size=60) header2 (heading-size=20) footer1 (footing-size=20) footer2 (footing-size=150) header1 should print only in first page header2 should print in all the pages except first page. footer1 should print in all the pages except last page footer2 should print only in last page. i have done this by putting if condition in header and footer. my code is as follows Begin-Setup declare-procedure after-report=Rep_LastPage end-declare End-Setup Begin-Heading {heading_Size} if #page-count=1 do heading1 else do heading2 end-if End-Heading begin-footing 150 for-reports=(report) if #last_page=1 do footer2 else do footer1 end-if End-footing begin-procedure Rep_LastPage let #last_page=1 end-procedure with this i am able to print header and footer as required. but i need to set maximum size for both header and footer. because of this page space is vasting. i need to set header/footer size based on the content of header and footer. how to achieve this Pls help Thanks & Regards Prasad _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Oct 10 09:04:19 2003 Date: Fri, 10 Oct 2003 09:02:05 -0500 (EST) From: Don Mellen Subject: Re: [sqr-users] how to print headers and footers dyanmically with different sizes Sounds like a classic example of needing the ALTER-REPORT command. If you have SQR 6.0 or higher, the syntax is.... ALTER-REPORT [HEADING = t_heading_name] [HEADING-SIZE = n_new_size] [FOOTING = t_footing_name] [FOOTING-SIZE = n_new_size] HTH, Don On Fri, 10 Oct 2003, nssvprasad wrote: > i have the senario to print headers and footers dynamically.these headers > and footer are different sizes. > ex:- > header1 (heading-size=60) > header2 (heading-size=20) > footer1 (footing-size=20) > footer2 (footing-size=150) > > header1 should print only in first page > header2 should print in all the pages except first page. > footer1 should print in all the pages except last page > footer2 should print only in last page. > > i have done this by putting if condition in header and footer. > my code is as follows > > Begin-Setup > declare-procedure > after-report=Rep_LastPage > end-declare > End-Setup > > Begin-Heading {heading_Size} > if #page-count=1 > do heading1 > else > do heading2 > end-if > End-Heading > > > begin-footing 150 for-reports=(report) > if #last_page=1 > do footer2 > else > do footer1 > end-if > End-footing > > begin-procedure Rep_LastPage > let #last_page=1 > end-procedure > > with this i am able to print header and footer as required. > but i need to set maximum size for both header and footer. > because of this page space is vasting. > i need to set header/footer size based on the content of header and footer. > how to achieve this > Pls help > > Thanks & Regards > Prasad > > _______________________________________________ > 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 Oct 10 19:24:30 2003 Date: Fri, 10 Oct 2003 17:22:30 -0700 (PDT) From: D Patel Subject: Re: [sqr-users] how to print headers and footers dyanmically with different sizes You can achieve by using two different headers defined in the same report. You can specify name of the header section like: Begin-Heading Size1 name=HdMain ! Your code goes here End-Heaeding Begin-Heading Size2 name=HdFirstPg ! Your code goes here End-Heaeding You can alter page header by Alter-Report Heading=HdMain OR OTher WAY is Just define one Heading section whatever you have but before you start printing heading on second page use follwoing command: Alter-Report Heading-Size=#newSize Thanks, D Patel --- nssvprasad wrote: > i have the senario to print headers and footers > dynamically.these headers > and footer are different sizes. > ex:- > header1 (heading-size=60) > header2 (heading-size=20) > footer1 (footing-size=20) > footer2 (footing-size=150) > > header1 should print only in first page > header2 should print in all the pages except first > page. > footer1 should print in all the pages except last > page > footer2 should print only in last page. > > i have done this by putting if condition in header > and footer. > my code is as follows > > Begin-Setup > declare-procedure > after-report=Rep_LastPage > end-declare > End-Setup > > Begin-Heading {heading_Size} > if #page-count=1 > do heading1 > else > do heading2 > end-if > End-Heading > > > begin-footing 150 for-reports=(report) > if #last_page=1 > do footer2 > else > do footer1 > end-if > End-footing > > begin-procedure Rep_LastPage > let #last_page=1 > end-procedure > > with this i am able to print header and footer as > required. > but i need to set maximum size for both header and > footer. > because of this page space is vasting. > i need to set header/footer size based on the > content of header and footer. > how to achieve this > Pls help > > Thanks & Regards > Prasad > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.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 Oct 13 02:02:25 2003 Date: Mon, 13 Oct 2003 16:28:26 +1000 From: Steve Cavill Subject: RE: [sqr-users] how to print headers and footers dynamically with different sizes Prasad, if you have SQR 6.0 or later, you can use the new feature of ALTER-REPORT command that allows you to change heading size. If you are using an earlier version of SQR, I suggest you set your heading and footing to 20, then use program logic to start printing on line 61 of page 1. Note you can print past line 20 in a 20 line header - that will simply print down into the body of the report. Steve. -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of nssvprasad Sent: Friday, 10 October 2003 4:24 PM To: sqr-users@sqrug.org Subject: [sqr-users] how to print headers and footers dyanmically with different sizes i have the senario to print headers and footers dynamically.these headers and footer are different sizes. ex:- header1 (heading-size=60) header2 (heading-size=20) footer1 (footing-size=20) footer2 (footing-size=150) header1 should print only in first page header2 should print in all the pages except first page. footer1 should print in all the pages except last page footer2 should print only in last page. i have done this by putting if condition in header and footer. my code is as follows Begin-Setup declare-procedure after-report=Rep_LastPage end-declare End-Setup Begin-Heading {heading_Size} if #page-count=1 do heading1 else do heading2 end-if End-Heading begin-footing 150 for-reports=(report) if #last_page=1 do footer2 else do footer1 end-if End-footing begin-procedure Rep_LastPage let #last_page=1 end-procedure with this i am able to print header and footer as required. but i need to set maximum size for both header and footer. because of this page space is vasting. i need to set header/footer size based on the content of header and footer. how to achieve this Pls help Thanks & Regards Prasad _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.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 Oct 10 11:09:36 2003 Date: Fri, 10 Oct 2003 09:07:41 -0700 (PDT) From: Alden Huen Subject: [sqr-users] (no subject) Does anyone know how to query a derived table in PS? I want to write a SQR report but some of the data is on a derived table. How do I get this data? Thanks _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Oct 10 11:13:05 2003 From: "Overcashier, Patricia" Subject: RE: [sqr-users] (no subject) Date: Fri, 10 Oct 2003 12:12:24 -0400 Isn't a derived table just temporary data stored in memory? I don't think you can query on them. -----Original Message----- From: Alden Huen [mailto:neyoisles@yahoo.com] Sent: Friday, October 10, 2003 12:08 PM To: sqr-users@sqrug.org Subject: [sqr-users] (no subject) Does anyone know how to query a derived table in PS? I want to write a SQR report but some of the data is on a derived table. How do I get this data? Thanks _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ********************************************************************** 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 Fri Oct 10 11:18:05 2003 From: Bruce Kelling Subject: RE: [sqr-users] (no subject) Date: Fri, 10 Oct 2003 12:16:57 -0400 Yes, derived tables are not created in the database, and never store any data. Available for pages, peoplecode, and app engine, but not query or sqr. Bruce -----Original Message----- From: Overcashier, Patricia [mailto:Patricia.Overcashier@aam.com] Sent: Friday, October 10, 2003 12:12 PM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] (no subject) Isn't a derived table just temporary data stored in memory? I don't think you can query on them. -----Original Message----- From: Alden Huen [mailto:neyoisles@yahoo.com] Sent: Friday, October 10, 2003 12:08 PM To: sqr-users@sqrug.org Subject: [sqr-users] (no subject) Does anyone know how to query a derived table in PS? I want to write a SQR report but some of the data is on a derived table. How do I get this data? Thanks _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ********************************************************************** 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 Oct 10 11:51:07 2003 From: "Bummer, Antonio" Subject: RE: [sqr-users] (no subject) Date: Fri, 10 Oct 2003 09:52:32 -0700 Since derived tables store no data, look at your peoplecode associated with that derived record. Look for the SqlExec statement to see what table it is bringing the data in from, then use this table for your query. Hope this helps. Antonio > -----Original Message----- > From: Alden Huen [SMTP:neyoisles@yahoo.com] > Sent: Friday, October 10, 2003 9:08 AM > To: sqr-users@sqrug.org > Subject: [sqr-users] (no subject) > > oes anyone know how to query a derived table in PS? I want to write a SQR > report but some of the data is on a derived table. How do I get this data? > > Thanks > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Oct 10 12:57:05 2003 Date: Fri, 10 Oct 2003 10:54:47 -0700 From: "Aleksandra Gacevic" Subject: RE: [sqr-users] (no subject) Yes, look at the peoplecode. It doesn't have to be SQLExec, it can be regular assignment from the field that's on the page. Aleksandra >>> ABummer@calwater.com 10/10/2003 9:52:32 AM >>> Since derived tables store no data, look at your peoplecode associated with that derived record. Look for the SqlExec statement to see what table it is bringing the data in from, then use this table for your query. Hope this helps. Antonio > -----Original Message----- > From: Alden Huen [SMTP:neyoisles@yahoo.com] > Sent: Friday, October 10, 2003 9:08 AM > To: sqr-users@sqrug.org > Subject: [sqr-users] (no subject) > > oes anyone know how to query a derived table in PS? I want to write a SQR > report but some of the data is on a derived table. How do I get this data? > > Thanks > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Oct 13 09:51:05 2003 From: "Hale, Keith" Date: Mon, 13 Oct 2003 10:45:16 -0400 Subject: [sqr-users] SQR wordfile for Ultraedit Can anyone send me the wordfile for use with SQR, for Ultraedit? I'm trying to get it from the Ultraedit site but I get the ole', "The Page Cannot Be Displayed" error. I'm wanting to get my editor to check and colorize syntax and I understand this word file will let me do that? Thanks, Keith _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Oct 13 10:02:07 2003 Date: Mon, 13 Oct 2003 10:01:18 -0500 (EST) From: Don Mellen Subject: Re: [sqr-users] SQR wordfile for Ultraedit On Mon, 13 Oct 2003, Hale, Keith wrote: > Can anyone send me the wordfile for use with SQR, for Ultraedit? I'm trying > to get it from the Ultraedit site but I get the ole', "The Page Cannot Be > Displayed" error. I'm wanting to get my editor to check and colorize syntax > and I understand this word file will let me do that? Keith, There's one available at.... http://www.ontko.com/sqr/ HTH, ----------------------------------------------------------------------- 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 Thu Oct 16 09:09:58 2003 Date: Thu, 16 Oct 2003 09:04:35 -0500 From: "Bob Helm" Subject: [sqr-users] Where to get "Insqribe User's Guide" book Does anyone know how and where to obtain a book called "Insqribe User's Guide"? It deals only with SQR Active X controls (i.e., not the Developer's Guide, Language Reference, or Report Builder User's Guide). Thanks for any help. B The Programmer formerly known as Bob Mediware Information Systems, Inc. bob.helm@mediware.com 913-307-1045 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Sat Oct 18 11:21:03 2003 From: Ray Ontko Date: Sat, 18 Oct 2003 11:18:32 -0500 Subject: Re: [sqr-users] Where to get "Insqribe User's Guide" book Hi Bob, I've never seen a printed version of the document. It's the kind of thing that I would expect it to be installed in a "doc" directory after you install Insqribe using the installation CD. BTW, I think the product is now called BrioReports Activator or Report Activator, or something like that. In the 5.1 distribution, the file you're looking for was called insqribe.pdf. Ray On Thu, Oct 16, 2003 at 09:04:35AM -0500, Bob Helm wrote: > Does anyone know how and where to obtain a book called "Insqribe User's Guide"? > It deals only with SQR Active X controls (i.e., not the Developer's Guide, Language Reference, or Report Builder User's Guide). > > Thanks for any help. > > > B > The Programmer formerly known as Bob > Mediware Information Systems, Inc. > bob.helm@mediware.com > 913-307-1045 > > > > _______________________________________________ > 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 Thu Oct 16 22:40:54 2003 Date: Fri, 17 Oct 2003 09:08:49 +0530 From: sheetalk Subject: [sqr-users] SQL Error = ORA-01406: fetched column value was truncated Hi All, My working environment : ps 8 sp2, pt 8.15, oracle db I'm getting this error msg when i run one sqr only on production thr process scheduler both on nt and unix.. On all other instances it works fine.. Surprisingly enough it runs fine on production from dos prompt with sqrw command !!! I tried to trace if any particular data value causes this but i don't get this error for particular data row..but it occurs mostly when report data is large... SQL Status = -1, SQL Error = ORA-01406: fetched column value was truncated Error on line 59: (SQR 3301) Program stopped by user request. Which options for sqr or oracle or process scheduler on production should i check? I've already compared pssqr.unx files on all instances and they are same... Please help !!!!! Thanks & Regards, Sheetal. ********************************************************* Disclaimer This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. ********************************************************* Visit us at http://www.mahindrabt.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Oct 17 07:49:43 2003 From: Ray Ontko Date: Fri, 17 Oct 2003 07:48:53 -0500 Subject: Re: [sqr-users] SQL Error = ORA-01406: fetched column value was truncated Sheetal, The only adjustable parameter for SQR that I can think of that might be related to this error message is LONGSPACE=32766 in your -M or SQR.INI file. What's going on in that particular SQL statement? Are any of the columns "LONG" or "LONGRAW"? Ray On Fri, Oct 17, 2003 at 09:08:49AM +0530, sheetalk wrote: > Hi All, > > My working environment : ps 8 sp2, pt 8.15, oracle db > > I'm getting this error msg when i run one sqr only on production thr > process scheduler both on nt and unix.. > On all other instances it works fine.. > Surprisingly enough it runs fine on production from dos prompt with sqrw > command !!! > > I tried to trace if any particular data value causes this but i don't > get this error for particular data row..but it occurs mostly when > report data is large... > > SQL Status = -1, SQL Error = ORA-01406: fetched column value was > truncated > Error on line 59: > (SQR 3301) Program stopped by user request. > > Which options for sqr or oracle or process scheduler on production > should i check? > I've already compared pssqr.unx files on all instances and they are > same... > > Please help !!!!! > > Thanks & Regards, > Sheetal. > > ********************************************************* > Disclaimer > > This message (including any attachments) contains > confidential information intended for a specific > individual and purpose, and is protected by law. > If you are not the intended recipient, you should > delete this message and are hereby notified that > any disclosure, copying, or distribution of this > message, or the taking of any action based on it, > is strictly prohibited. > > ********************************************************* > Visit us at http://www.mahindrabt.com > > _______________________________________________ > 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 Oct 17 09:20:23 2003 From: "Genady Sosnovsky" Subject: Re: [sqr-users] SQL Error = ORA-01406: fetched column value wastruncated Date: Fri, 17 Oct 2003 09:17:06 -0500 Sheetal, This can also happen for a following below case select-begin '1' &some_str_var=char ..... last_column UNION begin first.column_str_value ... last_column end-select Oracle generates the ORA-01406 error when the first column from the first sql of the union is "shorter" then the column from the second sql of the union . It does not happen for all Oracle environments though. Genady genadys@ontko.com ----- Original Message ----- From: "Ray Ontko" To: Sent: Friday, October 17, 2003 7:48 AM Subject: Re: [sqr-users] SQL Error = ORA-01406: fetched column value wastruncated > Sheetal, > > The only adjustable parameter for SQR that I can think > of that might be related to this error message > is LONGSPACE=32766 in your -M or SQR.INI file. > > What's going on in that particular SQL statement? > Are any of the columns "LONG" or "LONGRAW"? > > Ray > > On Fri, Oct 17, 2003 at 09:08:49AM +0530, sheetalk wrote: > > Hi All, > > > > My working environment : ps 8 sp2, pt 8.15, oracle db > > > > I'm getting this error msg when i run one sqr only on production thr > > process scheduler both on nt and unix.. > > On all other instances it works fine.. > > Surprisingly enough it runs fine on production from dos prompt with sqrw > > command !!! > > > > I tried to trace if any particular data value causes this but i don't > > get this error for particular data row..but it occurs mostly when > > report data is large... > > > > SQL Status = -1, SQL Error = ORA-01406: fetched column value was > > truncated > > Error on line 59: > > (SQR 3301) Program stopped by user request. > > > > Which options for sqr or oracle or process scheduler on production > > should i check? > > I've already compared pssqr.unx files on all instances and they are > > same... > > > > Please help !!!!! > > > > Thanks & Regards, > > Sheetal. > > > > ********************************************************* > > Disclaimer > > > > This message (including any attachments) contains > > confidential information intended for a specific > > individual and purpose, and is protected by law. > > If you are not the intended recipient, you should > > delete this message and are hereby notified that > > any disclosure, copying, or distribution of this > > message, or the taking of any action based on it, > > is strictly prohibited. > > > > ********************************************************* > > Visit us at http://www.mahindrabt.com > > > > _______________________________________________ > > 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 Fri Oct 17 08:32:11 2003 Date: Fri, 17 Oct 2003 09:31:04 -0400 From: "MacLellan, David" Subject: [sqr-users] Printing Images SQR/4.3.4 Sun Microsystems Inc. SunOS 5.6 Oracle 8i Indus / Empac I am trying to print a EPS file and encountering some problems. I can generate the image correctly to a .lis file and send it to the printer on Unix with no problems. The difficulties come in when I try to create a .pdf file from the .spf generated. The vendor s/w we use generates a .lis .spf and .pdf for each report. The user can pick either host or windows print , windows opens the .pdf in a viewer and allows them to print it. Sample code, this program creates the .lis file correctly and prints fine on the host. I have included some code to make sure image and text can both be printed on the same page. BEGIN-SETUP DECLARE-LAYOUT default PAPER-SIZE = (8.27,11) ORIENTATION = PORTRAIT LEFT-MARGIN = .0 RIGHT-MARGIN = .0 CHAR-WIDTH = 6.0 MAX-LINES = 56 END-DECLARE DECLARE-PRINTER default-hp POINT-SIZE = 12 PITCH = 12 FONT = 3 SYMBOL-SET = 8U END-DECLARE DECLARE-REPORT default LAYOUT = default PRINTER-TYPE = postscript END-DECLARE END-SETUP Begin-Program LET $epsfile = 'sqribe.eps' Alter-Printer Font=5 Point-Size=12 Print-Image (6,6) Image-Size = (30,40) Source = $epsfile Type = EPS-FILE DO process_emp End-Program Begin-Heading 2 print 'Employee List with no User ID' (+1) center print $current-date (,1) edit 'DD-MON-YYYY' End-Heading Begin-Procedure process_emp print 'NO employees found................' (+1) End-Procedure !process_emp I then use SQRP to create a .pdf file sqrp embed_eps.spf -Fembed_eps.pdf PRINTER:PD Host print works fine, but viewing the .pdf in Acrobat shows the text and heading correctly and a shadded rectangle. I have not been able to find documentation on PRINTER:PD, but this is what the vendor uses in their s/w, although they do not have images printed in any of their provided reports. Any help would be greatly appreciated. Thanks Dave MacLellan SP-2A-C 423-751-7734 865-632-3560 800-283-0028 #2941 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Oct 17 08:45:07 2003 From: Rhonda Hudgins Date: Fri, 17 Oct 2003 09:43:54 -0400 Subject: Re: [sqr-users] Printing Images Here is the code I use for printing images. We seem to have better luck using bmp or jpg images. SHOW 'Report file ' $sqr-report << -- from the sqr -f parameter (sqr key word) unstring $sqr-report by '.' into $rpt_name, $rpt_type if upper($rpt_type) = 'PDF' print-image company_logo (1,1) type=jpeg-file source='gci.jpg' image-size=(18,5) else print-image company_logo (1,1) type=bmp-file source='gci.BMP' image-size=(18,5) end-if Thanks! Rhonda Hudgins @}---'----,---- Genencor International, Inc office - 585/256-5266 rhudgins@genencor.com "MacLellan, David" Sent by: sqr-users-admin@sqrug.org 10/17/2003 09:31 AM Please respond to sqr-users@sqrug.org To cc Subject [sqr-users] Printing Images SQR/4.3.4 Sun Microsystems Inc. SunOS 5.6 Oracle 8i Indus / Empac I am trying to print a EPS file and encountering some problems. I can generate the image correctly to a .lis file and send it to the printer on Unix with no problems. The difficulties come in when I try to create a .pdf file from the .spf generated. The vendor s/w we use generates a .lis .spf and .pdf for each report. The user can pick either host or windows print , windows opens the .pdf in a viewer and allows them to print it. Sample code, this program creates the .lis file correctly and prints fine on the host. I have included some code to make sure image and text can both be printed on the same page. BEGIN-SETUP DECLARE-LAYOUT default PAPER-SIZE = (8.27,11) ORIENTATION = PORTRAIT LEFT-MARGIN = .0 RIGHT-MARGIN = .0 CHAR-WIDTH = 6.0 MAX-LINES = 56 END-DECLARE DECLARE-PRINTER default-hp POINT-SIZE = 12 PITCH = 12 FONT = 3 SYMBOL-SET = 8U END-DECLARE DECLARE-REPORT default LAYOUT = default PRINTER-TYPE = postscript END-DECLARE END-SETUP Begin-Program LET $epsfile = 'sqribe.eps' Alter-Printer Font=5 Point-Size=12 Print-Image (6,6) Image-Size = (30,40) Source = $epsfile Type = EPS-FILE DO process_emp End-Program Begin-Heading 2 print 'Employee List with no User ID' (+1) center print $current-date (,1) edit 'DD-MON-YYYY' End-Heading Begin-Procedure process_emp print 'NO employees found................' (+1) End-Procedure !process_emp I then use SQRP to create a .pdf file sqrp embed_eps.spf -Fembed_eps.pdf PRINTER:PD Host print works fine, but viewing the .pdf in Acrobat shows the text and heading correctly and a shadded rectangle. I have not been able to find documentation on PRINTER:PD, but this is what the vendor uses in their s/w, although they do not have images printed in any of their provided reports. Any help would be greatly appreciated. Thanks Dave MacLellan SP-2A-C 423-751-7734 865-632-3560 800-283-0028 #2941 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users -------------------------------------------------------------------------- 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 Tue Oct 21 08:06:39 2003 Subject: RE: [sqr-users] Printing Images Date: Tue, 21 Oct 2003 09:04:37 -0400 From: "MacLellan, David" Rhonda, Thanks for the tip, the jpeg is working! -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org] On Behalf Of Rhonda Hudgins Sent: Friday, October 17, 2003 9:44 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Printing Images Here is the code I use for printing images. We seem to have better luck using bmp or jpg images. SHOW 'Report file ' $sqr-report << -- from the sqr -f parameter (sqr key word) unstring $sqr-report by '.' into $rpt_name, $rpt_type if upper($rpt_type) = 'PDF' print-image company_logo (1,1) type=jpeg-file source='gci.jpg' image-size=(18,5) else print-image company_logo (1,1) type=bmp-file source='gci.BMP' image-size=(18,5) end-if Thanks! Rhonda Hudgins @}---'----,---- Genencor International, Inc office - 585/256-5266 rhudgins@genencor.com "MacLellan, David" Sent by: sqr-users-admin@sqrug.org 10/17/2003 09:31 AM Please respond to sqr-users@sqrug.org To cc Subject [sqr-users] Printing Images SQR/4.3.4 Sun Microsystems Inc. SunOS 5.6 Oracle 8i Indus / Empac I am trying to print a EPS file and encountering some problems. I can generate the image correctly to a .lis file and send it to the printer on Unix with no problems. The difficulties come in when I try to create a .pdf file from the .spf generated. The vendor s/w we use generates a .lis .spf and .pdf for each report. The user can pick either host or windows print , windows opens the .pdf in a viewer and allows them to print it. Sample code, this program creates the .lis file correctly and prints fine on the host. I have included some code to make sure image and text can both be printed on the same page. BEGIN-SETUP DECLARE-LAYOUT default PAPER-SIZE = (8.27,11) ORIENTATION = PORTRAIT LEFT-MARGIN = .0 RIGHT-MARGIN = .0 CHAR-WIDTH = 6.0 MAX-LINES = 56 END-DECLARE DECLARE-PRINTER default-hp POINT-SIZE = 12 PITCH = 12 FONT = 3 SYMBOL-SET = 8U END-DECLARE DECLARE-REPORT default LAYOUT = default PRINTER-TYPE = postscript END-DECLARE END-SETUP Begin-Program LET $epsfile = 'sqribe.eps' Alter-Printer Font=5 Point-Size=12 Print-Image (6,6) Image-Size = (30,40) Source = $epsfile Type = EPS-FILE DO process_emp End-Program Begin-Heading 2 print 'Employee List with no User ID' (+1) center print $current-date (,1) edit 'DD-MON-YYYY' End-Heading Begin-Procedure process_emp print 'NO employees found................' (+1) End-Procedure !process_emp I then use SQRP to create a .pdf file sqrp embed_eps.spf -Fembed_eps.pdf PRINTER:PD Host print works fine, but viewing the .pdf in Acrobat shows the text and heading correctly and a shadded rectangle. I have not been able to find documentation on PRINTER:PD, but this is what the vendor uses in their s/w, although they do not have images printed in any of their provided reports. Any help would be greatly appreciated. Thanks Dave MacLellan SP-2A-C 423-751-7734 865-632-3560 800-283-0028 #2941 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users ------------------------------------------------------------------------ -- 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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Oct 17 10:28:22 2003 From: "Alexander, Steve" Date: Fri, 17 Oct 2003 08:34:08 -0700 Subject: [sqr-users] (SQR 6806) String2Em: String to Decimal Object Conversion Error. When I got this error message a few weeks ago, I dealt with it by rewritting the program. Now I've got it again, on a Peoplesoft-delivered program, BEN040. Both programs used to work, and I've just realized that they stopped working on our STAGE database when we upgraded from Oracle 8.1.7.4 to 9.2.0.3. BEN040 still works in PROD, which is still at Oracle 8.1.7.4. Does anyone know of a bad SQR 6/Oracle 9 interaction? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Oct 17 10:55:42 2003 Subject: Re: [sqr-users] (SQR 6806) String2Em: String to Decimal Object Conversion Error. From: amy.harvel@phoenix.gov Date: Fri, 17 Oct 2003 08:53:57 -0700 Funny -- we had the same error yesterday -- there is a work around -- DONT change any SQR's. Find Solution id 200744351 on PeopleSoft's web. What we found was the select works in Oracle -- not in SQR -- issue is the numbers (comment them out in the SQR or make them to_char). Describe the view -- notice the numbers are just Number's not Number(38) or number (5,2) -- SQR can't handle a number that has not length. The solution fixes the problem -- its an Oracle "behavior change" Amy M. Harvel City Of Phoenix Information Technology Department Programmer III 602-261-8974 "Alexander, Steve" Sent by: sqr-users-admin@sqrug.org 10/17/2003 08:34 AM Please respond to sqr-users To: "SQR User Group (E-mail)" cc: Subject: [sqr-users] (SQR 6806) String2Em: String to Decimal Object Conversion Error. When I got this error message a few weeks ago, I dealt with it by rewritting the program. Now I've got it again, on a Peoplesoft-delivered program, BEN040. Both programs used to work, and I've just realized that they stopped working on our STAGE database when we upgraded from Oracle 8.1.7.4 to 9.2.0.3. BEN040 still works in PROD, which is still at Oracle 8.1.7.4. Does anyone know of a bad SQR 6/Oracle 9 interaction? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.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 Oct 17 10:59:05 2003 Subject: RE: [sqr-users] (SQR 6806) String2Em: String to Decimal Object Conversion Error. Date: Fri, 17 Oct 2003 10:58:14 -0500 From: "Knapp, Richard" I am having a problem that may be related to the Oracle version/PS version. When I try to link from a Oracle 9i db (in an SQR) to an Oracle 8 db, I get the following error: Enter report start date (DD-MON-YYYY): 01-JUL-2003 Enter report end date (DD-MON-YYYY): 31-JUL-2003 Start time: 17-OCT-2003 10:10:13 (SQR 5528) ORACLE OCIStmtExecute error 3113 in cursor 1: ORA-03113: end-of-file on communication channel Error on line 199: (SQR 3723) Problem executing cursor. SQR for PeopleSoft: Program Aborting. (SQR 5528) ORACLE OCITransRollback error 3114 in cursor 0: ORA-03114: not connected to ORACLE (SQR 5528) ORACLE OCITransCommit error 3114 in cursor 0: ORA-03114: not connected to ORACLE If I run the same select from SQLPlus, there is no problem or if I use a private link - no problem. This error has now appeared on a PS v8 db running on Ora 8. I think it may have to do with the encryption that is now required for 9i and all the databases that talk to 9i dbs. SQLPlus is handling the encryption but SQR is not (just a guess). Notice in the above error message that the SQR has made and passed its initial syntax, connection and access checks. Here is some further info on this from Richard Woodville: Richard, I have found the solution to the problem below. The solution that worked for me was to re-install Oracle 8.16 on my desktop. As soon as Oracle 9i was installed on my desktop, I started to experience the problem below when running SQRs with a database link with SQRW. Another developer here who has Oracle 8.16 installed on his desktop had no problem. As soon as the LAN Admin de-installed Oracle 9i and reinstalled Oracle 8.16, my Oracle error messages below cleared up and my SQR with database links ran successfully using SQRW. If you have any questions, I am happy to try to answer them. Regards, Richard Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Alexander, Steve [mailto:Steven.Alexander@sanjoseca.gov] Sent: Friday, October 17, 2003 10:34 AM To: SQR User Group (E-mail) Subject: [sqr-users] (SQR 6806) String2Em: String to Decimal Object Conversion Error. When I got this error message a few weeks ago, I dealt with it by rewritting the program. Now I've got it again, on a Peoplesoft-delivered program, BEN040. Both programs used to work, and I've just realized that they stopped working on our STAGE database when we upgraded from Oracle 8.1.7.4 to 9.2.0.3. BEN040 still works in PROD, which is still at Oracle 8.1.7.4. Does anyone know of a bad SQR 6/Oracle 9 interaction? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.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 Oct 17 11:09:07 2003 Subject: RE: [sqr-users] (SQR 6806) String2Em: String to Decimal Object Conversion Error. Date: Fri, 17 Oct 2003 12:08:31 -0400 From: "Blackwell, Lisa" There apparently are problems with SQR 6 and Oracle 9. Upon our initial upgrade to Oracle 9.2.0.3 we had many difficulties. According to the information that I have...SQR 6.2 is not supported with Oracle9i release 2 (version 9.2.0.3). After upgrading to SQR 8.0.2 we were told that this SQR version is only supported with Oracle9i release 2 version 9.2.0.1 ...not 9.2.0.3 We ultimately upgraded to SQR 8.1 and as far as I know are not experiencing difficulties. -----Original Message----- From: Alexander, Steve [mailto:Steven.Alexander@sanjoseca.gov] Sent: Friday, October 17, 2003 11:34 AM To: SQR User Group (E-mail) Subject: [sqr-users] (SQR 6806) String2Em: String to Decimal Object Conversion Error. When I got this error message a few weeks ago, I dealt with it by rewritting the program. Now I've got it again, on a Peoplesoft-delivered program, BEN040. Both programs used to work, and I've just realized that they stopped working on our STAGE database when we upgraded from Oracle 8.1.7.4 to 9.2.0.3. BEN040 still works in PROD, which is still at Oracle 8.1.7.4. Does anyone know of a bad SQR 6/Oracle 9 interaction? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.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 Oct 17 15:28:21 2003 Date: Fri, 17 Oct 2003 16:26:20 -0400 From: Matt Rogish Subject: [sqr-users] Dynamic Substitution Vars All, I sent a message earlier about dynamic 'input' variables and got some interesting suggestions on and off list, none of which worked out quite as I had hoped. To re-cap: We have lots of programs which have this basic structure: set up variables ask for input run some SQL show report show summary In order to ease maintenance what I'd like to do is standardize the "set up variables", "ask for input", and "show summary" pieces using some sort of dynamic SQR. In the summary section we list some report variables (counters and things) and we like to list the input parameters because there's nothing like getting a complex multi-section report and trying to guess what input parameters the particular report was run with (because the user forgets, or you look at the report a month later, or they were in Brio Portal but have since been changed, etc.). The way we have it now is something like this: begin-procedure get-input Input $code 'Enter some code' Input $begin_date 'Enter report begin date' type=date .. end-procedure begin-procedure show-input-summary print 'Input Parameters:' (+1) bold print 'Some Code: ' (+2) print $code print 'Begin Date: ' (+2) print $begin_date etc. end-procedure Oftentimes there are many parameters so it becomes cumbersome to list long blocks of Input and print statements. It also makes maintenance a nightmare because you don't know which programs require what input and if you want to change/add one you have to change it several places. So, the goal is to minimize code changes when the input parameter list changes -- either by adding, changing, or removing input parameters. Preferably, there would be one spot in the program where I change a parameter list and the get-input and show-input-summary procedures do not have to change! It goes without saying that there might have to be other changes to handle the addition or removal of a parameter, but that can come later. :) Some ideas I've considered are: Idea One -- Build an array which stores the input parameter name ("some_code") and input query string ("Enter some code") then loop through each one and build an 'Input' statement from this. Problem: I don't know how to execute dynamic SQR code, namely something like: let $stmt = 'Input $' || $input_var_name || ' ''' || $input_query || '''' [$stmt] This gives an error: (SQR 4008) Unknown function or variable in expression: [$stmt] Idea Two -- Create substitution variables, loop through each of them, and use them in Input statements. Problem: I can't dynamically *name* a substitution variable: Let #num = 1 #DEFINE variable_number_#1 Show {variable_number_1} This gives an error: (SQR 4707) No value found for substitution variable: {variable_number_1} Any help/ideas? Thanks, -- Matt Rogish - rogishmn@muohio.edu _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Oct 17 17:28:14 2003 Date: Fri, 17 Oct 2003 17:27:14 -0500 (EST) From: Don Mellen Subject: Re: [sqr-users] Dynamic Substitution Vars I'd suggest using an array and some local procedures, something like... do prompt_txt('Enter some code: ', $code) do prompt_date('Enter Report Begin Date: ', $begin_date) ... and a simple representation of one of the procedures being ... begin-procedure prompt_txt($prompt_line, :$val) show $prompt_line noline input $val noprompt put $prompt_line $val into Inputs(#_next_input_elem) prompt val add 1 to #_next_input_elem end-procedure HTH, Don On Fri, 17 Oct 2003, Matt Rogish wrote: > All, > > I sent a message earlier about dynamic 'input' variables and got some > interesting suggestions on and off list, none of which worked out quite as > I had hoped. > > To re-cap: > We have lots of programs which have this basic structure: > set up variables > ask for input > run some SQL > show report > show summary > > In order to ease maintenance what I'd like to do is standardize the "set up > variables", "ask for input", and "show summary" pieces using some sort of > dynamic SQR. > > In the summary section we list some report variables (counters and things) > and we like to list the input parameters because there's nothing like > getting a complex multi-section report and trying to guess what input > parameters the particular report was run with (because the user forgets, or > you look at the report a month later, or they were in Brio Portal but have > since been changed, etc.). > > The way we have it now is something like this: > begin-procedure get-input > Input $code 'Enter some code' > Input $begin_date 'Enter report begin date' type=date > .. > end-procedure > > begin-procedure show-input-summary > print 'Input Parameters:' (+1) bold > > print 'Some Code: ' (+2) > print $code > > print 'Begin Date: ' (+2) > print $begin_date > > etc. > end-procedure > > Oftentimes there are many parameters so it becomes cumbersome to list long > blocks of Input and print statements. It also makes maintenance a > nightmare because you don't know which programs require what input and if > you want to change/add one you have to change it several places. > > So, the goal is to minimize code changes when the input parameter list > changes -- either by adding, changing, or removing input > parameters. Preferably, there would be one spot in the program where I > change a parameter list and the get-input and show-input-summary procedures > do not have to change! It goes without saying that there might have to be > other changes to handle the addition or removal of a parameter, but that > can come later. :) > > Some ideas I've considered are: > Idea One -- Build an array which stores the input parameter name > ("some_code") and input query string ("Enter some code") then loop through > each one and build an 'Input' statement from this. > Problem: > I don't know how to execute dynamic SQR code, namely something like: > let $stmt = 'Input $' || $input_var_name || ' ''' || $input_query || '''' > [$stmt] > This gives an error: > (SQR 4008) Unknown function or variable in expression: [$stmt] > > Idea Two -- Create substitution variables, loop through each of them, and > use them in Input statements. > Problem: > I can't dynamically *name* a substitution variable: > Let #num = 1 > #DEFINE variable_number_#1 > Show {variable_number_1} > This gives an error: > (SQR 4707) No value found for substitution variable: {variable_number_1} > > Any help/ideas? > > > Thanks, > > -- > Matt Rogish - rogishmn@muohio.edu > > _______________________________________________ > 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 Oct 17 17:33:05 2003 From: Ray Ontko Date: Fri, 17 Oct 2003 17:31:59 -0500 Subject: Re: [sqr-users] Dynamic Substitution Vars Matt, I don't know if this will work for you, but in situations where I've needed dynamic SQR code, I have writen an SQR program that generates the SQR program (using WRITE or PRINT). You can even use the generator program to launch the generated program using CALL SYSTEM. Ray On Fri, Oct 17, 2003 at 04:26:20PM -0400, Matt Rogish wrote: > All, > > I sent a message earlier about dynamic 'input' variables and got some > interesting suggestions on and off list, none of which worked out quite as > I had hoped. > > To re-cap: > We have lots of programs which have this basic structure: > set up variables > ask for input > run some SQL > show report > show summary > > In order to ease maintenance what I'd like to do is standardize the "set up > variables", "ask for input", and "show summary" pieces using some sort of > dynamic SQR. > > In the summary section we list some report variables (counters and things) > and we like to list the input parameters because there's nothing like > getting a complex multi-section report and trying to guess what input > parameters the particular report was run with (because the user forgets, or > you look at the report a month later, or they were in Brio Portal but have > since been changed, etc.). > > The way we have it now is something like this: > begin-procedure get-input > Input $code 'Enter some code' > Input $begin_date 'Enter report begin date' type=date > .. > end-procedure > > begin-procedure show-input-summary > print 'Input Parameters:' (+1) bold > > print 'Some Code: ' (+2) > print $code > > print 'Begin Date: ' (+2) > print $begin_date > > etc. > end-procedure > > Oftentimes there are many parameters so it becomes cumbersome to list long > blocks of Input and print statements. It also makes maintenance a > nightmare because you don't know which programs require what input and if > you want to change/add one you have to change it several places. > > So, the goal is to minimize code changes when the input parameter list > changes -- either by adding, changing, or removing input > parameters. Preferably, there would be one spot in the program where I > change a parameter list and the get-input and show-input-summary procedures > do not have to change! It goes without saying that there might have to be > other changes to handle the addition or removal of a parameter, but that > can come later. :) > > Some ideas I've considered are: > Idea One -- Build an array which stores the input parameter name > ("some_code") and input query string ("Enter some code") then loop through > each one and build an 'Input' statement from this. > Problem: > I don't know how to execute dynamic SQR code, namely something like: > let $stmt = 'Input $' || $input_var_name || ' ''' || $input_query || '''' > [$stmt] > This gives an error: > (SQR 4008) Unknown function or variable in expression: [$stmt] > > Idea Two -- Create substitution variables, loop through each of them, and > use them in Input statements. > Problem: > I can't dynamically *name* a substitution variable: > Let #num = 1 > #DEFINE variable_number_#1 > Show {variable_number_1} > This gives an error: > (SQR 4707) No value found for substitution variable: {variable_number_1} > > Any help/ideas? > > > Thanks, > > -- > Matt Rogish - rogishmn@muohio.edu > > _______________________________________________ > 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 Oct 17 22:50:51 2003 Date: Sat, 18 Oct 2003 13:51:56 +1000 From: Steve Cavill Subject: RE: [sqr-users] Dynamic Substitution Vars Matt, How about setting up the command line so when the job runs it simply reads the parameters off the command line in pairs: SQRW.EXE parm1name=parm1value parm2name=parm2value.... etc use ONE input command in a loop with the batch-mode option to stop reading when you run out of parms. then use an evaluate to determine which parms have been supplied: e.g. SQRW.EXE begin-date='01-jan-03' code='blah blah' .... etc ... while (1) input $parm status=#stat batch-mode if #stat=3 break else do get_parm ($parm) end-if end-while begin-procedure get_parm($a) unstring $a by '=' into $parm $value !either print the parms now, or save in an array for printing later evaluate $parm when 'begin-date' let $begin-date=$value when 'code' let $code=$value when....etc end-evaluate If you don't like the evaluate as hard to maintain you could also load the parms into a table in pairs. the table would have three (or more) columns Report_code, input_parm_name, input_value then your program can do a select against the table to get all the required parms when required: e.g. begin-select begin-date from table where input_parm_name = 'begin-date' and Report_code='xxx' end-select The advantage of saving the parms in a table is you can keep the parms for as long as you like if you use one table and make the Report_code unique. So you can retrieve the parms at any time for history or problem diagnosis. You can either load the parms into the table within the SQR program or have a separate scheduler that loads the parms then calls the SQR. This is how the batch scheduler works in many applications, including but not limited to Peoplesoft. Cheers, Steve. -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Ray Ontko Sent: Saturday, 18 October 2003 8:32 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Dynamic Substitution Vars Matt, I don't know if this will work for you, but in situations where I've needed dynamic SQR code, I have writen an SQR program that generates the SQR program (using WRITE or PRINT). You can even use the generator program to launch the generated program using CALL SYSTEM. Ray On Fri, Oct 17, 2003 at 04:26:20PM -0400, Matt Rogish wrote: > All, > > I sent a message earlier about dynamic 'input' variables and got some > interesting suggestions on and off list, none of which worked out quite as > I had hoped. > > To re-cap: > We have lots of programs which have this basic structure: > set up variables > ask for input > run some SQL > show report > show summary > > In order to ease maintenance what I'd like to do is standardize the "set up > variables", "ask for input", and "show summary" pieces using some sort of > dynamic SQR. > > In the summary section we list some report variables (counters and things) > and we like to list the input parameters because there's nothing like > getting a complex multi-section report and trying to guess what input > parameters the particular report was run with (because the user forgets, or > you look at the report a month later, or they were in Brio Portal but have > since been changed, etc.). > > The way we have it now is something like this: > begin-procedure get-input > Input $code 'Enter some code' > Input $begin_date 'Enter report begin date' type=date > .. > end-procedure > > begin-procedure show-input-summary > print 'Input Parameters:' (+1) bold > > print 'Some Code: ' (+2) > print $code > > print 'Begin Date: ' (+2) > print $begin_date > > etc. > end-procedure > > Oftentimes there are many parameters so it becomes cumbersome to list long > blocks of Input and print statements. It also makes maintenance a > nightmare because you don't know which programs require what input and if > you want to change/add one you have to change it several places. > > So, the goal is to minimize code changes when the input parameter list > changes -- either by adding, changing, or removing input > parameters. Preferably, there would be one spot in the program where I > change a parameter list and the get-input and show-input-summary procedures > do not have to change! It goes without saying that there might have to be > other changes to handle the addition or removal of a parameter, but that > can come later. :) > > Some ideas I've considered are: > Idea One -- Build an array which stores the input parameter name > ("some_code") and input query string ("Enter some code") then loop through > each one and build an 'Input' statement from this. > Problem: > I don't know how to execute dynamic SQR code, namely something like: > let $stmt = 'Input $' || $input_var_name || ' ''' || $input_query || '''' > [$stmt] > This gives an error: > (SQR 4008) Unknown function or variable in expression: [$stmt] > > Idea Two -- Create substitution variables, loop through each of them, and > use them in Input statements. > Problem: > I can't dynamically *name* a substitution variable: > Let #num = 1 > #DEFINE variable_number_#1 > Show {variable_number_1} > This gives an error: > (SQR 4707) No value found for substitution variable: {variable_number_1} > > Any help/ideas? > > > Thanks, > > -- > Matt Rogish - rogishmn@muohio.edu > > _______________________________________________ > 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 Sat Oct 18 15:51:09 2003 From: SIyer@tmmna.com Date: Sat, 18 Oct 2003 16:48:41 -0400 Subject: [sqr-users] (no subject) Hello, Is it possible to send emails thru Sqr, and if possible, how to do it. Any information will be highly appreciated!!!! TIA Sridevi _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Sat Oct 18 16:32:10 2003 Subject: RE: [sqr-users] (no subject) Date: Sat, 18 Oct 2003 15:31:07 -0600 From: "Turner, Ivan" I wrote a shell script to a file from sqr and then used call system to execute the shell script. here is the code. $email_addr was supplied by the user. let $emailscript = getenv('HOME')||'/ivan/'||'email_'||$prcs_process_instance||'.ksh' open $emailscript as 3 for-writing record = 500 status = #script_open if #script_open <> 0 let $prcs_run_status='E' let $prcs_message_parm1 = 'FTP File open error' do update-prcs-run-status rollback stop end-if Let $csvfile = 'CSV_FILE='||$outfile let $mail_sub = 'Activity by QBL '||$ReportID Let $mail_list = 'EMAIL_LIST='||$email_addr write 3 from $csvfile write 3 from $mail_list let $email_string = 'uuencode '||$outfile||' '||$outfile||'|'||'mailx -m -s "'||$mail_sub||'" $EMAIL_LIST' write 3 from $email_string close 3 let $chmode_command = 'chmod +x '||$emailscript call system using $chmode_command #unix_status call system using $emailscript #emailrc if #emailrc <> 0 !let $prcs_run_status='E' !let $prcs_message_parm1 = 'ftp error' !do update-prcs-run-status show 'error on return code ' #emailrc !rollback end-if end-procedure 350-email-csv-file -----Original Message----- From: sqr-users-admin@sqrug.org To: sqr-users@sqrug.org Sent: 10/18/2003 4:48 PM Subject: [sqr-users] (no subject) Hello, Is it possible to send emails thru Sqr, and if possible, how to do it. Any information will be highly appreciated!!!! TIA Sridevi _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.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 Oct 20 02:22:21 2003 Date: Mon, 20 Oct 2003 00:19:14 -0700 From: Rajesh Bhatia Subject: [sqr-users] Does SQR 4.3.2.2. work with Oracle 9i? Hello, I am working with SQR 4.3.2.2 and Oracle 9i database on a Sun Solaris 8 Operating System. The SQR used to work OK woth Oracle 8i database. However, with Oracle 9i, it keeps on giving the same error: -------------------------------------------------------------------------- SQR V4.3.2.2 Copyright (C) SQRIBE Technologies, 1994-98. All Worldwide Rights Reserved. (SQR 5528) ORACLE ORLON error -3113 in cursor 0: ORA-03113: end-of-file on communication channel (SQR 4701) Cannot logon to the database. SQR: Program Aborting. -------------------------------------------------------------------------- With ORACLE_HOME pointing to the Oracle 9i location, I even ran sqrmake in the SQR4.3.2.2/ora/lib directory. Howver, I got the same result again. Questions: Is SQR 4.3.2.2 compatible with Oracle 9i? If yes, what is the solution? If no, is there any future version of SQR that is compatible with Oracle 9i? Thanks in advance, Rajesh. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ********************************* Rajesh Bhatia Sun Microsystems, Inc. 7788 Gateway Blvd., MS UNWK18-204 Newark, CA 94560 Voice : x40177 (510-550-4427) Fax : 510-936-2927 E-Mail: rajesh.bhatia@sun.com ********************************* _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Oct 20 06:40:57 2003 From: "Hood Louise (app1lxh)" Subject: RE: [sqr-users] Does SQR 4.3.2.2. work with Oracle 9i? Date: Mon, 20 Oct 2003 07:39:33 -0400 Brio has informed us that Oracle 9i has compatibility issues with SQR 6.0.2. It seems likely that 4.3.2.2 would have same or worse problems. Brio will tell you to go to version 8. -----Original Message----- From: Rajesh Bhatia [mailto:Rajesh.Bhatia@Sun.COM] Sent: Monday, October 20, 2003 3:19 AM To: sqr-users@sqrug.org Cc: Rajesh.Bhatia@Sun.COM Subject: [sqr-users] Does SQR 4.3.2.2. work with Oracle 9i? Hello, I am working with SQR 4.3.2.2 and Oracle 9i database on a Sun Solaris 8 Operating System. The SQR used to work OK woth Oracle 8i database. However, with Oracle 9i, it keeps on giving the same error: -------------------------------------------------------------------------- SQR V4.3.2.2 Copyright (C) SQRIBE Technologies, 1994-98. All Worldwide Rights Reserved. (SQR 5528) ORACLE ORLON error -3113 in cursor 0: ORA-03113: end-of-file on communication channel (SQR 4701) Cannot logon to the database. SQR: Program Aborting. -------------------------------------------------------------------------- With ORACLE_HOME pointing to the Oracle 9i location, I even ran sqrmake in the SQR4.3.2.2/ora/lib directory. Howver, I got the same result again. Questions: Is SQR 4.3.2.2 compatible with Oracle 9i? If yes, what is the solution? If no, is there any future version of SQR that is compatible with Oracle 9i? Thanks in advance, Rajesh. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ********************************* Rajesh Bhatia Sun Microsystems, Inc. 7788 Gateway Blvd., MS UNWK18-204 Newark, CA 94560 Voice : x40177 (510-550-4427) Fax : 510-936-2927 E-Mail: rajesh.bhatia@sun.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 Mon Oct 20 09:33:07 2003 Subject: RE: [sqr-users] Does SQR 4.3.2.2. work with Oracle 9i? Date: Mon, 20 Oct 2003 09:32:25 -0500 From: "Knapp, Richard" I don't have any problems using SQR 4 against an Oracle 9i db _unless_ I am using database links in my program. Then I get the same error you do. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Rajesh Bhatia [mailto:Rajesh.Bhatia@Sun.COM] Sent: Monday, October 20, 2003 2:19 AM To: sqr-users@sqrug.org Cc: Rajesh.Bhatia@Sun.COM Subject: [sqr-users] Does SQR 4.3.2.2. work with Oracle 9i? Hello, I am working with SQR 4.3.2.2 and Oracle 9i database on a Sun Solaris 8 Operating System. The SQR used to work OK woth Oracle 8i database. However, with Oracle 9i, it keeps on giving the same error: -------------------------------------------------------------------------- SQR V4.3.2.2 Copyright (C) SQRIBE Technologies, 1994-98. All Worldwide Rights Reserved. (SQR 5528) ORACLE ORLON error -3113 in cursor 0: ORA-03113: end-of-file on communication channel (SQR 4701) Cannot logon to the database. SQR: Program Aborting. -------------------------------------------------------------------------- With ORACLE_HOME pointing to the Oracle 9i location, I even ran sqrmake in the SQR4.3.2.2/ora/lib directory. Howver, I got the same result again. Questions: Is SQR 4.3.2.2 compatible with Oracle 9i? If yes, what is the solution? If no, is there any future version of SQR that is compatible with Oracle 9i? Thanks in advance, Rajesh. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ********************************* Rajesh Bhatia Sun Microsystems, Inc. 7788 Gateway Blvd., MS UNWK18-204 Newark, CA 94560 Voice : x40177 (510-550-4427) Fax : 510-936-2927 E-Mail: rajesh.bhatia@sun.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 Mon Oct 20 12:46:07 2003 Date: Mon, 20 Oct 2003 10:44:49 -0700 From: Rajesh Bhatia Subject: Re: [sqr-users] Does SQR 4.3.2.2. work with Oracle 9i? Hello Richard, To make SQR 4 work with Oracle 9i, did you set any special parameters in Oracle 9i? Or did you gave some extra grants to any Oracle Catalog tables or views? In short, did you do anything different with Oracle 9i to make SQR 4 work with it? We are not using any DB links with SQR 4. So that should not be an issue. Thanks in advance, Rajesh Bhatia. "Knapp, Richard" wrote: > > I don't have any problems using SQR 4 against an Oracle 9i db _unless_ I am using database links in my program. Then I get the same error you do. > > Richard Knapp > Database Programmer/Analyst > Institutional Research and Planning > University of Missouri System > 573-882-8856 > knappr@umsystem.edu > > -----Original Message----- > From: Rajesh Bhatia [mailto:Rajesh.Bhatia@Sun.COM] > Sent: Monday, October 20, 2003 2:19 AM > To: sqr-users@sqrug.org > Cc: Rajesh.Bhatia@Sun.COM > Subject: [sqr-users] Does SQR 4.3.2.2. work with Oracle 9i? > > Hello, > > I am working with SQR 4.3.2.2 and Oracle 9i database on > a Sun Solaris 8 Operating System. > > The SQR used to work OK woth Oracle 8i database. However, > with Oracle 9i, it keeps on giving the same error: > > -------------------------------------------------------------------------- > SQR V4.3.2.2 > Copyright (C) SQRIBE Technologies, 1994-98. All Worldwide Rights Reserved. > > (SQR 5528) ORACLE ORLON error -3113 in cursor 0: > ORA-03113: end-of-file on communication channel > (SQR 4701) Cannot logon to the database. > > SQR: Program Aborting. > -------------------------------------------------------------------------- > > With ORACLE_HOME pointing to the Oracle 9i location, I even > ran sqrmake in the SQR4.3.2.2/ora/lib directory. Howver, I > got the same result again. > > Questions: > > Is SQR 4.3.2.2 compatible with Oracle 9i? If yes, what is the > solution? If no, is there any future version of SQR that is > compatible with Oracle 9i? > > Thanks in advance, > Rajesh. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > NOTICE: This email message is for the sole use of the intended > recipient(s) and may contain confidential and privileged > information. Any unauthorized review, use, disclosure or > distribution is prohibited. If you are not the intended > recipient, please contact the sender by reply email and destroy > all copies of the original message. > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > ********************************* > Rajesh Bhatia > Sun Microsystems, Inc. > 7788 Gateway Blvd., MS UNWK18-204 > Newark, CA 94560 > > Voice : x40177 (510-550-4427) > Fax : 510-936-2927 > E-Mail: rajesh.bhatia@sun.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 -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ********************************* Rajesh Bhatia Sun Microsystems, Inc. 7788 Gateway Blvd., MS UNWK18-204 Newark, CA 94560 Voice : x40177 (510-550-4427) Fax : 510-936-2927 E-Mail: rajesh.bhatia@sun.com ********************************* _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Oct 20 15:10:13 2003 From: "the dragon" Subject: RE: [sqr-users] Does SQR 4.3.2.2. work with Oracle 9i? Date: Mon, 20 Oct 2003 15:08:12 -0500 I have also seen this error message, when we had a link from an Oracle database to a db2 database on a mainframe. If you have a link, you need to build a table in Oracle and populate it on a regular basis and access that table, rather than using the link. 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 don't have any problems using SQR 4 against an Oracle 9i db _unless_ I am using database links in my program. Then I get the same error you do. -----Original Message----- Hello, I am working with SQR 4.3.2.2 and Oracle 9i database on a Sun Solaris 8 Operating System. The SQR used to work OK woth Oracle 8i database. However, with Oracle 9i, it keeps on giving the same error: -------------------------------------------------------------------------- SQR V4.3.2.2 Copyright (C) SQRIBE Technologies, 1994-98. All Worldwide Rights Reserved. (SQR 5528) ORACLE ORLON error -3113 in cursor 0: ORA-03113: end-of-file on communication channel (SQR 4701) Cannot logon to the database. SQR: Program Aborting. -------------------------------------------------------------------------- With ORACLE_HOME pointing to the Oracle 9i location, I even ran sqrmake in the SQR4.3.2.2/ora/lib directory. Howver, I got the same result again. Questions: Is SQR 4.3.2.2 compatible with Oracle 9i? If yes, what is the solution? If no, is there any future version of SQR that is compatible with Oracle 9i? Thanks in advance, Rajesh. _________________________________________________________________ Cheer a special someone with a fun Halloween eCard from American Greetings! Go to http://www.msn.americangreetings.com/index_msn.pd?source=msne134 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Oct 20 18:11:03 2003 Date: Mon, 20 Oct 2003 16:09:02 -0700 From: Rajesh Bhatia Subject: Re: [sqr-users] Does SQR 4.3.2.2. work with Oracle 9i? Hello "the dragon", Do you mean that you were able to use SQR v4 with Oracle 9i? In my case, SQR is not even able to log in to the database (w/o even using DB link). Are you trying to mean that if any DB link is present in the Oracle 9i database and even if that DB link is not used, SQR will not be able to login to Oracle 9i? Please let me know if you were able to use SQR v4 with Oracle 9i. If so, did you have to grant some extra access to the Catalog tables, or some extra privileges? Thanks, Rajesh. the dragon wrote: > > I have also seen this error message, when we had a link from an Oracle > database to a db2 database on a mainframe. > > If you have a link, you need to build a table in Oracle and populate it on a > regular basis and access that table, rather than using the link. > > 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 don't have any problems using SQR 4 against an Oracle 9i db _unless_ I am > using database links in my program. Then I get the same error you do. > > -----Original Message----- > > Hello, > > I am working with SQR 4.3.2.2 and Oracle 9i database on > a Sun Solaris 8 Operating System. > > The SQR used to work OK woth Oracle 8i database. However, > with Oracle 9i, it keeps on giving the same error: > > -------------------------------------------------------------------------- > SQR V4.3.2.2 > Copyright (C) SQRIBE Technologies, 1994-98. All Worldwide Rights Reserved. > > (SQR 5528) ORACLE ORLON error -3113 in cursor 0: > ORA-03113: end-of-file on communication channel > (SQR 4701) Cannot logon to the database. > > SQR: Program Aborting. > -------------------------------------------------------------------------- > > With ORACLE_HOME pointing to the Oracle 9i location, I even > ran sqrmake in the SQR4.3.2.2/ora/lib directory. Howver, I > got the same result again. > > Questions: > > Is SQR 4.3.2.2 compatible with Oracle 9i? If yes, what is the > solution? If no, is there any future version of SQR that is > compatible with Oracle 9i? > > Thanks in advance, > Rajesh. > > _________________________________________________________________ > Cheer a special someone with a fun Halloween eCard from American Greetings! > Go to http://www.msn.americangreetings.com/index_msn.pd?source=msne134 > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ********************************* Rajesh Bhatia Sun Microsystems, Inc. 7788 Gateway Blvd., MS UNWK18-204 Newark, CA 94560 Voice : x40177 (510-550-4427) Fax : 510-936-2927 E-Mail: rajesh.bhatia@sun.com ********************************* _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Oct 20 08:41:32 2003 From: "Deborah Harris" Date: Mon, 20 Oct 2003 08:40:41 -0500 Subject: [sqr-users] Renaming output for Bursted SQR Output.. Has anyone found a way to rename the output of a bursted SQR Report to be more meaningful names as to the content of the file? For example.. I have a report bursted by Region. I would like the output of the Western region output to be reflected in the name like WesternRegionSecurity. Sample code would be greatly appreciated. Thanks, Deb _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Oct 22 08:15:38 2003 Date: Wed, 22 Oct 2003 22:57:28 +1000 From: Steve Cavill Subject: RE: [sqr-users] Renaming output for Bursted SQR Output.. Deborah, I assume you are referring to Brio.Portal secure bursting. I'm pretty sure there is no way to rename the output. The output files are created by the a java class from the SPF file and you have no control over that. All the files actually have the same name because every user sees the same link, just when they click on the link they see different files based on their permissions. I can only suggest you put the description you want in the page header. Cheers, Steve -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Deborah Harris Sent: Monday, 20 October 2003 11:41 PM To: sqr-users@sqrug.org Subject: [sqr-users] Renaming output for Bursted SQR Output.. Has anyone found a way to rename the output of a bursted SQR Report to be more meaningful names as to the content of the file? For example.. I have a report bursted by Region. I would like the output of the Western region output to be reflected in the name like WesternRegionSecurity. Sample code would be greatly appreciated. Thanks, 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 Wed Oct 22 08:47:06 2003 From: "Deborah Harris" Subject: RE: [sqr-users] Renaming output for Bursted SQR Output.. Date: Wed, 22 Oct 2003 08:46:16 -0500 I was hoping someone had a way of manipulating the output names. Looks like I will have to come up with something else. Thanks -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org] On Behalf Of Steve Cavill Sent: Wednesday, October 22, 2003 7:57 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Renaming output for Bursted SQR Output.. Deborah, I assume you are referring to Brio.Portal secure bursting. I'm pretty sure there is no way to rename the output. The output files are created by the a java class from the SPF file and you have no control over that. All the files actually have the same name because every user sees the same link, just when they click on the link they see different files based on their permissions. I can only suggest you put the description you want in the page header. Cheers, Steve -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Deborah Harris Sent: Monday, 20 October 2003 11:41 PM To: sqr-users@sqrug.org Subject: [sqr-users] Renaming output for Bursted SQR Output.. Has anyone found a way to rename the output of a bursted SQR Report to be more meaningful names as to the content of the file? For example.. I have a report bursted by Region. I would like the output of the Western region output to be reflected in the name like WesternRegionSecurity. Sample code would be greatly appreciated. Thanks, 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 Mon Oct 20 08:52:07 2003 Date: Mon, 20 Oct 2003 08:50:44 -0500 From: "Hunsaker, Michael S" Subject: [sqr-users] INPUT Parms Hello - I am trying to use an INPUT statement to grab one or more choices from the user. For example, my input statement: Input $campus 'Enter Campus Code: ' type=char I am asking the user to enter the campus or campuses to view data for. The main problem I am running into is building the dynamic where clause. Since the user input will look something like the below line, I cannot build the data into a where clause without the single quotes. BL, IN, SB Is there an easy way to pad each input with single quotes? I would like the response to look like this in order to build the dynamic where clause. 'BL','IN','SB' Since I am new to SQR, I am probably overseeing a particular function that would help me out. Normally there are "explode/implode" functions to be used in cases like these. Thanks. Mike -----Original Message----- From: Steve Cavill [mailto:steve.cavill@infoclarity.com.au] Sent: Friday, October 17, 2003 10:52 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Dynamic Substitution Vars Matt, How about setting up the command line so when the job runs it simply reads the parameters off the command line in pairs: SQRW.EXE parm1name=parm1value parm2name=parm2value.... etc use ONE input command in a loop with the batch-mode option to stop reading when you run out of parms. then use an evaluate to determine which parms have been supplied: e.g. SQRW.EXE begin-date='01-jan-03' code='blah blah' .... etc ... while (1) input $parm status=#stat batch-mode if #stat=3 break else do get_parm ($parm) end-if end-while begin-procedure get_parm($a) unstring $a by '=' into $parm $value !either print the parms now, or save in an array for printing later evaluate $parm when 'begin-date' let $begin-date=$value when 'code' let $code=$value when....etc end-evaluate If you don't like the evaluate as hard to maintain you could also load the parms into a table in pairs. the table would have three (or more) columns Report_code, input_parm_name, input_value then your program can do a select against the table to get all the required parms when required: e.g. begin-select begin-date from table where input_parm_name = 'begin-date' and Report_code='xxx' end-select The advantage of saving the parms in a table is you can keep the parms for as long as you like if you use one table and make the Report_code unique. So you can retrieve the parms at any time for history or problem diagnosis. You can either load the parms into the table within the SQR program or have a separate scheduler that loads the parms then calls the SQR. This is how the batch scheduler works in many applications, including but not limited to Peoplesoft. Cheers, Steve. -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Ray Ontko Sent: Saturday, 18 October 2003 8:32 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Dynamic Substitution Vars Matt, I don't know if this will work for you, but in situations where I've needed dynamic SQR code, I have writen an SQR program that generates the SQR program (using WRITE or PRINT). You can even use the generator program to launch the generated program using CALL SYSTEM. Ray On Fri, Oct 17, 2003 at 04:26:20PM -0400, Matt Rogish wrote: > All, > > I sent a message earlier about dynamic 'input' variables and got some > interesting suggestions on and off list, none of which worked out quite as > I had hoped. > > To re-cap: > We have lots of programs which have this basic structure: > set up variables > ask for input > run some SQL > show report > show summary > > In order to ease maintenance what I'd like to do is standardize the "set up > variables", "ask for input", and "show summary" pieces using some sort of > dynamic SQR. > > In the summary section we list some report variables (counters and things) > and we like to list the input parameters because there's nothing like > getting a complex multi-section report and trying to guess what input > parameters the particular report was run with (because the user forgets, or > you look at the report a month later, or they were in Brio Portal but have > since been changed, etc.). > > The way we have it now is something like this: > begin-procedure get-input > Input $code 'Enter some code' > Input $begin_date 'Enter report begin date' type=date > .. > end-procedure > > begin-procedure show-input-summary > print 'Input Parameters:' (+1) bold > > print 'Some Code: ' (+2) > print $code > > print 'Begin Date: ' (+2) > print $begin_date > > etc. > end-procedure > > Oftentimes there are many parameters so it becomes cumbersome to list long > blocks of Input and print statements. It also makes maintenance a > nightmare because you don't know which programs require what input and if > you want to change/add one you have to change it several places. > > So, the goal is to minimize code changes when the input parameter list > changes -- either by adding, changing, or removing input > parameters. Preferably, there would be one spot in the program where I > change a parameter list and the get-input and show-input-summary procedures > do not have to change! It goes without saying that there might have to be > other changes to handle the addition or removal of a parameter, but that > can come later. :) > > Some ideas I've considered are: > Idea One -- Build an array which stores the input parameter name > ("some_code") and input query string ("Enter some code") then loop through > each one and build an 'Input' statement from this. > Problem: > I don't know how to execute dynamic SQR code, namely something like: > let $stmt = 'Input $' || $input_var_name || ' ''' || $input_query || '''' > [$stmt] > This gives an error: > (SQR 4008) Unknown function or variable in expression: [$stmt] > > Idea Two -- Create substitution variables, loop through each of them, and > use them in Input statements. > Problem: > I can't dynamically *name* a substitution variable: > Let #num = 1 > #DEFINE variable_number_#1 > Show {variable_number_1} > This gives an error: > (SQR 4707) No value found for substitution variable: {variable_number_1} > > Any help/ideas? > > > Thanks, > > -- > Matt Rogish - rogishmn@muohio.edu > > _______________________________________________ > 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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Oct 20 09:26:08 2003 Subject: RE: [sqr-users] INPUT Parms Date: Mon, 20 Oct 2003 09:25:08 -0500 From: "Knapp, Richard" I'm on version 4 of SQR and have always built up quoted and comma separated strings by concatenating the elements. I use chr() to create the repeated elements like ', and ). Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Hunsaker, Michael S [mailto:mhunsake@indiana.edu] Sent: Monday, October 20, 2003 8:51 AM To: sqr-users@sqrug.org Subject: [sqr-users] INPUT Parms Hello - I am trying to use an INPUT statement to grab one or more choices from the user. For example, my input statement: Input $campus 'Enter Campus Code: ' type=char I am asking the user to enter the campus or campuses to view data for. The main problem I am running into is building the dynamic where clause. Since the user input will look something like the below line, I cannot build the data into a where clause without the single quotes. BL, IN, SB Is there an easy way to pad each input with single quotes? I would like the response to look like this in order to build the dynamic where clause. 'BL','IN','SB' Since I am new to SQR, I am probably overseeing a particular function that would help me out. Normally there are "explode/implode" functions to be used in cases like these. Thanks. Mike -----Original Message----- From: Steve Cavill [mailto:steve.cavill@infoclarity.com.au] Sent: Friday, October 17, 2003 10:52 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Dynamic Substitution Vars Matt, How about setting up the command line so when the job runs it simply reads the parameters off the command line in pairs: SQRW.EXE parm1name=parm1value parm2name=parm2value.... etc use ONE input command in a loop with the batch-mode option to stop reading when you run out of parms. then use an evaluate to determine which parms have been supplied: e.g. SQRW.EXE begin-date='01-jan-03' code='blah blah' .... etc ... while (1) input $parm status=#stat batch-mode if #stat=3 break else do get_parm ($parm) end-if end-while begin-procedure get_parm($a) unstring $a by '=' into $parm $value !either print the parms now, or save in an array for printing later evaluate $parm when 'begin-date' let $begin-date=$value when 'code' let $code=$value when....etc end-evaluate If you don't like the evaluate as hard to maintain you could also load the parms into a table in pairs. the table would have three (or more) columns Report_code, input_parm_name, input_value then your program can do a select against the table to get all the required parms when required: e.g. begin-select begin-date from table where input_parm_name = 'begin-date' and Report_code='xxx' end-select The advantage of saving the parms in a table is you can keep the parms for as long as you like if you use one table and make the Report_code unique. So you can retrieve the parms at any time for history or problem diagnosis. You can either load the parms into the table within the SQR program or have a separate scheduler that loads the parms then calls the SQR. This is how the batch scheduler works in many applications, including but not limited to Peoplesoft. Cheers, Steve. -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Ray Ontko Sent: Saturday, 18 October 2003 8:32 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Dynamic Substitution Vars Matt, I don't know if this will work for you, but in situations where I've needed dynamic SQR code, I have writen an SQR program that generates the SQR program (using WRITE or PRINT). You can even use the generator program to launch the generated program using CALL SYSTEM. Ray On Fri, Oct 17, 2003 at 04:26:20PM -0400, Matt Rogish wrote: > All, > > I sent a message earlier about dynamic 'input' variables and got some > interesting suggestions on and off list, none of which worked out quite as > I had hoped. > > To re-cap: > We have lots of programs which have this basic structure: > set up variables > ask for input > run some SQL > show report > show summary > > In order to ease maintenance what I'd like to do is standardize the "set up > variables", "ask for input", and "show summary" pieces using some sort of > dynamic SQR. > > In the summary section we list some report variables (counters and things) > and we like to list the input parameters because there's nothing like > getting a complex multi-section report and trying to guess what input > parameters the particular report was run with (because the user forgets, or > you look at the report a month later, or they were in Brio Portal but have > since been changed, etc.). > > The way we have it now is something like this: > begin-procedure get-input > Input $code 'Enter some code' > Input $begin_date 'Enter report begin date' type=date > .. > end-procedure > > begin-procedure show-input-summary > print 'Input Parameters:' (+1) bold > > print 'Some Code: ' (+2) > print $code > > print 'Begin Date: ' (+2) > print $begin_date > > etc. > end-procedure > > Oftentimes there are many parameters so it becomes cumbersome to list long > blocks of Input and print statements. It also makes maintenance a > nightmare because you don't know which programs require what input and if > you want to change/add one you have to change it several places. > > So, the goal is to minimize code changes when the input parameter list > changes -- either by adding, changing, or removing input > parameters. Preferably, there would be one spot in the program where I > change a parameter list and the get-input and show-input-summary procedures > do not have to change! It goes without saying that there might have to be > other changes to handle the addition or removal of a parameter, but that > can come later. :) > > Some ideas I've considered are: > Idea One -- Build an array which stores the input parameter name > ("some_code") and input query string ("Enter some code") then loop through > each one and build an 'Input' statement from this. > Problem: > I don't know how to execute dynamic SQR code, namely something like: > let $stmt = 'Input $' || $input_var_name || ' ''' || $input_query || '''' > [$stmt] > This gives an error: > (SQR 4008) Unknown function or variable in expression: [$stmt] > > Idea Two -- Create substitution variables, loop through each of them, and > use them in Input statements. > Problem: > I can't dynamically *name* a substitution variable: > Let #num = 1 > #DEFINE variable_number_#1 > Show {variable_number_1} > This gives an error: > (SQR 4707) No value found for substitution variable: {variable_number_1} > > Any help/ideas? > > > Thanks, > > -- > Matt Rogish - rogishmn@muohio.edu > > _______________________________________________ > 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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.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 Oct 20 11:00:26 2003 Date: Mon, 20 Oct 2003 10:58:46 -0500 From: Gar Longworth Subject: Re: [sqr-users] INPUT Parms The way I do it is to concatinate the quotes seperately. If you collect the input values BL, IN and SB from input variables $LOC1, $LOC2 and $LOC3 and want to build the following where clause: where $SCHOOL in ('BL', 'IN','SB') First build the part in parenthesise with code like this: LET $CLAUSE = '(' || '''' || $LOC1 || '''' || ',' || '''' || $LOC2 || '''' || ',' ! repeat as many times as needed for all locations || '''' || $LOC3 || || ')' Then add the where clause like this: select SCHOOL from (table name) where SCHOOL in [$CLAUSE] Knapp, Richard wrote: >I'm on version 4 of SQR and have always built up quoted and comma separated strings by concatenating the elements. I use chr() to create the repeated elements like ', and ). > >Richard Knapp >Database Programmer/Analyst >Institutional Research and Planning >University of Missouri System >573-882-8856 >knappr@umsystem.edu > > >-----Original Message----- >From: Hunsaker, Michael S [mailto:mhunsake@indiana.edu] >Sent: Monday, October 20, 2003 8:51 AM >To: sqr-users@sqrug.org >Subject: [sqr-users] INPUT Parms > > >Hello - > >I am trying to use an INPUT statement to grab one or more choices from >the user. For example, my input statement: > >Input $campus 'Enter Campus Code: ' type=char > >I am asking the user to enter the campus or campuses to view data for. >The main problem I am running into is building the dynamic where clause. >Since the user input will look something like the below line, I cannot >build the data into a where clause without the single quotes. > >BL, IN, SB > >Is there an easy way to pad each input with single quotes? I would like >the response to look like this in order to build the dynamic where >clause. > >'BL','IN','SB' > >Since I am new to SQR, I am probably overseeing a particular function >that would help me out. Normally there are "explode/implode" functions >to be used in cases like these. > >Thanks. > >Mike > > >-----Original Message----- >From: Steve Cavill [mailto:steve.cavill@infoclarity.com.au] >Sent: Friday, October 17, 2003 10:52 PM >To: sqr-users@sqrug.org >Subject: RE: [sqr-users] Dynamic Substitution Vars > >Matt, >How about setting up the command line so when the job runs it simply >reads >the parameters off the command line in pairs: >SQRW.EXE parm1name=parm1value parm2name=parm2value.... >etc >use ONE input command in a loop with the batch-mode option to stop >reading >when you run out of parms. >then use an evaluate to determine which parms have been supplied: > >e.g. > >SQRW.EXE begin-date='01-jan-03' code='blah blah' .... >etc >... > while (1) > input $parm status=#stat batch-mode > if #stat=3 > break > else > do get_parm ($parm) > end-if > end-while > >begin-procedure get_parm($a) > unstring $a by '=' into $parm $value > !either print the parms now, or save in an array for printing later >evaluate $parm > when 'begin-date' > let $begin-date=$value > when 'code' > let $code=$value > when....etc >end-evaluate > >If you don't like the evaluate as hard to maintain you could also load >the >parms into a table in pairs. the table would have three (or more) >columns >Report_code, input_parm_name, input_value > >then your program can do a select against the table to get all the >required >parms when required: >e.g. >begin-select >begin-date >from table >where input_parm_name = 'begin-date' and Report_code='xxx' >end-select > >The advantage of saving the parms in a table is you can keep the parms >for >as long as you like if you use one table and make the Report_code >unique. >So you can retrieve the parms at any time for history or problem >diagnosis. > >You can either load the parms into the table within the SQR program or >have >a separate scheduler that loads the parms then calls the SQR. This is >how >the batch scheduler works in many applications, including but not >limited to >Peoplesoft. > >Cheers, Steve. > >-----Original Message----- >From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On >Behalf Of Ray Ontko >Sent: Saturday, 18 October 2003 8:32 AM >To: sqr-users@sqrug.org >Subject: Re: [sqr-users] Dynamic Substitution Vars > > >Matt, > >I don't know if this will work for you, but in situations where >I've needed dynamic SQR code, I have writen an SQR program that >generates the SQR program (using WRITE or PRINT). You can even >use the generator program to launch the generated program using >CALL SYSTEM. > >Ray > >On Fri, Oct 17, 2003 at 04:26:20PM -0400, Matt Rogish wrote: > > >>All, >> >>I sent a message earlier about dynamic 'input' variables and got some >>interesting suggestions on and off list, none of which worked out >> >> >quite as > > >>I had hoped. >> >>To re-cap: >>We have lots of programs which have this basic structure: >>set up variables >>ask for input >>run some SQL >>show report >>show summary >> >>In order to ease maintenance what I'd like to do is standardize the >> >> >"set >up > > >>variables", "ask for input", and "show summary" pieces using some sort >> >> >of > > >>dynamic SQR. >> >>In the summary section we list some report variables (counters and >> >> >things) > > >>and we like to list the input parameters because there's nothing like >>getting a complex multi-section report and trying to guess what input >>parameters the particular report was run with (because the user >> >> >forgets, >or > > >>you look at the report a month later, or they were in Brio Portal but >> >> >have > > >>since been changed, etc.). >> >>The way we have it now is something like this: >>begin-procedure get-input >> Input $code 'Enter some code' >> Input $begin_date 'Enter report begin date' type=date >> .. >>end-procedure >> >>begin-procedure show-input-summary >> print 'Input Parameters:' (+1) bold >> >> print 'Some Code: ' (+2) >> print $code >> >> print 'Begin Date: ' (+2) >> print $begin_date >> >> etc. >>end-procedure >> >>Oftentimes there are many parameters so it becomes cumbersome to list >> >> >long > > >>blocks of Input and print statements. It also makes maintenance a >>nightmare because you don't know which programs require what input and >> >> >if > > >>you want to change/add one you have to change it several places. >> >>So, the goal is to minimize code changes when the input parameter list >>changes -- either by adding, changing, or removing input >>parameters. Preferably, there would be one spot in the program where >> >> >I > > >>change a parameter list and the get-input and show-input-summary >> >> >procedures > > >>do not have to change! It goes without saying that there might have >> >> >to be > > >>other changes to handle the addition or removal of a parameter, but >> >> >that > > >>can come later. :) >> >>Some ideas I've considered are: >>Idea One -- Build an array which stores the input parameter name >>("some_code") and input query string ("Enter some code") then loop >> >> >through > > >>each one and build an 'Input' statement from this. >>Problem: >>I don't know how to execute dynamic SQR code, namely something like: >>let $stmt = 'Input $' || $input_var_name || ' ''' || $input_query || >> >> >'''' > > >>[$stmt] >>This gives an error: >>(SQR 4008) Unknown function or variable in expression: [$stmt] >> >>Idea Two -- Create substitution variables, loop through each of them, >> >> >and > > >>use them in Input statements. >>Problem: >>I can't dynamically *name* a substitution variable: >>Let #num = 1 >>#DEFINE variable_number_#1 >>Show {variable_number_1} >>This gives an error: >>(SQR 4707) No value found for substitution variable: >> >> >{variable_number_1} > > >>Any help/ideas? >> >> >>Thanks, >> >>-- >>Matt Rogish - rogishmn@muohio.edu >> >>_______________________________________________ >>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 > >_______________________________________________ >sqr-users mailing list >sqr-users@sqrug.org >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 Mon Oct 20 11:47:06 2003 Date: Mon, 20 Oct 2003 11:46:38 -0500 (EST) From: Don Mellen Subject: Re: [sqr-users] INPUT Parms The problem with the multiple input statements approach is that you need as many inputs as the maximum number of elements you want to allow. And if the users want one more than that, then you have to change the code. Allowing a comma seperated string for a single input is more flexible. Then you can either do.... let $campus = '''' || replace( translate($campus,' ',''), ',', ''',''') || '''' ... if you're on 6.0 or higher (replace was added then), or write a while loop to pick it apart and reconstruct it, something like .... begin-procedure make_quoted_string (:$str) move '''' to $qstr move 1 to #start while 1 let #pos = instr($str, ',', #start) if #pos = 0 break end-if let $qstr = $qstr || ltrim(rtrim( substr($str, #start, (#pos - #start)) , ' '), ' ') || ''',''' let #start = #pos + 1 end-while let $qstr = $qstr || ltrim(rtrim( substr($str, #start, length($str) + 1) , ' '), ' ') || '''' move $qstr to $str end-procedure ... Both of these assume input of values that will not contain spaces, of course. On Mon, 20 Oct 2003, Gar Longworth wrote: > The way I do it is to concatinate the quotes seperately. If you collect > the input values BL, IN and SB from input variables $LOC1, $LOC2 and > $LOC3 and want to build the following where clause: > > where $SCHOOL in ('BL', 'IN','SB') > > First build the part in parenthesise with code like this: > > LET $CLAUSE = > '(' > || '''' || $LOC1 || '''' || ',' > || '''' || $LOC2 || '''' || ',' ! repeat as many times as needed > for all locations > || '''' || $LOC3 || > || ')' > > Then add the where clause like this: > > select > SCHOOL > from (table name) > where SCHOOL in [$CLAUSE] > > > >-----Original Message----- > >From: Hunsaker, Michael S [mailto:mhunsake@indiana.edu] > >Sent: Monday, October 20, 2003 8:51 AM > >To: sqr-users@sqrug.org > >Subject: [sqr-users] INPUT Parms > > > > > >Hello - > > > >I am trying to use an INPUT statement to grab one or more choices from > >the user. For example, my input statement: > > > >Input $campus 'Enter Campus Code: ' type=char > > > >I am asking the user to enter the campus or campuses to view data for. > >The main problem I am running into is building the dynamic where clause. > >Since the user input will look something like the below line, I cannot > >build the data into a where clause without the single quotes. > > > >BL, IN, SB > > > >Is there an easy way to pad each input with single quotes? I would like > >the response to look like this in order to build the dynamic where > >clause. > > > >'BL','IN','SB' > > > >Since I am new to SQR, I am probably overseeing a particular function > >that would help me out. Normally there are "explode/implode" functions > >to be used in cases like these. > > > >Thanks. > > > >Mike > > ----------------------------------------------------------------------- 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 Mon Oct 20 12:13:24 2003 From: "Sahani, Dev" Subject: RE: [sqr-users] INPUT Parms Date: Mon, 20 Oct 2003 13:11:37 -0400 Here is a procedure that I wrote for the same purpose. Just put this procedure in you SQR and after you get the input from user, in the next statement call this procedure as: Do AddDelimiters($campus) This will reformat your $campus and you can put it into your where clause. Begin-Procedure AddDelimiters(:$InputParam) Let #delimiter_pos = 0 Let #Found = 0 Let $tmp_str1 = '' Let $tmp_str2 = $InputParam Let $tmp_str3 = '' While 1 Find ',' IN $tmp_str2 #delimiter_pos #Found If #Found <> -1 Let $tmp_str1 = SubStr($tmp_str2, 1, #Found ) || ''', ''' Let $tmp_str2 = SubStr($tmp_str2, #Found + 2, length($tmp_str2)) Let $tmp_str3 = $tmp_str3 || $tmp_str1 Else Let $tmp_str3 = $tmp_str3 || $tmp_str2 Break End-If End-While If SubStr($tmp_str3, 1, 1) != '''' Let $tmp_str3 = '''' || $tmp_str3 || '''' End-If Let $InputParam = $tmp_str3 End-Procedure Hope this helps, Dèv Rishi Sahani -------------------- FESCo DB Systems Fidelity Investments -----Original Message----- From: Hunsaker, Michael S [mailto:mhunsake@indiana.edu] Sent: Monday, October 20, 2003 9:51 AM To: sqr-users@sqrug.org Subject: [sqr-users] INPUT Parms Hello - I am trying to use an INPUT statement to grab one or more choices from the user. For example, my input statement: Input $campus 'Enter Campus Code: ' type=char I am asking the user to enter the campus or campuses to view data for. The main problem I am running into is building the dynamic where clause. Since the user input will look something like the below line, I cannot build the data into a where clause without the single quotes. BL, IN, SB Is there an easy way to pad each input with single quotes? I would like the response to look like this in order to build the dynamic where clause. 'BL','IN','SB' Since I am new to SQR, I am probably overseeing a particular function that would help me out. Normally there are "explode/implode" functions to be used in cases like these. Thanks. Mike -----Original Message----- From: Steve Cavill [mailto:steve.cavill@infoclarity.com.au] Sent: Friday, October 17, 2003 10:52 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Dynamic Substitution Vars Matt, How about setting up the command line so when the job runs it simply reads the parameters off the command line in pairs: SQRW.EXE parm1name=parm1value parm2name=parm2value.... etc use ONE input command in a loop with the batch-mode option to stop reading when you run out of parms. then use an evaluate to determine which parms have been supplied: e.g. SQRW.EXE begin-date='01-jan-03' code='blah blah' .... etc ... while (1) input $parm status=#stat batch-mode if #stat=3 break else do get_parm ($parm) end-if end-while begin-procedure get_parm($a) unstring $a by '=' into $parm $value !either print the parms now, or save in an array for printing later evaluate $parm when 'begin-date' let $begin-date=$value when 'code' let $code=$value when....etc end-evaluate If you don't like the evaluate as hard to maintain you could also load the parms into a table in pairs. the table would have three (or more) columns Report_code, input_parm_name, input_value then your program can do a select against the table to get all the required parms when required: e.g. begin-select begin-date from table where input_parm_name = 'begin-date' and Report_code='xxx' end-select The advantage of saving the parms in a table is you can keep the parms for as long as you like if you use one table and make the Report_code unique. So you can retrieve the parms at any time for history or problem diagnosis. You can either load the parms into the table within the SQR program or have a separate scheduler that loads the parms then calls the SQR. This is how the batch scheduler works in many applications, including but not limited to Peoplesoft. Cheers, Steve. -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org]On Behalf Of Ray Ontko Sent: Saturday, 18 October 2003 8:32 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Dynamic Substitution Vars Matt, I don't know if this will work for you, but in situations where I've needed dynamic SQR code, I have writen an SQR program that generates the SQR program (using WRITE or PRINT). You can even use the generator program to launch the generated program using CALL SYSTEM. Ray On Fri, Oct 17, 2003 at 04:26:20PM -0400, Matt Rogish wrote: > All, > > I sent a message earlier about dynamic 'input' variables and got some > interesting suggestions on and off list, none of which worked out quite as > I had hoped. > > To re-cap: > We have lots of programs which have this basic structure: > set up variables > ask for input > run some SQL > show report > show summary > > In order to ease maintenance what I'd like to do is standardize the "set up > variables", "ask for input", and "show summary" pieces using some sort of > dynamic SQR. > > In the summary section we list some report variables (counters and things) > and we like to list the input parameters because there's nothing like > getting a complex multi-section report and trying to guess what input > parameters the particular report was run with (because the user forgets, or > you look at the report a month later, or they were in Brio Portal but have > since been changed, etc.). > > The way we have it now is something like this: begin-procedure > get-input > Input $code 'Enter some code' > Input $begin_date 'Enter report begin date' type=date > .. > end-procedure > > begin-procedure show-input-summary > print 'Input Parameters:' (+1) bold > > print 'Some Code: ' (+2) > print $code > > print 'Begin Date: ' (+2) > print $begin_date > > etc. > end-procedure > > Oftentimes there are many parameters so it becomes cumbersome to list long > blocks of Input and print statements. It also makes maintenance a > nightmare because you don't know which programs require what input and if > you want to change/add one you have to change it several places. > > So, the goal is to minimize code changes when the input parameter list > changes -- either by adding, changing, or removing input parameters. > Preferably, there would be one spot in the program where I > change a parameter list and the get-input and show-input-summary procedures > do not have to change! It goes without saying that there might have to be > other changes to handle the addition or removal of a parameter, but that > can come later. :) > > Some ideas I've considered are: > Idea One -- Build an array which stores the input parameter name > ("some_code") and input query string ("Enter some code") then loop through > each one and build an 'Input' statement from this. > Problem: > I don't know how to execute dynamic SQR code, namely something like: > let $stmt = 'Input $' || $input_var_name || ' ''' || $input_query || '''' > [$stmt] > This gives an error: > (SQR 4008) Unknown function or variable in expression: [$stmt] > > Idea Two -- Create substitution variables, loop through each of them, and > use them in Input statements. > Problem: > I can't dynamically *name* a substitution variable: > Let #num = 1 > #DEFINE variable_number_#1 > Show {variable_number_1} > This gives an error: > (SQR 4707) No value found for substitution variable: {variable_number_1} > > Any help/ideas? > > > Thanks, > > -- > Matt Rogish - rogishmn@muohio.edu > > _______________________________________________ > 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 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.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 Oct 20 11:34:20 2003 From: "Lambert, Kent" Date: Mon, 20 Oct 2003 09:23:53 -0700 Subject: [sqr-users] -PRINTER:EH I can't get the flag -PRINTER:EH to work. If I run the SQR without the -PRINTER:EH flag an .lis is created, when I run it with the flag -PRINTER:EH the job runs but no output is created. Am I missing a setting somewhere? Thanks, Kent Lambert Provident Bank ************************************************************************************************** This message contains information that may be confidential and privileged. The information is intended solely for the recipient and use by any other party is not authorized. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is strictly prohibited. If you have received this electronic transmission in error, please notify us at help@myprovident.com ************************************************************************************************** _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Oct 21 09:16:14 2003 Date: Tue, 21 Oct 2003 10:14:49 -0400 From: "White, Denise" Subject: [sqr-users] RE: INPUT Parms Hi Mike, You can do this by putting the INPUT in a loop and concatenating the values as the user inputs them. Here is an example that also gives the user the option of selecting all values (in which case there will not be a condition generated): ! opening quote move '''' to $order_groups while 1 = 1 input $order_group maxlen=6 'Enter Order Group or ''ALL'' or leave blank to exit' uppercase $order_group ! if user selects all order groups, there will be no condition generated (see statement following loop) if $order_group = 'ALL' move $order_group to $order_groups move '' to $select_order_groups break end-if ! final quote and break out of loop when user has not input a value if rtrim($order_group, ' ') = '' concat '''' with $order_groups break end-if ! concatenate comma if there is already an order group in the string if $order_groups <> '''' concat ''',''' with $order_groups end-if ! concatenate order group value concat $order_group with $order_groups end-while ! set up condition to be used in WHERE clause (if not all order groups) if $order_groups <> 'ALL' let $select_order_groups = 'and h.order_grp in ('||$order_groups||')' end-if HTH, Denise M. White Sr. Software Engineer Vicor --__--__-- Message: 2 Date: Mon, 20 Oct 2003 08:50:44 -0500 From: "Hunsaker, Michael S" To: Subject: [sqr-users] INPUT Parms Reply-To: sqr-users@sqrug.org Hello - I am trying to use an INPUT statement to grab one or more choices from the user. For example, my input statement: Input $campus 'Enter Campus Code: ' type=char I am asking the user to enter the campus or campuses to view data for. The main problem I am running into is building the dynamic where clause. Since the user input will look something like the below line, I cannot build the data into a where clause without the single quotes. BL, IN, SB Is there an easy way to pad each input with single quotes? I would like the response to look like this in order to build the dynamic where clause. 'BL','IN','SB' Since I am new to SQR, I am probably overseeing a particular function that would help me out. Normally there are "explode/implode" functions to be used in cases like these. Thanks. Mike _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Oct 21 18:29:17 2003 From: "Deborah Harris" Date: Tue, 21 Oct 2003 18:25:57 -0500 Subject: [sqr-users] Date Calculations Help Hi Everyone, I need to do some date calculations based on a value I receive from a user. They supply me with a number like 5. I then need to calculate 5 days back from the current date and then do a selection of records based on the current date and the new calculated date. Does anyone have some sample code on how I can do this? I am using SQR 8.1 and accessing a db2 database. Thanks in advance for any help.. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Tue Oct 21 18:43:14 2003 From: "Alexander, Steve" Subject: RE: [sqr-users] Date Calculations Help Date: Tue, 21 Oct 2003 16:49:37 -0700 I'm not sure about db2, but some databases would allow: input #days 'How many days' begin-select ... from table t where t.datefield between (sysdate - #days) and sysdate end-select -----Original Message----- From: Deborah Harris [mailto:dharris@activeinterest.com] Sent: Tuesday, October 21, 2003 4:26 PM To: 'Sqr-Users Group' Subject: [sqr-users] Date Calculations Help Hi Everyone, I need to do some date calculations based on a value I receive from a user. They supply me with a number like 5. I then need to calculate 5 days back from the current date and then do a selection of records based on the current date and the new calculated date. Does anyone have some sample code on how I can do this? I am using SQR 8.1 and accessing a db2 database. Thanks in advance for any help.. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Thu Oct 23 12:37:58 2003 From: "Tritt, Merrill" Date: Thu, 23 Oct 2003 13:35:59 -0400 Subject: RE: [sqr-users] Date Calculations Help One way to do this in DB2 is: DATE(DAYS(CAST($ASOFDATE AS DATE)) - 7) (Replace 7 with your variable.) Alternatively, $TargetDate > $ASOFDATE - 7 DAYS should also work, but you may need to wrap a CAST around it. Merrill -----Original Message----- From: Alexander, Steve [mailto:Steven.Alexander@sanjoseca.gov] Sent: Tuesday, October 21, 2003 7:50 PM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] Date Calculations Help I'm not sure about db2, but some databases would allow: input #days 'How many days' begin-select ... from table t where t.datefield between (sysdate - #days) and sysdate end-select -----Original Message----- From: Deborah Harris [mailto:dharris@activeinterest.com] Sent: Tuesday, October 21, 2003 4:26 PM To: 'Sqr-Users Group' Subject: [sqr-users] Date Calculations Help Hi Everyone, I need to do some date calculations based on a value I receive from a user. They supply me with a number like 5. I then need to calculate 5 days back from the current date and then do a selection of records based on the current date and the new calculated date. Does anyone have some sample code on how I can do this? I am using SQR 8.1 and accessing a db2 database. Thanks in advance for any help.. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Oct 22 04:51:27 2003 Date: Wed, 22 Oct 2003 02:49:11 -0700 (PDT) From: Harold Peacock Subject: [sqr-users] Flat-File Manipulation Help I've just started working in SQR, and I've been "thrown into the fire" literally with my current project. :) I've spent most of the day scanning posts and reviewing sample code (both online and in print). Given: File Name: FLATtest.txt (straight flat file, no commas or ticks) Primary Mission: (1) Read/Scan File... (2) Where position 1 is blank, insert letter 'D' into position 1 and null positions 26 - 36. ***** ROUGH CODE SO FAR ***** Begin-Procedure Read-AT-File ! ! Open FLATtest.txt ! open 'FLATtest.txt' as 1 for-reading record=78:vary Do-Read-AT-File if #end-file break ! End of file reached end-if ! Close FLATtest.txt close 1 End-Procedure ! Read-AT-File Begin-Procedure Update-AT-File ! ! Open FLATtest.txt ! open 'FLATtest.txt' as 2 for-writing record=78:vary Do-Update-AT-File if position (+1) is null write 'D' into position (+1) write ' ' into position (+26) write ' ' into position (+27) write ' ' into position (+28) write ' ' into position (+29) write ' ' into position (+30) write ' ' into position (+31) write ' ' into position (+32) write ' ' into position (+33) write ' ' into position (+34) write ' ' into position (+35) write ' ' into position (+36) end-if while 2 ! loop until break if #end-file break ! End of file reached end-if ! Close FLATtest.txt close 2 End-Procedure ! Update-AT-File ************* EOF *********** If Possible: (1) Save original file as FLATtest.orig (2) Save updated file as FLATtest.new NOTE: Please be reminded that I just started coding in SQR and I'm just getting used to how it works. My machine isn't even configured to compile yet, so I'm not even sure if the syntax so far is correct. I have the logic down, it's just translating it properly is my issue now. Any assistance would be greatly appreciated. Thanks, H. Peacock hpeacock@yahoo.com __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.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 Oct 22 08:22:06 2003 Date: Wed, 22 Oct 2003 08:18:30 -0500 From: Eric Dimick Eastman Subject: Re: [sqr-users] Flat-File Manipulation Help Harold, A few general points to remember: 1) Recursion in SQR is arcane in the extreme. Don't try calling a procedure from within itself until you are VERY sure you know what you are doing. 2) SQR can handle this kind of flat file string manipulation just fine, but it is not the main thrust of the language. Most of the commands won't apply. If you have to do a lot of things like this you may want to use Perl. 3) These kinds of file often come from mainframe computers which often contain the null character (character #0). SQR uses null terminated strings internally, so when you read a line everything after the first null disappears. If this is the case, you can either fix the file with another tool or read each line one byte at a time. If your file does not have nulls in it, the following program should work. HTH, Eric !I like to give the file handles names so I don't forget them. #define INFILE 1 #define OUTFILE 2 begin-program do move_file do write_new_file end-program !---------------------------------------------------------------- begin-procedure move_file if rename('FLATtest.txt', 'FLATtest.orig') != 0 show 'Error renaming file' stop end-if end-procedure move_file !---------------------------------------------------------------- begin-procedure write_new_file ! you got this next line right open 'FLATtest.orig' as {INFILE} for-reading record=78:vary open 'FLATtest.new' as {OUTFILE} for-writing record=78:vary while 1 read {INFILE} into $line:78 if #end-file break end-if if substr($line, 1, 1) = ' ' let $seg_1 = substr($line, 2, 24) let $seg_2 = substr($line, 37, 99) !the rest of line let $eleven_spaces = lpad(' ', 11, ' ') string 'D' $seg_1 $eleven_spaces $seg_2 by '' into $line end-if write {OUTFILE} from $line end-while close {INFILE} close {OUTFILE} end-procedure write_new_file Harold Peacock wrote: > I've just started working in SQR, and I've been "thrown into the fire" > literally with my current project. :) I've spent most of the day > scanning posts and reviewing sample code (both online and in print). > > Given: > File Name: FLATtest.txt (straight flat file, no commas or ticks) > > Primary Mission: > (1) Read/Scan File... > (2) Where position 1 is blank, insert letter 'D' into position 1 and > null positions 26 - 36. > > ***** ROUGH CODE SO FAR ***** > > Begin-Procedure Read-AT-File > ! > ! Open FLATtest.txt > ! > open 'FLATtest.txt' as 1 for-reading record=78:vary > > Do-Read-AT-File > > if #end-file > break ! End of file reached > end-if > > ! Close FLATtest.txt > close 1 > > End-Procedure ! Read-AT-File > > Begin-Procedure Update-AT-File > ! > ! Open FLATtest.txt > ! > open 'FLATtest.txt' as 2 for-writing record=78:vary > > Do-Update-AT-File > > if position (+1) is null > write 'D' into position (+1) > write ' ' into position (+26) > write ' ' into position (+27) > write ' ' into position (+28) > write ' ' into position (+29) > write ' ' into position (+30) > write ' ' into position (+31) > write ' ' into position (+32) > write ' ' into position (+33) > write ' ' into position (+34) > write ' ' into position (+35) > write ' ' into position (+36) > end-if > > while 2 ! loop until break > > if #end-file > break ! End of file reached > end-if > > ! Close FLATtest.txt > close 2 > > End-Procedure ! Update-AT-File > > ************* EOF *********** > > If Possible: > (1) Save original file as FLATtest.orig > (2) Save updated file as FLATtest.new > > NOTE: Please be reminded that I just started coding in SQR and I'm just > getting used to how it works. My machine isn't even configured to > compile yet, so I'm not even sure if the syntax so far is correct. I > have the logic down, it's just translating it properly is my issue now. > > Any assistance would be greatly appreciated. > > Thanks, > H. Peacock > hpeacock@yahoo.com > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.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 Oct 22 06:51:21 2003 From: Ray Ontko Date: Wed, 22 Oct 2003 06:50:01 -0500 Subject: [sqr-users] Re: SQR Help.... Harold, It looks like you've already successfully posted this message to the sqr-users group. You should get a good response. The basic read loop looks like this: open $input_name as 1 for-reading record=32767:vary open $output_name as 2 for-writing record=32767:vary while 1 read 1 into $line:32767 if #end-file break end-if if isblank(substr($line,1,1)) let $line = 'D' || substr($line,2,length($line)-1) end-if write 2 from $line end-while close 1 close 2 Ray On Wed, Oct 22, 2003 at 05:33:48AM -0400, DJ Bishop wrote: > Ray - > > I came across your website while scanning the posts at sqrug.org. I > joined the group and am anxiously awaiting the okay to post. In the > meantime I need your help. > > I've just started working in SQR, and I've been "thrown into the fire" > literally with my current project. I've spent most of the day scanning > posts and reviewing sample code (both online and in print). > > Given: > File Name: FLATtest.txt (straight flat file, no commas or ticks) > > Primary Mission: > (1) Read/Scan File... > (2) Where position 1 is blank, insert letter 'D' into position 1 and > null positions 26 - 36. > > ***** ROUGH CODE SO FAR ***** > > Begin-Procedure Read-AT-File > ! > ! Open FLATtest.txt > ! > open 'FLATtest.txt' as 1 for-reading record=78:vary > > Do-Read-AT-File > > if #end-file > break ! End of file reached > end-if > > ! Close FLATtest.txt > close 1 > > End-Procedure ! Read-AT-File > > > > Begin-Procedure Update-AT-File > ! > ! Open FLATtest.txt > ! > open 'FLATtest.txt' as 2 for-writing record=78:vary > > Do-Update-AT-File > > if position (+1) is null > write 'D' into position (+1) > write ' ' into position (+26) > write ' ' into position (+27) > write ' ' into position (+28) > write ' ' into position (+29) > write ' ' into position (+30) > write ' ' into position (+31) > write ' ' into position (+32) > write ' ' into position (+33) > write ' ' into position (+34) > write ' ' into position (+35) > write ' ' into position (+36) > end-if > > while 2 ! loop until break > > if #end-file > break ! End of file reached > end-if > > ! Close FLATtest.txt > close 2 > > End-Procedure ! Update-AT-File > > ************* EOF *********** > > If Possible: > (1) Save original file as FLATtest.orig > (2) Save updated file as FLATtest.new > > NOTE: Please be reminded that I just started coding in SQR and I'm just > getting used to how it works. My machine isn't even configured to > compile yet, so I'm not even sure if the syntax so far is correct. I > have the logic down, it's just translating it properly is my issue now. > > Any assistance would be greatly appreciated. > > Thanks, > H. Peacock > hpeacock@yahoo.com ---------------------------------------------------------------------- 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 Oct 22 09:40:19 2003 From: "Deborah Harris" Date: Wed, 22 Oct 2003 09:38:43 -0500 Subject: [sqr-users] HELP.. Creating Dynamic Select/SQL Statement I am trying to create a dynamic select statement to be generated in SQR.. I have tried using begin-sql and begin-select and I still get an error message. I need to assign the value from the select statement to a variable.. Where am I going wrong. Here is my code. Begin-Procedure Get_Start_Date Let $numdays = '-'||$_Num_Days Let $startdatesql = 'current timestamp '||$numdays||' from sysibm.sysdummy1' Begin-select [$startdatesql] &start_date end-select End-Procedure I get this error message. Error on line 189: (SQR 7740) Invalid &pseudonym or 'TYPE=' data-type specified for a begin-select column-variable. Valid types are: CHAR, TEXT, DATE, NUMBER [$startdatesql] &start_date Errors were found in the program file. SQR: Program Aborting. Deborah Harris _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Oct 22 09:51:06 2003 From: "Sahani, Dev" Subject: RE: [sqr-users] HELP.. Creating Dynamic Select/SQL Statement Date: Wed, 22 Oct 2003 10:50:37 -0400 Hi Deborah, In dynamic select statements, you have to specify the data type for the variable you are getting your value from the database into. This gave me a tough time too :) Try this: [$startdatesql] &start_date=DATE Hope this helps, Dèv Rishi Sahani -------------------- FESCo DB Systems Fidelity Investments -----Original Message----- From: Deborah Harris [mailto:dharris@activeinterest.com] Sent: Wednesday, October 22, 2003 10:39 AM To: sqr-users@sqrug.org Subject: [sqr-users] HELP.. Creating Dynamic Select/SQL Statement I am trying to create a dynamic select statement to be generated in SQR.. I have tried using begin-sql and begin-select and I still get an error message. I need to assign the value from the select statement to a variable.. Where am I going wrong. Here is my code. Begin-Procedure Get_Start_Date Let $numdays = '-'||$_Num_Days Let $startdatesql = 'current timestamp '||$numdays||' from sysibm.sysdummy1' Begin-select [$startdatesql] &start_date end-select End-Procedure I get this error message. Error on line 189: (SQR 7740) Invalid &pseudonym or 'TYPE=' data-type specified for a begin-select column-variable. Valid types are: CHAR, TEXT, DATE, NUMBER [$startdatesql] &start_date Errors were found in the program file. SQR: Program Aborting. Deborah Harris _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.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 Oct 22 10:37:05 2003 Date: Wed, 22 Oct 2003 10:59:51 -0400 From: "Arnold Foelster" Subject: [sqr-users] Env Variables After we upgraded our sqr's that have the #ifdef unix ... #end-if or #ifdef NT ... #end-if all think they're running on NT even when being ran on UNIX. Any suggestions? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Oct 22 10:58:06 2003 Subject: RE: [sqr-users] Env Variables Date: Wed, 22 Oct 2003 10:56:33 -0500 From: "Knapp, Richard" The init file has to define UNIX or NT. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Arnold Foelster [mailto:afoelster@umuc.edu] Sent: Wednesday, October 22, 2003 10:00 AM To: sqr-users@sqrug.org Subject: [sqr-users] Env Variables After we upgraded our sqr's that have the #ifdef unix ... #end-if or #ifdef NT ... #end-if all think they're running on NT even when being ran on UNIX. Any suggestions? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.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 Oct 22 10:56:20 2003 From: cloperena@elnuevodia.com Subject: RE: [sqr-users] Env Variables Date: Wed, 22 Oct 2003 12:00:44 -0400 I use this syntax, and work for me. #IF {sqr-platform} = 'UNIX' logic for unix #ELSE logia for windows #end-if -----Original Message----- From: Arnold Foelster [mailto:afoelster@umuc.edu] Sent: Wednesday, October 22, 2003 11:00 AM To: sqr-users@sqrug.org Subject: [sqr-users] Env Variables After we upgraded our sqr's that have the #ifdef unix ... #end-if or #ifdef NT ... #end-if all think they're running on NT even when being ran on UNIX. Any suggestions? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.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 Oct 22 11:16:56 2003 From: Bruce Kelling Subject: RE: [sqr-users] Env Variables Date: Wed, 22 Oct 2003 12:14:55 -0400 Find the file called opsys.sqc. In UNIX directory #define UNIX, in NT directory #define NT. Bruce -----Original Message----- From: Knapp, Richard [mailto:KnappR@umsystem.edu] Sent: Wednesday, October 22, 2003 11:57 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Env Variables The init file has to define UNIX or NT. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Arnold Foelster [mailto:afoelster@umuc.edu] Sent: Wednesday, October 22, 2003 10:00 AM To: sqr-users@sqrug.org Subject: [sqr-users] Env Variables After we upgraded our sqr's that have the #ifdef unix ... #end-if or #ifdef NT ... #end-if all think they're running on NT even when being ran on UNIX. Any suggestions? _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Oct 22 12:01:39 2003 Date: Wed, 22 Oct 2003 12:17:27 -0400 From: Prasanna Menta Subject: Re: [sqr-users] Env Variables Mr. Arnold Foelster, You need to look into your sqr setting on your operating system. It is not something to do with the upgrade Process. Prasanna Arnold Foelster wrote: > > After we upgraded our sqr's that have the > > #ifdef unix > ... > #end-if > > or > > #ifdef NT > ... > #end-if > > all think they're running on NT even when being ran on UNIX. > > Any suggestions? > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.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 Oct 23 07:49:27 2003 From: "the dragon" Subject: Re: [sqr-users] Env Variables Date: Thu, 23 Oct 2003 07:48:49 -0500 if you're using peoplesoft, check the opsys.sqc file. or, it's in your ini file hope this helps 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---- After we upgraded our sqr's that have the #ifdef unix ... #end-if or #ifdef NT ... #end-if all think they're running on NT even when being ran on UNIX. Any suggestions? _________________________________________________________________ Cheer a special someone with a fun Halloween eCard from American Greetings! Go to http://www.msn.americangreetings.com/index_msn.pd?source=msne134 _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Oct 22 10:27:06 2003 From: "Deborah Harris" Subject: RE: [sqr-users] HELP.. Creating Dynamic Select/SQL Statement Date: Wed, 22 Oct 2003 10:26:29 -0500 Yep... That worked. Thank you very much.. Now on to my next problem.. Deborah Harris -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org] On Behalf Of Sahani, Dev Sent: Wednesday, October 22, 2003 9:51 AM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] HELP.. Creating Dynamic Select/SQL Statement Hi Deborah, In dynamic select statements, you have to specify the data type for the variable you are getting your value from the database into. This gave me a tough time too :) Try this: [$startdatesql] &start_date=DATE Hope this helps, Dèv Rishi Sahani -------------------- FESCo DB Systems Fidelity Investments -----Original Message----- From: Deborah Harris [mailto:dharris@activeinterest.com] Sent: Wednesday, October 22, 2003 10:39 AM To: sqr-users@sqrug.org Subject: [sqr-users] HELP.. Creating Dynamic Select/SQL Statement I am trying to create a dynamic select statement to be generated in SQR.. I have tried using begin-sql and begin-select and I still get an error message. I need to assign the value from the select statement to a variable.. Where am I going wrong. Here is my code. Begin-Procedure Get_Start_Date Let $numdays = '-'||$_Num_Days Let $startdatesql = 'current timestamp '||$numdays||' from sysibm.sysdummy1' Begin-select [$startdatesql] &start_date end-select End-Procedure I get this error message. Error on line 189: (SQR 7740) Invalid &pseudonym or 'TYPE=' data-type specified for a begin-select column-variable. Valid types are: CHAR, TEXT, DATE, NUMBER [$startdatesql] &start_date Errors were found in the program file. SQR: Program Aborting. Deborah Harris _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Oct 22 09:58:06 2003 Date: Wed, 22 Oct 2003 10:57:30 -0400 From: "Harris, Sam" Subject: RE: [sqr-users] HELP.. Creating Dynamic Select/SQL Statement When you create dynamic sql in SQR the concatenation of the string is more involved than just making a string. Take a look at the following working example. let $where_date_clause = ' D.DATE_OC_RECEIVED between ' || '''' || $start-date || '''' || ' and ' || '''' || $ending-date || '''' It is used in the where clause as: WHERE [$where_date_clause] -----Original Message----- From: Deborah Harris [mailto:dharris@activeinterest.com] Sent: Wednesday, October 22, 2003 10:39 AM To: sqr-users@sqrug.org Subject: [sqr-users] HELP.. Creating Dynamic Select/SQL Statement I am trying to create a dynamic select statement to be generated in SQR.. I have tried using begin-sql and begin-select and I still get an error message. I need to assign the value from the select statement to a variable.. Where am I going wrong. Here is my code. Begin-Procedure Get_Start_Date Let $numdays = '-'||$_Num_Days Let $startdatesql = 'current timestamp '||$numdays||' from sysibm.sysdummy1' Begin-select [$startdatesql] &start_date end-select End-Procedure I get this error message. Error on line 189: (SQR 7740) Invalid &pseudonym or 'TYPE=' data-type specified for a begin-select column-variable. Valid types are: CHAR, TEXT, DATE, NUMBER [$startdatesql] &start_date Errors were found in the program file. SQR: Program Aborting. Deborah Harris _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.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 Oct 22 10:04:07 2003 From: "Hood Louise (app1lxh)" Subject: RE: [sqr-users] HELP.. Creating Dynamic Select/SQL Statement Date: Wed, 22 Oct 2003 11:03:18 -0400 Trying doing this first to see what's even getting into your variable (it may not be what you think). Begin-Procedure Get_Start_Date Let $numdays = '-'||$_Num_Days Let $startdatesql = 'current timestamp '||$numdays||' from sysibm.sysdummy1' DISPLAY '$startdatesql = ' NOLINE DISPLAY $startdatesql !Begin-select ![$startdatesql] &start_date !end-select End-Procedure Depending upon what you get in the display, precede that with select and run it in SQLPlus (or other tool) and see what error you get. (It doesn't look like it should because there's no table referenced.) -----Original Message----- From: Deborah Harris [mailto:dharris@activeinterest.com] Sent: Wednesday, October 22, 2003 10:39 AM To: sqr-users@sqrug.org Subject: [sqr-users] HELP.. Creating Dynamic Select/SQL Statement I am trying to create a dynamic select statement to be generated in SQR.. I have tried using begin-sql and begin-select and I still get an error message. I need to assign the value from the select statement to a variable.. Where am I going wrong. Here is my code. Begin-Procedure Get_Start_Date Let $numdays = '-'||$_Num_Days Let $startdatesql = 'current timestamp '||$numdays||' from sysibm.sysdummy1' Begin-select [$startdatesql] &start_date end-select End-Procedure I get this error message. Error on line 189: (SQR 7740) Invalid &pseudonym or 'TYPE=' data-type specified for a begin-select column-variable. Valid types are: CHAR, TEXT, DATE, NUMBER [$startdatesql] &start_date Errors were found in the program file. SQR: Program Aborting. Deborah Harris _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.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 Oct 22 10:39:05 2003 Date: Wed, 22 Oct 2003 10:38:01 -0500 (EST) From: Don Mellen Subject: Re: [sqr-users] HELP.. Creating Dynamic Select/SQL Statement Dynamic columns and dynamic sql need to be seperate. Dynamic columns need to be "typed" for each column that's dynamic. The dynamic sql is best put after a literal "from" clause. Plus (as suggested already) check the strings that you make and test the sql that you're trying to create. HTH, Don On Wed, 22 Oct 2003, Deborah Harris wrote: > I am trying to create a dynamic select statement to be generated in > SQR.. I have tried using begin-sql and begin-select and I still get > an error message. I need to assign the value from the select statement > to a variable.. > > Where am I going wrong. > Here is my code. > > > Begin-Procedure Get_Start_Date > Let $numdays = '-'||$_Num_Days > Let $startdatesql = 'current timestamp '||$numdays||' from > sysibm.sysdummy1' > Begin-select > [$startdatesql] &start_date > end-select > End-Procedure > > > I get this error message. > Error on line 189: > (SQR 7740) Invalid &pseudonym or 'TYPE=' data-type specified > for a begin-select column-variable. Valid types are: > CHAR, TEXT, DATE, NUMBER > > [$startdatesql] &start_date > > Errors were found in the program file. > > SQR: Program Aborting. > > Deborah Harris > > > > > _______________________________________________ > 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 Wed Oct 22 10:38:07 2003 From: "Alexander, Steve" Subject: RE: [sqr-users] HELP.. Creating Dynamic Select/SQL Statement Date: Wed, 22 Oct 2003 08:44:38 -0700 Sam, you don't need to separate quoted quote marks from the rest of your text. You could write: let $where_date_clause = ' D.DATE_OC_RECEIVED between ''' || $start-date || ''' and ''' || $ending-date || '''' '''' -----Original Message----- From: Harris, Sam [mailto:SVH@cdrh.fda.gov] Sent: Wednesday, October 22, 2003 7:58 AM To: 'sqr-users@sqrug.org' Subject: RE: [sqr-users] HELP.. Creating Dynamic Select/SQL Statement When you create dynamic sql in SQR the concatenation of the string is more involved than just making a string. Take a look at the following working example. let $where_date_clause = ' D.DATE_OC_RECEIVED between ' || '''' || $start-date || '''' || ' and ' || '''' || $ending-date || '''' It is used in the where clause as: WHERE [$where_date_clause] -----Original Message----- From: Deborah Harris [mailto:dharris@activeinterest.com] Sent: Wednesday, October 22, 2003 10:39 AM To: sqr-users@sqrug.org Subject: [sqr-users] HELP.. Creating Dynamic Select/SQL Statement I am trying to create a dynamic select statement to be generated in SQR.. I have tried using begin-sql and begin-select and I still get an error message. I need to assign the value from the select statement to a variable.. Where am I going wrong. Here is my code. Begin-Procedure Get_Start_Date Let $numdays = '-'||$_Num_Days Let $startdatesql = 'current timestamp '||$numdays||' from sysibm.sysdummy1' Begin-select [$startdatesql] &start_date end-select End-Procedure I get this error message. Error on line 189: (SQR 7740) Invalid &pseudonym or 'TYPE=' data-type specified for a begin-select column-variable. Valid types are: CHAR, TEXT, DATE, NUMBER [$startdatesql] &start_date Errors were found in the program file. SQR: Program Aborting. Deborah Harris _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Oct 22 15:29:28 2003 From: "Deborah Harris" Date: Wed, 22 Oct 2003 15:27:03 -0500 Subject: [sqr-users] SQR and Linux Is anyone using SQR on Linux and DB2? We are having some issues and were wondering if anyone is using the same configuration. If so, any problems using dynamic sql statements? Deborah Harris _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Oct 22 16:03:31 2003 Subject: Re: [sqr-users] SQR and Linux Date: Wed, 22 Oct 2003 21:02:26 -0000 From: Hi Deborah, no problems. I did debugging using Access versions of the database and then used DB2 for production. The UDB client worked similar to the SQLPlus client of ORA, though not as powerful. Major issue was capitalization. Failure to get the capitals right will result in no retrieval as DB2 wants both file and fields capitalized. Hope that helps. John Willson Deborah Harris said: > Is anyone using SQR on Linux and DB2? We are having some issues and > were wondering if anyone is using the same configuration. If so, any > problems using dynamic sql statements? > > > > > > Deborah Harris > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.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 Oct 22 18:00:57 2003 From: "Deborah Harris" Subject: RE: [sqr-users] SQR and Linux Date: Wed, 22 Oct 2003 17:58:47 -0500 Perhaps you can help me out.. These are some procedures that I have in a sqr report. The report runs fine in Windows but when I run it in Linux I get an error message the following error message... SQR 8.1 Copyright (C) Brio Software 1994-2003. All Worldwide Rights Reserved. Error on line 30: (SQR 2001) Could not find procedure: 'rpttsp'. Errors were found in the program file. SQR: Program Aborting. If you want to see the whole .sqr report I can send it directly to you. Any ideas? Begin-Procedure rpttsp begin-select timestamp(generate_unique()) &uniqueid from sysibm.sysdummy1 end-select End-Procedure Begin-Procedure getlastdt Begin-select current timestamp &last_date from sysibm.sysdummy1 end-select End-Procedure Begin-Procedure getsrtdt Let $numdays = '- '||$_Num_Days Let $startdatesql = 'current timestamp '||$numdays||' $start_date from sysibm.sysdummy1;' Begin-select [$startdatesql] &start_date=DATE end-select End-Procedure Deborah Harris -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org] On Behalf Of jwillson@dssltd.com Sent: Wednesday, October 22, 2003 4:02 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] SQR and Linux Hi Deborah, no problems. I did debugging using Access versions of the database and then used DB2 for production. The UDB client worked similar to the SQLPlus client of ORA, though not as powerful. Major issue was capitalization. Failure to get the capitals right will result in no retrieval as DB2 wants both file and fields capitalized. Hope that helps. John Willson Deborah Harris said: > Is anyone using SQR on Linux and DB2? We are having some issues and > were wondering if anyone is using the same configuration. If so, any > problems using dynamic sql statements? > > > > > > Deborah Harris > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > 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 Oct 23 09:36:11 2003 Subject: RE: [sqr-users] SQR and Linux Date: Thu, 23 Oct 2003 09:35:51 -0500 From: "Knapp, Richard" Is 'rpttsp' in an include file? If so, is the path to the include directory known to SQR? Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Deborah Harris [mailto:dharris@activeinterest.com] Sent: Wednesday, October 22, 2003 5:59 PM To: sqr-users@sqrug.org Subject: RE: [sqr-users] SQR and Linux Perhaps you can help me out.. These are some procedures that I have in a sqr report. The report runs fine in Windows but when I run it in Linux I get an error message the following error message... SQR 8.1 Copyright (C) Brio Software 1994-2003. All Worldwide Rights Reserved. Error on line 30: (SQR 2001) Could not find procedure: 'rpttsp'. Errors were found in the program file. SQR: Program Aborting. If you want to see the whole .sqr report I can send it directly to you. Any ideas? Begin-Procedure rpttsp begin-select timestamp(generate_unique()) &uniqueid from sysibm.sysdummy1 end-select End-Procedure Begin-Procedure getlastdt Begin-select current timestamp &last_date from sysibm.sysdummy1 end-select End-Procedure Begin-Procedure getsrtdt Let $numdays = '- '||$_Num_Days Let $startdatesql = 'current timestamp '||$numdays||' $start_date from sysibm.sysdummy1;' Begin-select [$startdatesql] &start_date=DATE end-select End-Procedure Deborah Harris -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org] On Behalf Of jwillson@dssltd.com Sent: Wednesday, October 22, 2003 4:02 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] SQR and Linux Hi Deborah, no problems. I did debugging using Access versions of the database and then used DB2 for production. The UDB client worked similar to the SQLPlus client of ORA, though not as powerful. Major issue was capitalization. Failure to get the capitals right will result in no retrieval as DB2 wants both file and fields capitalized. Hope that helps. John Willson Deborah Harris said: > Is anyone using SQR on Linux and DB2? We are having some issues and > were wondering if anyone is using the same configuration. If so, any > problems using dynamic sql statements? > > > > > > Deborah Harris > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > 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 Oct 22 16:36:43 2003 From: "the dragon" Date: Wed, 22 Oct 2003 16:35:47 -0500 Subject: [sqr-users] Unicode Does anyone know how to disable unicode in an sqr installation? Evidently the peopletools v8.4.2 does not allow you to install sqr without the unicode (fixed in the next version) and one of our programs is running a long time and 30 % of that processing time is dealing with unicode (according to a product called strohbe). I have commented out all procedures and sqcs that have anything to do with language processing; is there anything else that can be done? thanks in advance clark 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) _________________________________________________________________ Never get a busy signal because you are always connected with high-speed Internet access. Click here to comparison-shop providers. https://broadband.msn.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Oct 31 12:22:30 2003 Subject: Re: [sqr-users] Unicode From: yelena_kontorovich@baxter.com Date: Fri, 31 Oct 2003 11:34:03 -0600 Clark, How do you determine which statement deals with Unicode and which is not? Thanks, Yelena Kontorovich Technical Consultant 847.948.2927 yelena_kontorovich@baxter.com The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the content. "the dragon" cc: Sent by: Subject: [sqr-users] Unicode sqr-users-admin @sqrug.org 10/22/2003 04:35 PM Please respond to sqr-users Does anyone know how to disable unicode in an sqr installation? Evidently the peopletools v8.4.2 does not allow you to install sqr without the unicode (fixed in the next version) and one of our programs is running a long time and 30 % of that processing time is dealing with unicode (according to a product called strohbe). I have commented out all procedures and sqcs that have anything to do with language processing; is there anything else that can be done? thanks in advance clark 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) _________________________________________________________________ Never get a busy signal because you are always connected with high-speed Internet access. Click here to comparison-shop providers. https://broadband.msn.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 Oct 31 15:28:47 2003 From: "the dragon" Subject: Re: [sqr-users] Unicode Date: Fri, 31 Oct 2003 14:27:31 -0600 I am sorry, I haven't figured that out. I was commenting out anything that dealt with the sqrtrans.sqc program, but that didn't help. The ps admin types were watching the execution of the program using a tool they have called Strobe (sp) and that is how they saw the calls to the unicode modules. Personally, I think it is something at the sqr engine level that is happening and PS just did something stupid with the current version by not supplying a way to disable the unicode crap for companies that don't need it. I think, unless PS provides a patch, we are stuck with this nonsense until we upgrade our tools version. It's amazing that PS could take a great product like SQR and turn it into crap in such a short period of time. 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---- Clark, How do you determine which statement deals with Unicode and which is not? Thanks, Yelena Kontorovich Technical Consultant 847.948.2927 yelena_kontorovich@baxter.com _________________________________________________________________ Add MSN 8 Internet Software to your current Internet access and enjoy patented spam control and more. Get two months FREE! http://join.msn.com/?page=dept/byoa _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Mon Nov 3 15:57:09 2003 Subject: Re: [sqr-users] Unicode From: yelena_kontorovich@baxter.com Date: Mon, 3 Nov 2003 15:10:01 -0600 This is what I found in our pssqr.ini file UseUnicodeInternal=TRUE AutoDetectUnicodeFiles=TRUE May be it will help you with your Unicode problem. Does anybody know what these settings mean? I cannot find anything in Psoft SQR books. Thanks, Yelena Kontorovich Technical Consultant 847.948.2927 yelena_kontorovich@baxter.com The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the content. "the dragon" cc: Sent by: Subject: Re: [sqr-users] Unicode sqr-users-admin @sqrug.org 10/31/2003 02:27 PM Please respond to sqr-users I am sorry, I haven't figured that out. I was commenting out anything that dealt with the sqrtrans.sqc program, but that didn't help. The ps admin types were watching the execution of the program using a tool they have called Strobe (sp) and that is how they saw the calls to the unicode modules. Personally, I think it is something at the sqr engine level that is happening and PS just did something stupid with the current version by not supplying a way to disable the unicode crap for companies that don't need it. I think, unless PS provides a patch, we are stuck with this nonsense until we upgrade our tools version. It's amazing that PS could take a great product like SQR and turn it into crap in such a short period of time. 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---- Clark, How do you determine which statement deals with Unicode and which is not? Thanks, Yelena Kontorovich Technical Consultant 847.948.2927 yelena_kontorovich@baxter.com _________________________________________________________________ Add MSN 8 Internet Software to your current Internet access and enjoy patented spam control and more. Get two months FREE! http://join.msn.com/?page=dept/byoa _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.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 Nov 3 16:32:33 2003 Date: Mon, 3 Nov 2003 16:31:57 -0500 (EST) From: Don Mellen Subject: Re: [sqr-users] Unicode I haven't seen the PeopleSoft SQR books, but it should be in there somewhere. If not, you can always check at http://www.ontko.com/sqr/sqrcard.html Where one could find the following info... AutoDetectUnicodeFiles (added ver. 6.1.3) When TRUE (default is FALSE) SQR will read the first 2 bytes of a file to determine the encoding for the file (unless encoding was specified within the "open" command). UseUnicodeInternal (added ver. 6.1.3) When TRUE (default is FALSE) forces SQR to use Unicode internally. Allows any encoding combinations in a single SQR run (including ASCII and EBCDIC). On Mon, 3 Nov 2003 yelena_kontorovich@baxter.com wrote: > > This is what I found in our pssqr.ini file > > UseUnicodeInternal=TRUE > AutoDetectUnicodeFiles=TRUE > > May be it will help you with your Unicode problem. > > Does anybody know what these settings mean? I cannot find anything in > Psoft SQR books. ----------------------------------------------------------------------- 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 Wed Oct 22 17:04:27 2003 From: yelena_kontorovich@baxter.com Date: Wed, 22 Oct 2003 17:15:58 -0500 Subject: [sqr-users] Performance help needed - where the time goes? Hello, everyone, I need help with performance. We have a program that runs for 2.5 hours nightly and we are running out of the batch window. Program select appr 80,000 employees from PS_PERSONAL_DATA and PS_EMPLOYMENT and for every emplid it select additional information from another 10 tables to update or insert the record into PS_EMPLOYEES table. I ran explain plan and tkprof and I have (overall) 46 min of CPU time and 53 min of elapsed time. When I run separate statements I'm getting time close to tkprof. If program runs for 150 min, where the rest of the time is going? My DBA thinks that time is going to network or application. We've changes tnsnames.ora to have PROTOCOL=BEQ which should user local connection instead of SQLNet - I got only slight improvement. Also I've played with -B flag: for -B100 I got the same time, for -B1000 time actually increased by 1 hour. I just don't see where the time is, how can it be in application. Do you have any idea? Any help is greatly appreciated, I've spent close to 2 week on this and I'm stuck. Thanks, Yelena Kontorovich Technical Consultant 847.948.2927 yelena_kontorovich@baxter.com The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the content. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Wed Oct 22 18:31:20 2003 Date: Thu, 23 Oct 2003 09:29:16 +1000 From: "Ian Mills" Subject: Re: [sqr-users] Performance help needed - where the time goes? Yelena, It looks like you are talking about Peoplesoft. I have never used it in the past but I thought I may be able to share some of the things I have had to do in writing my SQR reports to improve efficiency. Firstly, one thing I have noticed with SQR is that you can run a query against any database outside of an SQR program and it may take 15sec, but when you include it in your SQR, it may take a minute or more. Why this is so? I do not know. You learn to live with this. In the queries against db's like sybase & oracle etc., you can include index hints to force the database to use a specific index on a table. Sometimes the optimiser can get it very wrong. When running SQR against Sybase especially, somehow in most of the reports, the queries wouldn't use any indexes because SQR somwhow did something to the optimiser which meant you had to include index hints, or the reports would take 10 to 20 times longer than they needed to. Another trick you may want to consider if you haven't already. You say you have to access 10 other tables, you can sort the data from PS_PERSONAL_DATA in such a way that you can minimise the number of queries to these other tables. All you would then do is add code to your report to check if the value you are using to access these other tables is different to the last row. If not, you don't need to access the table again. This would be a significant saving of the number of queries being executed is 80,000 x 10. Is is possible to use LOOKUP tables in your program? In my experience using the -B option, you have to work out a happy medium between increasing the rows extracted to improve database performance, at the same time, not making the value too large that you can effect network performance. When I do need to use -B, I tend to use around 250. Like you, I found that my report ran slower when I made the vaule too large. Is your report producing any SPF output? Any PDF output? If you have a large output file and you are creating a PDF file as well, the time it takes to produce the PDF file can be surprising. We have a report here that runs for upwords of an hour and produces a report of over 1000 pages. 15 to 20 minutes of that run time is time spent producing the PDF file. I hope I have been of some assistance to you. Good luck and I hope you don't have to spent too much more time on this problem. Regards, Ian Mills ORIX Australia Pty Ltd >>> yelena_kontorovich@baxter.com 23/10/2003 8:15:58 am >>> Hello, everyone, I need help with performance. We have a program that runs for 2.5 hours nightly and we are running out of the batch window. Program select appr 80,000 employees from PS_PERSONAL_DATA and PS_EMPLOYMENT and for every emplid it select additional information from another 10 tables to update or insert the record into PS_EMPLOYEES table. I ran explain plan and tkprof and I have (overall) 46 min of CPU time and 53 min of elapsed time. When I run separate statements I'm getting time close to tkprof. If program runs for 150 min, where the rest of the time is going? My DBA thinks that time is going to network or application. We've changes tnsnames.ora to have PROTOCOL=BEQ which should user local connection instead of SQLNet - I got only slight improvement. Also I've played with -B flag: for -B100 I got the same time, for -B1000 time actually increased by 1 hour. I just don't see where the time is, how can it be in application. Do you have any idea? Any help is greatly appreciated, I've spent close to 2 week on this and I'm stuck. Thanks, Yelena Kontorovich Technical Consultant 847.948.2927 yelena_kontorovich@baxter.com The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the content. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.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 Oct 23 07:33:53 2003 Date: Thu, 23 Oct 2003 05:31:11 -0700 (PDT) From: Greg Rabinovich Subject: Re: [sqr-users] Performance help needed - where the time goes? Yelena, one other approach which you may want to use is to run a number of parallel instances of your job. We tried it and it worked great for us. I am on Federal project, so it is a little different and we are running customized version of per099.sqr. However, what we did was create 10 unix scripts, each one of which called our per099 and passed a number to it (0-9) and each instance of the sqr ran for the employees whose emplid ends with this parameter. (Main Select had AND EMPLID like (%9)). This way each of the instances is working with 1/10 of the whole population of our employees (over 100,000). In reality this is a very simple approach to implement. You may try to use Parallel hint in your SQLs to simulate this, but for some reason it did not work for us. G. --- Ian Mills wrote: > Yelena, > > It looks like you are talking about Peoplesoft. I > have never used it in > the past but I thought I may be able to share some > of the things I have > had to do in writing my SQR reports to improve > efficiency. > > Firstly, one thing I have noticed with SQR is that > you can run a query > against any database outside of an SQR program and > it may take 15sec, > but when you include it in your SQR, it may take a > minute or more. Why > this is so? I do not know. You learn to live with > this. > > In the queries against db's like sybase & oracle > etc., you can include > index hints to force the database to use a specific > index on a table. > Sometimes the optimiser can get it very wrong. When > running SQR against > Sybase especially, somehow in most of the reports, > the queries wouldn't > use any indexes because SQR somwhow did something to > the optimiser which > meant you had to include index hints, or the reports > would take 10 to 20 > times longer than they needed to. > > Another trick you may want to consider if you > haven't already. You say > you have to access 10 other tables, you can sort the > data from > PS_PERSONAL_DATA in such a way that you can minimise > the number of > queries to these other tables. All you would then do > is add code to your > report to check if the value you are using to access > these other tables > is different to the last row. If not, you don't need > to access the table > again. This would be a significant saving of the > number of queries being > executed is 80,000 x 10. > > Is is possible to use LOOKUP tables in your program? > > In my experience using the -B option, you have to > work out a happy > medium between increasing the rows extracted to > improve database > performance, at the same time, not making the value > too large that you > can effect network performance. When I do need to > use -B, I tend to use > around 250. Like you, I found that my report ran > slower when I made the > vaule too large. > > Is your report producing any SPF output? Any PDF > output? If you have a > large output file and you are creating a PDF file as > well, the time it > takes to produce the PDF file can be surprising. We > have a report here > that runs for upwords of an hour and produces a > report of over 1000 > pages. 15 to 20 minutes of that run time is time > spent producing the PDF > file. > > > I hope I have been of some assistance to you. Good > luck and I hope you > don't have to spent too much more time on this > problem. > > > Regards, > Ian Mills > > ORIX Australia Pty Ltd > > > >>> yelena_kontorovich@baxter.com 23/10/2003 8:15:58 > am >>> > Hello, everyone, > I need help with performance. > We have a program that runs for 2.5 hours nightly > and we are running > out of > the batch window. Program select appr 80,000 > employees from > PS_PERSONAL_DATA and PS_EMPLOYMENT and for every > emplid it select > additional information from another 10 tables to > update or insert the > record into PS_EMPLOYEES table. I ran explain plan > and tkprof and I > have > (overall) 46 min of CPU time and 53 min of elapsed > time. When I run > separate statements I'm getting time close to > tkprof. If program runs > for > 150 min, where the rest of the time is going? My > DBA thinks that time > is > going to network or application. We've changes > tnsnames.ora to have > PROTOCOL=BEQ which should user local connection > instead of SQLNet - I > got > only slight improvement. Also I've played with -B > flag: for -B100 I > got > the same time, for -B1000 time actually increased by > 1 hour. I just > don't > see where the time is, how can it be in application. > Do you have any > idea? > Any help is greatly appreciated, I've spent close to > 2 week on this and > I'm > stuck. > Thanks, > Yelena Kontorovich > Technical Consultant > 847.948.2927 > yelena_kontorovich@baxter.com > The information transmitted is intended only for the > person or entity > to > which it is addressed and may contain confidential > and/or privileged > material. Any review, re-transmission, > dissemination or other use of, > or > taking of any action in reliance upon, this > information by persons or > entities other than the intended recipient is > prohibited. If you > received > this in error, please contact the sender and delete > the content. > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > 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!? The New Yahoo! Shopping - with improved product search http://shopping.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 Oct 22 19:25:40 2003 From: "Alexander, Steve" Subject: RE: [sqr-users] Performance help needed - where the time goes? Date: Wed, 22 Oct 2003 17:31:37 -0700 Is this PER099? If so, what version of Peoplesoft is it and what is the date of Peoplesoft's latest change to the program? If you're trying to tune up PER099, we probably have specific advice to get the best results most quickly. If you've got a custom program, our advice will be more general. People generally approach this type of task in four possible ways. First (slowest), by taking each employee from PS_PERSONAL_DATA and reading just his or her rows from the other ten tables. Second (maybe faster, maybe not), with joins to get the rows from the ten other tables while you get the rows from PS_PERSONAL_DATA. Third (pretty fast), with load-lookups on the other tables. Fourth, usually as fast as it gets, by reading the columns you want from each table into a common array, where each employee has one "row" of the array, and there is a field for each column you want to write to PS_EMPLOYEES. I can expand on these approaches if you like. -----Original Message----- From: Ian Mills [mailto:Ian.Mills@orix.com.au] Sent: Wednesday, October 22, 2003 4:29 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Performance help needed - where the time goes? Yelena, It looks like you are talking about Peoplesoft. I have never used it in the past but I thought I may be able to share some of the things I have had to do in writing my SQR reports to improve efficiency. Firstly, one thing I have noticed with SQR is that you can run a query against any database outside of an SQR program and it may take 15sec, but when you include it in your SQR, it may take a minute or more. Why this is so? I do not know. You learn to live with this. In the queries against db's like sybase & oracle etc., you can include index hints to force the database to use a specific index on a table. Sometimes the optimiser can get it very wrong. When running SQR against Sybase especially, somehow in most of the reports, the queries wouldn't use any indexes because SQR somwhow did something to the optimiser which meant you had to include index hints, or the reports would take 10 to 20 times longer than they needed to. Another trick you may want to consider if you haven't already. You say you have to access 10 other tables, you can sort the data from PS_PERSONAL_DATA in such a way that you can minimise the number of queries to these other tables. All you would then do is add code to your report to check if the value you are using to access these other tables is different to the last row. If not, you don't need to access the table again. This would be a significant saving of the number of queries being executed is 80,000 x 10. Is is possible to use LOOKUP tables in your program? In my experience using the -B option, you have to work out a happy medium between increasing the rows extracted to improve database performance, at the same time, not making the value too large that you can effect network performance. When I do need to use -B, I tend to use around 250. Like you, I found that my report ran slower when I made the vaule too large. Is your report producing any SPF output? Any PDF output? If you have a large output file and you are creating a PDF file as well, the time it takes to produce the PDF file can be surprising. We have a report here that runs for upwords of an hour and produces a report of over 1000 pages. 15 to 20 minutes of that run time is time spent producing the PDF file. I hope I have been of some assistance to you. Good luck and I hope you don't have to spent too much more time on this problem. Regards, Ian Mills ORIX Australia Pty Ltd >>> yelena_kontorovich@baxter.com 23/10/2003 8:15:58 am >>> Hello, everyone, I need help with performance. We have a program that runs for 2.5 hours nightly and we are running out of the batch window. Program select appr 80,000 employees from PS_PERSONAL_DATA and PS_EMPLOYMENT and for every emplid it select additional information from another 10 tables to update or insert the record into PS_EMPLOYEES table. I ran explain plan and tkprof and I have (overall) 46 min of CPU time and 53 min of elapsed time. When I run separate statements I'm getting time close to tkprof. If program runs for 150 min, where the rest of the time is going? My DBA thinks that time is going to network or application. We've changes tnsnames.ora to have PROTOCOL=BEQ which should user local connection instead of SQLNet - I got only slight improvement. Also I've played with -B flag: for -B100 I got the same time, for -B1000 time actually increased by 1 hour. I just don't see where the time is, how can it be in application. Do you have any idea? Any help is greatly appreciated, I've spent close to 2 week on this and I'm stuck. Thanks, Yelena Kontorovich Technical Consultant 847.948.2927 yelena_kontorovich@baxter.com The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the content. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Oct 23 08:46:15 2003 Subject: RE: [sqr-users] Performance help needed - where the time goes? Date: Thu, 23 Oct 2003 08:44:20 -0500 From: "Knapp, Richard" In my experience the time to process a query in SQL and SQR is about the same but with SQR you have the overhead of the SQL syntax and access checks and the program compile (which is a one time expense.) Yelena, are you on 76 or 80 of PS? 76 uses an SQR but 80 uses ap engine which is known to be flawed. Could be network. Put some displays in the program, run it from your desktop and you will be able to see which part of the prog is taking the time. Richard Knapp Database Programmer/Analyst Institutional Research and Planning University of Missouri System 573-882-8856 knappr@umsystem.edu -----Original Message----- From: Greg Rabinovich [mailto:odecca25@yahoo.com] Sent: Thursday, October 23, 2003 7:31 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Performance help needed - where the time goes? Yelena, one other approach which you may want to use is to run a number of parallel instances of your job. We tried it and it worked great for us. I am on Federal project, so it is a little different and we are running customized version of per099.sqr. However, what we did was create 10 unix scripts, each one of which called our per099 and passed a number to it (0-9) and each instance of the sqr ran for the employees whose emplid ends with this parameter. (Main Select had AND EMPLID like (%9)). This way each of the instances is working with 1/10 of the whole population of our employees (over 100,000). In reality this is a very simple approach to implement. You may try to use Parallel hint in your SQLs to simulate this, but for some reason it did not work for us. G. --- Ian Mills wrote: > Yelena, > > It looks like you are talking about Peoplesoft. I > have never used it in > the past but I thought I may be able to share some > of the things I have > had to do in writing my SQR reports to improve > efficiency. > > Firstly, one thing I have noticed with SQR is that > you can run a query > against any database outside of an SQR program and > it may take 15sec, > but when you include it in your SQR, it may take a > minute or more. Why > this is so? I do not know. You learn to live with > this. > > In the queries against db's like sybase & oracle > etc., you can include > index hints to force the database to use a specific > index on a table. > Sometimes the optimiser can get it very wrong. When > running SQR against > Sybase especially, somehow in most of the reports, > the queries wouldn't > use any indexes because SQR somwhow did something to > the optimiser which > meant you had to include index hints, or the reports > would take 10 to 20 > times longer than they needed to. > > Another trick you may want to consider if you > haven't already. You say > you have to access 10 other tables, you can sort the > data from > PS_PERSONAL_DATA in such a way that you can minimise > the number of > queries to these other tables. All you would then do > is add code to your > report to check if the value you are using to access > these other tables > is different to the last row. If not, you don't need > to access the table > again. This would be a significant saving of the > number of queries being > executed is 80,000 x 10. > > Is is possible to use LOOKUP tables in your program? > > In my experience using the -B option, you have to > work out a happy > medium between increasing the rows extracted to > improve database > performance, at the same time, not making the value > too large that you > can effect network performance. When I do need to > use -B, I tend to use > around 250. Like you, I found that my report ran > slower when I made the > vaule too large. > > Is your report producing any SPF output? Any PDF > output? If you have a > large output file and you are creating a PDF file as > well, the time it > takes to produce the PDF file can be surprising. We > have a report here > that runs for upwords of an hour and produces a > report of over 1000 > pages. 15 to 20 minutes of that run time is time > spent producing the PDF > file. > > > I hope I have been of some assistance to you. Good > luck and I hope you > don't have to spent too much more time on this > problem. > > > Regards, > Ian Mills > > ORIX Australia Pty Ltd > > > >>> yelena_kontorovich@baxter.com 23/10/2003 8:15:58 > am >>> > Hello, everyone, > I need help with performance. > We have a program that runs for 2.5 hours nightly > and we are running > out of > the batch window. Program select appr 80,000 > employees from > PS_PERSONAL_DATA and PS_EMPLOYMENT and for every > emplid it select > additional information from another 10 tables to > update or insert the > record into PS_EMPLOYEES table. I ran explain plan > and tkprof and I > have > (overall) 46 min of CPU time and 53 min of elapsed > time. When I run > separate statements I'm getting time close to > tkprof. If program runs > for > 150 min, where the rest of the time is going? My > DBA thinks that time > is > going to network or application. We've changes > tnsnames.ora to have > PROTOCOL=BEQ which should user local connection > instead of SQLNet - I > got > only slight improvement. Also I've played with -B > flag: for -B100 I > got > the same time, for -B1000 time actually increased by > 1 hour. I just > don't > see where the time is, how can it be in application. > Do you have any > idea? > Any help is greatly appreciated, I've spent close to > 2 week on this and > I'm > stuck. > Thanks, > Yelena Kontorovich > Technical Consultant > 847.948.2927 > yelena_kontorovich@baxter.com > The information transmitted is intended only for the > person or entity > to > which it is addressed and may contain confidential > and/or privileged > material. Any review, re-transmission, > dissemination or other use of, > or > taking of any action in reliance upon, this > information by persons or > entities other than the intended recipient is > prohibited. If you > received > this in error, please contact the sender and delete > the content. > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > 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!? The New Yahoo! Shopping - with improved product search http://shopping.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 Thu Oct 23 09:45:05 2003 Date: Thu, 23 Oct 2003 10:44:11 -0400 From: "George Jansen" Subject: Re: [sqr-users] Performance help needed - where the time goes? 1. Have a look at the web sites for Hotsos or MiracleAg for information on using Oracle trace to see where your time is going. 2. This is one that you'll need to approach with great caution. If you have Oracle 8i or 9i Enterprise Edition, you can make use of the "analytic functions". In many cases a PeopleSoft-ish SELECT ... FROM ps_x A WHERE A.EFFDT = (SELECT MAX(EFFDT) FROM ps_x A1 WHERE A1.keys = A.keys) Can be converted to SELECT ... FROM (SELECT Z.*, ROW_NUMBER() OVER (PARTITION BY z.keys ORDER BY effdt DESC) as rnbr FROM ps_x Z) A WHERE A.rnbr = 1 Commonly this halves the I/O and at least halves the time required for the query. 3. If any of the additional tables can be joined up front you might be able to trade space for time that way. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Oct 31 11:43:51 2003 Subject: RE: [sqr-users] Performance help needed - where the time goes? From: yelena_kontorovich@baxter.com Date: Fri, 31 Oct 2003 10:54:58 -0600 Steve, Our bqrp099.sqr is a modified version of PER099 - we select additional information from other tables. We are on HRMS 8SP1, tools 8.1.7.4. We don't keep track of PER099 since 2 years ago when we've converted to HRMS 8SP1, but if you have specific advices, I'll really appreciate them, it might be applicable to our program. On suggestion 3 & 4 - could you give me examples or more explanation if you have them handy? If not - I'll talk to our SQR developers. Thanks, Yelena Kontorovich Technical Consultant 847.948.2927 yelena_kontorovich@baxter.com The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the content. "Alexander, Steve" oseca.gov> cc: Sent by: Subject: RE: [sqr-users] Performance help needed - where the time sqr-users-admin@sqrug. goes? org 10/22/2003 07:31 PM Please respond to sqr-users Is this PER099? If so, what version of Peoplesoft is it and what is the date of Peoplesoft's latest change to the program? If you're trying to tune up PER099, we probably have specific advice to get the best results most quickly. If you've got a custom program, our advice will be more general. People generally approach this type of task in four possible ways. First (slowest), by taking each employee from PS_PERSONAL_DATA and reading just his or her rows from the other ten tables. Second (maybe faster, maybe not), with joins to get the rows from the ten other tables while you get the rows from PS_PERSONAL_DATA. Third (pretty fast), with load-lookups on the other tables. Fourth, usually as fast as it gets, by reading the columns you want from each table into a common array, where each employee has one "row" of the array, and there is a field for each column you want to write to PS_EMPLOYEES. I can expand on these approaches if you like. -----Original Message----- From: Ian Mills [mailto:Ian.Mills@orix.com.au] Sent: Wednesday, October 22, 2003 4:29 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Performance help needed - where the time goes? Yelena, It looks like you are talking about Peoplesoft. I have never used it in the past but I thought I may be able to share some of the things I have had to do in writing my SQR reports to improve efficiency. Firstly, one thing I have noticed with SQR is that you can run a query against any database outside of an SQR program and it may take 15sec, but when you include it in your SQR, it may take a minute or more. Why this is so? I do not know. You learn to live with this. In the queries against db's like sybase & oracle etc., you can include index hints to force the database to use a specific index on a table. Sometimes the optimiser can get it very wrong. When running SQR against Sybase especially, somehow in most of the reports, the queries wouldn't use any indexes because SQR somwhow did something to the optimiser which meant you had to include index hints, or the reports would take 10 to 20 times longer than they needed to. Another trick you may want to consider if you haven't already. You say you have to access 10 other tables, you can sort the data from PS_PERSONAL_DATA in such a way that you can minimise the number of queries to these other tables. All you would then do is add code to your report to check if the value you are using to access these other tables is different to the last row. If not, you don't need to access the table again. This would be a significant saving of the number of queries being executed is 80,000 x 10. Is is possible to use LOOKUP tables in your program? In my experience using the -B option, you have to work out a happy medium between increasing the rows extracted to improve database performance, at the same time, not making the value too large that you can effect network performance. When I do need to use -B, I tend to use around 250. Like you, I found that my report ran slower when I made the vaule too large. Is your report producing any SPF output? Any PDF output? If you have a large output file and you are creating a PDF file as well, the time it takes to produce the PDF file can be surprising. We have a report here that runs for upwords of an hour and produces a report of over 1000 pages. 15 to 20 minutes of that run time is time spent producing the PDF file. I hope I have been of some assistance to you. Good luck and I hope you don't have to spent too much more time on this problem. Regards, Ian Mills ORIX Australia Pty Ltd >>> yelena_kontorovich@baxter.com 23/10/2003 8:15:58 am >>> Hello, everyone, I need help with performance. We have a program that runs for 2.5 hours nightly and we are running out of the batch window. Program select appr 80,000 employees from PS_PERSONAL_DATA and PS_EMPLOYMENT and for every emplid it select additional information from another 10 tables to update or insert the record into PS_EMPLOYEES table. I ran explain plan and tkprof and I have (overall) 46 min of CPU time and 53 min of elapsed time. When I run separate statements I'm getting time close to tkprof. If program runs for 150 min, where the rest of the time is going? My DBA thinks that time is going to network or application. We've changes tnsnames.ora to have PROTOCOL=BEQ which should user local connection instead of SQLNet - I got only slight improvement. Also I've played with -B flag: for -B100 I got the same time, for -B1000 time actually increased by 1 hour. I just don't see where the time is, how can it be in application. Do you have any idea? Any help is greatly appreciated, I've spent close to 2 week on this and I'm stuck. Thanks, Yelena Kontorovich Technical Consultant 847.948.2927 yelena_kontorovich@baxter.com The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the content. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Fri Oct 31 12:20:50 2003 Subject: Re: [sqr-users] Performance help needed - where the time goes? From: William Goedicke Date: Fri, 31 Oct 2003 12:18:21 -0500 Dear Yelena et al - >>>> yelena_kontorovich@baxter.com 23/10/2003 8:15:58 am >>> yelena> Hello, everyone, I need help with performance. We have a yelena> program that runs for 2.5 hours nightly and we are running yelena> out of the batch window. I wrote an SQR profiler for one of my consulting clients. It measures how much time each piece of an SQR uses during a run so you can focus your tuning efforts on the part of the SQR that takes a long time. I released the program into the public-domain and you can download the source code and a windows executable from my web site at: http://www.goedsole.com:8080/GCHome/SourceCode Simply run the program in a command window and it will display instructions on how to use it. Yours - Billy ============================================================ William Goedicke goedicke@goedsole.com http://www.goedsole.com:8080 ============================================================ Lest we forget: War is caused by the squabling of princes. - Machievelli Yours - Billy _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Oct 31 12:33:28 2003 Subject: Re: [sqr-users] Performance help needed - where the time goes? From: yelena_kontorovich@baxter.com Date: Fri, 31 Oct 2003 11:45:40 -0600 George, Could you give me more explanation on "analytic functions"? Thanks, Yelena Kontorovich Technical Consultant 847.948.2927 yelena_kontorovich@baxter.com The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the content. "George Jansen" cc: Sent by: Subject: Re: [sqr-users] Performance help needed - where the time sqr-users-admin goes? @sqrug.org 10/23/2003 09:44 AM Please respond to sqr-users 1. Have a look at the web sites for Hotsos or MiracleAg for information on using Oracle trace to see where your time is going. 2. This is one that you'll need to approach with great caution. If you have Oracle 8i or 9i Enterprise Edition, you can make use of the "analytic functions". In many cases a PeopleSoft-ish SELECT ... FROM ps_x A WHERE A.EFFDT = (SELECT MAX(EFFDT) FROM ps_x A1 WHERE A1.keys = A.keys) Can be converted to SELECT ... FROM (SELECT Z.*, ROW_NUMBER() OVER (PARTITION BY z.keys ORDER BY effdt DESC) as rnbr FROM ps_x Z) A WHERE A.rnbr = 1 Commonly this halves the I/O and at least halves the time required for the query. 3. If any of the additional tables can be joined up front you might be able to trade space for time that way. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.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 Oct 31 15:03:57 2003 Date: Fri, 31 Oct 2003 15:01:41 -0500 From: "George Jansen" Subject: Re: [sqr-users] Performance help needed - where the time goes? This is a multi-part message in MIME format... --=_8AD41AC0.FC9D8F16 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Yelena, (or Ms. Kontorovich, if you prefer), the best reference for the "analytic functions" is in the Oracle Data Warehousing Guide, which you should be able to download from http://technet.oracle.com. Briefly, without the analytic functions, expressions in a row of a query's result set can only use values in precisely that row; with the analytic functions, they can use expressions values in other rows: the first, the last, the previous, several others, etc. This makes some real economies possible--SQL can be cleaner and faster. I attach a presentation I have given at a couple of regional users group meetings. George Jansen --=_8AD41AC0.FC9D8F16 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Description: AUTOMATIC WARNING Here was a non admissible message part of 'application/vnd.ms-powerpoint' MIME type. It has been automatically discarded before sending the message to the list. --=_8AD41AC0.FC9D8F16-- _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Oct 31 15:43:27 2003 From: "Alexander, Steve" Subject: RE: [sqr-users] Performance help needed - where the time goes? Date: Fri, 31 Oct 2003 12:49:48 -0800 I'd be glad to elaborate, but please check whether your SQR developers have experience with load-lookup or arrays. The higher your in-house knowledge, the less I'll have to explain. -----Original Message----- From: yelena_kontorovich@baxter.com [mailto:yelena_kontorovich@baxter.com] Sent: Friday, October 31, 2003 8:55 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] Performance help needed - where the time goes? Steve, Our bqrp099.sqr is a modified version of PER099 - we select additional information from other tables. We are on HRMS 8SP1, tools 8.1.7.4. We don't keep track of PER099 since 2 years ago when we've converted to HRMS 8SP1, but if you have specific advices, I'll really appreciate them, it might be applicable to our program. On suggestion 3 & 4 - could you give me examples or more explanation if you have them handy? If not - I'll talk to our SQR developers. Thanks, Yelena Kontorovich Technical Consultant 847.948.2927 yelena_kontorovich@baxter.com The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the content. "Alexander, Steve" oseca.gov> cc: Sent by: Subject: RE: [sqr-users] Performance help needed - where the time sqr-users-admin@sqrug. goes? org 10/22/2003 07:31 PM Please respond to sqr-users Is this PER099? If so, what version of Peoplesoft is it and what is the date of Peoplesoft's latest change to the program? If you're trying to tune up PER099, we probably have specific advice to get the best results most quickly. If you've got a custom program, our advice will be more general. People generally approach this type of task in four possible ways. First (slowest), by taking each employee from PS_PERSONAL_DATA and reading just his or her rows from the other ten tables. Second (maybe faster, maybe not), with joins to get the rows from the ten other tables while you get the rows from PS_PERSONAL_DATA. Third (pretty fast), with load-lookups on the other tables. Fourth, usually as fast as it gets, by reading the columns you want from each table into a common array, where each employee has one "row" of the array, and there is a field for each column you want to write to PS_EMPLOYEES. I can expand on these approaches if you like. -----Original Message----- From: Ian Mills [mailto:Ian.Mills@orix.com.au] Sent: Wednesday, October 22, 2003 4:29 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Performance help needed - where the time goes? Yelena, It looks like you are talking about Peoplesoft. I have never used it in the past but I thought I may be able to share some of the things I have had to do in writing my SQR reports to improve efficiency. Firstly, one thing I have noticed with SQR is that you can run a query against any database outside of an SQR program and it may take 15sec, but when you include it in your SQR, it may take a minute or more. Why this is so? I do not know. You learn to live with this. In the queries against db's like sybase & oracle etc., you can include index hints to force the database to use a specific index on a table. Sometimes the optimiser can get it very wrong. When running SQR against Sybase especially, somehow in most of the reports, the queries wouldn't use any indexes because SQR somwhow did something to the optimiser which meant you had to include index hints, or the reports would take 10 to 20 times longer than they needed to. Another trick you may want to consider if you haven't already. You say you have to access 10 other tables, you can sort the data from PS_PERSONAL_DATA in such a way that you can minimise the number of queries to these other tables. All you would then do is add code to your report to check if the value you are using to access these other tables is different to the last row. If not, you don't need to access the table again. This would be a significant saving of the number of queries being executed is 80,000 x 10. Is is possible to use LOOKUP tables in your program? In my experience using the -B option, you have to work out a happy medium between increasing the rows extracted to improve database performance, at the same time, not making the value too large that you can effect network performance. When I do need to use -B, I tend to use around 250. Like you, I found that my report ran slower when I made the vaule too large. Is your report producing any SPF output? Any PDF output? If you have a large output file and you are creating a PDF file as well, the time it takes to produce the PDF file can be surprising. We have a report here that runs for upwords of an hour and produces a report of over 1000 pages. 15 to 20 minutes of that run time is time spent producing the PDF file. I hope I have been of some assistance to you. Good luck and I hope you don't have to spent too much more time on this problem. Regards, Ian Mills ORIX Australia Pty Ltd >>> yelena_kontorovich@baxter.com 23/10/2003 8:15:58 am >>> Hello, everyone, I need help with performance. We have a program that runs for 2.5 hours nightly and we are running out of the batch window. Program select appr 80,000 employees from PS_PERSONAL_DATA and PS_EMPLOYMENT and for every emplid it select additional information from another 10 tables to update or insert the record into PS_EMPLOYEES table. I ran explain plan and tkprof and I have (overall) 46 min of CPU time and 53 min of elapsed time. When I run separate statements I'm getting time close to tkprof. If program runs for 150 min, where the rest of the time is going? My DBA thinks that time is going to network or application. We've changes tnsnames.ora to have PROTOCOL=BEQ which should user local connection instead of SQLNet - I got only slight improvement. Also I've played with -B flag: for -B100 I got the same time, for -B1000 time actually increased by 1 hour. I just don't see where the time is, how can it be in application. Do you have any idea? Any help is greatly appreciated, I've spent close to 2 week on this and I'm stuck. Thanks, Yelena Kontorovich Technical Consultant 847.948.2927 yelena_kontorovich@baxter.com The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, re-transmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the content. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org 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 Wed Oct 22 22:51:09 2003 Date: Wed, 22 Oct 2003 20:48:47 -0700 (PDT) From: Roland Ferreras Subject: [sqr-users] Edit Dates from a file. Does anyone have a solid way to edit dates coming in on a file? I'm expecting a date to be in the "mm/dd/yyy" format. So if I get garbage, I need to flag it. Or if the date is 02/30/2003, I need to flag that as a bad date as well. Thanks, Roland "If you are going through hell, keep going." - Sir Winston Churchill (1874-1965) --------------------------------- Do you Yahoo!? The New Yahoo! Shopping - with improved product search _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Oct 24 07:52:17 2003 From: "the dragon" Subject: RE: [sqr-users] HELP.. Creating Dynamic Select/SQL Statement Date: Fri, 24 Oct 2003 07:50:22 -0500 Additionally, when you are selecting dynamic columns, you need to define the variable type... And, I may be wrong on this, but I doubt it, each peice of the select, ie columns, tables, where, order by and group by need to be in their own variable, such as....... And note the message below about adding quotes. Begin-select [$startdatesql] &start_date=date [$column2] &variable2=char from [$table] where [$where_clause] [$order_by] end-select End-Procedure additionally, at one point in time, you had tohave an actual table name in the from for the compile such as from [ps_some_table:$table] (or something like this syntax. and, you might even get away with just doing this select in a regular select or using the sqr variable $current-date rather than making your program overly complicated with dynamic sql. thinking outside the bun, clark 'the dragon' willis dragon enterprises, consulting services 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---- When you create dynamic sql in SQR the concatenation of the string is more involved than just making a string. Take a look at the following working example. let $where_date_clause = ' D.DATE_OC_RECEIVED between ' || '''' || $start-date || '''' || ' and ' || '''' || $ending-date || '''' It is used in the where clause as: WHERE [$where_date_clause] -----Original Message----- I am trying to create a dynamic select statement to be generated in SQR.. I have tried using begin-sql and begin-select and I still get an error message. I need to assign the value from the select statement to a variable.. Where am I going wrong. Here is my code. Begin-Procedure Get_Start_Date Let $numdays = '-'||$_Num_Days Let $startdatesql = 'current timestamp '||$numdays||' from sysibm.sysdummy1' Begin-select [$startdatesql] &start_date end-select End-Procedure I get this error message. Error on line 189: (SQR 7740) Invalid &pseudonym or 'TYPE=' data-type specified for a begin-select column-variable. Valid types are: CHAR, TEXT, DATE, NUMBER [$startdatesql] &start_date Errors were found in the program file. SQR: Program Aborting. Deborah Harris _________________________________________________________________ Never get a busy signal because you are always connected with high-speed Internet access. Click here to comparison-shop providers. https://broadband.msn.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Oct 24 08:04:07 2003 From: "Deborah Harris" Subject: RE: [sqr-users] HELP.. Creating Dynamic Select/SQL Statement Date: Fri, 24 Oct 2003 08:03:22 -0500 Thanks to all for your help, suggestions & comments. The procedure works after I defined a type to the variable while working in windows. It does not however like it when we run it in SQR on Linux. Deb -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org] On Behalf Of the dragon Sent: Friday, October 24, 2003 7:50 AM To: sqr-users@sqrug.org Subject: RE: [sqr-users] HELP.. Creating Dynamic Select/SQL Statement Additionally, when you are selecting dynamic columns, you need to define the variable type... And, I may be wrong on this, but I doubt it, each peice of the select, ie columns, tables, where, order by and group by need to be in their own variable, such as....... And note the message below about adding quotes. Begin-select [$startdatesql] &start_date=date [$column2] &variable2=char from [$table] where [$where_clause] [$order_by] end-select End-Procedure additionally, at one point in time, you had tohave an actual table name in the from for the compile such as from [ps_some_table:$table] (or something like this syntax. and, you might even get away with just doing this select in a regular select or using the sqr variable $current-date rather than making your program overly complicated with dynamic sql. thinking outside the bun, clark 'the dragon' willis dragon enterprises, consulting services 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---- When you create dynamic sql in SQR the concatenation of the string is more involved than just making a string. Take a look at the following working example. let $where_date_clause = ' D.DATE_OC_RECEIVED between ' || '''' || $start-date || '''' || ' and ' || '''' || $ending-date || '''' It is used in the where clause as: WHERE [$where_date_clause] -----Original Message----- I am trying to create a dynamic select statement to be generated in SQR.. I have tried using begin-sql and begin-select and I still get an error message. I need to assign the value from the select statement to a variable.. Where am I going wrong. Here is my code. Begin-Procedure Get_Start_Date Let $numdays = '-'||$_Num_Days Let $startdatesql = 'current timestamp '||$numdays||' from sysibm.sysdummy1' Begin-select [$startdatesql] &start_date end-select End-Procedure I get this error message. Error on line 189: (SQR 7740) Invalid &pseudonym or 'TYPE=' data-type specified for a begin-select column-variable. Valid types are: CHAR, TEXT, DATE, NUMBER [$startdatesql] &start_date Errors were found in the program file. SQR: Program Aborting. Deborah Harris _________________________________________________________________ Never get a busy signal because you are always connected with high-speed Internet access. Click here to comparison-shop providers. https://broadband.msn.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 Oct 24 12:03:07 2003 Date: Fri, 24 Oct 2003 10:00:07 -0700 (PDT) From: premnath sunkara Subject: [sqr-users] Can anybody help I am new to SQR and am working on it from 1 week. I am trying to run the following program. This program reads from a flat file and inserts the data in the flat file into a record. It is giving me the following error Error opening the SQR log file: 'sqr.log' <13>: Permission denied This is happening only for this program. All my other programs are fine. The input file is in the following format 34, 34, 34, 34 34, 34, 34, 34 34, 34, 34, 34 The record in the database is also fine. I mean it has all the fields i gave in the program in the same order. The program is given below: !testing program !using flat files to populate database begin-program open 'C:\Documents and Settings\psunkara\Desktop\test.txt' as 1 for-reading record 3000 !status=#filestat ! if #filestat !0 ! show 'error opening input file' ! else do read_input_file ! end-if end-program begin-procedure read_input_file display 'inseritng records from file C:\Documents and Settings\psunkara\Desktop\test.txt into UHS_PORTINVCODE' move 0 to #inserts move 0 to #tot-recs while not #end-file read 1 into $input:1000 if #end-file break end-if unstring $input by $sepchar into - $UHS_NDIP - $UHS_NDNAME - $UHS_PORT - $UHS_DELTATRAFFIC do insert_temp_job end-while close 1 ! display 'total records inserted: ' noline ! display #tot_recs 999,999,999 end-procedure begin-procedure insert_temp_job begin-sql on-error=insert_error insert into PS_UHS_PORTINVCODE ( UHS_NDIP, UHS_NDNAME, UHS_PORT, UHS_DELTATRAFFIC ) values ( $UHS_NDIP, $UHS_NDNAME, $UHS_PORT, $UHS_DELTATRAFFIC ) end-sql ! if #sql-count=1 ! add 1 to #inserts ! if #inserts >= 500 ! commit ! move 0 to #inserts ! end-if ! add 1 to #tot_recs ! end-if end-procedure begin-procedure insert_error if #sql-status=-9 !if duplicate(this code is for oracle only) show 'insert error:duplicate roe is not allowed for NDIP' $UHS_NDIP else show 'insert error: ' $sql-error show 'error number: ' #sql-status stop !halt program and rollback end-if end-procedure __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Oct 24 12:21:07 2003 From: skirklin@stl-inc.com Subject: RE: [sqr-users] Can anybody help Date: Fri, 24 Oct 2003 11:20:36 -0600 Is it possible that the file is open? -----Original Message----- From: premnath sunkara [mailto:spn1981@yahoo.com] Sent: Friday, October 24, 2003 12:00 PM To: sqr-users@sqrug.org Subject: [sqr-users] Can anybody help I am new to SQR and am working on it from 1 week. I am trying to run the following program. This program reads from a flat file and inserts the data in the flat file into a record. It is giving me the following error Error opening the SQR log file: 'sqr.log' <13>: Permission denied This is happening only for this program. All my other programs are fine. The input file is in the following format 34, 34, 34, 34 34, 34, 34, 34 34, 34, 34, 34 The record in the database is also fine. I mean it has all the fields i gave in the program in the same order. The program is given below: !testing program !using flat files to populate database begin-program open 'C:\Documents and Settings\psunkara\Desktop\test.txt' as 1 for-reading record 3000 !status=#filestat ! if #filestat !0 ! show 'error opening input file' ! else do read_input_file ! end-if end-program begin-procedure read_input_file display 'inseritng records from file C:\Documents and Settings\psunkara\Desktop\test.txt into UHS_PORTINVCODE' move 0 to #inserts move 0 to #tot-recs while not #end-file read 1 into $input:1000 if #end-file break end-if unstring $input by $sepchar into - $UHS_NDIP - $UHS_NDNAME - $UHS_PORT - $UHS_DELTATRAFFIC do insert_temp_job end-while close 1 ! display 'total records inserted: ' noline ! display #tot_recs 999,999,999 end-procedure begin-procedure insert_temp_job begin-sql on-error=insert_error insert into PS_UHS_PORTINVCODE ( UHS_NDIP, UHS_NDNAME, UHS_PORT, UHS_DELTATRAFFIC ) values ( $UHS_NDIP, $UHS_NDNAME, $UHS_PORT, $UHS_DELTATRAFFIC ) end-sql ! if #sql-count=1 ! add 1 to #inserts ! if #inserts >= 500 ! commit ! move 0 to #inserts ! end-if ! add 1 to #tot_recs ! end-if end-procedure begin-procedure insert_error if #sql-status=-9 !if duplicate(this code is for oracle only) show 'insert error:duplicate roe is not allowed for NDIP' $UHS_NDIP else show 'insert error: ' $sql-error show 'error number: ' #sql-status stop !halt program and rollback end-if end-procedure __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users Confidentiality Notice: The information contained in this message is intended only for the use of the addressee, and may be confidential and/or privileged. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately. _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Oct 24 12:34:09 2003 From: "David Thorburn" Subject: Re: [sqr-users] Can anybody help - - - - Foreign SPY Detected!!! Date: Fri, 24 Oct 2003 10:22:58 -0700 ** Foreign SPY Alert!!! ** Foreign Parasite, I bet you told your employer that you were an SQR expert like the rest of your Chutia parasites lie on their resumes! Now you're stuck, huh? Why are you using an anon email address? Are you afraid of your emplor finding out that you are trying to get others to do your work for you Do your own work! Quit stealing American jobs! No knowledge transfer to ANON email addresses! ---------------------------------------------------------------------------- ----------------- ----- Original Message ----- From: "premnath sunkara" To: Sent: Friday, October 24, 2003 10:00 AM Subject: [sqr-users] Can anybody help > I am new to SQR and am working on it from 1 > week. I am trying to run the following program. This > program reads from a flat file and inserts the data in > the flat file into a record. It is giving me the > following error > Error opening the SQR log file: 'sqr.log' > <13>: Permission denied > This is happening only for this program. All my other > programs are fine. The input file is in the following > format > > 34, 34, 34, 34 > 34, 34, 34, 34 > 34, 34, 34, 34 > > The record in the database is also fine. I mean it has > all the fields i gave in the program in the same > order. > The program is given below: > > > !testing program > !using flat files to populate database > > begin-program > > open 'C:\Documents and > Settings\psunkara\Desktop\test.txt' as 1 for-reading > record 3000 > !status=#filestat > ! if #filestat !0 > ! show 'error opening input file' > ! else > do read_input_file > ! end-if > > end-program > > begin-procedure read_input_file > > display 'inseritng records from file C:\Documents and > Settings\psunkara\Desktop\test.txt into > UHS_PORTINVCODE' > move 0 to #inserts > move 0 to #tot-recs > > while not #end-file > read 1 into $input:1000 > if #end-file > break > end-if > unstring $input by $sepchar into - > $UHS_NDIP - > $UHS_NDNAME - > $UHS_PORT - > $UHS_DELTATRAFFIC > > do insert_temp_job > end-while > > close 1 > ! display 'total records inserted: ' noline > ! display #tot_recs 999,999,999 > > end-procedure > > begin-procedure insert_temp_job > > begin-sql on-error=insert_error > > insert into PS_UHS_PORTINVCODE > ( > UHS_NDIP, > UHS_NDNAME, > UHS_PORT, > UHS_DELTATRAFFIC > ) > > values > ( > $UHS_NDIP, > $UHS_NDNAME, > $UHS_PORT, > $UHS_DELTATRAFFIC > ) > > end-sql > ! if #sql-count=1 > ! add 1 to #inserts > ! if #inserts >= 500 > ! commit > ! move 0 to #inserts > ! end-if > ! add 1 to #tot_recs > ! end-if > > end-procedure > > begin-procedure insert_error > > if #sql-status=-9 !if duplicate(this code is for > oracle only) > show 'insert error:duplicate roe is not allowed for > NDIP' $UHS_NDIP > else > show 'insert error: ' $sql-error > show 'error number: ' #sql-status > stop !halt program and rollback > end-if > > end-procedure > > > > > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.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 Fri Oct 24 12:43:05 2003 From: Jim McKeever Subject: RE: [sqr-users] Can anybody help - - - - Foreign SPY Detected!!! Date: Fri, 24 Oct 2003 11:35:56 -0600 PLEASE!!!!! don't start on this again... -----Original Message----- From: David Thorburn [mailto:thorburn@conl.net] Sent: Friday, October 24, 2003 11:23 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Can anybody help - - - - Foreign SPY Detected!!! ** Foreign SPY Alert!!! ** Foreign Parasite, I bet you told your employer that you were an SQR expert like the rest of your Chutia parasites lie on their resumes! Now you're stuck, huh? Why are you using an anon email address? Are you afraid of your emplor finding out that you are trying to get others to do your work for you Do your own work! Quit stealing American jobs! No knowledge transfer to ANON email addresses! ---------------------------------------------------------------------------- ----------------- ----- Original Message ----- From: "premnath sunkara" To: Sent: Friday, October 24, 2003 10:00 AM Subject: [sqr-users] Can anybody help > I am new to SQR and am working on it from 1 > week. I am trying to run the following program. This > program reads from a flat file and inserts the data in > the flat file into a record. It is giving me the > following error > Error opening the SQR log file: 'sqr.log' > <13>: Permission denied > This is happening only for this program. All my other > programs are fine. The input file is in the following > format > > 34, 34, 34, 34 > 34, 34, 34, 34 > 34, 34, 34, 34 > > The record in the database is also fine. I mean it has > all the fields i gave in the program in the same > order. > The program is given below: > > > !testing program > !using flat files to populate database > > begin-program > > open 'C:\Documents and > Settings\psunkara\Desktop\test.txt' as 1 for-reading > record 3000 > !status=#filestat > ! if #filestat !0 > ! show 'error opening input file' > ! else > do read_input_file > ! end-if > > end-program > > begin-procedure read_input_file > > display 'inseritng records from file C:\Documents and > Settings\psunkara\Desktop\test.txt into > UHS_PORTINVCODE' > move 0 to #inserts > move 0 to #tot-recs > > while not #end-file > read 1 into $input:1000 > if #end-file > break > end-if > unstring $input by $sepchar into - > $UHS_NDIP - > $UHS_NDNAME - > $UHS_PORT - > $UHS_DELTATRAFFIC > > do insert_temp_job > end-while > > close 1 > ! display 'total records inserted: ' noline > ! display #tot_recs 999,999,999 > > end-procedure > > begin-procedure insert_temp_job > > begin-sql on-error=insert_error > > insert into PS_UHS_PORTINVCODE > ( > UHS_NDIP, > UHS_NDNAME, > UHS_PORT, > UHS_DELTATRAFFIC > ) > > values > ( > $UHS_NDIP, > $UHS_NDNAME, > $UHS_PORT, > $UHS_DELTATRAFFIC > ) > > end-sql > ! if #sql-count=1 > ! add 1 to #inserts > ! if #inserts >= 500 > ! commit > ! move 0 to #inserts > ! end-if > ! add 1 to #tot_recs > ! end-if > > end-procedure > > begin-procedure insert_error > > if #sql-status=-9 !if duplicate(this code is for > oracle only) > show 'insert error:duplicate roe is not allowed for > NDIP' $UHS_NDIP > else > show 'insert error: ' $sql-error > show 'error number: ' #sql-status > stop !halt program and rollback > end-if > > end-procedure > > > > > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Oct 24 13:09:06 2003 From: "David Thorburn" Subject: Re: [sqr-users] Can anybody help - - - - Foreign SPY Detected!!! Date: Fri, 24 Oct 2003 10:50:02 -0700 This is a national security issue. Regards, D. ---------------------------------------------------------------------------- ----------------- ----- Original Message ----- From: "Jim McKeever" To: Sent: Friday, October 24, 2003 10:35 AM Subject: RE: [sqr-users] Can anybody help - - - - Foreign SPY Detected!!! > PLEASE!!!!! don't start on this again... > > -----Original Message----- > From: David Thorburn [mailto:thorburn@conl.net] > Sent: Friday, October 24, 2003 11:23 AM > To: sqr-users@sqrug.org > Subject: Re: [sqr-users] Can anybody help - - - - Foreign SPY > Detected!!! > > > ** Foreign SPY Alert!!! ** > > Foreign Parasite, > > I bet you told your employer that you were an SQR > expert like the rest of your Chutia parasites lie on their > resumes! > > Now you're stuck, huh? > > Why are you using an anon email address? > > Are you afraid of your emplor finding out that you > are trying to get others to do your work for you > > Do your own work! > > Quit stealing American jobs! > > No knowledge transfer to ANON email addresses! > > -------------------------------------------------------------------------- -- > ----------------- > > ----- Original Message ----- > From: "premnath sunkara" > To: > Sent: Friday, October 24, 2003 10:00 AM > Subject: [sqr-users] Can anybody help > > > > I am new to SQR and am working on it from 1 > > week. I am trying to run the following program. This > > program reads from a flat file and inserts the data in > > the flat file into a record. It is giving me the > > following error > > Error opening the SQR log file: 'sqr.log' > > <13>: Permission denied > > This is happening only for this program. All my other > > programs are fine. The input file is in the following > > format > > > > 34, 34, 34, 34 > > 34, 34, 34, 34 > > 34, 34, 34, 34 > > > > The record in the database is also fine. I mean it has > > all the fields i gave in the program in the same > > order. > > The program is given below: > > > > > > !testing program > > !using flat files to populate database > > > > begin-program > > > > open 'C:\Documents and > > Settings\psunkara\Desktop\test.txt' as 1 for-reading > > record 3000 > > !status=#filestat > > ! if #filestat !0 > > ! show 'error opening input file' > > ! else > > do read_input_file > > ! end-if > > > > end-program > > > > begin-procedure read_input_file > > > > display 'inseritng records from file C:\Documents and > > Settings\psunkara\Desktop\test.txt into > > UHS_PORTINVCODE' > > move 0 to #inserts > > move 0 to #tot-recs > > > > while not #end-file > > read 1 into $input:1000 > > if #end-file > > break > > end-if > > unstring $input by $sepchar into - > > $UHS_NDIP - > > $UHS_NDNAME - > > $UHS_PORT - > > $UHS_DELTATRAFFIC > > > > do insert_temp_job > > end-while > > > > close 1 > > ! display 'total records inserted: ' noline > > ! display #tot_recs 999,999,999 > > > > end-procedure > > > > begin-procedure insert_temp_job > > > > begin-sql on-error=insert_error > > > > insert into PS_UHS_PORTINVCODE > > ( > > UHS_NDIP, > > UHS_NDNAME, > > UHS_PORT, > > UHS_DELTATRAFFIC > > ) > > > > values > > ( > > $UHS_NDIP, > > $UHS_NDNAME, > > $UHS_PORT, > > $UHS_DELTATRAFFIC > > ) > > > > end-sql > > ! if #sql-count=1 > > ! add 1 to #inserts > > ! if #inserts >= 500 > > ! commit > > ! move 0 to #inserts > > ! end-if > > ! add 1 to #tot_recs > > ! end-if > > > > end-procedure > > > > begin-procedure insert_error > > > > if #sql-status=-9 !if duplicate(this code is for > > oracle only) > > show 'insert error:duplicate roe is not allowed for > > NDIP' $UHS_NDIP > > else > > show 'insert error: ' $sql-error > > show 'error number: ' #sql-status > > stop !halt program and rollback > > end-if > > > > end-procedure > > > > > > > > > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Oct 24 17:36:10 2003 From: "Ashish Bhatt" Subject: Re: [sqr-users] Can anybody help - - - - Foreign SPY Detected!!! Date: Fri, 24 Oct 2003 18:35:16 -0400 Are you President Bush's National Security Advisor? ----- Original Message ----- From: "David Thorburn" To: Sent: Friday, October 24, 2003 1:50 PM Subject: Re: [sqr-users] Can anybody help - - - - Foreign SPY Detected!!! > This is a national security issue. > > Regards, > > D. > > -------------------------------------------------------------------------- -- > ----------------- > ----- Original Message ----- > From: "Jim McKeever" > To: > Sent: Friday, October 24, 2003 10:35 AM > Subject: RE: [sqr-users] Can anybody help - - - - Foreign SPY Detected!!! > > > > PLEASE!!!!! don't start on this again... > > > > -----Original Message----- > > From: David Thorburn [mailto:thorburn@conl.net] > > Sent: Friday, October 24, 2003 11:23 AM > > To: sqr-users@sqrug.org > > Subject: Re: [sqr-users] Can anybody help - - - - Foreign SPY > > Detected!!! > > > > > > ** Foreign SPY Alert!!! ** > > > > Foreign Parasite, > > > > I bet you told your employer that you were an SQR > > expert like the rest of your Chutia parasites lie on their > > resumes! > > > > Now you're stuck, huh? > > > > Why are you using an anon email address? > > > > Are you afraid of your emplor finding out that you > > are trying to get others to do your work for you > > > > Do your own work! > > > > Quit stealing American jobs! > > > > No knowledge transfer to ANON email addresses! > > > > -------------------------------------------------------------------------- > -- > > ----------------- > > > > ----- Original Message ----- > > From: "premnath sunkara" > > To: > > Sent: Friday, October 24, 2003 10:00 AM > > Subject: [sqr-users] Can anybody help > > > > > > > I am new to SQR and am working on it from 1 > > > week. I am trying to run the following program. This > > > program reads from a flat file and inserts the data in > > > the flat file into a record. It is giving me the > > > following error > > > Error opening the SQR log file: 'sqr.log' > > > <13>: Permission denied > > > This is happening only for this program. All my other > > > programs are fine. The input file is in the following > > > format > > > > > > 34, 34, 34, 34 > > > 34, 34, 34, 34 > > > 34, 34, 34, 34 > > > > > > The record in the database is also fine. I mean it has > > > all the fields i gave in the program in the same > > > order. > > > The program is given below: > > > > > > > > > !testing program > > > !using flat files to populate database > > > > > > begin-program > > > > > > open 'C:\Documents and > > > Settings\psunkara\Desktop\test.txt' as 1 for-reading > > > record 3000 > > > !status=#filestat > > > ! if #filestat !0 > > > ! show 'error opening input file' > > > ! else > > > do read_input_file > > > ! end-if > > > > > > end-program > > > > > > begin-procedure read_input_file > > > > > > display 'inseritng records from file C:\Documents and > > > Settings\psunkara\Desktop\test.txt into > > > UHS_PORTINVCODE' > > > move 0 to #inserts > > > move 0 to #tot-recs > > > > > > while not #end-file > > > read 1 into $input:1000 > > > if #end-file > > > break > > > end-if > > > unstring $input by $sepchar into - > > > $UHS_NDIP - > > > $UHS_NDNAME - > > > $UHS_PORT - > > > $UHS_DELTATRAFFIC > > > > > > do insert_temp_job > > > end-while > > > > > > close 1 > > > ! display 'total records inserted: ' noline > > > ! display #tot_recs 999,999,999 > > > > > > end-procedure > > > > > > begin-procedure insert_temp_job > > > > > > begin-sql on-error=insert_error > > > > > > insert into PS_UHS_PORTINVCODE > > > ( > > > UHS_NDIP, > > > UHS_NDNAME, > > > UHS_PORT, > > > UHS_DELTATRAFFIC > > > ) > > > > > > values > > > ( > > > $UHS_NDIP, > > > $UHS_NDNAME, > > > $UHS_PORT, > > > $UHS_DELTATRAFFIC > > > ) > > > > > > end-sql > > > ! if #sql-count=1 > > > ! add 1 to #inserts > > > ! if #inserts >= 500 > > > ! commit > > > ! move 0 to #inserts > > > ! end-if > > > ! add 1 to #tot_recs > > > ! end-if > > > > > > end-procedure > > > > > > begin-procedure insert_error > > > > > > if #sql-status=-9 !if duplicate(this code is for > > > oracle only) > > > show 'insert error:duplicate roe is not allowed for > > > NDIP' $UHS_NDIP > > > else > > > show 'insert error: ' $sql-error > > > show 'error number: ' #sql-status > > > stop !halt program and rollback > > > end-if > > > > > > end-procedure > > > > > > > > > > > > > > > > > > > > > __________________________________ > > > Do you Yahoo!? > > > The New Yahoo! Shopping - with improved product search > > > http://shopping.yahoo.com > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.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 Sat Oct 25 13:09:47 2003 From: "David Thorburn" Subject: Re: [sqr-users] Can anybody help - - - - Foreign SPY Detected!!! Date: Sat, 25 Oct 2003 11:03:28 -0700 Take your parasite A** back to Chutia land! It figures that you would be using a hotmail email address like the other Indian Spies. You CAN be found. ---------------------------------------------------------------------------- ----------------- ----- Original Message ----- From: "Ashish Bhatt" To: Sent: Friday, October 24, 2003 3:35 PM Subject: Re: [sqr-users] Can anybody help - - - - Foreign SPY Detected!!! > Are you President Bush's National Security Advisor? > ----- Original Message ----- > From: "David Thorburn" > To: > Sent: Friday, October 24, 2003 1:50 PM > Subject: Re: [sqr-users] Can anybody help - - - - Foreign SPY Detected!!! > > > > This is a national security issue. > > > > Regards, > > > > D. > > > > -------------------------------------------------------------------------- > -- > > ----------------- > > ----- Original Message ----- > > From: "Jim McKeever" > > To: > > Sent: Friday, October 24, 2003 10:35 AM > > Subject: RE: [sqr-users] Can anybody help - - - - Foreign SPY Detected!!! > > > > > > > PLEASE!!!!! don't start on this again... > > > > > > -----Original Message----- > > > From: David Thorburn [mailto:thorburn@conl.net] > > > Sent: Friday, October 24, 2003 11:23 AM > > > To: sqr-users@sqrug.org > > > Subject: Re: [sqr-users] Can anybody help - - - - Foreign SPY > > > Detected!!! > > > > > > > > > ** Foreign SPY Alert!!! ** > > > > > > Foreign Parasite, > > > > > > I bet you told your employer that you were an SQR > > > expert like the rest of your Chutia parasites lie on their > > > resumes! > > > > > > Now you're stuck, huh? > > > > > > Why are you using an anon email address? > > > > > > Are you afraid of your emplor finding out that you > > > are trying to get others to do your work for you > > > > > > Do your own work! > > > > > > Quit stealing American jobs! > > > > > > No knowledge transfer to ANON email addresses! > > > > > > > -------------------------------------------------------------------------- > > -- > > > ----------------- > > > > > > ----- Original Message ----- > > > From: "premnath sunkara" > > > To: > > > Sent: Friday, October 24, 2003 10:00 AM > > > Subject: [sqr-users] Can anybody help > > > > > > > > > > I am new to SQR and am working on it from 1 > > > > week. I am trying to run the following program. This > > > > program reads from a flat file and inserts the data in > > > > the flat file into a record. It is giving me the > > > > following error > > > > Error opening the SQR log file: 'sqr.log' > > > > <13>: Permission denied > > > > This is happening only for this program. All my other > > > > programs are fine. The input file is in the following > > > > format > > > > > > > > 34, 34, 34, 34 > > > > 34, 34, 34, 34 > > > > 34, 34, 34, 34 > > > > > > > > The record in the database is also fine. I mean it has > > > > all the fields i gave in the program in the same > > > > order. > > > > The program is given below: > > > > > > > > > > > > !testing program > > > > !using flat files to populate database > > > > > > > > begin-program > > > > > > > > open 'C:\Documents and > > > > Settings\psunkara\Desktop\test.txt' as 1 for-reading > > > > record 3000 > > > > !status=#filestat > > > > ! if #filestat !0 > > > > ! show 'error opening input file' > > > > ! else > > > > do read_input_file > > > > ! end-if > > > > > > > > end-program > > > > > > > > begin-procedure read_input_file > > > > > > > > display 'inseritng records from file C:\Documents and > > > > Settings\psunkara\Desktop\test.txt into > > > > UHS_PORTINVCODE' > > > > move 0 to #inserts > > > > move 0 to #tot-recs > > > > > > > > while not #end-file > > > > read 1 into $input:1000 > > > > if #end-file > > > > break > > > > end-if > > > > unstring $input by $sepchar into - > > > > $UHS_NDIP - > > > > $UHS_NDNAME - > > > > $UHS_PORT - > > > > $UHS_DELTATRAFFIC > > > > > > > > do insert_temp_job > > > > end-while > > > > > > > > close 1 > > > > ! display 'total records inserted: ' noline > > > > ! display #tot_recs 999,999,999 > > > > > > > > end-procedure > > > > > > > > begin-procedure insert_temp_job > > > > > > > > begin-sql on-error=insert_error > > > > > > > > insert into PS_UHS_PORTINVCODE > > > > ( > > > > UHS_NDIP, > > > > UHS_NDNAME, > > > > UHS_PORT, > > > > UHS_DELTATRAFFIC > > > > ) > > > > > > > > values > > > > ( > > > > $UHS_NDIP, > > > > $UHS_NDNAME, > > > > $UHS_PORT, > > > > $UHS_DELTATRAFFIC > > > > ) > > > > > > > > end-sql > > > > ! if #sql-count=1 > > > > ! add 1 to #inserts > > > > ! if #inserts >= 500 > > > > ! commit > > > > ! move 0 to #inserts > > > > ! end-if > > > > ! add 1 to #tot_recs > > > > ! end-if > > > > > > > > end-procedure > > > > > > > > begin-procedure insert_error > > > > > > > > if #sql-status=-9 !if duplicate(this code is for > > > > oracle only) > > > > show 'insert error:duplicate roe is not allowed for > > > > NDIP' $UHS_NDIP > > > > else > > > > show 'insert error: ' $sql-error > > > > show 'error number: ' #sql-status > > > > stop !halt program and rollback > > > > end-if > > > > > > > > end-procedure > > > > > > > > > > > > > > > > > > > > > > > > > > > > __________________________________ > > > > Do you Yahoo!? > > > > The New Yahoo! Shopping - with improved product search > > > > http://shopping.yahoo.com > > > > > > > > _______________________________________________ > > > > sqr-users mailing list > > > > sqr-users@sqrug.org > > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > 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 Oct 24 13:07:11 2003 From: "Deborah Harris" Subject: RE: [sqr-users] Can anybody help - - - - Foreign SPY Detected!!! Date: Fri, 24 Oct 2003 13:06:05 -0500 Personally. I feel that if you can't use this user group for what it is intended to do and that is to help people solve SQR problems then you should remove yourself from this group. Keep your political views to yourself.. -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org] On Behalf Of David Thorburn Sent: Friday, October 24, 2003 12:23 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Can anybody help - - - - Foreign SPY Detected!!! ** Foreign SPY Alert!!! ** Foreign Parasite, I bet you told your employer that you were an SQR expert like the rest of your Chutia parasites lie on their resumes! Now you're stuck, huh? Why are you using an anon email address? Are you afraid of your emplor finding out that you are trying to get others to do your work for you Do your own work! Quit stealing American jobs! No knowledge transfer to ANON email addresses! ------------------------------------------------------------------------ ---- ----------------- ----- Original Message ----- From: "premnath sunkara" To: Sent: Friday, October 24, 2003 10:00 AM Subject: [sqr-users] Can anybody help > I am new to SQR and am working on it from 1 > week. I am trying to run the following program. This > program reads from a flat file and inserts the data in > the flat file into a record. It is giving me the > following error > Error opening the SQR log file: 'sqr.log' > <13>: Permission denied > This is happening only for this program. All my other > programs are fine. The input file is in the following > format > > 34, 34, 34, 34 > 34, 34, 34, 34 > 34, 34, 34, 34 > > The record in the database is also fine. I mean it has > all the fields i gave in the program in the same > order. > The program is given below: > > > !testing program > !using flat files to populate database > > begin-program > > open 'C:\Documents and > Settings\psunkara\Desktop\test.txt' as 1 for-reading > record 3000 > !status=#filestat > ! if #filestat !0 > ! show 'error opening input file' > ! else > do read_input_file > ! end-if > > end-program > > begin-procedure read_input_file > > display 'inseritng records from file C:\Documents and > Settings\psunkara\Desktop\test.txt into > UHS_PORTINVCODE' > move 0 to #inserts > move 0 to #tot-recs > > while not #end-file > read 1 into $input:1000 > if #end-file > break > end-if > unstring $input by $sepchar into - > $UHS_NDIP - > $UHS_NDNAME - > $UHS_PORT - > $UHS_DELTATRAFFIC > > do insert_temp_job > end-while > > close 1 > ! display 'total records inserted: ' noline > ! display #tot_recs 999,999,999 > > end-procedure > > begin-procedure insert_temp_job > > begin-sql on-error=insert_error > > insert into PS_UHS_PORTINVCODE > ( > UHS_NDIP, > UHS_NDNAME, > UHS_PORT, > UHS_DELTATRAFFIC > ) > > values > ( > $UHS_NDIP, > $UHS_NDNAME, > $UHS_PORT, > $UHS_DELTATRAFFIC > ) > > end-sql > ! if #sql-count=1 > ! add 1 to #inserts > ! if #inserts >= 500 > ! commit > ! move 0 to #inserts > ! end-if > ! add 1 to #tot_recs > ! end-if > > end-procedure > > begin-procedure insert_error > > if #sql-status=-9 !if duplicate(this code is for > oracle only) > show 'insert error:duplicate roe is not allowed for > NDIP' $UHS_NDIP > else > show 'insert error: ' $sql-error > show 'error number: ' #sql-status > stop !halt program and rollback > end-if > > end-procedure > > > > > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org > http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users From sqr-users-admin@sqrug.org Fri Oct 24 13:19:06 2003 Date: Fri, 24 Oct 2003 14:19:41 -0400 From: "Harris, Sam" Subject: RE: [sqr-users] Can anybody help - - - - Foreign SPY Detected!!! I believe there is an agency established to deal with matters of national security. Such matters should be directed to that agency. This group is for SQR issues only. Call you local police for the national security contact information if you do not have it. Sam -----Original Message----- From: David Thorburn [mailto:thorburn@conl.net] Sent: Friday, October 24, 2003 1:50 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Can anybody help - - - - Foreign SPY Detected!!! This is a national security issue. Regards, D. ---------------------------------------------------------------------------- ----------------- ----- Original Message ----- From: "Jim McKeever" To: Sent: Friday, October 24, 2003 10:35 AM Subject: RE: [sqr-users] Can anybody help - - - - Foreign SPY Detected!!! > PLEASE!!!!! don't start on this again... > > -----Original Message----- > From: David Thorburn [mailto:thorburn@conl.net] > Sent: Friday, October 24, 2003 11:23 AM > To: sqr-users@sqrug.org > Subject: Re: [sqr-users] Can anybody help - - - - Foreign SPY > Detected!!! > > > ** Foreign SPY Alert!!! ** > > Foreign Parasite, > > I bet you told your employer that you were an SQR > expert like the rest of your Chutia parasites lie on their resumes! > > Now you're stuck, huh? > > Why are you using an anon email address? > > Are you afraid of your emplor finding out that you > are trying to get others to do your work for you > > Do your own work! > > Quit stealing American jobs! > > No knowledge transfer to ANON email addresses! > > ---------------------------------------------------------------------- > ---- -- > ----------------- > > ----- Original Message ----- > From: "premnath sunkara" > To: > Sent: Friday, October 24, 2003 10:00 AM > Subject: [sqr-users] Can anybody help > > > > I am new to SQR and am working on it from 1 > > week. I am trying to run the following program. This program reads > > from a flat file and inserts the data in the flat file into a > > record. It is giving me the following error > > Error opening the SQR log file: 'sqr.log' > > <13>: Permission denied > > This is happening only for this program. All my other > > programs are fine. The input file is in the following > > format > > > > 34, 34, 34, 34 > > 34, 34, 34, 34 > > 34, 34, 34, 34 > > > > The record in the database is also fine. I mean it has > > all the fields i gave in the program in the same > > order. > > The program is given below: > > > > > > !testing program > > !using flat files to populate database > > > > begin-program > > > > open 'C:\Documents and > > Settings\psunkara\Desktop\test.txt' as 1 for-reading > > record 3000 > > !status=#filestat > > ! if #filestat !0 > > ! show 'error opening input file' > > ! else > > do read_input_file > > ! end-if > > > > end-program > > > > begin-procedure read_input_file > > > > display 'inseritng records from file C:\Documents and > > Settings\psunkara\Desktop\test.txt into UHS_PORTINVCODE' > > move 0 to #inserts > > move 0 to #tot-recs > > > > while not #end-file > > read 1 into $input:1000 > > if #end-file > > break > > end-if > > unstring $input by $sepchar into - > > $UHS_NDIP - > > $UHS_NDNAME - > > $UHS_PORT - > > $UHS_DELTATRAFFIC > > > > do insert_temp_job > > end-while > > > > close 1 > > ! display 'total records inserted: ' noline > > ! display #tot_recs 999,999,999 > > > > end-procedure > > > > begin-procedure insert_temp_job > > > > begin-sql on-error=insert_error > > > > insert into PS_UHS_PORTINVCODE > > ( > > UHS_NDIP, > > UHS_NDNAME, > > UHS_PORT, > > UHS_DELTATRAFFIC > > ) > > > > values > > ( > > $UHS_NDIP, > > $UHS_NDNAME, > > $UHS_PORT, > > $UHS_DELTATRAFFIC > > ) > > > > end-sql > > ! if #sql-count=1 > > ! add 1 to #inserts > > ! if #inserts >= 500 > > ! commit > > ! move 0 to #inserts > > ! end-if > > ! add 1 to #tot_recs > > ! end-if > > > > end-procedure > > > > begin-procedure insert_error > > > > if #sql-status=-9 !if duplicate(this code is for > > oracle only) > > show 'insert error:duplicate roe is not allowed for > > NDIP' $UHS_NDIP > > else > > show 'insert error: ' $sql-error > > show 'error number: ' #sql-status > > stop !halt program and rollback > > end-if > > > > end-procedure > > > > > > > > > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product search > > http://shopping.yahoo.com > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users > > > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users > > _______________________________________________ > sqr-users mailing list > sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users > _______________________________________________ sqr-users mailing list sqr-users@sqrug.org http://www.sqrug.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 Oct 27 07:41:43 2003 Date: Mon, 27 Oct 2003 07:38:55 -0500 From: "Varsha Das" Subject: Re: [sqr-users] Can anybody help - - - - Foreign SPY Detected!!! Enough already! Does this list have a owner? Why is everyones time being wasted with non-sqr related mail? Varsha. >>> thorburn@conl.net 10/25/2003 2:03:28 PM >>> Take your parasite A** back to Chutia land! It figures that you would be using a hotmail email address like the other Indian Spies. You CAN be found. ---------------------------------------------------------------------------- ----------------- ----- Original Message ----- From: "Ashish Bhatt" To: Sent: Friday, October 24, 2003 3:35 PM Subject: Re: [sqr-users] Can anybody help - - - - Foreign SPY Detected!!! > Are you President Bush's National Security Advisor? > ----- Original Message ----- > From: "David Thorburn" > To: > Sent: Friday, October 24, 2003 1:50 PM > Subject: Re: [sqr-users] Can anybody help - - - - Foreign SPY Detected!!! > > > > This is a national security issue. > > > > Regards, > > > > D. > > > > -------------------------------------------------------------------------- > -- > > ----------------- > > ----- Original Message ----- > > From: "Jim McKeever" > > To: > > Sent: Friday, October 24, 2003 10:35 AM > > Subject: RE: [sqr-users] Can anybody help - - - - Foreign SPY Detected!!! > > > > > > > PLEASE!!!!! don't start on this again... > > > > > > -----Original Message----- > > > From: David Thorburn [mailto:thorburn@conl.net] > > > Sent: Friday, October 24, 2003 11:23 AM > > > To: sqr-users@sqrug.org > > > Subject: Re: [sqr-users] Can anybody help - - - - Foreign SPY > > > Detected!!! > > > > > > > > > ** Foreign SPY Alert!!! ** > > > > > > Foreign Parasite, > > > > > > I bet you told your employer that you were an SQR > > > expert like the rest of your Chutia parasites lie on their > > > resumes! > > > > > > Now you're stuck, huh? > > > > > > Why are you using an anon email address? > > > > > > Are you afraid of your emplor finding out that you > > > are trying to get others to do your work for you > > > > > > Do your own work! > > > > > > Quit stealing American jobs! > > > > > > No knowledge transfer to ANON email addresses! > > > > > > > -------------------------------------------------------------------------- > > -- > > > ----------------- > > > > > > ----- Original Message ----- > > > From: "premnath sunkara" > > > To: > > > Sent: Friday, October 24, 2003 10:00 AM > > > Subject: [sqr-users] Can anybody help > > > > > > > > > > I am new to SQR and am working on it from 1 > > > > week. I am trying to run the following program. This > > > > program reads from a flat file and inserts the data in > > > > the flat file into a record. It is giving me the > > > > following error > > > > Error opening the SQR log file: 'sqr.log' > > > > <13>: Permission denied > > > > This is happening only for this program. All my other > > > > programs are fine. The input file is in the following > > > > format > > > > > > > > 34, 34, 34, 34 > > > > 34, 34, 34, 34 > > > > 34, 34, 34, 34 > > > > > > > > The record in the database is also fine. I mean it has > > > > all the fields i gave in the program in the same > > > > order. > > > > The program is given below: > > > > > > > > > > > > !testing program > > > > !using flat files to populate database > > > > > > > > begin-program > > > > > > > > open 'C:\Documents and > > > > Settings\psunkara\Desktop\test.txt' as 1 for-reading > > > > record 3000 > > > > !status=#filestat > > > > ! if #filestat !0 > > > > ! show 'error opening input file' > > > > ! else > > > > do read_input_file > > > > ! end-if > > > > > > > > end-program > > > > > > > > begin-procedure read_input_file > > > > > > > > display 'inseritng records from file C:\Documents and > > > > Settings\psunkara\Desktop\test.txt into > > > > UHS_PORTINVCODE' > > > > move 0 to #inserts > > > > move 0 to #tot-recs > > > > > > > > while not #end-file > > > > read 1 into $input:1000 > > > > if #end-file > > > > break > > > > end-if > > > > unstring $input by $sepchar into - > > > > $UHS_NDIP - > > > > $UHS_NDNAME - > > > > $UHS_PORT - > > > > $UHS_DELTATRAFFIC > > > > > > > > do insert_temp_job > > > > end-while > > > > > > > > close 1 > > > > ! display 'total records inserted: ' noline > > > > ! display #tot_recs 999,999,999 > > > > > > > > end-procedure > > > > > > > > begin-procedure insert_temp_job > > > > > > > > begin-sql on-error=insert_error > > > > > > > > insert into PS_UHS_PORTINVCODE > > > > ( > > > > UHS_NDIP, > > > > UHS_NDNAME, > > > > UHS_PORT, > > > > UHS_DELTATRAFFIC > > > > ) > > > > > > > > values > > > > ( > > > > $UHS_NDIP, > > > > $UHS_NDNAME, > > > > $UHS_PORT, > > > > $UHS_DELTATRAFFIC > > > > ) > > > > > > > > end-sql > > > > ! if #sql-count=1 > > > > ! add 1 to #inserts > > > > ! if #inserts >= 500 > > > > ! commit > > > > ! move 0 to #inserts > > > > ! end-if > > > > ! add 1 to #tot_recs > > > > ! end-if > > > > > > > > end-procedure > > > > > > > > begin-procedure insert_error > > > > > > > > if #sql-status=-9 !if duplicate(this code is for > > > > oracle only) > > > > show 'insert error:duplicate roe is not allowed for > > > > NDIP' $UHS_NDIP > > > > else > > > > show 'insert error: ' $sql-error > > > > show 'error number: ' #sql-status > > > > stop !halt program and rollback > > > > end-if > > > > > > > > end-procedure > > > > > > > > > > > > > > > > > > > > > > > > > > > > __________________________________ > > > > Do you Yahoo!? > > > > The New Yahoo! Shopping - with improved product search > > > > http://shopping.yahoo.com > > > > > > > > _______________________________________________ > > > > sqr-users mailing list > > > > sqr-users@sqrug.org > > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > 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 Oct 27 07:51:10 2003 From: "Overcashier, Patricia" Subject: RE: [sqr-users] Can anybody help - - - - Foreign SPY Detected!!! Date: Mon, 27 Oct 2003 07:50:22 -0500 I agree. One of the things I admire most about this group is that it states just the facts, no nonsense! Up until now, I felt very lucky to be part of this group and receive all of the informational emails. Now I am considering unsubscribing. Patti -----Original Message----- From: Varsha Das [mailto:vdas@mail.ucf.edu] Sent: Monday, October 27, 2003 7:39 AM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Can anybody help - - - - Foreign SPY Detected!!! Enough already! Does this list have a owner? Why is everyones time being wasted with non-sqr related mail? Varsha. >>> thorburn@conl.net 10/25/2003 2:03:28 PM >>> Take your parasite A** back to Chutia land! It figures that you would be using a hotmail email address like the other Indian Spies. You CAN be found. ---------------------------------------------------------------------------- ----------------- ----- Original Message ----- From: "Ashish Bhatt" To: Sent: Friday, October 24, 2003 3:35 PM Subject: Re: [sqr-users] Can anybody help - - - - Foreign SPY Detected!!! > Are you President Bush's National Security Advisor? > ----- Original Message ----- > From: "David Thorburn" > To: > Sent: Friday, October 24, 2003 1:50 PM > Subject: Re: [sqr-users] Can anybody help - - - - Foreign SPY Detected!!! > > > > This is a national security issue. > > > > Regards, > > > > D. > > > > -------------------------------------------------------------------------- > -- > > ----------------- > > ----- Original Message ----- > > From: "Jim McKeever" > > To: > > Sent: Friday, October 24, 2003 10:35 AM > > Subject: RE: [sqr-users] Can anybody help - - - - Foreign SPY Detected!!! > > > > > > > PLEASE!!!!! don't start on this again... > > > > > > -----Original Message----- > > > From: David Thorburn [mailto:thorburn@conl.net] > > > Sent: Friday, October 24, 2003 11:23 AM > > > To: sqr-users@sqrug.org > > > Subject: Re: [sqr-users] Can anybody help - - - - Foreign SPY > > > Detected!!! > > > > > > > > > ** Foreign SPY Alert!!! ** > > > > > > Foreign Parasite, > > > > > > I bet you told your employer that you were an SQR > > > expert like the rest of your Chutia parasites lie on their > > > resumes! > > > > > > Now you're stuck, huh? > > > > > > Why are you using an anon email address? > > > > > > Are you afraid of your emplor finding out that you > > > are trying to get others to do your work for you > > > > > > Do your own work! > > > > > > Quit stealing American jobs! > > > > > > No knowledge transfer to ANON email addresses! > > > > > > > -------------------------------------------------------------------------- > > -- > > > ----------------- > > > > > > ----- Original Message ----- > > > From: "premnath sunkara" > > > To: > > > Sent: Friday, October 24, 2003 10:00 AM > > > Subject: [sqr-users] Can anybody help > > > > > > > > > > I am new to SQR and am working on it from 1 > > > > week. I am trying to run the following program. This > > > > program reads from a flat file and inserts the data in > > > > the flat file into a record. It is giving me the > > > > following error > > > > Error opening the SQR log file: 'sqr.log' > > > > <13>: Permission denied > > > > This is happening only for this program. All my other > > > > programs are fine. The input file is in the following > > > > format > > > > > > > > 34, 34, 34, 34 > > > > 34, 34, 34, 34 > > > > 34, 34, 34, 34 > > > > > > > > The record in the database is also fine. I mean it has > > > > all the fields i gave in the program in the same > > > > order. > > > > The program is given below: > > > > > > > > > > > > !testing program > > > > !using flat files to populate database > > > > > > > > begin-program > > > > > > > > open 'C:\Documents and > > > > Settings\psunkara\Desktop\test.txt' as 1 for-reading > > > > record 3000 > > > > !status=#filestat > > > > ! if #filestat !0 > > > > ! show 'error opening input file' > > > > ! else > > > > do read_input_file > > > > ! end-if > > > > > > > > end-program > > > > > > > > begin-procedure read_input_file > > > > > > > > display 'inseritng records from file C:\Documents and > > > > Settings\psunkara\Desktop\test.txt into > > > > UHS_PORTINVCODE' > > > > move 0 to #inserts > > > > move 0 to #tot-recs > > > > > > > > while not #end-file > > > > read 1 into $input:1000 > > > > if #end-file > > > > break > > > > end-if > > > > unstring $input by $sepchar into - > > > > $UHS_NDIP - > > > > $UHS_NDNAME - > > > > $UHS_PORT - > > > > $UHS_DELTATRAFFIC > > > > > > > > do insert_temp_job > > > > end-while > > > > > > > > close 1 > > > > ! display 'total records inserted: ' noline > > > > ! display #tot_recs 999,999,999 > > > > > > > > end-procedure > > > > > > > > begin-procedure insert_temp_job > > > > > > > > begin-sql on-error=insert_error > > > > > > > > insert into PS_UHS_PORTINVCODE > > > > ( > > > > UHS_NDIP, > > > > UHS_NDNAME, > > > > UHS_PORT, > > > > UHS_DELTATRAFFIC > > > > ) > > > > > > > > values > > > > ( > > > > $UHS_NDIP, > > > > $UHS_NDNAME, > > > > $UHS_PORT, > > > > $UHS_DELTATRAFFIC > > > > ) > > > > > > > > end-sql > > > > ! if #sql-count=1 > > > > ! add 1 to #inserts > > > > ! if #inserts >= 500 > > > > ! commit > > > > ! move 0 to #inserts > > > > ! end-if > > > > ! add 1 to #tot_recs > > > > ! end-if > > > > > > > > end-procedure > > > > > > > > begin-procedure insert_error > > > > > > > > if #sql-status=-9 !if duplicate(this code is for > > > > oracle only) > > > > show 'insert error:duplicate roe is not allowed for > > > > NDIP' $UHS_NDIP > > > > else > > > > show 'insert error: ' $sql-error > > > > show 'error number: ' #sql-status > > > > stop !halt program and rollback > > > > end-if > > > > > > > > end-procedure > > > > > > > > > > > > > > > > > > > > > > > > > > > > __________________________________ > > > > Do you Yahoo!? > > > > The New Yahoo! Shopping - with improved product search > > > > http://shopping.yahoo.com > > > > > > > > _______________________________________________ > > > > sqr-users mailing list > > > > sqr-users@sqrug.org > > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > _______________________________________________ > > sqr-users mailing list > > sqr-users@sqrug.org > > 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 ********************************************************************** 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 Mon Oct 27 09:24:07 2003 From: Ray Ontko Date: Mon, 27 Oct 2003 09:23:27 -0500 Subject: Re: [sqr-users] Can anybody help - - - - Foreign SPY Detected!!! Mr. Thorburn, others, The purpose of this list is to provide a forum for exchange of technical information regarding SQR. It is explicitly NOT a forum for comment or debate regarding American IT jobs. If you don't want to help others on the list, don't help. If you persist in being disruptive, we'll have to ask you to leave. Ray On Mon, Oct 27, 2003 at 07:50:22AM -0500, Overcashier, Patricia wrote: > I agree. One of the things I admire most about this group is that it states > just the facts, no nonsense! Up until now, I felt very lucky to be part of > this group and receive all of the informational emails. Now I am > considering unsubscribing. > Patti > > -----Original Message----- > From: Varsha Das [mailto:vdas@mail.ucf.edu] > Sent: Monday, October 27, 2003 7:39 AM > To: sqr-users@sqrug.org > Subject: Re: [sqr-users] Can anybody help - - - - Foreign SPY > Detected!!! > > > Enough already! > > Does this list have a owner? Why is everyones time being wasted with > non-sqr related mail? > > Varsha. > > >>> thorburn@conl.net 10/25/2003 2:03:28 PM >>> > Take your parasite A** back to Chutia land! > > It figures that you would be using a hotmail email address > like the other Indian Spies. > > You CAN be found. > > ---------------------------------------------------------------------------- > ----------------- > ----- Original Message ----- > From: "Ashish Bhatt" > To: > Sent: Friday, October 24, 2003 3:35 PM > Subject: Re: [sqr-users] Can anybody help - - - - Foreign SPY > Detected!!! > > > > Are you President Bush's National Security Advisor? > > ----- Original Message ----- > > From: "David Thorburn" > > To: > > Sent: Friday, October 24, 2003 1:50 PM > > Subject: Re: [sqr-users] Can anybody help - - - - Foreign SPY > Detected!!! > > > > > > > This is a national security issue. > > > > > > Regards, > > > > > > D. > > > > > > > > -------------------------------------------------------------------------- > > -- > > > ----------------- > > > ----- Original Message ----- > > > From: "Jim McKeever" > > > To: > > > Sent: Friday, October 24, 2003 10:35 AM > > > Subject: RE: [sqr-users] Can anybody help - - - - Foreign SPY > Detected!!! > > > > > > > > > > PLEASE!!!!! don't start on this again... > > > > > > > > -----Original Message----- > > > > From: David Thorburn [mailto:thorburn@conl.net] > > > > Sent: Friday, October 24, 2003 11:23 AM > > > > To: sqr-users@sqrug.org > > > > Subject: Re: [sqr-users] Can anybody help - - - - Foreign SPY > > > > Detected!!! > > > > > > > > > > > > ** Foreign SPY Alert!!! ** > > > > > > > > Foreign Parasite, > > > > > > > > I bet you told your employer that you were an SQR > > > > expert like the rest of your Chutia parasites lie on their > > > > resumes! > > > > > > > > Now you're stuck, huh? > > > > > > > > Why are you using an anon email address? > > > > > > > > Are you afraid of your emplor finding out that you > > > > are trying to get others to do your work for you > > > > > > > > Do your own work! > > > > > > > > Quit stealing American jobs! > > > > > > > > No knowledge transfer to ANON email addresses! > > > > > > > > > > > > -------------------------------------------------------------------------- > > > -- > > > > ----------------- > > > > > > > > ----- Original Message ----- > > > > From: "premnath sunkara" > > > > To: > > > > Sent: Friday, October 24, 2003 10:00 AM > > > > Subject: [sqr-users] Can anybody help > > > > > > > > > > > > > I am new to SQR and am working on it from 1 > > > > > week. I am trying to run the following program. This > > > > > program reads from a flat file and inserts the data in > > > > > the flat file into a record. It is giving me the > > > > > following error > > > > > Error opening the SQR log file: 'sqr.log' > > > > > <13>: Permission denied > > > > > This is happening only for this program. All my other > > > > > programs are fine. The input file is in the following > > > > > format > > > > > > > > > > 34, 34, 34, 34 > > > > > 34, 34, 34, 34 > > > > > 34, 34, 34, 34 > > > > > > > > > > The record in the database is also fine. I mean it has > > > > > all the fields i gave in the program in the same > > > > > order. > > > > > The program is given below: > > > > > > > > > > > > > > > !testing program > > > > > !using flat files to populate database > > > > > > > > > > begin-program > > > > > > > > > > open 'C:\Documents and > > > > > Settings\psunkara\Desktop\test.txt' as 1 for-reading > > > > > record 3000 > > > > > !status=#filestat > > > > > ! if #filestat !0 > > > > > ! show 'error opening input file' > > > > > ! else > > > > > do read_input_file > > > > > ! end-if > > > > > > > > > > end-program > > > > > > > > > > begin-procedure read_input_file > > > > > > > > > > display 'inseritng records from file C:\Documents and > > > > > Settings\psunkara\Desktop\test.txt into > > > > > UHS_PORTINVCODE' > > > > > move 0 to #inserts > > > > > move 0 to #tot-recs > > > > > > > > > > while not #end-file > > > > > read 1 into $input:1000 > > > > > if #end-file > > > > > break > > > > > end-if > > > > > unstring $input by $sepchar into - > > > > > $UHS_NDIP - > > > > > $UHS_NDNAME - > > > > > $UHS_PORT - > > > > > $UHS_DELTATRAFFIC > > > > > > > > > > do insert_temp_job > > > > > end-while > > > > > > > > > > close 1 > > > > > ! display 'total records inserted: ' noline > > > > > ! display #tot_recs 999,999,999 > > > > > > > > > > end-procedure > > > > > > > > > > begin-procedure insert_temp_job > > > > > > > > > > begin-sql on-error=insert_error > > > > > > > > > > insert into PS_UHS_PORTINVCODE > > > > > ( > > > > > UHS_NDIP, > > > > > UHS_NDNAME, > > > > > UHS_PORT, > > > > > UHS_DELTATRAFFIC > > > > > ) > > > > > > > > > > values > > > > > ( > > > > > $UHS_NDIP, > > > > > $UHS_NDNAME, > > > > > $UHS_PORT, > > > > > $UHS_DELTATRAFFIC > > > > > ) > > > > > > > > > > end-sql > > > > > ! if #sql-count=1 > > > > > ! add 1 to #inserts > > > > > ! if #inserts >= 500 > > > > > ! commit > > > > > ! move 0 to #inserts > > > > > ! end-if > > > > > ! add 1 to #tot_recs > > > > > ! end-if > > > > > > > > > > end-procedure > > > > > > > > > > begin-procedure insert_error > > > > > > > > > > if #sql-status=-9 !if duplicate(this code is for > > > > > oracle only) > > > > > show 'insert error:duplicate roe is not allowed for > > > > > NDIP' $UHS_NDIP > > > > > else > > > > > show 'insert error: ' $sql-error > > > > > show 'error number: ' #sql-status > > > > > stop !halt program and rollback > > > > > end-if > > > > > > > > > > end-procedure > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > __________________________________ > > > > > Do you Yahoo!? > > > > > The New Yahoo! Shopping - with improved product search > > > > > http://shopping.yahoo.com > > > > > > > > > > _______________________________________________ > > > > > sqr-users mailing list > > > > > sqr-users@sqrug.org > > > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > > > > _______________________________________________ > > > > sqr-users mailing list > > > > sqr-users@sqrug.org > > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > _______________________________________________ > > > > sqr-users mailing list > > > > sqr-users@sqrug.org > > > > http://www.sqrug.org/mailman/listinfo/sqr-users > > > > > > > > > > _______________________________________________ > > > sqr-users mailing list > > > sqr-users@sqrug.org > > > 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 > > > ********************************************************************** > 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 ---------------------------------------------------------------------- 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 Oct 27 09:16:24 2003 Subject: RE: [sqr-users] Can anybody help - - - - Foreign SPY Detected!!! Date: Mon, 27 Oct 2003 07:15:20 -0700 From: "Turner, Ivan" Why are you accusing someone else of what you are? Remember the Native American? -----Original Message----- From: sqr-users-admin@sqrug.org [mailto:sqr-users-admin@sqrug.org] On Behalf Of David Thorburn Sent: Saturday, October 25, 2003 2:03 PM To: sqr-users@sqrug.org Subject: Re: [sqr-users] Can anybody help - - - - Foreign SPY Detected!!! Take your parasite A** back to Chutia land! It figures that you would be using a hotmail email address like the other Indian Spies. You CAN be found. ------------------------------------------------------------------------ ---- ----------------- ----- Original Message ----- From: "Ashish Bhatt" To: Sent: Friday, October 24, 2003 3:35 PM Subject: Re: [sqr-users] Can anybody help - - - - Foreign SPY Detected!!! > Are you President Bush's National Security Advisor? > ----- Original Message ----- > From: "David Thorburn" > To: > Sent: Friday, October 24, 2003 1:50 PM > Subject: Re: [sqr-users] Can anybody help - - - - Foreign SPY > Detected!!! > > > > This is a national security issue. > > > > Regards, > > > > D. > > > > ---------------------------------------------------------------------- > ---- > -- > > ----------------- > > ----- Original Message ----- > > From: "Jim McKeever" > > To: > > Sent: Friday, October 24, 2003 10:35 AM > > Subject: RE: [sqr-users] Can anybody help - - - - Foreign SPY Detected!!! > > > > > > > PLEASE!!!!! don't start on this again... > > > > > > -----Original Message----- > > > From: David Thorburn [mailto:thorburn@conl.net] > > > Sent: Friday, October 24, 2003 11:23 AM > > > To: sqr-users@sqrug.org > > > Subject: Re: [sqr-users] Can anybody help - - - - Foreign SPY > > > Detected!!! > > > > > > > > > ** Foreign SPY Alert!!! ** > > > > > > Foreign Parasite, > > > > > > I bet you told your employer that you were an SQR > > > expert like the rest of your Chutia parasites lie on their > > > resumes! > > > > > > Now you're stuck, huh? > > > > > > Why are you using an anon email address? > > > > > > Are you afraid of your emplor finding out that you > > > are trying to get others to do your work for you > > > > > > Do your own work! > > > > > > Quit stealing American jobs! > > > > > > No knowledge transfer to ANON email addresses! > > > > > > > ---------------------------------------------------------------------- > ---- > > -- > > > ----------------- > > > > > > ----- Original Message ----- > > > From: "premnath sunkara" > > > To: > > > Sent: Friday, October 24, 2003 10:00 AM > > > Subject: [sqr-users] Can anybody help > > > > > > > > > > I am new to SQR and am working on it from 1 week. I am > > > > trying to run the following program. This program reads from a > > > > flat file and inserts the data in the flat file into a record. > > > > It is giving me the following error > > > > Error opening the SQR log file: 'sqr.log' > > > > <13>: Permission denied > > > > This is happening only for this program. All my other > > > > programs are fine. The input file is in the following >