From owner-sqr-users@list.iex.net Tue Jan 1 00:11:42 2002 Date: Tue, 1 Jan 2002 00:00:02 -0500 From: Nathan Stratton Treadway Subject: Monthly sqr-users Hints Posting sqr-users Mailing List Hints and Guidelines Nathan Stratton Treadway, Ray Ontko & Co. (nathant@ontko.com) $Revision: 1.9 $ $Date: 2001-06-17 13:23:18-04 $ This document gathers in one location information about the sqr-users mail list. Directions for common list-server commands (including unsubscribing) are given, as are guidelines for list usage. ______________________________________________________________________ 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. Basic List Server Commands 3.1 Subscribing to the List 3.2 Unsubscribing from the List 3.3 Digests 3.4 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 2001/01/26: o Announce new sqr-jobs mailing list; Job Announcements section updated to reflect this new list. 2. Introduction 2.1. sqr-users Mailing List The sqr-users mailing list was created to enable discussion related to the SQR database language from Brio Technology (and to other products in the Brio.Report line). Note: SQR used to be published by SQRIBE Technologies, which was merged into Brio Technology on August 3, 1999. 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.com/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-2001 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 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. rm-users : ReportMart 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.com". 3. Basic List Server Commands Note: The list used to be hosted on usa.net , but the list-hosting service was moved to list.iex.net . The old addresses for the list, list server, and list owner no longer work. A few basic list server commands are listed below. Send these commands as the only line in the body (not the subject line) of an e- mail message sent to "listserv@list.iex.net". 3.1. Subscribing to the List To subscribe to the mailing list, the command is subscribe sqr-users Your Name Note that you do not need to provide your e-mail address as it is taken from your message's header. You will be e-mailed a confirmation number, which you must then send back to the list server software before the command goes into effect. 3.2. Unsubscribing from the List To unsubscribe, the command is simply unsubscribe sqr-users Once again, you will need to confirm your command before it goes into effect. 3.3. Digests Once you are subscribed, you can request to get your messages in digest form (one large message containing all of the posts made each day) by sending the command set sqr-users digests 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. Use "nodigests" instead of "digests" to restore normal distribution. 3.4. Problems If the above commands do not work, please contact the list manager at "sqr-users-request@list.iex.net". (Do not send a message to the list itself -- no one there can help you with your problem!) Please include a copy of the error message you received from the list server. 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.) 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. 4.2. Posting a Message Once you are subscribed, you can post to the list by sending a message to "sqr-users@list.iex.net". 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 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. To find out your version 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 your own information. 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.) In particular, in order to prevent mail loops, the list server will not accept messages that contain From:, Sender:, etc. lines pointing back to the sqr-users list, even if these lines are quoted (i.e. with ">" characters). Be sure to delete these from your reply message before sending it. 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. From owner-sqr-users@list.iex.net Tue Jan 1 23:51:56 2002 Date: Wed, 2 Jan 2002 10:24:17 +0530 From: Satyen Timbadia Subject: Brio ReportBuilder Hi Friends, I need to download a trial copy of Brio ReportBuilder. Can anybody suggest a website or any authorised reseller in Mumbai, India. Thanks & Regards, Satyen Timbadia Voice : 778 1006/8/9 - Ext: 3023 Email : satyen.timbadia@patni.com From owner-sqr-users@list.iex.net Wed Jan 2 07:28:16 2002 Date: Wed, 2 Jan 2002 07:00:28 -0500 From: "Robinson, Celeste" Subject: set sqr-users digests set sqr-users digests Celeste Hunter Robinson Programmer/Analyst -----Original Message----- From: Nathan Stratton Treadway [mailto:nathant@ONTKO.COM] Sent: Tuesday, January 01, 2002 12:00 AM To: SQR-USERS@list.iex.net Subject: Monthly sqr-users Hints Posting sqr-users Mailing List Hints and Guidelines Nathan Stratton Treadway, Ray Ontko & Co. (nathant@ontko.com) $Revision: 1.9 $ $Date: 2001-06-17 13:23:18-04 $ This document gathers in one location information about the sqr-users mail list. Directions for common list-server commands (including unsubscribing) are given, as are guidelines for list usage. ______________________________________________________________________ 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. Basic List Server Commands 3.1 Subscribing to the List 3.2 Unsubscribing from the List 3.3 Digests 3.4 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 2001/01/26: o Announce new sqr-jobs mailing list; Job Announcements section updated to reflect this new list. 2. Introduction 2.1. sqr-users Mailing List The sqr-users mailing list was created to enable discussion related to the SQR database language from Brio Technology (and to other products in the Brio.Report line). Note: SQR used to be published by SQRIBE Technologies, which was merged into Brio Technology on August 3, 1999. 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.com/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-2001 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 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. rm-users : ReportMart 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.com". 3. Basic List Server Commands Note: The list used to be hosted on usa.net , but the list-hosting service was moved to list.iex.net . The old addresses for the list, list server, and list owner no longer work. A few basic list server commands are listed below. Send these commands as the only line in the body (not the subject line) of an e- mail message sent to "listserv@list.iex.net". 3.1. Subscribing to the List To subscribe to the mailing list, the command is subscribe sqr-users Your Name Note that you do not need to provide your e-mail address as it is taken from your message's header. You will be e-mailed a confirmation number, which you must then send back to the list server software before the command goes into effect. 3.2. Unsubscribing from the List To unsubscribe, the command is simply unsubscribe sqr-users Once again, you will need to confirm your command before it goes into effect. 3.3. Digests Once you are subscribed, you can request to get your messages in digest form (one large message containing all of the posts made each day) by sending the command set sqr-users digests 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. Use "nodigests" instead of "digests" to restore normal distribution. 3.4. Problems If the above commands do not work, please contact the list manager at "sqr-users-request@list.iex.net". (Do not send a message to the list itself -- no one there can help you with your problem!) Please include a copy of the error message you received from the list server. 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.) 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. 4.2. Posting a Message Once you are subscribed, you can post to the list by sending a message to "sqr-users@list.iex.net". 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 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. To find out your version 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 your own information. 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.) In particular, in order to prevent mail loops, the list server will not accept messages that contain From:, Sender:, etc. lines pointing back to the sqr-users list, even if these lines are quoted (i.e. with ">" characters). Be sure to delete these from your reply message before sending it. 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. ==================== This email/fax 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 of this email/fax is prohibited. If you are not the intended recipient, please contact the sender by email/fax and destroy all paper and electronic copies of the original message. From owner-sqr-users@list.iex.net Wed Jan 2 07:28:56 2002 Date: Wed, 2 Jan 2002 07:04:08 -0500 From: "Robinson, Celeste" Subject: Recall: set sqr-users digests Robinson, Celeste would like to recall the message, "set sqr-users digests". ==================== This email/fax 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 of this email/fax is prohibited. If you are not the intended recipient, please contact the sender by email/fax and destroy all paper and electronic copies of the original message. From owner-sqr-users@list.iex.net Wed Jan 2 09:58:34 2002 Date: Wed, 2 Jan 2002 09:50:36 -0500 From: Denise White Subject: Re: SQL expression not ended, perhaps missing &name Hi Kim, As someone else mentioned (wording it a little differently), within a BEGIN-SELECT, you need to indent all SQR code. In other words, you should begin the columns being selected, the FROM clause, and I think the WHERE clause in the first column of your program, but all the code between the columns and the FROM should be indented. This is definitely the problem you are having, as the two messages indicate the two BEGIN-SELECTs where the SQR code is not indented. I didn't closely examine all your code, but I also see another problem. In the Select-Prod-Client procedure (after first indenting that if statement!), 'if pc.gl_pay_type' should be 'if &pc.gl_pay_type'. You need the ampersand (&) to reference the selected column. Actually, there is really no point in including the aliases (&pc.gl_pay_type, &pc.position_nbr) next to the columns being selected, as those are the exact same names you get anyway, without explicitly declaring the aliases. In addition, your date processing is not going to work. You are moving date columns to the string variables $action_dt and $max_jo_term, and then trying to use these string variables as dates. You could declare these variables as date variables, but I am not sure exactly what format SQR will put them into - it may not be the Oracle native format that you are using in "if $action_dt => '01-Jan-2002'". I usually like to control the exact format myself for a compare (in a compare, if you set up the string in the right format, you don't need to declare the variable as date), so I would probably "select to_char(job.action_dt,'yyyymmdd') &action_dt" and then compare &action_dt to '20020101'. Finding the difference between $action_dt and $max_jo_term would probably require declaring two date variables and then doing the datediff SQR date function. HTH, Denise White Sr. Programmer/Analyst Vicor ------------------------------ Date: Mon, 24 Dec 2001 09:21:23 -0600 From: Kim Little Subject: Re: SQL expression not ended, perhaps missing &name Thanks Steve, but that didn't work either, I still keep getting the error in the following areas: SQL expression not ended, perhaps missing &name. from ps_bas_activity bas and SQL expression not ended, perhaps missing &name. from ps_job_pc. The problem is I did not write this someone else did and with no documentation to follow up on, and this sqr has so many ineligible variables. :-( Stephen Keen @list.iex.net> on 12/25/2001 08:57:30 AM Please respond to sqr-users@list.iex.net Sent by: "Discussion of SQR, Brio Software's database reporting language" To: SQR-USERS@list.iex.net cc: Subject: Re: SQL expression not ended, perhaps missing &name Hey I think the error is in the 'Begin-Procedure Select-Cust-Exists' area. What exactly are you selecting there? From what I see an 'x' Comment the calling area and see if it works Steve Merry Christmas -----Original Message----- From: Discussion of SQR, Brio Software's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Kim Little Sent: Monday, December 24, 2001 9:33 AM To: SQR-USERS@list.iex.net Subject: SQL expression not ended, perhaps missing &name Importance: High Can anyone help I am getting the following error, when trying to run this SQR. #Include 'setenv.sqc' !********************************** Begin-Program !********************************** do Init-Report display 'Report Begin at: ' noline do display-time do Process-Main display 'Report Ended at: ' noline do display-time do Reset do StdAPI-Term End-Program !********************************** Begin-Procedure Init-Report !********************************** do Init-DateTime do Get-Current-DateTime do Init-Number do StdAPI-Init let $ReportID = 'ARC_TCELG' do Get-Report-Language let $ReportTitle = $ARC_TCELG-REPORTTITLE display $ReportID NoLine display ': ' NoLine display $ReportTitle display '' if $prcs_process_instance = '' do Ask-Values else do Get-Values end-if End-Procedure Init-Report !********************************** Begin-Procedure Process-Main !********************************** Begin-SELECT bas.Emplid &bas.Emplid move &bas.Emplid to $Emplid1 move 'N' to $SelectExists do Select-Hire-Date if $action_dt => '01-Jan-2002' do Select-Prod-Client else do Select-Term-Row if ($action_dt - $max_jo_term) > 90 do Select-Prod-Client else if $reg_temp1 = 'T' do Select-Prod-Client end-if end-if end-if from ps_bas_activity bas end-select end-procedure Process-Main !********************************** Begin-Procedure Select-Hire-Date !********************************** begin-select job.action_dt move &job.action_dt to $action_dt from ps_job job where job.emplid = $Emplid1 and job.empl_type not in ('E','S') and job.action = 'HIR' end-select end-procedure Select-Hire-Date !********************************** Begin-Procedure Select-Prod-Client !********************************** Begin-select pc.gl_pay_type &pc.gl_pay_type pc.position_nbr &pc.position_nbr if pc.gl_pay_type between '1000' and '1099' do Update-Reg-Temp else do Select-Client-ID if $SelectExists = 'Y' do Select-Cust-Eff-Status if $eff_status1 = 'A' do Update-Reg-Temp end-if end-if end-if from ps_job pc where pc.emplid = $Emplid1 and pc.effdt = (select max(pc_ed.effdt) from ps_job pc_ed where pc.emplid = pc_ed.emplid and pc.empl_rcd# = pc_ed.empl_rcd#) and pc.effseq = (select max(pc_es.effseq) from ps_job pc_es where pc.emplid = pc_es.emplid) end-select end-procedure Select-Prod-Client !********************************** Begin-Procedure Update-Reg-Temp !********************************** begin-sql update ps_job rt set rt.reg_temp = 'T' where rt.emplid = $Emplid1 and rt.effdt = (select max(rt_ed.effdt) from ps_job rt_ed where rt.emplid = rt_ed.emplid and rt.empl_rcd# = rt_ed.empl_rcd#) and rt.effseq = (select max(rt_es.effseq) from ps_job rt_es where rt.emplid = rt_es.emplid) end-sql end-procedure Update-Reg-Temp !********************************** Begin-Procedure Select-Client-ID !********************************** begin-select client.ps_client_id &client.ps_client_id do Select-Cust-Exists from client@asys client, job_order@asys jo where client.client = jo.client and jo.job_order = &pc.position_nbr end-select end-procedure Select-Client-ID !********************************** Begin-Procedure Select-Cust-Exists !********************************** begin-select 'X' Move 'Y' to #SelectExists from ps_arc_cust_vw cust_vw where cust_vw.setid = 'SHARE' and cust_vw.cust_id = &client.ps_client_id end-select end-procedure Select-Cust-Exists !********************************** Begin-Procedure Select-Cust-Eff-Status !********************************** begin-select noelig.eff_status move &noelig.eff_status to $eff_status1 from ps_arc_noelig_cust noelig where noelig.setid = 'SHARE' and noelig.cust_id = &client.ps_client_id and noelig.EFFDT = (SELECT MAX(noelig_ED.EFFDT) FROM PS_ARC_NOELIG_CUST noelig_ed WHERE noelig.setid = noelig_ed.setid AND noelig.cust_id = noelig_ed.cust_id AND noelig_ED.EFFDT <= SYSDATE) end-select end-procedure Select-Cust-Eff-Status !********************************** Begin-Procedure Select-Term-Row !********************************** begin-select max(jo_term.action_dt) &max_jo_term move &max_jo_term to $max_jo_term do Select-Reg-Temp from ps_job jo_term where jo_term.emplid = $Emplid1 and jo_term.action = 'TER' end-select end-procedure Select-Term-Row !********************************** Begin-Procedure Select-Reg-Temp !********************************** begin-select jo_rt.reg_temp move &jo_rt.reg_temp to $reg_temp1 from ps_job jo_rt where jo_rt.emplid = $Emplid1 and jo_rt.action = 'TER' and jo_rt.action_dt = $max_jo_term end-select end-procedure Select-Reg-Temp !*********************************** #include 'prcsapi.sqc' !Update Process Request API #include 'prcsdef.sqc' !Update Process Request variable declaration #Include 'curdttim.sqc' ! Get-Current-DateTime procedure #Include 'datetime.sqc' ! Routines for date and time formatting #Include 'datemath.sqc' ! Routines for date and time formatting #Include 'number.sqc' ! Routines to format numbers #Include 'stdapi.sqc' ! Update Process API From owner-sqr-users@list.iex.net Wed Jan 2 10:29:39 2002 Date: Wed, 2 Jan 2002 09:23:19 -0600 From: Bob Helm Subject: anyone heard of "MITI SQR"? A document I've come across makes mention using "MITI SQR 3". I thought BRIO has SQR and before that it was Sqribe. Has anyone heard of this and what is MITI? Thanks for any info. B The Programmer formerly known as Bob Mediware Information Systems Inc. (913) 307-1045 Bob.Helm@Mediware.com From owner-sqr-users@list.iex.net Wed Jan 2 10:47:26 2002 Date: Wed, 2 Jan 2002 10:41:45 -0500 From: Jeff Davis Subject: Re: anyone heard of "MITI SQR"? MITI is the company that owned SQR (version 3.0) prior to Sqribe. The MITI company may be out of business... I couldn't get to their web site: miti.com. Bob Helm @list.iex.net> on 01/02/2002 10:23:19 AM Please respond to sqr-users@list.iex.net Sent by: "Discussion of SQR, Brio Software's database reporting language" To: SQR-USERS@list.iex.net cc: Subject: anyone heard of "MITI SQR"? A document I've come across makes mention using "MITI SQR 3". I thought BRIO has SQR and before that it was Sqribe. Has anyone heard of this and what is MITI? Thanks for any info. B The Programmer formerly known as Bob Mediware Information Systems Inc. (913) 307-1045 Bob.Helm@Mediware.com From owner-sqr-users@list.iex.net Wed Jan 2 11:03:04 2002 Date: Wed, 2 Jan 2002 09:56:12 -0600 From: Bob Helm Subject: Re: anyone heard of "MITI SQR"? Nevermind...I found that SQRIBE was formerly known as MITI which bought SQR from Sybase in 1996. BRIO subsequently bought SQRIBE and SQR in August of 1999. Thanks anyway for any responses I haven't seen yet. B The Programmer formerly known as Bob Mediware Information Systems Inc. (913) 307-1045 Bob.Helm@Mediware.com This message has been sent using 100% recycled electrons. -----Original Message----- From: Bob Helm [mailto:Bob.Helm@MEDIWARE.COM] Sent: Wednesday, January 02, 2002 9:23 AM To: SQR-USERS@list.iex.net Subject: anyone heard of "MITI SQR"? A document I've come across makes mention using "MITI SQR 3". I thought BRIO has SQR and before that it was Sqribe. Has anyone heard of this and what is MITI? Thanks for any info. B The Programmer formerly known as Bob Mediware Information Systems Inc. (913) 307-1045 Bob.Helm@Mediware.com From owner-sqr-users@list.iex.net Wed Jan 2 11:08:59 2002 Date: Wed, 2 Jan 2002 09:52:25 -0600 From: Betty Thompson Subject: Re: anyone heard of "MITI SQR"? How cute! --- pronounced like 'mighty', right? Please let me know what you learn. Thanks, Betty -----Original Message----- From: Discussion of SQR, Brio Software's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Bob Helm Sent: Wednesday, January 02, 2002 9:23 AM To: SQR-USERS@list.iex.net Subject: anyone heard of "MITI SQR"? A document I've come across makes mention using "MITI SQR 3". I thought BRIO has SQR and before that it was Sqribe. Has anyone heard of this and what is MITI? Thanks for any info. B The Programmer formerly known as Bob Mediware Information Systems Inc. (913) 307-1045 Bob.Helm@Mediware.com From owner-sqr-users@list.iex.net Wed Jan 2 11:16:02 2002 Date: Wed, 2 Jan 2002 11:09:50 -0500 From: Don Mellen Subject: Re: anyone heard of "MITI SQR"? On Wed, 2 Jan 2002, Bob Helm wrote: > A document I've come across makes mention using "MITI SQR 3". > I thought BRIO has SQR and before that it was Sqribe. and before SQRibe, it was MITI. ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" From owner-sqr-users@list.iex.net Wed Jan 2 11:20:22 2002 Date: Wed, 2 Jan 2002 11:14:15 -0500 From: Ray Ontko Subject: Re: anyone heard of "MITI SQR"? B, The Programmer formerly known as Bob, Sqribe is the software company formerly known as MITI. Ray [Charset iso-8859-1 unsupported, filtering to ASCII...] > A document I've come across makes mention using "MITI SQR 3". > I thought BRIO has SQR and before that it was Sqribe. > > Has anyone heard of this and what is MITI? > > Thanks for any info. > > B > The Programmer formerly known as Bob > Mediware Information Systems Inc. > (913) 307-1045 > Bob.Helm@Mediware.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/ From owner-sqr-users@list.iex.net Wed Jan 2 11:23:13 2002 Date: Wed, 2 Jan 2002 16:10:43 +0000 From: "Paul O'Riordan" Subject: Re: anyone heard of "MITI SQR"? --0__=80256B350058D1278f9e8a93df938690918c80256B350058D127 Content-type: text/plain; charset=us-ascii And just as a bye the way - I believe that PeopleSoft have now bought SQR Regards Paul Bob Helm @list.iex.net> on 02/01/2002 15:56:12 Please respond to sqr-users@list.iex.net Sent by: "Discussion of SQR, Brio Software's database reporting language" To: SQR-USERS@list.iex.net cc: Subject: Re: anyone heard of "MITI SQR"? Nevermind...I found that SQRIBE was formerly known as MITI which bought SQR from Sybase in 1996. BRIO subsequently bought SQRIBE and SQR in August of 1999. Thanks anyway for any responses I haven't seen yet. B The Programmer formerly known as Bob Mediware Information Systems Inc. (913) 307-1045 Bob.Helm@Mediware.com This message has been sent using 100% recycled electrons. -----Original Message----- From: Bob Helm [mailto:Bob.Helm@MEDIWARE.COM] Sent: Wednesday, January 02, 2002 9:23 AM To: SQR-USERS@list.iex.net Subject: anyone heard of "MITI SQR"? A document I've come across makes mention using "MITI SQR 3". I thought BRIO has SQR and before that it was Sqribe. Has anyone heard of this and what is MITI? Thanks for any info. B The Programmer formerly known as Bob Mediware Information Systems Inc. (913) 307-1045 Bob.Helm@Mediware.com --0__=80256B350058D1278f9e8a93df938690918c80256B350058D127 Content-type: application/octet-stream; name="$RFC822.eml" Content-Disposition: attachment; filename="$RFC822.eml" Content-transfer-encoding: base64 UmVjZWl2ZWQ6IGZyb20gYXZlcnktY3AubWdhYS5hdmVyeWRlbm5pc29uLmNvbSAoWzE0NC45My4x MjUuMTJdKQ0KICAgICAgICAgIGJ5IHNtdHAtMjAtY29uLmF2ZXJ5ZGVubmlzb24uY29tIChMb3R1 cyBEb21pbm8gUmVsZWFzZSA1LjAuOCkNCiAgICAgICAgICB3aXRoIFNNVFAgaWQgMjAwMjAxMDIx MTAwNTk3NTo4MTc1ODMgOw0KICAgICAgICAgIFdlZCwgMiBKYW4gMjAwMiAxMTowMDo1OSAtMDUw MCANClJlY2VpdmVkOiBmcm9tIGxpc3QuaWV4Lm5ldCAobGlzdC5pZXgubmV0IFsxOTIuMTU2LjE5 Ni4xNV0pDQoJYnkgbGlzdC5pZXgubmV0ICg4LjExLjEvOC4xMS4xKSB3aXRoIEVTTVRQIGlkIGcw MkZqbjgwODQwMDsNCglXZWQsIDIgSmFuIDIwMDIgMDg6NDU6NTAgLTA3MDAgKE1TVCkNClJlY2Vp dmVkOiBmcm9tIExJU1QuSUVYLk5FVCBieSBMSVNULklFWC5ORVQgKExJU1RTRVJWLVRDUC9JUCBy ZWxlYXNlIDEuOGQpIHdpdGgNCiAgICAgICAgICBzcG9vbCBpZCA3NjE5NDcgZm9yIFNRUi1VU0VS U0BMSVNULklFWC5ORVQ7IFdlZCwgMiBKYW4gMjAwMiAwODo0NTo0OA0KICAgICAgICAgIC0wNzAw DQpSZWNlaXZlZDogZnJvbSBrY214czEucngubWVkdy5uZXQgKG14cy5tZWRpd2FyZS5jb20gWzYz LjY3LjYxLjI1XSkgYnkNCiAgICAgICAgICBsaXN0LmlleC5uZXQgKDguMTEuMS84LjExLjEpIHdp dGggRVNNVFAgaWQgZzAyRmpsODA4MzkzIGZvcg0KICAgICAgICAgIDxzcXItdXNlcnNAbGlzdC5p ZXgubmV0PjsgV2VkLCAyIEphbiAyMDAyIDA4OjQ1OjQ4IC0wNzAwIChNU1QpDQpSZWNlaXZlZDog Ynkga2NteHMxIHdpdGggSW50ZXJuZXQgTWFpbCBTZXJ2aWNlICg1LjUuMjY1My4xOSkgaWQgPFc0 S0c4ODJDPjsNCiAgICAgICAgICBXZWQsIDIgSmFuIDIwMDIgMDk6NTY6MzkgLTA2MDANCk1JTUUt VmVyc2lvbjogMS4wDQpYLU1haWxlcjogSW50ZXJuZXQgTWFpbCBTZXJ2aWNlICg1LjUuMjY1My4x OSkNCk1lc3NhZ2UtSUQ6ICA8NjEyRDQwODYzQ0FFRDMxMTlCM0UwMDA4Qzc5RjJEREUwMTZFNzQ3 RkBrY214czE+DQpEYXRlOiAgICAgICAgIFdlZCwgMiBKYW4gMjAwMiAwOTo1NjoxMiAtMDYwMA0K UmVwbHktVG86IHNxci11c2Vyc0BsaXN0LmlleC5uZXQNClNlbmRlcjogIkRpc2N1c3Npb24gb2Yg U1FSLCBCcmlvIFNvZnR3YXJlJ3MgZGF0YWJhc2UgcmVwb3J0aW5nIGxhbmd1YWdlIiANCiAgICAg ICAgICAgICAgPFNRUi1VU0VSU0BsaXN0LmlleC5uZXQ+DQpGcm9tOiBCb2IgSGVsbSA8Qm9iLkhl bG1ATUVESVdBUkUuQ09NPg0KU3ViamVjdDogICAgICBSZTogYW55b25lIGhlYXJkIG9mICJNSVRJ IFNRUiI/DQpUbzogU1FSLVVTRVJTQGxpc3QuaWV4Lm5ldA0KWC1NSU1FVHJhY2s6IEl0ZW1pemUg YnkgU01UUCBTZXJ2ZXIgb24gU01UUC0yMC1DT04vTkEvQXZlcnlEZW5uaXNvbihSZWxlYXNlIDUu MC44IHxKdW5lDQogMTgsIDIwMDEpIGF0IDAxLzAyLzIwMDIgMTE6MDA6NTkgQU0sDQoJU2VyaWFs aXplIGJ5IFJvdXRlciBvbiBTTVRQLTIwLUNPTi9OQS9BdmVyeURlbm5pc29uKFJlbGVhc2UgNS4w LjggfEp1bmUgMTgsIDIwMDEpIGF0DQogMDEvMDIvMjAwMiAxMTowMTowMiBBTSwNCglTZXJpYWxp emUgY29tcGxldGUgYXQgMDEvMDIvMjAwMiAxMTowMTowMiBBTQ0KWC1Ob3Rlcy1JdGVtOiAyMDsN CiB0eXBlPTMwMDsgbmFtZT0kSG9wcw0KWC1Ob3Rlcy1JdGVtOiBNZW1vOw0KIG5hbWU9Rm9ybQ0K WC1Ob3Rlcy1JdGVtOiAsDQoJQ049U01UUC0yMC1DT04vT1U9TkEvTz1BdmVyeURlbm5pc29uOw0K IHR5cGU9NTAxOyBmbGFncz00NDsgbmFtZT0kVXBkYXRlZEJ5DQpYLU5vdGVzLUl0ZW06ICQkJFN0 b3BFTUhBTkQ7DQogbmFtZT0kJCRTdG9wRU1IQU5ETEVSDQpDb250ZW50LVR5cGU6IHRleHQvcGxh aW47IGNoYXJzZXQ9Imlzby04ODU5LTEiDQoNCk5ldmVybWluZC4uLkkgZm91bmQgdGhhdCBTUVJJ QkUgd2FzIGZvcm1lcmx5IGtub3duIGFzIE1JVEkgd2hpY2ggYm91Z2h0IFNRUg0KZnJvbSBTeWJh c2UgaW4gMTk5Ni4NCkJSSU8gc3Vic2VxdWVudGx5IGJvdWdodCBTUVJJQkUgYW5kIFNRUiBpbiBB dWd1c3Qgb2YgMTk5OS4NCg0KVGhhbmtzIGFueXdheSBmb3IgYW55IHJlc3BvbnNlcyBJIGhhdmVu J3Qgc2VlbiB5ZXQuDQoNCkINClRoZSBQcm9ncmFtbWVyIGZvcm1lcmx5IGtub3duIGFzIEJvYg0K TWVkaXdhcmUgSW5mb3JtYXRpb24gU3lzdGVtcyBJbmMuDQooOTEzKSAzMDctMTA0NQ0KQm9iLkhl bG1ATWVkaXdhcmUuY29tIDxtYWlsdG86Qm9iLkhlbG1ATWVkaXdhcmUuY29tPg0KDQpUaGlzIG1l c3NhZ2UgaGFzIGJlZW4gc2VudCB1c2luZyAxMDAlIHJlY3ljbGVkIGVsZWN0cm9ucy4NCg0KDQoN Cg0KLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCkZyb206IEJvYiBIZWxtIFttYWlsdG86Qm9i LkhlbG1ATUVESVdBUkUuQ09NXQ0KU2VudDogV2VkbmVzZGF5LCBKYW51YXJ5IDAyLCAyMDAyIDk6 MjMgQU0NClRvOiBTUVItVVNFUlNAbGlzdC5pZXgubmV0DQpTdWJqZWN0OiBhbnlvbmUgaGVhcmQg b2YgIk1JVEkgU1FSIj8NCg0KDQpBIGRvY3VtZW50IEkndmUgY29tZSBhY3Jvc3MgbWFrZXMgbWVu dGlvbiB1c2luZyAiTUlUSSBTUVIgMyIuDQpJIHRob3VnaHQgQlJJTyBoYXMgU1FSIGFuZCBiZWZv cmUgdGhhdCBpdCB3YXMgU3FyaWJlLg0KDQpIYXMgYW55b25lIGhlYXJkIG9mIHRoaXMgYW5kIHdo YXQgaXMgTUlUST8NCg0KVGhhbmtzIGZvciBhbnkgaW5mby4NCg0KQg0KVGhlIFByb2dyYW1tZXIg Zm9ybWVybHkga25vd24gYXMgQm9iDQpNZWRpd2FyZSBJbmZvcm1hdGlvbiBTeXN0ZW1zIEluYy4N Cig5MTMpIDMwNy0xMDQ1DQpCb2IuSGVsbUBNZWRpd2FyZS5jb20NCg== --0__=80256B350058D1278f9e8a93df938690918c80256B350058D127-- From owner-sqr-users@list.iex.net Wed Jan 2 11:38:05 2002 Date: Wed, 2 Jan 2002 11:31:41 -0500 From: Don Mellen Subject: Re: anyone heard of "MITI SQR"? On Wed, 2 Jan 2002, Jeff Davis wrote: > MITI is the company that owned SQR (version 3.0) prior to Sqribe. > The MITI company may be out of business... I couldn't get to their web > site: miti.com. Miti changed their name to Sqribe, then Sqribe merged with Brio. ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" From owner-sqr-users@list.iex.net Wed Jan 2 11:40:33 2002 Date: Wed, 2 Jan 2002 11:31:21 -0500 From: "Williams, Wes HS-SNS" Subject: Re: anyone heard of "MITI SQR"? I believe it was MITI back in 1992 and earlier. Many changes since then. Wes Williams System Analyst, Developer Hamilton Sundstrand 815.226.6196 -----Original Message----- From: Bob Helm [mailto:Bob.Helm@MEDIWARE.COM] Sent: Wednesday, January 02, 2002 9:23 AM To: SQR-USERS@list.iex.net Subject: anyone heard of "MITI SQR"? A document I've come across makes mention using "MITI SQR 3". I thought BRIO has SQR and before that it was Sqribe. Has anyone heard of this and what is MITI? Thanks for any info. B The Programmer formerly known as Bob Mediware Information Systems Inc. (913) 307-1045 Bob.Helm@Mediware.com From owner-sqr-users@list.iex.net Wed Jan 2 11:58:43 2002 Date: Wed, 2 Jan 2002 10:41:12 -0600 From: James Womeldorf Subject: Re: anyone heard of "MITI SQR"? FYI Our virus software seems to have found a virus in Paul's email. Jim Womeldorf Programmer/Analyst Fastenal Company jwomeldo@fastenal.com (507) 453-8250 -----Original Message----- From: Paul O'Riordan [mailto:Paul_O'Riordan@AVERYDENNISON.COM] Sent: Wednesday, January 02, 2002 10:11 AM To: SQR-USERS@list.iex.net Subject: Re: anyone heard of "MITI SQR"? And just as a bye the way - I believe that PeopleSoft have now bought SQR Regards Paul Bob Helm @list.iex.net> on 02/01/2002 15:56:12 Please respond to sqr-users@list.iex.net Sent by: "Discussion of SQR, Brio Software's database reporting language" To: SQR-USERS@list.iex.net cc: Subject: Re: anyone heard of "MITI SQR"? Nevermind...I found that SQRIBE was formerly known as MITI which bought SQR from Sybase in 1996. BRIO subsequently bought SQRIBE and SQR in August of 1999. Thanks anyway for any responses I haven't seen yet. B The Programmer formerly known as Bob Mediware Information Systems Inc. (913) 307-1045 Bob.Helm@Mediware.com This message has been sent using 100% recycled electrons. -----Original Message----- From: Bob Helm [mailto:Bob.Helm@MEDIWARE.COM] Sent: Wednesday, January 02, 2002 9:23 AM To: SQR-USERS@list.iex.net Subject: anyone heard of "MITI SQR"? A document I've come across makes mention using "MITI SQR 3". I thought BRIO has SQR and before that it was Sqribe. Has anyone heard of this and what is MITI? Thanks for any info. B The Programmer formerly known as Bob Mediware Information Systems Inc. (913) 307-1045 Bob.Helm@Mediware.com From owner-sqr-users@list.iex.net Wed Jan 2 12:14:52 2002 Date: Wed, 2 Jan 2002 12:08:59 -0500 From: Ray Ontko Subject: Re: anyone heard of "MITI SQR"? Paul, My understanding is that PeopleSoft bought the rights to the source code for SQR. I don't know any details of the ongoing relationship between Brio and PeopleSoft, but I assume that PS can now control which features get added and which bugs get fixed in _its_ version of SQR, and Brio will continue to license SQR and add features that open new markets for the product as a tool quite separate from those needed for PS. I don't expect PS to sell SQR separately from its products. There is some chance that the two versions of SQR will diverge over time, I suppose. I would expect that both versions will remain largely the same; SQR is a fairly mature product, and all of the enterprise reporting features are still core features for both Brio and PeopleSoft. Ray > And just as a bye the way - I believe that PeopleSoft have now bought SQR > Regards > Paul > > > > > > Bob Helm @list.iex.net> on 02/01/2002 15:56:12 > > Please respond to sqr-users@list.iex.net > > Sent by: "Discussion of SQR, Brio Software's database reporting language" > > > > To: SQR-USERS@list.iex.net > cc: > > Subject: Re: anyone heard of "MITI SQR"? > > > Nevermind...I found that SQRIBE was formerly known as MITI which bought > SQR > from Sybase in 1996. > BRIO subsequently bought SQRIBE and SQR in August of 1999. > > Thanks anyway for any responses I haven't seen yet. > > B > The Programmer formerly known as Bob > Mediware Information Systems Inc. > (913) 307-1045 > Bob.Helm@Mediware.com > > This message has been sent using 100% recycled electrons. > > > > > -----Original Message----- > From: Bob Helm [mailto:Bob.Helm@MEDIWARE.COM] > Sent: Wednesday, January 02, 2002 9:23 AM > To: SQR-USERS@list.iex.net > Subject: anyone heard of "MITI SQR"? > > > A document I've come across makes mention using "MITI SQR 3". > I thought BRIO has SQR and before that it was Sqribe. > > Has anyone heard of this and what is MITI? > > Thanks for any info. > > B > The Programmer formerly known as Bob > Mediware Information Systems Inc. > (913) 307-1045 > Bob.Helm@Mediware.com > [Attachment, skipping...] ---------------------------------------------------------------------- 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/ From owner-sqr-users@list.iex.net Wed Jan 2 12:24:25 2002 Date: Wed, 2 Jan 2002 11:19:13 -0600 From: the dragon Subject: Re: anyone heard of "MITI SQR"? They just changed their name from MITI to sqribe (in 1995 I think) to protect the guilty. 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---- MITI is the company that owned SQR (version 3.0) prior to Sqribe. The MITI company may be out of business... I couldn't get to their web site: miti.com. Subject: anyone heard of "MITI SQR"? A document I've come across makes mention using "MITI SQR 3". I thought BRIO has SQR and before that it was Sqribe. Has anyone heard of this and what is MITI? Thanks for any info. B The Programmer formerly known as Bob Mediware Information Systems Inc. (913) 307-1045 Bob.Helm@Mediware.com _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From owner-sqr-users@list.iex.net Wed Jan 2 15:10:18 2002 Date: Wed, 2 Jan 2002 15:00:04 -0500 From: Bruce Kelling Subject: Images in UNIX SQR reports Does anyone know if it is possible to produce an sqr report with an image when run on UNIX? The preferred output is adobe using -printer:pd SQR flag. I have used .bmp, .gif, and .jpg on Windows NT run reports, but have not been able to get any image file types to show up on a UNIX run sqr. Is there a limitation on using SQR version 4.3.4? If anyone has produced images in UNIX run sqr, please share secrets. Bruce From owner-sqr-users@list.iex.net Wed Jan 2 16:27:54 2002 Date: Wed, 2 Jan 2002 14:12:16 +0700 From: John Willson Subject: Re: Images in UNIX SQR reports Hi Bruce. See the print-image command. Note that on UNIX only reports I have only used this command with postscript reports. So before invoking the command I also do an image sizing procedure to ensure the image is scaled (with an aspect ratio) into the area that is being printed. I no longer have a copy of UNIX based SQR to test this on and provide examples; however, I can confirm that SQRs developed under WINNT BR 6 using postscript and nonpostscript when run on UNIX BR 6 just execute faster and print the same. (both gif and jpg. I don't know about bmp) So write and debug with NT and run production with UNIX Hope this helps. John Willson Another approach graphic box somesize print-image type= gif-file source = 'myimage.gif' image-size = somesize http://netwinsite.com/dbabble/ From owner-sqr-users@list.iex.net Wed Jan 2 17:27:08 2002 Date: Wed, 2 Jan 2002 16:21:58 -0600 From: "Shipley, Lisa A." Subject: date problems Oracle 7.3.4 SQR 4.3.4 Good Afternoon, I'm trying to subtract 1 day from a value that a user keys in. I've done this before in other programs, but for some reason, I can't get it to work today. INPUT $BegDate 'Enter begin date (DD-Mon-YYYY)' type=char maxlen=11 IF rtrim($BegDate, ' ') = '' goto Done END-IF let $BDate = strtodate($BegDate, 'DD-MON-YYYY') DISPLAY '$BDate ' Noline Display $Bdate do convert-to-dtu-date($BDate,$DATE_OUT) The output for $DATE_OUT is 2001--24. It's leaving the month DEC out. I can't for the life of me figure out why. Any help is GREATLY appreciated!!!!! Lisa Shipley Senior Programmer Sumitomo Electric Wiring Systems, Inc. Phone: (270) 782-7397 Ext. 2226 From owner-sqr-users@list.iex.net Wed Jan 2 18:15:22 2002 Date: Wed, 2 Jan 2002 17:03:27 -0600 From: Bob Helm Subject: Re: date problems Intriguing. Is there something "wrong" in the procedure convert-to-dtu-date? -----Original Message----- From: Shipley, Lisa A. [mailto:lshipley@SEWSUS.COM] Sent: Wednesday, January 02, 2002 4:22 PM To: SQR-USERS@list.iex.net Subject: date problems Oracle 7.3.4 SQR 4.3.4 Good Afternoon, I'm trying to subtract 1 day from a value that a user keys in. I've done this before in other programs, but for some reason, I can't get it to work today. INPUT $BegDate 'Enter begin date (DD-Mon-YYYY)' type=char maxlen=11 IF rtrim($BegDate, ' ') = '' goto Done END-IF let $BDate = strtodate($BegDate, 'DD-MON-YYYY') DISPLAY '$BDate ' Noline Display $Bdate do convert-to-dtu-date($BDate,$DATE_OUT) The output for $DATE_OUT is 2001--24. It's leaving the month DEC out. I can't for the life of me figure out why. Any help is GREATLY appreciated!!!!! Lisa Shipley Senior Programmer Sumitomo Electric Wiring Systems, Inc. Phone: (270) 782-7397 Ext. 2226 From owner-sqr-users@list.iex.net Wed Jan 2 18:40:50 2002 Date: Wed, 2 Jan 2002 16:35:41 -0700 From: Russ Wulfson Subject: Re: date problems I believe your problem may be that your format 'DD-MON-YYYY' should be 'DD-MM-YYYY' From owner-sqr-users@list.iex.net Thu Jan 3 00:04:38 2002 Date: Wed, 2 Jan 2002 23:49:08 EST From: Edson Fernandes Subject: (no subject) Hi ,=20 I need your help!! Do you have an example where I can display data in 10 rows =A0in an SQR arra= y=20 on one line. I tried to use the write command but it seems to display data on different=20 lines. for example col 1 =A0col2 =A0col3 1 =A0=A0=A0=A0=A0=A0=A0=A0=A02 =A0=A0=A0=A0=A03 4 =A0=A0=A0=A0=A0=A0=A0=A0=A05 =A0=A0=A0=A0=A06 7 =A0=A0=A0=A0=A0=A0=A0=A0=A08 =A0=A0=A0=A0=A09 Result =A0output file should look like 1 =A0=A0=A0=A02 =A0=A0=A0=A0=A03 =A0=A0=A0=A0=A04 =A0=A0=A05 =A0=A0=A06 =A0= =A0=A0=A07 =A0=A0=A08 =A0=A09 =A0 From owner-sqr-users@list.iex.net Thu Jan 3 05:26:33 2002 Date: Thu, 3 Jan 2002 17:03:53 +0700 From: Kalam Subject: how to change font-size ? dear all, i want to change font-size through my sqr file ? how can i do that ? anyhelp would be highly appreciated.... TIA From owner-sqr-users@list.iex.net Thu Jan 3 09:58:29 2002 Date: Thu, 3 Jan 2002 09:41:01 -0500 From: Steve Wowelko Subject: Re: Images in UNIX SQR reports Hi Bruce, I've spent weeks trying to get this to work. I finally did get it to work. Here's what I had to do- Declare your printer as an HP printer. I used a PeopleSoft supplied .sqc: #include 'setup31.sqc' !Portrait HP Printer Declare your image as an HPGL image: declare-image A1 type=HPGL-FILE source='/opt/psoft/syracuse/hrsa750/sqr/iofiles/registr/signature.hpg' ! location on UNIX server image-size=(40,6) end-declare Then just print the image: print-image A1 (66,8) The real (frustrating) problem is creating an HPGL file that SQR likes. I have tried various graphic packages to do this to no avail. There is a SQR that will convert a .bmp file to an .hpg (HPGL) format. It is found at the following web site: http://www.ontko.com/sqr/bmp_to_hpg.sqr It is shareware written by Ray Ontko. It does a wonderful job converting images. (thank you Ray!) Hope this helps. Stephen Wowelko, EDP Syracuse University - Information Systems >>> jwillson@DSSLTD.COM 01/02/02 02:12AM >>> Hi Bruce. See the print-image command. Note that on UNIX only reports I have only used this command with postscript reports. So before invoking the command I also do an image sizing procedure to ensure the image is scaled (with an aspect ratio) into the area that is being printed. I no longer have a copy of UNIX based SQR to test this on and provide examples; however, I can confirm that SQRs developed under WINNT BR 6 using postscript and nonpostscript when run on UNIX BR 6 just execute faster and print the same. (both gif and jpg. I don't know about bmp) So write and debug with NT and run production with UNIX Hope this helps. John Willson Another approach graphic box somesize print-image type= gif-file source = 'myimage.gif' image-size = somesize http://netwinsite.com/dbabble/ From owner-sqr-users@list.iex.net Thu Jan 3 10:19:21 2002 Date: Thu, 3 Jan 2002 09:13:31 -0600 From: the dragon Subject: Re: date problems Lisa, I don't have a lot of time to examine this completely, but, right off the bat, I can tell you Oracle will not see the date formats DD-Mon-YYYY and DD-MON-YYYY (31-Dec-2001 <> 31-DEC-2001) as the same thing. I think if you make the conversion mask the same as the input mask you will see different results. clark 'the dragon' willis dragon enterprises, consulting services "Doing it right the first time, at an affordable rate." 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---- Oracle 7.3.4 SQR 4.3.4 Good Afternoon, I'm trying to subtract 1 day from a value that a user keys in. I've done this before in other programs, but for some reason, I can't get it to work today. INPUT $BegDate 'Enter begin date (DD-Mon-YYYY)' type=char maxlen=11 IF rtrim($BegDate, ' ') = '' goto Done END-IF let $BDate = strtodate($BegDate, 'DD-MON-YYYY') DISPLAY '$BDate ' Noline Display $Bdate do convert-to-dtu-date($BDate,$DATE_OUT) The output for $DATE_OUT is 2001--24. It's leaving the month DEC out. I can't for the life of me figure out why. Any help is GREATLY appreciated!!!!! Lisa Shipley Senior Programmer Sumitomo Electric Wiring Systems, Inc. Phone: (270) 782-7397 Ext. 2226 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) NOTICE: The information contained in this message is protected under United States and international copyright laws and is intended for the personal and confidential use of the addressee. If you are not the addressee or an agent of the addressee, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, taking of any action in reliance upon or copying of this message without the express written permission of the sender or his agent is strictly prohibited and in violation of referenced statutes. If you have received this message in error, please notify me (the sender) immediately and you are instructed to delete this message from any computer it resides on, including mail servers. SIGNATURE : Do not meddle in the affairs of dragons, for you are crunchy and taste good with ketchup. You've got to be a Spirit; don't need no Ghosts. Do or Do Not; There is NO Try. Any clod can have facts, but having an opinion is an art ! A conclusion is simply the place where someone got tired of thinking. When a continuing state of defiance and disorder can not be checked by the rules, then new and sometimes drastic rules must be forged to maintain order; the alternative is anarchy. M. Clark Willis III - Sr Systems Analyst, Sr Consultant ceprn@hotmail.com aolim:ceprn ICQ 6633136 Help stamp out SPAM!! http://www.cauce.org The senders of unsolicited commercial e-mail to me at any site are liable for a $500 per message cost under USC 47, which may be found at http://www.law.cornell.edu/uscode/47 Contents of this message, in it's entirety, (c) 2000 M. Clark Willis III / Dragon Enterprises inc. All rights reserved. _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From owner-sqr-users@list.iex.net Thu Jan 3 11:25:53 2002 Date: Thu, 3 Jan 2002 11:16:32 -0500 From: Bruce Kelling Subject: Re: Images in UNIX SQR reports Great suggestions. This is exactly what I have been trying, but still no image, even after using the bmp to hpg converter. Do you know if an ADOBE pdf file can be created on UNIX with an image? Any other possibilities to check? Thanks, Bruce Kelling PeopleSoft Developer AdvanTech SolutionsSM -----Original Message----- From: Steve Wowelko [mailto:SAWOWELK@SYR.EDU] Sent: Thursday, January 03, 2002 9:41 AM To: SQR-USERS@list.iex.net Subject: Re: Images in UNIX SQR reports Hi Bruce, I've spent weeks trying to get this to work. I finally did get it to work. Here's what I had to do- Declare your printer as an HP printer. I used a PeopleSoft supplied .sqc: #include 'setup31.sqc' !Portrait HP Printer Declare your image as an HPGL image: declare-image A1 type=HPGL-FILE source='/opt/psoft/syracuse/hrsa750/sqr/iofiles/registr/signature.hpg' ! location on UNIX server image-size=(40,6) end-declare Then just print the image: print-image A1 (66,8) The real (frustrating) problem is creating an HPGL file that SQR likes. I have tried various graphic packages to do this to no avail. There is a SQR that will convert a .bmp file to an .hpg (HPGL) format. It is found at the following web site: http://www.ontko.com/sqr/bmp_to_hpg.sqr It is shareware written by Ray Ontko. It does a wonderful job converting images. (thank you Ray!) Hope this helps. Stephen Wowelko, EDP Syracuse University - Information Systems >>> jwillson@DSSLTD.COM 01/02/02 02:12AM >>> Hi Bruce. See the print-image command. Note that on UNIX only reports I have only used this command with postscript reports. So before invoking the command I also do an image sizing procedure to ensure the image is scaled (with an aspect ratio) into the area that is being printed. I no longer have a copy of UNIX based SQR to test this on and provide examples; however, I can confirm that SQRs developed under WINNT BR 6 using postscript and nonpostscript when run on UNIX BR 6 just execute faster and print the same. (both gif and jpg. I don't know about bmp) So write and debug with NT and run production with UNIX Hope this helps. John Willson Another approach graphic box somesize print-image type= gif-file source = 'myimage.gif' image-size = somesize http://netwinsite.com/dbabble/ From owner-sqr-users@list.iex.net Thu Jan 3 11:54:00 2002 Date: Thu, 3 Jan 2002 09:26:51 -0600 From: "Shipley, Lisa A." Subject: FW: date problems I've changed the input mask to fit the conversion mask and it still gives me the same error. INPUT $EndDate maxlen=11 'Enter end date (DD-MON-YYYY)' IF rtrim($EndDate, ' ') = '' goto Done END-IF LET $end = strtodate($EndDate, 'DD-MON-YYYY') DISPLAY '$END ' NOLINE DISPLAY $END do convert-to-dtu-date($End,$ENDYMD) My display on $End looks good '30-DEC-2001' After the attempt at the dtu conversion, I still get 30--2001 with an invalid month error. -----Original Message----- From: the dragon [mailto:ceprn@hotmail.com] Sent: Thursday, January 03, 2002 9:14 AM To: sqr-users@list.iex.net Subject: Re: date problems Lisa, I don't have a lot of time to examine this completely, but, right off the bat, I can tell you Oracle will not see the date formats DD-Mon-YYYY and DD-MON-YYYY (31-Dec-2001 <> 31-DEC-2001) as the same thing. I think if you make the conversion mask the same as the input mask you will see different results. clark 'the dragon' willis dragon enterprises, consulting services "Doing it right the first time, at an affordable rate." 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---- Oracle 7.3.4 SQR 4.3.4 Good Afternoon, I'm trying to subtract 1 day from a value that a user keys in. I've done this before in other programs, but for some reason, I can't get it to work today. INPUT $BegDate 'Enter begin date (DD-Mon-YYYY)' type=char maxlen=11 IF rtrim($BegDate, ' ') = '' goto Done END-IF let $BDate = strtodate($BegDate, 'DD-MON-YYYY') DISPLAY '$BDate ' Noline Display $Bdate do convert-to-dtu-date($BDate,$DATE_OUT) The output for $DATE_OUT is 2001--24. It's leaving the month DEC out. I can't for the life of me figure out why. Any help is GREATLY appreciated!!!!! Lisa Shipley Senior Programmer Sumitomo Electric Wiring Systems, Inc. Phone: (270) 782-7397 Ext. 2226 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) NOTICE: The information contained in this message is protected under United States and international copyright laws and is intended for the personal and confidential use of the addressee. If you are not the addressee or an agent of the addressee, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, taking of any action in reliance upon or copying of this message without the express written permission of the sender or his agent is strictly prohibited and in violation of referenced statutes. If you have received this message in error, please notify me (the sender) immediately and you are instructed to delete this message from any computer it resides on, including mail servers. SIGNATURE : Do not meddle in the affairs of dragons, for you are crunchy and taste good with ketchup. You've got to be a Spirit; don't need no Ghosts. Do or Do Not; There is NO Try. Any clod can have facts, but having an opinion is an art ! A conclusion is simply the place where someone got tired of thinking. When a continuing state of defiance and disorder can not be checked by the rules, then new and sometimes drastic rules must be forged to maintain order; the alternative is anarchy. M. Clark Willis III - Sr Systems Analyst, Sr Consultant ceprn@hotmail.com aolim:ceprn ICQ 6633136 Help stamp out SPAM!! http://www.cauce.org The senders of unsolicited commercial e-mail to me at any site are liable for a $500 per message cost under USC 47, which may be found at http://www.law.cornell.edu/uscode/47 Contents of this message, in it's entirety, (c) 2000 M. Clark Willis III / Dragon Enterprises inc. All rights reserved. _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From owner-sqr-users@list.iex.net Thu Jan 3 12:13:55 2002 Date: Thu, 3 Jan 2002 11:06:21 -0600 From: Betty Thompson Subject: Re: date problems This is a multi-part message in MIME format. ------=_NextPart_000_0006_01C19446.AD4227A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit I'm still a beginner, so bear with me, please, if this sounds silly... Could you be missing some variable value that affects how the functions work? I shoved your stuff into a shell program and it worked fine (I only omitted the 'if' statement with the 'goto Done'). What I thought might be different is that I always use a shell with the same bunch of sqc includes. I built this shell after going to SQR class, and I never really look at it any more, but I think it sets a lot of variables regarding dates. I attached my test program and the log from running it. Good luck. Betty -----Original Message----- From: Discussion of SQR, Brio Software's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Shipley, Lisa A. Sent: Thursday, January 03, 2002 9:27 AM To: SQR-USERS@list.iex.net Subject: FW: date problems I've changed the input mask to fit the conversion mask and it still gives me the same error. INPUT $EndDate maxlen=11 'Enter end date (DD-MON-YYYY)' IF rtrim($EndDate, ' ') = '' goto Done END-IF LET $end = strtodate($EndDate, 'DD-MON-YYYY') DISPLAY '$END ' NOLINE DISPLAY $END do convert-to-dtu-date($End,$ENDYMD) My display on $End looks good '30-DEC-2001' After the attempt at the dtu conversion, I still get 30--2001 with an invalid month error. -----Original Message----- From: the dragon [mailto:ceprn@hotmail.com] Sent: Thursday, January 03, 2002 9:14 AM To: sqr-users@list.iex.net Subject: Re: date problems Lisa, I don't have a lot of time to examine this completely, but, right off the bat, I can tell you Oracle will not see the date formats DD-Mon-YYYY and DD-MON-YYYY (31-Dec-2001 <> 31-DEC-2001) as the same thing. I think if you make the conversion mask the same as the input mask you will see different results. clark 'the dragon' willis dragon enterprises, consulting services "Doing it right the first time, at an affordable rate." 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---- Oracle 7.3.4 SQR 4.3.4 Good Afternoon, I'm trying to subtract 1 day from a value that a user keys in. I've done this before in other programs, but for some reason, I can't get it to work today. INPUT $BegDate 'Enter begin date (DD-Mon-YYYY)' type=char maxlen=11 IF rtrim($BegDate, ' ') = '' goto Done END-IF let $BDate = strtodate($BegDate, 'DD-MON-YYYY') DISPLAY '$BDate ' Noline Display $Bdate do convert-to-dtu-date($BDate,$DATE_OUT) The output for $DATE_OUT is 2001--24. It's leaving the month DEC out. I can't for the life of me figure out why. Any help is GREATLY appreciated!!!!! Lisa Shipley Senior Programmer Sumitomo Electric Wiring Systems, Inc. Phone: (270) 782-7397 Ext. 2226 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) NOTICE: The information contained in this message is protected under United States and international copyright laws and is intended for the personal and confidential use of the addressee. If you are not the addressee or an agent of the addressee, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, taking of any action in reliance upon or copying of this message without the express written permission of the sender or his agent is strictly prohibited and in violation of referenced statutes. If you have received this message in error, please notify me (the sender) immediately and you are instructed to delete this message from any computer it resides on, including mail servers. SIGNATURE : Do not meddle in the affairs of dragons, for you are crunchy and taste good with ketchup. You've got to be a Spirit; don't need no Ghosts. Do or Do Not; There is NO Try. Any clod can have facts, but having an opinion is an art ! A conclusion is simply the place where someone got tired of thinking. When a continuing state of defiance and disorder can not be checked by the rules, then new and sometimes drastic rules must be forged to maintain order; the alternative is anarchy. M. Clark Willis III - Sr Systems Analyst, Sr Consultant ceprn@hotmail.com aolim:ceprn ICQ 6633136 Help stamp out SPAM!! http://www.cauce.org The senders of unsolicited commercial e-mail to me at any site are liable for a $500 per message cost under USC 47, which may be found at http://www.law.cornell.edu/uscode/47 Contents of this message, in it's entirety, (c) 2000 M. Clark Willis III / Dragon Enterprises inc. All rights reserved. _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com ------=_NextPart_000_0006_01C19446.AD4227A0 Content-Type: application/octet-stream; name="sqrtest.sqr" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="sqrtest.sqr" !*********************************************************************** ! Report Name: sqrtest.SQR ! ! Purpose: testing ! ! Author: B. THOMPSON January, 2002. ! !*********************************************************************** !---------------------------------------------------------------------- ! ALWAYS INCLUDED AT BEGINNING OF SQR !---------------------------------------------------------------------- #include 'setenv.sqc' !Sets enviroment !*********************************************************************** !****************** BEGIN-SETUP ****************************** !*********************************************************************** !---------------------------------------------------------------------- ! CHOOSE PRINTER ORIENTATION !---------------------------------------------------------------------- ! ! NOTE: setup01.sqc includes begin-setup/end-setup; ! ptpsl160.sqc does not. ! ! #include 'setup01.sqc' !Inits Printer and Page-size -- PORTRAIT ! ! - or - (use one or the other) ! ! BEGIN-SETUP ! #include 'ptpsl160.sqc' !Inits Printer and Page-size -- LANDSCAPE ! END-SETUP ! !---------------------------------------------------------------------- BEGIN-SETUP #include 'ptpsl160.sqc' !Inits Printer and Page-size -- LANDSCAPE END-SETUP !:::::::::::::::::::::::::::::: ! => ADD CUSTOM DEFINES HERE... !:::::::::::::::::::::::::::::: #define Report_Institution 'University of Wisconsin - Whitewater' #define Report_Area 'Student Financials' #define ReportTitle 'Betty is Testing' !---- The following are column positions on the report. #define C01 02 ! Emplid #define C02 12 ! term #define C03 20 ! #define C04 40 ! #define C05 60 ! #define C06 80 ! !*********************************************************************** !****************** BEGIN-HEADING ****************************** !*********************************************************************** begin-heading 10 !:::::::::::::::::::::::::::::: ! => IS THE NUMBER OF ! HEADING LINES CORRECT? !:::::::::::::::::::::::::::::: ! >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ! >>>>>>> NOTE: #current-line depends upon the # of hdg lines stated. ! >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> !---------------------------------------------------------------------- ! ! Heading lines 1-4 are generic report headings for Student Financials. ! !---------------------------------------------------------------------- ! These headings were adapted from: ! #include 'stdhdg01.sqc' !Produces primary headings ! ! When using 'ptpsl160.sqc', you must have this: ! let #RptCol = {ColR} - 11 ! else the headings print beyond the right margin. !----------------------------------------------------------------------- let #RptCol = {ColR} - 9 ! <==== BPT - changed this let $Money_Mask = '$$$,999,999.00MI' !------------- ! Hdg line 1 !------------- print 'Report ID: ' (,1) print $ReportID () print {Report_Institution} () center page-number (0,#RptCol) 'Page No. ' !------------- ! Hdg line 2 !------------- print 'Run Date: ' (+1,1) print $ReportDate () print {Report_Area} () center print 'Run Time: ' (,#RptCol) print $ReportTime () !------------- ! Hdg line 4 !------------- print {ReportTitle} (+2,) center bold !:::::::::::::::::::::::::::::: ! => ADD CUSTOM HDGS HERE... !:::::::::::::::::::::::::::::: end-heading !*********************************************************************** !****************** BEGIN-PROGRAM ****************************** !*********************************************************************** begin-program !---------------------------------------------------------------------- ! ALWAYS INCLUDED AT START OF 'PROGRAM' PARAGRAPH ! ! This is a generic start-up. !---------------------------------------------------------------------- do DEFINE-PRCS-VARS ! Provides PS platform independence do GET-RUN-CONTROL-PARMS ! Std PS startup - gets oprid + run-cntl-id do INIT-DATETIME ! Needed for GET-CURRENT-DATETIME do GET-CURRENT-DATETIME ! Populates the heading date and time !:::::::::::::::::::::::::::::: ! => ADD CUSTOM CODE BELOW... !:::::::::::::::::::::::::::::: INPUT $EndDate maxlen=11 'Enter end date (DD-MON-YYYY)' let $Msg = '$enddate = ' || $enddate display $Msg LET $end = strtodate($EndDate,'DD-MON-YYYY') let $Msg = '$end = ' || $end display $Msg do convert-to-dtu-date($End,$ENDYMD) let $Msg = '$endymd = ' || $endymd display $Msg INPUT $EndDate maxlen=11 'Enter end date (DD-mon-YYYY)' let $Msg = '$enddate = ' || $enddate display $Msg LET $end = strtodate($EndDate,'DD-MON-YYYY') let $Msg = '$end = ' || $end display $Msg do convert-to-dtu-date($End,$ENDYMD) let $Msg = '$endymd = ' || $endymd display $Msg INPUT $EndDate maxlen=11 'Enter end date (DD-MON-YYYY)' LET $end = strtodate($EndDate, 'DD-MON-YYYY') DISPLAY '$END ' NOLINE DISPLAY $END do convert-to-dtu-date($End,$ENDYMD) DISPLAY '$END ' NOLINE DISPLAY $END !---------------------------------------------------------------------- ! ALWAYS INCLUDED AT END OF 'PROGRAM' PARAGRAPH ! ! This is a generic shut-down. !---------------------------------------------------------------------- do RESET !resets PS global variable for reporting do SUCCESSFUL-EOJ !resets PS global variables for exec status end-program !*********************************************************************** ! SQC files for called procedures !*********************************************************************** #include 'datemath.sqc' ! Convert-To-DTU-Date #include 'curdttim.sqc' ! GET-CURRENT-DATETIME #include 'datetime.sqc' ! needed by GET-CURRENT-DATETIME #include 'wwsfslct.sqc' ! WWSFSLCT-SELECT-PARAMETERS #include 'wwsfasgn.sqc' ! WWSFASGN-BUSINESS-UNIT #include 'reset.sqc' ! RESET #include 'eoj.sqc' ! SUCCESSFUL-EOJ #include 'prcsdef.sqc' ! DEFINE-PRCS-VARS #include 'prcsapi.sqc' ! GET-RUN-CONTROL-PARMS ! #include 'getempnm.sqc' ! GET-EMPLOYEE-NAME !************************* End Of Program **************************** ------=_NextPart_000_0006_01C19446.AD4227A0 Content-Type: application/octet-stream; name="sqr.log" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="sqr.log" Please press ENTER (Do not input a value): Enter end date (DD-MON-YYYY): 02-feb-2001 $enddate = 02-feb-2001 $end = 02-FEB-2001 $endymd = 2001-02-02 Enter end date (DD-mon-YYYY): 02-FEB-2001 $enddate = 02-FEB-2001 $end = 02-FEB-2001 $endymd = 2001-02-02 Enter end date (DD-MON-YYYY): 02-FEB-2001 $END 02-FEB-2001 $END 02-FEB-2001 SQR: End of Run. ------=_NextPart_000_0006_01C19446.AD4227A0-- From owner-sqr-users@list.iex.net Thu Jan 3 12:33:11 2002 Date: Thu, 3 Jan 2002 12:26:36 -0500 From: Jerry Coleman Subject: Re: FW: date problems I can't recreate your error on Oracle 8.1.6, PSFT 7.51 using the following. Why don't you try adding -debugx to the SQR command line, and it should dump out some trace info, which may contain some clues. #include 'setenv.sqc' !Set environment BEGIN-REPORT do Init-DateTime do Init-Number do Get-Current-DateTime display 'Report Ended: ' noline do Init-Report END-REPORT BEGIN-PROCEDURE INIT-REPORT INPUT $EndDate maxlen=11 'Enter end date (DD-MON-YYYY)' LET $end = strtodate($EndDate, 'DD-MON-YYYY') SHOW '$END ' $END do convert-to-dtu-date($End,$ENDYMD) SHOW ' $ENDYMD ' $ENDYMD END-PROCEDURE #include 'curdttim.sqc' #include 'datetime.sqc' #include 'number.sqc' #include 'datemath.sqc' #include 'stdapi.sqc' |---------+----------------------------> | | "Shipley, Lisa | | | A." | | | | | | Sent by: | | | "Discussion of | | | SQR, Brio | | | Software's | | | database | | | reporting | | | language" | | | | | | | | | | | | 01/03/02 10:26 AM| | | Please respond to| | | sqr-users | | | | |---------+----------------------------> >--------------------------------------------------------------------------------------------------------------| | | | To: SQR-USERS@list.iex.net | | cc: | | Subject: FW: date problems | >--------------------------------------------------------------------------------------------------------------| I've changed the input mask to fit the conversion mask and it still gives me the same error. INPUT $EndDate maxlen=11 'Enter end date (DD-MON-YYYY)' IF rtrim($EndDate, ' ') = '' goto Done END-IF LET $end = strtodate($EndDate, 'DD-MON-YYYY') DISPLAY '$END ' NOLINE DISPLAY $END do convert-to-dtu-date($End,$ENDYMD) My display on $End looks good '30-DEC-2001' After the attempt at the dtu conversion, I still get 30--2001 with an invalid month error. -----Original Message----- From: the dragon [mailto:ceprn@hotmail.com] Sent: Thursday, January 03, 2002 9:14 AM To: sqr-users@list.iex.net Subject: Re: date problems Lisa, I don't have a lot of time to examine this completely, but, right off the bat, I can tell you Oracle will not see the date formats DD-Mon-YYYY and DD-MON-YYYY (31-Dec-2001 <> 31-DEC-2001) as the same thing. I think if you make the conversion mask the same as the input mask you will see different results. clark 'the dragon' willis dragon enterprises, consulting services "Doing it right the first time, at an affordable rate." 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---- Oracle 7.3.4 SQR 4.3.4 Good Afternoon, I'm trying to subtract 1 day from a value that a user keys in. I've done this before in other programs, but for some reason, I can't get it to work today. INPUT $BegDate 'Enter begin date (DD-Mon-YYYY)' type=char maxlen=11 IF rtrim($BegDate, ' ') = '' goto Done END-IF let $BDate = strtodate($BegDate, 'DD-MON-YYYY') DISPLAY '$BDate ' Noline Display $Bdate do convert-to-dtu-date($BDate,$DATE_OUT) The output for $DATE_OUT is 2001--24. It's leaving the month DEC out. I can't for the life of me figure out why. Any help is GREATLY appreciated!!!!! Lisa Shipley Senior Programmer Sumitomo Electric Wiring Systems, Inc. Phone: (270) 782-7397 Ext. 2226 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) NOTICE: The information contained in this message is protected under United States and international copyright laws and is intended for the personal and confidential use of the addressee. If you are not the addressee or an agent of the addressee, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, taking of any action in reliance upon or copying of this message without the express written permission of the sender or his agent is strictly prohibited and in violation of referenced statutes. If you have received this message in error, please notify me (the sender) immediately and you are instructed to delete this message from any computer it resides on, including mail servers. SIGNATURE : Do not meddle in the affairs of dragons, for you are crunchy and taste good with ketchup. You've got to be a Spirit; don't need no Ghosts. Do or Do Not; There is NO Try. Any clod can have facts, but having an opinion is an art ! A conclusion is simply the place where someone got tired of thinking. When a continuing state of defiance and disorder can not be checked by the rules, then new and sometimes drastic rules must be forged to maintain order; the alternative is anarchy. M. Clark Willis III - Sr Systems Analyst, Sr Consultant ceprn@hotmail.com aolim:ceprn ICQ 6633136 Help stamp out SPAM!! http://www.cauce.org The senders of unsolicited commercial e-mail to me at any site are liable for a $500 per message cost under USC 47, which may be found at http://www.law.cornell.edu/uscode/47 Contents of this message, in it's entirety, (c) 2000 M. Clark Willis III / Dragon Enterprises inc. All rights reserved. _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From owner-sqr-users@list.iex.net Thu Jan 3 12:34:35 2002 Date: Thu, 3 Jan 2002 12:30:42 -0500 From: Jerry Coleman Subject: Re: FW: date problems Also, ask your DBA if he/she changed the NLS_DATE_FORMAT setting, either on the server or your workstation registry. |---------+----------------------------> | | "Shipley, Lisa | | | A." | | | | | | Sent by: | | | "Discussion of | | | SQR, Brio | | | Software's | | | database | | | reporting | | | language" | | | | | | | | | | | | 01/03/02 10:26 AM| | | Please respond to| | | sqr-users | | | | |---------+----------------------------> >--------------------------------------------------------------------------------------------------------------| | | | To: SQR-USERS@list.iex.net | | cc: | | Subject: FW: date problems | >--------------------------------------------------------------------------------------------------------------| I've changed the input mask to fit the conversion mask and it still gives me the same error. INPUT $EndDate maxlen=11 'Enter end date (DD-MON-YYYY)' IF rtrim($EndDate, ' ') = '' goto Done END-IF LET $end = strtodate($EndDate, 'DD-MON-YYYY') DISPLAY '$END ' NOLINE DISPLAY $END do convert-to-dtu-date($End,$ENDYMD) My display on $End looks good '30-DEC-2001' After the attempt at the dtu conversion, I still get 30--2001 with an invalid month error. -----Original Message----- From: the dragon [mailto:ceprn@hotmail.com] Sent: Thursday, January 03, 2002 9:14 AM To: sqr-users@list.iex.net Subject: Re: date problems Lisa, I don't have a lot of time to examine this completely, but, right off the bat, I can tell you Oracle will not see the date formats DD-Mon-YYYY and DD-MON-YYYY (31-Dec-2001 <> 31-DEC-2001) as the same thing. I think if you make the conversion mask the same as the input mask you will see different results. clark 'the dragon' willis dragon enterprises, consulting services "Doing it right the first time, at an affordable rate." 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---- Oracle 7.3.4 SQR 4.3.4 Good Afternoon, I'm trying to subtract 1 day from a value that a user keys in. I've done this before in other programs, but for some reason, I can't get it to work today. INPUT $BegDate 'Enter begin date (DD-Mon-YYYY)' type=char maxlen=11 IF rtrim($BegDate, ' ') = '' goto Done END-IF let $BDate = strtodate($BegDate, 'DD-MON-YYYY') DISPLAY '$BDate ' Noline Display $Bdate do convert-to-dtu-date($BDate,$DATE_OUT) The output for $DATE_OUT is 2001--24. It's leaving the month DEC out. I can't for the life of me figure out why. Any help is GREATLY appreciated!!!!! Lisa Shipley Senior Programmer Sumitomo Electric Wiring Systems, Inc. Phone: (270) 782-7397 Ext. 2226 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) NOTICE: The information contained in this message is protected under United States and international copyright laws and is intended for the personal and confidential use of the addressee. If you are not the addressee or an agent of the addressee, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, taking of any action in reliance upon or copying of this message without the express written permission of the sender or his agent is strictly prohibited and in violation of referenced statutes. If you have received this message in error, please notify me (the sender) immediately and you are instructed to delete this message from any computer it resides on, including mail servers. SIGNATURE : Do not meddle in the affairs of dragons, for you are crunchy and taste good with ketchup. You've got to be a Spirit; don't need no Ghosts. Do or Do Not; There is NO Try. Any clod can have facts, but having an opinion is an art ! A conclusion is simply the place where someone got tired of thinking. When a continuing state of defiance and disorder can not be checked by the rules, then new and sometimes drastic rules must be forged to maintain order; the alternative is anarchy. M. Clark Willis III - Sr Systems Analyst, Sr Consultant ceprn@hotmail.com aolim:ceprn ICQ 6633136 Help stamp out SPAM!! http://www.cauce.org The senders of unsolicited commercial e-mail to me at any site are liable for a $500 per message cost under USC 47, which may be found at http://www.law.cornell.edu/uscode/47 Contents of this message, in it's entirety, (c) 2000 M. Clark Willis III / Dragon Enterprises inc. All rights reserved. _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From owner-sqr-users@list.iex.net Thu Jan 3 12:44:45 2002 Date: Thu, 3 Jan 2002 11:37:46 -0600 From: "Shipley, Lisa A." Subject: FW: FW: date problems The problem has been resolved. I was running this program against our Kronos database. I knew I had gotten this to work in PeopleSoft. The difference was the init-Datetime was not in my Kronos program. Once I added that and a call to the curdttim.sqc, it worked beautifully. Thanks for all of the suggestions, they are greatly appreciated!!!!! -----Original Message----- From: Jerry Coleman [mailto:colemanj@WASHPOST.COM] Sent: Thursday, January 03, 2002 11:31 AM To: SQR-USERS@list.iex.net Subject: Re: FW: date problems Also, ask your DBA if he/she changed the NLS_DATE_FORMAT setting, either on the server or your workstation registry. |---------+----------------------------> | | "Shipley, Lisa | | | A." | | | | | | Sent by: | | | "Discussion of | | | SQR, Brio | | | Software's | | | database | | | reporting | | | language" | | | | | | | | | | | | 01/03/02 10:26 AM| | | Please respond to| | | sqr-users | | | | |---------+----------------------------> >--------------------------------------------------------------------------- -----------------------------------| | | | To: SQR-USERS@list.iex.net | | cc: | | Subject: FW: date problems | >--------------------------------------------------------------------------- -----------------------------------| I've changed the input mask to fit the conversion mask and it still gives me the same error. INPUT $EndDate maxlen=11 'Enter end date (DD-MON-YYYY)' IF rtrim($EndDate, ' ') = '' goto Done END-IF LET $end = strtodate($EndDate, 'DD-MON-YYYY') DISPLAY '$END ' NOLINE DISPLAY $END do convert-to-dtu-date($End,$ENDYMD) My display on $End looks good '30-DEC-2001' After the attempt at the dtu conversion, I still get 30--2001 with an invalid month error. -----Original Message----- From: the dragon [mailto:ceprn@hotmail.com] Sent: Thursday, January 03, 2002 9:14 AM To: sqr-users@list.iex.net Subject: Re: date problems Lisa, I don't have a lot of time to examine this completely, but, right off the bat, I can tell you Oracle will not see the date formats DD-Mon-YYYY and DD-MON-YYYY (31-Dec-2001 <> 31-DEC-2001) as the same thing. I think if you make the conversion mask the same as the input mask you will see different results. clark 'the dragon' willis dragon enterprises, consulting services "Doing it right the first time, at an affordable rate." 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---- Oracle 7.3.4 SQR 4.3.4 Good Afternoon, I'm trying to subtract 1 day from a value that a user keys in. I've done this before in other programs, but for some reason, I can't get it to work today. INPUT $BegDate 'Enter begin date (DD-Mon-YYYY)' type=char maxlen=11 IF rtrim($BegDate, ' ') = '' goto Done END-IF let $BDate = strtodate($BegDate, 'DD-MON-YYYY') DISPLAY '$BDate ' Noline Display $Bdate do convert-to-dtu-date($BDate,$DATE_OUT) The output for $DATE_OUT is 2001--24. It's leaving the month DEC out. I can't for the life of me figure out why. Any help is GREATLY appreciated!!!!! Lisa Shipley Senior Programmer Sumitomo Electric Wiring Systems, Inc. Phone: (270) 782-7397 Ext. 2226 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) NOTICE: The information contained in this message is protected under United States and international copyright laws and is intended for the personal and confidential use of the addressee. If you are not the addressee or an agent of the addressee, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, taking of any action in reliance upon or copying of this message without the express written permission of the sender or his agent is strictly prohibited and in violation of referenced statutes. If you have received this message in error, please notify me (the sender) immediately and you are instructed to delete this message from any computer it resides on, including mail servers. SIGNATURE : Do not meddle in the affairs of dragons, for you are crunchy and taste good with ketchup. You've got to be a Spirit; don't need no Ghosts. Do or Do Not; There is NO Try. Any clod can have facts, but having an opinion is an art ! A conclusion is simply the place where someone got tired of thinking. When a continuing state of defiance and disorder can not be checked by the rules, then new and sometimes drastic rules must be forged to maintain order; the alternative is anarchy. M. Clark Willis III - Sr Systems Analyst, Sr Consultant ceprn@hotmail.com aolim:ceprn ICQ 6633136 Help stamp out SPAM!! http://www.cauce.org The senders of unsolicited commercial e-mail to me at any site are liable for a $500 per message cost under USC 47, which may be found at http://www.law.cornell.edu/uscode/47 Contents of this message, in it's entirety, (c) 2000 M. Clark Willis III / Dragon Enterprises inc. All rights reserved. _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From owner-sqr-users@list.iex.net Thu Jan 3 13:12:21 2002 Date: Thu, 3 Jan 2002 14:04:15 -0400 From: Peter Clark Subject: Re: date problems Betty, you beat me to the punch. I would wager that the culprit is SETENV.SQC. This sets several substitution variables for PeopleSoft date handling routines ... including Format-DateTime (in DateTime.sqc) which is invoked by the Convert-To-DTU-Date procedure in DateMath.sqc. Another possibility is that presumably (based on her use of the input command) Lisa's SQR is intended to run outside the PeopleSoft environment and is being run via SQRW. Lisa, is it possible that your command flags in SQRW are pointing to SQR.INI instead of PSSQR.INI (it is possible that these are not in synch)? This is where the SQR DB date format is defined (although I don't think your code would be dependant upon the DB date format). HTH, Peter >>> Betty Thompson 2002/01/03 1:06:21 pm >>> I'm still a beginner, so bear with me, please, if this sounds silly... Could you be missing some variable value that affects how the functions work? I shoved your stuff into a shell program and it worked fine (I only omitted the 'if' statement with the 'goto Done'). What I thought might be different is that I always use a shell with the same bunch of sqc includes. I built this shell after going to SQR class, and I never really look at it any more, but I think it sets a lot of variables regarding dates. I attached my test program and the log from running it. Good luck. Betty -----Original Message----- From: Discussion of SQR, Brio Software's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Shipley, Lisa A. Sent: Thursday, January 03, 2002 9:27 AM To: SQR-USERS@list.iex.net Subject: FW: date problems I've changed the input mask to fit the conversion mask and it still gives me the same error. INPUT $EndDate maxlen=11 'Enter end date (DD-MON-YYYY)' IF rtrim($EndDate, ' ') = '' goto Done END-IF LET $end = strtodate($EndDate, 'DD-MON-YYYY') DISPLAY '$END ' NOLINE DISPLAY $END do convert-to-dtu-date($End,$ENDYMD) My display on $End looks good '30-DEC-2001' After the attempt at the dtu conversion, I still get 30--2001 with an invalid month error. -----Original Message----- From: the dragon [mailto:ceprn@hotmail.com] Sent: Thursday, January 03, 2002 9:14 AM To: sqr-users@list.iex.net Subject: Re: date problems Lisa, I don't have a lot of time to examine this completely, but, right off the bat, I can tell you Oracle will not see the date formats DD-Mon-YYYY and DD-MON-YYYY (31-Dec-2001 <> 31-DEC-2001) as the same thing. I think if you make the conversion mask the same as the input mask you will see different results. clark 'the dragon' willis dragon enterprises, consulting services "Doing it right the first time, at an affordable rate." 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---- Oracle 7.3.4 SQR 4.3.4 Good Afternoon, I'm trying to subtract 1 day from a value that a user keys in. I've done this before in other programs, but for some reason, I can't get it to work today. INPUT $BegDate 'Enter begin date (DD-Mon-YYYY)' type=char maxlen=11 IF rtrim($BegDate, ' ') = '' goto Done END-IF let $BDate = strtodate($BegDate, 'DD-MON-YYYY') DISPLAY '$BDate ' Noline Display $Bdate do convert-to-dtu-date($BDate,$DATE_OUT) The output for $DATE_OUT is 2001--24. It's leaving the month DEC out. I can't for the life of me figure out why. Any help is GREATLY appreciated!!!!! Lisa Shipley Senior Programmer Sumitomo Electric Wiring Systems, Inc. Phone: (270) 782-7397 Ext. 2226 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) NOTICE: The information contained in this message is protected under United States and international copyright laws and is intended for the personal and confidential use of the addressee. If you are not the addressee or an agent of the addressee, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, taking of any action in reliance upon or copying of this message without the express written permission of the sender or his agent is strictly prohibited and in violation of referenced statutes. If you have received this message in error, please notify me (the sender) immediately and you are instructed to delete this message from any computer it resides on, including mail servers. SIGNATURE : Do not meddle in the affairs of dragons, for you are crunchy and taste good with ketchup. You've got to be a Spirit; don't need no Ghosts. Do or Do Not; There is NO Try. Any clod can have facts, but having an opinion is an art ! A conclusion is simply the place where someone got tired of thinking. When a continuing state of defiance and disorder can not be checked by the rules, then new and sometimes drastic rules must be forged to maintain order; the alternative is anarchy. M. Clark Willis III - Sr Systems Analyst, Sr Consultant ceprn@hotmail.com aolim:ceprn ICQ 6633136 Help stamp out SPAM!! http://www.cauce.org The senders of unsolicited commercial e-mail to me at any site are liable for a $500 per message cost under USC 47, which may be found at http://www.law.cornell.edu/uscode/47 Contents of this message, in it's entirety, (c) 2000 M. Clark Willis III / Dragon Enterprises inc. All rights reserved. _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From owner-sqr-users@list.iex.net Thu Jan 3 14:42:49 2002 Date: Thu, 3 Jan 2002 11:36:03 -0800 From: Arun Kumar Subject: Re: date problems Lisa, By looking at your code you are in Peoplesoft environment. To get date from user, You can use sqc so that your code still stays independent of the the database. There are couple of procedures are already available for date input from user. 1.Get-As-Of-Date 2.Get-From-Thru-Dates Hope this helps Arun --- Peter Clark wrote: > Betty, you beat me to the punch. > > I would wager that the culprit is SETENV.SQC. This > sets several substitution variables for PeopleSoft > date handling routines ... including Format-DateTime > (in DateTime.sqc) which is invoked by the > Convert-To-DTU-Date procedure in DateMath.sqc. > > Another possibility is that presumably (based on her > use of the input command) Lisa's SQR is intended to > run outside the PeopleSoft environment and is being > run via SQRW. Lisa, is it possible that your command > flags in SQRW are pointing to SQR.INI instead of > PSSQR.INI (it is possible that these are not in > synch)? This is where the SQR DB date format is > defined (although I don't think your code would be > dependant upon the DB date format). > > HTH, Peter > > >>> Betty Thompson > 2002/01/03 1:06:21 pm >>> > I'm still a beginner, so bear with me, please, if > this sounds silly... > > Could you be missing some variable value that > affects how the functions > work? > > I shoved your stuff into a shell program and it > worked fine (I only omitted > the > 'if' statement with the 'goto Done'). > > What I thought might be different is that I always > use a shell with the same > bunch > of sqc includes. I built this shell after going to > SQR class, and I never > really > look at it any more, but I think it sets a lot of > variables regarding dates. > > I attached my test program and the log from running > it. > > Good luck. > Betty > > > -----Original Message----- > From: Discussion of SQR, Brio Software's database > reporting language > [mailto:SQR-USERS@list.iex.net]On Behalf Of Shipley, > Lisa A. > Sent: Thursday, January 03, 2002 9:27 AM > To: SQR-USERS@list.iex.net > Subject: FW: date problems > > > I've changed the input mask to fit the conversion > mask and it still gives me > the same error. > > INPUT $EndDate maxlen=11 'Enter end date > (DD-MON-YYYY)' > IF rtrim($EndDate, ' ') = '' > goto Done > END-IF > > > LET $end = strtodate($EndDate, 'DD-MON-YYYY') > DISPLAY '$END ' NOLINE > DISPLAY $END > > > > do convert-to-dtu-date($End,$ENDYMD) > > My display on $End looks good '30-DEC-2001' > After the attempt at the dtu conversion, I still get > 30--2001 with an > invalid month error. > > > > > -----Original Message----- > From: the dragon [mailto:ceprn@hotmail.com] > Sent: Thursday, January 03, 2002 9:14 AM > To: sqr-users@list.iex.net > Subject: Re: date problems > > > Lisa, > > I don't have a lot of time to examine this > completely, but, right off the > bat, I can tell you Oracle will not see the date > formats DD-Mon-YYYY and > DD-MON-YYYY (31-Dec-2001 <> 31-DEC-2001) as the same > thing. I think if you > make the conversion mask the same as the input mask > you will see different > results. > > clark 'the dragon' willis > dragon enterprises, consulting services > "Doing it right the first time, at an affordable > rate." > > 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---- > > Oracle 7.3.4 > SQR 4.3.4 > > Good Afternoon, > > I'm trying to subtract 1 day from a value that a > user keys in. I've done > this before in other programs, but for some reason, > I can't get it to work > today. > > INPUT $BegDate 'Enter begin date (DD-Mon-YYYY)' > type=char maxlen=11 > IF rtrim($BegDate, ' ') = '' > goto Done > END-IF > > let $BDate = strtodate($BegDate, 'DD-MON-YYYY') > DISPLAY '$BDate ' Noline > Display $Bdate > > do convert-to-dtu-date($BDate,$DATE_OUT) > > > > The output for $DATE_OUT is 2001--24. It's leaving > the month DEC out. I > can't for the life of me figure out why. > > Any help is GREATLY appreciated!!!!! > > Lisa Shipley > Senior Programmer > Sumitomo Electric Wiring Systems, Inc. > Phone: (270) 782-7397 Ext. 2226 > > > > > > > > > > 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) > > NOTICE: The information contained in this message > is protected under United > > States and international copyright laws and is > intended for the personal and > > === message truncated === __________________________________________________ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com From owner-sqr-users@list.iex.net Thu Jan 3 15:34:09 2002 Date: Thu, 3 Jan 2002 15:27:58 -0500 From: Ray Ontko Subject: Re: Images in UNIX SQR reports Bruce, et al, The hpgl image can only be used with "-printer:hp". If you want a PDF output file, you need to use GIF-FILE or JPEG-FILE, and "-printer:pd" or "-printer:ep". PDF support was added with SQR 4.3.2.2. Ray [Charset iso-8859-1 unsupported, filtering to ASCII...] > Great suggestions. This is exactly what I have been trying, but still no > image, even after using the bmp to hpg converter. > > Do you know if an ADOBE pdf file can be created on UNIX with an image? > > Any other possibilities to check? > > Thanks, > > Bruce Kelling > PeopleSoft Developer > AdvanTech SolutionsSM > > > > > -----Original Message----- > From: Steve Wowelko [mailto:SAWOWELK@SYR.EDU] > Sent: Thursday, January 03, 2002 9:41 AM > To: SQR-USERS@list.iex.net > Subject: Re: Images in UNIX SQR reports > > > Hi Bruce, > > I've spent weeks trying to get this to work. > I finally did get it to work. > > Here's what I had to do- > > Declare your printer as an HP printer. I used a PeopleSoft supplied .sqc: > #include 'setup31.sqc' !Portrait HP Printer > > Declare your image as an HPGL image: > declare-image A1 > type=HPGL-FILE > source='/opt/psoft/syracuse/hrsa750/sqr/iofiles/registr/signature.hpg' ! > location on UNIX server > image-size=(40,6) > end-declare > > Then just print the image: > print-image A1 (66,8) > > The real (frustrating) problem is creating an HPGL file that SQR likes. > I have tried various graphic packages to do this to no avail. > There is a SQR that will convert a .bmp file to an .hpg (HPGL) format. > It is found at the following web site: > http://www.ontko.com/sqr/bmp_to_hpg.sqr > > It is shareware written by Ray Ontko. It does a wonderful job converting > images. (thank you Ray!) > > Hope this helps. > > Stephen Wowelko, EDP > Syracuse University - Information Systems > > > > >>> jwillson@DSSLTD.COM 01/02/02 02:12AM >>> > Hi Bruce. See the print-image command. Note that on UNIX only reports I > have > only used this command with postscript reports. So before invoking the > command > I also do an image sizing procedure to ensure the image is scaled (with an > aspect > ratio) into the area that is being printed. I no longer have a copy of UNIX > based SQR to test this on and provide examples; however, I can confirm that > SQRs developed under WINNT BR 6 using postscript and nonpostscript when run > on UNIX BR 6 just execute faster and print the same. (both gif and jpg. I > don't know about bmp) So write and debug with NT and run production with > UNIX > > > Hope this helps. > > John Willson > > Another approach > > graphic box somesize > print-image > type= gif-file > source = 'myimage.gif' > image-size = somesize > http://netwinsite.com/dbabble/ > ---------------------------------------------------------------------- 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/ From owner-sqr-users@list.iex.net Thu Jan 3 16:52:19 2002 Date: Thu, 3 Jan 2002 16:42:52 -0500 From: Bruce Kelling Subject: Re: Images in UNIX SQR reports Thanks everyone, it works. After numerous trial and errors, I can verify that Ray has clarified the key parts I was stumbling on. By the way, the bmp to hpg utility did produce a hpgl image type that did print OK in a UNIX run sqr. We really needed a PDF, and both the gif and jpeg images work great and don't require any major code changes. Bruce -----Original Message----- From: Ray Ontko [mailto:rayo@ONTKO.COM] Sent: Thursday, January 03, 2002 3:28 PM To: SQR-USERS@list.iex.net Subject: Re: Images in UNIX SQR reports Bruce, et al, The hpgl image can only be used with "-printer:hp". If you want a PDF output file, you need to use GIF-FILE or JPEG-FILE, and "-printer:pd" or "-printer:ep". PDF support was added with SQR 4.3.2.2. Ray [Charset iso-8859-1 unsupported, filtering to ASCII...] > Great suggestions. This is exactly what I have been trying, but still no > image, even after using the bmp to hpg converter. > > Do you know if an ADOBE pdf file can be created on UNIX with an image? > > Any other possibilities to check? > > Thanks, > > Bruce Kelling > PeopleSoft Developer > AdvanTech SolutionsSM > > > > > -----Original Message----- > From: Steve Wowelko [mailto:SAWOWELK@SYR.EDU] > Sent: Thursday, January 03, 2002 9:41 AM > To: SQR-USERS@list.iex.net > Subject: Re: Images in UNIX SQR reports > > > Hi Bruce, > > I've spent weeks trying to get this to work. > I finally did get it to work. > > Here's what I had to do- > > Declare your printer as an HP printer. I used a PeopleSoft supplied .sqc: > #include 'setup31.sqc' !Portrait HP Printer > > Declare your image as an HPGL image: > declare-image A1 > type=HPGL-FILE > source='/opt/psoft/syracuse/hrsa750/sqr/iofiles/registr/signature.hpg' ! > location on UNIX server > image-size=(40,6) > end-declare > > Then just print the image: > print-image A1 (66,8) > > The real (frustrating) problem is creating an HPGL file that SQR likes. > I have tried various graphic packages to do this to no avail. > There is a SQR that will convert a .bmp file to an .hpg (HPGL) format. > It is found at the following web site: > http://www.ontko.com/sqr/bmp_to_hpg.sqr > > It is shareware written by Ray Ontko. It does a wonderful job converting > images. (thank you Ray!) > > Hope this helps. > > Stephen Wowelko, EDP > Syracuse University - Information Systems > > > > >>> jwillson@DSSLTD.COM 01/02/02 02:12AM >>> > Hi Bruce. See the print-image command. Note that on UNIX only reports I > have > only used this command with postscript reports. So before invoking the > command > I also do an image sizing procedure to ensure the image is scaled (with an > aspect > ratio) into the area that is being printed. I no longer have a copy of UNIX > based SQR to test this on and provide examples; however, I can confirm that > SQRs developed under WINNT BR 6 using postscript and nonpostscript when run > on UNIX BR 6 just execute faster and print the same. (both gif and jpg. I > don't know about bmp) So write and debug with NT and run production with > UNIX > > > Hope this helps. > > John Willson > > Another approach > > graphic box somesize > print-image > type= gif-file > source = 'myimage.gif' > image-size = somesize > http://netwinsite.com/dbabble/ > ---------------------------------------------------------------------- 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/ From owner-sqr-users@list.iex.net Thu Jan 3 18:42:33 2002 Date: Thu, 3 Jan 2002 18:38:48 -0500 From: Jason Rupp Subject: Sql Count Hello All: I am trying to do a count - Select count(*) - in sqr and move the value to a variable to be used later. This is how I did it: Begin-sql count(*) &Count FROM PS_JOB End-Sql What am I doing wrong? Thanks for the help!! From owner-sqr-users@list.iex.net Thu Jan 3 19:00:45 2002 Date: Thu, 3 Jan 2002 17:55:08 -0600 From: Betty Thompson Subject: Re: Sql Count Tell it you want to 'select' -----Original Message----- From: Discussion of SQR, Brio Software's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Jason Rupp Sent: Thursday, January 03, 2002 5:39 PM To: SQR-USERS@list.iex.net Subject: Sql Count Hello All: I am trying to do a count - Select count(*) - in sqr and move the value to a variable to be used later. This is how I did it: Begin-sql count(*) &Count FROM PS_JOB End-Sql What am I doing wrong? Thanks for the help!! From owner-sqr-users@list.iex.net Thu Jan 3 19:17:14 2002 Date: Thu, 3 Jan 2002 16:11:02 -0800 From: Allen Cunningham Subject: Re: Sql Count You need a select statement in there, but cannot use one inside the sql-paragraph. Use a begin-select instead. ac -----Original Message----- From: Discussion of SQR, Brio Software's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Jason Rupp Sent: Thursday, January 03, 2002 3:39 PM To: SQR-USERS@list.iex.net Subject: Sql Count Hello All: I am trying to do a count - Select count(*) - in sqr and move the value to a variable to be used later. This is how I did it: Begin-sql count(*) &Count FROM PS_JOB End-Sql What am I doing wrong? Thanks for the help!! From owner-sqr-users@list.iex.net Thu Jan 3 19:41:33 2002 Date: Fri, 4 Jan 2002 11:35:55 +1100 From: Ian Mills Subject: Re: Sql Count Try the following begin-select count(*) &Count let #var = &count FROM PS_JOB end-select Regards, Ian Mills Analyst Programmer ORIX Australia Pty Ltd >>> jrupp@TECHNEGLAS.COM 04/01/2002 10:38:48 am >>> Hello All: I am trying to do a count - Select count(*) - in sqr and move the value to a variable to be used later. This is how I did it: Begin-sql count(*) &Count FROM PS_JOB End-Sql What am I doing wrong? Thanks for the help!! From owner-sqr-users@list.iex.net Thu Jan 3 19:43:32 2002 Date: Thu, 3 Jan 2002 16:38:14 -0800 From: Les Hancock Subject: Re: Sql Count Jason: Try this: begin-select count(*) &count from ps_job end-select Hope that works. Les --- Jason Rupp wrote: > Hello All: > > I am trying to do a count - Select count(*) - in sqr > and move the value > to a variable to be used later. This is how I did > it: > > Begin-sql > count(*) &Count > FROM PS_JOB > End-Sql > > What am I doing wrong? > > Thanks for the help!! __________________________________________________ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com From owner-sqr-users@list.iex.net Thu Jan 3 19:54:15 2002 Date: Thu, 3 Jan 2002 18:48:13 -0600 From: the dragon Subject: Re: Sql Count begin and end select, not sql clark 'the dragon' willis dragon enterprises, sonsulting Doing it right the first time, for less. 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---- Hello All: I am trying to do a count - Select count(*) - in sqr and move the value to a variable to be used later. This is how I did it: Begin-sql count(*) &Count FROM PS_JOB End-Sql What am I doing wrong? Thanks for the help!! _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From owner-sqr-users@list.iex.net Thu Jan 3 20:46:21 2002 Date: Thu, 3 Jan 2002 17:41:20 -0800 From: Ganta Subject: Re: Sql Count Hi, Just do like this Begin-select count(*) &Count FROM PS_JOB End-Select Bye Ganta --- Jason Rupp wrote: > Hello All: > > I am trying to do a count - Select count(*) - in sqr > and move the value > to a variable to be used later. This is how I did > it: > > Begin-sql > count(*) &Count > FROM PS_JOB > End-Sql > > What am I doing wrong? > > Thanks for the help!! ===== __________________________________________________ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com From owner-sqr-users@list.iex.net Thu Jan 3 21:48:34 2002 Date: Thu, 3 Jan 2002 18:43:14 -0800 From: David Thorburn Subject: Re: Sql Count Jason, You are presently using the begin-Select - end-Select syntax structure within a begin-SQL - end-SQL construct. Use a procedure with a begin-Select - end-Select structure and the &variable will be correctly populated. The begin-SQL - end-SQL is only for 'pure SQL' syntax constructs. Additionally, don't forget to qualify effective-dated records so the only 'current' rows get counted if that is your wish. You will find numerous examples of effdt/effseq in the selects contained in PeopleSoft delivered SQR's. Regards, David ----- Original Message ----- From: "Jason Rupp" To: Sent: Thursday, January 03, 2002 3:38 PM Subject: Sql Count > Hello All: > > I am trying to do a count - Select count(*) - in sqr and move the value > to a variable to be used later. This is how I did it: > > Begin-sql > count(*) &Count > FROM PS_JOB > End-Sql > > What am I doing wrong? > > Thanks for the help!! > From owner-sqr-users@list.iex.net Thu Jan 3 22:16:18 2002 Date: Thu, 3 Jan 2002 22:12:22 -0500 From: Jason Rupp Subject: Re: Sql Count SOLVED!! Thank you everyone! The Problem is Solved ----- Original Message ----- From: "Jason Rupp" To: Sent: Thursday, January 03, 2002 3:38 PM Subject: Sql Count > Hello All: > > I am trying to do a count - Select count(*) - in sqr and move the value > to a variable to be used later. This is how I did it: > > Begin-sql > count(*) &Count > FROM PS_JOB > End-Sql > > What am I doing wrong? > > Thanks for the help!! > From owner-sqr-users@list.iex.net Fri Jan 4 00:21:44 2002 Date: Fri, 4 Jan 2002 16:15:38 +1100 From: Ian Mills Subject: Adding Style Sheets to an SQR Report Can anyone help? I have an SQR report that is run on Brio Portal that produces an HTML output. I tried to add the following code to my report so that I can use style sheets to set my fonts for the HTML output. When I add this code, the report will no longer work when I try to run it on the Portal. When I comment it out, the report runs fine. Is there something obvious here to anyone that I am doing wrong? begin-program do html_on let $temp1 = '}' ! let $temp = 'LP_044 - Reference Report' let $temp = '' do html_set_head_tags($temp) ...etc Regards, Ian Mills From owner-sqr-users@list.iex.net Fri Jan 4 06:28:39 2002 Date: Fri, 4 Jan 2002 06:21:51 -0500 From: Jeffrey Bedell Subject: Re: Sql Count You forgot the SELECT statement. Jeffrey K. Bedell Senior Systems Analyst Information Systems Syracuse University (315) 443-9273 >>> jrupp@TECHNEGLAS.COM 01/03/02 06:38PM >>> Hello All: I am trying to do a count - Select count(*) - in sqr and move the value to a variable to be used later. This is how I did it: Begin-sql count(*) &Count FROM PS_JOB End-Sql What am I doing wrong? Thanks for the help!! From owner-sqr-users@list.iex.net Fri Jan 4 06:36:32 2002 Date: Fri, 4 Jan 2002 22:30:41 +1100 From: jarrodb Subject: Re: Adding Style Sheets to an SQR Report Does it run ok outside of the portal? If so check out what the html_set_head_tags actually outputs with regards to your temp string. You will probably find that your temp string is in the midst of the title that the html_set_head_tags is doing. ie you will probably end up with something like this. <STYLE type="text/css"><!!-- .bigHeading {....</STYLE> I remember also having problems with the squiggle brackets so I did this Let $LeftSquiggle = Chr(123) Let $RightSquiggle = Chr(125) if you have a look at the html.inc file you will find. begin-procedure html_set_head_tags($tags) let $outtag = '%%HEADTAGS=' || $tags print $outtag () code-printer=ht end-procedure ! html_set_head_tags I still haven't found out where or how the %%HEADTAGS is set. If you find out please let me know! This is what I ended up doing. Let $Title = $ReportID || ' - ' || $ReportName Let $CSSLink = 'rel="stylesheet" type="text/css" href="MyCSS.css"' Let $ExtraStyleTags = 'p.page' || chr(9) || Chr(123) || 'page-break-after:always' || Chr(125) Do html_set_head_tags($Title) Do html_CSS_link($CSSLink) Do html_extraStyle($ExtraStyleTags) Do html_extraStyle_end begin-procedure html_extraStyle($tags) if $tags = '' print '' () code-printer=ht end-procedure begin-procedure html_CSS_link($tags) if $tags = '' print '' () code-printer=ht else let $outtag = '' print $outtag () code-printer=ht end-if end-procedure I hope this helps. Try cutting and pasting but I can't guarentee anything as it was copied from an old version of a program I had lying around. Always test and retest it outside the portal first. We ended up simply writing programs to generate the html files outside of the portal and them load them using the OneAPI. For us it was a better option because we had a head of style sheet stuff in there, plus the programs were already written in ASP so conversion was a piece of cake. Also our ETL and other processing initiates the programs and we felt that we would have more control of when the reports are available. ie After we had checked them! Goodluck! -----Original Message----- From: Discussion of SQR, Brio Software's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Ian Mills Sent: Friday, 4 January 2002 4:16 PM To: SQR-USERS@list.iex.net Subject: Adding Style Sheets to an SQR Report Can anyone help? I have an SQR report that is run on Brio Portal that produces an HTML output. I tried to add the following code to my report so that I can use style sheets to set my fonts for the HTML output. When I add this code, the report will no longer work when I try to run it on the Portal. When I comment it out, the report runs fine. Is there something obvious here to anyone that I am doing wrong? begin-program do html_on let $temp1 = '}' ! let $temp = 'LP_044 - Reference Report' let $temp = '' do html_set_head_tags($temp) ...etc Regards, Ian Mills From owner-sqr-users@list.iex.net Fri Jan 4 08:07:20 2002 Date: Fri, 4 Jan 2002 18:31:00 +0530 From: "Nagarajan.C" Subject: Re: Images in UNIX SQR reports Hi , We are working with SQR3.One of our requirements is that we have to produce HTML outputs rather than .lis (text ) files .We figured out a way in embedding html tags with the .sqr files and generated the .lis files along with the HTML tags.Then we Processed this lis file using java and got the html file .Its serving the Purpose , but in the event of huge records , this is costly . Question : Is there any way with sqr3 , by which i can get the html file format directly?Kindly suggest me , as this is getting costly for us , to embed the tags all the time .A short cut could be writing a function with UCALL.c or ufunc.c which would save the file . Please suggest me . Thanks Nags From owner-sqr-users@list.iex.net Fri Jan 4 08:10:45 2002 Date: Fri, 4 Jan 2002 18:34:49 +0530 From: "Nagarajan.C" Subject: sqr3 output file format in html Hi Ray , We are working with SQR3.One of our requirements is that we have to produce HTML outputs rather than .lis (text ) files .We figured out a way in embedding html tags with the .sqr files and generated the .lis files along with the HTML tags.Then we Processed this lis file using java and got the html file .Its serving the Purpose , but in the event of huge records , this is costly . Question : Is there any way with sqr3 , by which i can get the html file format directly?Kindly suggest me , as this is getting costly for us , to embed the tags all the time .A short cut could be writing a function with UCALL.c or ufunc.c which would save the file . Please suggest me . Bottom line : we have only sqr3 to accomplish this task .Kindly treat this as Urgent. Thanks Nags From owner-sqr-users@list.iex.net Fri Jan 4 09:41:33 2002 Date: Fri, 4 Jan 2002 09:36:03 -0500 From: "Turner, Ivan" Subject: Re: Sql Count This si a begin-select not begin-sql. Begin-sql is only for dml. -----Original Message----- From: Jason Rupp [mailto:jrupp@TECHNEGLAS.COM] Sent: Thursday, January 03, 2002 6:39 PM To: SQR-USERS@list.iex.net Subject: Sql Count Hello All: I am trying to do a count - Select count(*) - in sqr and move the value to a variable to be used later. This is how I did it: Begin-sql count(*) &Count FROM PS_JOB End-Sql What am I doing wrong? Thanks for the help!! From owner-sqr-users@list.iex.net Fri Jan 4 13:27:18 2002 Date: Sat, 5 Jan 2002 13:23:25 -0500 From: Stephen Keen Subject: Re: Sql Count place the 'SELECT' after Begin-sql and before the Count -----Original Message----- From: Discussion of SQR, Brio Software's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Jason Rupp Sent: Thursday, January 03, 2002 6:39 PM To: SQR-USERS@list.iex.net Subject: Sql Count Hello All: I am trying to do a count - Select count(*) - in sqr and move the value to a variable to be used later. This is how I did it: Begin-sql count(*) &Count FROM PS_JOB End-Sql What am I doing wrong? Thanks for the help!! From owner-sqr-users@list.iex.net Fri Jan 4 14:45:29 2002 Date: Fri, 4 Jan 2002 13:39:54 -0600 From: James Womeldorf Subject: Quotes '''' ''''''' '''''''''' ''''''' ???????? @$%*#@#$ We have all seen the lines of code where there are seemingly uncountable quotes strung together in an attempt to get a quote imbedded into a string. To those of you who find that method unsettling I suggest the following: Place the following line in the Setup section of your SQR. #define Quote '''' Then the following code: let $Country = 'USA' let $Query_Restriction = 'and B.COUNTRY = ' || {Quote} || $Country || {Quote} will set $Query_Restriction equal to and B.COUNTRY = 'USA' This allows a substitution in a begin-select such as the following to work: where A.FAS_BRANCH5 = B.FAS_BRANCH5 and C.business_unit = A.FAS_BRANCH5 [$Query_Restriction] which the begin-select then sees as: where A.FAS_BRANCH5 = B.FAS_BRANCH5 and C.business_unit = A.FAS_BRANCH5 and B.COUNTRY = 'USA' There are a couple benefits to using #define over setting a variable equal to a quote. First, it cannot be accidently altered in your SQR. An especially valuable feature if someone else works on your code someday. Second, you can use {Quote} anywhere in your SQR, even in local procedures where a global variable would have to be referenced using the beloved $_ syntax. Happy New Year! Jim Womeldorf Programmer/Analyst Fastenal Company jwomeldo@fastenal.com (507) 453-8250 From owner-sqr-users@list.iex.net Fri Jan 4 14:47:18 2002 Date: Fri, 4 Jan 2002 13:42:24 -0600 From: "Ross, Steven" Subject: Re: Sql Count Here's another way... begin-select Count(*) &count from ps_job end-select Using "begin-select" is the usual way to do a select in SQR. HTH, Steven Ross Applications Developer/Analyst sross@kcm.org =A0 -----Original Message----- From: Stephen Keen [mailto:stephen_keen@SQR-SERVICES.COM] Sent: Saturday, January 05, 2002 12:23 PM To: SQR-USERS@list.iex.net Subject: Re: Sql Count place the 'SELECT' after Begin-sql and before the Count -----Original Message----- From: Discussion of SQR, Brio Software's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Jason Rupp Sent: Thursday, January 03, 2002 6:39 PM To: SQR-USERS@list.iex.net Subject: Sql Count Hello All: I am trying to do a count - Select count(*) - in sqr and move the value to a variable to be used later. This is how I did it: Begin-sql count(*) &Count FROM PS_JOB End-Sql What am I doing wrong? Thanks for the help!! From owner-sqr-users@list.iex.net Fri Jan 4 15:48:21 2002 Date: Fri, 4 Jan 2002 14:36:40 -0600 From: "Hins, Thomas D." Subject: Re: Quotes '''' ''''''' '''''''''' ''''''' ???????? @$%*#@#$ good suggestion, like that, I have fought with the quote thing before! -----Original Message----- From: James Womeldorf [mailto:jwomeldo@FASTENAL.COM] Sent: Friday, January 04, 2002 1:40 PM To: SQR-USERS@list.iex.net Subject: Quotes '''' ''''''' '''''''''' ''''''' ???????? @$%*#@#$ We have all seen the lines of code where there are seemingly uncountable quotes strung together in an attempt to get a quote imbedded into a string. To those of you who find that method unsettling I suggest the following: Place the following line in the Setup section of your SQR. #define Quote '''' Then the following code: let $Country = 'USA' let $Query_Restriction = 'and B.COUNTRY = ' || {Quote} || $Country || {Quote} will set $Query_Restriction equal to and B.COUNTRY = 'USA' This allows a substitution in a begin-select such as the following to work: where A.FAS_BRANCH5 = B.FAS_BRANCH5 and C.business_unit = A.FAS_BRANCH5 [$Query_Restriction] which the begin-select then sees as: where A.FAS_BRANCH5 = B.FAS_BRANCH5 and C.business_unit = A.FAS_BRANCH5 and B.COUNTRY = 'USA' There are a couple benefits to using #define over setting a variable equal to a quote. First, it cannot be accidently altered in your SQR. An especially valuable feature if someone else works on your code someday. Second, you can use {Quote} anywhere in your SQR, even in local procedures where a global variable would have to be referenced using the beloved $_ syntax. Happy New Year! Jim Womeldorf Programmer/Analyst Fastenal Company jwomeldo@fastenal.com (507) 453-8250 From owner-sqr-users@list.iex.net Fri Jan 4 18:55:25 2002 Date: Fri, 4 Jan 2002 15:42:45 -0800 From: Brian Pelton Subject: LIS printing troubles Hi All, As many of you know, the OSHA 300 form changed this year. I'm having trouble with getting the printer to print the LIS file correctly. I am using lots of boxes and lines and shading to make the report look a little less text-based and more like a form. The SQR creates both an LIS and a SPF file. When I view the SPF file using SQR Viewer, it looks fine. When I print the LIS file, it cuts off the first line (that says "PeopleSoft" or "Your Company Name") and I had to alter the ColR variable because the standard heading info was being cut off on the right hand side. I'm printing landscape. Are there are good sources out there that deal with formating a report and printing problems?? bp From owner-sqr-users@list.iex.net Fri Jan 4 19:39:03 2002 Date: Fri, 4 Jan 2002 19:31:16 EST From: NEDOLPH@AOL.COM Subject: Re: LIS printing troubles OSHA form There is a different - perhaps better - way... Can you get the form - blank with nothing in it - as an MS word document? AND are you using an HP LaserJet Model III or later? If so, you can load this blank form directly into the printer one time and it will persist until you turn the printer off. Then feed just the data which will fill the form in to the lis file with an extra line of HP code to "Overlay" the form on the data before it ejects the page and goes on to the next record. Each data element must be positioned x to the left and y down (absolute) with each print command, but once you do it, it will stay done. If this has any appeal as an Idea, I can go into the details of how to convert the OSHA form as word document to HP LaserJet Stored template. and help you work out the HP Overlay Code string. All best, Norman Dolph From owner-sqr-users@list.iex.net Sat Jan 5 00:09:16 2002 Date: Fri, 4 Jan 2002 23:52:50 -0500 From: Derek Anderson Subject: SQR error (1303 & 1304) I am trying to run an SQR that functions fine in DB2, but when moved to a new SQL Server environment I receive the below listed error message. This is unique in that this is the only sqr that I am having problems with. The issue is further complicated because I can extract the SQL and run it in the SQL Server query tool, and it brings back results. So - nutshell - the SQL can execute in individual query tools (DB2 & SQL Server), runs in SQR in DB2, but when I attempt to run it on SQL Server platform I receive the following message: (SQR 1303) Error in SQL (perhaps missing &name after expression): SELECT SIDE1.EMPLID, SIDE1.EMPL_RCD, SIDE1.WORKGROUP, SIDE2.TRC, SIDE2.TL_QUANTITY, SIDE1.NAME, SIDE1.DESCR FROM (SELECT GRP.EMPLID,GRP.EMPL_RCD,JCD.DESCR,PER.NAME,ED.WORKGROUP FROM PS_TL_GROUP_DTL GRP, PS_JOB JOB, PS_JOBCODE_TBL JCD, PS_TL_EMPL_DATA ED, PS_PERSONAL_DATA PER WHERE GRP.EMPLID = JOB.EMPLID AND GRP.EMPL_RCD = JOB.EMPL_RCD AND JOB.EMPLID = ED.EMPLID AND JOB.EMPL_RCD = ED.EMPL_RCD AND GRP.EMPLID = PER.EMPLID AND JOB.SETID_JOBCODE = ? AND JOB.SETID_JOBCODE = JCD.SETID AND GRP.GROUP_ID = ? AND JOB.JOBCODE = JCD.JOBCODE AND JOB.EMPL_STATUS IN ('A', 'P', 'Q', 'U') AND JOB.EFFDT = (SELECT MAX(EFFDT) FROM PS_JOB WHERE EMPLID = JOB.EMPLID AND EMPL_RCD = JOB.EMPL_RCD AND EFFDT <= ?) AND JOB.EFFSEQ = (SELECT MAX(EFFSEQ) FROM PS_JOB WHERE EMPLID = JOB.EMPLID AND EMPL_RCD = JOB.EMPL_RCD AND JOB.SETID_JOBCODE = ? AND EFFDT = JOB.EFFDT) AND JCD.EFFDT = (SELECT MAX(EFFDT) FROM PS_JOBCODE_TBL WHERE JOBCODE = JCD.JOBCODE AND SETID = ? AND EFFDT <=?) AND ED.EFFDT = (SELECT MAX(EFFDT) FROM PS_TL_EMPL_DATA WHERE EMPLID = ED.EMPLID AND EMPL_RCD = ED.EMPL_RCD AND EFFDT <= ?) AND JCD.EFF_STATUS = 'A') AS SIDE1 LEFT OUTER JOIN (SELECT ERN.TRC,ERN.TL_QUANTITY,GRP2.EMPLID,GRP2.EMPL_RCD,GRP2.GROUP_ID FROM PS_TL_RPTD_ELPTIME ERN, PS_TL_GROUP_DTL GRP2 WHERE ERN.EMPLID = GRP2.EMPLID AND ERN.EMPL_RCD = GRP2.EMPL_RCD AND ERN.DUR = ? AND GRP2.EMPL_RCD = ERN.EMPL_RCD AND GRP2.GROUP_ID = ?) AS SIDE2 ON SIDE1.EMPLID = SIDE2.EMPLID AND SIDE1.EMPL_RCD = SIDE2.EMPL_RCD ORDER BY SIDE1.NAME (SQR 1304) Check SELECT columns, expressions and 'where' clause for syntax. SQR for PeopleSoft: Program Aborting. This is the SQL in the SQR: begin-SELECT on-error=ERROR-DISPLAY SIDE1.EMPLID, SIDE1.EMPL_RCD, SIDE1.WORKGROUP, SIDE1.DESCR, SIDE1.NAME, SIDE2.TRC, SIDE2.TL_QUANTITY FROM (SELECT GRP.EMPLID, GRP.EMPL_RCD, ED.WORKGROUP, JCD.DESCR, PER.NAME FROM PS_TL_GROUP_DTL GRP, PS_JOB JOB, PS_JOBCODE_TBL JCD, PS_TL_EMPL_DATA ED, PS_PERSONAL_DATA PER WHERE GRP.EMPLID = JOB.EMPLID AND GRP.EMPL_RCD = JOB.EMPL_RCD AND JOB.EMPLID = ED.EMPLID AND JOB.EMPL_RCD = ED.EMPL_RCD AND GRP.EMPLID = PER.EMPLID AND JOB.SETID_JOBCODE = $SETID AND JOB.SETID_JOBCODE = JCD.SETID AND GRP.GROUP_ID = $GroupID AND JOB.JOBCODE = JCD.JOBCODE AND JOB.EMPL_STATUS IN ('A', 'P', 'Q', 'U') AND JOB.EFFDT = (SELECT MAX(EFFDT) FROM PS_JOB WHERE EMPLID = JOB.EMPLID AND EMPL_RCD = JOB.EMPL_RCD AND EFFDT <= $ThruDate) AND JOB.EFFSEQ = (SELECT MAX(EFFSEQ) FROM PS_JOB WHERE EMPLID = JOB.EMPLID AND EMPL_RCD = JOB.EMPL_RCD AND JOB.SETID_JOBCODE = $SETID AND EFFDT = JOB.EFFDT) AND JCD.EFFDT = (SELECT MAX(EFFDT) FROM PS_JOBCODE_TBL WHERE JOBCODE = JCD.JOBCODE AND SETID = $SETID AND EFFDT <= $THRUDATE) AND ED.EFFDT = (SELECT MAX(EFFDT) FROM PS_TL_EMPL_DATA WHERE EMPLID = ED.EMPLID AND EMPL_RCD = ED.EMPL_RCD AND EFFDT <= $Thrudate) AND JCD.EFF_STATUS = 'A') AS SIDE1 LEFT OUTER JOIN (SELECT ERN.TRC, ERN.TL_QUANTITY FROM PS_TL_RPTD_ELPTIME ERN, PS_TL_GROUP_DTL GRP2 WHERE ERN.EMPLID = GRP2.EMPLID AND ERN.EMPL_RCD = GRP2.EMPL_RCD AND ERN.DUR = $ProcessDate AND GRP2.EMPL_RCD = ERN.EMPL_RCD AND GRP2.GROUP_ID = $GroupID) AS SIDE2 ON SIDE1.EMPLID = SIDE2.EMPLID AND SIDE1.EMPL_RCD = SIDE2.EMPL_RCD ORDER BY SIDE1.NAME end-select end-procedure _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. From owner-sqr-users@list.iex.net Sat Jan 5 01:05:09 2002 Date: Sat, 5 Jan 2002 00:48:07 -0500 From: Larry Roux Subject: Re: SQR error (1303 & 1304) Error messages in SQR are, many times, misleading. When the SQR compiler get confused it tends to spit out seemingly random error messages. I would check the indentation of any statements between the select fields and the from clause. Use SQR error messages more as a guide as to where the problem may reside rather than what the problem really is. Larry Roux Syracuse University >>> derekmanderson@HOTMAIL.COM 01/05/02 00:39 AM >>> I am trying to run an SQR that functions fine in DB2, but when moved to a new SQL Server environment I receive the below listed error message. This is unique in that this is the only sqr that I am having problems with. The issue is further complicated because I can extract the SQL and run it in the SQL Server query tool, and it brings back results. So - nutshell - the SQL can execute in individual query tools (DB2 & SQL Server), runs in SQR in DB2, but when I attempt to run it on SQL Server platform I receive the following message: (SQR 1303) Error in SQL (perhaps missing &name after expression): SELECT SIDE1.EMPLID, SIDE1.EMPL_RCD, SIDE1.WORKGROUP, SIDE2.TRC, SIDE2.TL_QUANTITY, SIDE1.NAME, SIDE1.DESCR FROM (SELECT GRP.EMPLID,GRP.EMPL_RCD,JCD.DESCR,PER.NAME,ED.WORKGROUP FROM PS_TL_GROUP_DTL GRP, PS_JOB JOB, PS_JOBCODE_TBL JCD, PS_TL_EMPL_DATA ED, PS_PERSONAL_DATA PER WHERE GRP.EMPLID = JOB.EMPLID AND GRP.EMPL_RCD = JOB.EMPL_RCD AND JOB.EMPLID = ED.EMPLID AND JOB.EMPL_RCD = ED.EMPL_RCD AND GRP.EMPLID = PER.EMPLID AND JOB.SETID_JOBCODE = ? AND JOB.SETID_JOBCODE = JCD.SETID AND GRP.GROUP_ID = ? AND JOB.JOBCODE = JCD.JOBCODE AND JOB.EMPL_STATUS IN ('A', 'P', 'Q', 'U') AND JOB.EFFDT = (SELECT MAX(EFFDT) FROM PS_JOB WHERE EMPLID = JOB.EMPLID AND EMPL_RCD = JOB.EMPL_RCD AND EFFDT <= ?) AND JOB.EFFSE = (SELECT MAX(EFFSEQ) FROM PS_JOB WHERE EMPLID = JOB.EMPLID AND EMPL_RCD = JOB.EMPL_RCD AND JOB.SETID_JOBCODE = ? AND EFFDT = JOB.EFFDT) AND JCD.EFFDT = (SELECT MAX(EFFDT) FROM PS_JOBCODE_TBL WHERE JOBCODE = JCD.JOBCODE AND SETID = ? AND EFFDT <=?) AND ED.EFFDT = (SELECT MAX(EFFDT) FROM PS_TL_EMPL_DATA WHERE EMPLID = ED.EMPLID AND EMPL_RCD = ED.EMPL_RCD AND EFFDT <= ?) AND JCD.EFF_STATUS = 'A') AS SIDE1 LEFT OUTER JOIN (SELECT ERN.TRC,ERN.TL_QUANTITY,GRP2.EMPLID,GRP2.EMPL_RCD,GRP2.GROUP_ID FROM PS_TL_RPTD_ELPTIME ERN, PS_TL_GROUP_DTL GRP2 WHERE ERN.EMPLID = GRP2.EMPLID AND ERN.EMPL_RCD = GRP2.EMPL_RCD AND ERN.DUR = ? AND GRP2.EMPL_RCD = ERN.EMPL_RCD AND GRP2.GROUP_ID = ?) AS SIDE2 ON SIDE1.EMPLID = SIDE2.EMPLID AND SIDE1.EMPL_RCD = SIDE2.EMPL_RCD ORDER BY SIDE1.NAME (SQR 1304) Check SELECT columns, expressions and 'where' clause for syntax. SQR for PeopleSoft: Program Aborting. This is the SQL in the SQR: begin-SELECT on-error=ERROR-DISPLAY SIDE1.EMPLID, SIDE1.EMPL_RCD, SIDE1.WORKGROUP, SIDE1.DESCR, SIDE1.NAME, SIDE2.TRC, SIDE2.TL_QUANTITY FROM (SELECT GRP.EMPLID, GRP.EMPL_RCD, ED.WORKGROUP, JCD.DESCR, PER.NAME FROM PS_TL_GROUP_DTL GRP, PS_JOB JOB, PS_JOBCODE_TBL JCD, PS_TL_EMPL_DATA ED, PS_PERSONAL_DATA PER WHERE GRP.EMPLID = JOB.EMPLID AND GRP.EMPL_RCD = JOB.EMPL_RCD AND JOB.EMPLID = ED.EMPLID AND JOB.EMPL_RCD = ED.EMPL_RCD AND GRP.EMPLID = PER.EMPLID AND JOB.SETID_JOBCODE = $SETID AND JOB.SETID_JOBCODE = JCD.SETID AND GRP.GROUP_ID = $GroupID AND JOB.JOBCODE = JCD.JOBCODE AND JOB.EMPL_STATUS IN ('A', 'P', 'Q', 'U') AND JOB.EFFDT = (SELECT MAX(EFFDT) FROM PS_JOB WHERE EMPLID = JOB.EMPLID AND EMPL_RCD = JOB.EMPL_RCD AND EFFDT <= $ThruDate) AND JOB.EFFSEQ = (SELECT MAX(EFFSEQ) FROM PS_JOB WHERE EMPLID = JOB.EMPLID AND EMPL_RCD = JOB.EMPL_RCD AND JOB.SETID_JOBCODE = $SETID AND EFFDT = JOB.EFFDT) AND JCD.EFFDT = (SELEC MAX(EFFDT) FROM PS_JOBCODE_TBL WHERE JOBCODE = JCD.JOBCODE AND SETID = $SETID AND EFFDT <= $THRUDATE) AND ED.EFFDT = (SELECT MAX(EFFDT) FROM PS_TL_EMPL_DATA WHERE EMPLID = ED.EMPLID AND EMPL_RCD = ED.EMPL_RCD AND EFFDT <= $Thrudate) AND JCD.EFF_STATUS = 'A') AS SIDE1 LEFT OUTER JOIN (SELECT ERN.TRC, ERN.TL_QUANTITY FROM PS_TL_RPTD_ELPTIME ERN, PS_TL_GROUP_DTL GRP2 WHERE ERN.EMPLID = GRP2.EMPLID AND ERN.EMPL_RCD = GRP2.EMPL_RCD AND ERN.DUR = $ProcessDate AND GRP2.EMPL_RCD = ERN.EMPL_RCD AND GRP2.GROUP_ID = $GroupID) AS SIDE2 ON SIDE1.EMPLID = SIDE2.EMPLID AND SIDE1.EMPL_RCD = SIDE2.EMPL_RCD ORDER BY SIDE1.NAME end-select end-procedure _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. From owner-sqr-users@list.iex.net Sat Jan 5 05:29:09 2002 Date: Sat, 5 Jan 2002 10:19:32 +0000 From: "Paul O'Riordan" Subject: Re: SQR error (1303 & 1304) Derek Anderson @list.iex.net> on 05/01/2002 04:52:50 Please respond to sqr-users@list.iex.net Sent by: "Discussion of SQR, Brio Software's database reporting language" To: SQR-USERS@list.iex.net cc: Subject: SQR error (1303 & 1304) I am trying to run an SQR that functions fine in DB2, but when moved to a new SQL Server environment I receive the below listed error message. This is unique in that this is the only sqr that I am having problems with. The issue is further complicated because I can extract the SQL and run it in the SQL Server query tool, and it brings back results. So - nutshell - the SQL can execute in individual query tools (DB2 & SQL Server), runs in SQR in DB2, but when I attempt to run it on SQL Server platform I receive the following message: (SQR 1303) Error in SQL (perhaps missing &name after expression): SELECT SIDE1.EMPLID, SIDE1.EMPL_RCD, SIDE1.WORKGROUP, SIDE2.TRC, SIDE2.TL_QUANTITY, SIDE1.NAME, SIDE1.DESCR FROM (SELECT GRP.EMPLID,GRP.EMPL_RCD,JCD.DESCR,PER.NAME,ED.WORKGROUP FROM PS_TL_GROUP_DTL GRP, PS_JOB JOB, PS_JOBCODE_TBL JCD, PS_TL_EMPL_DATA ED, PS_PERSONAL_DATA PER WHERE GRP.EMPLID = JOB.EMPLID AND GRP.EMPL_RCD = JOB.EMPL_RCD AND JOB.EMPLID = ED.EMPLID AND JOB.EMPL_RCD = ED.EMPL_RCD AND GRP.EMPLID = PER.EMPLID AND JOB.SETID_JOBCODE = ? AND JOB.SETID_JOBCODE = JCD.SETID AND GRP.GROUP_ID = ? AND JOB.JOBCODE = JCD.JOBCODE AND JOB.EMPL_STATUS IN ('A', 'P', 'Q', 'U') AND JOB.EFFDT = (SELECT MAX(EFFDT) FROM PS_JOB WHERE EMPLID = JOB.EMPLID AND EMPL_RCD = JOB.EMPL_RCD AND EFFDT <= ?) AND JOB.EFFSEQ = (SELECT MAX(EFFSEQ) FROM PS_JOB WHERE EMPLID = JOB.EMPLID AND EMPL_RCD = JOB.EMPL_RCD AND JOB.SETID_JOBCODE = ? AND EFFDT = JOB.EFFDT) AND JCD.EFFDT = (SELECT MAX(EFFDT) FROM PS_JOBCODE_TBL WHERE JOBCODE = JCD.JOBCODE AND SETID = ? AND EFFDT <=?) AND ED.EFFDT = (SELECT MAX(EFFDT) FROM PS_TL_EMPL_DATA WHERE EMPLID = ED.EMPLID AND EMPL_RCD = ED.EMPL_RCD AND EFFDT <= ?) AND JCD.EFF_STATUS = 'A') AS SIDE1 LEFT OUTER JOIN (SELECT ERN.TRC,ERN.TL_QUANTITY,GRP2.EMPLID,GRP2.EMPL_RCD,GRP2.GROUP_ID FROM PS_TL_RPTD_ELPTIME ERN, PS_TL_GROUP_DTL GRP2 WHERE ERN.EMPLID = GRP2.EMPLID AND ERN.EMPL_RCD = GRP2.EMPL_RCD AND ERN.DUR = ? AND GRP2.EMPL_RCD = ERN.EMPL_RCD AND GRP2.GROUP_ID = ?) AS SIDE2 ON SIDE1.EMPLID = SIDE2.EMPLID AND SIDE1.EMPL_RCD = SIDE2.EMPL_RCD ORDER BY SIDE1.NAME (SQR 1304) Check SELECT columns, expressions and 'where' clause for syntax. SQR for PeopleSoft: Program Aborting. This is the SQL in the SQR: begin-SELECT on-error=ERROR-DISPLAY SIDE1.EMPLID, SIDE1.EMPL_RCD, SIDE1.WORKGROUP, SIDE1.DESCR, SIDE1.NAME, SIDE2.TRC, SIDE2.TL_QUANTITY FROM (SELECT GRP.EMPLID, GRP.EMPL_RCD, ED.WORKGROUP, JCD.DESCR, PER.NAME FROM PS_TL_GROUP_DTL GRP, PS_JOB JOB, PS_JOBCODE_TBL JCD, PS_TL_EMPL_DATA ED, PS_PERSONAL_DATA PER WHERE GRP.EMPLID = JOB.EMPLID AND GRP.EMPL_RCD = JOB.EMPL_RCD AND JOB.EMPLID = ED.EMPLID AND JOB.EMPL_RCD = ED.EMPL_RCD AND GRP.EMPLID = PER.EMPLID AND JOB.SETID_JOBCODE = $SETID AND JOB.SETID_JOBCODE = JCD.SETID AND GRP.GROUP_ID = $GroupID AND JOB.JOBCODE = JCD.JOBCODE AND JOB.EMPL_STATUS IN ('A', 'P', 'Q', 'U') AND JOB.EFFDT = (SELECT MAX(EFFDT) FROM PS_JOB WHERE EMPLID = JOB.EMPLID AND EMPL_RCD = JOB.EMPL_RCD AND EFFDT <= $ThruDate) AND JOB.EFFSEQ = (SELECT MAX(EFFSEQ) FROM PS_JOB WHERE EMPLID = JOB.EMPLID AND EMPL_RCD = JOB.EMPL_RCD AND JOB.SETID_JOBCODE = $SETID AND EFFDT = JOB.EFFDT) AND JCD.EFFDT = (SELECT MAX(EFFDT) FROM PS_JOBCODE_TBL WHERE JOBCODE = JCD.JOBCODE AND SETID = $SETID AND EFFDT <= $THRUDATE) AND ED.EFFDT = (SELECT MAX(EFFDT) FROM PS_TL_EMPL_DATA WHERE EMPLID = ED.EMPLID AND EMPL_RCD = ED.EMPL_RCD AND EFFDT <= $Thrudate) AND JCD.EFF_STATUS = 'A') AS SIDE1 LEFT OUTER JOIN (SELECT ERN.TRC, ERN.TL_QUANTITY FROM PS_TL_RPTD_ELPTIME ERN, PS_TL_GROUP_DTL GRP2 WHERE ERN.EMPLID = GRP2.EMPLID AND ERN.EMPL_RCD = GRP2.EMPL_RCD AND ERN.DUR = $ProcessDate AND GRP2.EMPL_RCD = ERN.EMPL_RCD AND GRP2.GROUP_ID = $GroupID) AS SIDE2 ON SIDE1.EMPLID = SIDE2.EMPLID AND SIDE1.EMPL_RCD = SIDE2.EMPL_RCD ORDER BY SIDE1.NAME end-select end-procedure _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp . HI Derek, It might just be because you are using a comma after each field retrieved - SQR does not need this seperation of fields. From owner-sqr-users@list.iex.net Sat Jan 5 09:32:30 2002 Date: Sun, 6 Jan 2002 09:28:50 -0500 From: Stephen Keen Subject: Re: SQR error (1303 & 1304) hey Derick At first glance I do not see what table was aliased as SIDE1, or side2? -----Original Message----- From: Discussion of SQR, Brio Software's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Derek Anderson Sent: Friday, January 04, 2002 11:53 PM To: SQR-USERS@list.iex.net Subject: SQR error (1303 & 1304) I am trying to run an SQR that functions fine in DB2, but when moved to a new SQL Server environment I receive the below listed error message. This is unique in that this is the only sqr that I am having problems with. The issue is further complicated because I can extract the SQL and run it in the SQL Server query tool, and it brings back results. So - nutshell - the SQL can execute in individual query tools (DB2 & SQL Server), runs in SQR in DB2, but when I attempt to run it on SQL Server platform I receive the following message: (SQR 1303) Error in SQL (perhaps missing &name after expression): SELECT SIDE1.EMPLID, SIDE1.EMPL_RCD, SIDE1.WORKGROUP, SIDE2.TRC, SIDE2.TL_QUANTITY, SIDE1.NAME, SIDE1.DESCR FROM (SELECT GRP.EMPLID,GRP.EMPL_RCD,JCD.DESCR,PER.NAME,ED.WORKGROUP FROM PS_TL_GROUP_DTL GRP, PS_JOB JOB, PS_JOBCODE_TBL JCD, PS_TL_EMPL_DATA ED, PS_PERSONAL_DATA PER WHERE GRP.EMPLID = JOB.EMPLID AND GRP.EMPL_RCD = JOB.EMPL_RCD AND JOB.EMPLID = ED.EMPLID AND JOB.EMPL_RCD = ED.EMPL_RCD AND GRP.EMPLID = PER.EMPLID AND JOB.SETID_JOBCODE = ? AND JOB.SETID_JOBCODE = JCD.SETID AND GRP.GROUP_ID = ? AND JOB.JOBCODE = JCD.JOBCODE AND JOB.EMPL_STATUS IN ('A', 'P', 'Q', 'U') AND JOB.EFFDT = (SELECT MAX(EFFDT) FROM PS_JOB WHERE EMPLID = JOB.EMPLID AND EMPL_RCD = JOB.EMPL_RCD AND EFFDT <= ?) AND JOB.EFFSEQ = (SELECT MAX(EFFSEQ) FROM PS_JOB WHERE EMPLID = JOB.EMPLID AND EMPL_RCD = JOB.EMPL_RCD AND JOB.SETID_JOBCODE = ? AND EFFDT = JOB.EFFDT) AND JCD.EFFDT = (SELECT MAX(EFFDT) FROM PS_JOBCODE_TBL WHERE JOBCODE = JCD.JOBCODE AND SETID = ? AND EFFDT <=?) AND ED.EFFDT = (SELECT MAX(EFFDT) FROM PS_TL_EMPL_DATA WHERE EMPLID = ED.EMPLID AND EMPL_RCD = ED.EMPL_RCD AND EFFDT <= ?) AND JCD.EFF_STATUS = 'A') AS SIDE1 LEFT OUTER JOIN (SELECT ERN.TRC,ERN.TL_QUANTITY,GRP2.EMPLID,GRP2.EMPL_RCD,GRP2.GROUP_ID FROM PS_TL_RPTD_ELPTIME ERN, PS_TL_GROUP_DTL GRP2 WHERE ERN.EMPLID = GRP2.EMPLID AND ERN.EMPL_RCD = GRP2.EMPL_RCD AND ERN.DUR = ? AND GRP2.EMPL_RCD = ERN.EMPL_RCD AND GRP2.GROUP_ID = ?) AS SIDE2 ON SIDE1.EMPLID = SIDE2.EMPLID AND SIDE1.EMPL_RCD = SIDE2.EMPL_RCD ORDER BY SIDE1.NAME (SQR 1304) Check SELECT columns, expressions and 'where' clause for syntax. SQR for PeopleSoft: Program Aborting. This is the SQL in the SQR: begin-SELECT on-error=ERROR-DISPLAY SIDE1.EMPLID, SIDE1.EMPL_RCD, SIDE1.WORKGROUP, SIDE1.DESCR, SIDE1.NAME, SIDE2.TRC, SIDE2.TL_QUANTITY FROM (SELECT GRP.EMPLID, GRP.EMPL_RCD, ED.WORKGROUP, JCD.DESCR, PER.NAME FROM PS_TL_GROUP_DTL GRP, PS_JOB JOB, PS_JOBCODE_TBL JCD, PS_TL_EMPL_DATA ED, PS_PERSONAL_DATA PER WHERE GRP.EMPLID = JOB.EMPLID AND GRP.EMPL_RCD = JOB.EMPL_RCD AND JOB.EMPLID = ED.EMPLID AND JOB.EMPL_RCD = ED.EMPL_RCD AND GRP.EMPLID = PER.EMPLID AND JOB.SETID_JOBCODE = $SETID AND JOB.SETID_JOBCODE = JCD.SETID AND GRP.GROUP_ID = $GroupID AND JOB.JOBCODE = JCD.JOBCODE AND JOB.EMPL_STATUS IN ('A', 'P', 'Q', 'U') AND JOB.EFFDT = (SELECT MAX(EFFDT) FROM PS_JOB WHERE EMPLID = JOB.EMPLID AND EMPL_RCD = JOB.EMPL_RCD AND EFFDT <= $ThruDate) AND JOB.EFFSEQ = (SELECT MAX(EFFSEQ) FROM PS_JOB WHERE EMPLID = JOB.EMPLID AND EMPL_RCD = JOB.EMPL_RCD AND JOB.SETID_JOBCODE = $SETID AND EFFDT = JOB.EFFDT) AND JCD.EFFDT = (SELECT MAX(EFFDT) FROM PS_JOBCODE_TBL WHERE JOBCODE = JCD.JOBCODE AND SETID = $SETID AND EFFDT <= $THRUDATE) AND ED.EFFDT = (SELECT MAX(EFFDT) FROM PS_TL_EMPL_DATA WHERE EMPLID = ED.EMPLID AND EMPL_RCD = ED.EMPL_RCD AND EFFDT <= $Thrudate) AND JCD.EFF_STATUS = 'A') AS SIDE1 LEFT OUTER JOIN (SELECT ERN.TRC, ERN.TL_QUANTITY FROM PS_TL_RPTD_ELPTIME ERN, PS_TL_GROUP_DTL GRP2 WHERE ERN.EMPLID = GRP2.EMPLID AND ERN.EMPL_RCD = GRP2.EMPL_RCD AND ERN.DUR = $ProcessDate AND GRP2.EMPL_RCD = ERN.EMPL_RCD AND GRP2.GROUP_ID = $GroupID) AS SIDE2 ON SIDE1.EMPLID = SIDE2.EMPLID AND SIDE1.EMPL_RCD = SIDE2.EMPL_RCD ORDER BY SIDE1.NAME end-select end-procedure _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. From owner-sqr-users@list.iex.net Sat Jan 5 14:26:37 2002 Date: Sat, 5 Jan 2002 13:02:45 -0000 From: Andrew Rivers Subject: Re: SQR error (1303 & 1304) What are you trying to do? You are selecting various fields but you are not either printing them putting them into &variables. The compiler suggests that this may be the problem. See comment on your code. Andrew ----- Original Message ----- From: Larry Roux To: Sent: Saturday, January 05, 2002 5:48 AM Subject: Re: SQR error (1303 & 1304) > Error messages in SQR are, many times, misleading. When the SQR compiler get confused it tends to spit out seemingly random error messages. I would check the indentation of any statements between the select fields and the from clause. > > Use SQR error messages more as a guide as to where the problem may reside rather than what the problem really is. > > Larry Roux > Syracuse University > > > >>> derekmanderson@HOTMAIL.COM 01/05/02 00:39 AM >>> > I am trying to run an SQR that functions fine in DB2, but when moved to a > new SQL Server environment I receive the below listed error message. This > is unique in that this is the only sqr that I am having problems with. The > issue is further complicated because I can extract the SQL and run it in the > SQL Server query tool, and it brings back results. So - nutshell - the SQL > can execute in individual query tools (DB2 & SQL Server), runs in SQR in > DB2, but when I attempt to run it on SQL Server platform I receive the > following message: > > (SQR 1303) Error in SQL (perhaps missing &name after expression): > SELECT SIDE1.EMPLID, SIDE1.EMPL_RCD, SIDE1.WORKGROUP, SIDE2.TRC, > SIDE2.TL_QUANTITY, SIDE1.NAME, SIDE1.DESCR FROM (SELECT > GRP.EMPLID,GRP.EMPL_RCD,JCD.DESCR,PER.NAME,ED.WORKGROUP FROM PS_TL_GROUP_DTL > GRP, PS_JOB JOB, PS_JOBCODE_TBL JCD, PS_TL_EMPL_DATA ED, PS_PERSONAL_DATA > PER WHERE GRP.EMPLID = JOB.EMPLID AND GRP.EMPL_RCD = JOB.EMPL_RCD AND > JOB.EMPLID = ED.EMPLID AND JOB.EMPL_RCD = ED.EMPL_RCD AND GRP.EMPLID > = PER.EMPLID AND JOB.SETID_JOBCODE = ? AND JOB.SETID_JOBCODE = > JCD.SETID AND GRP.GROUP_ID = ? AND JOB.JOBCODE = JCD.JOBCODE AND > JOB.EMPL_STATUS IN ('A', 'P', 'Q', 'U') AND JOB.EFFDT = (SELECT MAX(EFFDT) > FROM PS_JOB WHERE EMPLID = JOB.EMPLID AND EMPL_RCD = JOB.EMPL_RCD AND EFFDT > <= ?) AND JOB.EFFSE = (SELECT MAX(EFFSEQ) FROM PS_JOB WHERE EMPLID = > JOB.EMPLID AND EMPL_RCD = JOB.EMPL_RCD AND JOB.SETID_JOBCODE = ? AND EFFDT = > JOB.EFFDT) AND JCD.EFFDT = (SELECT MAX(EFFDT) FROM PS_JOBCODE_TBL WHERE > JOBCODE = JCD.JOBCODE AND SETID = ? AND EFFDT <=?) AND ED.EFFDT = (SELECT > MAX(EFFDT) FROM PS_TL_EMPL_DATA WHERE EMPLID = ED.EMPLID AND EMPL_RCD = > ED.EMPL_RCD AND EFFDT <= ?) AND JCD.EFF_STATUS = 'A') AS SIDE1 LEFT OUTER > JOIN (SELECT ERN.TRC,ERN.TL_QUANTITY,GRP2.EMPLID,GRP2.EMPL_RCD,GRP2.GROUP_ID > FROM PS_TL_RPTD_ELPTIME ERN, PS_TL_GROUP_DTL GRP2 WHERE ERN.EMPLID = > GRP2.EMPLID AND ERN.EMPL_RCD = GRP2.EMPL_RCD AND ERN.DUR = ? AND > GRP2.EMPL_RCD = ERN.EMPL_RCD AND GRP2.GROUP_ID = ?) AS SIDE2 ON > SIDE1.EMPLID = SIDE2.EMPLID AND SIDE1.EMPL_RCD = SIDE2.EMPL_RCD ORDER BY > SIDE1.NAME > (SQR 1304) Check SELECT columns, expressions and 'where' clause for syntax. > > SQR for PeopleSoft: Program Aborting. > > > This is the SQL in the SQR: > > begin-SELECT on-error=ERROR-DISPLAY !(SQR 1303) Error in SQL (perhaps missing &name after expression): !so put in the &variables > SIDE1.EMPLID &sideEmlID !ignore , > SIDE1.EMPL_RCD &sideEmpl_rcd !ignore , > SIDE1.WORKGROUP &sideWorkGroup !ignore , > SIDE1.DESCR &sideDesc !ignore , > SIDE1.NAME &sideName !ignore , > SIDE2.TRC &sideTrc !ignore , > SIDE2.TL_QUANTITY &sideTl_quantity > FROM > (SELECT > GRP.EMPLID, > GRP.EMPL_RCD, > ED.WORKGROUP, > JCD.DESCR, > PER.NAME > FROM > PS_TL_GROUP_DTL GRP, > PS_JOB JOB, > PS_JOBCODE_TBL JCD, > PS_TL_EMPL_DATA ED, > PS_PERSONAL_DATA PER > WHERE GRP.EMPLID = JOB.EMPLID > AND GRP.EMPL_RCD = JOB.EMPL_RCD > AND JOB.EMPLID = ED.EMPLID > AND JOB.EMPL_RCD = ED.EMPL_RCD > AND GRP.EMPLID = PER.EMPLID > AND JOB.SETID_JOBCODE = $SETID > AND JOB.SETID_JOBCODE = JCD.SETID > AND GRP.GROUP_ID = $GroupID > AND JOB.JOBCODE = JCD.JOBCODE > AND JOB.EMPL_STATUS IN ('A', 'P', 'Q', 'U') > AND JOB.EFFDT = > (SELECT MAX(EFFDT) > FROM PS_JOB > WHERE EMPLID = JOB.EMPLID > AND EMPL_RCD = JOB.EMPL_RCD > AND EFFDT <= $ThruDate) > AND JOB.EFFSEQ = > (SELECT MAX(EFFSEQ) > FROM PS_JOB > WHERE EMPLID = JOB.EMPLID > AND EMPL_RCD = JOB.EMPL_RCD > AND JOB.SETID_JOBCODE = $SETID > AND EFFDT = JOB.EFFDT) > AND JCD.EFFDT = > (SELEC MAX(EFFDT) > FROM PS_JOBCODE_TBL > WHERE JOBCODE = JCD.JOBCODE > AND SETID = $SETID > AND EFFDT <= $THRUDATE) > AND ED.EFFDT = > (SELECT MAX(EFFDT) > FROM PS_TL_EMPL_DATA > WHERE EMPLID = ED.EMPLID > AND EMPL_RCD = ED.EMPL_RCD > AND EFFDT <= $Thrudate) > AND JCD.EFF_STATUS = 'A') AS SIDE1 > LEFT OUTER JOIN > (SELECT ERN.TRC, > ERN.TL_QUANTITY > FROM > PS_TL_RPTD_ELPTIME ERN, > PS_TL_GROUP_DTL GRP2 > WHERE ERN.EMPLID = GRP2.EMPLID > AND ERN.EMPL_RCD = GRP2.EMPL_RCD > AND ERN.DUR = $ProcessDate > AND GRP2.EMPL_RCD = ERN.EMPL_RCD > AND GRP2.GROUP_ID = $GroupID) AS SIDE2 > ON SIDE1.EMPLID = SIDE2.EMPLID > AND SIDE1.EMPL_RCD = SIDE2.EMPL_RCD > ORDER BY SIDE1.NAME > end-select > end-procedure > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. From owner-sqr-users@list.iex.net Sat Jan 5 15:52:19 2002 Date: Sat, 5 Jan 2002 12:34:27 -0800 From: Al H Subject: Re: SQR error (1303 & 1304) Start by looking at the dates in your $ variables. When moving between platforms, its quite often string dates that cause incompatibility issues. This is especially suspect since you are getting positive results in Query Analyzer, since you would have had to replace the $ variables with valid dates in order to execute the SQL there. My guess would be that you have a date variable in the installation settings that doesn't match the SETENV.SQC paramaters. At 11:52 PM 1/4/2002 -0500, you wrote: >I am trying to run an SQR that functions fine in DB2, but when moved to a >new SQL Server environment I receive the below listed error message. This >is unique in that this is the only sqr that I am having problems with. The >issue is further complicated because I can extract the SQL and run it in the >SQL Server query tool, and it brings back results. So - nutshell - the SQL >can execute in individual query tools (DB2 & SQL Server), runs in SQR in >DB2, but when I attempt to run it on SQL Server platform I receive the >following message: > >(SQR 1303) Error in SQL (perhaps missing &name after expression): >SELECT SIDE1.EMPLID, SIDE1.EMPL_RCD, SIDE1.WORKGROUP, SIDE2.TRC, >SIDE2.TL_QUANTITY, SIDE1.NAME, SIDE1.DESCR FROM (SELECT >GRP.EMPLID,GRP.EMPL_RCD,JCD.DESCR,PER.NAME,ED.WORKGROUP FROM PS_TL_GROUP_DTL >GRP, PS_JOB JOB, PS_JOBCODE_TBL JCD, PS_TL_EMPL_DATA ED, PS_PERSONAL_DATA >PER WHERE GRP.EMPLID = JOB.EMPLID AND GRP.EMPL_RCD = JOB.EMPL_RCD AND >JOB.EMPLID = ED.EMPLID AND JOB.EMPL_RCD = ED.EMPL_RCD AND GRP.EMPLID > = PER.EMPLID AND JOB.SETID_JOBCODE = ? AND JOB.SETID_JOBCODE = >JCD.SETID AND GRP.GROUP_ID = ? AND JOB.JOBCODE = JCD.JOBCODE AND >JOB.EMPL_STATUS IN ('A', 'P', 'Q', 'U') AND JOB.EFFDT = (SELECT MAX(EFFDT) >FROM PS_JOB WHERE EMPLID = JOB.EMPLID AND EMPL_RCD = JOB.EMPL_RCD AND EFFDT ><= ?) AND JOB.EFFSEQ = (SELECT MAX(EFFSEQ) FROM PS_JOB WHERE EMPLID = >JOB.EMPLID AND EMPL_RCD = JOB.EMPL_RCD AND JOB.SETID_JOBCODE = ? AND EFFDT = >JOB.EFFDT) AND JCD.EFFDT = (SELECT MAX(EFFDT) FROM PS_JOBCODE_TBL WHERE >JOBCODE = JCD.JOBCODE AND SETID = ? AND EFFDT <=?) AND ED.EFFDT = (SELECT >MAX(EFFDT) FROM PS_TL_EMPL_DATA WHERE EMPLID = ED.EMPLID AND EMPL_RCD = >ED.EMPL_RCD AND EFFDT <= ?) AND JCD.EFF_STATUS = 'A') AS SIDE1 LEFT OUTER >JOIN (SELECT ERN.TRC,ERN.TL_QUANTITY,GRP2.EMPLID,GRP2.EMPL_RCD,GRP2.GROUP_ID >FROM PS_TL_RPTD_ELPTIME ERN, PS_TL_GROUP_DTL GRP2 WHERE ERN.EMPLID = >GRP2.EMPLID AND ERN.EMPL_RCD = GRP2.EMPL_RCD AND ERN.DUR = ? AND >GRP2.EMPL_RCD = ERN.EMPL_RCD AND GRP2.GROUP_ID = ?) AS SIDE2 ON >SIDE1.EMPLID = SIDE2.EMPLID AND SIDE1.EMPL_RCD = SIDE2.EMPL_RCD ORDER BY >SIDE1.NAME >(SQR 1304) Check SELECT columns, expressions and 'where' clause for syntax. > >SQR for PeopleSoft: Program Aborting. > > >This is the SQL in the SQR: > >begin-SELECT on-error=ERROR-DISPLAY >SIDE1.EMPLID, >SIDE1.EMPL_RCD, >SIDE1.WORKGROUP, >SIDE1.DESCR, >SIDE1.NAME, >SIDE2.TRC, >SIDE2.TL_QUANTITY >FROM >(SELECT >GRP.EMPLID, >GRP.EMPL_RCD, >ED.WORKGROUP, >JCD.DESCR, >PER.NAME >FROM >PS_TL_GROUP_DTL GRP, >PS_JOB JOB, >PS_JOBCODE_TBL JCD, >PS_TL_EMPL_DATA ED, >PS_PERSONAL_DATA PER >WHERE GRP.EMPLID = JOB.EMPLID >AND GRP.EMPL_RCD = JOB.EMPL_RCD >AND JOB.EMPLID = ED.EMPLID >AND JOB.EMPL_RCD = ED.EMPL_RCD >AND GRP.EMPLID = PER.EMPLID >AND JOB.SETID_JOBCODE = $SETID >AND JOB.SETID_JOBCODE = JCD.SETID >AND GRP.GROUP_ID = $GroupID >AND JOB.JOBCODE = JCD.JOBCODE >AND JOB.EMPL_STATUS IN ('A', 'P', 'Q', 'U') >AND JOB.EFFDT = > (SELECT MAX(EFFDT) > FROM PS_JOB > WHERE EMPLID = JOB.EMPLID > AND EMPL_RCD = JOB.EMPL_RCD >AND EFFDT <= $ThruDate) >AND JOB.EFFSEQ = > (SELECT MAX(EFFSEQ) > FROM PS_JOB > WHERE EMPLID = JOB.EMPLID > AND EMPL_RCD = JOB.EMPL_RCD > AND JOB.SETID_JOBCODE = $SETID > AND EFFDT = JOB.EFFDT) >AND JCD.EFFDT = > (SELECT MAX(EFFDT) > FROM PS_JOBCODE_TBL > WHERE JOBCODE = JCD.JOBCODE > AND SETID = $SETID > AND EFFDT <= $THRUDATE) >AND ED.EFFDT = > (SELECT MAX(EFFDT) > FROM PS_TL_EMPL_DATA > WHERE EMPLID = ED.EMPLID > AND EMPL_RCD = ED.EMPL_RCD > AND EFFDT <= $Thrudate) >AND JCD.EFF_STATUS = 'A') AS SIDE1 >LEFT OUTER JOIN >(SELECT ERN.TRC, >ERN.TL_QUANTITY >FROM >PS_TL_RPTD_ELPTIME ERN, >PS_TL_GROUP_DTL GRP2 >WHERE ERN.EMPLID = GRP2.EMPLID > AND ERN.EMPL_RCD = GRP2.EMPL_RCD > AND ERN.DUR = $ProcessDate > AND GRP2.EMPL_RCD = ERN.EMPL_RCD > AND GRP2.GROUP_ID = $GroupID) AS SIDE2 >ON SIDE1.EMPLID = SIDE2.EMPLID >AND SIDE1.EMPL_RCD = SIDE2.EMPL_RCD >ORDER BY SIDE1.NAME >end-select >end-procedure > >_________________________________________________________________ >Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. From owner-sqr-users@list.iex.net Sun Jan 6 19:25:22 2002 Date: Sun, 6 Jan 2002 19:19:08 -0500 From: Ray Ontko Subject: Re: sqr3 output file format in html Nags, We produce lots of HTML directly from our SQR programs using OPEN ... RECORD=xxx:VARY and WRITE. You just open the html file as a variable length record file, and then write the html to the file. This comes out in addition to the .lis file which may be generated by the report. Ray > Hi Ray , > > > We are working with SQR3.One of our requirements is that we have to produce HTML > outputs rather than .lis (text ) files .We figured out a way in > embedding html tags with the .sqr files and generated the .lis files along with > the HTML tags.Then we Processed this lis file using java and got the html > file .Its serving the Purpose , but in the event of huge records , this is > costly . > Question : > Is there any way with sqr3 , by which i can get the html file format > directly?Kindly suggest me , as this is getting costly for us , to embed the tags > all the time > .A short cut could be writing a function with UCALL.c or ufunc.c which would > save the file . > Please suggest me . > > Bottom line : we have only sqr3 to accomplish this task .Kindly treat this as > Urgent. > > Thanks > Nags > ---------------------------------------------------------------------- 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/ From owner-sqr-users@list.iex.net Sun Jan 6 23:55:16 2002 Date: Mon, 7 Jan 2002 15:39:57 +1100 From: Ian Mills Subject: Re: Adding Style Sheets to an SQR Report Solution Found Instead if using the built in procedure html_set_head_tags($tags) , I printed the Style Sheet information directly to the HTML using print $temp () code-printer=ht This now works properly on both mty PC and the the Brio Portal Thanks for your help Regards, Ian Mills >>> jarrodb@NETSPACE.NET.AU 04/01/2002 10:30:41 pm >>> Does it run ok outside of the portal? If so check out what the html_set_head_tags actually outputs with regards to your temp string. You will probably find that your temp string is in the midst of the title that the html_set_head_tags is doing. ie you will probably end up with something like this. <STYLE type="text/css"><!!-- .bigHeading {....</STYLE> I remember also having problems with the squiggle brackets so I did this Let $LeftSquiggle = Chr(123) Let $RightSquiggle = Chr(125) if you have a look at the html.inc file you will find. begin-procedure html_set_head_tags($tags) let $outtag = '%%HEADTAGS=' || $tags print $outtag () code-printer=ht end-procedure ! html_set_head_tags I still haven't found out where or how the %%HEADTAGS is set. If you find out please let me know! This is what I ended up doing. Let $Title = $ReportID || ' - ' || $ReportName Let $CSSLink = 'rel="stylesheet" type="text/css" href="MyCSS.css"' Let $ExtraStyleTags = 'p.page' || chr(9) || Chr(123) || 'page-break-after:always' || Chr(125) Do html_set_head_tags($Title) Do html_CSS_link($CSSLink) Do html_extraStyle($ExtraStyleTags) Do html_extraStyle_end begin-procedure html_extraStyle($tags) if $tags = '' print '' () code-printer=ht end-procedure begin-procedure html_CSS_link($tags) if $tags = '' print '' () code-printer=ht else let $outtag = '' print $outtag () code-printer=ht end-if end-procedure I hope this helps. Try cutting and pasting but I can't guarentee anything as it was copied from an old version of a program I had lying around. Always test and retest it outside the portal first. We ended up simply writing programs to generate the html files outside of the portal and them load them using the OneAPI. For us it was a better option because we had a head of style sheet stuff in there, plus the programs were already written in ASP so conversion was a piece of cake. Also our ETL and other processing initiates the programs and we felt that we would have more control of when the reports are available. ie After we had checked them! Goodluck! -----Original Message----- From: Discussion of SQR, Brio Software's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Ian Mills Sent: Friday, 4 January 2002 4:16 PM To: SQR-USERS@list.iex.net Subject: Adding Style Sheets to an SQR Report Can anyone help? I have an SQR report that is run on Brio Portal that produces an HTML output. I tried to add the following code to my report so that I can use style sheets to set my fonts for the HTML output. When I add this code, the report will no longer work when I try to run it on the Portal. When I comment it out, the report runs fine. Is there something obvious here to anyone that I am doing wrong? begin-program do html_on let $temp1 = '}' ! let $temp = 'LP_044 - Reference Report' let $temp = '' do html_set_head_tags($temp) ...etc Regards, Ian Mills From owner-sqr-users@list.iex.net Mon Jan 7 11:37:51 2002 Date: Mon, 7 Jan 2002 11:29:52 -0500 From: "Dorman, Tony" Subject: Random text generation Hello all, I have a need to generate a random emplid to be used in a select statement. The emplid is a mixture of text and numeric characters (such as "B2D7XG"). If I can generate the first three characters, I'll be able to use the 'LIKE' operand and get a decent sample. Has anyone developed code for a situation such as this? Any advice will be appreciated. Thanks! - Tony From owner-sqr-users@list.iex.net Mon Jan 7 11:53:20 2002 Date: Mon, 7 Jan 2002 11:47:28 -0500 From: George Jansen Subject: Re: Random text generation If 1. Your requirement is to get a sample of the records 2. You are running on Oracle 8i or 9i You can use the SAMPLE clause, e.g SELECT emplid, name FROM ps_personal_data SAMPLE (.5) would get ½ of one percent of the records. There are restrictions (no joins), but they can be worked around. From owner-sqr-users@list.iex.net Mon Jan 7 12:10:48 2002 Date: Mon, 7 Jan 2002 12:04:30 -0500 From: "Grewal, Navi A." Subject: Long raw datatype Hi All, HAs anyone used sqr to move pictures( Long Raw datatype) from database instance to another using DBLink in an sqr. If yes can you please send me an example. Thanks Navi ************************************************************************ This e-mail and any of its attachments may contain Exelon Corporation proprietary information, which is privileged, confidential, or subject to copyright belonging to the Exelon Corporation family of Companies. This e-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution, copying, or action taken in relation to the contents of and attachments to this e-mail is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify the sender immediately and permanently delete the original and any copy of this e-mail and any printout. Thank You. ************************************************************************ From owner-sqr-users@list.iex.net Mon Jan 7 12:34:35 2002 Date: Mon, 7 Jan 2002 12:32:53 -0500 From: "Lauri H. Macha" Subject: Controlling chart colors Someone from this list sent me an e-mail, which I inadvertently deleted. I hope he's reading this, because he asked if I had ever resolved a problem I had posted to the group over a year ago. My post was about controlling which colors print when using the PRINT-CHART command. The colors default to RED, GREEN, YELLOW, BLUE, FUCHSIA, etc. At the time, someone replied that Brio.Report 6.0 allows you to do so with the CREATE-COLOR-PALETTE command; however I was using SQR Workbench v4.1.1. Although it may not have been the most graceful solution, I got around the problem by populating an array data set with a zero whenever I wanted a color to be "skipped." Regards, Lauri Macha From owner-sqr-users@list.iex.net Mon Jan 7 12:54:35 2002 Date: Mon, 7 Jan 2002 11:42:36 -0600 From: "Hins, Thomas D." Subject: Re: Random text generation If a sample is what you are seeking you can also do a loops = 50 or 100 and you will return that many records. -----Original Message----- From: George Jansen [mailto:GJANSEN@AFLCIO.ORG] Sent: Monday, January 07, 2002 10:47 AM To: SQR-USERS@list.iex.net Subject: Re: Random text generation If 1. Your requirement is to get a sample of the records 2. You are running on Oracle 8i or 9i You can use the SAMPLE clause, e.g SELECT emplid, name FROM ps_personal_data SAMPLE (.5) would get ½ of one percent of the records. There are restrictions (no joins), but they can be worked around. From owner-sqr-users@list.iex.net Mon Jan 7 16:05:46 2002 Date: Mon, 7 Jan 2002 13:49:49 -0700 From: Rob Talbert Subject: Overriding default end-of-line character for UNIX or WinNT SQR Version: 3.0.18 (moving to 4.3.4) DB: Oracle 8i OS: UNIX Solaris 8 and Windows NT App: PeopleTools 6.1 Situation: I create an extract file from PeopleSoft (using SQR "Open $File as 1 For-Writing" and "Write 1 from") running on an Oracle DB. The SQR program can be run from a UNIX server or on a Windows client (and the resulting files are deposited in a UNIX or Windows directory, respectively). When run on the UNIX server, the resulting extract file has a one-byte end-of-file marker which is HEX '0A' (line feed) and when run on Windows, each line is terminated with two bytes, HEX '0A' and '0D' (line feed/carriage return). I believe this is all normal. I would like my extract file to always have the same line termination character, no matter if I run it from UNIX or Windows. Is there a way over-ride either OS file I/O default from SQR to force either '0A' or '0A 0D' from either UNIX or Windows? Thanks, Rob Talbert Washington, DC From owner-sqr-users@list.iex.net Mon Jan 7 16:09:36 2002 Date: Mon, 7 Jan 2002 14:53:25 -0600 From: Eric Dimick Eastman Subject: Re: Random text generation This is a multi-part message in MIME format. --------------060208060702080807040206 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Tony, I attached a "poor man's random number generator" I wrote in SQR. If you seed it with the same number, you can reproduce sets of "random" numbers. If you use a different seed each time (say the current date-time) it produces pretty good random numbers. You could use this to get your string: #include 'random.sqh' begin-program do start_random(5) !this is the seed move 0 to #count while #count < 3 do get_random(1, 36, #index) let $char = substr('0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ', #index, 1) concat $char with $random_string add 1 to #count end-while end-program Hope this helps, Eric Dorman, Tony wrote: >Hello all, > >I have a need to generate a random emplid to be used in a select statement. The emplid is a mixture of text and numeric characters (such as "B2D7XG"). If I can generate the first three characters, I'll be able to use the 'LIKE' operand and get a decent sample. Has anyone developed code for a situation such as this? Any advice will be appreciated. Thanks! > > - Tony > > --------------060208060702080807040206 Content-Type: text/plain; name="random.sqh" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="random.sqh" #DEFINE RANDOM_NUM1 112792783 #DEFINE RANDOM_NUM2 9893 begin-procedure start_random(#random_seed) let #_random_number = mod(#random_seed, {RANDOM_NUM2}) / {RANDOM_NUM2} end-procedure start_random begin-procedure get_random(#low, #high, :#return) add .001 to #_random_number let #temp = #_random_number * {RANDOM_NUM1} let #_random_number = mod(#temp, {RANDOM_NUM2}) / {RANDOM_NUM2} let #range = #high - #low let #return = #_random_number * #range + #low let #return = round(#return, 0) end-procedure get_random --------------060208060702080807040206-- From owner-sqr-users@list.iex.net Mon Jan 7 17:02:57 2002 Date: Mon, 7 Jan 2002 15:51:54 -0600 From: "Hins, Thomas D." Subject: Re: Overriding default end-of-line character for UNIX or WinNT Rod, I believe I was experiencing the same problem you are talking about. What I did was assign a value to a variable such as let $CarraigeReturn = chr(13) || chr(10) then that is the last in my write data. It seems to do the same no matter if I run the sqr in SQRW in Windows or if I run the SQR on the Unix server. I am pretty sure something of this nature will work for you at least it does for me. Tom Hins Information Technology - Application Solutions University of Oklahoma Health Sciences Center P.O. Box 26901 Oklahoma City, OK 73190 Phone:(405) 271-2262 Ext. 50213 Fax: (405) 271-2352 -----Original Message----- From: Rob Talbert [mailto:rtalbert@KNOASIS.COM] Sent: Monday, January 07, 2002 2:50 PM To: SQR-USERS@list.iex.net Subject: Overriding default end-of-line character for UNIX or WinNT SQR Version: 3.0.18 (moving to 4.3.4) DB: Oracle 8i OS: UNIX Solaris 8 and Windows NT App: PeopleTools 6.1 Situation: I create an extract file from PeopleSoft (using SQR "Open $File as 1 For-Writing" and "Write 1 from") running on an Oracle DB. The SQR program can be run from a UNIX server or on a Windows client (and the resulting files are deposited in a UNIX or Windows directory, respectively). When run on the UNIX server, the resulting extract file has a one-byte end-of-file marker which is HEX '0A' (line feed) and when run on Windows, each line is terminated with two bytes, HEX '0A' and '0D' (line feed/carriage return). I believe this is all normal. I would like my extract file to always have the same line termination character, no matter if I run it from UNIX or Windows. Is there a way over-ride either OS file I/O default from SQR to force either '0A' or '0A 0D' from either UNIX or Windows? Thanks, Rob Talbert Washington, DC From owner-sqr-users@list.iex.net Mon Jan 7 17:40:59 2002 Date: Mon, 7 Jan 2002 16:34:17 -0600 From: "Aguirre, Jose" Subject: PeopleCode..... Hi all, I'm trying execute a record field PeopleCode Event from another record field PeopleCode Event, if anyone has done that, please send me the syntax. Thanks in advance, José Aguirre From owner-sqr-users@list.iex.net Mon Jan 7 18:00:37 2002 Date: Tue, 8 Jan 2002 09:41:14 +1100 From: Christian Scheiber I'm trying to wrap text within a given space e.g 60 char long. However what I don't want to do is cut a word off in the middle. Is there any code around that can check the beginning/end of a word and wrap it accordingly. Any help much appreciated Christian Scheiber Analyst Programmer - Financial Systems Level 6, Clarke Street Southbank 3006 Victoria Australia Phone: 61-3 9292 4174, Fax: 61-3 9292 4141 email: - christians@crownltd.com.au *This e-mail and any attachments are intended only for the party to whom they are specifically addressed and are to be used only for their intended purpose. These documents may contain privileged and/or confidential information. If you have received this transmission in error please notify the sender immediately and destroy all copies in any form. Thank you. ====================== Important information: ====================== Before opening or using any attachments, you should check them for viruses and defects. If you are not an authorised recipient of this e-mail, please contact Crown Limited immediately by return e-mail or by telephone on (61-3) 9292 8888. In this case, you should not read, print, re-transmit, store, disclose, use or act in reliance on this e-mail including any attachments, and should destroy all copies of them. This e-mail and any attachments are confidential, may be privileged and may contain copyright material of Crown Limited or third parties. Crown is not responsible for any changes made by any third party (including the addressee) to this e-mail, including any attachments. This notice should not be removed. =================================== From owner-sqr-users@list.iex.net Mon Jan 7 18:36:39 2002 Date: Mon, 7 Jan 2002 16:19:46 -0700 From: "Eaton, Robert" Subject: Cursor re-opens after first select oracle 8.0.5 Unix Solaris SQR 4.3.4 NT 4.0 sorry about the many show statements. In main select I am building a dynamic CREATE INDEX statement for the tables selected in the main SQL. I do Create-Index to execute the begin-sql for the create. The first index is created but when I return to the main select, it seems that the cursor is reopened and I retrieve the first row (index name) again. This causes an error when trying to create the same index again. When I comment out the begin-sql statement, the main select fetches each row properly. Has anyone seen this? Thanks, Robert. !********************************************************************* begin-procedure main-processing !********************************************************************* let $idxname = '*' begin-select A.OWNERID, B.TARGET_TBLNAME_LM, C.INDEX_NAME_LM, C.DDLSPACENAME, C.IDX_UNIQUE_IND_LM, C.PARALLEL_DEGREE_LM C.PERCENT_FREE_LM, C.INIT_TRANS_LM show 'BEFORE IF $idxname=' $idxname show 'BEFORE IF INDEX_NAME_LM=' &C.INDEX_NAME_LM if $idxname <> &A.OWNERID || '.' || &C.INDEX_NAME_LM show ' ' show 'C.INDEX_NAME_LM=' &C.INDEX_NAME_LM let $idxname = '''' || &C.INDEX_NAME_LM || '''' show '$idxname=' $idxname do Build-FieldList show '$fieldlist=' $fieldlist let $idxname = &A.OWNERID || '.' || &C.INDEX_NAME_LM show '$idxname=' $idxname let $tblname = &A.OWNERID || '.SNAP$_' || &B.TARGET_TBLNAME_LM show '$tblname=' $tblname if &C.IDX_UNIQUE_IND_LM = 'Y' let $uniqclause = 'UNIQUE ' else let $uniqclause = '' end-if let $storageclause = 'NOLOGGING PARALLEL ' || TO_CHAR(&C.PARALLEL_DEGREE_LM) let $storageclause = $storageclause || ' PCTFREE ' || TO_CHAR(&C.PERCENT_FREE_LM) let $storageclause = $storageclause || ' INITRANS ' || TO_CHAR(&C.INIT_TRANS_LM) let $tblspace = 'TABLESPACE ' || &C.DDLSPACENAME do Create-Index end-if FROM PS_DATAMART_SRC_LM A, PS_DATAMART_TBL_LM B, PS_DM_INDEXES_LM C WHERE A.SOURCE_SYSTEM_LM = B.SOURCE_SYSTEM_LM AND B.RECNAME = C.RECNAME AND [$where_clause] ORDER BY C.RECNAME, C.INDEX_NAME_LM end-select end-procedure main-processing !********************************************************************* begin-procedure Build-FieldList !********************************************************************* let $fieldlist = '' begin-select D.FIELDNAME let $fieldlist = $fieldlist || &D.FIELDNAME || ',' FROM PS_DM_INDX_COLS_LM D WHERE D.INDEX_NAME_LM = [$idxname] ORDER BY D.FIELDNUM end-select let $fieldlist = SUBSTR($fieldlist,1,LENGTH($fieldlist)-1) end-procedure Build-FieldList !********************************************************************* begin-procedure Create-Index !********************************************************************* do Get-Current-DateTime show 'Creating Index ' $idxname ' on Table ' $tblname ' Starting at ' $SysDateTime begin-sql CREATE [$uniqclause] INDEX [$idxname] on [$tblname] ([$fieldlist]) [$storageclause] [$tblspace] ; ALTER INDEX [$idxname] PARALLEL 1 ; end-sql show 'Finished with Index ' $idxname ' on Table ' $tblname ' Starting at ' $SysDateTime end-procedure Create-Index From owner-sqr-users@list.iex.net Mon Jan 7 19:06:53 2002 Date: Tue, 8 Jan 2002 10:49:22 +1100 From: Ian Mills Christian, The WRAP option on PRINT shold work fine without cutting of words in the middle. I use print $first_line (+1,1) wrap 60 3 Hope it helps, Regards, Ian Mills >>> christians@CROWNLTD.COM.AU 08/01/2002 9:41:14 am >>> I'm trying to wrap text within a given space e.g 60 char long. However what I don't want to do is cut a word off in the middle. Is there any code around that can check the beginning/end of a word and wrap it accordingly. Any help much appreciated Christian Scheiber Analyst Programmer - Financial Systems Level 6, Clarke Street Southbank 3006 Victoria Australia Phone: 61-3 9292 4174, Fax: 61-3 9292 4141 email: - christians@crownltd.com.au *This e-mail and any attachments are intended only for the party to whom they are specifically addressed and are to be used only for their intended purpose. These documents may contain privileged and/or confidential information. If you have received this transmission in error please notify the sender immediately and destroy all copies in any form. Thank you. ====================== Important information: ====================== Before opening or using any attachments, you should check them for viruses and defects. If you are not an authorised recipient of this e-mail, please contact Crown Limited immediately by return e-mail or by telephone on (61-3) 9292 8888. In this case, you should not read, print, re-transmit, store, disclose, use or act in reliance on this e-mail including any attachments, and should destroy all copies of them. This e-mail and any attachments are confidential, may be privileged and may contain copyright material of Crown Limited or third parties. Crown is not responsible for any changes made by any third party (including the addressee) to this e-mail, including any attachments. This notice should not be removed. =================================== From owner-sqr-users@list.iex.net Tue Jan 8 05:03:13 2002 Date: Tue, 8 Jan 2002 09:31:17 -0000 From: Orlaith Currid Christian, The wrap function could be what you're looking for. Example: ($comments is a line/sentence of text) print $comments (+1,10,30) wrap 60 6 This will print the line $comments at the specified position, for 60 characters, printing a maximum of 6 lines. Each additional line required as a result of the wrap will start at position 10 as specified. You can also use keep-top ( EG print $comments (+1,10,30) wrap 60 6 keep-top) which will retain the current line position in case you need to print additional details. Hope this helps, Orlaith Currid > -----Original Message----- > From: Christian Scheiber [SMTP:christians@CROWNLTD.COM.AU] > Sent: 07 January 2002 22:41 > To: SQR-USERS@list.iex.net > Subject: > > I'm trying to wrap text within a given space e.g 60 char long. However > what > I don't want to do is cut a word off in the middle. Is there any code > around > that can check the beginning/end of a word and wrap it accordingly. > > Any help much appreciated > > > Christian Scheiber > Analyst Programmer - Financial Systems > > Level 6, Clarke Street > Southbank 3006 > Victoria Australia > Phone: 61-3 9292 4174, Fax: 61-3 9292 4141 > email: - christians@crownltd.com.au > > *This e-mail and any attachments are intended only for the party to whom > they are specifically addressed and are to be used only for their intended > purpose. These documents may contain privileged and/or confidential > information. If you have received this transmission in error please notify > the sender immediately and destroy all copies in any form. Thank you. > > > > > > > ====================== > Important information: > ====================== > Before opening or using any attachments, you should check them for viruses > and defects. > If you are not an authorised recipient of this e-mail, please contact > Crown > Limited immediately by return e-mail or by telephone on (61-3) 9292 8888. > In > this case, you should not read, print, re-transmit, store, disclose, use > or > act in reliance on this e-mail including any attachments, and should > destroy > all copies of them. > This e-mail and any attachments are confidential, may be privileged and > may > contain copyright material of Crown Limited or third parties. > Crown is not responsible for any changes made by any third party > (including > the addressee) to this e-mail, including any attachments. > This notice should not be removed. > =================================== > > _____________________________________________________________________ > This message has been checked for all known viruses by UUNET delivered > through the MessageLabs Virus Control Centre. For further information > visit > http://www.uk.uu.net/products/security/virus/ _____________________________________________________________________ This message has been checked for all known viruses by UUNET delivered through the MessageLabs Virus Control Centre. For further information visit http://www.uk.uu.net/products/security/virus/ From owner-sqr-users@list.iex.net Tue Jan 8 06:27:25 2002 Date: Tue, 8 Jan 2002 07:08:48 -0400 From: Peter Clark Subject: Re: PeopleCode..... Although I am sure that there might be some PeopleSoft/SQR users in this group that may be able to answer your question, you likely will reach a larger base of PeopleCode gurus in the PeopleSoft mail list at http://groups.yahoo.com/group/peoplesoft-fans/ >>> "Aguirre, Jose" 2002/01/07 6:34:17 pm >>> Hi all, I'm trying execute a record field PeopleCode Event from another record field PeopleCode Event, if anyone has done that, please send me the syntax. Thanks in advance, José Aguirre From owner-sqr-users@list.iex.net Tue Jan 8 09:25:18 2002 Date: Tue, 8 Jan 2002 09:18:12 -0500 From: Rick_Creel@AONCONS.COM Subject: Re: PeopleCode..... --0__=dUHGzWHIrw09JTZKj2LtzOjrFAA3YP1wYsN3SWQnfqL9WSB6zbb6Xk13 Content-type: text/plain; charset=us-ascii Content-Disposition: inline The syntax for doing what you want is: First, the function you want to call must already exist on the other record. On the field event of the record that needs to execute the other record's PeopleCode, this is what you do: (1) you declare the function (2) you call the function with any optional parameters. To declare the function: Declare Function {function name} PeopleCode {record}.{field} {field event}; To call the function: function_name(parameters); In my example below, the FUNCTION NAME is: EDIT_RUNCNTL_ID the RECORD name where the actual people code exists is called: FUNCLIB_PC the FIELD name that has the people code associated with it is called: RUN_CNTL_ID the EVENT that triggers the execution of the people code is called: FieldFormula Putting all this together, the statement to call this code would be: Declare Function edit_runcntl_id PeopleCode FUNCLIB_PC.RUN_CNTL_ID FieldFormula; edit_runcntl_id(RUN_CNTL_ID); Hope this helps some. "Aguirre, Jose" on 01/07/2002 05:34:17 PM Please respond to sqr-users@list.iex.net To: SQR-USERS@list.iex.net cc: (bcc: Rick Creel/IT/Aon Consulting) Subject: PeopleCode..... Hi all, I'm trying execute a record field PeopleCode Event from another record field PeopleCode Event, if anyone has done that, please send me the syntax. Thanks in advance, Jos --0__=dUHGzWHIrw09JTZKj2LtzOjrFAA3YP1wYsN3SWQnfqL9WSB6zbb6Xk13 Content-type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-transfer-encoding: quoted-printable =E9 Aguirre = --0__=dUHGzWHIrw09JTZKj2LtzOjrFAA3YP1wYsN3SWQnfqL9WSB6zbb6Xk13-- From owner-sqr-users@list.iex.net Tue Jan 8 10:01:40 2002 Date: Tue, 8 Jan 2002 09:39:25 -0500 From: "Huss, Robert" Subject: SQR to print Pie charts All- Has anyone ever written, modified or know of any sqr's that create a chart of some kind. Specifically I am looking to create a pie chart from within an sqr. I have found an example program that is below, but I can not seem to get the sqr to output a chart. When printed the outout is meaningless characters (i.e. sending Postscript to a non Postscript printer). I have tried printing the sqr to the printer which I thought was a Postscript printer, but this did not work either. I tried changing the printer type to HP (commented out line) Any help would be appreciated. Thanks. SQR/4.3.2/PC/Windows NT 4.0/Oracle 7.3.4/Sep 14 1998 Win 95 Oracle PeopleSoft 7.53 Code --------- ! SQRPie Demonstrate SQR v3.0 pie graph commands ! To print this report to an HP, use the following: ! sqr sqrpie / -printer:hp ! Begin-Setup Declare-Layout SQRPie Orientation=Portrait Left-Margin=.95 Top-Margin=.75 Max-Lines=62 Max-Columns=80 End-Declare Declare-Report SQRPie Layout=SQRPie !Printer-Type=Postscript Printer-Type=HP End-Declare Create-Array Name=emp_sales Size=4 Field=emp:char Field=jun_sales:number:3 End-Setup Begin-Program Graphic (1,1,66) Box 58 20 ! Draw box around whole page. Alter-Printer Font=5 Point-Size=30 Print 'SQR Goes Graphic!!' (3,17) Print 'SQR Goes Graphic!!' (57,17) Put 'Claire' 50 into emp_sales(0) emp jun_sales(0) Put 'Evan' 25 into emp_sales(1) emp jun_sales(0) Put 'Jacob' 38 into emp_sales(2) emp jun_sales(0) Put 'Madeline' 45 into emp_sales(3) emp jun_sales(0) Print-Chart (5, 3) Chart-Size = (40, 12) Type = pie Legend = no Title = 'MidWest Sales for June' Sub-Title = '(Sales by Employee)' Data-Array-Row-Count = 4 Data-Array-Column-Count = 2 Data-Array = emp_sales Alter-Printer Font=5 Point-Size=12 Print 'Pie Graph Features in SQR' (10,45) Print '- 3D ' (+1,47) Print '- Exploded Segments' (+1,47) Print 'Here is the SQR program that produced this page:' (18, 17) ! Draw shaded box with vertical line to create two columns Graphic (20,2,64) Box 35 10 4 ! Box with 4 percent shading Graphic (19,33,35) Vert-Line 4 Alter-Printer Font=5 Point-Size=7 Open 'sqrpie.sqr' As 1 For-Reading Record=200 Let #Line = 20 Columns 3 34 While 1 Read 1 Into $Rec:200 If #End-File Break End-If Print $Rec (#Line,1) Add 1 To #Line If #Line > 54 Next-column Let #Line = 20 End-If End-While Close 1 End-Program ------------------- Robert Huss robert_huss@bausch.com EMAIL DISCLAIMER Please Note: The information contained in this message may be privileged and confidential, protected from disclosure, and/or intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any disclosure, distribution, copying or other dissemination of this communication is strictly prohibited. If you received this communication in error, please immediately reply to the sender, delete the message and destroy all copies of it. Thank You From owner-sqr-users@list.iex.net Tue Jan 8 12:10:37 2002 Date: Tue, 8 Jan 2002 11:55:02 -0500 From: David Brawner Subject: Re: SQR to print Pie charts Robert, You need to declare the chart and create the associated data array. i.e. Declare-Chart chart_name Title=chart_title [Sub-Title=next_line] Type=PIE Legend=Yes Legend-Placement=Upper-Right X-Axis-Label= x_label Y-Axis-Label= y_label End-Declare Create-Array Name= array_name size= array_size Field=field_name:field_type [:occurs] [= initial_value] For additional info check SQR for Peoplesoft by Ray Ontko or check the reference guides at http://www.ontko.com/ Dave ----- Original Message ----- From: "Huss, Robert" To: Sent: Tuesday, January 08, 2002 9:39 AM Subject: SQR to print Pie charts > All- > > Has anyone ever written, modified or know of any sqr's > that create a chart of some kind. Specifically I am > looking to create a pie chart from within an sqr. I > have found an example program that is below, > but I can not seem to get the sqr to output a chart. > When printed the outout is meaningless characters > (i.e. sending Postscript to a non Postscript printer). > I have tried printing the sqr to the printer which I > thought was a Postscript printer, but this did not > work either. I tried changing the printer type to HP (commented out line) > Any help would be appreciated. Thanks. > > SQR/4.3.2/PC/Windows NT 4.0/Oracle 7.3.4/Sep 14 1998 > Win 95 > Oracle > PeopleSoft 7.53 > > Code > --------- > ! SQRPie Demonstrate SQR v3.0 pie graph commands > ! To print this report to an HP, use the following: > ! sqr sqrpie / -printer:hp > ! > Begin-Setup > Declare-Layout SQRPie > Orientation=Portrait > Left-Margin=.95 Top-Margin=.75 > Max-Lines=62 Max-Columns=80 > End-Declare > Declare-Report SQRPie > Layout=SQRPie > !Printer-Type=Postscript > Printer-Type=HP > End-Declare > Create-Array Name=emp_sales Size=4 > Field=emp:char Field=jun_sales:number:3 > End-Setup > > Begin-Program > Graphic (1,1,66) Box 58 20 ! Draw box around whole page. > Alter-Printer Font=5 Point-Size=30 > Print 'SQR Goes Graphic!!' (3,17) > Print 'SQR Goes Graphic!!' (57,17) > Put 'Claire' 50 > into emp_sales(0) emp jun_sales(0) > Put 'Evan' 25 > into emp_sales(1) emp jun_sales(0) > Put 'Jacob' 38 > into emp_sales(2) emp jun_sales(0) > Put 'Madeline' 45 > into emp_sales(3) emp jun_sales(0) > > Print-Chart (5, 3) > Chart-Size = (40, 12) > Type = pie > Legend = no > Title = 'MidWest Sales for June' > Sub-Title = '(Sales by Employee)' > Data-Array-Row-Count = 4 > Data-Array-Column-Count = 2 > Data-Array = emp_sales > > Alter-Printer Font=5 Point-Size=12 > Print 'Pie Graph Features in SQR' (10,45) > Print '- 3D ' (+1,47) > Print '- Exploded Segments' (+1,47) > Print 'Here is the SQR program that produced this page:' (18, 17) > ! Draw shaded box with vertical line to create two columns > Graphic (20,2,64) Box 35 10 4 ! Box with 4 percent shading > Graphic (19,33,35) Vert-Line 4 > Alter-Printer Font=5 Point-Size=7 > Open 'sqrpie.sqr' As 1 For-Reading Record=200 > Let #Line = 20 > Columns 3 34 > While 1 > Read 1 Into $Rec:200 > If #End-File > Break > End-If > Print $Rec (#Line,1) > Add 1 To #Line > If #Line > 54 > Next-column > Let #Line = 20 > End-If > End-While > Close 1 > End-Program > ------------------- > > Robert Huss > robert_huss@bausch.com > > > EMAIL DISCLAIMER > > Please Note: The information contained in this message may be privileged and > confidential, protected from disclosure, and/or intended only for the use of > the individual or entity named above. If the reader of this message is not > the intended recipient, or an employee or agent responsible for delivering > this message to the intended recipient, you are hereby notified that any > disclosure, distribution, copying or other dissemination of this > communication is strictly prohibited. If you received this communication in > error, please immediately reply to the sender, delete the message and > destroy all copies of it. > > Thank You From owner-sqr-users@list.iex.net Tue Jan 8 17:30:47 2002 Date: Tue, 8 Jan 2002 16:19:46 -0600 From: David Thompson-Hall Subject: Re: PeopleCode..... At 09:18 AM 1/8/02 -0500, Rick Creek wrote: >The syntax for doing what you want is: > >First, the function you want to call must already exist on the other record. > >On the field event of the record that needs to execute the other record's >PeopleCode, this is what you do: >(1) you declare the function >(2) you call the function with any optional parameters. This is a good description of a solution to the problem. But what you can't do is just call any old event-related PeopleCode for any field object anywhere. So at no point can you say anything like personal_data.emplid.rowinit which would sure be handy for populating Emplids, etc. Of course, from one perspective, clearly PS PeopleCode events are not strictly procedures or functions; they can't take parameters or return values. So it kind of makes sense... But for those of us who have worked on event-based languages like Visual Basic, this seems really odd. We expect to be able to call any Event code from anywhere, and treat it like a procedure. However, this is not allowed within PeopleCode. The only solution is to bundle the PeopleCode you want into a fieldFormula and call it that way. This means you can't just call PeopleSoft code for certain business processes, because they are tied to particular events for particular records, and not stored as funclib functions. My hope is that version 8 will give us some more flexibility in some of this, but I don't know enough about the whole set PeopleCode/AppEngine changes that relate to this. If someone out there has done PeopleCode 8, I'd really like to know how this might work... DTH (after all, why wait six weeks for training when you can get it 'online'...?) David Thompson-Hall 1210 W. Dayton St. Programmer/Analyst Madison, WI 53706 Apps Tech/Operational Support Apps 608/265-9571 Div of Info Technology (DoIT) University of Wisconsin-Madison david.thompson-hall@doit.wisc.edu From owner-sqr-users@list.iex.net Tue Jan 8 17:56:19 2002 Date: Tue, 8 Jan 2002 16:47:08 -0600 From: "Aguirre, Jose" Subject: Re: PeopleCode..... David, I was hoping it could be done since it is a event driven app, but anyway. And you're right I hope Ver. 8 gives us more flexibility like that. Thanks, José Aguirre 504.568.2455 -----Original Message----- From: David Thompson-Hall [mailto:david.thompson-hall@DOIT.WISC.EDU] Sent: Tuesday, January 08, 2002 4:20 PM To: SQR-USERS@list.iex.net Subject: Re: PeopleCode..... At 09:18 AM 1/8/02 -0500, Rick Creek wrote: >The syntax for doing what you want is: > >First, the function you want to call must already exist on the other record. > >On the field event of the record that needs to execute the other record's >PeopleCode, this is what you do: >(1) you declare the function >(2) you call the function with any optional parameters. This is a good description of a solution to the problem. But what you can't do is just call any old event-related PeopleCode for any field object anywhere. So at no point can you say anything like personal_data.emplid.rowinit which would sure be handy for populating Emplids, etc. Of course, from one perspective, clearly PS PeopleCode events are not strictly procedures or functions; they can't take parameters or return values. So it kind of makes sense... But for those of us who have worked on event-based languages like Visual Basic, this seems really odd. We expect to be able to call any Event code from anywhere, and treat it like a procedure. However, this is not allowed within PeopleCode. The only solution is to bundle the PeopleCode you want into a fieldFormula and call it that way. This means you can't just call PeopleSoft code for certain business processes, because they are tied to particular events for particular records, and not stored as funclib functions. My hope is that version 8 will give us some more flexibility in some of this, but I don't know enough about the whole set PeopleCode/AppEngine changes that relate to this. If someone out there has done PeopleCode 8, I'd really like to know how this might work... DTH (after all, why wait six weeks for training when you can get it 'online'...?) David Thompson-Hall 1210 W. Dayton St. Programmer/Analyst Madison, WI 53706 Apps Tech/Operational Support Apps 608/265-9571 Div of Info Technology (DoIT) University of Wisconsin-Madison david.thompson-hall@doit.wisc.edu From owner-sqr-users@list.iex.net Tue Jan 8 18:12:00 2002 Date: Tue, 8 Jan 2002 17:04:12 -0600 From: David Thompson-Hall Subject: Re: PeopleCode..... At 04:47 PM 1/8/02 -0600, José Aguirre wrote: >I was hoping it could be done since it is a event driven app, but anyway. >And you're right I hope Ver. 8 gives us more flexibility like that. Yeah, that's why I followed up to Rick's suggestion. The first time I ran across this, I was really annoyed (why the heck do they call it event driven, after all?), but after a while I just realized it was another one of those joyful PS idiosyncracies... If PS 8 can handle events the 'proper' way, then the AppEngine/PeopleCode stuff may be very cool -- but I'm not going to get my hopes up... DTH (with way too much stuff to convert to 8 to worry about getting the moon as well) David Thompson-Hall 1210 W. Dayton St. Programmer/Analyst Madison, WI 53706 Apps Tech/Operational Support Apps 608/265-9571 Div of Info Technology (DoIT) University of Wisconsin-Madison david.thompson-hall@doit.wisc.edu From owner-sqr-users@list.iex.net Wed Jan 9 15:51:48 2002 Date: Wed, 9 Jan 2002 12:29:50 -0800 From: Atul Shrivastava Subject: XML Output Hi, I am trying to have SQR output in XML format. Does anybody know how to do that? I have Brio Report Builder 6.1.3 (build 90) installed. Do I need to install any other software/drivers ? Any help is greatly appreciated. Regards, atul __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ From owner-sqr-users@list.iex.net Wed Jan 9 18:46:32 2002 Date: Wed, 9 Jan 2002 18:26:06 -0500 From: Joe Johnson Subject: Re: XML Output --0__=85256B3C0080AA9F8f9e8a93df938690918c85256B3C0080AA9F Content-type: text/plain; charset=us-ascii Atul, I wrote a pretty simple SQR that took a text file containing names and phone numbers etc. and created xml output. Here it is: (See attached file: Phonelis.SQR) HTH, Joe Johnson AG Consulting Atul Shrivastava To: SQR-USERS@list.iex.net Subject: XML Output Sent by: "Discussion of SQR, Brio Software's database reporting language" 01/09/2002 03:29 PM Please respond to sqr-users Hi, I am trying to have SQR output in XML format. Does anybody know how to do that? I have Brio Report Builder 6.1.3 (build 90) installed. Do I need to install any other software/drivers ? Any help is greatly appreciated. Regards, atul __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ --0__=85256B3C0080AA9F8f9e8a93df938690918c85256B3C0080AA9F Content-type: application/octet-stream; name="Phonelis.SQR" Content-Disposition: attachment; filename="Phonelis.SQR" Content-transfer-encoding: base64 ISBQaG9uZWxpcy5TUVINCiEgSVMgUGhvbmVsaXN0IHByb2dyYW0gdG8gZXh0cmFjdCBkYXRhIGZy b20gdHh0IGZpbGUgZGVsaW1pdGVkIGJ5ICc7JyBhbmQgY3JlYXRlIGEgZmlsZSBpbiBYTUwgZm9y bWF0DQohIEpvZSBKb2huc29uDQohIGplajEyMTZAaG90bWFpbC5jb20NCg0KISoqKioqKioqKioq KioqKioqKioqDQpCZWdpbi1Qcm9ncmFtDQohKioqKioqKioqKioqKioqKioqKioNCiAgIU9wZW4g J2E6XFBob25lbGlzLnR4dCcgYXMgMSBGb3ItUmVhZGluZyBSZWNvcmQ9MTAwMCBTdGF0dXM9I09w ZW5TdGF0DQogIE9wZW4gJ2Q6XFdJTk5UXFByb2ZpbGVzXGpvZWpvXERlc2t0b3BcUGhvbmVsaXN0 XFBob25lbGlzLnR4dCcgYXMgMSBGb3ItUmVhZGluZyBSZWNvcmQ9MTAwMCBTdGF0dXM9I09wZW5T dGF0DQogIElmICNPcGVuU3RhdCAhPSAwDQogICAgICAgIFNob3cgJ0Vycm9yIE9wZW5pbmcgYTpc UGhvbmVsaXN0LnR4dCcNCiAgRWxzZQ0KICAgICAgICBTaG93ICAnUGhvbmVsaXN0LnR4dCBoYXMg YmVlbiBvcGVuZWQgZm9yIHJlYWRpbmcuJw0KICBFbmQtSWYNCg0KICAhT3BlbiAnYTpcUGhvbmVs aXMueG1sJyBhcyAyIEZvci1Xcml0aW5nIFJlY29yZD0xMDAwIFN0YXR1cz0jT3BlblN0YXQNCiAg T3BlbiAnZDpcV0lOTlRcUHJvZmlsZXNcam9lam9cRGVza3RvcFxQaG9uZWxpc3RcUGhvbmVsaXMu eG1sJyBhcyAyIEZvci1Xcml0aW5nIFJlY29yZD0xMDAwIFN0YXR1cz0jT3BlblN0YXQNCiAgSWYg I09wZW5TdGF0ICE9IDANCiAgICAgICAgU2hvdyAnRXJyb3IgT3BlbmluZyBhOlxQaG9uZWxpc3Qu eG1sJw0KICBFbHNlDQogICAgICAgIFNob3cgICAnUGhvbmVsaXN0LnhtbCBoYXMgYmVlbiBvcGVu ZWQgZm9yIHdyaXRpbmcuJw0KICBFbmQtSWYNCiAgIERvIFJlYWQtSW5wdXQtRmlsZQ0KRW5kLVBy b2dyYW0NCiEqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioNCkJl Z2luLVByb2NlZHVyZSBSZWFkLUlucHV0LUZpbGUNCiEqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioNClNob3cgJ1JlYWRpbmcgUGhvbmVsaXMudHh0Jw0KIE1vdmUg MCBUbyAjVG90X1JlY3MNCg0KV3JpdGUgMiBGcm9tICc8P3htbCB2ZXJzaW9uPSIxLjAiIGVuY29k aW5nPSJJU084ODU5LTEiID8+Jw0KV3JpdGUgMiBGcm9tICc8UEhPTkVMSVNUPicNCg0KIFdoaWxl IE5vdCAjZW5kLWZpbGUNCiAgUmVhZCAxIEludG8gJElucHV0OjEwMDANCiAgSWYgI2VuZC1maWxl DQogICAgQnJlYWsNCiAgRW5kLUlmDQoNCiAgVW5zdHJpbmcgJElucHV0IEJ5ICc7JyBJbnRvDQog ICROQU1FDQogICRIT01FX1BIT05FDQogICRQQUdFUg0KICAkQ0VMTA0KICAkUEFHRVJfRU1BSUwN CiAgJEVYVA0KDQogIEFkZCAxIHRvICAjVG90X1JlY3MNCiAgRGlzcGxheSAnVG90YWwgcmVjb3Jk cyBleHBvcnRlZDogJyBOb2xpbmUNCiAgRGlzcGxheSAjVG90X1JlY3MgOTk5LDk5OSw5OTkNCg0K ICBJZiAkTkFNRSA9ICcnDQogICBMZXQgJE5BTUUgPSAnbm9uZScNCiAgRW5kLWlmDQogIElmICRI T01FX1BIT05FID0gJycNCiAgIExldCAkSE9NRV9QSE9ORSA9ICdub25lJw0KICBFbmQtaWYNCiAg SWYgJFBBR0VSID0gJycNCiAgIExldCAkUEFHRVIgPSAnbm9uZScNCiAgRW5kLWlmDQogIElmICRD RUxMID0gJycNCiAgIExldCAkQ0VMTCA9ICdub25lJw0KICBFbmQtaWYNCiAgSWYgJFBBR0VSX0VN QUlMID0gJycNCiAgIExldCAkUEFHRVJfRU1BSUwgPSAnbm9uZScNCiAgRW5kLWlmDQogIElmICRF WFQgPSAnJw0KICAgTGV0ICRFWFQgPSAnbm9uZScNCiAgRW5kLWlmDQoNCg0KICBMZXQgJFhNTF9O QU1FID0gJzxFTVBMT1lFRT4nfHwgJE5BTUV8fCc8L0VNUExPWUVFPicNCiAgTGV0ICRYTUxfSFBI T05FID0gJzxIT01FX1BIT05FPid8fCRIT01FX1BIT05FfHwnPC9IT01FX1BIT05FPicNCiAgTGV0 ICRYTUxfUEFHRVIgPSAgJzxQQUdFUj4nfHwkUEFHRVJ8fCc8L1BBR0VSPicNCiAgTGV0ICRYTUxf Q0VMTCA9ICAnPENFTEw+J3x8JENFTEx8fCc8L0NFTEw+Jw0KICBMZXQgJFhNTF9QQUdFUkVNQUlM ID0gJzxQQUdFUl9FTUFJTD4nfHwkUEFHRVJfRU1BSUx8fCc8L1BBR0VSX0VNQUlMPicNCiAgTGV0 ICRYTUxfRVhUID0gICc8V09SS19FWFQ+J3x8JEVYVHx8JzwvV09SS19FWFQ+Jw0KDQogIERvIENy ZWF0ZS1YTUwtRmlsZQ0KDQogIEVuZC1XaGlsZQ0KDQogV3JpdGUgMiBGcm9tICc8L1BIT05FTElT VD4nDQoNCiBEaXNwbGF5ICdUb3RhbCBSZWNvcmRzIEluc2VydGVkOiAnIE5vbGluZQ0KIERpc3Bs YXkgI1RvdF9SZWNzIDk5OSw5OTksOTk5DQoNCkVuZC1Qcm9jZWR1cmUNCiEqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioNCkJlZ2luLVByb2NlZHVyZSBDcmVhdGUt WE1MLUZpbGUNCiEqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioN ClNob3cgJ1dyaXRpbmcgUGhvbmVsaXMueG1sJw0KDQpXcml0ZSAyIEZyb20gICc8UEg+Jw0KDQog ICRYTUxfTkFNRQ0KICAkWE1MX0hQSE9ORQ0KICAkWE1MX1BBR0VSDQogICRYTUxfQ0VMTA0KICAk WE1MX1BBR0VSRU1BSUwNCiAgJFhNTF9FWFQNCg0KICAnPC9QSD4nDQoNCkVuZC1Qcm9jZWR1cmU= --0__=85256B3C0080AA9F8f9e8a93df938690918c85256B3C0080AA9F-- From owner-sqr-users@list.iex.net Thu Jan 10 07:32:14 2002 Date: Thu, 10 Jan 2002 04:05:01 -0800 From: Stan Quick Subject: Re: XML Output In RB, you can also setup some initial code by going to Edit>Preferences>Navigation Bar and checking "Display XML output" -----Original Message----- From: Joe Johnson To: SQR-USERS@list.iex.net Sent: 1/9/2002 3:26 PM Subject: Re: XML Output Atul, I wrote a pretty simple SQR that took a text file containing names and phone numbers etc. and created xml output. Here it is: (See attached file: Phonelis.SQR) HTH, Joe Johnson AG Consulting Atul Shrivastava To: SQR-USERS@list.iex.net Subject: XML Output Sent by: "Discussion of SQR, Brio Software's database reporting language" 01/09/2002 03:29 PM Please respond to sqr-users Hi, I am trying to have SQR output in XML format. Does anybody know how to do that? I have Brio Report Builder 6.1.3 (build 90) installed. Do I need to install any other software/drivers ? Any help is greatly appreciated. Regards, atul __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ <> From owner-sqr-users@list.iex.net Thu Jan 10 07:45:19 2002 Date: Thu, 10 Jan 2002 23:23:56 +1100 From: Jarrodb Subject: DateAdd / StrToDate problem. Hi all! Hoping someone can help. I am trying to use the dateadd as seen below but are getting the following errors. Any tips would be greatly appreciated, thanx. Let $MyMonth = '200111' Let $TempDate = $MyMonth || '01' Let $TempDate = strtodate($TempDate, 'YYYYMMDD') Let $TempDate = DateAdd($TempDate, 'month', -6) Let $HalfYear = DateToStr($TempDate, 'YYYYMM') Error on line 78: (SQR 4045) Function or operator 'dateadd' requires date argument. Error on line 79: (SQR 4045) Function or operator 'datetostr' requires date argument. Errors were found in the program file. SQR: Program Aborting. From owner-sqr-users@list.iex.net Thu Jan 10 08:33:55 2002 Date: Thu, 10 Jan 2002 07:09:15 -0600 From: James Womeldorf Subject: Re: DateAdd / StrToDate problem. Hi Jarrod, Try the following: begin-setup declare-variable date $TempDate end-declare end-setup begin-program Let $MyMonth = '200111' Let $TempDateStr = $MyMonth || '01' Let $TempDate = strtodate($TempDateStr, 'YYYYMMDD') Let $TempDate = DateAdd($TempDate, 'month', -6) Let $HalfYear = DateToStr($TempDate) show $HalfYear end-program In order for a variable to 'really be a date' it has to be declared that way either in the Setup section or as the first statement in a local procedure. Jim Jim Womeldorf Programmer/Analyst Fastenal Company jwomeldo@fastenal.com (507) 453-8250 -----Original Message----- From: Jarrodb [mailto:jarrodb@NETSPACE.NET.AU] Sent: Thursday, January 10, 2002 6:24 AM To: SQR-USERS@list.iex.net Subject: DateAdd / StrToDate problem. Hi all! Hoping someone can help. I am trying to use the dateadd as seen below but are getting the following errors. Any tips would be greatly appreciated, thanx. Let $MyMonth = '200111' Let $TempDate = $MyMonth || '01' Let $TempDate = strtodate($TempDate, 'YYYYMMDD') Let $TempDate = DateAdd($TempDate, 'month', -6) Let $HalfYear = DateToStr($TempDate, 'YYYYMM') Hi Jarrod Error on line 78: (SQR 4045) Function or operator 'dateadd' requires date argument. Error on line 79: (SQR 4045) Function or operator 'datetostr' requires date argument. Errors were found in the program file. SQR: Program Aborting. From owner-sqr-users@list.iex.net Thu Jan 10 08:57:13 2002 Date: Thu, 10 Jan 2002 09:34:43 -0400 From: Peter Clark Subject: Re: DateAdd / StrToDate problem. You need to declare $TempDate as a date variable and build your string date in a different variable i.e. begin-setup declare-variable date $TempDate end-declare end-setup then Let $MyMonth = '200111' Let $TempDateIn = $MyMonth || '01' Let $TempDate = strtodate($TempDateIn, 'YYYYMMDD') Let $TempDate = DateAdd($TempDate, 'month', -6) Let $HalfYear = DateToStr($TempDate, 'YYYYMM') >>> Jarrodb 2002/01/10 8:23:56 am >>> Hi all! Hoping someone can help. I am trying to use the dateadd as seen below but are getting the following errors. Any tips would be greatly appreciated, thanx. Let $MyMonth = '200111' Let $TempDate = $MyMonth || '01' Let $TempDate = strtodate($TempDate, 'YYYYMMDD') Let $TempDate = DateAdd($TempDate, 'month', -6) Let $HalfYear = DateToStr($TempDate, 'YYYYMM') Error on line 78: (SQR 4045) Function or operator 'dateadd' requires date argument. Error on line 79: (SQR 4045) Function or operator 'datetostr' requires date argument. Errors were found in the program file. SQR: Program Aborting. From owner-sqr-users@list.iex.net Thu Jan 10 09:19:13 2002 Date: Thu, 10 Jan 2002 08:44:21 -0500 From: Ray Ontko Subject: Re: XML Output Atul, The suggestions from Joe and Stan will almost certainly take care of your requirements. If you plan to be READING XML, or have extensive XML processing needs, you may want to consider SQR for DDO. This is like SQR for Oracle, SQR for DB2, etc, except that it allows you to read from a number of non-SQL data sources, like XML and SAP. Ray > Hi, > > I am trying to have SQR output in XML format. Does > anybody know how to do that? > I have Brio Report Builder 6.1.3 (build 90) installed. > Do I need to install any other software/drivers ? > > Any help is greatly appreciated. > > Regards, > atul > > __________________________________________________ > Do You Yahoo!? > Send FREE video emails in Yahoo! Mail! > http://promo.yahoo.com/videomail/ > ---------------------------------------------------------------------- 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/ From owner-sqr-users@list.iex.net Thu Jan 10 12:09:49 2002 Date: Thu, 10 Jan 2002 16:35:20 -0000 From: "Rosteck, Mark" Subject: SQR Question: Capturing "Command Aborted"? Sybase 11.9.2 SQR 4.3.2.1 Windows NT4 Hello, This is a bit of a newbie question and any help would be greatly appreciated: When using an SQR program to process data files and do database inserts/updates, occasionally a problem such as corrupt data will cause SQR to exit with a "Command aborted" message (for instance if a to_number() function accidentally tries to convert a text character), with no simple way to find out which record caused the problem. What I would like is to have a chance to record the transaction or record number that caused the problem before the whole SQR program aborts, or preferably even skip over the errored record and continue with the processing. Is there any sort of general "error trapping" command or parameter in SQR (similar to the ON-ERROR for SQL statements) which would for instance call an error procedure before the program quits? Or can you suggest anything that would have a similar effect? From owner-sqr-users@list.iex.net Thu Jan 10 13:03:45 2002 Date: Thu, 10 Jan 2002 09:32:28 -0800 From: Atul Shrivastava Subject: Re: XML Output Thank you so much Joe, Stan and Ray. I appriciate your help. __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ From owner-sqr-users@list.iex.net Thu Jan 10 13:12:34 2002 Date: Thu, 10 Jan 2002 10:51:10 -0700 From: "Turner, Ivan" Subject: date arithmetic Any suggestions or better yet, any solutions. select program_name_l, table_name_l, to_char(date_time_stamp_l,'YYYYMMDDHHSS'), to_char(run_date_l,'YYYYMMDDHHSS'), to_date(run_date_l - date_time_stamp_l,'HHSS') from PS_AR_INTR_EXC_L where program_name_l in ('ARL9400','ARL9100', 'ARL9000', 'ARL9200', 'ARL9300','ARL0020','ARL9500') and date_time_stamp_l > '30-NOV-01' and run_date_l > '30-NOV-01' and table_name_l in ('RESDB','LATIS') and rownum < 20 order by program_name_l, run_Date_l; ERROR at line 4: ORA-01858: a non-numeric character was found where a numeric was expected 4 to_date(run_date_l - date_time_stamp_l,'HHSS') * From owner-sqr-users@list.iex.net Thu Jan 10 14:48:53 2002 Date: Thu, 10 Jan 2002 14:36:31 -0500 From: "Johnson, Dan" Subject: Re: date arithmetic You can't subtract one date from another. What exactly are you looking for? There are ways to calculate the number of months/day/years between dates. for months use: trunc(months_between(date1,date2)) for days use: mod(months_between(date1,date2)-trunc(months_between(date1,date2)),31)*31 Hope this helps, Dan -----Original Message----- From: Turner, Ivan Sent: Thursday, January 10, 2002 12:51 PM To: Subject: date arithmetic Any suggestions or better yet, any solutions. select program_name_l, table_name_l, to_char(date_time_stamp_l,'YYYYMMDDHHSS'), to_char(run_date_l,'YYYYMMDDHHSS'), to_date(run_date_l - date_time_stamp_l,'HHSS') from PS_AR_INTR_EXC_L where program_name_l in ('ARL9400','ARL9100', 'ARL9000', 'ARL9200', 'ARL9300','ARL0020','ARL9500') and date_time_stamp_l > '30-NOV-01' and run_date_l > '30-NOV-01' and table_name_l in ('RESDB','LATIS') and rownum < 20 order by program_name_l, run_Date_l; ERROR at line 4: ORA-01858: a non-numeric character was found where a numeric was expected 4 to_date(run_date_l - date_time_stamp_l,'HHSS') * From owner-sqr-users@list.iex.net Thu Jan 10 15:09:48 2002 Date: Thu, 10 Jan 2002 13:57:36 -0600 From: the dragon Subject: Re: date arithmetic Just a couple of things off the top of my head. 1) what the hell are you trying to do??? 2) where are the minutes in your format mask? 3) in the line to_date(run_date_l - date_time_stamp_l,'HHSS') what is the default format of the date-time stamp? and where are the minutes? You are trying to compare apples and kumquats with the output in camels...... You probably need to read in the values for run_date_1 and date_time_stamp_1 and use a date diff routine, or convert the date-time stamps into numbers, figure out the differences and then use that number for whatever it is you are trying to do... which is what exactly? the code seems to show that you want to take the difference between two dates, and turn it into a date - which is impossible. The difference between two date-dites is a number, not a date. clark 'the dragon' willis dragon enterprises, consulting services "doing it right, the first time, for less" 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---- Any suggestions or better yet, any solutions. select program_name_l, table_name_l, to_char(date_time_stamp_l,'YYYYMMDDHHSS'), to_char(run_date_l,'YYYYMMDDHHSS'), to_date(run_date_l - date_time_stamp_l,'HHSS') from PS_AR_INTR_EXC_L where program_name_l in ('ARL9400','ARL9100', 'ARL9000', 'ARL9200', 'ARL9300','ARL0020','ARL9500') and date_time_stamp_l > '30-NOV-01' and run_date_l > '30-NOV-01' and table_name_l in ('RESDB','LATIS') and rownum < 20 order by program_name_l, run_Date_l; ERROR at line 4: ORA-01858: a non-numeric character was found where a numeric was expected 4 to_date(run_date_l - date_time_stamp_l,'HHSS') * _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. From owner-sqr-users@list.iex.net Thu Jan 10 15:10:21 2002 Date: Thu, 10 Jan 2002 14:47:32 EST From: Hugh Vishner Subject: Re: date arithmetic I believe you should have coded line 4 as to_char(run_date_l - date_time_stamp_l,'HHSS') instead of to_date(run_date_l - date_time_stamp_l,'HHSS') HTH, Hugh In a message dated Thu, 10 Jan 2002 12:52:29 PM Eastern Standard Time, "Turner, Ivan" writes: > Any suggestions or better yet, any solutions. > > select program_name_l, table_name_l, > to_char(date_time_stamp_l,'YYYYMMDDHHSS'), > to_char(run_date_l,'YYYYMMDDHHSS'), > to_date(run_date_l - date_time_stamp_l,'HHSS') > from PS_AR_INTR_EXC_L > where program_name_l in ('ARL9400','ARL9100', 'ARL9000', 'ARL9200', > 'ARL9300','ARL0020','ARL9500') > and date_time_stamp_l > '30-NOV-01' > and run_date_l > '30-NOV-01' > and table_name_l in ('RESDB','LATIS') > and rownum < 20 > order by program_name_l, run_Date_l; > > > ERROR at line 4: > ORA-01858: a non-numeric character was found where a numeric was expected > 4 to_date(run_date_l - date_time_stamp_l,'HHSS') > * From owner-sqr-users@list.iex.net Thu Jan 10 15:10:27 2002 Date: Thu, 10 Jan 2002 14:55:57 -0500 From: Don Mellen Subject: Re: date arithmetic I'm not sure why you're ignoring the minutes in your dates, but regardless, when you subtract 2 dates, the result is a number of days between them, which you are then attempting a "to_date" on. If you have SQR 4.0 or later, you can do date arithmetic on the 2 dates you pull out (by pulling them as dates preferably) and possibly declaring some date variables for interim calcs. If you have an earlier SQR, or if you "have" to pull out the value as a column of the select for whatever reason, you might try something like... replace( to_char(trunc((run_date_l - date_time_stamp_l) * 24, 0),'999') || ':' || to_char(trunc( ( ((run_date_l - date_time_stamp_l) * 24) - trunc((run_date_l - date_time_stamp_l) * 24, 0) ) * 60, 0),'09') || ':' || to_char(trunc( ( (((run_date_l - date_time_stamp_l) * 24) * 60) - trunc(((run_date_l - date_time_stamp_l) * 24) * 60, 0) ) * 60, 0),'09') ,' ','') Which woud give you the difference in HH24:MI:SS format (for example, switch to whatever format you need). If you know the dates to be less than 24 hours apart, you can switch to the simpler.... to_char(trunc(sydate) + (run_date_l - date_time_stamp_l),'HH24:MI:SS') HTH, Don On Thu, 10 Jan 2002, Turner, Ivan wrote: > Any suggestions or better yet, any solutions. > > select program_name_l, table_name_l, > to_char(date_time_stamp_l,'YYYYMMDDHHSS'), > to_char(run_date_l,'YYYYMMDDHHSS'), > to_date(run_date_l - date_time_stamp_l,'HHSS') > from PS_AR_INTR_EXC_L > where program_name_l in ('ARL9400','ARL9100', 'ARL9000', 'ARL9200', > 'ARL9300','ARL0020','ARL9500') > and date_time_stamp_l > '30-NOV-01' > and run_date_l > '30-NOV-01' > and table_name_l in ('RESDB','LATIS') > and rownum < 20 > order by program_name_l, run_Date_l; > > > ERROR at line 4: > ORA-01858: a non-numeric character was found where a numeric was expected > 4 to_date(run_date_l - date_time_stamp_l,'HHSS') > * > ----------------------------------------------------------------------- Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ donm@ontko.com | "In the beginning, there was nothing, which exploded" From owner-sqr-users@list.iex.net Thu Jan 10 17:09:07 2002 Date: Thu, 10 Jan 2002 13:56:38 -0800 From: Meenu Jhigan Subject: SQR question - datetime Hi, Could anyone explain what this means. {DATETIMEOUT-PREFIX}variable{DATETIMEOUT-SUFFIX} Thanks in advance. Meenu From owner-sqr-users@list.iex.net Thu Jan 10 17:21:41 2002 Date: Thu, 10 Jan 2002 14:03:30 -0800 From: Meenu Jhigan Subject: datetime error Hi, We recently converted from Informix to DB2. I ran into datetime error that is - Error: SQL0180N The syntax of the string representation of a datetime value is incorrect. SQLSTATE=22007 (State:22007, Native Code: FFFFFF4C) I have tried this format - 2002-01-09-16:26:20.000000 for Db2 but it doesn't seem to work. Thanks, Meenu mjhigan@scu.edu From owner-sqr-users@list.iex.net Thu Jan 10 17:21:53 2002 Date: Thu, 10 Jan 2002 17:11:08 -0500 From: "Turner, Ivan" Subject: Re: date arithmetic I want the difference in the two dates represented in hours. 'HHSS' should be 'HHMI' I believe but this still doesn't fix my problem. -----Original Message----- From: the dragon [mailto:ceprn@HOTMAIL.COM] Sent: Thursday, January 10, 2002 2:58 PM To: SQR-USERS@list.iex.net Subject: Re: date arithmetic Just a couple of things off the top of my head. 1) what the hell are you trying to do??? 2) where are the minutes in your format mask? 3) in the line to_date(run_date_l - date_time_stamp_l,'HHSS') what is the default format of the date-time stamp? and where are the minutes? You are trying to compare apples and kumquats with the output in camels...... You probably need to read in the values for run_date_1 and date_time_stamp_1 and use a date diff routine, or convert the date-time stamps into numbers, figure out the differences and then use that number for whatever it is you are trying to do... which is what exactly? the code seems to show that you want to take the difference between two dates, and turn it into a date - which is impossible. The difference between two date-dites is a number, not a date. clark 'the dragon' willis dragon enterprises, consulting services "doing it right, the first time, for less" 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---- Any suggestions or better yet, any solutions. select program_name_l, table_name_l, to_char(date_time_stamp_l,'YYYYMMDDHHSS'), to_char(run_date_l,'YYYYMMDDHHSS'), to_date(run_date_l - date_time_stamp_l,'HHSS') from PS_AR_INTR_EXC_L where program_name_l in ('ARL9400','ARL9100', 'ARL9000', 'ARL9200', 'ARL9300','ARL0020','ARL9500') and date_time_stamp_l > '30-NOV-01' and run_date_l > '30-NOV-01' and table_name_l in ('RESDB','LATIS') and rownum < 20 order by program_name_l, run_Date_l; ERROR at line 4: ORA-01858: a non-numeric character was found where a numeric was expected 4 to_date(run_date_l - date_time_stamp_l,'HHSS') * _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. From owner-sqr-users@list.iex.net Thu Jan 10 17:59:44 2002 Date: Thu, 10 Jan 2002 17:44:46 -0500 From: George Jansen Subject: Re: date arithmetic SQL> get $HOME/temp/datemath 1 CREATE OR REPLACE 2 FUNCTION hhmi 3 (p_later IN DATE, 4 p_earlier IN DATE) 5 RETURN VARCHAR2 6 AS 7 v_datediff NUMBER; 8 v_hours NUMBER; 9 v_minutes NUMBER; 10 BEGIN 11 v_datediff := p_later - p_earlier; 12 v_hours := trunc(v_datediff * 24); 13 v_minutes := mod(trunc(v_datediff * 24 * 60), 60); 14 RETURN lpad(v_hours,2,'0') || lpad(v_minutes,2,'0'); 15* END hhmi; 16 / Function created. SQL> select hhmi(sysdate,trunc(sysdate)) as hhmi, sysdate from dual; HHMI SYSDATE ---- -------------------- 1743 10-JAN-2002 17:43:58 >>> Ivan.Turner@QWEST.COM 01/10/02 05:11PM >>> I want the difference in the two dates represented in hours. 'HHSS' should be 'HHMI' I believe but this still doesn't fix my problem. -----Original Message----- From: the dragon [mailto:ceprn@HOTMAIL.COM] Sent: Thursday, January 10, 2002 2:58 PM To: SQR-USERS@list.iex.net Subject: Re: date arithmetic Just a couple of things off the top of my head. 1) what the hell are you trying to do??? 2) where are the minutes in your format mask? 3) in the line to_date(run_date_l - date_time_stamp_l,'HHSS') what is the default format of the date-time stamp? and where are the minutes? You are trying to compare apples and kumquats with the output in camels...... You probably need to read in the values for run_date_1 and date_time_stamp_1 and use a date diff routine, or convert the date-time stamps into numbers, figure out the differences and then use that number for whatever it is you are trying to do... which is what exactly? the code seems to show that you want to take the difference between two dates, and turn it into a date - which is impossible. The difference between two date-dites is a number, not a date. clark 'the dragon' willis dragon enterprises, consulting services "doing it right, the first time, for less" 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---- Any suggestions or better yet, any solutions. select program_name_l, table_name_l, to_char(date_time_stamp_l,'YYYYMMDDHHSS'), to_char(run_date_l,'YYYYMMDDHHSS'), to_date(run_date_l - date_time_stamp_l,'HHSS') from PS_AR_INTR_EXC_L where program_name_l in ('ARL9400','ARL9100', 'ARL9000', 'ARL9200', 'ARL9300','ARL0020','ARL9500') and date_time_stamp_l > '30-NOV-01' and run_date_l > '30-NOV-01' and table_name_l in ('RESDB','LATIS') and rownum < 20 order by program_name_l, run_Date_l; ERROR at line 4: ORA-01858: a non-numeric character was found where a numeric was expected 4 to_date(run_date_l - date_time_stamp_l,'HHSS') * _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. From owner-sqr-users@list.iex.net Thu Jan 10 18:18:27 2002 Date: Thu, 10 Jan 2002 16:56:05 -0600 From: the dragon Subject: Re: SQR question - datetime They are defined values that are dependant upon your specific database. They will probably be defined in one of the env sqcs. here it is defined in setenv.sqc. Check it out. If you have NT as an OS, get used to using the find/search utility. If you have a flavour of unix, use find. If you don't understand how to use these tools, a network admin or sysadmin will be happy to explain it to you. clark 'the dragon' willis dragon enterprises, consulting services "Getting it right, the first time, for less" PSA: Salary <> Slavery. If you earn a salary, your employer is renting your services for 40 hours a week, not purchasing your soul. Your time is the only real finite asset that you have, and once used it can never be recovered, so don't waste it by giving it away. "Time is the coin of your life. It is the only coin you have, and only you can determine how it will be spent. Be careful lest you let other people spend it for you." Carl Sandburg (1878 - 1967) ----Original Message Follows---- Hi, Could anyone explain what this means. {DATETIMEOUT-PREFIX}variable{DATETIMEOUT-SUFFIX} Thanks in advance. Meenu 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) NOTICE: The information contained in this message is protected under United States and international copyright laws and is intended for the personal and confidential use of the addressee. If you are not the addressee or an agent of the addressee, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, taking of any action in reliance upon or copying of this message without the express written permission of the sender or his agent is strictly prohibited and in violation of referenced statutes. If you have received this message in error, please notify me (the sender) immediately and you are instructed to delete this message from any computer it resides on, including mail servers. SIGNATURE : Do not meddle in the affairs of dragons, for you are crunchy and taste good with ketchup. You've got to be a Spirit; don't need no Ghosts. Do or Do Not; There is NO Try. Any clod can have facts, but having an opinion is an art ! A conclusion is simply the place where someone got tired of thinking. When a continuing state of defiance and disorder can not be checked by the rules, then new and sometimes drastic rules must be forged to maintain order; the alternative is anarchy. M. Clark Willis III - Sr Systems Analyst, Sr Consultant ceprn@hotmail.com aolim:ceprn ICQ 6633136 Help stamp out SPAM!! http://www.cauce.org The senders of unsolicited commercial e-mail to me at any site are liable for a $500 per message cost under USC 47, which may be found at http://www.law.cornell.edu/uscode/47 Contents of this message, in it's entirety, (c) 2000 M. Clark Willis III / Dragon Enterprises inc. All rights reserved. _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com From owner-sqr-users@list.iex.net Thu Jan 10 18:30:27 2002 Date: Thu, 10 Jan 2002 18:09:29 -0500 From: Debbie Pavlak Subject: Multiple output formats for 1 sqr report We are using SQR/6.1.4, SunOS 5.5.1,Sybase 12.0

We want most of our reports to be available for viewing online, printing, downloading for use with other applications and editing. Using the -printer:ep option, I have been able to create HTML, PDF, and CSV files.

How can I also output a text file that could be opened in MSWord for editing. I still need to preserve ON BREAK, headings, subtotals;etc, so I can't just "write" to a file like I do with the CSV file.

Also, using the "-printer:ep" option, the PDF file looks terrible. I lose any "BOLD" formatting and my fonts get converted to courier causing data to be overwritten (fields overlap).

P.S. I've searched the archives, but didn't find anything that was relevant to SQR 6+ for multiple output formats. This doesn't have to be a ".doc" file as long as all of the data (from the pdf and html files) is included.

Thanks for your help!

Debbie



From owner-sqr-users@list.iex.net Thu Jan 10 18:35:03 2002 Date: Thu, 10 Jan 2002 17:12:07 -0600 From: the dragon Subject: Re: date arithmetic you can get the answer you want in more than one way. try this: begin-select other columns to_number(to_char(table.columna, 'YYYYMMDD:HH24.MI')) - to_number(to_char(table.columnb, 'YYYYMMDD:HH24.MI')) &value_diff let #day_hours = 0 let #day_hours = substr(&value_diff, 1, (loc(&value_diff, 1, ':') - 1)) * 24 let #hours = substr(&value_diff, loc(&value_diff, 1, ':') + 1, loc(&value_diff, 1, '.') - 1) let #tot_hours = #day_hours + #hours (disclaimer) OK, doing this off the top of my head, at the end of a work day, and without a system to practice the syntax on, but I think you can get my drift. You'll probably have to fool around with it to get everything turned into numeric values and to get then to add together, but something like this will work - also, I am sure there are built in functions in your database, within peoplesoft and maybe within sqr that will also work. clark 'the dragon' willis dragon enterprises, consulting services "doing it right, the first time, for less" 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 want the difference in the two dates represented in hours. 'HHSS' should be 'HHMI' I believe but this still doesn't fix my problem. -----Original Message----- From: the dragon [mailto:ceprn@HOTMAIL.COM] Sent: Thursday, January 10, 2002 2:58 PM To: SQR-USERS@list.iex.net Subject: Re: date arithmetic Just a couple of things off the top of my head. 1) what the hell are you trying to do??? 2) where are the minutes in your format mask? 3) in the line to_date(run_date_l - date_time_stamp_l,'HHSS') what is the default format of the date-time stamp? and where are the minutes? You are trying to compare apples and kumquats with the output in camels...... You probably need to read in the values for run_date_1 and date_time_stamp_1 and use a date diff routine, or convert the date-time stamps into numbers, figure out the differences and then use that number for whatever it is you are trying to do... which is what exactly? the code seems to show that you want to take the difference between two dates, and turn it into a date - which is impossible. The difference between two date-dites is a number, not a date. clark 'the dragon' willis dragon enterprises, consulting services "doing it right, the first time, for less" ----Original Message Follows---- Any suggestions or better yet, any solutions. select program_name_l, table_name_l, to_char(date_time_stamp_l,'YYYYMMDDHHSS'), to_char(run_date_l,'YYYYMMDDHHSS'), to_date(run_date_l - date_time_stamp_l,'HHSS') from PS_AR_INTR_EXC_L where program_name_l in ('ARL9400','ARL9100', 'ARL9000', 'ARL9200', 'ARL9300','ARL0020','ARL9500') and date_time_stamp_l > '30-NOV-01' and run_date_l > '30-NOV-01' and table_name_l in ('RESDB','LATIS') and rownum < 20 order by program_name_l, run_Date_l; ERROR at line 4: ORA-01858: a non-numeric character was found where a numeric was expected 4 to_date(run_date_l - date_time_stamp_l,'HHSS') * _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. From owner-sqr-users@list.iex.net Thu Jan 10 18:38:26 2002 Date: Thu, 10 Jan 2002 16:13:45 -0700 From: "Turner, Ivan" Subject: Re: date arithmetic I fixed my own problem. Here it is, * select run_date_l,date_time_stamp_l, trunc( run_date_l-date_time_stamp_l ) "Day", trunc( mod( (run_date_l-date_time_stamp_l)*24, 24 ) ) "Hour", trunc( mod( (run_date_l-date_time_stamp_l)*24*60, 60 ) ) "Min", trunc( mod( to_char(run_date_l,'SSSSS')-to_char(date_time_stamp_l,'SSSSS'), 60 ) ) "Sec" from PS_AR_INTR_EXC_L where program_name_l in ('ARL9400','ARL9100', 'ARL9000', 'ARL9200', 'ARL9300','ARL0020','ARL9500') and date_time_stamp_l > '30-NOV-01' and run_date_l > '30-NOV-01' and table_name_l in ('RESDB','LATIS') How do you like that dragon? -----Original Message----- From: the dragon [mailto:ceprn@HOTMAIL.COM] Sent: Thursday, January 10, 2002 2:58 PM To: SQR-USERS@list.iex.net Subject: Re: date arithmetic Just a couple of things off the top of my head. 1) what the hell are you trying to do??? 2) where are the minutes in your format mask? 3) in the line to_date(run_date_l - date_time_stamp_l,'HHSS') what is the default format of the date-time stamp? and where are the minutes? You are trying to compare apples and kumquats with the output in camels...... You probably need to read in the values for run_date_1 and date_time_stamp_1 and use a date diff routine, or convert the date-time stamps into numbers, figure out the differences and then use that number for whatever it is you are trying to do... which is what exactly? the code seems to show that you want to take the difference between two dates, and turn it into a date - which is impossible. The difference between two date-dites is a number, not a date. clark 'the dragon' willis dragon enterprises, consulting services "doing it right, the first time, for less" 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---- Any suggestions or better yet, any solutions. select program_name_l, table_name_l, to_char(date_time_stamp_l,'YYYYMMDDHHSS'), to_char(run_date_l,'YYYYMMDDHHSS'), to_date(run_date_l - date_time_stamp_l,'HHSS') from PS_AR_INTR_EXC_L where program_name_l in ('ARL9400','ARL9100', 'ARL9000', 'ARL9200', 'ARL9300','ARL0020','ARL9500') and date_time_stamp_l > '30-NOV-01' and run_date_l > '30-NOV-01' and table_name_l in ('RESDB','LATIS') and rownum < 20 order by program_name_l, run_Date_l; ERROR at line 4: ORA-01858: a non-numeric character was found where a numeric was expected 4 to_date(run_date_l - date_time_stamp_l,'HHSS') * _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. From owner-sqr-users@list.iex.net Thu Jan 10 19:46:35 2002 Date: Fri, 11 Jan 2002 11:25:50 +1100 From: Ian Mills Subject: Re: Multiple output formats for 1 sqr report Debbie, The PDF file changes may be caused by settings in your SQR.INI file. There is a PDF fonts section in there. In regards to the text file, I do not see whay you can't use "write". Evertime you would print something for the PDF or HTML output, add a WRITE command to put the data into a text file. Regards, Ian Mills Analyst Programmer ORIX Australia >>> dpavlak@EXCITE.COM 11/01/2002 10:09:29 am >>> We are using SQR/6.1.4, SunOS 5.5.1,Sybase 12.0 We want most of our reports to be available for viewing online, printing, downloading for use with other applications and editing. Using the -printer:ep option, I have been able to create HTML, PDF, and CSV files. How can I also output a text file that could be opened in MSWord for editing. I still need to preserve ON BREAK, headings, subtotals;etc, so I can't just "write" to a file like I do with the CSV file. Also, using the "-printer:ep" option, the PDF file looks terrible. I lose any "BOLD" formatting and my fonts get converted to courier causing data to be overwritten (fields overlap). P.S. I've searched the archives, but didn't find anything that was relevant to SQR 6+ for multiple output formats. This doesn't have to be a ".doc" file as long as all of the data (from the pdf and html files) is included. Thanks for your help! Debbie From owner-sqr-users@list.iex.net Fri Jan 11 02:19:16 2002 Date: Fri, 11 Jan 2002 01:00:27 -0600 From: Eric Casteel Subject: Eric Casteel/Dallas/HS/Concentra has left the building (and the company) I will be out of the office starting 01/10/2002 and will not return until 07/10/2010. Please forward all messages of a reporting nature to Neal Suhag. All requests of a web nature should be directed to Bonjet Sandigan. From owner-sqr-users@list.iex.net Fri Jan 11 03:44:03 2002 Date: Fri, 11 Jan 2002 19:19:43 +1100 From: Jarrodb Subject: Re: DateAdd / StrToDate problem. thanx! -----Original Message----- From: Discussion of SQR, Brio Software's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Peter Clark Sent: Friday, 11 January 2002 12:35 AM To: SQR-USERS@list.iex.net Subject: Re: DateAdd / StrToDate problem. You need to declare $TempDate as a date variable and build your string date in a different variable i.e. begin-setup declare-variable date $TempDate end-declare end-setup then Let $MyMonth = '200111' Let $TempDateIn = $MyMonth || '01' Let $TempDate = strtodate($TempDateIn, 'YYYYMMDD') Let $TempDate = DateAdd($TempDate, 'month', -6) Let $HalfYear = DateToStr($TempDate, 'YYYYMM') >>> Jarrodb 2002/01/10 8:23:56 am >>> Hi all! Hoping someone can help. I am trying to use the dateadd as seen below but are getting the following errors. Any tips would be greatly appreciated, thanx. Let $MyMonth = '200111' Let $TempDate = $MyMonth || '01' Let $TempDate = strtodate($TempDate, 'YYYYMMDD') Let $TempDate = DateAdd($TempDate, 'month', -6) Let $HalfYear = DateToStr($TempDate, 'YYYYMM') Error on line 78: (SQR 4045) Function or operator 'dateadd' requires date argument. Error on line 79: (SQR 4045) Function or operator 'datetostr' requires date argument. Errors were found in the program file. SQR: Program Aborting. From owner-sqr-users@list.iex.net Fri Jan 11 03:44:03 2002 Date: Fri, 11 Jan 2002 19:19:44 +1100 From: Jarrodb Subject: Re: DateAdd / StrToDate problem. thanx!! -----Original Message----- From: Discussion of SQR, Brio Software's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of James Womeldorf Sent: Friday, 11 January 2002 12:09 AM To: SQR-USERS@list.iex.net Subject: Re: DateAdd / StrToDate problem. Hi Jarrod, Try the following: begin-setup declare-variable date $TempDate end-declare end-setup begin-program Let $MyMonth = '200111' Let $TempDateStr = $MyMonth || '01' Let $TempDate = strtodate($TempDateStr, 'YYYYMMDD') Let $TempDate = DateAdd($TempDate, 'month', -6) Let $HalfYear = DateToStr($TempDate) show $HalfYear end-program In order for a variable to 'really be a date' it has to be declared that way either in the Setup section or as the first statement in a local procedure. Jim Jim Womeldorf Programmer/Analyst Fastenal Company jwomeldo@fastenal.com (507) 453-8250 -----Original Message----- From: Jarrodb [mailto:jarrodb@NETSPACE.NET.AU] Sent: Thursday, January 10, 2002 6:24 AM To: SQR-USERS@list.iex.net Subject: DateAdd / StrToDate problem. Hi all! Hoping someone can help. I am trying to use the dateadd as seen below but are getting the following errors. Any tips would be greatly appreciated, thanx. Let $MyMonth = '200111' Let $TempDate = $MyMonth || '01' Let $TempDate = strtodate($TempDate, 'YYYYMMDD') Let $TempDate = DateAdd($TempDate, 'month', -6) Let $HalfYear = DateToStr($TempDate, 'YYYYMM') Hi Jarrod Error on line 78: (SQR 4045) Function or operator 'dateadd' requires date argument. Error on line 79: (SQR 4045) Function or operator 'datetostr' requires date argument. Errors were found in the program file. SQR: Program Aborting. From owner-sqr-users@list.iex.net Sun Jan 13 23:22:49 2002 Date: Mon, 14 Jan 2002 11:04:03 +0700 From: Kalam Subject: tab character ? how do i print tab character sqr report ? thanks in advance kalam From owner-sqr-users@list.iex.net Mon Jan 14 06:58:37 2002 Date: Mon, 14 Jan 2002 06:46:03 EST From: SJohn22151@AOL.COM Subject: Re: tab character ? Here are two ways: let $tab = chr(9) and encode <009> into $tab HTH, Steffon From owner-sqr-users@list.iex.net Mon Jan 14 17:42:00 2002 Date: Mon, 14 Jan 2002 17:15:57 -0500 From: Derek Anderson Subject: executing batch file via SQR Anyone know how to execute a batch file from an sqr? I'm running Windows 2000. _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From owner-sqr-users@list.iex.net Mon Jan 14 18:54:01 2002 Date: Mon, 14 Jan 2002 18:23:33 -0500 From: Bruce Kelling Subject: Re: executing batch file via SQR This would involve the Call System command. Something like this: let $cmd = GetEnv('COMSPEC') let $cmd = $cmd || ' /c @start /min /wait cmd /c ' let $batfile = 'c:\bat\DOS_Batch_File.bat' let $Command = $cmd || $batfile call system using $command #rtrn_status wait You may want to also include some check for whether running on client or server. Bruce -----Original Message----- From: Derek Anderson [mailto:derekmanderson@HOTMAIL.COM] Sent: Monday, January 14, 2002 5:16 PM To: SQR-USERS@list.iex.net Subject: executing batch file via SQR Anyone know how to execute a batch file from an sqr? I'm running Windows 2000. _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From owner-sqr-users@list.iex.net Mon Jan 14 19:15:09 2002 Date: Mon, 14 Jan 2002 18:49:26 -0500 From: Stephen Keen Subject: Re: executing batch file via SQR hey Derek if bat file is c:\savant.vat in the SQR let $bob = 'c:\savant.bat wait' call system using $bob #thestatusofthebatfile -----Original Message----- From: Discussion of SQR, Brio Software's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Derek Anderson Sent: Monday, January 14, 2002 5:16 PM To: SQR-USERS@list.iex.net Subject: executing batch file via SQR Anyone know how to execute a batch file from an sqr? I'm running Windows 2000. _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From owner-sqr-users@list.iex.net Tue Jan 15 05:34:51 2002 Date: Tue, 15 Jan 2002 17:07:46 +0700 From: Naiyanad Ohpanayikool Subject: How to control the printer margins? Hi, I printed the same output (PDF) using different printer, one is HP Laserjet and the other is HP office jet. The results come out differently in terms of top and bottom margin. Anyone can tell me how can I set the fix margins to control the printer? so that the results come out exactly the same for all printers. Thanks. Nai ______________________________ This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. From owner-sqr-users@list.iex.net Tue Jan 15 10:27:33 2002 Date: Tue, 15 Jan 2002 16:55:16 +0200 From: tsenuwani Makhari Subject: SQR Email and Excel Hi Guys ! Problem Detail : We need to send a form through E-Mail for several departments to fill in their part of the electronic form. The pre-filled (heading) part of this form are found within the database. So the form is written using SQR. Our users also need an option to open this form using MS Excell and also normal Email. ( When they user MS Excell , they want the form to open with the right column sizes[width]. ) eg. __________________________________________________________ Order No: 18NH 12312 Line Number : 123 Date : 2001 - 12 - 14 MM Dept | Finance Dept | ADMIN Dept Product Codes | Product Price/Qty | Product CHG Number _____________ |____________________ |________________________ _____________ |____________________ |________________________ _____________ |____________________ |________________________ _____________ |____________________ |________________________ _____________ |____________________ |________________________ _____________ |____________________ |________________________ _____________ |____________________ |________________________ Please help urgently . This is a crisis. From owner-sqr-users@list.iex.net Tue Jan 15 10:34:05 2002 Date: Tue, 15 Jan 2002 16:06:15 +0100 From: "Sangameswaran Subathra (KAWP 12)" Subject: Dynamic query Hi, I want to input as parameter, all the 'select-fields' for my query. The no. of fields I want to select each time is also uncertain. I plan to get all the fields as separated by commas which I can parse and count. But how do I use the same in the 'begin-select' clause? The resultset I require is just a csv file. Therefore I think I will not encounter any problem in writing the results. If anybody have done this before, or has any idea as to how this can be done, could you please help me? Thanks and best regards, Subha. From owner-sqr-users@list.iex.net Tue Jan 15 11:46:29 2002 Date: Tue, 15 Jan 2002 08:33:33 -0800 From: Rachael Beatty Subject: Re: Dynamic query --0__=Hdsu70Ct7rSnMbqxOf4AUjSZKMvrF8zZJWpTdXenjqDFTBYnG0l5YxB3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 7bit Hello, You would have to have some kind of limit to the number of variables set up as your input parameter, maybe the number of select fields in the table if you have to. Then when you read them in, you would set them up as a variable. If any of the total are blank you need to set them to null. For example, say your table has the ability to select 9 fields. You would have 9 variables for the select fields, say $dummy1, $dummy2, $dummy3. let $dummy1 = '' let $dummy2 = '' etc. then in your begin-select, you would have: begin-select [$dummy1] &dummy1=char [$dummy2] &dummy2=char from .. where... There are a few constraints doing it this way, but it does allow it to be dynamic. hope that helps. Rachael > -----Original Message----- > From: "Sangameswaran Subathra (KAWP 12)" > @INTERNET > Sent: Tuesday, January 15, 2002 7:06 AM > To: SQR-USERS@list.iex.net > Subject: Dynamic query > > > Hi, > > I want to input as parameter, all the 'select-fields' for my query. > The no. of fields I want to select each time is also uncertain. > I plan to get all the fields as separated by commas which I can parse and > count. > But how do I use the same in the 'begin-select' clause? > The resultset I require is just a csv file. Therefore I think I will not > encounter any problem in writing the results. > If anybody have done this before, or has any idea as to how this can be > done, could you please help me? > > Thanks and best regards, > Subha. > (See attached file: C.DTF) --0__=Hdsu70Ct7rSnMbqxOf4AUjSZKMvrF8zZJWpTdXenjqDFTBYnG0l5YxB3 Content-Type: application/octet-stream; name=C.DTF Content-Disposition: attachment; filename=C.DTF Content-Transfer-Encoding: base64 eJ8+IjUQAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy b3NvZnQgTWFpbC5Ob3RlADEIAQWAAwAOAAAA0gcBAA8ACAAhACEAAgA1AQEggAMADgAAANIHAQAP AAgAFgAyAAIAOwEBCYABACEAAABCMUQ4MDVCQzUyMDlENjExQUM0NjAwMDBFODY3QzBFRgAbBwEE gAEAEgAAAFJFOiBEeW5hbWljIHF1ZXJ5AAwGAQ2ABAACAAAAAgACAAEDkAYAmAwAADcAAAACATEA AQAAABYBAABQQ0RGRUIwOQABAAIAcwAAAAAAAAA4obsQBeUQGqG7CAArKlbCAABFTVNNREIuRExM AAAAAAAAAAAbVfogqmYRzZvIAKoAL8RaDAAAAExBWEhITVhTMDEAL289SGlsdG9uL291PUxBWEhI L2NuPVJlY2lwaWVudHMvY249cmJlYXR0eQAuAAAAAAAAALZm2BZNXNURrEIAAOhnwO8BAO1n/XAK NdQRrCQABKxMleMAAAMxuL0AAAAAAAAuAAAAAAAAALZm2BZNXNURrEIAAOhnwO8BAO1n/XAKNdQR rCQABKxMleMAAAMylJ0AABAAAACx2AW8UgnWEaxGAADoZ8DvEgAAAFJFOiBEeW5hbWljIHF1ZXJ5 AAAACwARgAggBgAAAAAAwAAAAAAAAEYAAAAAgoUAAAEAAAADAN4/r28AAAMAAIAIIAYAAAAAAMAA AAAAAABGAAAAAFKFAADwEwAAHgABgAggBgAAAAAAwAAAAAAAAEYAAAAAVIUAAAEAAAAEAAAAOC41 AAsAAoAIIAYAAAAAAMAAAAAAAABGAAAAAAaFAAAAAAAAAwADgAggBgAAAAAAwAAAAAAAAEYAAAAA AYUAAAAAAAALAASACCAGAAAAAADAAAAAAAAARgAAAAADhQAAAAAAAAsABYAIIAYAAAAAAMAAAAAA AABGAAAAAA6FAAAAAAAAAwAGgAggBgAAAAAAwAAAAAAAAEYAAAAAEIUAAAAAAAADAAeACCAGAAAA AADAAAAAAAAARgAAAAARhQAAAAAAAAsAD4AIIAYAAAAAAMAAAAAAAABGAAAAABSFAAAAAAAAAwAI gAggBgAAAAAAwAAAAAAAAEYAAAAAGIUAAAAAAAAeAAmACCAGAAAAAADAAAAAAAAARgAAAAA2hQAA AQAAAAEAAAAAAAAAHgAKgAggBgAAAAAAwAAAAAAAAEYAAAAAN4UAAAEAAAABAAAAAAAAAB4AC4AI IAYAAAAAAMAAAAAAAABGAAAAADiFAAABAAAAAQAAAAAAAAALAAyACyAGAAAAAADAAAAAAAAARgAA AAAAiAAAAAAAAAsADYALIAYAAAAAAMAAAAAAAABGAAAAAAWIAAAAAAAAAgEJEAEAAABGBQAAQgUA AG4IAABMWkZ1JKAqlwMACgByY3BnMTI1PjIA9AH3AqQE9AIAY2hBCsBzZXQwIAhQbX8N4AYEBeAC gwBQA9QCAHDwcnEyIAcTAoMOUANVRFRtBCBSbW4CgzM3BEcIVQKAfQqACMggO3sJYg4wNQm6FyEW 0w4gOL8JuhiRFtMJrAKACoF2CJCkd2sLgGQ0DGBjAFAtCwNjAEELYG4OEDAzgxTBC8M0IEhlbAkA LiwKogqECoBZCGAgdxEIYGxkIBBAdmUgdHRvH2RzA3AfoBtyINBvZiBsB3BpBUAfweR0aB+gbnUG 0ASQINI+dgrABzACYAeREHEgdahwIGEEIHkIYSALgKxwdQVACrFhB4B0BJD0LCAAwHkiECGdEHAi 4PpjBUBmCJAfQAQgC4Ahk78BkSLgJAAg8CPBH2YuHhp2VCGwA6B3KdIoQhnQYfsfUCGhbSQBJQAo Qh8UIyILKvMjZGEidy4gIEnbIPAAcHkg0idzbwGQAyCvCsAfoAJgAHBrKDNuCeB/KtEf0CwnH8Eh 4B3QLbFGWQWxZXgkoAtQZR4Fc/8lMCO0J7QQQAQgIaIBoAMQ7yFALjAwUyaDOSbFLbEe3f81YCKI AhAzQSGxJmslADLSxCRkIfBteTElADl0+jI55jMo+y3AIuAFQDl14CA9ICcnO386UDyp/RCAYyj7 IaEDoCdBI8MiELpnC4AtJmQrah9yOh4aq0CqHhpbOXVdLcAmOYTWPRAyRFsyRTcyRdkeFPkDUiAu KPUqERnQSQAo/ncvMS8iLRBmB9EFoACAdEskkAuAdAQgZG8LgGe/JAAsQgQAHwAlMCUAYiRB/yFB TIAHkQdACQAH4CFEJVE4ZHluJKAN4Cj7aG+acCViYQVAIbBscDXS/R4aUgDQEEAdwB4aHhUcYB8B QBKALtBDwhHTMTYgui1VYk8FEEDBLvFNB5D5MtBnZVVjHhZUdFRBCxPBVHZpLTE0NAFAIRD3WQMM 0FkDYjGgA2FCYAyS6mIQoCIGEWckoQPgJIFRA6BTdWJREGgkkCBAKEtBV1AgDiAp0CIgPHNcJS4y 0FtZAEBDU0ZTLkNPAE0+QElOVEVS+E5FVFG2WjAGYAIwWpdSVApQc2RNckoAcHWzCsAuMDE1JQAB 0DASsEg3OjBVQEFNYAdUAm9al1NRUi1VU1lfoFNAIRBL8C4IkHjeLjAAQ+ZgcVwgaiaRWpfyRE90 IHEKUGJAVw9YGtxzbB2AAUBqQG0fMFfRbxxgE3EdRB4Vb2bAURB08HBoXCcMAVQiE2FTxlcUwRTB VSA4HaBpHgtJ/01RAjAfsiQUI5EkeU5xIZPqJyZkLSbUJzezObBoFP8o9SnBIdAo4CDSJtVvmCZl /yqwEDAfsAdxJABOUiBAI1D8bmMEkAGQC4Ao9W+QC1H/J1Ef0FaQcHFxhSbVI5EQcPckciTQH1Bi LjAFoDmgI5HvKhAN4HaAb5BjA5EKsRBwvy4BH1AFoHdwZYAeFEIkQe9QoAfgTIB1MXV8oTgDJKFt JzYnQKpy0GMLYH6hP/9zyBnQXWBq4CMib5AZ0GggdmkvMU0xan6gcHFLsHP+dibBLZJKwzfBH6Bv kE0R/y+Rb5EDEAMgdGB2MXeAfSL/IiEuElRhItErIh8ABRB2oP9MsSGigeV4Bi3zBuBPYB9k/0yA MABNBCIQhLIlAAWxM8L9LhJpAQAtEDPSH9FOoU0T/3wyTzKKcSUAfREfQShCMjH/I5AzoVFRJRCB JilmL4GL0v968QeQBUAZ0FtgCyA5AB4UL1wREEAo+xXxAJPQAAAeAHAAAQAAAA4AAABEeW5hbWlj IHF1ZXJ5AAAAAgFxAAEAAAAbAAAAAcGd4KuZAz903Gj8RQKBDa7SJdHjdAAAM+HAAAMALgAAAAAA CwArAAAAAAALAAIAAQAAAB4AQhABAAAASwAAADwxNjNFQzNFMDY0QUU0MDQxOTI0MDVENUYwNDlE NkY1MzEyQUU2M0U2QGhoY2RjbXhzMDIuaG90ZWxzLmFkLmhpbHRvbi5jb20+AAADAP0/5AQAAEAA OQCgHqNf4p3BAQMA8T8JBAAAHgAxQAEAAAAIAAAAUkJFQVRUWQADABpAAAAAAB4AMEABAAAACAAA AFJCRUFUVFkAAwAZQAAAAAADACYAAAAAAAMANgAAAAAAAwCAEP////8CAUcAAQAAADMAAABjPVVT O2E9IDtwPUhpbHRvbjtsPUxBWEhITVhTMDEtMDIwMTE1MTYzMzMzWi0xMjI2NQAAAgH5PwEAAABI AAAAAAAAANynQMjAQhAatLkIACsv4YIBAAAAAAAAAC9PPUhJTFRPTi9PVT1MQVhISC9DTj1SRUNJ UElFTlRTL0NOPVJCRUFUVFkAHgD4PwEAAAAPAAAAUmFjaGFlbCBCZWF0dHkAAB4AOEABAAAACAAA AFJCRUFUVFkAAgH7PwEAAABIAAAAAAAAANynQMjAQhAatLkIACsv4YIBAAAAAAAAAC9PPUhJTFRP Ti9PVT1MQVhISC9DTj1SRUNJUElFTlRTL0NOPVJCRUFUVFkAHgD6PwEAAAAPAAAAUmFjaGFlbCBC ZWF0dHkAAB4AOUABAAAACAAAAFJCRUFUVFkAQAAHMO5mmFvincEBQAAIMPT4WeDgncEBHgA9AAEA AAAFAAAAUkU6IAAAAAAeAB0OAQAAAA4AAABEeW5hbWljIHF1ZXJ5AAAAHgA1EAEAAABBAAAAPEVE NjdGRDcwMEEzNUQ0MTFBQzI0MDAwNEFDNEM5NUUzMDUzQzI2OUFAbGF4aGhteHMwMS5oaWx0b24u Y29tPgAAAAALACkAAQAAAAsAIwABAAAAAwAGEF1J4GYDAAcQeAQAAAMAEBAAAAAAAwAREAIAAAAe AAgQAQAAAGUAAABIRUxMTyxZT1VXT1VMREhBVkVUT0hBVkVTT01FS0lORE9GTElNSVRUT1RIRU5V TUJFUk9GVkFSSUFCTEVTU0VUVVBBU1lPVVJJTlBVVFBBUkFNRVRFUixNQVlCRVRIRU5VTUJFAAAA AAIBfwABAAAAQQAAADxFRDY3RkQ3MDBBMzVENDExQUMyNDAwMDRBQzRDOTVFMzA1M0MyNjlBQGxh eGhobXhzMDEuaGlsdG9uLmNvbT4AAAAAEhoCApAGAA4AAAACAMcDAAD/////AAAAAMgEAhCAAQAU AAAAVW50aXRsZWQgQXR0YWNobWVudAByBwISgAMADgAAANIHAQAPAAgAHQAdAAIALQECE4ADAA4A AADSBwEADwAIACEAGwACAC8BAgWQBgDMDgAADQAAAAMAIQ4AAAAAAwALN8cDAAADACAOTg4AAAMA 9w8AAAAAAgEQaAEAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAEAABzAwjV7O4Z3BAUAACDDAzv5b4p3B AQMABTcGAAAAAgECNwEAAAAAAAAAHgABMAEAAAABAAAAAAAAAAIBCjcBAAAACwAAACqGSIb3FAMK AwIBAAIB+Q8BAAAAEAAAAJdedg3NCdYRuq0ABKxMpXcNAAE3AQAAABAOAAALAAAAAAAAAMAAAAAA AABG0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAABAAAAAQAAAAAA AAAAEAAAAgAAAAEAAAD+////AAAAAAAAAAD///////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// ///9////BAAAAP7///8FAAAA/v////7///////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// /1IAbwBvAHQAIABFAG4AdAByAHkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAWAAUA//////////8CAAAAFgMAAAAAAADAAAAAAAAARgAAAAAAAAAAAAAAAECFHLzi ncEBAwAAAEACAAAAAAAAAQBPAGwAZQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoAAgH///////////////8AAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAACAE8AbABlAFAAcgBlAHMAMAAwADAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGAACAQEAAAADAAAA/////wAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAACAAQAAAAAAAAMATQBhAGkAbABTAHQA cgBlAGEAbQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYAAIB//// /wQAAAD/////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAAAAwAAAAAAAAA /v///wIAAAADAAAABAAAAAUAAAAGAAAA/v////7////+//////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////8B AAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAA/////wgAAAAEAAAAAQAAAP////8CAAAAAAAAAMw6AABpAAAAUAEAACgAAAA5AgAABAAA AAEAAQAAAAAAIAEAAMQOAADEDgAAAAAAAAAAAAAAAAAA////AP////////////////////////// ////////////////////////////////////////////////////////////////////gAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgP////////////////////////////////////////// ////////////////////////////////////////////////////gE5BTkkAAAAAAQAAAM86AABq AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFIA aQBjAGgARQBkAGkAdABGAGwAYQBnAHMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAcAAIA////////////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA CAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///////////////wAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////// ////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA QAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUvQ== --0__=Hdsu70Ct7rSnMbqxOf4AUjSZKMvrF8zZJWpTdXenjqDFTBYnG0l5YxB3-- From owner-sqr-users@list.iex.net Tue Jan 15 12:09:47 2002 Date: Tue, 15 Jan 2002 08:57:23 -0800 From: Arun Kumar Subject: Re: Dynamic query Shuba, I think you should be able to find more details in our archive. One of the method is, you can build a dynamic variable by concating all the selected fields to looks like this lET $TEMP = EMPLID || ',' || JOBCODE || ',' || RATE_1 and you can use this dynamic variable in your begin select. ex begin-select [$test] &test=char from table1,table2 end-select The column variable &test is already in CSV format which you can use directly write to the output CSV file. Hope this helps Arun --- "Sangameswaran Subathra (KAWP 12)" wrote: > Hi, > > I want to input as parameter, all the > 'select-fields' for my query. > The no. of fields I want to select each time is also > uncertain. > I plan to get all the fields as separated by commas > which I can parse and count. > But how do I use the same in the 'begin-select' > clause? > The resultset I require is just a csv file. > Therefore I think I will not encounter any problem > in writing the results. > If anybody have done this before, or has any idea as > to how this can be done, could you please help me? > > Thanks and best regards, > Subha. __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ From owner-sqr-users@list.iex.net Tue Jan 15 12:18:53 2002 Date: Tue, 15 Jan 2002 09:06:43 -0800 From: Arun Kumar Subject: Re: SQR Email and Excel Hi, First the sqr can only write ASCII file which you cannot use excel to open unless you are creating using SLK technique. If you are using slk technique then you can set the width of any column. ex., write 5 from 'F;W1 6 12' Here the width of the columns 1 to 6 being set to 12 units in excel Hope this helps Arun --- tsenuwani Makhari wrote: > Hi Guys ! > > Problem Detail : > We need to send a form through E-Mail for several > departments to fill in > their part of the electronic form. > The pre-filled (heading) part of this form are found > within the database. So > the form is written using SQR. Our users also need > an option to open this > form using MS Excell and also normal Email. ( When > they user MS Excell , > they want the form to open with the right column > sizes[width]. ) > > eg. > __________________________________________________________ > Order No: 18NH 12312 Line Number : 123 > Date : 2001 - 12 - 14 > MM Dept | Finance Dept | ADMIN Dept > Product Codes | Product Price/Qty | > Product CHG Number > _____________ |____________________ > |________________________ > _____________ |____________________ > |________________________ > _____________ |____________________ > |________________________ > _____________ |____________________ > |________________________ > _____________ |____________________ > |________________________ > _____________ |____________________ > |________________________ > _____________ |____________________ > |________________________ > > > Please help urgently . This is a crisis. __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ From owner-sqr-users@list.iex.net Tue Jan 15 13:13:34 2002 Date: Tue, 15 Jan 2002 09:55:31 -0800 From: Arun Kumar Subject: Fwd: ScanMail Message: To Sender, sensitive content found and action t aken. does anyone knows why we receive such mails?? Arun --- System Attendant wrote: > From: System Attendant > > To: "'Arun Kumar'" > Subject: ScanMail Message: To Sender, sensitive > content found and action t > aken. > Date: Tue, 15 Jan 2002 09:24:24 -0800 > > Trend SMEX Content Filter has detected sensitive > content. > > Place = SQR-USERS@list.iex.net; ; ; > sqr-users@list.iex.net > Sender = Arun Kumar > Subject = Re: Dynamic query > Delivery Time = January 15, 2002 (Tuesday) 09:24:22 > Policy = Anti-Spam > Action on this mail = Quarantine message > > Warning message from administrator: > Content filter has detected a sensitive e-mail. __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ From owner-sqr-users@list.iex.net Tue Jan 15 15:34:10 2002 Date: Tue, 15 Jan 2002 14:19:37 -0600 From: the dragon Subject: Re: Fwd: ScanMail Message: To Sender, sensitive content found and action t aken. Because your systems administration has some software installed which scans e-mails and looks for catch phrases and such nonsense that only anally retentive managers would appreciate. They think you're giving away company secrets. It means you need to be paranoid because big brother is sniffing in your shorts. clark 'the dragon' willis dragon enterprises, consulting services "doing it right, the first time, for less" 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---- does anyone knows why we receive such mails?? Arun _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From owner-sqr-users@list.iex.net Tue Jan 15 16:34:01 2002 Date: Tue, 15 Jan 2002 15:24:08 -0600 From: Bob Helm Subject: Re: Fwd: ScanMail Message: To Sender, sensitive content found and action t aken. Does anal retentive have a hyphen? ;-) B The Programmer formerly known as Bob Mediware Information Systems Inc. (913) 307-1045 Bob.Helm@Mediware.com This message has been sent using 100% recycled electrons -----Original Message----- From: the dragon [mailto:ceprn@HOTMAIL.COM] Sent: Tuesday, January 15, 2002 2:20 PM To: SQR-USERS@list.iex.net Subject: Re: Fwd: ScanMail Message: To Sender, sensitive content found and action t aken. Because your systems administration has some software installed which scans e-mails and looks for catch phrases and such nonsense that only anally retentive managers would appreciate. They think you're giving away company secrets. It means you need to be paranoid because big brother is sniffing in your shorts. clark 'the dragon' willis dragon enterprises, consulting services "doing it right, the first time, for less" 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---- does anyone knows why we receive such mails?? Arun _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From owner-sqr-users@list.iex.net Wed Jan 16 02:01:38 2002 Date: Wed, 16 Jan 2002 12:35:13 +0530 From: Satyen Timbadia Subject: Italic fonts in SQR ? Hi, I'm working on SQR 4.3.2. I want to format the headings with Times New Roman (Italics) fonts. I getting Times New Roman font but not getting Italic style. Can anyone suggest a way out ? Thanks & Regards, Satyen Timbadia PCS LTD. Voice : 778 1006/8/9 - Ext: 3023 Email : satyen.timbadia@patni.com From owner-sqr-users@list.iex.net Wed Jan 16 04:31:17 2002 Date: Wed, 16 Jan 2002 11:17:42 +0200 From: tsenuwani Makhari Subject: Emailing using SQR Can you send E-mail using SQR ? How ? Can you send in attachments through Email ? How ? Anyone ever worked on this please help ! ____________________________________________________________________________ _________________ Hi Guys ! Problem Detail : We need to send a form through E-Mail for several departments to fill in their part of the electronic form. The pre-filled (heading) part of this form are found within the database. So the form is written using SQR. Our users also need an option to open this form using MS Excell and also normal Email. ( When they user MS Excell , they want the form to open with the right column sizes[width]. ) eg. __________________________________________________________ Order No: 18NH 12312 Line Number : 123 Date : 2001 - 12 - 14 MM Dept | Finance Dept | ADMIN Dept Product Codes | Product Price/Qty | Product CHG Number _____________ |____________________ |________________________ _____________ |____________________ |________________________ _____________ |____________________ |________________________ _____________ |____________________ |________________________ _____________ |____________________ |________________________ _____________ |____________________ |________________________ _____________ |____________________ |________________________ Please help urgently . This is a crisis. From owner-sqr-users@list.iex.net Wed Jan 16 06:16:38 2002 Date: Wed, 16 Jan 2002 07:07:14 -0400 From: Peter Clark Subject: Re: Emailing using SQR Yes. Yes. Yes, lots of people have. Which is why the archives of this mail list should be able to provide you with the answers you need. Go to www.sqrug.com and use a search keyword like "email" or "e-mail" >>> tsenuwani Makhari 2002/01/16 5:17:42 am >>> Can you send E-mail using SQR ? How ? Can you send in attachments through Email ? How ? Anyone ever worked on this please help ! ____________________________________________________________________________ _________________ Hi Guys ! Problem Detail : We need to send a form through E-Mail for several departments to fill in their part of the electronic form. The pre-filled (heading) part of this form are found within the database. So the form is written using SQR. Our users also need an option to open this form using MS Excell and also normal Email. ( When they user MS Excell , they want the form to open with the right column sizes[width]. ) eg. __________________________________________________________ Order No: 18NH 12312 Line Number : 123 Date : 2001 - 12 - 14 MM Dept | Finance Dept | ADMIN Dept Product Codes | Product Price/Qty | Product CHG Number _____________ |____________________ |________________________ _____________ |____________________ |________________________ _____________ |____________________ |________________________ _____________ |____________________ |________________________ _____________ |____________________ |________________________ _____________ |____________________ |________________________ _____________ |____________________ |________________________ Please help urgently . This is a crisis. From owner-sqr-users@list.iex.net Wed Jan 16 07:02:36 2002 Date: Wed, 16 Jan 2002 03:56:43 -0800 From: Franck Masson Subject: Re: SQR Email and Excel In this case i will recommande to write an sqr code that produce your excel document using the sylk format. It is an ascii format that you can easely produce with SQR. to have an idea of how is structured sylk format open excel create a document and save it as sylk format. To create this sylk output in sqr use excell to produce the excell layout and use sqr to read file and replace/add lines Franck, -----Original Message----- From: tsenuwani Makhari [mailto:tshenuwani@INFOWAVE.CO.ZA] Sent: mardi 15 janvier 2002 15:55 To: SQR-USERS@list.iex.net Subject: SQR Email and Excel Hi Guys ! Problem Detail : We need to send a form through E-Mail for several departments to fill in their part of the electronic form. The pre-filled (heading) part of this form are found within the database. So the form is written using SQR. Our users also need an option to open this form using MS Excell and also normal Email. ( When they user MS Excell , they want the form to open with the right column sizes[width]. ) eg. __________________________________________________________ Order No: 18NH 12312 Line Number : 123 Date : 2001 - 12 - 14 MM Dept | Finance Dept | ADMIN Dept Product Codes | Product Price/Qty | Product CHG Number _____________ |____________________ |________________________ _____________ |____________________ |________________________ _____________ |____________________ |________________________ _____________ |____________________ |________________________ _____________ |____________________ |________________________ _____________ |____________________ |________________________ _____________ |____________________ |________________________ Please help urgently . This is a crisis. From owner-sqr-users@list.iex.net Wed Jan 16 09:09:56 2002 Date: Wed, 16 Jan 2002 08:58:35 -0500 From: Ray Ontko Subject: Re: Italic fonts in SQR ? Unfortunately, there is no printer-independent support for italics in SQR. I'm not sure why, but I suspect that traditionally it couldn't be implemented on line printers or dumb terminals, and they never got around to adding it later. If you're printing directly to an HP or PS printer using -printer:hp or -printer:ps, you might be able to use PRINT-DIRECT to tell the printer that the text is to be displayed in italics. For HP this shouldn't be too hard, but for PS, you'll need to know a little about PostScript. Here's are some HP suggestions: http://www.sqrug.com/sqr-users/sqrusers_99q3/msg01020.html http://www.sqrug.com/sqr-users/sqrusers_99q3/msg01021.html Here's a PostScript suggestion: http://www.sqrug.com/sqr-users/sqrusers_98q1/msg00062.html You can search the SQR-USERS archives yourself by visiting http://www.sqrug.com/sqr-users/ Ray [Charset iso-8859-1 unsupported, filtering to ASCII...] > Hi, > I'm working on SQR 4.3.2. I want to format the headings with Times New Roman > (Italics) fonts. I getting Times New Roman font but not getting Italic > style. > Can anyone suggest a way out ? > > Thanks & Regards, > Satyen Timbadia > PCS LTD. > Voice : 778 1006/8/9 - Ext: 3023 > Email : satyen.timbadia@patni.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/ From owner-sqr-users@list.iex.net Wed Jan 16 09:51:23 2002 Date: Wed, 16 Jan 2002 14:37:34 -0000 From: "Rosteck, Mark" Subject: Raising errors in SQR? Hello, Aside from SQR sending its own error messages to the default error file, I would also like to be able to send my own error messages to it. Is there any existing way to do a "raise error" in SQR so that the error text gets directed to SQR's error file? Or, if not, do you know of a simple workaround to accomplish this? Thanks... Mark From owner-sqr-users@list.iex.net Wed Jan 16 10:26:54 2002 Date: Wed, 16 Jan 2002 10:17:52 -0500 From: "Turner, Ivan" Subject: get involved Follow this link and get involved. http://qwesteferral.com/r.jsp?a=Mr9Y3cg7LtxfVU541Lz2HA$$&x From owner-sqr-users@list.iex.net Wed Jan 16 10:49:24 2002 Date: Wed, 16 Jan 2002 11:39:56 -0400 From: Peter Clark Subject: Re: Raising errors in SQR? default error file? Are you referring to SQR.LOG? If so, the text of display and show commands are written to that file. >>> "Rosteck, Mark" 2002/01/16 10:37:34 am >>> Hello, Aside from SQR sending its own error messages to the default error file, I would also like to be able to send my own error messages to it. Is there any existing way to do a "raise error" in SQR so that the error text gets directed to SQR's error file? Or, if not, do you know of a simple workaround to accomplish this? Thanks... Mark From owner-sqr-users@list.iex.net Wed Jan 16 11:18:08 2002 Date: Wed, 16 Jan 2002 16:04:58 -0000 From: "Rosteck, Mark" Subject: Re: Raising errors in SQR? Peter, I'm referring to the SQR error file, which by default is .ERR (e.g., MYPROG.ERR when running MYPROG.SQR). I haven't yet been able to find any way of directing my own error messages to this file, and it would be very useful if I could. -----Original Message----- From: Peter Clark [mailto:PGCLARK@VAC-ACC.GC.CA] Sent: 16 January 2002 15:40 To: SQR-USERS@list.iex.net Subject: Re: Raising errors in SQR? default error file? Are you referring to SQR.LOG? If so, the text of display and show commands are written to that file. >>> "Rosteck, Mark" 2002/01/16 10:37:34 am >>> Hello, Aside from SQR sending its own error messages to the default error file, I would also like to be able to send my own error messages to it. Is there any existing way to do a "raise error" in SQR so that the error text gets directed to SQR's error file? Or, if not, do you know of a simple workaround to accomplish this? Thanks... Mark From owner-sqr-users@list.iex.net Wed Jan 16 11:41:07 2002 Date: Wed, 16 Jan 2002 10:25:08 -0600 From: "Hins, Thomas D." Subject: Re: get involved I say ban this guy from the Users Group! -----Original Message----- From: Turner, Ivan [mailto:Ivan.Turner@QWEST.COM] Sent: Wednesday, January 16, 2002 9:18 AM To: SQR-USERS@list.iex.net Subject: get involved Follow this link and get involved. http://qwesteferral.com/r.jsp?a=Mr9Y3cg7LtxfVU541Lz2HA$$&x From owner-sqr-users@list.iex.net Wed Jan 16 12:01:34 2002 Date: Wed, 16 Jan 2002 11:43:23 -0500 From: "Beller, Jay" Subject: Re: get involved or EVERYONE from the user group send HIM annoying messages directly to Ivan.Turner@QWEST.COM -----Original Message----- From: Hins, Thomas D. [mailto:Thomas-Hins@OUHSC.EDU] Sent: Wednesday, January 16, 2002 11:25 AM To: SQR-USERS@list.iex.net Subject: Re: get involved I say ban this guy from the Users Group! -----Original Message----- From: Turner, Ivan [mailto:Ivan.Turner@QWEST.COM] Sent: Wednesday, January 16, 2002 9:18 AM To: SQR-USERS@list.iex.net Subject: get involved Follow this link and get involved. http://qwesteferral.com/r.jsp?a=Mr9Y3cg7LtxfVU541Lz2HA$$&x From owner-sqr-users@list.iex.net Wed Jan 16 12:11:15 2002 Date: Wed, 16 Jan 2002 08:57:21 -0800 From: Arun Kumar Subject: Re: Raising errors in SQR? Mark, whenever you need to write something to the log file use "SHOW" statement. When you show statement they appear only on the log file not to the output file. Hope this helps Arun --- Peter Clark wrote: > default error file? Are you referring to SQR.LOG? If > so, the text of display and show commands are > written to that file. > > >>> "Rosteck, Mark" 2002/01/16 > 10:37:34 am >>> > Hello, > > Aside from SQR sending its own error messages to the > default error file, I > would also like to be able to send my own error > messages to it. > Is there any existing way to do a "raise error" in > SQR so that the error > text gets directed to SQR's error file? Or, if not, > do you know of a simple > workaround to accomplish this? > > Thanks... > Mark __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ From owner-sqr-users@list.iex.net Wed Jan 16 12:11:57 2002 Date: Wed, 16 Jan 2002 09:01:53 -0800 From: Rachael Beatty Subject: Re: get involved --0__=Sxu4YEoZEjWppaGjHzWUJQzuStbV5VeQ3ZbC3mncyVSrScVa23nH7CSo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 7bit Hello, I'm sorry. I usually do not say anything when I get spam'ed, but this one really gets me. This is not the place to send these kinds of things. This is a user group for SQR. The link you sent does not even remotely relate to what this user group is about! If I missed the relationship, please let me know. Rachael > -----Original Message----- > From: "Turner, Ivan" @INTERNET > Sent: Wednesday, January 16, 2002 7:18 AM > To: SQR-USERS@list.iex.net > Subject: get involved > > > Follow this link and get involved. > > http://qwesteferral.com/r.jsp?a=Mr9Y3cg7LtxfVU541Lz2HA$$&x > (See attached file: C.DTF) --0__=Sxu4YEoZEjWppaGjHzWUJQzuStbV5VeQ3ZbC3mncyVSrScVa23nH7CSo Content-Type: application/octet-stream; name=C.DTF Content-Disposition: attachment; filename=C.DTF Content-Transfer-Encoding: base64 eJ8+IggQAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy b3NvZnQgTWFpbC5Ob3RlADEIAQWAAwAOAAAA0gcBABAACQABADUAAwAsAQEggAMADgAAANIHAQAQ AAgAMwAGAAMALgEBCYABACEAAAA3NjNBOUMwRTdBMEFENjExQUM0NjAwMDBFODY3QzBFRgAtBwEE gAEAEQAAAFJFOiBnZXQgaW52b2x2ZWQAuAUBDYAEAAIAAAABAAEAAQOQBgCUCgAANwAAAAMAAIAI IAYAAAAAAMAAAAAAAABGAAAAAFKFAADwEwAAHgABgAggBgAAAAAAwAAAAAAAAEYAAAAAVIUAAAEA AAAEAAAAOC41AAsAAoAIIAYAAAAAAMAAAAAAAABGAAAAAAaFAAAAAAAAAwADgAggBgAAAAAAwAAA AAAAAEYAAAAAAYUAAAAAAAALAASACCAGAAAAAADAAAAAAAAARgAAAAADhQAAAAAAAAsABYAIIAYA AAAAAMAAAAAAAABGAAAAAA6FAAAAAAAAAwAGgAggBgAAAAAAwAAAAAAAAEYAAAAAEIUAAAAAAAAD AAeACCAGAAAAAADAAAAAAAAARgAAAAARhQAAAAAAAAsAD4AIIAYAAAAAAMAAAAAAAABGAAAAABSF AAAAAAAAAwAIgAggBgAAAAAAwAAAAAAAAEYAAAAAGIUAAAAAAAAeAAmACCAGAAAAAADAAAAAAAAA RgAAAAA2hQAAAQAAAAEAAAAAAAAAHgAKgAggBgAAAAAAwAAAAAAAAEYAAAAAN4UAAAEAAAABAAAA AAAAAB4AC4AIIAYAAAAAAMAAAAAAAABGAAAAADiFAAABAAAAAQAAAAAAAAALABGACCAGAAAAAADA AAAAAAAARgAAAACChQAAAQAAAAsADIALIAYAAAAAAMAAAAAAAABGAAAAAACIAAAAAAAACwANgAsg BgAAAAAAwAAAAAAAAEYAAAAABYgAAAAAAAACAQkQAQAAAEMDAAA/AwAAlwQAAExaRnUdQr4OAwAK AHJjcGcxMjU+MgD0AfcCpAT0AgBjaEEKwHNldDAgCFBtfw3gBgQF4AKDAFAD1AIAcPBycTIgBxMC gw5QA1VEVG0EIFJtbgKDMzcERwhVAoB9CoAIyCA7ewliDjA1CboXIRbTDiA4vwm6GJEW0wmsAoAK gXYIkKR3awuAZDQMYGMAUC0LA2MAQQtgbg4QMDODFMELwzQgSGVsCQAOLAqiCoQKgEknbSACcwWw cnkuICBJECB1c3UHQGx5ICBkbyBubwVAc2EjIBAAcHl0aAuAZyDsd2gJ8B+BZxCAHwAKsIRtJwmA LCBidQVA5yERBCACIGUgGdAf4yHh6wQgB4AuHhpUIwIjESBi1yEQI2ALUWMjYHQgQBBwtxuQJeIQ cCAbciMhZiLi7RzAcx9hJTZhH6EEkCHQMQNgdXAgAhAFwFNRLlIfYCR8I2BsC4BrIH55CGAmsgVA IDAHkSBiZe52IZEZ0ARgdB3AIBAZ0P8LYC1wJoIhcC3wIuQpOSji+wbgIsAhH3AeGyfgH5AQ4K8E EAmAJeMtw2kCIHMhIP5wIpALUCOQJ0EzEAVAB4DrJ2AgYHcka1IA0BBAHcDfHhocUQFAEoAtYWMQ ARHiUDE2IC03ck8FEGf/C4AHQAXQB5AgoCHgN3MeFg82hDZRCxM2hmktMTQ+NAFAK3A7EwzQOxNi ICpGA2E6DINiEKAiVEsIcCNQciKQSXYAcCIUIDw9wi49REBRVwBFU1QuQ09NPgBASU5URVJORb5U KmY8QAZgAjA8p1cJgNkjUHNkILAikEoAcB/QXR9AIDdAIpAB0DASsDcoOjE4EsBNQDdUbyM8pyoh LVVTP9BTQJErcHN0LgiQeC4jUOMQAEBHdWJqNrE8pyHifQuAdgbwLPALMTk/OkhzjmwdgAFASoBt dWw54W8cYBNxHUQeFW9HEC3wdPBwaFwnDAE2MhNhNdbvFMEUwTcwQ4BGBvAJAAfgvyLzK3MAcCbw R/oka2hMwWA6Ly9xdweQLXBmFQSQcgdALgWgbS9yBC5qIiA/YT1NcoA5WTNjZzdMDNAAZlZVNTQx THqAMkhBJCQmeB4aBRXxAFZgAB4AcAABAAAADQAAAGdldCBpbnZvbHZlZAAAAAACAXEAAQAAABsA AAABwZ6uSMZBZBx8igtEDb2Pd0JrgTnqAABS5QAAAwAmAAEAAAADAC4AAAAAAAsAKwAAAAAACwAC AAEAAAACATEAAQAAABUBAABQQ0RGRUIwOQABAAIAcwAAAAAAAAA4obsQBeUQGqG7CAArKlbCAABF TVNNREIuRExMAAAAAAAAAAAbVfogqmYRzZvIAKoAL8RaDAAAAExBWEhITVhTMDEAL289SGlsdG9u L291PUxBWEhIL2NuPVJlY2lwaWVudHMvY249cmJlYXR0eQAuAAAAAAAAALZm2BZNXNURrEIAAOhn wO8BAO1n/XAKNdQRrCQABKxMleMAAAMylJwAAAAAAAAuAAAAAAAAALZm2BZNXNURrEIAAOhnwO8B AO1n/XAKNdQRrCQABKxMleMAAAMylJ0AABAAAAB2OpwOegrWEaxGAADoZ8DvEQAAAFJFOiBnZXQg aW52b2x2ZWQAAAAAHgBCEAEAAABLAAAAPDE2M0VDM0UwNjRBRTQwNDE5MjQwNUQ1RjA0OUQ2RjUz MTJBOERBRjFAaGhjZGNteHMwMi5ob3RlbHMuYWQuaGlsdG9uLmNvbT4AAAMA3j+vbwAAQAA5AGAW bH+vnsEBAwDxPwkEAAAeADFAAQAAAAgAAABSQkVBVFRZAAMAGkAAAAAAHgAwQAEAAAAIAAAAUkJF QVRUWQADABlAAAAAAAMANgAAAAAAAwD9P+QEAAADAIAQ/////wIBRwABAAAAMwAAAGM9VVM7YT0g O3A9SGlsdG9uO2w9TEFYSEhNWFMwMS0wMjAxMTYxNzAxNTNaLTIyOTI2AAACAfk/AQAAAEgAAAAA AAAA3KdAyMBCEBq0uQgAKy/hggEAAAAAAAAAL089SElMVE9OL09VPUxBWEhIL0NOPVJFQ0lQSUVO VFMvQ049UkJFQVRUWQAeAPg/AQAAAA8AAABSYWNoYWVsIEJlYXR0eQAAHgA4QAEAAAAIAAAAUkJF QVRUWQACAfs/AQAAAEgAAAAAAAAA3KdAyMBCEBq0uQgAKy/hggEAAAAAAAAAL089SElMVE9OL09V PUxBWEhIL0NOPVJFQ0lQSUVOVFMvQ049UkJFQVRUWQAeAPo/AQAAAA8AAABSYWNoYWVsIEJlYXR0 eQAAHgA5QAEAAAAIAAAAUkJFQVRUWQBAAAcwktA1Ua+ewQFAAAgwjD+f/a2ewQEeAD0AAQAAAAUA AABSRTogAAAAAB4AHQ4BAAAADQAAAGdldCBpbnZvbHZlZAAAAAAeADUQAQAAAEEAAAA8RUQ2N0ZE NzAwQTM1RDQxMUFDMjQwMDA0QUM0Qzk1RTMwNTNDMjZBQUBsYXhoaG14czAxLmhpbHRvbi5jb20+ AAAAAAsAKQABAAAACwAjAAEAAAADAAYQ0s2bIgMABxDiAQAAAwAQEAAAAAADABEQAQAAAB4ACBAB AAAAZQAAAEhFTExPLElNU09SUllJVVNVQUxMWURPTk9UU0FZQU5ZVEhJTkdXSEVOSUdFVFNQQU1F RCxCVVRUSElTT05FUkVBTExZR0VUU01FVEhJU0lTTk9UVEhFUExBQ0VUT1NFTkRUSEUAAAAAAgF/ AAEAAABBAAAAPEVENjdGRDcwMEEzNUQ0MTFBQzI0MDAwNEFDNEM5NUUzMDUzQzI2QUFAbGF4aGht eHMwMS5oaWx0b24uY29tPgAAAADJUwICkAYADgAAAAIACwIAAP////8AAAAACwQCEIABABQAAABV bnRpdGxlZCBBdHRhY2htZW50AHIHAhKAAwAOAAAA0gcBABAACQABADQAAwArAQITgAMADgAAANIH AQAQAAkAAQA0AAMAKwECBZAGAMwOAAANAAAAAwAhDgAAAAADAAs3CwIAAAMAIA5ODgAAAwD3DwAA AAACARBoAQAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAQAAHMOAO0X6vnsEBQAAIMOAO0X6vnsEBAwAF NwYAAAACAQI3AQAAAAAAAAAeAAEwAQAAAAEAAAAAAAAAAgEKNwEAAAALAAAAKoZIhvcUAwoDAgEA AgH5DwEAAAAQAAAAVXNc4JYK1hG6rQAErEyldw0AATcBAAAAEA4AAAsAAAAAAAAAwAAAAAAAAEbQ zxHgobEa4QAAAAAAAAAAAAAAAAAAAAA+AAMA/v8JAAYAAAAAAAAAAAAAAAEAAAABAAAAAAAAAAAQ AAACAAAAAQAAAP7///8AAAAAAAAAAP////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////3/ //8EAAAA/v///wUAAAD+/////v////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////UgBv AG8AdAAgAEUAbgB0AHIAeQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAABYABQD//////////wIAAAAWAwAAAAAAAMAAAAAAAABGAAAAAAAAAAAAAAAA4PNQ3a+ewQED AAAAQAIAAAAAAAABAE8AbABlAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAACgACAf///////////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAIATwBsAGUAUAByAGUAcwAwADAAMAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYAAIBAQAAAAMAAAD/////AAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAIABAAAAAAAAAwBNAGEAaQBsAFMAdAByAGUA YQBtAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAAgH/////BAAA AP////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAADAAAAAAAAAD+//// AgAAAAMAAAAEAAAABQAAAAYAAAD+/////v////7///////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////wEAAAIA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAD/////CAAAAAQAAAABAAAA/////wIAAAAAAAAAzDoAAGkAAABQAQAAKAAAADkCAAAEAAAAAQAB AAAAAAAgAQAAxA4AAMQOAAAAAAAAAAAAAAAAAAD///8A//////////////////////////////// //////////////////////////////////////////////////////////////+AAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAGA//////////////////////////////////////////////// //////////////////////////////////////////////+ATkFOSQAAAAABAAAAzzoAAGoAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUgBpAGMA aABFAGQAaQB0AEYAbABhAGcAcwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ABwAAgD///////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAA DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAP///////////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////////////////AAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////// //8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAABAAAAA AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACW9 --0__=Sxu4YEoZEjWppaGjHzWUJQzuStbV5VeQ3ZbC3mncyVSrScVa23nH7CSo-- From owner-sqr-users@list.iex.net Wed Jan 16 12:26:27 2002 Date: Wed, 16 Jan 2002 11:11:27 -0600 From: Bob Helm Subject: missing crlf We're printing labels and everything is fine until the last line of the last label. There should be a carriage return and line feed, but there isn't. It is there for every label previous until the very last label. Has anyone come across this problem with SQR? Thanks for any help. Baffled Bob The Programmer formerly known as Bob Mediware Information Systems Inc. (913) 307-1045 Bob.Helm@Mediware.com This message has been sent using 100% recycled electrons From owner-sqr-users@list.iex.net Wed Jan 16 12:48:33 2002 Date: Wed, 16 Jan 2002 13:38:23 -0400 From: Peter Clark Subject: Re: get involved Ivan's posting was most inappropriate for this list, but a ban? He has made several contributions to the group. This was probably just a mistake on Ivan's part. Ivan? >>> "Hins, Thomas D." 2002/01/16 12:25:08 pm >>> I say ban this guy from the Users Group! -----Original Message----- From: Turner, Ivan [mailto:Ivan.Turner@QWEST.COM] Sent: Wednesday, January 16, 2002 9:18 AM To: SQR-USERS@list.iex.net Subject: get involved Follow this link and get involved. http://qwesteferral.com/r.jsp?a=Mr9Y3cg7LtxfVU541Lz2HA$$&x From owner-sqr-users@list.iex.net Wed Jan 16 13:08:43 2002 Date: Wed, 16 Jan 2002 12:49:38 -0500 From: Ray Ontko Subject: Re: get involved I hope this won't be necessary. I have already sent him a private message asking politely that he refrain from posting such messages to the group. Ray [Charset iso-8859-1 unsupported, filtering to ASCII...] > or EVERYONE from the user group send HIM annoying messages directly to Ivan.Turner@QWEST.COM > > -----Original Message----- > From: Hins, Thomas D. [mailto:Thomas-Hins@OUHSC.EDU] > Sent: Wednesday, January 16, 2002 11:25 AM > To: SQR-USERS@list.iex.net > Subject: Re: get involved > > > I say ban this guy from the Users Group! > > -----Original Message----- > From: Turner, Ivan [mailto:Ivan.Turner@QWEST.COM] > Sent: Wednesday, January 16, 2002 9:18 AM > To: SQR-USERS@list.iex.net > Subject: get involved > > > Follow this link and get involved. > > http://qwesteferral.com/r.jsp?a=Mr9Y3cg7LtxfVU541Lz2HA$$&x > ---------------------------------------------------------------------- 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/ From owner-sqr-users@list.iex.net Wed Jan 16 13:14:19 2002 Date: Wed, 16 Jan 2002 09:54:17 -0800 From: David Thorburn Subject: Re: get involved I say, send him a virus! (just kidding) D. ----- Original Message ----- From: "Hins, Thomas D." To: Sent: Wednesday, January 16, 2002 8:25 AM Subject: Re: get involved > I say ban this guy from the Users Group! > > -----Original Message----- > From: Turner, Ivan [mailto:Ivan.Turner@QWEST.COM] > Sent: Wednesday, January 16, 2002 9:18 AM > To: SQR-USERS@list.iex.net > Subject: get involved > > > Follow this link and get involved. > > http://qwesteferral.com/r.jsp?a=Mr9Y3cg7LtxfVU541Lz2HA$$&x > From owner-sqr-users@list.iex.net Wed Jan 16 13:30:38 2002 Date: Wed, 16 Jan 2002 12:18:33 -0600 From: the dragon Subject: Re: get involved All, I hate spammers as much as you do, especially when the spam comes from a trusted source. But, let's not jump to conclusions about Ivan's malicious intent to spam the newsgroup. I have looked at Ivan's posts in the past in the Archives and they are all on topic and appropriate. More likely, this nonsense was an internal (QWEST) program which went through eveyrone's personal address books and sent that e-mail out. I say hold QWest responsible, and not Ivan. Certainly, if this was an intentional act on Ivan's part I would expect an apology from him at the very least. clark 'the dragon' willis dragon enterprises, consulting services "doing it right, the first time, for less" 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---- Hello, I'm sorry. I usually do not say anything when I get spam'ed, but this one really gets me. This is not the place to send these kinds of things. This is a user group for SQR. The link you sent does not even remotely relate to what this user group is about! If I missed the relationship, please let me know. Rachael _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From owner-sqr-users@list.iex.net Wed Jan 16 13:31:08 2002 Date: Wed, 16 Jan 2002 10:16:20 -0800 From: Laura Lopez Subject: Re: get involved I agree with Peter. I have been reading past emails from Ivan and he has contributed with answers to some questions. As long as he apologizes and promises not to ever do it again... he should stay. > -----Original Message----- > From: Peter Clark [SMTP:PGCLARK@VAC-ACC.GC.CA] > Sent: Wednesday, January 16, 2002 9:38 AM > To: SQR-USERS@list.iex.net > Subject: Re: get involved > > Ivan's posting was most inappropriate for this list, but a ban? He has > made several contributions to the group. This was probably just a mistake > on Ivan's part. Ivan? > > >>> "Hins, Thomas D." 2002/01/16 12:25:08 pm >>> > I say ban this guy from the Users Group! > > -----Original Message----- > From: Turner, Ivan [mailto:Ivan.Turner@QWEST.COM] > Sent: Wednesday, January 16, 2002 9:18 AM > To: SQR-USERS@list.iex.net > Subject: get involved > > > Follow this link and get involved. > > http://qwesteferral.com/r.jsp?a=Mr9Y3cg7LtxfVU541Lz2HA$$&x From owner-sqr-users@list.iex.net Wed Jan 16 13:54:31 2002 Date: Wed, 16 Jan 2002 13:23:45 -0500 From: Ven Garlapati Subject: SQR reports conversion to HTML format Hi, I am new to the SQR and HTML, while converting few sqr reports to HTML format, using -Printer:HT, I have faced the following problem: When the output is very long - say several pages, for every 14th line or record, the file_name.htm has FF (First Page), F (Previous), N(Next) and LF (Last Page) links. These links are cauing increase in the column width and row size of the report and looks bad in the middle of the report, how can avoid this problem, and also how can I put the page header on top of every page, instead of 1st page alone ... Thanks for your help Ven From owner-sqr-users@list.iex.net Wed Jan 16 13:58:50 2002 Date: Wed, 16 Jan 2002 13:26:25 -0500 From: "Reimers, Bill" Subject: Re: get involved Having just joined the group this morning, Ivan's message was the first that I received (not an encouraging start to something I've been looking forward to). On first glance, it appeared to be like other junk mail I receive, and I instinctively added his name to my junk email senders list, and deleted the message. Thus, in a sense, I instituted my own private ban, which would be a shame if actual contributions orginate from this same source. Lessons all-around it would seem. -----Original Message----- From: Peter Clark [mailto:PGCLARK@VAC-ACC.GC.CA] Sent: Wednesday, January 16, 2002 12:38 PM To: SQR-USERS@list.iex.net Subject: Re: get involved Ivan's posting was most inappropriate for this list, but a ban? He has made several contributions to the group. This was probably just a mistake on Ivan's part. Ivan? >>> "Hins, Thomas D." 2002/01/16 12:25:08 pm >>> I say ban this guy from the Users Group! -----Original Message----- From: Turner, Ivan [mailto:Ivan.Turner@QWEST.COM] Sent: Wednesday, January 16, 2002 9:18 AM To: SQR-USERS@list.iex.net Subject: get involved Follow this link and get involved. http://qwesteferral.com/r.jsp?a=Mr9Y3cg7LtxfVU541Lz2HA$$&x From owner-sqr-users@list.iex.net Wed Jan 16 14:04:19 2002 Date: Wed, 16 Jan 2002 12:27:33 -0600 From: Danielle Henkels Subject: Re: get involved OK, it was enough that one spam went out, but having this big discussion on here is a bit much. I would actually like turn off the e-mailing and just be able to go out and post and get answers when I need them as I don't use it enough to be much help to people, but I can't figure out how to do that, and then I get stuck with all these messages coming in with this discussion too. -----Original Message----- From: Peter Clark [mailto:PGCLARK@VAC-ACC.GC.CA] Sent: Wednesday, January 16, 2002 11:38 AM To: SQR-USERS@list.iex.net Subject: Re: get involved Ivan's posting was most inappropriate for this list, but a ban? He has made several contributions to the group. This was probably just a mistake on Ivan's part. Ivan? >>> "Hins, Thomas D." 2002/01/16 12:25:08 pm >>> I say ban this guy from the Users Group! -----Original Message----- From: Turner, Ivan [mailto:Ivan.Turner@QWEST.COM] Sent: Wednesday, January 16, 2002 9:18 AM To: SQR-USERS@list.iex.net Subject: get involved Follow this link and get involved. http://qwesteferral.com/r.jsp?a=Mr9Y3cg7LtxfVU541Lz2HA$$&x From owner-sqr-users@list.iex.net Wed Jan 16 14:16:24 2002 Date: Wed, 16 Jan 2002 13:56:21 -0500 From: "Grewal, Navi A." Subject: Re: get involved I agree with you. I think it is the virus in the email that when you open it everyone in your address book gets the email. -----Original Message----- From: the dragon [mailto:ceprn@HOTMAIL.COM] Sent: Wednesday, January 16, 2002 1:19 PM To: SQR-USERS@list.iex.net Subject: Re: get involved All, I hate spammers as much as you do, especially when the spam comes from a trusted source. But, let's not jump to conclusions about Ivan's malicious intent to spam the newsgroup. I have looked at Ivan's posts in the past in the Archives and they are all on topic and appropriate. More likely, this nonsense was an internal (QWEST) program which went through eveyrone's personal address books and sent that e-mail out. I say hold QWest responsible, and not Ivan. Certainly, if this was an intentional act on Ivan's part I would expect an apology from him at the very least. clark 'the dragon' willis dragon enterprises, consulting services "doing it right, the first time, for less" 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---- Hello, I'm sorry. I usually do not say anything when I get spam'ed, but this one really gets me. This is not the place to send these kinds of things. This is a user group for SQR. The link you sent does not even remotely relate to what this user group is about! If I missed the relationship, please let me know. Rachael _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com ************************************************************************ This e-mail and any of its attachments may contain Exelon Corporation proprietary information, which is privileged, confidential, or subject to copyright belonging to the Exelon Corporation family of Companies. This e-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution, copying, or action taken in relation to the contents of and attachments to this e-mail is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify the sender immediately and permanently delete the original and any copy of this e-mail and any printout. Thank You. ************************************************************************ From owner-sqr-users@list.iex.net Wed Jan 16 14:36:20 2002 Date: Wed, 16 Jan 2002 13:10:58 -0600 From: "Hins, Thomas D." Subject: Re: get involved I will leave! Thank you! No more discussion needed! -----Original Message----- From: Laura Lopez [mailto:laura.lopez@TRINET.COM] Sent: Wednesday, January 16, 2002 12:16 PM To: SQR-USERS@list.iex.net Subject: Re: get involved I agree with Peter. I have been reading past emails from Ivan and he has contributed with answers to some questions. As long as he apologizes and promises not to ever do it again... he should stay. > -----Original Message----- > From: Peter Clark [SMTP:PGCLARK@VAC-ACC.GC.CA] > Sent: Wednesday, January 16, 2002 9:38 AM > To: SQR-USERS@list.iex.net > Subject: Re: get involved > > Ivan's posting was most inappropriate for this list, but a ban? He has > made several contributions to the group. This was probably just a mistake > on Ivan's part. Ivan? > > >>> "Hins, Thomas D." 2002/01/16 12:25:08 pm >>> > I say ban this guy from the Users Group! > > -----Original Message----- > From: Turner, Ivan [mailto:Ivan.Turner@QWEST.COM] > Sent: Wednesday, January 16, 2002 9:18 AM > To: SQR-USERS@list.iex.net > Subject: get involved > > > Follow this link and get involved. > > http://qwesteferral.com/r.jsp?a=Mr9Y3cg7LtxfVU541Lz2HA$$&x From owner-sqr-users@list.iex.net Wed Jan 16 14:42:04 2002 Date: Wed, 16 Jan 2002 14:21:42 -0500 From: Sam Spritzer Subject: Re: get involved I agree and most likely he didn't realized it. Sam >>> PGCLARK@VAC-ACC.GC.CA 01/16/02 13:30 PM >>> Ivan's posting was most inappropriate for this list, but a ban? He has made several contributions to the group. This was probably just a mistake on Ivan's part. Ivan? >>> "Hins, Thomas D." 2002/01/16 12:25:08 pm >>> I say ban this guy from the Users Group! -----Original Message----- From: Turner, Ivan [mailto:Ivan.Turner@QWEST.COM] Sent: Wednesday, January 16, 2002 9:18 AM To: SQR-USERS@list.iex.net Subject: get involved Follow this link and get involved. http://qwesteferral.com/r.jsp?a=Mr9Y3cg7LtxfVU541Lz2HA$$&x From owner-sqr-users@list.iex.net Wed Jan 16 14:51:13 2002 Date: Wed, 16 Jan 2002 11:30:20 -0800 From: Franck Masson Subject: Re: Italic fonts in SQR ? Ray, SQR can manage italic but only as specific font number not as attribut. For postcript if you edit the file postscri.str you will find the font number associated with italic font example: 32 /Times-Italic 0 0 0 0 0 0 3200 /Times-BoldItalic Franck, -----Original Message----- From: Ray Ontko [mailto:rayo@ONTKO.COM] Sent: mercredi 16 janvier 2002 14:59 To: SQR-USERS@list.iex.net Subject: Re: Italic fonts in SQR ? Unfortunately, there is no printer-independent support for italics in SQR. I'm not sure why, but I suspect that traditionally it couldn't be implemented on line printers or dumb terminals, and they never got around to adding it later. If you're printing directly to an HP or PS printer using -printer:hp or -printer:ps, you might be able to use PRINT-DIRECT to tell the printer that the text is to be displayed in italics. For HP this shouldn't be too hard, but for PS, you'll need to know a little about PostScript. Here's are some HP suggestions: http://www.sqrug.com/sqr-users/sqrusers_99q3/msg01020.html http://www.sqrug.com/sqr-users/sqrusers_99q3/msg01021.html Here's a PostScript suggestion: http://www.sqrug.com/sqr-users/sqrusers_98q1/msg00062.html You can search the SQR-USERS archives yourself by visiting http://www.sqrug.com/sqr-users/ Ray [Charset iso-8859-1 unsupported, filtering to ASCII...] > Hi, > I'm working on SQR 4.3.2. I want to format the headings with Times New Roman > (Italics) fonts. I getting Times New Roman font but not getting Italic > style. > Can anyone suggest a way out ? > > Thanks & Regards, > Satyen Timbadia > PCS LTD. > Voice : 778 1006/8/9 - Ext: 3023 > Email : satyen.timbadia@patni.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/ From owner-sqr-users@list.iex.net Wed Jan 16 15:00:49 2002 Date: Wed, 16 Jan 2002 11:36:19 -0800 From: Laura Lopez Subject: PDF file conversion utilities - Best of breed recommendation plea se! We are using SQR version 4.3.4.x and although PDF file conversion is supported, we are frustrated with the reliability and speed of the conversion process. On large PDF files we seem to have file corruption problems, whereas the same report with a smaller file will run fine. After researching on this user group (a wonderful resource) we've seen others recommend either Ghostscript or Adobe Distiller. What is the current best of breed recommendation for conversions in terms of reliability and speed? Also, is Postscript to PDF the best way to end up with a PDF file? Is there even a third party SPF to PDF utility? Many thanks in advance. _______________________ Laura López Extension: 1018 From owner-sqr-users@list.iex.net Wed Jan 16 15:01:22 2002 Date: Wed, 16 Jan 2002 14:39:25 -0500 From: "Turner, Ivan" Subject: Re: get involved The boss said, "one more sale and a BONUS". What was I to do? -----Original Message----- From: Peter Clark [mailto:PGCLARK@VAC-ACC.GC.CA] Sent: Wednesday, January 16, 2002 12:38 PM To: SQR-USERS@list.iex.net Subject: Re: get involved Ivan's posting was most inappropriate for this list, but a ban? He has made several contributions to the group. This was probably just a mistake on Ivan's part. Ivan? >>> "Hins, Thomas D." 2002/01/16 12:25:08 pm >>> I say ban this guy from the Users Group! -----Original Message----- From: Turner, Ivan [mailto:Ivan.Turner@QWEST.COM] Sent: Wednesday, January 16, 2002 9:18 AM To: SQR-USERS@list.iex.net Subject: get involved Follow this link and get involved. http://qwesteferral.com/r.jsp?a=Mr9Y3cg7LtxfVU541Lz2HA$$&x From owner-sqr-users@list.iex.net Wed Jan 16 15:01:55 2002 Date: Wed, 16 Jan 2002 14:38:52 -0500 From: Ray Ontko Subject: Re: get involved Bill, Welcome to the group. I think you'll find that this list is almost always on-topic. I did my own informal survey and found that fewer than 5 posts out of the hundred I looked at were off-topic or non-value-adding. You can conduct your own survey by visiting the archives: http://www.sqrug.com/sqr-users/ Ray [Charset iso-8859-1 unsupported, filtering to ASCII...] > Having just joined the group this morning, Ivan's message was the first that > I received (not an encouraging start to something I've been looking forward > to). On first glance, it appeared to be like other junk mail I receive, and > I instinctively added his name to my junk email senders list, and deleted > the message. Thus, in a sense, I instituted my own private ban, which would > be a shame if actual contributions orginate from this same source. Lessons > all-around it would seem. > > -----Original Message----- > From: Peter Clark [mailto:PGCLARK@VAC-ACC.GC.CA] > Sent: Wednesday, January 16, 2002 12:38 PM > To: SQR-USERS@list.iex.net > Subject: Re: get involved > > > Ivan's posting was most inappropriate for this list, but a ban? He has made > several contributions to the group. This was probably just a mistake on > Ivan's part. Ivan? > > >>> "Hins, Thomas D." 2002/01/16 12:25:08 pm >>> > I say ban this guy from the Users Group! > > -----Original Message----- > From: Turner, Ivan [mailto:Ivan.Turner@QWEST.COM] > Sent: Wednesday, January 16, 2002 9:18 AM > To: SQR-USERS@list.iex.net > Subject: get involved > > > Follow this link and get involved. > > http://qwesteferral.com/r.jsp?a=Mr9Y3cg7LtxfVU541Lz2HA$$&x > ---------------------------------------------------------------------- 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/ From owner-sqr-users@list.iex.net Wed Jan 16 15:23:57 2002 Date: Wed, 16 Jan 2002 14:59:28 -0500 From: Paul Hoyte Subject: Re: PDF file conversion utilities - Best of breed recommendation plea se! Hello Laura: I just did some research on this very topic. Check out the following website: http://www.bcl-computers.com/ They have several products to support the PDF process but the ones that would work for you are either EasyPDF or the Drake plug-in. You can also give them a call and they would provide much more information regarding the products and the conversion process. Good luck. Paul Hoyte Sharidionne, Inc. (248) 559-6868 www.sharidionne.com phoyte@sharidionne.com -----Original Message----- From: Discussion of SQR, Brio Software's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Laura Lopez Sent: Wednesday, January 16, 2002 2:36 PM To: SQR-USERS@list.iex.net Subject: PDF file conversion utilities - Best of breed recommendation plea se! We are using SQR version 4.3.4.x and although PDF file conversion is supported, we are frustrated with the reliability and speed of the conversion process. On large PDF files we seem to have file corruption problems, whereas the same report with a smaller file will run fine. After researching on this user group (a wonderful resource) we've seen others recommend either Ghostscript or Adobe Distiller. What is the current best of breed recommendation for conversions in terms of reliability and speed? Also, is Postscript to PDF the best way to end up with a PDF file? Is there even a third party SPF to PDF utility? Many thanks in advance. _______________________ Laura López Extension: 1018 From owner-sqr-users@list.iex.net Wed Jan 16 16:02:58 2002 Date: Wed, 16 Jan 2002 15:43:22 -0500 From: Stephen Keen Subject: Re: get involved Well guys we have to hurry up and decide what we are to do with Ivan. We have the Marines standing by. They have the bag, chains and sedative - but they have not yet called our base in Cuba. We have way to much free time on our hands -----Original Message----- From: Discussion of SQR, Brio Software's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Turner, Ivan Sent: Wednesday, January 16, 2002 2:39 PM To: SQR-USERS@list.iex.net Subject: Re: get involved The boss said, "one more sale and a BONUS". What was I to do? -----Original Message----- From: Peter Clark [mailto:PGCLARK@VAC-ACC.GC.CA] Sent: Wednesday, January 16, 2002 12:38 PM To: SQR-USERS@list.iex.net Subject: Re: get involved Ivan's posting was most inappropriate for this list, but a ban? He has made several contributions to the group. This was probably just a mistake on Ivan's part. Ivan? >>> "Hins, Thomas D." 2002/01/16 12:25:08 pm >>> I say ban this guy from the Users Group! -----Original Message----- From: Turner, Ivan [mailto:Ivan.Turner@QWEST.COM] Sent: Wednesday, January 16, 2002 9:18 AM To: SQR-USERS@list.iex.net Subject: get involved Follow this link and get involved. http://qwesteferral.com/r.jsp?a=Mr9Y3cg7LtxfVU541Lz2HA$$&x From owner-sqr-users@list.iex.net Wed Jan 16 16:06:28 2002 Date: Wed, 16 Jan 2002 14:44:05 -0600 From: "Lance.Leighnor" Subject: Re: get involved LOL!!! Best comment on this whole thing I've heard. Lance Leighnor Senior Development Analyst - Payroll Yellow Technologies mailto:Lance.Leighnor@YellowCorp.com (913) 344-5364 -----Original Message----- From: Stephen Keen [mailto:stephen_keen@SQR-SERVICES.COM] Sent: Wednesday, January 16, 2002 2:43 PM To: SQR-USERS@list.iex.net Subject: Re: get involved Well guys we have to hurry up and decide what we are to do with Ivan. We have the Marines standing by. They have the bag, chains and sedative - but they have not yet called our base in Cuba. We have way to much free time on our hands -----Original Message----- From: Discussion of SQR, Brio Software's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Turner, Ivan Sent: Wednesday, January 16, 2002 2:39 PM To: SQR-USERS@list.iex.net Subject: Re: get involved The boss said, "one more sale and a BONUS". What was I to do? -----Original Message----- From: Peter Clark [mailto:PGCLARK@VAC-ACC.GC.CA] Sent: Wednesday, January 16, 2002 12:38 PM To: SQR-USERS@list.iex.net Subject: Re: get involved Ivan's posting was most inappropriate for this list, but a ban? He has made several contributions to the group. This was probably just a mistake on Ivan's part. Ivan? >>> "Hins, Thomas D." 2002/01/16 12:25:08 pm >>> I say ban this guy from the Users Group! -----Original Message----- From: Turner, Ivan [mailto:Ivan.Turner@QWEST.COM] Sent: Wednesday, January 16, 2002 9:18 AM To: SQR-USERS@list.iex.net Subject: get involved Follow this link and get involved. http://qwesteferral.com/r.jsp?a=Mr9Y3cg7LtxfVU541Lz2HA$$&x From owner-sqr-users@list.iex.net Wed Jan 16 16:10:02 2002 Date: Wed, 16 Jan 2002 13:27:10 -0700 From: "Lipka, Jason" Subject: Re: get involved That was funny....made my afternoon! -----Original Message----- From: Turner, Ivan [mailto:Ivan.Turner@QWEST.COM] Sent: 2002 January 16 12:39 PM To: SQR-USERS@list.iex.net Subject: Re: get involved The boss said, "one more sale and a BONUS". What was I to do? -----Original Message----- From: Peter Clark [mailto:PGCLARK@VAC-ACC.GC.CA] Sent: Wednesday, January 16, 2002 12:38 PM To: SQR-USERS@list.iex.net Subject: Re: get involved Ivan's posting was most inappropriate for this list, but a ban? He has made several contributions to the group. This was probably just a mistake on Ivan's part. Ivan? >>> "Hins, Thomas D." 2002/01/16 12:25:08 pm >>> I say ban this guy from the Users Group! -----Original Message----- From: Turner, Ivan [mailto:Ivan.Turner@QWEST.COM] Sent: Wednesday, January 16, 2002 9:18 AM To: SQR-USERS@list.iex.net Subject: get involved Follow this link and get involved. http://qwesteferral.com/r.jsp?a=Mr9Y3cg7LtxfVU541Lz2HA$$&x From owner-sqr-users@list.iex.net Wed Jan 16 16:37:15 2002 Date: Wed, 16 Jan 2002 13:04:11 -0800 From: Madan Subject: MICR Fonts - PAY003.SQR Hi All, I am trying to run PAY003.SQR, when the report(checks) comes out of the program, we are supposed to see the Bank's MICR font at the bottom of every check, so we have loaded the MICR font into our Xerox printer. I did it by sending the printer's Esc sequence. !print the bank microcode encode '<27>&I<27>(0U<27>(s0p8.00h9.00v0s0b0T' into $MicrFont !XEROX Printer's Esc Sequence use-column 0 do Format-Number(&B.PAYCHECK_NBR, $CheckNum, '0999999') let $accountnum1 = substr($AccountNum,1,3) || ' ' || substr($AccountNum,4,3) || ' ' || substr($AccountNum,7,4) let $A = 'A' let $C = 'C' let $MicrLine = $MicrFont || $C || $CheckNum || $C || ' ' || $A || $TransitNum || $A || ' ' || $accountnum1 || $C print $MicrLine (83,21) encode '<27>E' into $MicrFont Now we were able to see the MICR font on the first check and in the rest of checks the printing alignment was not proper and its printing some junk characters. Can anyone tell me how to see the MICR font and other details in ALL the checks ? Thanks Kumar --------------------------------- Do You Yahoo!? Send FREE video emails in Yahoo! Mail. From owner-sqr-users@list.iex.net Wed Jan 16 17:38:01 2002 Date: Wed, 16 Jan 2002 14:12:11 -0800 From: David Thorburn Subject: Re: get involved I am sure this dialogue won't be over until Louise Sings! Enough Already! D. ----- Original Message ----- From: "Stephen Keen" To: Sent: Wednesday, January 16, 2002 12:43 PM Subject: Re: get involved > Well guys we have to hurry up and decide what we are to do with Ivan. We > have the Marines standing by. They have the bag, chains and sedative - but > they have not yet called our base in Cuba. > > We have way to much free time on our hands > > > > -----Original Message----- > From: Discussion of SQR, Brio Software's database reporting language > [mailto:SQR-USERS@list.iex.net]On Behalf Of Turner, Ivan > Sent: Wednesday, January 16, 2002 2:39 PM > To: SQR-USERS@list.iex.net > Subject: Re: get involved > > > The boss said, "one more sale and a BONUS". What was I to do? > > -----Original Message----- > From: Peter Clark [mailto:PGCLARK@VAC-ACC.GC.CA] > Sent: Wednesday, January 16, 2002 12:38 PM > To: SQR-USERS@list.iex.net > Subject: Re: get involved > > > Ivan's posting was most inappropriate for this list, but a ban? He has made > several contributions to the group. This was probably just a mistake on > Ivan's part. Ivan? > > >>> "Hins, Thomas D." 2002/01/16 12:25:08 pm >>> > I say ban this guy from the Users Group! > > -----Original Message----- > From: Turner, Ivan [mailto:Ivan.Turner@QWEST.COM] > Sent: Wednesday, January 16, 2002 9:18 AM > To: SQR-USERS@list.iex.net > Subject: get involved > > > Follow this link and get involved. > > http://qwesteferral.com/r.jsp?a=Mr9Y3cg7LtxfVU541Lz2HA$$&x > From owner-sqr-users@list.iex.net Wed Jan 16 18:14:33 2002 Date: Wed, 16 Jan 2002 14:47:18 -0800 From: Les Hancock Subject: Re: MICR Fonts - PAY003.SQR Madan: As a part of upgrading from Psoft v7.6 to Psoft v8, we had to convert our customized PAY003.SQR from Psoft Version 7.6 (SQR 4.3.2) [it used old SQR commands like declare printer] to Psoft Version 8 (essentially SQR 6) [to use new SQR commands -- alter-printer]. We ended up with this: !-- set up for MICR (step 1) encode '<27>&10O<27>(0U<27>(s0p7.89h9.00v0s0b0T' into $micr_print print $micr_print () code-printer=LINEPRINTER !-- set up for MICR (step 2) alter-printer point-size=9.00 symbol-set=0U font=620 font-type=fixed pitch=7.89 let $MicrLine = '<' || $CheckNum || '<' || 'F' || ':' || '123456789' || ':' || ' ' || $AccountNum || '<' print $MicrLine (86,18) new-page !-- Restore to normal alter-printer font-type = proportional symbol-set=19U font = 5 point-size = 10 pitch=16.6 I have to admit that I'm not sure why it works, but it seems to. HTH, Les --- Madan wrote: > Hi All, > I am trying to run PAY003.SQR, when the > report(checks) comes out of the program, we are > supposed to see the Bank's MICR font at the bottom > of every check, so we have loaded the MICR font into > our Xerox printer. I did it by sending the printer's > Esc sequence. > > !print the bank microcode > > encode '<27>&I<27>(0U<27>(s0p8.00h9.00v0s0b0T' > into $MicrFont !XEROX Printer's Esc Sequence > > use-column 0 > do Format-Number(&B.PAYCHECK_NBR, $CheckNum, > '0999999') > > let $accountnum1 = substr($AccountNum,1,3) || ' ' > || substr($AccountNum,4,3) || ' ' || > substr($AccountNum,7,4) > let $A = 'A' > let $C = 'C' > > let $MicrLine = $MicrFont || $C || $CheckNum || $C > || ' ' || $A || $TransitNum || $A || ' ' || > $accountnum1 || $C > > print $MicrLine (83,21) > > encode '<27>E' into $MicrFont > > Now we were able to see the MICR font on the first > check and in the rest of checks the printing > alignment was not proper and its printing some junk > characters. > Can anyone tell me how to see the MICR font and > other details in ALL the checks ? > Thanks > Kumar > > > > --------------------------------- > Do You Yahoo!? > Send FREE video emails in Yahoo! Mail. __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ From owner-sqr-users@list.iex.net Wed Jan 16 21:31:33 2002 Date: Wed, 16 Jan 2002 18:09:52 -0800 From: Laura Lopez Subject: Re: PDF file conversion utilities - Best of breed recommendation plea se! Thank you Paul! We actually were looking for Unix converters ... I should have specified that! I appreciate your help though. Take care! Laura. > -----Original Message----- > From: Paul Hoyte [SMTP:phoyte@SHARIDIONNE.COM] > Sent: Wednesday, January 16, 2002 11:59 AM > To: SQR-USERS@list.iex.net > Subject: Re: PDF file conversion utilities - Best of breed > recommendation plea se! > > Hello Laura: > > I just did some research on this very topic. Check out the following > website: http://www.bcl-computers.com/ > > They have several products to support the PDF process but the ones that > would work for you are either EasyPDF or the Drake plug-in. You can also > give them a call and they would provide much more information regarding > the > products and the conversion process. > > Good luck. > > Paul Hoyte > Sharidionne, Inc. > (248) 559-6868 > www.sharidionne.com > phoyte@sharidionne.com > > -----Original Message----- > From: Discussion of SQR, Brio Software's database reporting language > [mailto:SQR-USERS@list.iex.net]On Behalf Of Laura Lopez > Sent: Wednesday, January 16, 2002 2:36 PM > To: SQR-USERS@list.iex.net > Subject: PDF file conversion utilities - Best of breed recommendation > plea se! > > > We are using SQR version 4.3.4.x and although PDF file conversion is > supported, we are frustrated with the reliability and speed of the > conversion process. On large PDF files we seem to have file corruption > problems, whereas the same report with a smaller file will run fine. > > After researching on this user group (a wonderful resource) we've seen > others recommend either Ghostscript or Adobe Distiller. > > What is the current best of breed recommendation for conversions in terms > of > reliability and speed? > > Also, is Postscript to PDF the best way to end up with a PDF file? Is > there > even a third party SPF to PDF utility? > > Many thanks in advance. > > _______________________ > Laura López > Extension: 1018 From owner-sqr-users@list.iex.net Thu Jan 17 09:49:57 2002 Date: Thu, 17 Jan 2002 07:32:40 -0500 From: George Jansen Subject: Re: PDF file conversion utilities - Best of breed recommendation please! I have used Ghostscript for this purpose on Sun Solaris. The Gs version I used, 6.0, did require hand-editing of a source file to make it output landscape; otherwise it gave me portrait with the right nth of my lines missing and a lot of blanks at the bottom. I can probably find the file without too much trouble if you want to know what it is. If you are able to upgrade your SQR you might want to try that route first. When 4.3.4 converted PostScript, it opened, then closed, one of its initialization file, I think postscript.str, at every font change. That sort of thing should have been very easy for them to clean up. From owner-sqr-users@list.iex.net Thu Jan 17 09:52:00 2002 Date: Thu, 17 Jan 2002 08:53:39 -0500 From: "Johnson, Dan" Subject: Re: get involved And the rare diversions are often entertaining. I would just like to add that I haven't coded in SQR for over a year now but I still have my subscription to this list because most of the subscribers give good insight into many common programming problems. Thanks all, Dan -----Original Message----- From: Ray Ontko Sent: Wednesday, January 16, 2002 2:39 PM To: Subject: Re: get involved Bill, Welcome to the group. I think you'll find that this list is almost always on-topic. I did my own informal survey and found that fewer than 5 posts out of the hundred I looked at were off-topic or non-value-adding. You can conduct your own survey by visiting the archives: Ray [Charset iso-8859-1 unsupported, filtering to ASCII...] > Having just joined the group this morning, Ivan's message was the first that > I received (not an encouraging start to something I've been looking forward > to). On first glance, it appeared to be like other junk mail I receive, and > I instinctively added his name to my junk email senders list, and deleted > the message. Thus, in a sense, I instituted my own private ban, which would > be a shame if actual contributions orginate from this same source. Lessons > all-around it would seem. > > -----Original Message----- > From: Peter Clark [mailto:PGCLARK@VAC-ACC.GC.CA] > Sent: Wednesday, January 16, 2002 12:38 PM > To: SQR-USERS@list.iex.net > Subject: Re: get involved > > > Ivan's posting was most inappropriate for this list, but a ban? He has made > several contributions to the group. This was probably just a mistake on > Ivan's part. Ivan? > > >>> "Hins, Thomas D." 2002/01/16 12:25:08 pm >>> > I say ban this guy from the Users Group! > > -----Original Message----- > From: Turner, Ivan [mailto:Ivan.Turner@QWEST.COM] > Sent: Wednesday, January 16, 2002 9:18 AM > To: SQR-USERS@list.iex.net > Subject: get involved > > > Follow this link and get involved. > > http://qwesteferral.com/r.jsp?a=Mr9Y3cg7LtxfVU541Lz2HA$$&x > ---------------------------------------------------------------------- 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/ From owner-sqr-users@list.iex.net Thu Jan 17 10:15:38 2002 Date: Thu, 17 Jan 2002 08:46:15 -0600 From: Eric Dimick Eastman Subject: Re: PDF file conversion utilities - Best of breed recommendation plea se! Laura, We have had great success with GhostScript's ps2pdf utility to convert PostScript to PDF. We couldn't use the PDF straight from SQR since we had to print reports with vertical text and a mixture of landscape and portrait in the same report. I would be interested to know if your problem is a known bug and if it has been fixed in a later version. I don't have experience using Distiller so I can't give a comparison, but GhostScript has really worked well for us. It is fast, reliable, fairly no-hassle and I have generated PDF's as large as 20 MB with no problem. I have used gs both on Linux and Solaris. What flavor of unix are you using? On Solaris you will probably want to use ps2pdf13 to generate PDF according to the latest standard. Also we had to make a small change to the postscri.str file. Hope this helps, Eric Laura Lopez wrote: >Thank you Paul! We actually were looking for Unix converters ... I should >have specified that! >I appreciate your help though. >Take care! >Laura. > >>-----Original Message----- >>From: Paul Hoyte [SMTP:phoyte@SHARIDIONNE.COM] >>Sent: Wednesday, January 16, 2002 11:59 AM >>To: SQR-USERS@list.iex.net >>Subject: Re: PDF file conversion utilities - Best of breed >>recommendation plea se! >> >>Hello Laura: >> >>I just did some research on this very topic. Check out the following >>website: http://www.bcl-computers.com/ >> >>They have several products to support the PDF process but the ones that >>would work for you are either EasyPDF or the Drake plug-in. You can also >>give them a call and they would provide much more information regarding >>the >>products and the conversion process. >> >>Good luck. >> >>Paul Hoyte >>Sharidionne, Inc. >>(248) 559-6868 >>www.sharidionne.com >>phoyte@sharidionne.com >> >>-----Original Message----- >>From: Discussion of SQR, Brio Software's database reporting language >>[mailto:SQR-USERS@list.iex.net]On Behalf Of Laura Lopez >>Sent: Wednesday, January 16, 2002 2:36 PM >>To: SQR-USERS@list.iex.net >>Subject: PDF file conversion utilities - Best of breed recommendation >>plea se! >> >> >>We are using SQR version 4.3.4.x and although PDF file conversion is >>supported, we are frustrated with the reliability and speed of the >>conversion process. On large PDF files we seem to have file corruption >>problems, whereas the same report with a smaller file will run fine. >> >>After researching on this user group (a wonderful resource) we've seen >>others recommend either Ghostscript or Adobe Distiller. >> >>What is the current best of breed recommendation for conversions in terms >>of >>reliability and speed? >> >>Also, is Postscript to PDF the best way to end up with a PDF file? Is >>there >>even a third party SPF to PDF utility? >> >>Many thanks in advance. >> >>_______________________ >>Laura López >>Extension: 1018 >> > > From owner-sqr-users@list.iex.net Thu Jan 17 10:19:48 2002 Date: Thu, 17 Jan 2002 20:18:53 +0530 From: "Nagarajan.C" Subject: SQR Date comparison in Database Hi, I have a Question in SQR date comparison with database .In Database , we have the Values for Dates in UTC ( sec's past Jan,1,1970) Ex: the value of Oct-01-2001 21:02:33 will be stored as 1002056553. Question I want to compare the dates alone , and count the no of Orders leaving aside the time Portion of UTC .Because in a Day i may have multiple orders raised in specific time intervals Oct-01-2001 21:02:33 no of orders-5 Oct-01-2001 22:03:33 no of orders -10 Oct-01-2001 23:03:33 no of orders -20 Oct-01-2001 23:03:34 no of orders -5 I have to find the aggrecate of this Date as display as follows : Oct-01-2001 40 ( Fruits ) Leaving the time in Display is not a Problem .I have wriiten a function in Ucall.c , to convert UTC to the Required time Format . But i wish to do my comparisons with Respect to date and not with respect to Date and time Can u suggest me a way please as usual .Again this is in the hit list.We tried a method and it did work , but i feel it found about.We passed the UTC to a function in ucall.c which returns the truncated date string.we made the aggrecate with this .Is this the way out ? another Question : To compare i have the list in a table (orange,grape,wine,tablets etc ).The table which am comparing has the value from one among the list . Example: a customer drops in and Buys just apples. I have the show a tabular Report which should have Nags orange=0 grape=0 apple=5 etc xxx and so- on a 0 for the items not listed in the query has to be displayed .We tried a round about way and it did work .If the Database had a null value then there is no problem we can do it , but it has the value which is one among the list from the table .For the other ones which are'nt in pict , i should display a report . Kindly suggest me a way for this too. Thanks in advance . Regards Nags From owner-sqr-users@list.iex.net Thu Jan 17 11:13:20 2002 Date: Thu, 17 Jan 2002 09:52:55 -0600 From: "Cook, Andy" Subject: Re: get involved I stay on this list mainly to read all the great emails that get sent when the list gets spammed. I just want to thank you all for the good reading the last couple of days. I have very little amusement at work, and you have given that to me. I hope that this keeps on going all day. I usually leave at 5:00 pm, so if you want to stop then you can. Oh yeah, I also like the SQR postings too. LONG LIVE SPAM!!!!!!!!!! HAHA -----Original Message----- From: Johnson, Dan [mailto:Dan_Johnson@WRIGHTEXPRESS.COM] Sent: Thursday, January 17, 2002 7:54 AM To: SQR-USERS@list.iex.net Subject: Re: get involved And the rare diversions are often entertaining. I would just like to add that I haven't coded in SQR for over a year now but I still have my subscription to this list because most of the subscribers give good insight into many common programming problems. Thanks all, Dan -----Original Message----- From: Ray Ontko Sent: Wednesday, January 16, 2002 2:39 PM To: Subject: Re: get involved Bill, Welcome to the group. I think you'll find that this list is almost always on-topic. I did my own informal survey and found that fewer than 5 posts out of the hundred I looked at were off-topic or non-value-adding. You can conduct your own survey by visiting the archives: Ray [Charset iso-8859-1 unsupported, filtering to ASCII...] > Having just joined the group this morning, Ivan's message was the first that > I received (not an encouraging start to something I've been looking forward > to). On first glance, it appeared to be like other junk mail I receive, and > I instinctively added his name to my junk email senders list, and deleted > the message. Thus, in a sense, I instituted my own private ban, which would > be a shame if actual contributions orginate from this same source. Lessons > all-around it would seem. > > -----Original Message----- > From: Peter Clark [mailto:PGCLARK@VAC-ACC.GC.CA] > Sent: Wednesday, January 16, 2002 12:38 PM > To: SQR-USERS@list.iex.net > Subject: Re: get involved > > > Ivan's posting was most inappropriate for this list, but a ban? He has made > several contributions to the group. This was probably just a mistake on > Ivan's part. Ivan? > > >>> "Hins, Thomas D." 2002/01/16 12:25:08 pm >>> > I say ban this guy from the Users Group! > > -----Original Message----- > From: Turner, Ivan [mailto:Ivan.Turner@QWEST.COM] > Sent: Wednesday, January 16, 2002 9:18 AM > To: SQR-USERS@list.iex.net > Subject: get involved > > > Follow this link and get involved. > > http://qwesteferral.com/r.jsp?a=Mr9Y3cg7LtxfVU541Lz2HA$$&x > ---------------------------------------------------------------------- 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/ ************************************************************ Omaha World-Herald Company computer systems are for business use only. This e-mail was scanned by MailSweeper ************************************************************ From owner-sqr-users@list.iex.net Thu Jan 17 11:13:57 2002 Date: Thu, 17 Jan 2002 10:39:15 -0500 From: Dawn Canales Subject: trying to run TAX811GA on the mainframe We are trying to run TAX811GA on the mainframe. The ddname of the output file is WXXXXXXXX, where XXXXXXXX is the company id. On the mainframe, the ddname has to be 8 characters or less. We would like to know how other mainframe users are handling this sqr. Any information would be helpful. Thanks, Dawn Canales, KB Toys dcanales@kbtoys.com From owner-sqr-users@list.iex.net Thu Jan 17 12:03:17 2002 Date: Thu, 17 Jan 2002 11:39:16 -0500 From: Denise White Subject: Re: get involved Actually, when I first joined the group, most of the posts seemed to be about kitty litter/litterboxes, and Ford Explorers (or some such model)! There was another prevalent topic, too, but I forget what it was. I'm sure there are a few other 'old-timers' around here who remember those discussions (my favorite was a very technical spec for changing kitty litter)! I realize that these things really annoy some people, but - lighten up! Everyone can use a little humor in their day! Denise ------------------------------ Date: Wed, 16 Jan 2002 14:38:52 -0500 From: Ray Ontko Subject: Re: get involved Bill, Welcome to the group. I think you'll find that this list is almost always on-topic. I did my own informal survey and found that fewer than 5 posts out of the hundred I looked at were off-topic or non-value-adding. You can conduct your own survey by visiting the archives: http://www.sqrug.com/sqr-users/ Ray From owner-sqr-users@list.iex.net Thu Jan 17 12:03:53 2002 Date: Thu, 17 Jan 2002 10:38:36 -0600 From: Eric Dimick Eastman Subject: Re: PDF file conversion utilities - Best of breed recommendation please! Interesting. We are using GhostScript 5.5 and have never had that problem. What version of SQR are you using? What is the change you are needing to make to the PostScript files? Could you just make this change in the postscri.str file once? Just curious, Eric George Jansen wrote: >I have used Ghostscript for this purpose on Sun Solaris. The Gs version >I used, 6.0, did require hand-editing of a source file to make it output >landscape; otherwise it gave me portrait with the right nth of my lines >missing and a lot of blanks at the bottom. I can probably find the file >without too much trouble if you want to know what it is. > >If you are able to upgrade your SQR you might want to try that route >first. When 4.3.4 converted PostScript, it opened, then closed, one of >its initialization file, I think postscript.str, at every font change. >That sort of thing should have been very easy for them to clean up. > > From owner-sqr-users@list.iex.net Thu Jan 17 12:46:59 2002 Date: Thu, 17 Jan 2002 11:26:39 -0600 From: Betty Thompson Subject: Re: SQR Date comparison in Database If I'm understanding you correctly, I think the TRUNC function is a good way to get what you want. Example: (this query is nonsense, but it illustrates a working syntax) Select trunc(posted_date), count(*), sum(line_amt) from ps_item_line_sf where trunc(posted_date) > TRUNC(LAST_DAY(ADD_MONTHS(SYSDATE,-2))) and trunc(posted_date) <= TRUNC(LAST_DAY(ADD_MONTHS(SYSDATE,-1))) group by posted_date Assuming you are using Oracle, do you know about the DUAL table? It lets you play around with functions and system variables without using hardly any resources. Example: SELECT TO_CHAR(TRUNC(SYSDATE),'YYYY-MM-DD-SSSSS') today, TO_CHAR(TRUNC(LAST_DAY(ADD_MONTHS(SYSDATE,-2))),'YYYY-MM-DD-SSSSS') day_before_prior_mo_beg_dt, TO_CHAR(TRUNC(LAST_DAY(ADD_MONTHS(SYSDATE,-1))),'YYYY-MM-DD-SSSSS') prior_mo_end_dt FROM DUAL --------------------------------------- Regarding your listing, I think you want an outer join, so that the query "pretends" to find a row with zero qty ordered for any item that wasn't included in the order. I'm not certain I understood what you were asking, but I hope this helps. Suppose Order_Hdr_tbl contains three columns, named 'Order_Nbr', 'Customer' and 'order_dt'. Suppose Order_Dtl_tbl contains three columns, named 'Order_Nbr', 'Fruit' and 'order_qty'. Select a.customer, sum(b.order_qty) apple_qty, 0 orange_qty, 0 grape_qty, 0 misc_item_qty from Order_Hdr_tbl a, Order_Dtl_tbl b where a.order_dt between $From_Dt and $To_Dt and a.order_nbr = b.order_nbr(+) and b.fruit = 'apples' group by a.customer union Select a.customer, 0 apple_qty, sum(b.order_qty) orange_qty, 0 grape_qty, 0 misc_item_qty from Order_Hdr_tbl a, Order_Dtl_tbl b where a.order_dt between $From_Dt and $To_Dt and a.order_nbr = b.order_nbr(+) and b.fruit = 'oranges' group by a.customer union Select a.customer, 0 apple_qty, 0 orange_qty, sum(b.order_qty) grape_qty, 0 misc_item_qty from Order_Hdr_tbl a, Order_Dtl_tbl b where a.order_dt between $From_Dt and $To_Dt and a.order_nbr = b.order_nbr(+) and b.fruit = 'grapes' group by a.customer union Select a.customer, 0 apple_qty, 0 orange_qty, 0 grape_qty, sum(b.order_qty) misc_item_qty from Order_Hdr_tbl a, Order_Dtl_tbl b where a.order_dt between $From_Dt and $To_Dt and a.order_nbr = b.order_nbr(+) and b.fruit not in ('apples','oranges','grapes') group by a.customer order by customer Your result table will consist of customer, apple_qty, orange_qty, grape_qty, and misc_item_qty. If Nag's orders combined consisted of 3 apples, 1 bottle of wine and 4 tablets, his report line would read: Customer Apples Oranges Grapes Misc. Nag 3 0 0 5 (If anyone out there sees a problem with the syntax shown above, or has a better way of doing this, please speak up.) -----Original Message----- From: Discussion of SQR, Brio Software's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Nagarajan.C Sent: Thursday, January 17, 2002 8:49 AM To: SQR-USERS@list.iex.net Subject: SQR Date comparison in Database Hi, I have a Question in SQR date comparison with database .In Database , we have the Values for Dates in UTC ( sec's past Jan,1,1970) Ex: the value of Oct-01-2001 21:02:33 will be stored as 1002056553. Question I want to compare the dates alone , and count the no of Orders leaving aside the time Portion of UTC .Because in a Day i may have multiple orders raised in specific time intervals Oct-01-2001 21:02:33 no of orders-5 Oct-01-2001 22:03:33 no of orders -10 Oct-01-2001 23:03:33 no of orders -20 Oct-01-2001 23:03:34 no of orders -5 I have to find the aggrecate of this Date as display as follows : Oct-01-2001 40 ( Fruits ) Leaving the time in Display is not a Problem .I have wriiten a function in Ucall.c , to convert UTC to the Required time Format . But i wish to do my comparisons with Respect to date and not with respect to Date and time Can u suggest me a way please as usual .Again this is in the hit list.We tried a method and it did work , but i feel it found about.We passed the UTC to a function in ucall.c which returns the truncated date string.we made the aggrecate with this .Is this the way out ? another Question : To compare i have the list in a table (orange,grape,wine,tablets etc ).The table which am comparing has the value from one among the list . Example: a customer drops in and Buys just apples. I have the show a tabular Report which should have Nags orange=0 grape=0 apple=5 etc xxx and so- on a 0 for the items not listed in the query has to be displayed .We tried a round about way and it did work .If the Database had a null value then there is no problem we can do it , but it has the value which is one among the list from the table .For the other ones which are'nt in pict , i should display a report . Kindly suggest me a way for this too. Thanks in advance . Regards Nags From owner-sqr-users@list.iex.net Thu Jan 17 14:18:11 2002 Date: Thu, 17 Jan 2002 10:54:15 -0800 From: David Thorburn Subject: Re: get involved Kewl! I like hearing about kitty litter - It reminds me of Ren and Stimpy, one of my favorite cartoons! D. ----- Original Message ----- From: "Denise White" To: Sent: Thursday, January 17, 2002 8:39 AM Subject: Re: get involved > Actually, when I first joined the group, most of the posts seemed to be about > kitty litter/litterboxes, and Ford Explorers (or some such model)! There was > another prevalent topic, too, but I forget what it was. I'm sure there are a > few other 'old-timers' around here who remember those discussions (my favorite > was a very technical spec for changing kitty litter)! I realize that these > things really annoy some people, but - lighten up! Everyone can use a little > humor in their day! > > Denise > ------------------------------ > > Date: Wed, 16 Jan 2002 14:38:52 -0500 > From: Ray Ontko > Subject: Re: get involved > > Bill, > > Welcome to the group. I think you'll find that this list is almost > always on-topic. I did my own informal survey and found that fewer > than 5 posts out of the hundred I looked at were off-topic or > non-value-adding. You can conduct your own survey by visiting > the archives: > > http://www.sqrug.com/sqr-users/ > > Ray > From owner-sqr-users@list.iex.net Thu Jan 17 14:38:33 2002 Date: Thu, 17 Jan 2002 11:44:22 -0500 From: Fred Schiff Subject: Re: PDF file conversion utilities - Best of breed recommendation plea se! We have had SQR create postscript files and then run them through Adobe's distiller. The pdf files are much more compact. Fred "Laura Lopez" @list.iex.net> on 01/16/2002 02:36:19 PM Please respond to sqr-users@list.iex.net Sent by: "Discussion of SQR, Brio Software's database reporting language" To: SQR-USERS@list.iex.net cc: Subject: PDF file conversion utilities - Best of breed recommendation plea se! We are using SQR version 4.3.4.x and although PDF file conversion is supported, we are frustrated with the reliability and speed of the conversion process. On large PDF files we seem to have file corruption problems, whereas the same report with a smaller file will run fine. After researching on this user group (a wonderful resource) we've seen others recommend either Ghostscript or Adobe Distiller. What is the current best of breed recommendation for conversions in terms of reliability and speed? Also, is Postscript to PDF the best way to end up with a PDF file? Is there even a third party SPF to PDF utility? Many thanks in advance. _______________________ Laura López Extension: 1018 From owner-sqr-users@list.iex.net Thu Jan 17 15:19:51 2002 Date: Thu, 17 Jan 2002 13:56:55 -0600 From: "Cook, Andy" Subject: Re: get involved I like hearing about kitty litter also. It reminds me of Toonces the Driving Cat. Whatever happened to that skit on Saturday Night Live? -----Original Message----- From: David Thorburn [mailto:thorburn@CONL.NET] Sent: Thursday, January 17, 2002 12:54 PM To: SQR-USERS@list.iex.net Subject: Re: get involved Kewl! I like hearing about kitty litter - It reminds me of Ren and Stimpy, one of my favorite cartoons! D. ----- Original Message ----- From: "Denise White" To: Sent: Thursday, January 17, 2002 8:39 AM Subject: Re: get involved > Actually, when I first joined the group, most of the posts seemed to be about > kitty litter/litterboxes, and Ford Explorers (or some such model)! There was > another prevalent topic, too, but I forget what it was. I'm sure there are a > few other 'old-timers' around here who remember those discussions (my favorite > was a very technical spec for changing kitty litter)! I realize that these > things really annoy some people, but - lighten up! Everyone can use a little > humor in their day! > > Denise > ------------------------------ > > Date: Wed, 16 Jan 2002 14:38:52 -0500 > From: Ray Ontko > Subject: Re: get involved > > Bill, > > Welcome to the group. I think you'll find that this list is almost > always on-topic. I did my own informal survey and found that fewer > than 5 posts out of the hundred I looked at were off-topic or > non-value-adding. You can conduct your own survey by visiting > the archives: > > http://www.sqrug.com/sqr-users/ > > Ray > ************************************************************ Omaha World-Herald Company computer systems are for business use only. This e-mail was scanned by MailSweeper ************************************************************ From owner-sqr-users@list.iex.net Fri Jan 18 02:44:27 2002 Date: Fri, 18 Jan 2002 08:15:42 +0100 From: "Sangameswaran Subathra (KAWP 12)" Subject: memory error Hi everybody, This error occurs whenever, i make some complex expressions or work for long with SQR editor or with Report Builder. The entire application gets closed after i give ok to the error message. Have you ever encountered this problem before? Do you know of any solution? <<...OLE_Obj...>> And the wbench.dmp file looks like this..... 000: 1/18/2002 8:11 001: C0000005 at 5F4012A1 002: 00000010 003: 00000000 00000004 004: EAX=00000000 CS=001B EIP=5F4012A1 EFLGS=00010246 005: EBX=5F4D0008 SS=0023 ESP=0012D588 EBP=0012D5BC 006: ECX=00000000 DS=0023 ESI=003253A0 FS=003B 007: EDX=00000006 ES=0023 EDI=0013598C GS=0000 008: 003253A0 5F4057D8 14BB01DA 0013598C 5F4D0008 001358C0 5F4777D9 00000001 001358C0 001358C0 0012D790 5F492C67 00000000 0012D5E0 5F410052 00135528 5F41003B 00000001 00000000 5F4D0008 5F4D0024 00000001 0012D734 5F40FF80 00135528 00000000 5F4D2700 00136E10 00000000 5F41207A 00000000 00000001 5F40FF01 00000000 00000001 00000001 00000000 5F400000 77FA80C0 00000001 00000001 77BC7400 0012D670 77F92CD4 77F9D200 FFFFFFFF 0012D680 77F6CD00 00136230 65340000 77F6CC6A 77F6C2F3 77FA75D0 77F6C2F4 0000001E 00D30BC0 00000083 00000044 001361D0 0012D608 00000020 0012D790 77F92CD4 77F6C36D 77FA75D0 77F6C36E 001360F0 00D20000 00D20050 00000083 77F6C36D 77FA75D0 77F6C36E 001360B0 77BCCC18 00000001 77F6CD00 77F6C36D 77FA75D0 77F6C36E 00136090 00000000 00133220 77F6CD00 00136090 0012D71C 77F92CD4 77F9D200 FFFFFFFF 0012D72C 77F6CD00 00136070 00000001 00000000 00133220 77B4C01C 77B3CB9F 00000000 00136070 77B3CB71 00000001 0012D790 77F92CD4 77F9D220 FFFFFFFF 0012D754 77B45B43 0012D754 5F40F9EC 5F400000 00000000 00000001 00132638 7FFDF000 00133170 0012D7A0 77F69E0A 5F400000 00000000 00000001 005AFFD6 FFFFFFFF 00000000 00000000 001599F0 00133170 77F92CD4 5F40F9A1 00000000 0012D3D0 0012D850 77F92CD4 77F9D100 00000000 0012D860 77F19FDB 005AFFD6 0012DC80 77E788F1 00000001 00000000 0012D810 0012D7F0 00000000 77F8F2AD 00130000 0014DA38 00000000 0012D7CC 77EBBB40 0012D8A0 77F92CD4 77F9D870 FFFFFFFF 0012D818 77F64DDC 00130A10 0014DA40 005AFFD6 00000001 77E788F1 00000001 0012D838 00000017 0012D838 77E8BB80 00130000 00000000 0014DA40 0012DC80 0014DA40 00000000 0012D854 77E8B6BD 00000000 005AFFD6 00000000 0012D3D0 0012D8A0 77F3B944 77F3D1A8 00000000 00000008 004FD1E9 FFFFFFFF 00567288 0012DBB0 0012DB6C 00000000 0012DD68 01292D68 30303030 30303030 FFFF0020 000107D2 00120005 00070008 0255002D 0012DB5C 00547868 FFFFFFFF 0182CF7E 0012DBB0 00000000 77F1D5ED 0012DBB0 00567288 00300F80 00000000 00130000 00040301 000001F0 00000000 00000301 001478C8 00000000 0126DCEC 00000034 01257408 01257408 0126D13C 00000000 00000000 0012D950 01E4596E 01257408 00000000 0126DCEC 000007F4 0126D8FC 00000000 00000024 0126D940 0015D814 00000000 00000000 77F7E4BA 0015E338 00000000 00000301 00130000 01816C10 0012D9C4 0012D96C 01816C1D FFFFFFFF 0012D978 018171FD 0012D9C4 01257034 01256F0C FFFFFFFF 0012D990 01813986 0126D940 00000000 Thanks and best regards, Subha. From owner-sqr-users@list.iex.net Fri Jan 18 04:48:55 2002 Date: Fri, 18 Jan 2002 09:27:12 +0000 From: Jill Hughes Subject: Re: SQR Date comparison in Database Nags, If you had all the types of items listed in a table, you could loop through it and make a call to another procedure to get the number for each type. Something like this: BEGIN-PROGRAM BEGIN-SELECT item &item ! e.g. apple etc LET $item=&item DO get_amount($item, #amount) print $item (+1,13) print #amount (,26) FROM all_items END-SELECT END-PROGRAM BEGIN-PROCEDURE get_amount($p_item, :#p_amount) BEGIN-SELECT sum(*) &amount LET #p_amount=&amount FROM orders WHERE item=$p_item END-SELECT END-PROCEDURE Hope this helps, Jill Subject: SQR Date comparison in Database Date: Thu, 17 Jan 2002 20:18:53 +0530 Hi, I have a Question in SQR date comparison with database .In Database , we have the Values for Dates in UTC ( sec's past Jan,1,1970) Ex: the value of Oct-01-2001 21:02:33 will be stored as 1002056553. Question I want to compare the dates alone , and count the no of Orders leaving aside the time Portion of UTC .Because in a Day i may have multiple orders raised in specific time intervals Oct-01-2001 21:02:33 no of orders-5 Oct-01-2001 22:03:33 no of orders -10 Oct-01-2001 23:03:33 no of orders -20 Oct-01-2001 23:03:34 no of orders -5 I have to find the aggrecate of this Date as display as follows : Oct-01-2001 40 ( Fruits ) Leaving the time in Display is not a Problem .I have wriiten a function in Ucall.c , to convert UTC to the Required time Format . But i wish to do my comparisons with Respect to date and not with respect to Date and time Can u suggest me a way please as usual .Again this is in the hit list.We tried a method and it did work , but i feel it found about.We passed the UTC to a function in ucall.c which returns the truncated date string.we made the aggrecate with this .Is this the way out ? another Question : To compare i have the list in a table (orange,grape,wine,tablets etc ).The table which am comparing has the value from one among the list . Example: a customer drops in and Buys just apples. I have the show a tabular Report which should have Nags orange=0 grape=0 apple=5 etc xxx and so- on a 0 for the items not listed in the query has to be displayed .We tried a round about way and it did work .If the Database had a null value then there is no problem we can do it , but it has the value which is one among the list from the table .For the other ones which are'nt in pict , i should display a report . Kindly suggest me a way for this too. Thanks in advance . Regards Nags _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From owner-sqr-users@list.iex.net Fri Jan 18 07:24:11 2002 Date: Fri, 18 Jan 2002 06:56:11 EST From: SJohn22151@AOL.COM Subject: Re: memory error Check your program for recursive calls. HTH, Steffon From owner-sqr-users@list.iex.net Fri Jan 18 10:40:26 2002 Date: Fri, 18 Jan 2002 15:13:17 +0000 From: Andrew Rivers Subject: Procedure: Selection from different schemas Hi I need to run an sqr program at different times against different schemas and select fields which may be in one schema but not in another schema, for example: begin-procedure getData local ... begin-select ... !select this field which only occurs in this $schemaName if $schemaName = {THISSCHEMA} tbName.fieldName &tbNameFieldName end-if ... from $schemaName.tbName ... end-select ... end-procedure The compiler sees the field tbName.fieldName and throws an exception ignoring the condition. The work around is to select the procedure depending on which schema is connected: ... if $schemaName = {THISSCHEMA} do getDataForSchema1 else do getDataForSchema2 end-if ... Where the SQL selection in each of the procedures (getDataForSchema1/getDataForSchema) is specific to the fields in the different schemas. This is not a good workaround since two very similar procedure need to be maintained. I have tried various solutions to pass without any success. If anyone has a solution/suggestion, I would be pleased to know. Many thanks. Andrew From owner-sqr-users@list.iex.net Fri Jan 18 12:08:41 2002 Date: Fri, 18 Jan 2002 11:32:52 -0500 From: Joy Hoyte Subject: Re: Procedure: Selection from different schemas Andrew, The If statement around the column name won't work because in dealing with the Select statement, SQR first pulls out the SQL and builds a result set, then goes back to process that result set row by row according to the SQR commands within the Begin-Select. So at the time it is actually interpreting the SQL, it is not yet looking at any SQR commands that may be within the begin-select. To achieve what you are wanting to do, you could set up a begin-select with dynamic column variables. In the same way that you use a variable for the schema name, you can use variables for the column names. Something like the following example: begin-select [$column1] &col1=number [$column2] &col2=char etc. sqr commands from [$schemaName].tbName end-select You can have as many column variables as you wish, but note that you have to provide an &alias as well as the datatype for each variable. Then BEFORE you call the procedure containing this select statement, you can do the if-logic to assign the appropriate column names to the variables depending on the schema that is in force. E.g. if $schemaName = '{THISSCHEMA}' move 'tbName.fieldName' to $column1 move 'xyz' to $column2 etc. end-if Hope that helps. Joy Hoyte ----- Original Message ----- From: "Andrew Rivers" To: Sent: Friday, January 18, 2002 10:13 AM Subject: Procedure: Selection from different schemas > Hi > I need to run an sqr program at different times against different schemas and > select fields which may be in one schema but not in another schema, for example: > > begin-procedure getData local > ... > begin-select > ... > !select this field which only occurs in this $schemaName > if $schemaName = {THISSCHEMA} > tbName.fieldName &tbNameFieldName > end-if > ... > from $schemaName.tbName > ... > end-select > ... > end-procedure > > The compiler sees the field tbName.fieldName and throws an exception ignoring > the condition. > > The work around is to select the procedure depending on which schema is > connected: > > ... > if $schemaName = {THISSCHEMA} > do getDataForSchema1 > else > do getDataForSchema2 > end-if > ... > > Where the SQL selection in each of the procedures > (getDataForSchema1/getDataForSchema) is specific to the fields in the different > schemas. > This is not a good workaround since two very similar procedure need to be > maintained. > > I have tried various solutions to pass without any success. > If anyone has a solution/suggestion, I would be pleased to know. > > Many thanks. > > Andrew > From owner-sqr-users@list.iex.net Fri Jan 18 12:57:53 2002 Date: Fri, 18 Jan 2002 17:27:45 +0000 From: Andrew Rivers Subject: Re: Procedure: Selection from different schemas Joy Thanks for your suggestion. I have tried your suggestion. The problem is that the table has different fields in the two schemas and some fields are only in one schema. I had tried moving a null value into the dynamic variable for the case where the schema did not have the particular field – This didn't work. However, your suggestion broke my mental block and I can see a resolution... I can move a duplicate field into the dynamic variable for the case where the schema does not contain the field which is only in the other schema. I have every confidence that the solution will work... Many thanks indeed. Andrew _____________________________________________ Quoting Joy Hoyte : > Andrew, > > The If statement around the column name won't work because in dealing > with > the Select statement, SQR first pulls out the SQL and builds a result > set, > then goes back to process that result set row by row according to the > SQR > commands within the Begin-Select. So at the time it is actually > interpreting the SQL, it is not yet looking at any SQR commands that may > be > within the begin-select. > > To achieve what you are wanting to do, you could set up a begin-select > with > dynamic column variables. In the same way that you use a variable for > the > schema name, you can use variables for the column names. Something like > the > following example: > > begin-select > [$column1] &col1=number > [$column2] &col2=char > etc. > sqr commands > > from [$schemaName].tbName > end-select > > You can have as many column variables as you wish, but note that you > have to > provide an &alias as well as the datatype for each variable. > > Then BEFORE you call the procedure containing this select statement, you > can > do the if-logic to assign the appropriate column names to the > variables > depending on the schema that is in force. > > E.g. > > if $schemaName = '{THISSCHEMA}' > move 'tbName.fieldName' to $column1 > move 'xyz' to $column2 > etc. > end-if > > Hope that helps. > > Joy Hoyte > > ----- Original Message ----- > From: "Andrew Rivers" > To: > Sent: Friday, January 18, 2002 10:13 AM > Subject: Procedure: Selection from different schemas > > > > Hi > > I need to run an sqr program at different times against different > schemas > and > > select fields which may be in one schema but not in another schema, > for > example: > > > > begin-procedure getData local > > ... > > begin-select > > ... > > !select this field which only occurs in this $schemaName > > if $schemaName = {THISSCHEMA} > > tbName.fieldName &tbNameFieldName > > end-if > > ... > > from $schemaName.tbName > > ... > > end-select > > ... > > end-procedure > > > > The compiler sees the field tbName.fieldName and throws an exception > ignoring > > the condition. > > > > The work around is to select the procedure depending on which schema > is > > connected: > > > > ... > > if $schemaName = {THISSCHEMA} > > do getDataForSchema1 > > else > > do getDataForSchema2 > > end-if > > ... > > > > Where the SQL selection in each of the procedures > > (getDataForSchema1/getDataForSchema) is specific to the fields in > the > different > > schemas. > > This is not a good workaround since two very similar procedure need to > be > > maintained. > > > > I have tried various solutions to pass without any success. > > If anyone has a solution/suggestion, I would be pleased to know. > > > > Many thanks. > > > > Andrew > > > From owner-sqr-users@list.iex.net Fri Jan 18 13:28:50 2002 Date: Fri, 18 Jan 2002 13:04:31 -0500 From: "Johnson, Dan" Subject: Re: Procedure: Selection from different schemas If I am understanding you correctly you should be able to use SQR's dynamic query functionality to accomplish your goal. begin-procedure getData local begin-select ... [$schemaNamefieldName] (datatype, like char or number) $schemaNameFieldName end-if ... from [$schemaNametbName] ... end-select ... end-procedure My SQR syntax is a little rusty so I would check it. I believe this will work. Good luck, Dan -----Original Message----- From: Andrew Rivers Sent: Friday, January 18, 2002 10:13 AM To: Subject: Procedure: Selection from different schemas Hi I need to run an sqr program at different times against different schemas and select fields which may be in one schema but not in another schema, for example: begin-procedure getData local ... begin-select ... !select this field which only occurs in this $schemaName if $schemaName = {THISSCHEMA} tbName.fieldName &tbNameFieldName end-if ... from $schemaName.tbName ... end-select ... end-procedure The compiler sees the field tbName.fieldName and throws an exception ignoring the condition. The work around is to select the procedure depending on which schema is connected: ... if $schemaName = {THISSCHEMA} do getDataForSchema1 else do getDataForSchema2 end-if ... Where the SQL selection in each of the procedures (getDataForSchema1/getDataForSchema) is specific to the fields in the different schemas. This is not a good workaround since two very similar procedure need to be maintained. I have tried various solutions to pass without any success. If anyone has a solution/suggestion, I would be pleased to know. Many thanks. Andrew From owner-sqr-users@list.iex.net Fri Jan 18 15:00:29 2002 Date: Fri, 18 Jan 2002 11:28:10 -0800 From: Kevin Jarvis Subject: Issue with $AsOfDate on DB2 (works on SQL Server) I'm having an issue where it seems to not be able to compare $AsOfDate to EFFDT on DB2. I've been looking all over for an answer as to why this is happening, but haven't had any luck. Thanks for the help!! For the following code: begin-procedure Get-Vendor-Loc-Addr #debugh do debug-msg('Get-Vendor-Address') begin-select VNDRLOC.ADDR_SEQ_NUM_ORDR from PS_VENDOR_LOC VNDRLOC where VNDRLOC.SETID = &AUC_DISP_HDR.BIDDER_SETID AND VNDRLOC.VENDOR_ID = &AUC_DISP_HDR.BIDDER_ID AND VNDRLOC.VNDR_LOC = &AUC_DISP_HDR.BIDDER_LOC AND VNDRLOC.EFFDT = (SELECT MAX(EFFDT) from PS_VENDOR_LOC VNDRLOC_EFFDT where VNDRLOC_EFFDT.SETID = VNDRLOC.SETID and VNDRLOC_EFFDT.VENDOR_ID = VNDRLOC.VENDOR_ID and VNDRLOC_EFFDT.VNDR_LOC = VNDRLOC.VNDR_LOC and VNDRLOC_EFFDT.EFFDT <= $AsOfToday) AND VNDRLOC.EFF_STATUS = 'A' end-select End-Procedure !Get-Vendor-Loc-Addr I receive this error: (SQR 5528) DB2 SQL OPEN/EXECUTE error -302 in cursor 23: SQL0302N The value of a host variable in the EXECUTE or OPEN statement is too large for its corresponding use. SQLSTATE=22001 Error on line 541: (SQR 3723) Problem executing cursor. SQR for PeopleSoft: Program Aborting. __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ From owner-sqr-users@list.iex.net Fri Jan 18 15:11:17 2002 Date: Fri, 18 Jan 2002 14:44:17 -0500 From: Dawn Canales Subject: Re: Issue with $AsOfDate on DB2 (works on SQL Server) We use the current date command for this kind of logic. Example: effdt <= current date I hope this helps. Kevin Jarvis @list.iex.net> on 01/18/2002 02:28:10 PM Please respond to sqr-users@list.iex.net Sent by: "Discussion of SQR, Brio Software's database reporting language" To: SQR-USERS@list.iex.net cc: Subject: Issue with $AsOfDate on DB2 (works on SQL Server) I'm having an issue where it seems to not be able to compare $AsOfDate to EFFDT on DB2. I've been looking all over for an answer as to why this is happening, but haven't had any luck. Thanks for the help!! For the following code: begin-procedure Get-Vendor-Loc-Addr #debugh do debug-msg('Get-Vendor-Address') begin-select VNDRLOC.ADDR_SEQ_NUM_ORDR from PS_VENDOR_LOC VNDRLOC where VNDRLOC.SETID = &AUC_DISP_HDR.BIDDER_SETID AND VNDRLOC.VENDOR_ID = &AUC_DISP_HDR.BIDDER_ID AND VNDRLOC.VNDR_LOC = &AUC_DISP_HDR.BIDDER_LOC AND VNDRLOC.EFFDT = (SELECT MAX(EFFDT) from PS_VENDOR_LOC VNDRLOC_EFFDT where VNDRLOC_EFFDT.SETID = VNDRLOC.SETID and VNDRLOC_EFFDT.VENDOR_ID = VNDRLOC.VENDOR_ID and VNDRLOC_EFFDT.VNDR_LOC = VNDRLOC.VNDR_LOC and VNDRLOC_EFFDT.EFFDT <= $AsOfToday) AND VNDRLOC.EFF_STATUS = 'A' end-select End-Procedure !Get-Vendor-Loc-Addr I receive this error: (SQR 5528) DB2 SQL OPEN/EXECUTE error -302 in cursor 23: SQL0302N The value of a host variable in the EXECUTE or OPEN statement is too large for its corresponding use. SQLSTATE=22001 Error on line 541: (SQR 3723) Problem executing cursor. SQR for PeopleSoft: Program Aborting. __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ From owner-sqr-users@list.iex.net Fri Jan 18 15:15:09 2002 Date: Fri, 18 Jan 2002 14:53:31 -0500 From: "Schelske, Steve K." Subject: Re: Issue with $AsOfDate on DB2 (works on SQL Server) What is the value in $AsOfDate? DB2's date format is YYYY-MM-DD. Maybe its different in SQL Server? -----Original Message----- From: Discussion of SQR, Brio Software's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Kevin Jarvis Sent: Friday, January 18, 2002 2:28 PM To: SQR-USERS@list.iex.net Subject: Issue with $AsOfDate on DB2 (works on SQL Server) I'm having an issue where it seems to not be able to compare $AsOfDate to EFFDT on DB2. I've been looking all over for an answer as to why this is happening, but haven't had any luck. Thanks for the help!! For the following code: begin-procedure Get-Vendor-Loc-Addr #debugh do debug-msg('Get-Vendor-Address') begin-select VNDRLOC.ADDR_SEQ_NUM_ORDR from PS_VENDOR_LOC VNDRLOC where VNDRLOC.SETID = &AUC_DISP_HDR.BIDDER_SETID AND VNDRLOC.VENDOR_ID = &AUC_DISP_HDR.BIDDER_ID AND VNDRLOC.VNDR_LOC = &AUC_DISP_HDR.BIDDER_LOC AND VNDRLOC.EFFDT = (SELECT MAX(EFFDT) from PS_VENDOR_LOC VNDRLOC_EFFDT where VNDRLOC_EFFDT.SETID = VNDRLOC.SETID and VNDRLOC_EFFDT.VENDOR_ID = VNDRLOC.VENDOR_ID and VNDRLOC_EFFDT.VNDR_LOC = VNDRLOC.VNDR_LOC and VNDRLOC_EFFDT.EFFDT <= $AsOfToday) AND VNDRLOC.EFF_STATUS = 'A' end-select End-Procedure !Get-Vendor-Loc-Addr I receive this error: (SQR 5528) DB2 SQL OPEN/EXECUTE error -302 in cursor 23: SQL0302N The value of a host variable in the EXECUTE or OPEN statement is too large for its corresponding use. SQLSTATE=22001 Error on line 541: (SQR 3723) Problem executing cursor. SQR for PeopleSoft: Program Aborting. __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ From owner-sqr-users@list.iex.net Fri Jan 18 15:29:37 2002 Date: Fri, 18 Jan 2002 15:05:13 -0500 From: "Heely, Paul" Subject: Re: Issue with $AsOfDate on DB2 (works on SQL Server) Are you explicitly declaring $AsOfDate to be a date? I found that I had to do this when I was trying to match effdt to our fiscal month dates. declare-variable date $var_name end-declare Hope it helps. --Paul > -----Original Message----- > From: Kevin Jarvis [mailto:jarviske@YAHOO.COM] > Sent: Friday, January 18, 2002 2:28 PM > To: SQR-USERS@list.iex.net > Subject: Issue with $AsOfDate on DB2 (works on SQL Server) > > > I'm having an issue where it seems to not be able to > compare $AsOfDate to EFFDT on DB2. I've been looking > all over for an answer as to why this is happening, > but haven't had any luck. Thanks for the help!! > > For the following code: > > begin-procedure Get-Vendor-Loc-Addr > #debugh do debug-msg('Get-Vendor-Address') > > begin-select > VNDRLOC.ADDR_SEQ_NUM_ORDR > from > PS_VENDOR_LOC VNDRLOC > where > VNDRLOC.SETID = &AUC_DISP_HDR.BIDDER_SETID > AND > VNDRLOC.VENDOR_ID = &AUC_DISP_HDR.BIDDER_ID AND > VNDRLOC.VNDR_LOC = &AUC_DISP_HDR.BIDDER_LOC AND > VNDRLOC.EFFDT = > (SELECT MAX(EFFDT) > from > PS_VENDOR_LOC VNDRLOC_EFFDT > where > VNDRLOC_EFFDT.SETID = VNDRLOC.SETID and > VNDRLOC_EFFDT.VENDOR_ID = VNDRLOC.VENDOR_ID and > VNDRLOC_EFFDT.VNDR_LOC = VNDRLOC.VNDR_LOC and > VNDRLOC_EFFDT.EFFDT <= $AsOfToday) AND > VNDRLOC.EFF_STATUS = 'A' > end-select > > End-Procedure !Get-Vendor-Loc-Addr > > I receive this error: > (SQR 5528) DB2 SQL OPEN/EXECUTE error -302 in cursor > 23: > SQL0302N The value of a host variable in the > EXECUTE or OPEN statement is too > > large for its corresponding use. SQLSTATE=22001 > > Error on line 541: > (SQR 3723) Problem executing cursor. > > SQR for PeopleSoft: Program Aborting. > > __________________________________________________ > Do You Yahoo!? > Send FREE video emails in Yahoo! Mail! > http://promo.yahoo.com/videomail/ > From owner-sqr-users@list.iex.net Fri Jan 18 15:34:57 2002 Date: Fri, 18 Jan 2002 15:13:41 -0500 From: "Turner, Ivan" Subject: Re: Issue with $AsOfDate on DB2 (works on SQL Server) If To_Number($One_Dt) > To_Number($Two_Dt) and to_number(VNDRLOC_EFFDT.EFFDT) <= to_number($AsOfToday)) -----Original Message----- From: Heely, Paul [mailto:PHeely@AMESHOME.COM] Sent: Friday, January 18, 2002 3:05 PM To: SQR-USERS@list.iex.net Subject: Re: Issue with $AsOfDate on DB2 (works on SQL Server) Are you explicitly declaring $AsOfDate to be a date? I found that I had to do this when I was trying to match effdt to our fiscal month dates. declare-variable date $var_name end-declare Hope it helps. --Paul > -----Original Message----- > From: Kevin Jarvis [mailto:jarviske@YAHOO.COM] > Sent: Friday, January 18, 2002 2:28 PM > To: SQR-USERS@list.iex.net > Subject: Issue with $AsOfDate on DB2 (works on SQL Server) > > > I'm having an issue where it seems to not be able to > compare $AsOfDate to EFFDT on DB2. I've been looking > all over for an answer as to why this is happening, > but haven't had any luck. Thanks for the help!! > > For the following code: > > begin-procedure Get-Vendor-Loc-Addr > #debugh do debug-msg('Get-Vendor-Address') > > begin-select > VNDRLOC.ADDR_SEQ_NUM_ORDR > from > PS_VENDOR_LOC VNDRLOC > where > VNDRLOC.SETID = &AUC_DISP_HDR.BIDDER_SETID > AND > VNDRLOC.VENDOR_ID = &AUC_DISP_HDR.BIDDER_ID AND > VNDRLOC.VNDR_LOC = &AUC_DISP_HDR.BIDDER_LOC AND > VNDRLOC.EFFDT = > (SELECT MAX(EFFDT) > from > PS_VENDOR_LOC VNDRLOC_EFFDT > where > VNDRLOC_EFFDT.SETID = VNDRLOC.SETID and > VNDRLOC_EFFDT.VENDOR_ID = VNDRLOC.VENDOR_ID and > VNDRLOC_EFFDT.VNDR_LOC = VNDRLOC.VNDR_LOC and > VNDRLOC_EFFDT.EFFDT <= $AsOfToday) AND > VNDRLOC.EFF_STATUS = 'A' > end-select > > End-Procedure !Get-Vendor-Loc-Addr > > I receive this error: > (SQR 5528) DB2 SQL OPEN/EXECUTE error -302 in cursor > 23: > SQL0302N The value of a host variable in the > EXECUTE or OPEN statement is too > > large for its corresponding use. SQLSTATE=22001 > > Error on line 541: > (SQR 3723) Problem executing cursor. > > SQR for PeopleSoft: Program Aborting. > > __________________________________________________ > Do You Yahoo!? > Send FREE video emails in Yahoo! Mail! > http://promo.yahoo.com/videomail/ > From owner-sqr-users@list.iex.net Sat Jan 19 23:39:25 2002 Date: Sat, 19 Jan 2002 20:11:10 -0800 From: Arun Kumar Subject: Re: Issue with $AsOfDate on DB2 (works on SQL Server) I would say add a show statement to display the $ASofToday before the procedure or comment the procedure and see whether $AsofToday has the right format for db2. Hope this helps Arun --- "Turner, Ivan" wrote: > If To_Number($One_Dt) > To_Number($Two_Dt) > > and to_number(VNDRLOC_EFFDT.EFFDT) <= > to_number($AsOfToday)) > > -----Original Message----- > From: Heely, Paul [mailto:PHeely@AMESHOME.COM] > Sent: Friday, January 18, 2002 3:05 PM > To: SQR-USERS@list.iex.net > Subject: Re: Issue with $AsOfDate on DB2 (works on > SQL Server) > > > Are you explicitly declaring $AsOfDate to be a date? > I found that I had to > do this when I was trying to match effdt to our > fiscal month dates. > > declare-variable > date $var_name > end-declare > > Hope it helps. > > --Paul > > > -----Original Message----- > > From: Kevin Jarvis [mailto:jarviske@YAHOO.COM] > > Sent: Friday, January 18, 2002 2:28 PM > > To: SQR-USERS@list.iex.net > > Subject: Issue with $AsOfDate on DB2 (works on SQL > Server) > > > > > > I'm having an issue where it seems to not be able > to > > compare $AsOfDate to EFFDT on DB2. I've been > looking > > all over for an answer as to why this is > happening, > > but haven't had any luck. Thanks for the help!! > > > > For the following code: > > > > begin-procedure Get-Vendor-Loc-Addr > > #debugh do debug-msg('Get-Vendor-Address') > > > > begin-select > > VNDRLOC.ADDR_SEQ_NUM_ORDR > > from > > PS_VENDOR_LOC VNDRLOC > > where > > VNDRLOC.SETID = > &AUC_DISP_HDR.BIDDER_SETID > > AND > > VNDRLOC.VENDOR_ID = &AUC_DISP_HDR.BIDDER_ID > AND > > VNDRLOC.VNDR_LOC = &AUC_DISP_HDR.BIDDER_LOC > AND > > VNDRLOC.EFFDT = > > (SELECT MAX(EFFDT) > > from > > PS_VENDOR_LOC VNDRLOC_EFFDT > > where > > VNDRLOC_EFFDT.SETID = VNDRLOC.SETID and > > VNDRLOC_EFFDT.VENDOR_ID = VNDRLOC.VENDOR_ID > and > > VNDRLOC_EFFDT.VNDR_LOC = VNDRLOC.VNDR_LOC > and > > VNDRLOC_EFFDT.EFFDT <= $AsOfToday) AND > > VNDRLOC.EFF_STATUS = 'A' > > end-select > > > > End-Procedure !Get-Vendor-Loc-Addr > > > > I receive this error: > > (SQR 5528) DB2 SQL OPEN/EXECUTE error -302 in > cursor > > 23: > > SQL0302N The value of a host variable in the > > EXECUTE or OPEN statement is too > > > > large for its corresponding use. SQLSTATE=22001 > > > > Error on line 541: > > (SQR 3723) Problem executing cursor. > > > > SQR for PeopleSoft: Program Aborting. > > > > __________________________________________________ > > Do You Yahoo!? > > Send FREE video emails in Yahoo! Mail! > > http://promo.yahoo.com/videomail/ > > __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ From owner-sqr-users@list.iex.net Mon Jan 21 00:59:17 2002 Date: Mon, 21 Jan 2002 16:29:41 +1100 From: Christian Scheiber Subject: Write command Hi all I'm trying to write data to a text file, however I need the output to be in the following format. I can get the delimiter to change but I can get the quotes around the data. Any help, especially some basic code appreciated. "00000346","LAMB;LOIN MEDALLION,GOURMET,90GM/EA",0.09,2.25,"KG","MEAT","CROWN","2000-03-09" "00000393","CAKE;SLICE,RICH FRUIT 100GM/EA",0.1,0.66,"KG","BAKRY","CROWN","2000-03-17" Many thanks Christian Scheiber Analyst Programmer - Financial Systems Level 6, Clarke Street Southbank 3006 Victoria Australia Phone: 61-3 9292 4174, Fax: 61-3 9292 4141 email: - christians@crownltd.com.au ====================== Important information: ====================== Before opening or using any attachments, you should check them for viruses and defects. If you are not an authorised recipient of this e-mail, please contact Crown Limited immediately by return e-mail or by telephone on (61-3) 9292 8888. In this case, you should not read, print, re-transmit, store, disclose, use or act in reliance on this e-mail including any attachments, and should destroy all copies of them. This e-mail and any attachments are confidential, may be privileged and may contain copyright material of Crown Limited or third parties. Crown is not responsible for any changes made by any third party (including the addressee) to this e-mail, including any attachments. This notice should not be removed. =================================== From owner-sqr-users@list.iex.net Mon Jan 21 01:13:06 2002 Date: Mon, 21 Jan 2002 16:43:09 +1100 From: Christian Scheiber Subject: Re: Write command Sorry all, it should read I CAN'T get the quotes around the data!! -----Original Message----- From: Christian Scheiber [mailto:christians@CROWNLTD.COM.AU] Sent: Monday, January 21, 2002 4:30 PM To: SQR-USERS@list.iex.net Subject: Write command Hi all I'm trying to write data to a text file, however I need the output to be in the following format. I can get the delimiter to change but I can get the quotes around the data. Any help, especially some basic code appreciated. "00000346","LAMB;LOIN MEDALLION,GOURMET,90GM/EA",0.09,2.25,"KG","MEAT","CROWN","2000-03-09" "00000393","CAKE;SLICE,RICH FRUIT 100GM/EA",0.1,0.66,"KG","BAKRY","CROWN","2000-03-17" Many thanks Christian Scheiber Analyst Programmer - Financial Systems Level 6, Clarke Street Southbank 3006 Victoria Australia Phone: 61-3 9292 4174, Fax: 61-3 9292 4141 email: - christians@crownltd.com.au ====================== Important information: ====================== Before opening or using any attachments, you should check them for viruses and defects. If you are not an authorised recipient of this e-mail, please contact Crown Limited immediately by return e-mail or by telephone on (61-3) 9292 8888. In this case, you should not read, print, re-transmit, store, disclose, use or act in reliance on this e-mail including any attachments, and should destroy all copies of them. This e-mail and any attachments are confidential, may be privileged and may contain copyright material of Crown Limited or third parties. Crown is not responsible for any changes made by any third party (including the addressee) to this e-mail, including any attachments. This notice should not be removed. =================================== ====================== Important information: ====================== Before opening or using any attachments, you should check them for viruses and defects. If you are not an authorised recipient of this e-mail, please contact Crown Limited immediately by return e-mail or by telephone on (61-3) 9292 8888. In this case, you should not read, print, re-transmit, store, disclose, use or act in reliance on this e-mail including any attachments, and should destroy all copies of them. This e-mail and any attachments are confidential, may be privileged and may contain copyright material of Crown Limited or third parties. Crown is not responsible for any changes made by any third party (including the addressee) to this e-mail, including any attachments. This notice should not be removed. =================================== From owner-sqr-users@list.iex.net Mon Jan 21 03:04:10 2002 Date: Mon, 21 Jan 2002 15:41:10 +0800 From: Galicinao Emil-r36013 Subject: Re: Write command Hi Christian, Below is a line taken from one of my program that I have developed: I believe this is similar to what you want. let $optional_col = '="'||&sort_col1||'",="'||&sort_col2||'",="'||&sort_col3||'",="'||&sort_col4 ||'",="'||&sort_col5||'",="'||&sort_col6||'",="'||&sort_col7||'",' sample output: ="AAAAAAA",="BBBBBBBBB","CCCCCCCCC", ........... Hope this helps. Best Regards, Emil -----Original Message----- From: Christian Scheiber [mailto:christians@CROWNLTD.COM.AU] Sent: Monday, January 21, 2002 1:30 PM To: SQR-USERS@list.iex.net Subject: Write command Hi all I'm trying to write data to a text file, however I need the output to be in the following format. I can get the delimiter to change but I can get the quotes around the data. Any help, especially some basic code appreciated. "00000346","LAMB;LOIN MEDALLION,GOURMET,90GM/EA",0.09,2.25,"KG","MEAT","CROWN","2000-03-09" "00000393","CAKE;SLICE,RICH FRUIT 100GM/EA",0.1,0.66,"KG","BAKRY","CROWN","2000-03-17" Many thanks Christian Scheiber Analyst Programmer - Financial Systems Level 6, Clarke Street Southbank 3006 Victoria Australia Phone: 61-3 9292 4174, Fax: 61-3 9292 4141 email: - christians@crownltd.com.au ====================== Important information: ====================== Before opening or using any attachments, you should check them for viruses and defects. If you are not an authorised recipient of this e-mail, please contact Crown Limited immediately by return e-mail or by telephone on (61-3) 9292 8888. In this case, you should not read, print, re-transmit, store, disclose, use or act in reliance on this e-mail including any attachments, and should destroy all copies of them. This e-mail and any attachments are confidential, may be privileged and may contain copyright material of Crown Limited or third parties. Crown is not responsible for any changes made by any third party (including the addressee) to this e-mail, including any attachments. This notice should not be removed. =================================== From owner-sqr-users@list.iex.net Mon Jan 21 03:40:05 2002 Date: Mon, 21 Jan 2002 00:11:52 -0800 From: Al H Subject: Re: Write command Use the ascii code (or ebcdic if you are on a mainframe) to string the quote into place: encode <034> into $quote let $writestring = $quote || $firstfield || $quote || ... On Mon, 21 Jan 2002 16:29:41 +1100, you wrote: >Hi all > > > >I'm trying to write data to a text file, however I need the output to be in >the following format. I can get the delimiter to change but I can get the >quotes around the data. Any help, especially some basic code appreciated. > > > >"00000346","LAMB;LOIN >MEDALLION,GOURMET,90GM/EA",0.09,2.25,"KG","MEAT","CROWN","2000-03-09" > >"00000393","CAKE;SLICE,RICH FRUIT >100GM/EA",0.1,0.66,"KG","BAKRY","CROWN","2000-03-17" > From owner-sqr-users@list.iex.net Mon Jan 21 22:26:13 2002 Date: Mon, 21 Jan 2002 21:52:18 -0500 From: Kathie Gourlay Subject: Looking for a job using SQR I was recently laid off from my position programming SQR reports in Ann Arbor, Michigan. I would like to find out which other companies are using SQR in the SE Michigan area, so that I can apply for a job with them. Does anyone know of any, or can you tell me where there is a list of companies that use SQR? Thanks. Kathie Gourlay gourlay@wccnet.org From owner-sqr-users@list.iex.net Wed Jan 23 18:38:33 2002 Date: Wed, 23 Jan 2002 10:10:29 -0500 From: Rick_Creel@AONCONS.COM Subject: Lost report? Oracle 8.06 on UNIX SQR 4.34 I have written an SQR that has multiple reports being created, using the "USE-REPORT" construct. When I run this SQR on the 'client', I get both reports with no problem. However, when I run this same SQR on the 'server', I can not find either of the reports. I have written many single report SQRs and have no problem getting the report LIS output. This is my first endeavor at creating multiple reports, so perhaps I've done something incorrectly that prevents the reports from being created on the UNIX server? Is there some sort of special "close" command I need to use that will 'lock' the report into the output directory? The beginning log file shows: SQR Output file is /opt/psoft/fs758/appserv/prcs/acfst1/output/acnewprj_597496.lis However, then end of the log file shows: prcs_sqr: SQR did not generate a list file. When I log onto the UNIX server and navigate to the output file directory, I can not find the report. Any suggestions? Thanks! From owner-sqr-users@list.iex.net Wed Jan 23 18:39:02 2002 Date: Wed, 23 Jan 2002 12:07:31 -0500 From: Rick_Creel@AONCONS.COM Subject: Lost report? Oracle 8.06 on UNIX SQR 4.34 As a follow up: I found the report. It was placed in a different directory. Our installation indicates that all reports should go to this directory: /opt/psoft/fs758/appserv/prcs/acfst1/output I actually found the report in this directory: /opt/psoft/fs758/sqr/acfst1 In other words, the report was put into the directory where the actual SQR code resides. Other SQRs that produce single reports have no problem putting the report in the standard output directory. Only this SQR is putting the report where it doesn't belong. Now.. the only difference between this SQR and others is that the other SQRs use some default "include" files that define report & layout specifications. This SQR did not use those include files, but instead, has its own DECLARE-LAYOUT and DECLARE-REPORT definitions. Is there some statement I need to put in my DECLARE sections that tells the SQR to use the default output directory? Thanks again for any help!! ========================================== I have written an SQR that has multiple reports being created, using the "USE-REPORT" construct. When I run this SQR on the 'client', I get both reports with no problem. However, when I run this same SQR on the 'server', I can not find either of the reports. I have written many single report SQRs and have no problem getting the report LIS output. This is my first endeavor at creating multiple reports, so perhaps I've done something incorrectly that prevents the reports from being created on the UNIX server? Is there some sort of special "close" command I need to use that will 'lock' the report into the output directory? The beginning log file shows: SQR Output file is /opt/psoft/fs758/appserv/prcs/acfst1/output/acnewprj_597496.lis However, then end of the log file shows: prcs_sqr: SQR did not generate a list file. When I log onto the UNIX server and navigate to the output file directory, I can not find the report. Any suggestions? Thanks! From owner-sqr-users@list.iex.net Wed Jan 23 18:48:13 2002 Date: Wed, 23 Jan 2002 09:58:13 -0500 From: Ray Ontko Subject: Brio Report 6.2 out SQR aficionados, You may be interested to know that Brio Reports 6.2 has been released. I got my copy this morning. Here is a snippet from the cover letter: > Notable enhancements include: > > o Expanded Direct Data Objects (DDO) data source access > o Support for Combination and Bubble charts > o Support for Korean, Simplified Chinese and Japanese characters > in PDF output > o Certification of SQR/ODBC for Oracle > o Support for Bit-Wise operators in the LET, IF, and WHILE commands > o UI Changes to the Report Builder's Layout Build and Query Builder Ray ---------------------------------------------------------------------- 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/ From owner-sqr-users@list.iex.net Wed Jan 23 18:48:46 2002 Date: Wed, 23 Jan 2002 14:00:33 -0500 From: Stephen Keen Subject: printing empl_photo from sqr I need to print the photos from empl_photo along with other information emplid, address..... I am using sql server 7. Text information is no problem, but how do I print the jpegs? From owner-sqr-users@list.iex.net Wed Jan 23 18:50:10 2002 Date: Wed, 23 Jan 2002 18:21:14 +0100 From: "Sangameswaran Subathra (KAWP 12)" Subject: Only PDF file Hi Guys, I want only the pdf output. The other files(spf,htm) generated are redundant. Is there a possibility (that can be specified in the report program itself)other than command line flag( -printer:pd) to avoid all files except pdf file. Even with this flag I get the spf file. Is it possible to avoid this file as well. Thanks and regards, Subha. From owner-sqr-users@list.iex.net Wed Jan 23 19:03:04 2002 Date: Wed, 23 Jan 2002 14:06:35 -0800 From: Laura Lopez Subject: Re: PDF file conversion utilities - Best of breed recommendation plea se! I'd like to thank you all for your recommendations. We are still working on this, and using some of your suggestions. Thanks to all of you who answered. Laura. > -----Original Message----- > From: Eric Dimick Eastman [SMTP:erice@ONTKO.COM] > Sent: Thursday, January 17, 2002 6:46 AM > To: SQR-USERS@list.iex.net > Subject: Re: PDF file conversion utilities - Best of breed > recommendation plea se! > > Laura, > > > > We have had great success with GhostScript's ps2pdf utility to convert > PostScript to PDF. We couldn't use the PDF straight from SQR since we > had to print reports with vertical text and a mixture of landscape and > portrait in the same report. I would be interested to know if your > problem is a known bug and if it has been fixed in a later version. > > I don't have experience using Distiller so I can't give a comparison, > but GhostScript has really worked well for us. It is fast, reliable, > fairly no-hassle and I have generated PDF's as large as 20 MB with no > problem. > > I have used gs both on Linux and Solaris. What flavor of unix are you > using? On Solaris you will probably want to use ps2pdf13 to generate > PDF according to the latest standard. Also we had to make a small > change to the postscri.str file. > > Hope this helps, > Eric > > > Laura Lopez wrote: > > >Thank you Paul! We actually were looking for Unix converters ... I > should > >have specified that! > >I appreciate your help though. > >Take care! > >Laura. > > > >>-----Original Message----- > >>From: Paul Hoyte [SMTP:phoyte@SHARIDIONNE.COM] > >>Sent: Wednesday, January 16, 2002 11:59 AM > >>To: SQR-USERS@list.iex.net > >>Subject: Re: PDF file conversion utilities - Best of breed > >>recommendation plea se! > >> > >>Hello Laura: > >> > >>I just did some research on this very topic. Check out the following > >>website: http://www.bcl-computers.com/ > >> > >>They have several products to support the PDF process but the ones that > >>would work for you are either EasyPDF or the Drake plug-in. You can > also > >>give them a call and they would provide much more information regarding > >>the > >>products and the conversion process. > >> > >>Good luck. > >> > >>Paul Hoyte > >>Sharidionne, Inc. > >>(248) 559-6868 > >>www.sharidionne.com > >>phoyte@sharidionne.com > >> > >>-----Original Message----- > >>From: Discussion of SQR, Brio Software's database reporting language > >>[mailto:SQR-USERS@list.iex.net]On Behalf Of Laura Lopez > >>Sent: Wednesday, January 16, 2002 2:36 PM > >>To: SQR-USERS@list.iex.net > >>Subject: PDF file conversion utilities - Best of breed recommendation > >>plea se! > >> > >> > >>We are using SQR version 4.3.4.x and although PDF file conversion is > >>supported, we are frustrated with the reliability and speed of the > >>conversion process. On large PDF files we seem to have file corruption > >>problems, whereas the same report with a smaller file will run fine. > >> > >>After researching on this user group (a wonderful resource) we've seen > >>others recommend either Ghostscript or Adobe Distiller. > >> > >>What is the current best of breed recommendation for conversions in > terms > >>of > >>reliability and speed? > >> > >>Also, is Postscript to PDF the best way to end up with a PDF file? Is > >>there > >>even a third party SPF to PDF utility? > >> > >>Many thanks in advance. > >> > >>_______________________ > >>Laura López > >>Extension: 1018 > >> > > > > From owner-sqr-users@list.iex.net Wed Jan 23 19:05:56 2002 Date: Wed, 23 Jan 2002 18:58:48 +0530 From: "Narasimhan, Arvind (Cognizant)" Subject: Formatting numbers This is a multi-part message in MIME format. --------------InterScan_NT_MIME_Boundary Content-Type: text/plain; charset="iso-8859-1" Hi all, I want to format negative numbers as -(232,343,232.00) while positive numbers as 232,343,232.00 (no sign or the curly braces for positive numbers). Is there a single edit mask, to achieve this ? Thanks in advance Arvind. --------------InterScan_NT_MIME_Boundary Content-Type: text/plain; name="InterScan_Disclaimer.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="InterScan_Disclaimer.txt" This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com --------------InterScan_NT_MIME_Boundary-- From owner-sqr-users@list.iex.net Wed Jan 23 19:10:52 2002 Date: Tue, 22 Jan 2002 15:03:38 -0500 From: Ven Garlapati Subject: Page break with HTML SQR User's Guide says, in the chapter "Working with HTML" , SQR automatically inserts the page navigation hypertext links and an HTML
tag ata page break. If a page break falls in the middle of an HTML construct, such as a table, the out may display incorrectly. Use the command DECLARE-LAYOUT with a large MAX-LINES setting to prevent page breaks from occurring". I have tried this in my program, but it did not work ... Does any one has a similar problem? Thanks. Ven G. From owner-sqr-users@list.iex.net Wed Jan 23 19:26:20 2002 Date: Wed, 23 Jan 2002 17:57:48 -0600 From: Bill Beckner Subject: Listserv Test Please ignore...thanks! -- William Beckner -- Stunt Programmer (Just call me "Bill") Illinois Central College, Rm L141 -- East Peoria, IL 61635-0001 PH: (309) 694-8419 -- FAX: (309) 694-8995 "I'm out of my mind. I'll be back in five minutes." From owner-sqr-users@list.iex.net Wed Jan 23 19:55:27 2002 Date: Wed, 23 Jan 2002 16:32:19 -0800 From: Robert Stojkovic Subject: Re: Lost report? Hi Rick This issue is found in prior to version 8 PeopleSoft applications. When the prcs_sqr script is run to create the script to run SQR on the Unix box it creates the -F parameter as output folder/SQRNAME_12345.lis. If your report has multiple outputs the program only knows where to put the first output, the other reports are lost. A fix to this is to do a new report for each report output and specify in the new report the output directory. Robert Stojkovic ----- Original Message ----- From: To: Sent: Wednesday, January 23, 2002 9:07 AM Subject: Lost report? > Oracle 8.06 on UNIX > SQR 4.34 > > As a follow up: > I found the report. It was placed in a different directory. > Our installation indicates that all reports should go to this directory: > /opt/psoft/fs758/appserv/prcs/acfst1/output > > I actually found the report in this directory: > /opt/psoft/fs758/sqr/acfst1 > > In other words, the report was put into the directory where the actual SQR code > resides. Other SQRs that produce single reports have no problem putting the > report in the standard output directory. Only this SQR is putting the report > where it doesn't belong. > > Now.. the only difference between this SQR and others is that the other SQRs use > some default "include" files that define report & layout specifications. > This SQR did not use those include files, but instead, has its own > DECLARE-LAYOUT and DECLARE-REPORT definitions. Is there some statement I need > to put in my DECLARE sections that tells the SQR to use the default output > directory? > > Thanks again for any help!! > > ========================================== > > > I have written an SQR that has multiple reports being created, using the > "USE-REPORT" construct. > When I run this SQR on the 'client', I get both reports with no problem. > However, when I run this same SQR on the 'server', I can not find either of the > reports. > I have written many single report SQRs and have no problem getting the report > LIS output. This is my first endeavor at creating multiple reports, so perhaps > I've done something incorrectly that prevents the reports from being created on > the UNIX server? Is there some sort of special "close" command I need to use > that will 'lock' the report into the output directory? > > The beginning log file shows: SQR Output file is > /opt/psoft/fs758/appserv/prcs/acfst1/output/acnewprj_597496.lis > However, then end of the log file shows: prcs_sqr: SQR did not generate a list > file. > > When I log onto the UNIX server and navigate to the output file directory, I can > not find the report. > > Any suggestions? > > > Thanks! > From owner-sqr-users@list.iex.net Thu Jan 24 05:36:35 2002 Date: Thu, 24 Jan 2002 10:31:51 -0000 From: Steve Norton Subject: Re: Page break with HTML How do you deregister from the list? Steve Norton -----Original Message----- From: Ven Garlapati [mailto:VXG@CREDITACCEPTANCE.COM] Sent: 22 January 2002 20:04 To: SQR-USERS@list.iex.net Subject: Page break with HTML SQR User's Guide says, in the chapter "Working with HTML" , SQR automatically inserts the page navigation hypertext links and an HTML
tag ata page break. If a page break falls in the middle of an HTML construct, such as a table, the out may display incorrectly. Use the command DECLARE-LAYOUT with a large MAX-LINES setting to prevent page breaks from occurring". I have tried this in my program, but it did not work ... Does any one has a similar problem? Thanks. Ven G. From owner-sqr-users@list.iex.net Thu Jan 24 07:44:52 2002 Date: Thu, 24 Jan 2002 08:30:19 -0400 From: Peter Clark Subject: Re: Page break with HTML The following info is from the very same page you used to subscribe to the list: To unsubscribe, send a message to listserv@list.iex.net with the following in the body of the message: unsubscribe sqr-users >>> Steve Norton 2002/01/24 6:31:51 am >>> How do you deregister from the list? Steve Norton -----Original Message----- From: Ven Garlapati [mailto:VXG@CREDITACCEPTANCE.COM] Sent: 22 January 2002 20:04 To: SQR-USERS@list.iex.net Subject: Page break with HTML SQR User's Guide says, in the chapter "Working with HTML" , SQR automatically inserts the page navigation hypertext links and an HTML
tag ata page break. If a page break falls in the middle of an HTML construct, such as a table, the out may display incorrectly. Use the command DECLARE-LAYOUT with a large MAX-LINES setting to prevent page breaks from occurring". I have tried this in my program, but it did not work ... Does any one has a similar problem? Thanks. Ven G. From owner-sqr-users@list.iex.net Thu Jan 24 10:02:01 2002 Date: Thu, 24 Jan 2002 09:40:57 -0500 From: Debbie Pavlak Subject: Re: Brio Reports 6.2 out We are waiting for it because Brio said that they fixed a bug with PDF files when you use TOC's.

We are using SQR 6.1.4 and Sybase 12.0+

Printer type = PD or EP, creates the PDF output with the table of contents when the report output is fairly small, but skips all the data on the first page. If the report is large, no toc, good first page, then errors or blank pages follow.

Tech support said 6.2 fixes this.


From owner-sqr-users@list.iex.net Thu Jan 24 10:42:45 2002 Date: Thu, 24 Jan 2002 15:21:52 +0000 From: Andrew Rivers Subject: Odd Error: Month must be between 1 and 12 Hi I get the error: Error on line 1377: (SQR 1925) Month must be between 1 and 12. Line 1377 is as follows (all on one line): show 'invoicenum: ' &invoicenum ' - Invoicedate: ' &invoiceDate The problem is a NULL value for &invoiceDate in the database. select invoicenum, invoicedate from invoice where invoicenum = '1052' and invoicedate is null; This returns: INVOICENUM INVOICEDATE ========== ==================== 1052 1 ROW SELECTED showing that invoicenum = '1052' is NULL. However, if the following code is run: if isnull( &invoiceDate ) show 'invoicenum: ' &invoicenum ' is NULL' else show 'invoicenum: ' &invoicenum ' - Invoicedate: ' &invoiceDate end-if the else statement is executed for invoicenum = '1052' and the program terminates at: invoicenum: 1052 - Invoicedate: Other fields including date fields do not give problems. If anyone has any suggestion as to the problem, I would be most grateful. Andrew From owner-sqr-users@list.iex.net Thu Jan 24 11:24:48 2002 Date: Thu, 24 Jan 2002 11:03:51 -0500 From: Prasanna Menta Subject: fILE MERGE IN SQR Hello, I have a problem when i use the call system to merge two files in WINNT, I have used the following code but it does not seem to work any suggestions???? Code: let $merge= ' C:\WINNT\system32\cmd.exe /c ' || 'COPY C:\TEMP\headerfile.txt + C:\TEMP\filetype1.txt C:\TEMP\cpbexp.txt' call system using $merge #status Thanks Prasanna From owner-sqr-users@list.iex.net Thu Jan 24 11:34:43 2002 Date: Thu, 24 Jan 2002 10:23:48 -0600 From: Kyle Beck Subject: Date Math Questions I need to get the latest 07/01/XXXX date that is less than the inputed date. For example, if I input 6/25/01, i will get 7/1/00. Yet, if I input 7/5/01, I will get 7/1/01. Is there a function in datemath.sqc that may work for this? Any ideas would be great! Thanks, Kyle From owner-sqr-users@list.iex.net Thu Jan 24 11:53:45 2002 Date: Thu, 24 Jan 2002 10:40:52 -0600 From: Juan Alvarado Subject: Brio Report Vrs Crystal .. =20 Anyone have a document or info that compare Brio Report vrs Crystal Reports ....??? =20 TIA =09 Juan Manuel Alvarado Ortiz Services Director Information Technology Consulting Services=20 Gyssa Corp. Tel: (502) 3393528 - Ext 123 Cel: (502) 3083301 =20 =20 =20 =20 From owner-sqr-users@list.iex.net Thu Jan 24 11:57:44 2002 Date: Thu, 24 Jan 2002 16:47:46 +0000 From: D E Subject: Re: Odd Error: Month must be between 1 and 12 Andrew, I would think that invoicedate isn't null. The field must contain a space or similar character. Perhaps you could use length() to determine your if statement: If length(&invoicedate) < 2 (or 3 or 4 whatever is appropriate) show 'invoicenum: ' &invoicenum ' is NULL' else show 'invoicenum: ' &invoicenum ' - Invoicedate: ' End-If David >From: Andrew Rivers >Reply-To: sqr-users@list.iex.net >To: SQR-USERS@list.iex.net >Subject: Odd Error: Month must be between 1 and 12 >Date: Thu, 24 Jan 2002 15:21:52 +0000 > >Hi >I get the error: >Error on line 1377: > (SQR 1925) Month must be between 1 and 12. > >Line 1377 is as follows (all on one line): > show 'invoicenum: ' &invoicenum ' - Invoicedate: ' &invoiceDate > >The problem is a NULL value for &invoiceDate in the database. > select invoicenum, invoicedate from invoice > where invoicenum = '1052' and invoicedate is null; >This returns: > INVOICENUM INVOICEDATE > ========== ==================== > 1052 > > 1 ROW SELECTED >showing that invoicenum = '1052' is NULL. > >However, if the following code is run: > if isnull( &invoiceDate ) > show 'invoicenum: ' &invoicenum ' is NULL' > else > show 'invoicenum: ' &invoicenum ' - Invoicedate: ' &invoiceDate > end-if > >the else statement is executed for invoicenum = '1052' and the program >terminates at: > invoicenum: 1052 - Invoicedate: > >Other fields including date fields do not give problems. > >If anyone has any suggestion as to the problem, I would be most grateful. > >Andrew _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. From owner-sqr-users@list.iex.net Thu Jan 24 13:27:12 2002 Date: Thu, 24 Jan 2002 12:03:27 -0600 From: Betty Thompson Subject: Re: Date Math Questions I think you will need to create your own. Here's something you might use as a starting point; it will always return the most-recent July 1st date less than today. (DUAL is an Oracle delivered table with one 'dummy' row; it's intended for use with functions.) SELECT MAX(A.RPT_DT) FROM ( SELECT TO_DATE('01-JUL-'|| SUBSTR(TO_CHAR(SYSDATE,'YYYY-MM-DD'),1,4)) RPT_DT FROM DUAL UNION SELECT TO_DATE('01-JUL-'|| SUBSTR(TO_CHAR(ADD_MONTHS(SYSDATE,-12),'YYYY-MM-DD'),1,4)) RPT_DT FROM DUAL ) A WHERE A.RPT_DT < SYSDATE -----Original Message----- From: Discussion of SQR, Brio Software's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Kyle Beck Sent: Thursday, January 24, 2002 10:24 AM To: SQR-USERS@list.iex.net Subject: Date Math Questions I need to get the latest 07/01/XXXX date that is less than the inputed date. For example, if I input 6/25/01, i will get 7/1/00. Yet, if I input 7/5/01, I will get 7/1/01. Is there a function in datemath.sqc that may work for this? Any ideas would be great! Thanks, Kyle From owner-sqr-users@list.iex.net Thu Jan 24 14:07:06 2002 Date: Thu, 24 Jan 2002 13:32:02 -0500 From: George Jansen Subject: Re: Date Math Questions If you are using Oracle, July 1 happens to be the rounding point for a year, which means that dates before July 1 will round back to the previous Jan 1, dates after round forward to the next Jan 1. So add_months(round(somedate, 'Year'), -6) will always give you the July 1 less than or equal to "somedate". >>> kylebeck@PHILLIPSPLASTICS.COM 01/24/02 11:23AM >>> I need to get the latest 07/01/XXXX date that is less than the inputed date. For example, if I input 6/25/01, i will get 7/1/00. Yet, if I input 7/5/01, I will get 7/1/01. Is there a function in datemath.sqc that may work for this? Any ideas would be great! Thanks, Kyle From owner-sqr-users@list.iex.net Thu Jan 24 18:17:26 2002 Date: Thu, 24 Jan 2002 14:06:56 -0800 From: Atul Shrivastava Subject: Re: Odd Error: Month must be between 1 and 12 You can use isblank function instead of isnull. Hope it helps. --- D E wrote: > Andrew, > > I would think that invoicedate isn't null. The > field must contain a space > or similar character. Perhaps you could use > length() to determine your if > statement: > > If length(&invoicedate) < 2 (or 3 or 4 whatever is > appropriate) > show 'invoicenum: ' &invoicenum ' is NULL' > else > show 'invoicenum: ' &invoicenum ' - > Invoicedate: ' > End-If > > David > > > >From: Andrew Rivers > >Reply-To: sqr-users@list.iex.net > >To: SQR-USERS@list.iex.net > >Subject: Odd Error: Month must be between 1 and 12 > >Date: Thu, 24 Jan 2002 15:21:52 +0000 > > > >Hi > >I get the error: > >Error on line 1377: > > (SQR 1925) Month must be between 1 and 12. > > > >Line 1377 is as follows (all on one line): > > show 'invoicenum: ' &invoicenum ' - > Invoicedate: ' &invoiceDate > > > >The problem is a NULL value for &invoiceDate in the > database. > > select invoicenum, invoicedate from invoice > > where invoicenum = '1052' and > invoicedate is null; > >This returns: > > INVOICENUM INVOICEDATE > > ========== ==================== > > 1052 > > > > 1 ROW SELECTED > >showing that invoicenum = '1052' is NULL. > > > >However, if the following code is run: > > if isnull( &invoiceDate ) > > show 'invoicenum: ' &invoicenum ' is > NULL' > > else > > show 'invoicenum: ' &invoicenum ' - > Invoicedate: ' &invoiceDate > > end-if > > > >the else statement is executed for invoicenum = > '1052' and the program > >terminates at: > > invoicenum: 1052 - Invoicedate: > > > >Other fields including date fields do not give > problems. > > > >If anyone has any suggestion as to the problem, I > would be most grateful. > > > >Andrew > > > > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From owner-sqr-users@list.iex.net Fri Jan 25 04:07:09 2002 Date: Fri, 25 Jan 2002 08:54:13 +0000 From: Andrew Rivers Subject: Re: Odd Error: Month must be between 1 and 12 David I was of the opinion that the &invoicedate was not null and must contain a value. To be sure that invoice.invoicedate was null I had inserted a null value for this field into the particular record. It seemed odd. Even moving &invoicedate to a local variable ($invoiceDate) terminated the routine and the same error message was displayed. Before I left yesterday evening I had a work around: On selecting invoice.invoicedate convert it to a char (&invoiceDateChr) Then when invoicedate is NULL then isnull(&invoiceDateChr) returns the expected value of 1 My interpretation is that on selecting a date into: &dateRetrunedFromDB = date then if the date selected is null &dateRetrunedFromDB does not contain NULL since it has the date formatting chars (mm : ss). I have not yet been able to confirm this since move &invoicedate to $invoiceDate also causes the routine to terminate and give the error. I will try some other ways to see what &dateValue ( = date) contains when a null date is selected into &dateValue. I accept you point regarding the determination of the length to see if the value is null/not null. I have tried: let #length = length(&invoicedate) show 'invoicenum: ' &invoicenum ' - length: ' #length This falls over with the same error - Month must be between 1 and 12. I take your point regarding the determination of the length of &invoicedate. If the number of formatting chars which &invoicedate contains when invoicedate is null is less than the whole invoicedate string when invoicedate is not null then it should be possible to distinguish between null and none null dates. I have tried your suggestion which looks fine. However, it falls over when SQR tries to parse length(&invoicedate). The routine terminates; the same error is displayed. The only workaround that I have is to determine and trap a null date is to convert the date selected into a char. Many thanks. Trust that all is well... Andrew ___________________________________ Quoting D E : > Andrew, > > I would think that invoicedate isn't null. The field must contain a > space > or similar character. Perhaps you could use length() to determine your > if > statement: > > If length(&invoicedate) < 2 (or 3 or 4 whatever is appropriate) > show 'invoicenum: ' &invoicenum ' is NULL' > else > show 'invoicenum: ' &invoicenum ' - Invoicedate: ' > End-If > > David > > > >From: Andrew Rivers > >Reply-To: sqr-users@list.iex.net > >To: SQR-USERS@list.iex.net > >Subject: Odd Error: Month must be between 1 and 12 > >Date: Thu, 24 Jan 2002 15:21:52 +0000 > > > >Hi > >I get the error: > >Error on line 1377: > > (SQR 1925) Month must be between 1 and 12. > > > >Line 1377 is as follows (all on one line): > > show 'invoicenum: ' &invoicenum ' - Invoicedate: ' &invoiceDate > > > >The problem is a NULL value for &invoiceDate in the database. > > select invoicenum, invoicedate from invoice > > where invoicenum = '1052' and invoicedate is null; > >This returns: > > INVOICENUM INVOICEDATE > > ========== ==================== > > 1052 > > > > 1 ROW SELECTED > >showing that invoicenum = '1052' is NULL. > > > >However, if the following code is run: > > if isnull( &invoiceDate ) > > show 'invoicenum: ' &invoicenum ' is NULL' > > else > > show 'invoicenum: ' &invoicenum ' - Invoicedate: ' > &invoiceDate > > end-if > > > >the else statement is executed for invoicenum = '1052' and the > program > >terminates at: > > invoicenum: 1052 - Invoicedate: > > > >Other fields including date fields do not give problems. > > > >If anyone has any suggestion as to the problem, I would be most > grateful. > > > >Andrew > > > > > _________________________________________________________________ > Get your FREE download of MSN Explorer at > http://explorer.msn.com/intl.asp. > From owner-sqr-users@list.iex.net Fri Jan 25 04:25:37 2002 Date: Fri, 25 Jan 2002 09:02:02 +0000 From: Andrew Rivers Subject: Re: Odd Error: Month must be between 1 and 12 David Initially, I was using the condition: ( isnull(&invoicedate) or isblank(&invoicedate) ) Because I was getting the error I simplified the condition to: ( isnull(&invoicedate) ) I suspect that isblank() may not resolve the requirement. I will try it and let you know. Andrew ___________________________________ Quoting D E : > Andrew, > > I would think that invoicedate isn't null. The field must contain a > space > or similar character. Perhaps you could use length() to determine your > if > statement: > > If length(&invoicedate) < 2 (or 3 or 4 whatever is appropriate) > show 'invoicenum: ' &invoicenum ' is NULL' > else > show 'invoicenum: ' &invoicenum ' - Invoicedate: ' > End-If > > David > > > >From: Andrew Rivers > >Reply-To: sqr-users@list.iex.net > >To: SQR-USERS@list.iex.net > >Subject: Odd Error: Month must be between 1 and 12 > >Date: Thu, 24 Jan 2002 15:21:52 +0000 > > > >Hi > >I get the error: > >Error on line 1377: > > (SQR 1925) Month must be between 1 and 12. > > > >Line 1377 is as follows (all on one line): > > show 'invoicenum: ' &invoicenum ' - Invoicedate: ' &invoiceDate > > > >The problem is a NULL value for &invoiceDate in the database. > > select invoicenum, invoicedate from invoice > > where invoicenum = '1052' and invoicedate is null; > >This returns: > > INVOICENUM INVOICEDATE > > ========== ==================== > > 1052 > > > > 1 ROW SELECTED > >showing that invoicenum = '1052' is NULL. > > > >However, if the following code is run: > > if isnull( &invoiceDate ) > > show 'invoicenum: ' &invoicenum ' is NULL' > > else > > show 'invoicenum: ' &invoicenum ' - Invoicedate: ' > &invoiceDate > > end-if > > > >the else statement is executed for invoicenum = '1052' and the > program > >terminates at: > > invoicenum: 1052 - Invoicedate: > > > >Other fields including date fields do not give problems. > > > >If anyone has any suggestion as to the problem, I would be most > grateful. > > > >Andrew > > > > > _________________________________________________________________ > Get your FREE download of MSN Explorer at > http://explorer.msn.com/intl.asp. > From owner-sqr-users@list.iex.net Fri Jan 25 07:59:20 2002 Date: Fri, 25 Jan 2002 07:26:53 -0500 From: "Charles A. Harkness" Subject: Creating PDF FIles I am using SQR 4.1.1, Oracle 8.0 and MAXIMO 4.0.1 on various operating systems. I am trying to produce reports in PDF format so that users can view the report in Adobe acrobat. I have searched the archives and I did not find any specific answers to my problem. Is there a simple way to do this with my version of SQR Workbench? Thanks, Chuck From owner-sqr-users@list.iex.net Fri Jan 25 08:12:44 2002 Date: Fri, 25 Jan 2002 07:58:53 -0500 From: Sam Spritzer Subject: Re: Odd Error: Month must be between 1 and 12 Andrew, Sometimes I have problems with isnull or isblank so I would suggest trying &invoicedate = '' or even ' '. Sam >>> andrew.rivers@CWCOM.NET 01/25/02 05:14 AM >>> David Initially, I was using the condition: ( isnull(&invoicedate) or isblank(&invoicedate) ) Because I was getting the error I simplified the condition to: ( isnull(&invoicedate) ) I suspect that isblank() may not resolve the requirement. I will try it and let you know. Andrew ___________________________________ Quoting D E : > Andrew, > > I would think that invoicedate isn't null. The field must contain a > space > or similar character. Perhaps you could use length() to determine your > if > statement: > > If length(&invoicedate) < 2 (or 3 or 4 whatever is appropriate) > show 'invoicenum: ' &invoicenum ' is NULL' > else > show 'invoicenum: ' &invoicenum ' - Invoicedate: ' > End-If > > David > > > >From: Andrew Rivers > >Reply-To: sqr-users@list.iex.net > >To: SQR-USERS@list.iex.net > >Subject: Odd Error: Month must be between 1 and 12 > >Date: Thu, 24 Jan 2002 15:21:52 +0000 > > > >Hi > >I get the error: > >Error on line 1377: > > (SQR 1925) Month must be between 1 and 12. > > > >Line 1377 is as follows (all on one line): > > show 'invoicenum: ' &invoicenum ' - Invoicedate: ' &invoiceDate > > > >The problem is a NULL value for &invoiceDate in the database. > > select invoicenum, invoicedate from invoice > > where invoicenum = '1052' and invoicedate is null; > >This returns: > > INVOICENUM INVOICEDATE > > ========== ==================== > > 1052 > > > > 1 ROW SELECTED > >showing that invoienum = '1052' is NULL. > > > >However, if the following code is run: > > if isnull( &invoiceDate ) > > show 'invoicenum: ' &invoicenum ' is NULL' > > else > > show 'invoicenum: ' &invoicenum ' - Invoicedate: ' > &invoiceDate > > end-if > > > >the else statement is executed for invoicenum = '1052' and the > program > >terminates at: > > invoicenum: 1052 - Invoicedate: > > > >Other fields including date fields do not give problems. > > > >If anyone has any suggestion as to the problem, I would be most > grateful. > > > >Andrew > > > > > _________________________________________________________________ > Get your FREE download of MSN Explorer at > http://explorer.msn.com/intl.asp. > From owner-sqr-users@list.iex.net Fri Jan 25 09:23:05 2002 Date: Fri, 25 Jan 2002 08:59:38 -0500 From: "Scanlon, Mary" Subject: Looking for an SQR plan analyzer that provides documentation Does anyone know of any shareware or software that can go through SQR programs and document the procedures, joins, and where conditions and execution of the programs. We are trying to document older SQR programs and are looking for a tool to help us. Any help would be greatly appreciated. Brio version - SQR6.0 Operating System - Windows NT 4.0 Database name - Oracle 8.1.6 From owner-sqr-users@list.iex.net Fri Jan 25 09:42:43 2002 Date: Fri, 25 Jan 2002 09:10:27 -0500 From: Rhiain Musser Subject: Memo fields Hi, I'm new to the users group and I'm fairly new to writing SQR's. Does anyone know of a PeopleSoft delivered SQR that strings out PeopleSoft memo fields? The problem is memo fields can be an unlimited number of characters long. Thanks in advance Rhiain From owner-sqr-users@list.iex.net Fri Jan 25 10:39:08 2002 Date: Fri, 25 Jan 2002 07:11:26 -0800 From: Sam Spritzer Subject: Re: Looking for an SQR plan analyzer that provides documentation Mary, Have you checked the library at www.sqrug.com? There are many utilities there. You may also want to check the various groups in yahoo. Just search for BRIO and SQR. Hope this helps, Sam --- "Scanlon, Mary" wrote: > Does anyone know of any shareware or software that > can go through SQR > programs and document the procedures, joins, and > where conditions and > execution of the programs. We are trying to > document older SQR programs and > are looking for a tool to help us. > > Any help would be greatly appreciated. > > Brio version - SQR6.0 > Operating System - Windows NT 4.0 > Database name - Oracle 8.1.6 ===== ************************************************************ "In the beginning, there was something...which exploded yet, they find nothing." __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From owner-sqr-users@list.iex.net Fri Jan 25 16:07:52 2002 Date: Fri, 25 Jan 2002 11:17:26 -0500 From: Denise White Subject: Re: Odd Error: Month must be between 1 and 12 Hi Andrew, Is it possible that it is actually the row after 1052 that is causing the problem? If the program were detecting an error in the show statement for 1052, I would have thought that it would not have performed any part of that show statement, and it is clearly doing the show. I might be wrong, though. Or it could possibly be a statement after the show - I have found that the line numbers in the error messages are not always 100% accurate. I don't really agree with the other responses you have gotten that the date is not null, as the first select you are indicating only selects it if the date is null, so that seems to me to prove that it is indeed null. Denise White Sr. Programmer/Analyst Vicor ------------------------------ Date: Thu, 24 Jan 2002 15:21:52 +0000 From: Andrew Rivers Subject: Odd Error: Month must be between 1 and 12 Hi I get the error: Error on line 1377: (SQR 1925) Month must be between 1 and 12. Line 1377 is as follows (all on one line): show 'invoicenum: ' &invoicenum ' - Invoicedate: ' &invoiceDate The problem is a NULL value for &invoiceDate in the database. select invoicenum, invoicedate from invoice where invoicenum = '1052' and invoicedate is null; This returns: INVOICENUM INVOICEDATE ========== ==================== 1052 1 ROW SELECTED showing that invoicenum = '1052' is NULL. However, if the following code is run: if isnull( &invoiceDate ) show 'invoicenum: ' &invoicenum ' is NULL' else show 'invoicenum: ' &invoicenum ' - Invoicedate: ' &invoiceDate end-if the else statement is executed for invoicenum = '1052' and the program terminates at: invoicenum: 1052 - Invoicedate: Other fields including date fields do not give problems. If anyone has any suggestion as to the problem, I would be most grateful. Andrew From owner-sqr-users@list.iex.net Fri Jan 25 16:10:45 2002 Date: Fri, 25 Jan 2002 13:30:09 -0500 From: Rhiain Musser Subject: Re: Memo fields To better explain - I have a field that is unlimited in it's length of characters. In order to print this field from my sqr, I need to substring out the data, evaluating words and spaces so that words do not get cut off, for each row, for an unlimited amount of rows. Does anybody have any ideas? At 09:10 AM 1/25/2002 -0500, Rhiain Musser wrote: >Hi, >I'm new to the users group and I'm fairly new to writing SQR's. > >Does anyone know of a PeopleSoft delivered SQR that strings out PeopleSoft >memo fields? The problem is memo fields can be an unlimited number of >characters long. > >Thanks in advance > >Rhiain From owner-sqr-users@list.iex.net Fri Jan 25 16:22:48 2002 Date: Fri, 25 Jan 2002 16:06:28 -0500 From: Ven Garlapati Subject: Re: SQR reports conversion to HTML format Found the solution: just in case some one else are also looking for it: create a new procedure called Declare-Report procedure and called this procedure in the header procedure (where you create column headings) ... bingo! There is an example, which uses DECLARE-REPORT procedure in "SQR in Peoplesoft and other applications" book by Landres/Landres. Thanks. Ven -----Original Message----- From: Ven Garlapati Sent: Wednesday, January 16, 2002 1:24 PM To: SQR-USERS@list.iex.net Subject: SQR reports conversion to HTML format Hi, I am new to the SQR and HTML, while converting few sqr reports to HTML format, using -Printer:HT, I have faced the following problem: When the output is very long - say several pages, for every 14th line or record, the file_name.htm has FF (First Page), F (Previous), N(Next) and LF (Last Page) links. These links are cauing increase in the column width and row size of the report and looks bad in the middle of the report, how can avoid this problem, and also how can I put the page header on top of every page, instead of 1st page alone ... Thanks for your help Ven From owner-sqr-users@list.iex.net Fri Jan 25 16:25:55 2002 Date: Fri, 25 Jan 2002 21:38:02 +0530 From: Satyen Timbadia Subject: How to use CURSORS in SQR ? Hi All, Can any one suggest any particular way by which we can use ORACLE Cursors in SQR. Oracle version 8.1.6 SQR 4.3.2 I want to convert few access based stored queries into cursors. These queries will be used by a main query. Please show me the way out. ( with some example if possible) Thanks, Satyen Timbadia PCS LTD. Voice : 778 1006/8/9 - Ext: 3023 Email : satyen.timbadia@patni.com From owner-sqr-users@list.iex.net Fri Jan 25 17:22:28 2002 Date: Fri, 25 Jan 2002 14:05:17 -0800 From: Arun Kumar Subject: Re: Memo fields I didnt fully understand your situation. But Have you looked in to 'WRAP' function ? It is used to print long character fields within certain columns. Say you have a field with 1000 charecter using wrap option on print command you can print this field between column 5 and 105. It would take 10 lines. Hopes this helps Arun --- Rhiain Musser wrote: > To better explain - I have a field that is unlimited > in it's length of > characters. In order to print this field from my > sqr, I need to substring > out the data, evaluating words and spaces so that > words do not get cut off, > for each row, for an unlimited amount of rows. > Does anybody have any ideas? > > At 09:10 AM 1/25/2002 -0500, Rhiain Musser wrote: > >Hi, > >I'm new to the users group and I'm fairly new to > writing SQR's. > > > >Does anyone know of a PeopleSoft delivered SQR that > strings out PeopleSoft > >memo fields? The problem is memo fields can be an > unlimited number of > >characters long. > > > >Thanks in advance > > > >Rhiain __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com From owner-sqr-users@list.iex.net Fri Jan 25 17:54:39 2002 Date: Fri, 25 Jan 2002 14:36:30 -0800 From: David Thorburn Subject: Re: How to use CURSORS in SQR ? I would suggest hiting an SQR programmer with the experience needed to get the job done! D. ----- Original Message ----- From: "Satyen Timbadia" To: Sent: Friday, January 25, 2002 8:08 AM Subject: How to use CURSORS in SQR ? > Hi All, > > Can any one suggest any particular way by which we can use ORACLE Cursors in > SQR. > > Oracle version 8.1.6 > SQR 4.3.2 > > I want to convert few access based stored queries into cursors. These > queries will be used by a main query. > Please show me the way out. ( with some example if possible) > > Thanks, > Satyen Timbadia > PCS LTD. > Voice : 778 1006/8/9 - Ext: 3023 > Email : satyen.timbadia@patni.com > From owner-sqr-users@list.iex.net Fri Jan 25 17:54:56 2002 Date: Fri, 25 Jan 2002 14:34:54 -0800 From: David Thorburn Subject: Re: Memo fields Hire a programmer and quit trying to get a free solution! D. ----- Original Message ----- From: "Rhiain Musser" To: Sent: Friday, January 25, 2002 10:30 AM Subject: Re: Memo fields > To better explain - I have a field that is unlimited in it's length of > characters. In order to print this field from my sqr, I need to substring > out the data, evaluating words and spaces so that words do not get cut off, > for each row, for an unlimited amount of rows. > Does anybody have any ideas? > > At 09:10 AM 1/25/2002 -0500, Rhiain Musser wrote: > >Hi, > >I'm new to the users group and I'm fairly new to writing SQR's. > > > >Does anyone know of a PeopleSoft delivered SQR that strings out PeopleSoft > >memo fields? The problem is memo fields can be an unlimited number of > >characters long. > > > >Thanks in advance > > > >Rhiain > From owner-sqr-users@list.iex.net Fri Jan 25 18:02:08 2002 Date: Fri, 25 Jan 2002 14:50:16 -0800 From: David Thorburn Subject: Freebies! Dear Fellow SQR Programmers: With the economy the way it is, I would suggest restraint in handing out sophistiated programing solutions to non-programmers for free. I like the exchange between skilled SQR programmers, and the question and answers diapogue where the asker of the question is at least enough of a programmer to ask the right question. However, supplying programming freebies to those who would otherwise hire or retain programming staff or contractors is contrary to the best interests of programmers like ourselves! Take a moment to consider the questions and to distinguish between those which deserve an answer and those which are trying to circumvent using skilled programmers. In this ecomony we cannot afford to give away freebies! Think about it programmers! This is YOUR resource, not your clients! D. From owner-sqr-users@list.iex.net Fri Jan 25 18:12:24 2002 Date: Fri, 25 Jan 2002 16:47:36 -0600 From: Savage Doug - dosava Subject: Re: Memo fields Havin a bad day there D.?? -----Original Message----- From: David Thorburn [mailto:thorburn@CONL.NET] Sent: Friday, January 25, 2002 4:35 PM To: SQR-USERS@list.iex.net Subject: Re: Memo fields Hire a programmer and quit trying to get a free solution! D. ----- Original Message ----- From: "Rhiain Musser" To: Sent: Friday, January 25, 2002 10:30 AM Subject: Re: Memo fields > To better explain - I have a field that is unlimited in it's length of > characters. In order to print this field from my sqr, I need to substring > out the data, evaluating words and spaces so that words do not get cut off, > for each row, for an unlimited amount of rows. > Does anybody have any ideas? > > At 09:10 AM 1/25/2002 -0500, Rhiain Musser wrote: > >Hi, > >I'm new to the users group and I'm fairly new to writing SQR's. > > > >Does anyone know of a PeopleSoft delivered SQR that strings out PeopleSoft > >memo fields? The problem is memo fields can be an unlimited number of > >characters long. > > > >Thanks in advance > > > >Rhiain > ********************************************************************* The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not 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 re-send this communication to the sender and delete the original message or any copy of it from your computer system. Thank You. From owner-sqr-users@list.iex.net Fri Jan 25 18:57:35 2002 Date: Fri, 25 Jan 2002 17:04:35 -0600 From: "Aguirre, Jose" Subject: Re: How to use CURSORS in SQR ? Dude...David you are killing me......but I don't think a third time would be as funny any more.. J. -----Original Message----- From: David Thorburn [mailto:thorburn@CONL.NET] Sent: Friday, January 25, 2002 4:37 PM To: SQR-USERS@list.iex.net Subject: Re: How to use CURSORS in SQR ? I would suggest hiting an SQR programmer with the experience needed to get the job done! D. ----- Original Message ----- From: "Satyen Timbadia" To: Sent: Friday, January 25, 2002 8:08 AM Subject: How to use CURSORS in SQR ? > Hi All, > > Can any one suggest any particular way by which we can use ORACLE Cursors in > SQR. > > Oracle version 8.1.6 > SQR 4.3.2 > > I want to convert few access based stored queries into cursors. These > queries will be used by a main query. > Please show me the way out. ( with some example if possible) > > Thanks, > Satyen Timbadia > PCS LTD. > Voice : 778 1006/8/9 - Ext: 3023 > Email : satyen.timbadia@patni.com > From owner-sqr-users@list.iex.net Fri Jan 25 19:15:39 2002 Date: Fri, 25 Jan 2002 15:57:25 -0800 From: Laura Lopez Subject: Re: Freebies! On the other hand, the value of being able to share information within a community is a benefit for us all. Even those who are experienced programmers need to ask questions sometimes and frankly the smartest programmers know there is great value in having user groups like these. Beginners are a challenge, but then we all started somewhere and who knows, perhaps a newbie will come up with new better ways to do things. Today's newbie will be an expert in a few years and your kid or mine may expect help. Hopefully, people remember to pay back in some way. If you don't want to share your knowledge, don't. But next time you make a "withdrawal" from the community, you should ask yourself what you have contributed recently. If this becomes an " I'll show you mine after you've shown me yours " arrangement, the community dies. Let me leave you with a definition of the word PARASITE and caution you not to be useless to a society from which you derive benefit. PARASITE >> "Applies to one who clings to a person of wealth, power or influence or is useless to society" > -----Original Message----- > From: David Thorburn [SMTP:thorburn@CONL.NET] > Sent: Friday, January 25, 2002 2:50 PM > To: SQR-USERS@list.iex.net > Subject: Freebies! > > Dear Fellow SQR Programmers: > > With the economy the way it is, I would suggest restraint in handing out > sophistiated > programing solutions to non-programmers for free. > > I like the exchange between skilled SQR programmers, and the question and > answers diapogue where the asker of the question is at least enough of a > programmer to ask the right question. However, supplying programming > freebies to those who would otherwise hire or retain programming staff or > contractors is contrary to the best interests of programmers like > ourselves! > > Take a moment to consider the questions and to distinguish between those > which deserve an answer and those which are trying to circumvent using > skilled programmers. > > In this ecomony we cannot afford to give away freebies! > > Think about it programmers! This is YOUR resource, not your clients! > > D. From owner-sqr-users@list.iex.net Fri Jan 25 19:38:49 2002 Date: Fri, 25 Jan 2002 16:13:44 -0800 From: David Thorburn Subject: Re: Freebies! Laura, I suggest you reread my posting. I agree with your post, but I also stand by mine. Some of these posts are obviously from non-programmers who are, as I said before, looking for a freebie so they don't have to pay our wages. Regards, D. ----- Original Message ----- From: "Laura Lopez" To: Sent: Friday, January 25, 2002 3:57 PM Subject: Re: Freebies! > On the other hand, the value of being able to share information within a > community is a benefit for us all. Even those who are experienced > programmers need to ask questions sometimes and frankly the smartest > programmers know there is great value in having user groups like these. > Beginners are a challenge, but then we all started somewhere and who knows, > perhaps a newbie will come up with new better ways to do things. Today's > newbie will be an expert in a few years and your kid or mine may expect > help. Hopefully, people remember to pay back in some way. > > If you don't want to share your knowledge, don't. But next time you make a > "withdrawal" from the community, you should ask yourself what you have > contributed recently. If this becomes an " I'll show you mine after you've > shown me yours " arrangement, the community dies. > > Let me leave you with a definition of the word PARASITE and caution you not > to be useless to a society from which you derive benefit. > PARASITE >> "Applies to one who clings to a person of wealth, power or > influence or is useless to society" > > > -----Original Message----- > > From: David Thorburn [SMTP:thorburn@CONL.NET] > > Sent: Friday, January 25, 2002 2:50 PM > > To: SQR-USERS@list.iex.net > > Subject: Freebies! > > > > Dear Fellow SQR Programmers: > > > > With the economy the way it is, I would suggest restraint in handing out > > sophistiated > > programing solutions to non-programmers for free. > > > > I like the exchange between skilled SQR programmers, and the question and > > answers diapogue where the asker of the question is at least enough of a > > programmer to ask the right question. However, supplying programming > > freebies to those who would otherwise hire or retain programming staff or > > contractors is contrary to the best interests of programmers like > > ourselves! > > > > Take a moment to consider the questions and to distinguish between those > > which deserve an answer and those which are trying to circumvent using > > skilled programmers. > > > > In this ecomony we cannot afford to give away freebies! > > > > Think about it programmers! This is YOUR resource, not your clients! > > > > D. > From owner-sqr-users@list.iex.net Sat Jan 26 05:25:22 2002 Date: Sat, 26 Jan 2002 20:58:28 +1100 From: Jarrodb Subject: Re: Freebies! How about encouraging the newbies to look in the manual first? Self help is the best way of learning. In addition you might find, experienced programmers trying to pick up SQR who might just need a push in the right direction here and there. New people to SQR / Brio certainly bring value to a user group like this, simply because they bring different ideas, have come from different backgrounds and can share experience. This includes newbies. Someone might bring a heap of HTML experience to the group or a DB2 or Oracle experience etc or even a graduate who is keen to learn and discovers a few things here and there that nobody knew. On the other hand I can see where you are comming from. I for one would not be too cooperative with a person whom I had to teach my skills to so they could take my job! But this group is not about that. This group is about people sharing and helping. Well that's what I thought anyway. All I can say is that when someone asks me a basic question at work I tell them to look in the manual. That way they become confident and familiar with the manual / help files and with helping themselves. That said though, I will still keep an eye on them and help them through and real difficulties. Just my 2 cents worth. -----Original Message----- From: Discussion of SQR, Brio Software's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of David Thorburn Sent: Saturday, 26 January 2002 11:14 AM To: SQR-USERS@list.iex.net Subject: Re: Freebies! Laura, I suggest you reread my posting. I agree with your post, but I also stand by mine. Some of these posts are obviously from non-programmers who are, as I said before, looking for a freebie so they don't have to pay our wages. Regards, D. ----- Original Message ----- From: "Laura Lopez" To: Sent: Friday, January 25, 2002 3:57 PM Subject: Re: Freebies! > On the other hand, the value of being able to share information within a > community is a benefit for us all. Even those who are experienced > programmers need to ask questions sometimes and frankly the smartest > programmers know there is great value in having user groups like these. > Beginners are a challenge, but then we all started somewhere and who knows, > perhaps a newbie will come up with new better ways to do things. Today's > newbie will be an expert in a few years and your kid or mine may expect > help. Hopefully, people remember to pay back in some way. > > If you don't want to share your knowledge, don't. But next time you make a > "withdrawal" from the community, you should ask yourself what you have > contributed recently. If this becomes an " I'll show you mine after you've > shown me yours " arrangement, the community dies. > > Let me leave you with a definition of the word PARASITE and caution you not > to be useless to a society from which you derive benefit. > PARASITE >> "Applies to one who clings to a person of wealth, power or > influence or is useless to society" > > > -----Original Message----- > > From: David Thorburn [SMTP:thorburn@CONL.NET] > > Sent: Friday, January 25, 2002 2:50 PM > > To: SQR-USERS@list.iex.net > > Subject: Freebies! > > > > Dear Fellow SQR Programmers: > > > > With the economy the way it is, I would suggest restraint in handing out > > sophistiated > > programing solutions to non-programmers for free. > > > > I like the exchange between skilled SQR programmers, and the question and > > answers diapogue where the asker of the question is at least enough of a > > programmer to ask the right question. However, supplying programming > > freebies to those who would otherwise hire or retain programming staff or > > contractors is contrary to the best interests of programmers like > > ourselves! > > > > Take a moment to consider the questions and to distinguish between those > > which deserve an answer and those which are trying to circumvent using > > skilled programmers. > > > > In this ecomony we cannot afford to give away freebies! > > > > Think about it programmers! This is YOUR resource, not your clients! > > > > D. > From owner-sqr-users@list.iex.net Sat Jan 26 07:04:21 2002 Date: Sat, 26 Jan 2002 10:55:02 -0000 From: Andrew Rivers Subject: Re: Odd Error: Month must be between 1 and 12 Hi Denise Thanks for the comments that you make. I have confirmed the error to be due to that for invoicenum = 1052 by putting conditions around show statement. The show statement is executed left to right and falls over when the show attempts to parse &invoicedate with the null value. (The default log file shows all arguments up to and including the one prior to &invoicedate.) If the show argument &invoicedate is commented out then there is no compiler error. With null selected into &invoicedate, SQR parses if isnull (&invoicedate) without a compiler error. However it parses it incorrectly as 0 (FALSE). ______________________ As an aside, if null is selected into &invoicedate then if isblank( &invoicedate ) is also passed as 0 (FALSE). However, if null has been selected into &invoiceDate compiler errors occur if the following statements are executed: let #invoiceDateLength = length (&invoiceDate ) move &invoiceDate to $invoiceDate !$invoiceDate was not declared as a date - see comment below. I suspect that the issue is with SQR. ______________________ A colleague commented: If $invoicedate is declared as a date type you can't move a null value into it because you can only place a date in it I think. SQR bug? I explore this comment on Monday. ______________________ There are two work arounds. 1. Convert to the date to a char in which case I suspect that the date formatting chars are stripped out. 2. As suggested by Betty Thompson: select invoicenum, NVL(invoicedate,TO_DATE('01-01-1900','MM-DD-YYYY')) from invoice then: if &invoiceDate = TO_DATE('01-01-1900','MM-DD-YYYY') show 'invoicenum: ' &invoicenum ' is NULL' else show 'invoicenum: ' &invoicenum ' - Invoicedate: ' &invoiceDate end-if Andrew ______________________________________ ______________________________________ ----- Original Message ----- From: Denise White To: Sent: Friday, January 25, 2002 4:17 PM Subject: Re: Odd Error: Month must be between 1 and 12 > Hi Andrew, > > Is it possible that it is actually the row after 1052 that is causing the > problem? If the program were detecting an error in the show statement for 1052, > I would have thought that it would not have performed any part of that show > statement, and it is clearly doing the show. I might be wrong, though. Or it > could possibly be a statement after the show - I have found that the line > numbers in the error messages are not always 100% accurate. I don't really > agree with the other responses you have gotten that the date is not null, as the > first select you are indicating only selects it if the date is null, so that > seems to me to prove that it is indeed null. > > Denise White > Sr. Programmer/Analyst > Vicor > ------------------------------ > > Date: Thu, 24 Jan 2002 15:21:52 +0000 > From: Andrew Rivers > Subject: Odd Error: Month must be between 1 and 12 > > Hi > I get the error: > Error on line 1377: > (SQR 1925) Month must be between 1 and 12. > > Line 1377 is as follows (all on one line): > show 'invoicenum: ' &invoicenum ' - Invoicedate: ' &invoiceDate > > The problem is a NULL value for &invoiceDate in the database. > select invoicenum, invoicedate from invoice > where invoicenum = '1052' and invoicedate is null; > This returns: > INVOICENUM INVOICEDATE > ========== ==================== > 1052 > > 1 ROW SELECTED > showing that invoicenum = '1052' is NULL. > > However, if the following code is run: > if isnull( &invoiceDate ) > show 'invoicenum: ' &invoicenum ' is NULL' > else > show 'invoicenum: ' &invoicenum ' - Invoicedate: ' &invoiceDate > end-if > > the else statement is executed for invoicenum = '1052' and the program > terminates at: > invoicenum: 1052 - Invoicedate: > > Other fields including date fields do not give problems. > > If anyone has any suggestion as to the problem, I would be most grateful. > > Andrew From owner-sqr-users@list.iex.net Mon Jan 28 09:12:16 2002 Date: Mon, 28 Jan 2002 08:45:10 -0500 From: Rhiain Musser Subject: Re: Memo fields That is helpful thanks - I've never used the WRAP function before. I guess my biggest concern is that the field can be an unlimited number of characters, so I will just have to cut it off at some point. thanks!!! At 02:05 PM 1/25/2002 -0800, you wrote: >I didnt fully understand your situation. >But Have you looked in to 'WRAP' function ? It is used >to print long character fields within certain columns. > >Say you have a field with 1000 charecter using wrap >option on print command you can print this field >between column 5 and 105. It would take 10 lines. > >Hopes this helps >Arun > >--- Rhiain Musser wrote: > > To better explain - I have a field that is unlimited > > in it's length of > > characters. In order to print this field from my > > sqr, I need to substring > > out the data, evaluating words and spaces so that > > words do not get cut off, > > for each row, for an unlimited amount of rows. > > Does anybody have any ideas? > > > > At 09:10 AM 1/25/2002 -0500, Rhiain Musser wrote: > > >Hi, > > >I'm new to the users group and I'm fairly new to > > writing SQR's. > > > > > >Does anyone know of a PeopleSoft delivered SQR that > > strings out PeopleSoft > > >memo fields? The problem is memo fields can be an > > unlimited number of > > >characters long. > > > > > >Thanks in advance > > > > > >Rhiain > > >__________________________________________________ >Do You Yahoo!? >Great stuff seeking new owners in Yahoo! Auctions! >http://auctions.yahoo.com From owner-sqr-users@list.iex.net Mon Jan 28 10:49:54 2002 Date: Mon, 28 Jan 2002 09:48:52 -0500 From: "Johnson, Dan" Subject: Re: Freebies! Dave, Smoke a fatty and count to 10. Think about it. If there is a "non-programmer" out there who is trying to write a application by asking questions on a user group then they are doomed. Sure you will get some good code snippets from the "non-non-programmers" but you will fail in the end and have to hire a programmer anyway. Besides, sometimes, if the problem is interesting enough, I just can't stop myself from sending in a solution. Dan. -----Original Message----- From: David Thorburn Sent: Friday, January 25, 2002 5:50 PM To: Subject: Freebies! Dear Fellow SQR Programmers: With the economy the way it is, I would suggest restraint in handing out sophistiated programing solutions to non-programmers for free. I like the exchange between skilled SQR programmers, and the question and answers diapogue where the asker of the question is at least enough of a programmer to ask the right question. However, supplying programming freebies to those who would otherwise hire or retain programming staff or contractors is contrary to the best interests of programmers like ourselves! Take a moment to consider the questions and to distinguish between those which deserve an answer and those which are trying to circumvent using skilled programmers. In this ecomony we cannot afford to give away freebies! Think about it programmers! This is YOUR resource, not your clients! D. From owner-sqr-users@list.iex.net Mon Jan 28 10:50:26 2002 Date: Mon, 28 Jan 2002 09:03:45 -0500 From: Rhiain Musser Subject: Re: Freebies! Yes and obviously, some of us are beginner programmers whom apparently haven't earned the title of being 'skilled programmers' such as yourself. I myself was not looking for a 'freebie' but to be pointed in the right direction - how else are we to learn if you can't ask questions? Was there a required amount of experience you have to have in order to participate here? At 04:13 PM 1/25/2002 -0800, you wrote: >Laura, > >I suggest you reread my posting. > >I agree with your post, but I also stand by mine. > >Some of these posts are obviously from non-programmers who are, as I said >before, looking for a freebie so they don't have to pay our wages. > >Regards, > >D. > >----- Original Message ----- >From: "Laura Lopez" >To: >Sent: Friday, January 25, 2002 3:57 PM >Subject: Re: Freebies! > > > > On the other hand, the value of being able to share information within a > > community is a benefit for us all. Even those who are experienced > > programmers need to ask questions sometimes and frankly the smartest > > programmers know there is great value in having user groups like these. > > Beginners are a challenge, but then we all started somewhere and who >knows, > > perhaps a newbie will come up with new better ways to do things. Today's > > newbie will be an expert in a few years and your kid or mine may expect > > help. Hopefully, people remember to pay back in some way. > > > > If you don't want to share your knowledge, don't. But next time you make a > > "withdrawal" from the community, you should ask yourself what you have > > contributed recently. If this becomes an " I'll show you mine after you've > > shown me yours " arrangement, the community dies. > > > > Let me leave you with a definition of the word PARASITE and caution you >not > > to be useless to a society from which you derive benefit. > > PARASITE >> "Applies to one who clings to a person of wealth, power or > > influence or is useless to society" > > > > > -----Original Message----- > > > From: David Thorburn [SMTP:thorburn@CONL.NET] > > > Sent: Friday, January 25, 2002 2:50 PM > > > To: SQR-USERS@list.iex.net > > > Subject: Freebies! > > > > > > Dear Fellow SQR Programmers: > > > > > > With the economy the way it is, I would suggest restraint in handing out > > > sophistiated > > > programing solutions to non-programmers for free. > > > > > > I like the exchange between skilled SQR programmers, and the question >and > > > answers diapogue where the asker of the question is at least enough of a > > > programmer to ask the right question. However, supplying programming > > > freebies to those who would otherwise hire or retain programming staff >or > > > contractors is contrary to the best interests of programmers like > > > ourselves! > > > > > > Take a moment to consider the questions and to distinguish between those > > > which deserve an answer and those which are trying to circumvent using > > > skilled programmers. > > > > > > In this ecomony we cannot afford to give away freebies! > > > > > > Think about it programmers! This is YOUR resource, not your clients! > > > > > > D. > > From owner-sqr-users@list.iex.net Mon Jan 28 10:55:21 2002 Date: Mon, 28 Jan 2002 08:42:21 -0600 From: "Fetzik, John" Subject: Re: Freebies! > I suggest you reread my posting. > > I agree with your post, but I also stand by mine. > > Some of these posts are obviously from non-programmers who > are, as I said > before, looking for a freebie so they don't have to pay our wages. One thing to keep in mind is that many SQR users are not programmers for a living. SQR is deployed with things like ADP's HRizon product which is meant to be used by HR and Payroll personnel. Are you saying that we shouldn't help them out just because they do not program for a living? John S. Fetzik S&C Electric Company 773-338-1000 x2763 jfetzik@sandc.com From owner-sqr-users@list.iex.net Mon Jan 28 11:01:08 2002 Date: Mon, 28 Jan 2002 07:48:00 -0800 From: David Thorburn Subject: Re: Freebies! Yes! D. ----- Original Message ----- From: "Fetzik, John" To: Sent: Monday, January 28, 2002 6:42 AM Subject: Re: Freebies! > > I suggest you reread my posting. > > > > I agree with your post, but I also stand by mine. > > > > Some of these posts are obviously from non-programmers who > > are, as I said > > before, looking for a freebie so they don't have to pay our wages. > > One thing to keep in mind is that many SQR users are not programmers for a > living. SQR is deployed with things like ADP's HRizon product which is meant > to be used by HR and Payroll personnel. Are you saying that we shouldn't > help them out just because they do not program for a living? > > John S. Fetzik > S&C Electric Company > 773-338-1000 x2763 > jfetzik@sandc.com > From owner-sqr-users@list.iex.net Mon Jan 28 11:12:46 2002 Date: Mon, 28 Jan 2002 09:59:30 -0600 From: "Ross, Steven" Subject: Re: Freebies! I totally agree with Laura. If we stop sharing, our community dies. = If our community dies, so do we. As a "skilled programmer", I owe much to those who came before me in = this profession, who were willing to share their knowledge, skill, tips and = hints with me. True, there are "Scrooges" out there who won't pay a = competitive wage for a programmer, but will demand that a "non-programmer" do the = work. But who are we to judge whether a question is from a "non-programmer", = a "beginning programmer", or a "skilled programmer" that just isn't = familiar with SQR? (And, as my colleague stated in another post, many SQR users = are NOT programmers, but people who just need reports.) My stand is, "share with others". "What goes around, comes around." = Luke 6:38. My $1.98... Steven Ross Applications Developer/Analyst sross@kcm.org sross_11@yahoo.com =A0 -----Original Message----- From: Laura Lopez [mailto:laura.lopez@TRINET.COM] Sent: Friday, January 25, 2002 5:57 PM To: SQR-USERS@list.iex.net Subject: Re: Freebies! On the other hand, the value of being able to share information within = a community is a benefit for us all. Even those who are experienced programmers need to ask questions sometimes and frankly the smartest programmers know there is great value in having user groups like these. Beginners are a challenge, but then we all started somewhere and who = knows, perhaps a newbie will come up with new better ways to do things. = Today's newbie will be an expert in a few years and your kid or mine may expect help. Hopefully, people remember to pay back in some way. If you don't want to share your knowledge, don't. But next time you = make a "withdrawal" from the community, you should ask yourself what you have contributed recently. If this becomes an " I'll show you mine after = you've shown me yours " arrangement, the community dies. Let me leave you with a definition of the word PARASITE and caution you = not to be useless to a society from which you derive benefit. PARASITE >> "Applies to one who clings to a person of wealth, power or influence or is useless to society" > -----Original Message----- > From: David Thorburn [SMTP:thorburn@CONL.NET] > Sent: Friday, January 25, 2002 2:50 PM > To: SQR-USERS@list.iex.net > Subject: Freebies! > > Dear Fellow SQR Programmers: > > With the economy the way it is, I would suggest restraint in handing = out > sophistiated > programing solutions to non-programmers for free. > > I like the exchange between skilled SQR programmers, and the question = and > answers diapogue where the asker of the question is at least enough = of a > programmer to ask the right question. However, supplying programming > freebies to those who would otherwise hire or retain programming = staff or > contractors is contrary to the best interests of programmers like > ourselves! > > Take a moment to consider the questions and to distinguish between = those > which deserve an answer and those which are trying to circumvent = using > skilled programmers. > > In this ecomony we cannot afford to give away freebies! > > Think about it programmers! This is YOUR resource, not your clients! > > D.. From owner-sqr-users@list.iex.net Mon Jan 28 11:24:38 2002 Date: Mon, 28 Jan 2002 14:09:50 -0300 From: Info - Nelson Richter Subject: RES: Freebies! People, My Babylon cannot translate the "freebie" word. What is the meaning of this? (I'm brazilian and the SQR users group have been very, very useful!) I'd like to say the tips posted here aren't enough to build a complete report, without a skilled programmer help. My point of view is that your concerns doesn't makes sense. Regards Nelson Richter Cia Zaffari Porto Alegre - Brazil -----Mensagem original----- De: David Thorburn [mailto:thorburn@CONL.NET] Enviada em: segunda-feira, 28 de janeiro de 2002 12:48 Para: SQR-USERS@list.iex.net Assunto: Re: Freebies! Yes! D. ----- Original Message ----- From: "Fetzik, John" To: Sent: Monday, January 28, 2002 6:42 AM Subject: Re: Freebies! > > I suggest you reread my posting. > > > > I agree with your post, but I also stand by mine. > > > > Some of these posts are obviously from non-programmers who > > are, as I said > > before, looking for a freebie so they don't have to pay our wages. > > One thing to keep in mind is that many SQR users are not programmers for a > living. SQR is deployed with things like ADP's HRizon product which is meant > to be used by HR and Payroll personnel. Are you saying that we shouldn't > help them out just because they do not program for a living? > > John S. Fetzik > S&C Electric Company > 773-338-1000 x2763 > jfetzik@sandc.com > From owner-sqr-users@list.iex.net Mon Jan 28 11:50:46 2002 Date: Mon, 28 Jan 2002 10:35:28 -0600 From: Sarah Moore Subject: Re: Freebies! I agree, Dave. If you are skilled enough you shouldn't have to worry about being outmoded by non-programmers. Besides this ain't rocket science. Any intelligent person can train themselves to code SQR. Employers are generally looking for those of us who are already productive. "Johnson, Dan" cc: Sent by: "Discussion Fax to: of SQR, Brio Subject: Re: Freebies! Software's database reporting language" 01/28/2002 08:48 AM Please respond to sqr-users Dave, Smoke a fatty and count to 10. Think about it. If there is a "non-programmer" out there who is trying to write a application by asking questions on a user group then they are doomed. Sure you will get some good code snippets from the "non-non-programmers" but you will fail in the end and have to hire a programmer anyway. Besides, sometimes, if the problem is interesting enough, I just can't stop myself from sending in a solution. Dan. -----Original Message----- From: David Thorburn Sent: Friday, January 25, 2002 5:50 PM To: Subject: Freebies! Dear Fellow SQR Programmers: With the economy the way it is, I would suggest restraint in handing out sophistiated programing solutions to non-programmers for free. I like the exchange between skilled SQR programmers, and the question and answers diapogue where the asker of the question is at least enough of a programmer to ask the right question. However, supplying programming freebies to those who would otherwise hire or retain programming staff or contractors is contrary to the best interests of programmers like ourselves! Take a moment to consider the questions and to distinguish between those which deserve an answer and those which are trying to circumvent using skilled programmers. In this ecomony we cannot afford to give away freebies! Think about it programmers! This is YOUR resource, not your clients! D. From owner-sqr-users@list.iex.net Mon Jan 28 11:52:19 2002 Date: Mon, 28 Jan 2002 10:36:58 -0600 From: Sarah Moore Subject: Re: Freebies! S'cuse, me...I agree with Dan not Dave. ----- Forwarded by Sarah J Moore/Information_Processing/NWTC_GB on 01/28/2002 10:36 AM ----- Sarah J Moore To: sqr-users@list.iex.net 01/28/2002 cc: 10:35 AM Fax to: Subject: Re: Freebies!(Document link: Sarah J Moore) I agree, Dave. If you are skilled enough you shouldn't have to worry about being outmoded by non-programmers. Besides this ain't rocket science. Any intelligent person can train themselves to code SQR. Employers are generally looking for those of us who are already productive. "Johnson, Dan" cc: Sent by: "Discussion Fax to: of SQR, Brio Subject: Re: Freebies! Software's database reporting language" 01/28/2002 08:48 AM Please respond to sqr-users Dave, Smoke a fatty and count to 10. Think about it. If there is a "non-programmer" out there who is trying to write a application by asking questions on a user group then they are doomed. Sure you will get some good code snippets from the "non-non-programmers" but you will fail in the end and have to hire a programmer anyway. Besides, sometimes, if the problem is interesting enough, I just can't stop myself from sending in a solution. Dan. -----Original Message----- From: David Thorburn Sent: Friday, January 25, 2002 5:50 PM To: Subject: Freebies! Dear Fellow SQR Programmers: With the economy the way it is, I would suggest restraint in handing out sophistiated programing solutions to non-programmers for free. I like the exchange between skilled SQR programmers, and the question and answers diapogue where the asker of the question is at least enough of a programmer to ask the right question. However, supplying programming freebies to those who would otherwise hire or retain programming staff or contractors is contrary to the best interests of programmers like ourselves! Take a moment to consider the questions and to distinguish between those which deserve an answer and those which are trying to circumvent using skilled programmers. In this ecomony we cannot afford to give away freebies! Think about it programmers! This is YOUR resource, not your clients! D. From owner-sqr-users@list.iex.net Mon Jan 28 12:01:24 2002 Date: Mon, 28 Jan 2002 11:42:13 -0500 From: "Johnson, Dan" Subject: Re: Freebies! Rhiain, Did anyone ever answer your original question? Dan -----Original Message----- From: Rhiain Musser Sent: Monday, January 28, 2002 9:04 AM To: Subject: Re: Freebies! Yes and obviously, some of us are beginner programmers whom apparently haven't earned the title of being 'skilled programmers' such as yourself. I myself was not looking for a 'freebie' but to be pointed in the right direction - how else are we to learn if you can't ask questions? Was there a required amount of experience you have to have in order to participate here? At 04:13 PM 1/25/2002 -0800, you wrote: >Laura, > >I suggest you reread my posting. > >I agree with your post, but I also stand by mine. > >Some of these posts are obviously from non-programmers who are, as I said >before, looking for a freebie so they don't have to pay our wages. > >Regards, > >D. > >----- Original Message ----- >From: "Laura Lopez" >To: >Sent: Friday, January 25, 2002 3:57 PM >Subject: Re: Freebies! > > > > On the other hand, the value of being able to share information within a > > community is a benefit for us all. Even those who are experienced > > programmers need to ask questions sometimes and frankly the smartest > > programmers know there is great value in having user groups like these. > > Beginners are a challenge, but then we all started somewhere and who >knows, > > perhaps a newbie will come up with new better ways to do things. Today's > > newbie will be an expert in a few years and your kid or mine may expect > > help. Hopefully, people remember to pay back in some way. > > > > If you don't want to share your knowledge, don't. But next time you make a > > "withdrawal" from the community, you should ask yourself what you have > > contributed recently. If this becomes an " I'll show you mine after you've > > shown me yours " arrangement, the community dies. > > > > Let me leave you with a definition of the word PARASITE and caution you >not > > to be useless to a society from which you derive benefit. > > PARASITE >> "Applies to one who clings to a person of wealth, power or > > influence or is useless to society" > > > > > -----Original Message----- > > > From: David Thorburn [SMTP:thorburn@CONL.NET] > > > Sent: Friday, January 25, 2002 2:50 PM > > > To: SQR-USERS@list.iex.net > > > Subject: Freebies! > > > > > > Dear Fellow SQR Programmers: > > > > > > With the economy the way it is, I would suggest restraint in handing out > > > sophistiated > > > programing solutions to non-programmers for free. > > > > > > I like the exchange between skilled SQR programmers, and the question >and > > > answers diapogue where the asker of the question is at least enough of a > > > programmer to ask the right question. However, supplying programming > > > freebies to those who would otherwise hire or retain programming staff >or > > > contractors is contrary to the best interests of programmers like > > > ourselves! > > > > > > Take a moment to consider the questions and to distinguish between those > > > which deserve an answer and those which are trying to circumvent using > > > skilled programmers. > > > > > > In this ecomony we cannot afford to give away freebies! > > > > > > Think about it programmers! This is YOUR resource, not your clients! > > > > > > D. > > From owner-sqr-users@list.iex.net Mon Jan 28 12:01:31 2002 Date: Mon, 28 Jan 2002 10:36:50 -0600 From: Danielle Henkels Subject: Re: Freebies! If that's what you are saying, then obviously you don't understand the concept of a user group and should probably consider getting any help you need elsewhere. -----Original Message----- From: David Thorburn [mailto:thorburn@CONL.NET] Sent: Monday, January 28, 2002 9:48 AM To: SQR-USERS@list.iex.net Subject: Re: Freebies! Yes! D. ----- Original Message ----- From: "Fetzik, John" To: Sent: Monday, January 28, 2002 6:42 AM Subject: Re: Freebies! > > I suggest you reread my posting. > > > > I agree with your post, but I also stand by mine. > > > > Some of these posts are obviously from non-programmers who > > are, as I said > > before, looking for a freebie so they don't have to pay our wages. > > One thing to keep in mind is that many SQR users are not programmers for a > living. SQR is deployed with things like ADP's HRizon product which is meant > to be used by HR and Payroll personnel. Are you saying that we shouldn't > help them out just because they do not program for a living? > > John S. Fetzik > S&C Electric Company > 773-338-1000 x2763 > jfetzik@sandc.com > From owner-sqr-users@list.iex.net Mon Jan 28 12:01:52 2002 Date: Mon, 28 Jan 2002 10:28:54 -0600 From: Danielle Henkels Subject: Re: Freebies! Once again getting off the subject of what this is out here for and kind of annoying as I don't like getting junk mail at my work account. But I had to reply to this one because I say if you're going to be telling people not to respond to questions on a user board, then you yourself should not be on the user board. If someone knows the answer and can help someone out, don't tell them not to. That's ridiculous. I myself have an MIS degree. I'm not a "skilled programmer" and don't claim to be. None of my training is in SQR and I actually would prefer to use other means, but unfortunately I'm locked in that this is what comes with the system I help support and I have to use it, so since I don't know the system really well, I may need help that others can answer, so far I haven't used this for that, but if the time comes, I sure hope there aren't selfish people out there withholding information because I'm not a "skilled programmer"... -----Original Message----- From: Rhiain Musser [mailto:rmusser@BRYNMAWR.EDU] Sent: Monday, January 28, 2002 8:04 AM To: SQR-USERS@list.iex.net Subject: Re: Freebies! Yes and obviously, some of us are beginner programmers whom apparently haven't earned the title of being 'skilled programmers' such as yourself. I myself was not looking for a 'freebie' but to be pointed in the right direction - how else are we to learn if you can't ask questions? Was there a required amount of experience you have to have in order to participate here? At 04:13 PM 1/25/2002 -0800, you wrote: >Laura, > >I suggest you reread my posting. > >I agree with your post, but I also stand by mine. > >Some of these posts are obviously from non-programmers who are, as I said >before, looking for a freebie so they don't have to pay our wages. > >Regards, > >D. > >----- Original Message ----- >From: "Laura Lopez" >To: >Sent: Friday, January 25, 2002 3:57 PM >Subject: Re: Freebies! > > > > On the other hand, the value of being able to share information within a > > community is a benefit for us all. Even those who are experienced > > programmers need to ask questions sometimes and frankly the smartest > > programmers know there is great value in having user groups like these. > > Beginners are a challenge, but then we all started somewhere and who >knows, > > perhaps a newbie will come up with new better ways to do things. Today's > > newbie will be an expert in a few years and your kid or mine may expect > > help. Hopefully, people remember to pay back in some way. > > > > If you don't want to share your knowledge, don't. But next time you make a > > "withdrawal" from the community, you should ask yourself what you have > > contributed recently. If this becomes an " I'll show you mine after you've > > shown me yours " arrangement, the community dies. > > > > Let me leave you with a definition of the word PARASITE and caution you >not > > to be useless to a society from which you derive benefit. > > PARASITE >> "Applies to one who clings to a person of wealth, power or > > influence or is useless to society" > > > > > -----Original Message----- > > > From: David Thorburn [SMTP:thorburn@CONL.NET] > > > Sent: Friday, January 25, 2002 2:50 PM > > > To: SQR-USERS@list.iex.net > > > Subject: Freebies! > > > > > > Dear Fellow SQR Programmers: > > > > > > With the economy the way it is, I would suggest restraint in handing out > > > sophistiated > > > programing solutions to non-programmers for free. > > > > > > I like the exchange between skilled SQR programmers, and the question >and > > > answers diapogue where the asker of the question is at least enough of a > > > programmer to ask the right question. However, supplying programming > > > freebies to those who would otherwise hire or retain programming staff >or > > > contractors is contrary to the best interests of programmers like > > > ourselves! > > > > > > Take a moment to consider the questions and to distinguish between those > > > which deserve an answer and those which are trying to circumvent using > > > skilled programmers. > > > > > > In this ecomony we cannot afford to give away freebies! > > > > > > Think about it programmers! This is YOUR resource, not your clients! > > > > > > D. > > From owner-sqr-users@list.iex.net Mon Jan 28 12:02:47 2002 Date: Mon, 28 Jan 2002 11:47:52 -0500 From: Larry Roux Subject: Re: Freebies! Would you people just STOP it? Jeez, for all the "programmers" who are whining and making me spend time deleting all this crap you must not have a lot of work to do. Either answer the questions or shut up. This is NOT Rush Limbaugh. Save the insults and opinions and get to the programming. On 28 Jan 02, at 10:36, Danielle Henkels wrote: > If that's what you are saying, then obviously you don't understand the > concept of a user group and should probably consider getting any help you > need elsewhere. > > -----Original Message----- > From: David Thorburn [mailto:thorburn@CONL.NET] > Sent: Monday, January 28, 2002 9:48 AM > To: SQR-USERS@list.iex.net > Subject: Re: Freebies! > > > Yes! > > D. > > ----- Original Message ----- > From: "Fetzik, John" > To: > Sent: Monday, January 28, 2002 6:42 AM > Subject: Re: Freebies! > > > > > I suggest you reread my posting. > > > > > > I agree with your post, but I also stand by mine. > > > > > > Some of these posts are obviously from non-programmers who > > > are, as I said > > > before, looking for a freebie so they don't have to pay our wages. > > > > One thing to keep in mind is that many SQR users are not programmers for a > > living. SQR is deployed with things like ADP's HRizon product which is > meant > > to be used by HR and Payroll personnel. Are you saying that we shouldn't > > help them out just because they do not program for a living? > > > > John S. Fetzik > > S&C Electric Company > > 773-338-1000 x2763 > > jfetzik@sandc.com > > ******************* Larry Roux Syracuse University IS Dept 315.443.3964 ******************* From owner-sqr-users@list.iex.net Mon Jan 28 12:10:27 2002 Date: Mon, 28 Jan 2002 10:51:03 -0600 From: the dragon Subject: Re: Freebies! Hmmm, Not sure what I am stepping into here, but SQR is a procedural programmuing language, and as such, should be used by programmers who know what they are doing -- not by end users. There are so many wonderful "things" you can do with sqr; it would be frightening to imagine users performing most of these without proper training. Just because sqr is deployed with ADP, HRizon or Peoplesoft doesn't mean every end user should be using it. In the end, knowledge belongs to everyone, but giving a clueless person enough knowledge to cause devastation hurts us all. My never humble opinion 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 suggest you reread my posting. > > I agree with your post, but I also stand by mine. > > Some of these posts are obviously from non-programmers who > are, as I said > before, looking for a freebie so they don't have to pay our wages. One thing to keep in mind is that many SQR users are not programmers for a living. SQR is deployed with things like ADP's HRizon product which is meant to be used by HR and Payroll personnel. Are you saying that we shouldn't help them out just because they do not program for a living? John S. Fetzik S&C Electric Company 773-338-1000 x2763 jfetzik@sandc.com _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com From owner-sqr-users@list.iex.net Mon Jan 28 12:16:14 2002 Date: Mon, 28 Jan 2002 11:54:55 -0500 From: "Williams, Wes HS-SNS" Subject: Re: Freebies! Maybe Dave should contact these so called parasites directly rather then sharing his disdain for all who do not conform to his definition of a "programmer". In fact, from my experience a polite snippet here and there could lead to an opportunity that pays. my 2 cents Wes Williams System Analyst, Developer Hamilton Sundstrand -----Original Message----- From: David Thorburn [mailto:thorburn@CONL.NET] Sent: Friday, January 25, 2002 6:14 PM To: SQR-USERS@list.iex.net Subject: Re: Freebies! Laura, I suggest you reread my posting. I agree with your post, but I also stand by mine. Some of these posts are obviously from non-programmers who are, as I said before, looking for a freebie so they don't have to pay our wages. Regards, D. ----- Original Message ----- From: "Laura Lopez" To: Sent: Friday, January 25, 2002 3:57 PM Subject: Re: Freebies! > On the other hand, the value of being able to share information within a > community is a benefit for us all. Even those who are experienced > programmers need to ask questions sometimes and frankly the smartest > programmers know there is great value in having user groups like these. > Beginners are a challenge, but then we all started somewhere and who knows, > perhaps a newbie will come up with new better ways to do things. Today's > newbie will be an expert in a few years and your kid or mine may expect > help. Hopefully, people remember to pay back in some way. > > If you don't want to share your knowledge, don't. But next time you make a > "withdrawal" from the community, you should ask yourself what you have > contributed recently. If this becomes an " I'll show you mine after you've > shown me yours " arrangement, the community dies. > > Let me leave you with a definition of the word PARASITE and caution you not > to be useless to a society from which you derive benefit. > PARASITE >> "Applies to one who clings to a person of wealth, power or > influence or is useless to society" > > > -----Original Message----- > > From: David Thorburn [SMTP:thorburn@CONL.NET] > > Sent: Friday, January 25, 2002 2:50 PM > > To: SQR-USERS@list.iex.net > > Subject: Freebies! > > > > Dear Fellow SQR Programmers: > > > > With the economy the way it is, I would suggest restraint in handing out > > sophistiated > > programing solutions to non-programmers for free. > > > > I like the exchange between skilled SQR programmers, and the question and > > answers diapogue where the asker of the question is at least enough of a > > programmer to ask the right question. However, supplying programming > > freebies to those who would otherwise hire or retain programming staff or > > contractors is contrary to the best interests of programmers like > > ourselves! > > > > Take a moment to consider the questions and to distinguish between those > > which deserve an answer and those which are trying to circumvent using > > skilled programmers. > > > > In this ecomony we cannot afford to give away freebies! > > > > Think about it programmers! This is YOUR resource, not your clients! > > > > D. > From owner-sqr-users@list.iex.net Mon Jan 28 12:41:44 2002 Date: Mon, 28 Jan 2002 17:16:42 -0000 From: "Maculsay, Gary R" Subject: Re: Freebies! Perhaps those folks who want to continue this debate could call the pychic hotline or something. Enough is enough. Back to our regular "programming"... -----Original Message----- From: Danielle Henkels [mailto:Danielle.Henkels@GENMILLS.COM] Sent: Monday, January 28, 2002 8:29 AM To: SQR-USERS@list.iex.net Subject: Re: Freebies! Once again getting off the subject of what this is out here for and kind of annoying as I don't like getting junk mail at my work account. But I had to reply to this one because I say if you're going to be telling people not to respond to questions on a user board, then you yourself should not be on the user board. If someone knows the answer and can help someone out, don't tell them not to. That's ridiculous. I myself have an MIS degree. I'm not a "skilled programmer" and don't claim to be. None of my training is in SQR and I actually would prefer to use other means, but unfortunately I'm locked in that this is what comes with the system I help support and I have to use it, so since I don't know the system really well, I may need help that others can answer, so far I haven't used this for that, but if the time comes, I sure hope there aren't selfish people out there withholding information because I'm not a "skilled programmer"... -----Original Message----- From: Rhiain Musser [mailto:rmusser@BRYNMAWR.EDU] Sent: Monday, January 28, 2002 8:04 AM To: SQR-USERS@list.iex.net Subject: Re: Freebies! Yes and obviously, some of us are beginner programmers whom apparently haven't earned the title of being 'skilled programmers' such as yourself. I myself was not looking for a 'freebie' but to be pointed in the right direction - how else are we to learn if you can't ask questions? Was there a required amount of experience you have to have in order to participate here? At 04:13 PM 1/25/2002 -0800, you wrote: >Laura, > >I suggest you reread my posting. > >I agree with your post, but I also stand by mine. > >Some of these posts are obviously from non-programmers who are, as I said >before, looking for a freebie so they don't have to pay our wages. > >Regards, > >D. > >----- Original Message ----- >From: "Laura Lopez" >To: >Sent: Friday, January 25, 2002 3:57 PM >Subject: Re: Freebies! > > > > On the other hand, the value of being able to share information within a > > community is a benefit for us all. Even those who are experienced > > programmers need to ask questions sometimes and frankly the smartest > > programmers know there is great value in having user groups like these. > > Beginners are a challenge, but then we all started somewhere and who >knows, > > perhaps a newbie will come up with new better ways to do things. Today's > > newbie will be an expert in a few years and your kid or mine may expect > > help. Hopefully, people remember to pay back in some way. > > > > If you don't want to share your knowledge, don't. But next time you make a > > "withdrawal" from the community, you should ask yourself what you have > > contributed recently. If this becomes an " I'll show you mine after you've > > shown me yours " arrangement, the community dies. > > > > Let me leave you with a definition of the word PARASITE and caution you >not > > to be useless to a society from which you derive benefit. > > PARASITE >> "Applies to one who clings to a person of wealth, power or > > influence or is useless to society" > > > > > -----Original Message----- > > > From: David Thorburn [SMTP:thorburn@CONL.NET] > > > Sent: Friday, January 25, 2002 2:50 PM > > > To: SQR-USERS@list.iex.net > > > Subject: Freebies! > > > > > > Dear Fellow SQR Programmers: > > > > > > With the economy the way it is, I would suggest restraint in handing out > > > sophistiated > > > programing solutions to non-programmers for free. > > > > > > I like the exchange between skilled SQR programmers, and the question >and > > > answers diapogue where the asker of the question is at least enough of a > > > programmer to ask the right question. However, supplying programming > > > freebies to those who would otherwise hire or retain programming staff >or > > > contractors is contrary to the best interests of programmers like > > > ourselves! > > > > > > Take a moment to consider the questions and to distinguish between those > > > which deserve an answer and those which are trying to circumvent using > > > skilled programmers. > > > > > > In this ecomony we cannot afford to give away freebies! > > > > > > Think about it programmers! This is YOUR resource, not your clients! > > > > > > D. > > From owner-sqr-users@list.iex.net Mon Jan 28 12:48:52 2002 Date: Mon, 28 Jan 2002 12:40:02 -0500 From: Stephen Keen Subject: Re: Freebies! don't pick on Rush!! Hey, Don't Pick on the hearing impaired bud. But agree with you otherwise Steve -----Original Message----- From: Discussion of SQR, Brio Software's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Larry Roux Sent: Monday, January 28, 2002 11:48 AM To: SQR-USERS@list.iex.net Subject: Re: Freebies! Would you people just STOP it? Jeez, for all the "programmers" who are whining and making me spend time deleting all this crap you must not have a lot of work to do. Either answer the questions or shut up. This is NOT Rush Limbaugh. Save the insults and opinions and get to the programming. On 28 Jan 02, at 10:36, Danielle Henkels wrote: > If that's what you are saying, then obviously you don't understand the > concept of a user group and should probably consider getting any help you > need elsewhere. > > -----Original Message----- > From: David Thorburn [mailto:thorburn@CONL.NET] > Sent: Monday, January 28, 2002 9:48 AM > To: SQR-USERS@list.iex.net > Subject: Re: Freebies! > > > Yes! > > D. > > ----- Original Message ----- > From: "Fetzik, John" > To: > Sent: Monday, January 28, 2002 6:42 AM > Subject: Re: Freebies! > > > > > I suggest you reread my posting. > > > > > > I agree with your post, but I also stand by mine. > > > > > > Some of these posts are obviously from non-programmers who > > > are, as I said > > > before, looking for a freebie so they don't have to pay our wages. > > > > One thing to keep in mind is that many SQR users are not programmers for a > > living. SQR is deployed with things like ADP's HRizon product which is > meant > > to be used by HR and Payroll personnel. Are you saying that we shouldn't > > help them out just because they do not program for a living? > > > > John S. Fetzik > > S&C Electric Company > > 773-338-1000 x2763 > > jfetzik@sandc.com > > ******************* Larry Roux Syracuse University IS Dept 315.443.3964 ******************* From owner-sqr-users@list.iex.net Mon Jan 28 12:56:53 2002 Date: Mon, 28 Jan 2002 17:34:16 +0000 From: Elvis Pressly Subject: Re: Freebies! Hey David, First you have been whining about whiners and now you're at it again. What is your problem with these people asking for "Freebies"? I have been a programmer for the last 22 years with 10 programming languages to my credit and the only time I can enhance my knowledge is to interact with such a wonderful user groups like this. I can only reflect to myself that, once, I too was a BEGINNER savy for every knowledge that somebody can share with me. I can only say that you are insecure and perhaps need some really really big help(from shrink). If you are really good as you think you are then why be afraid????? >From: David Thorburn >Reply-To: sqr-users@list.iex.net >To: SQR-USERS@list.iex.net >Subject: Re: Freebies! >Date: Mon, 28 Jan 2002 07:48:00 -0800 > >Yes! > >D. > >----- Original Message ----- >From: "Fetzik, John" >To: >Sent: Monday, January 28, 2002 6:42 AM >Subject: Re: Freebies! > > > > > I suggest you reread my posting. > > > > > > I agree with your post, but I also stand by mine. > > > > > > Some of these posts are obviously from non-programmers who > > > are, as I said > > > before, looking for a freebie so they don't have to pay our wages. > > > > One thing to keep in mind is that many SQR users are not programmers for >a > > living. SQR is deployed with things like ADP's HRizon product which is >meant > > to be used by HR and Payroll personnel. Are you saying that we shouldn't > > help them out just because they do not program for a living? > > > > John S. Fetzik > > S&C Electric Company > > 773-338-1000 x2763 > > jfetzik@sandc.com > > _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From owner-sqr-users@list.iex.net Mon Jan 28 13:32:38 2002 Date: Mon, 28 Jan 2002 13:13:40 -0500 From: Rhiain Musser Subject: Re: Freebies! Dan, Yes, someone was kind enough to point me in the right direction. Thank you for checking Rhiain At 11:42 AM 1/28/2002 -0500, you wrote: >Rhiain, > Did anyone ever answer your original question? > >Dan > >-----Original Message----- >From: Rhiain Musser >Sent: Monday, January 28, 2002 9:04 AM >To: >Subject: Re: Freebies! > > >Yes and obviously, some of us are beginner programmers whom apparently >haven't earned the title of being 'skilled programmers' such as >yourself. I myself was not looking for a 'freebie' but to be pointed in >the right direction - how else are we to learn if you can't ask >questions? Was there a required amount of experience you have to have in >order to participate here? > >At 04:13 PM 1/25/2002 -0800, you wrote: > >Laura, > > > >I suggest you reread my posting. > > > >I agree with your post, but I also stand by mine. > > > >Some of these posts are obviously from non-programmers who are, as I said > >before, looking for a freebie so they don't have to pay our wages. > > > >Regards, > > > >D. > > > >----- Original Message ----- > >From: "Laura Lopez" > >To: > >Sent: Friday, January 25, 2002 3:57 PM > >Subject: Re: Freebies! > > > > > > > On the other hand, the value of being able to share information within a > > > community is a benefit for us all. Even those who are experienced > > > programmers need to ask questions sometimes and frankly the smartest > > > programmers know there is great value in having user groups like these. > > > Beginners are a challenge, but then we all started somewhere and who > >knows, > > > perhaps a newbie will come up with new better ways to do things. Today's > > > newbie will be an expert in a few years and your kid or mine may expect > > > help. Hopefully, people remember to pay back in some way. > > > > > > If you don't want to share your knowledge, don't. But next time you make >a > > > "withdrawal" from the community, you should ask yourself what you have > > > contributed recently. If this becomes an " I'll show you mine after >you've > > > shown me yours " arrangement, the community dies. > > > > > > Let me leave you with a definition of the word PARASITE and caution you > >not > > > to be useless to a society from which you derive benefit. > > > PARASITE >> "Applies to one who clings to a person of wealth, power or > > > influence or is useless to society" > > > > > > > -----Original Message----- > > > > From: David Thorburn [SMTP:thorburn@CONL.NET] > > > > Sent: Friday, January 25, 2002 2:50 PM > > > > To: SQR-USERS@list.iex.net > > > > Subject: Freebies! > > > > > > > > Dear Fellow SQR Programmers: > > > > > > > > With the economy the way it is, I would suggest restraint in handing >out > > > > sophistiated > > > > programing solutions to non-programmers for free. > > > > > > > > I like the exchange between skilled SQR programmers, and the question > >and > > > > answers diapogue where the asker of the question is at least enough of >a > > > > programmer to ask the right question. However, supplying programming > > > > freebies to those who would otherwise hire or retain programming staff > >or > > > > contractors is contrary to the best interests of programmers like > > > > ourselves! > > > > > > > > Take a moment to consider the questions and to distinguish between >those > > > > which deserve an answer and those which are trying to circumvent using > > > > skilled programmers. > > > > > > > > In this ecomony we cannot afford to give away freebies! > > > > > > > > Think about it programmers! This is YOUR resource, not your clients! > > > > > > > > D. > > > From owner-sqr-users@list.iex.net Mon Jan 28 13:50:03 2002 Date: Mon, 28 Jan 2002 10:27:23 -0800 From: Sam Spritzer Subject: Re: Freebies! This has been quite an interesting thread so I am throwing my 2 cents worth. I don't have problems with newbies or even those who fess to be one. I share what I can and given the fact that this is quite a large list, ones reputation will precede them. Now, you'll find that I haven't posted anything which looks like I am sharing...that is because I do it privately. I send it directly to the requestor. Keep in mind that these newbies could someday become our client or even a co-worker. I remember one such newbie a couple of years ago. He was the kind who would be posting requests almost every day. Over a period of time, he became a contributor and a very valuable one too. He is now working for a respected consulting firm. What an evolution! That person could have been...YOU! SQRly yours, Sam --- "Williams, Wes HS-SNS" wrote: > Maybe Dave should contact these so called parasites > directly rather then > sharing his disdain for all who do not conform to > his definition of a > "programmer". In fact, from my experience a polite > snippet here and there > could lead to an opportunity that pays. > > my 2 cents > > Wes Williams > > System Analyst, Developer > Hamilton Sundstrand > > > > > -----Original Message----- > From: David Thorburn [mailto:thorburn@CONL.NET] > Sent: Friday, January 25, 2002 6:14 PM > To: SQR-USERS@list.iex.net > Subject: Re: Freebies! > > > Laura, > > I suggest you reread my posting. > > I agree with your post, but I also stand by mine. > > Some of these posts are obviously from > non-programmers who are, as I said > before, looking for a freebie so they don't have to > pay our wages. > > Regards, > > D. > > ----- Original Message ----- > From: "Laura Lopez" > To: > Sent: Friday, January 25, 2002 3:57 PM > Subject: Re: Freebies! > > > > On the other hand, the value of being able to > share information within a > > community is a benefit for us all. Even those who > are experienced > > programmers need to ask questions sometimes and > frankly the smartest > > programmers know there is great value in having > user groups like these. > > Beginners are a challenge, but then we all started > somewhere and who > knows, > > perhaps a newbie will come up with new better ways > to do things. Today's > > newbie will be an expert in a few years and your > kid or mine may expect > > help. Hopefully, people remember to pay back in > some way. > > > > If you don't want to share your knowledge, don't. > But next time you make a > > "withdrawal" from the community, you should ask > yourself what you have > > contributed recently. If this becomes an " I'll > show you mine after you've > > shown me yours " arrangement, the community dies. > > > > Let me leave you with a definition of the word > PARASITE and caution you > not > > to be useless to a society from which you derive > benefit. > > PARASITE >> "Applies to one who clings to a person > of wealth, power or > > influence or is useless to society" > > > > > -----Original Message----- > > > From: David Thorburn [SMTP:thorburn@CONL.NET] > > > Sent: Friday, January 25, 2002 2:50 PM > > > To: SQR-USERS@list.iex.net > > > Subject: Freebies! > > > > > > Dear Fellow SQR Programmers: > > > > > > With the economy the way it is, I would suggest > restraint in handing out > > > sophistiated > > > programing solutions to non-programmers for > free. > > > > > > I like the exchange between skilled SQR > programmers, and the question > and > > > answers diapogue where the asker of the question > is at least enough of a > > > programmer to ask the right question. However, > supplying programming > > > freebies to those who would otherwise hire or > retain programming staff > or > > > contractors is contrary to the best interests of > programmers like > > > ourselves! > > > > > > Take a moment to consider the questions and to > distinguish between those > > > which deserve an answer and those which are > trying to circumvent using > > > skilled programmers. > > > > > > In this ecomony we cannot afford to give away > freebies! > > > > > > Think about it programmers! This is YOUR > resource,