From owner-sqr-users@list.iex.net Sat Jul 1 01:06:25 2000 Date: Sat, 1 Jul 2000 00:00:00 -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.5 $ $Date: 1999-08-31 18:59:00-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 1999/04/30: o Reflected the takeover of SQRIBE Technologies by Brio Technology and the resulting new product names (throughout document). o Added additional hints to the "Posting to the sqr-users List" section. 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 Brio website has more information on the merger. 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 (C)Copyright 1999 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 psusers : PeopleSoft Users For questions related to any aspect of PeopleSoft (including PeopleSoft-specific SQR issues). To join, follow the link above, or send any message to "psusers-subscribe@egroups.com" . 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 SQR-related job announcements are currently allowed on the list, subject to the following restrictions: o The subject line must begin with the words "JOB ANNOUNCEMENT:". o The message should be very short (fewer than 20 lines), giving brief details of the job and a way for those interested to get more information directly (i.e. web page or phone number). o The message should specifically remind people interested in the job to respond directly to the message author (and not to use their mailer's "reply" function, since that would send the reply out on the list). o Post job announcements as infrequently as possible. From owner-sqr-users@list.iex.net Wed Jul 5 08:28:17 2000 Date: Wed, 5 Jul 2000 12:39:05 +0100 From: "Slattery, Chad" Subject: Paper size This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01BFE675.A2A1FB70 Content-Type: text/plain; charset="iso-8859-1" Hi all, Im using an IBM line printer and have been printing an spf on to US standard fanfold. Our printer suppliers have now decided they cant produce that size paper any more (dont ask!!) and have supplied us with paper an inch longer. Although I can set the paper size in several different ways manually in my report and from the preferences in visual sqribe the spf is still printing with the old paper size. I know its because Im choosing US standard Fanfold as my paper type when Im printing but I thought (hopefully and foolishly) setting the paper as longer in sqribe might have overrided it. The new paper size is 14.5 x 12 inches. Anybody got any ideas? I increased my page-size in my sqr from 60 132 to 68 132, but it still prints as tho the paper is 11 inches high. The printer driver is IBM proprinter XL III tia. Chad. ------_=_NextPart_001_01BFE675.A2A1FB70 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Paper size

Hi all,
Im using an IBM line printer and have been printing = an spf on to US standard fanfold.  Our printer suppliers have now = decided they cant produce that size paper any more (dont ask!!) and = have supplied us with paper an inch longer.  Although I can set = the paper size in several different ways manually in my report and from = the preferences in visual sqribe the spf is still  printing with = the old paper size.  I know its because Im choosing US standard = Fanfold as my paper type when Im printing but I thought (hopefully and = foolishly) setting the paper as longer in sqribe might have overrided = it. 

The new paper size is 14.5 x 12 inches.  Anybody = got any ideas?
I increased my page-size in my sqr from 60 132  = to  68 132, but it still prints as tho the paper is 11 inches = high.
The printer driver is IBM proprinter XL III

tia.

Chad.

------_=_NextPart_001_01BFE675.A2A1FB70-- From owner-sqr-users@list.iex.net Wed Jul 5 08:50:21 2000 Date: Wed, 5 Jul 2000 09:39:32 -0300 From: Peter Clark Subject: Re: Paper size Chad, Don't specify paper type. Using a predefined paper type will establish width and depth settings that will overide whatever you specify in those parameters. Instead, let the paper-size parameter in your declare-layout specify the actual dimensions, i.e. paper-size=(14.5in, 12in). Also, don't use the page-size command. HTH, Peter >>> "Slattery, Chad" 2000/07/05 8:39:05 am >>> Hi all, Im using an IBM line printer and have been printing an spf on to US standard fanfold. Our printer suppliers have now decided they cant produce that size paper any more (dont ask!!) and have supplied us with paper an inch longer. Although I can set the paper size in several different ways manually in my report and from the preferences in visual sqribe the spf is still printing with the old paper size. I know its because Im choosing US standard Fanfold as my paper type when Im printing but I thought (hopefully and foolishly) setting the paper as longer in sqribe might have overrided it. The new paper size is 14.5 x 12 inches. Anybody got any ideas? I increased my page-size in my sqr from 60 132 to 68 132, but it still prints as tho the paper is 11 inches high. The printer driver is IBM proprinter XL III tia. Chad. From owner-sqr-users@list.iex.net Wed Jul 5 09:38:09 2000 Date: Wed, 5 Jul 2000 14:29:00 +0100 From: "Slattery, Chad" Subject: Re: Paper size This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01BFE684.FC18CDBE Content-Type: text/plain; charset="iso-8859-1" Peter, Thanks for the reply, Im printing from NT, when I go to print I _have_ to pick a paper type from the print properties, we had been using the US fanfold, so I suppose my question should really be is there any way to bypass the NT printer driver, or the paper selection of the driver? Previously I had been using page-size 68 132, but it wasnt working so I changed to the below setup with no change. Ive mucked about with all of the variables below with no effect either. begin-setup declare-report chad layout=page printer-type=LINEPRINTER end-declare declare-layout page max-columns=132 max-lines=68 paper-size = (14.5,12) end-declare end-setup -----Original Message----- From: Peter Clark [mailto:PGCLARK@VAC-ACC.GC.CA] Sent: Wednesday, July 05, 2000 1:40 PM To: SQR-USERS@LIST.IEX.NET Subject: Re: Paper size Chad, Don't specify paper type. Using a predefined paper type will establish width and depth settings that will overide whatever you specify in those parameters. Instead, let the paper-size parameter in your declare-layout specify the actual dimensions, i.e. paper-size=(14.5in, 12in). Also, don't use the page-size command. HTH, Peter >>> "Slattery, Chad" 2000/07/05 8:39:05 am >>> Hi all, Im using an IBM line printer and have been printing an spf on to US standard fanfold. Our printer suppliers have now decided they cant produce that size paper any more (dont ask!!) and have supplied us with paper an inch longer. Although I can set the paper size in several different ways manually in my report and from the preferences in visual sqribe the spf is still printing with the old paper size. I know its because Im choosing US standard Fanfold as my paper type when Im printing but I thought (hopefully and foolishly) setting the paper as longer in sqribe might have overrided it. The new paper size is 14.5 x 12 inches. Anybody got any ideas? I increased my page-size in my sqr from 60 132 to 68 132, but it still prints as tho the paper is 11 inches high. The printer driver is IBM proprinter XL III tia. Chad. ------_=_NextPart_001_01BFE684.FC18CDBE Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: Paper size

Peter,
Thanks for the reply,
Im printing from NT, when I go to print I _have_ to = pick a paper type from the print properties, we had been using the US = fanfold, so I suppose my question should really be is there any way to = bypass the NT printer driver, or the paper selection of the = driver?

Previously I had been using page-size 68 132, but it = wasnt working so I changed to the below setup with no change.  Ive = mucked about with all of the variables below with no effect = either.


begin-setup
 declare-report chad
     layout=3Dpage
     = printer-type=3DLINEPRINTER
 end-declare

 declare-layout page
    max-columns=3D132
    max-lines=3D68
    paper-size =3D (14.5,12)
  end-declare
end-setup



-----Original Message-----
From: Peter Clark [mailto:PGCLARK@VAC-ACC.GC.CA]<= /FONT>
Sent: Wednesday, July 05, 2000 1:40 PM
To: SQR-USERS@LIST.IEX.NET
Subject: Re: Paper size


Chad,

Don't specify paper type. Using a predefined paper = type will establish width and depth settings that will overide whatever = you specify in those parameters. Instead, let the paper-size parameter = in your declare-layout specify the actual dimensions, i.e. = paper-size=3D(14.5in, 12in). Also, don't use the page-size = command.

HTH,
Peter

>>> "Slattery, Chad" = <Chad.Slattery@CSCLAC.IRLGOV.IE> 2000/07/05 8:39:05 am = >>>
Hi all,
Im using an IBM line printer and have been printing = an spf on to US standard
fanfold.  Our printer suppliers have now = decided they cant produce that size
paper any more (dont ask!!) and have supplied us = with paper an inch longer.
Although I can set the paper size in several = different ways manually in my
report and from the preferences in visual sqribe the = spf is still  printing
with the old paper size.  I know its because Im = choosing US standard Fanfold
as my paper type when Im printing but I thought = (hopefully and foolishly)
setting the paper as longer in sqribe might have = overrided it.
The new paper size is 14.5 x 12 inches.  = Anybody got any ideas?
I increased my page-size in my sqr from 60 132  = to  68 132, but it still
prints as tho the paper is 11 inches high.
The printer driver is IBM proprinter XL III

tia.

Chad.

------_=_NextPart_001_01BFE684.FC18CDBE-- From owner-sqr-users@list.iex.net Wed Jul 5 10:04:20 2000 Date: Wed, 5 Jul 2000 10:53:38 -0300 From: Peter Clark Subject: Re: Paper size Hi Chad, Not working in the NT environment, I don't know what I can offer. In W95, we only have to choose from Windows print properties when we are using -printer:wp or using SQRV. In those cases, our print dialogue box allows us to create a "custom" paper size definition where you can define your own paper dimensions (i.e. special forms, etc). Are you not able to do that in NT? Beyond that feable advice, I can offer no other suggestions. Sorry. Peter >>> "Slattery, Chad" 2000/07/05 10:29:00 am >>> Peter, Thanks for the reply, Im printing from NT, when I go to print I _have_ to pick a paper type from the print properties, we had been using the US fanfold, so I suppose my question should really be is there any way to bypass the NT printer driver, or the paper selection of the driver? Previously I had been using page-size 68 132, but it wasnt working so I changed to the below setup with no change. Ive mucked about with all of the variables below with no effect either. begin-setup declare-report chad layout=page printer-type=LINEPRINTER end-declare declare-layout page max-columns=132 max-lines=68 paper-size = (14.5,12) end-declare end-setup -----Original Message----- From: Peter Clark [mailto:PGCLARK@VAC-ACC.GC.CA] Sent: Wednesday, July 05, 2000 1:40 PM To: SQR-USERS@LIST.IEX.NET Subject: Re: Paper size Chad, Don't specify paper type. Using a predefined paper type will establish width and depth settings that will overide whatever you specify in those parameters. Instead, let the paper-size parameter in your declare-layout specify the actual dimensions, i.e. paper-size=(14.5in, 12in). Also, don't use the page-size command. HTH, Peter >>> "Slattery, Chad" 2000/07/05 8:39:05 am >>> Hi all, Im using an IBM line printer and have been printing an spf on to US standard fanfold. Our printer suppliers have now decided they cant produce that size paper any more (dont ask!!) and have supplied us with paper an inch longer. Although I can set the paper size in several different ways manually in my report and from the preferences in visual sqribe the spf is still printing with the old paper size. I know its because Im choosing US standard Fanfold as my paper type when Im printing but I thought (hopefully and foolishly) setting the paper as longer in sqribe might have overrided it. The new paper size is 14.5 x 12 inches. Anybody got any ideas? I increased my page-size in my sqr from 60 132 to 68 132, but it still prints as tho the paper is 11 inches high. The printer driver is IBM proprinter XL III tia. Chad. From owner-sqr-users@list.iex.net Wed Jul 5 14:09:18 2000 Date: Wed, 5 Jul 2000 17:34:49 GMT From: Ragu Sadasivam Subject: Re: HTML Output - Help !!!

Hi,

I have an sqr program which produces an SPF file as output.  Now we have to provide a HTML output and also split the files for each department.

  • I am using the new-report feature for splitting the files for each department.  This is working, but the extension for the file names are lost.  Only one file has the extension .htm.  I am using the -Printer:HT in the SQR Flags.  It is also automatically generating the TOC.  How do I suppress this?
  • What is the simplest way to do generate a HTML output from the existing sqr ? [The SQR guide mentions a command line that is supposed to convert SPF files to HTML output, which is not working;  So is the "Save As" command within the SQR Viewer - no clue as to where the HTML output goes].  I am receiving html output, but the output is not similar to what we receive in the SPF files.  For instance, we have condensed output and I am not able to get this.  I do get the smallest font, but when I print this, the right most columns are dropped.  Any idea how I can solve this problem?  Is there any setting in the .ini file that I need to take care of?  If anyone has a sample sqr, it would help me very much.

Any help in this matter would be appreciated very much.

Thanks in advance.

LKR.

 


Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
From owner-sqr-users@list.iex.net Wed Jul 5 14:17:36 2000 Date: Wed, 5 Jul 2000 15:04:39 -0300 From: Peter Clark Subject: Re: HTML Output - Help !!! Ragu, The probability of receiving an answer to your question would be greatly enhanced if you would use text format for those of us whose office email systems do not support html format e-mail. Peter Of course, those of us without html support in our corporate email software would likely have little to contribute on a question about html :-) >>> Ragu Sadasivam 2000/07/05 2:34:49 pm >>> wrote: [indecipherable - non text format] From owner-sqr-users@list.iex.net Wed Jul 5 14:20:47 2000 Date: Wed, 5 Jul 2000 14:09:37 -0400 From: Michael Phillips Subject: Re: HTML Output - Help !!! I did something like this let $FileName2 = 'c:\temp\File1.htm' NEW-REPORT $FileName1 ...Processing to create the report... NEW-REPORT "temp.htm" !This will close the current report. Don't worry, it you never write to this report, then it won't be saved Then I delete the frame file that is automatically created because I had no need for it. The report has to be closed first. let $FrameFileName = 'c:\temp\file1_frm.htm' let #DelStatus = delete($FrameFileName) I would loop through this process until I have no more reports to create. In the process scheduler, I set this up to run on the client. It would not run on the server; the job would finish with no errors, but no output would be created. I also used -PRINTER:EH instead of -PRINTER:HT as the flag. -----Original Message----- From: Ragu Sadasivam [mailto:sathyamangalam@HOTMAIL.COM] Sent: Wednesday, July 05, 2000 1:35 PM To: SQR-USERS@list.iex.net Subject: Re: HTML Output - Help !!! Hi, I have an sqr program which produces an SPF file as output. Now we have to provide a HTML output and also split the files for each department. * I am using the new-report feature for splitting the files for each department. This is working, but the extension for the file names are lost. Only one file has the extension .htm. I am using the -Printer:HT in the SQR Flags. It is also automatically generating the TOC. How do I suppress this? * What is the simplest way to do generate a HTML output from the existing sqr ? [The SQR guide mentions a command line that is supposed to convert SPF files to HTML output, which is not working; So is the "Save As" command within the SQR Viewer - no clue as to where the HTML output goes]. I am receiving html output, but the output is not similar to what we receive in the SPF files. For instance, we have condensed output and I am not able to get this. I do get the smallest font, but when I print this, the right most columns are dropped. Any idea how I can solve this problem? Is there any setting in the .ini file that I need to take care of? If anyone has a sample sqr, it would help me very much. Any help in this matter would be appreciated very much. Thanks in advance. LKR. _____ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From owner-sqr-users@list.iex.net Wed Jul 5 15:08:02 2000 Date: Wed, 5 Jul 2000 18:50:42 GMT From: Ragu Sadasivam Subject: Re: HTML Output - Help !!! Sorry about that - Here it is... Hi, I have an sqr program which produces an SPF file as output. Now we have to provide a HTML output and also split the files for each department. * I am using the new-report feature for splitting the files for each department. This is working, but the extension for the file names are lost. Only one file has the extension .htm. I am using the -Printer:HT in the SQR Flags. It is also automatically generating the TOC. How do I suppress this? * What is the simplest way to do generate a HTML output from the existing sqr ? [The SQR guide mentions a command line that is supposed to convert SPF files to HTML output, which is not working; So is the "Save As" command within the SQR Viewer - no clue as to where the HTML output goes]. I am receiving html output, but the output is not similar to what we receive in the SPF files. For instance, we have condensed output and I am not able to get this. I do get the smallest font, but when I print this, the right most columns are dropped. Any idea how I can solve this problem? Is there any setting in the .ini file that I need to take care of? If anyone has a sample sqr, it would help me very much. Any help in this matter would be appreciated very much. Thanks in advance. LKR. >From: Peter Clark >Reply-To: sqr-users@list.iex.net >To: SQR-USERS@list.iex.net >Subject: Re: HTML Output - Help !!! >Date: Wed, 5 Jul 2000 15:04:39 -0300 > >Ragu, > >The probability of receiving an answer to your question would be greatly >enhanced if you would use text format for those of us whose office email >systems do not support html format e-mail. > >Peter > >Of course, those of us without html support in our corporate email software >would likely have little to contribute on a question about html :-) > > >>> Ragu Sadasivam 2000/07/05 2:34:49 pm >>> >wrote: > >[indecipherable - non text format] ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From owner-sqr-users@list.iex.net Wed Jul 5 15:32:51 2000 Date: Wed, 5 Jul 2000 19:16:30 GMT From: Ragu Sadasivam Subject: Re: HTML Output - Help !!! Thanks for the suggestion - I tried using -Printer:EH without any luck. It does not generate any HTML output. It was working one day and now does not. I enclosed the -Printer:EH within tick marks. When I bring it up in Process Monitor, the flag does not even show up. Any guesses??? >From: Michael Phillips >Reply-To: sqr-users@list.iex.net >To: SQR-USERS@list.iex.net >Subject: Re: HTML Output - Help !!! >Date: Wed, 5 Jul 2000 14:09:37 -0400 > >I did something like this > >let $FileName2 = 'c:\temp\File1.htm' > >NEW-REPORT $FileName1 > >...Processing to create the report... > >NEW-REPORT "temp.htm" !This will close the current report. Don't >worry, >it you never write to this report, then it won't be saved > >Then I delete the frame file that is automatically created because I had no >need for it. The report has to be closed first. > >let $FrameFileName = 'c:\temp\file1_frm.htm' >let #DelStatus = delete($FrameFileName) > >I would loop through this process until I have no more reports to create. > >In the process scheduler, I set this up to run on the client. It would not >run on the server; the job would finish with no errors, but no output would >be created. I also used -PRINTER:EH instead of -PRINTER:HT as the flag. > > > > >-----Original Message----- >From: Ragu Sadasivam [mailto:sathyamangalam@HOTMAIL.COM] >Sent: Wednesday, July 05, 2000 1:35 PM >To: SQR-USERS@list.iex.net >Subject: Re: HTML Output - Help !!! > > > > > >Hi, > >I have an sqr program which produces an SPF file as output. Now we have to >provide a HTML output and also split the files for each department. > >* I am using the new-report feature for splitting the files for each >department. This is working, but the extension for the file names are >lost. >Only one file has the extension .htm. I am using the -Printer:HT in the >SQR >Flags. It is also automatically generating the TOC. How do I suppress >this? > >* What is the simplest way to do generate a HTML output from the >existing sqr ? [The SQR guide mentions a command line that is supposed to >convert SPF files to HTML output, which is not working; So is the "Save >As" >command within the SQR Viewer - no clue as to where the HTML output goes]. >I am receiving html output, but the output is not similar to what we >receive >in the SPF files. For instance, we have condensed output and I am not able >to get this. I do get the smallest font, but when I print this, the right >most columns are dropped. Any idea how I can solve this problem? Is there >any setting in the .ini file that I need to take care of? If anyone has a >sample sqr, it would help me very much. > >Any help in this matter would be appreciated very much. > >Thanks in advance. > >LKR. > > > > > > _____ > >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com > ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From owner-sqr-users@list.iex.net Wed Jul 5 15:47:17 2000 Date: Wed, 5 Jul 2000 15:31:21 -0400 From: Michael Phillips Subject: Re: HTML Output - Help !!! Make sure the run location is the client and, in the overrides section, '-PRINTER:EH' is appended to the SQR Flags. -----Original Message----- From: Ragu Sadasivam [mailto:sathyamangalam@HOTMAIL.COM] Sent: Wednesday, July 05, 2000 3:17 PM To: SQR-USERS@list.iex.net Subject: Re: HTML Output - Help !!! Thanks for the suggestion - I tried using -Printer:EH without any luck. It does not generate any HTML output. It was working one day and now does not. I enclosed the -Printer:EH within tick marks. When I bring it up in Process Monitor, the flag does not even show up. Any guesses??? >From: Michael Phillips >Reply-To: sqr-users@list.iex.net >To: SQR-USERS@list.iex.net >Subject: Re: HTML Output - Help !!! >Date: Wed, 5 Jul 2000 14:09:37 -0400 > >I did something like this > >let $FileName2 = 'c:\temp\File1.htm' > >NEW-REPORT $FileName1 > >...Processing to create the report... > >NEW-REPORT "temp.htm" !This will close the current report. Don't >worry, >it you never write to this report, then it won't be saved > >Then I delete the frame file that is automatically created because I had no >need for it. The report has to be closed first. > >let $FrameFileName = 'c:\temp\file1_frm.htm' >let #DelStatus = delete($FrameFileName) > >I would loop through this process until I have no more reports to create. > >In the process scheduler, I set this up to run on the client. It would not >run on the server; the job would finish with no errors, but no output would >be created. I also used -PRINTER:EH instead of -PRINTER:HT as the flag. > > > > >-----Original Message----- >From: Ragu Sadasivam [mailto:sathyamangalam@HOTMAIL.COM] >Sent: Wednesday, July 05, 2000 1:35 PM >To: SQR-USERS@list.iex.net >Subject: Re: HTML Output - Help !!! > > > > > >Hi, > >I have an sqr program which produces an SPF file as output. Now we have to >provide a HTML output and also split the files for each department. > >* I am using the new-report feature for splitting the files for each >department. This is working, but the extension for the file names are >lost. >Only one file has the extension .htm. I am using the -Printer:HT in the >SQR >Flags. It is also automatically generating the TOC. How do I suppress >this? > >* What is the simplest way to do generate a HTML output from the >existing sqr ? [The SQR guide mentions a command line that is supposed to >convert SPF files to HTML output, which is not working; So is the "Save >As" >command within the SQR Viewer - no clue as to where the HTML output goes]. >I am receiving html output, but the output is not similar to what we >receive >in the SPF files. For instance, we have condensed output and I am not able >to get this. I do get the smallest font, but when I print this, the right >most columns are dropped. Any idea how I can solve this problem? Is there >any setting in the .ini file that I need to take care of? If anyone has a >sample sqr, it would help me very much. > >Any help in this matter would be appreciated very much. > >Thanks in advance. > >LKR. > > > > > > _____ > >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com > ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From owner-sqr-users@list.iex.net Thu Jul 6 09:52:11 2000 Date: Thu, 6 Jul 2000 13:39:12 GMT From: Ragu Sadasivam Subject: Re: HTML Output - Help !!! Hi - It is not working!!! We are on SQR version 4.3.4 and PeopleSoft 7.02 [Appl.version]. I saw one of your earlier emails about enclosing the printer:EH within tick marks, and I haven't had any luck!! I do have the -ZIV and -keep which generates the SPF files also. Do you think this could be the reason, why it is not working? And we always run our sqr's on the client. Thanks for your input!! LKR >From: Michael Phillips >Reply-To: sqr-users@list.iex.net >To: SQR-USERS@list.iex.net >Subject: Re: HTML Output - Help !!! >Date: Wed, 5 Jul 2000 15:31:21 -0400 > >Make sure the run location is the client and, in the overrides section, >'-PRINTER:EH' is appended to the SQR Flags. > >-----Original Message----- >From: Ragu Sadasivam [mailto:sathyamangalam@HOTMAIL.COM] >Sent: Wednesday, July 05, 2000 3:17 PM >To: SQR-USERS@list.iex.net >Subject: Re: HTML Output - Help !!! > > >Thanks for the suggestion - > >I tried using -Printer:EH without any luck. It does not generate any HTML >output. It was working one day and now does not. I enclosed the >-Printer:EH within tick marks. When I bring it up in Process Monitor, the >flag does not even show up. > >Any guesses??? > > > >From: Michael Phillips > >Reply-To: sqr-users@list.iex.net > >To: SQR-USERS@list.iex.net > >Subject: Re: HTML Output - Help !!! > >Date: Wed, 5 Jul 2000 14:09:37 -0400 > > > >I did something like this > > > >let $FileName2 = 'c:\temp\File1.htm' > > > >NEW-REPORT $FileName1 > > > >...Processing to create the report... > > > >NEW-REPORT "temp.htm" !This will close the current report. Don't > >worry, > >it you never write to this report, then it won't be saved > > > >Then I delete the frame file that is automatically created because I had >no > >need for it. The report has to be closed first. > > > >let $FrameFileName = 'c:\temp\file1_frm.htm' > >let #DelStatus = delete($FrameFileName) > > > >I would loop through this process until I have no more reports to create. > > > >In the process scheduler, I set this up to run on the client. It would >not > >run on the server; the job would finish with no errors, but no output >would > >be created. I also used -PRINTER:EH instead of -PRINTER:HT as the flag. > > > > > > > > > >-----Original Message----- > >From: Ragu Sadasivam [mailto:sathyamangalam@HOTMAIL.COM] > >Sent: Wednesday, July 05, 2000 1:35 PM > >To: SQR-USERS@list.iex.net > >Subject: Re: HTML Output - Help !!! > > > > > > > > > > > >Hi, > > > >I have an sqr program which produces an SPF file as output. Now we have >to > >provide a HTML output and also split the files for each department. > > > >* I am using the new-report feature for splitting the files for >each > >department. This is working, but the extension for the file names are > >lost. > >Only one file has the extension .htm. I am using the -Printer:HT in the > >SQR > >Flags. It is also automatically generating the TOC. How do I suppress > >this? > > > >* What is the simplest way to do generate a HTML output from the > >existing sqr ? [The SQR guide mentions a command line that is supposed to > >convert SPF files to HTML output, which is not working; So is the "Save > >As" > >command within the SQR Viewer - no clue as to where the HTML output >goes]. > >I am receiving html output, but the output is not similar to what we > >receive > >in the SPF files. For instance, we have condensed output and I am not >able > >to get this. I do get the smallest font, but when I print this, the >right > >most columns are dropped. Any idea how I can solve this problem? Is >there > >any setting in the .ini file that I need to take care of? If anyone has >a > >sample sqr, it would help me very much. > > > >Any help in this matter would be appreciated very much. > > > >Thanks in advance. > > > >LKR. > > > > > > > > > > > > _____ > > > >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com > > > >________________________________________________________________________ >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From owner-sqr-users@list.iex.net Wed Jul 5 17:57:50 2000 Date: Wed, 5 Jul 2000 18:35:08 -0300 From: "Ronaldo Delmar M. Fernandes" Subject: Help !! I dont understanding on break in my report. look the follow code. Begin-Program Begin-Select codgrupo codproduto produto print &codgrupo (,10) On-Break procedure = q_grupo print &codproduto (,15) print &produto (,28) next-listing >From produtos where coddepartamento = 1 and codsecao = 8 and codclasse = 168 order by codgrupo End-Select End-Program begin-procedure q_grupo print 'Grupo' (+1,1) end-procedure and look the result 1 189 cerveja tipo1 502 cerveja brahma 924 cerveja skol 1223 cerveja polar grupo 5 242105 cerveja nortenha 6423 cerveja itaipava grupo 10 131484 cerveja kroneibier 2368 cerveja tipo 2 4525 cerveja tipo 3 1568 cerveja tipo 99 why in the first time the string grupo not printed if &codgrupo printed ? From owner-sqr-users@list.iex.net Wed Jul 5 18:06:10 2000 Date: Wed, 5 Jul 2000 16:56:49 -0500 From: Kathy Anderson Subject: Re: Help !! I dont understanding on break in my report. The "procedure" option with On-break is like an "After" option (I think). The procedure will only kick off after the value changes. Maybe you should try the "before" option instead. Begin-Program Begin-Select codgrupo codproduto produto print &codgrupo (,10) On-Break before =q_grupo print &codproduto (,15) print &produto (,28) next-listing From produtos where coddepartamento = 1 and codsecao = 8 and codclasse = 168 order by codgrupo End-Select End-Program > -----Original Message----- > From: Ronaldo Delmar M. Fernandes [SMTP:ronaldo@ZAFFARI.COM.BR] > Sent: 5 July 2000 4:35 PM > To: SQR-USERS@list.iex.net > Subject: Help !! I dont understanding on break in my report. > > look the follow code. > > Begin-Program > Begin-Select > codgrupo > codproduto > produto > print &codgrupo (,10) On-Break procedure > = > q_grupo > print &codproduto (,15) > print &produto (,28) > > next-listing > > From produtos > where coddepartamento = 1 > and codsecao = 8 > and codclasse = 168 > order by codgrupo > End-Select > End-Program > > begin-procedure q_grupo > print 'Grupo' (+1,1) > end-procedure > > and look the result > > 1 189 cerveja tipo1 > 502 cerveja brahma > 924 cerveja skol > 1223 cerveja polar > > grupo 5 242105 cerveja nortenha > 6423 cerveja itaipava > > grupo 10 131484 cerveja kroneibier > 2368 cerveja tipo 2 > 4525 cerveja tipo 3 > 1568 cerveja tipo 99 > > > why in the first time the string grupo not printed if &codgrupo printed ? From owner-sqr-users@list.iex.net Wed Jul 5 18:12:29 2000 Date: Wed, 5 Jul 2000 17:58:10 -0400 From: "Risman, Mark" Subject: Re: Help !! I dont understanding on break in my report. Ronaldo, Instead of using "procedure=...", consider using "before=". The procedure you designate with "before=" should execute once at the beginning of your query. - Mark -----Original Message----- From: Ronaldo Delmar M. Fernandes [mailto:ronaldo@ZAFFARI.COM.BR] Sent: Wednesday, July 05, 2000 5:35 PM To: SQR-USERS@list.iex.net Subject: Help !! I dont understanding on break in my report. look the follow code. Begin-Program Begin-Select codgrupo codproduto produto print &codgrupo (,10) On-Break procedure = q_grupo print &codproduto (,15) print &produto (,28) next-listing From produtos where coddepartamento = 1 and codsecao = 8 and codclasse = 168 order by codgrupo End-Select End-Program begin-procedure q_grupo print 'Grupo' (+1,1) end-procedure and look the result 1 189 cerveja tipo1 502 cerveja brahma 924 cerveja skol 1223 cerveja polar grupo 5 242105 cerveja nortenha 6423 cerveja itaipava grupo 10 131484 cerveja kroneibier 2368 cerveja tipo 2 4525 cerveja tipo 3 1568 cerveja tipo 99 why in the first time the string grupo not printed if &codgrupo printed ? From owner-sqr-users@list.iex.net Wed Jul 5 18:29:59 2000 Date: Wed, 5 Jul 2000 17:07:25 -0500 From: "Aguirre, Jose' A" Subject: Re: Help !! I dont understanding on break in my report. Ronaldo, Kathy is correct, if you have a procedure to call or it has been declared, it will be invoked. An after or before will work in order to invoke either after or before the value changes. José A. Aguirre -----Original Message----- From: Kathy Anderson [mailto:AndersoK@ROTARYINTL.ORG] Sent: Wednesday, July 05, 2000 4:57 PM To: SQR-USERS@LIST.IEX.NET Subject: Re: Help !! I dont understanding on break in my report. The "procedure" option with On-break is like an "After" option (I think). The procedure will only kick off after the value changes. Maybe you should try the "before" option instead. Begin-Program Begin-Select codgrupo codproduto produto print &codgrupo (,10) On-Break before =q_grupo print &codproduto (,15) print &produto (,28) next-listing From produtos where coddepartamento = 1 and codsecao = 8 and codclasse = 168 order by codgrupo End-Select End-Program > -----Original Message----- > From: Ronaldo Delmar M. Fernandes [SMTP:ronaldo@ZAFFARI.COM.BR] > Sent: 5 July 2000 4:35 PM > To: SQR-USERS@list.iex.net > Subject: Help !! I dont understanding on break in my report. > > look the follow code. > > Begin-Program > Begin-Select > codgrupo > codproduto > produto > print &codgrupo (,10) On-Break procedure > = > q_grupo > print &codproduto (,15) > print &produto (,28) > > next-listing > > From produtos > where coddepartamento = 1 > and codsecao = 8 > and codclasse = 168 > order by codgrupo > End-Select > End-Program > > begin-procedure q_grupo > print 'Grupo' (+1,1) > end-procedure > > and look the result > > 1 189 cerveja tipo1 > 502 cerveja brahma > 924 cerveja skol > 1223 cerveja polar > > grupo 5 242105 cerveja nortenha > 6423 cerveja itaipava > > grupo 10 131484 cerveja kroneibier > 2368 cerveja tipo 2 > 4525 cerveja tipo 3 > 1568 cerveja tipo 99 > > > why in the first time the string grupo not printed if &codgrupo printed ? From owner-sqr-users@list.iex.net Wed Jul 5 18:21:25 2000 Date: Wed, 5 Jul 2000 18:08:47 -0400 From: John Milardovic Subject: Re: Help !! I dont understanding on break in my report. Use: Begin-Program Begin-Select codgrupo () on-break print=never before=q_grupo codproduto (,15) produto (,28) position (+1) >From produtos where coddepartamento = 1 and codsecao = 8 and codclasse = 168 order by codgrupo End-Select End-Program begin-procedure q_grupo print 'Grupo' (+1,1) print &codgrupo (,10) end-procedure > -----Original Message----- > From: Ronaldo Delmar M. Fernandes [SMTP:ronaldo@ZAFFARI.COM.BR] > Sent: Wednesday, July 05, 2000 5:35 PM > To: SQR-USERS@list.iex.net > Subject: Help !! I dont understanding on break in my report. > > look the follow code. > > Begin-Program > Begin-Select > codgrupo > codproduto > produto > print &codgrupo (,10) On-Break procedure > = > q_grupo > print &codproduto (,15) > print &produto (,28) > > next-listing > > From produtos > where coddepartamento = 1 > and codsecao = 8 > and codclasse = 168 > order by codgrupo > End-Select > End-Program > > begin-procedure q_grupo > print 'Grupo' (+1,1) > end-procedure > > and look the result > > 1 189 cerveja tipo1 > 502 cerveja brahma > 924 cerveja skol > 1223 cerveja polar > > grupo 5 242105 cerveja nortenha > 6423 cerveja itaipava > > grupo 10 131484 cerveja kroneibier > 2368 cerveja tipo 2 > 4525 cerveja tipo 3 > 1568 cerveja tipo 99 > > > why in the first time the string grupo not printed if &codgrupo printed ? From owner-sqr-users@list.iex.net Wed Jul 5 18:21:41 2000 Date: Wed, 5 Jul 2000 17:15:01 -0500 From: "Arosemena, Efrain" Subject: Re: Help !! I dont understanding on break in my report. Buenas Ronaldo, prueba con before=q_grupo -----Mensaje original----- De: Ronaldo Delmar M. Fernandes [mailto:ronaldo@ZAFFARI.COM.BR] Enviado el: Wednesday, July 05, 2000 4:35 PM Para: SQR-USERS@list.iex.net Asunto: Help !! I dont understanding on break in my report. look the follow code. Begin-Program Begin-Select codgrupo codproduto produto print &codgrupo (,10) On-Break procedure = q_grupo print &codproduto (,15) print &produto (,28) next-listing >From produtos where coddepartamento = 1 and codsecao = 8 and codclasse = 168 order by codgrupo End-Select End-Program begin-procedure q_grupo print 'Grupo' (+1,1) end-procedure and look the result 1 189 cerveja tipo1 502 cerveja brahma 924 cerveja skol 1223 cerveja polar grupo 5 242105 cerveja nortenha 6423 cerveja itaipava grupo 10 131484 cerveja kroneibier 2368 cerveja tipo 2 4525 cerveja tipo 3 1568 cerveja tipo 99 why in the first time the string grupo not printed if &codgrupo printed ? From owner-sqr-users@list.iex.net Wed Jul 5 18:40:51 2000 Date: Wed, 5 Jul 2000 15:26:46 -0700 From: Dave Thorburn Subject: Re: Help !! I dont understanding on break in my report. Kathy's answer is correct. Use the 'Before' procedure to print group headings. This way you will have a group heading for each group encountered during the run instead of only when the group has changed. The Manning Press book SQR FOR PEOPLESOFT AND OTHER APPLICATIONS has a nice example of this logic. Regards, Dave ---------------------------------------------------------- >--- Original Message --- >From: Kathy Anderson >To: SQR-USERS@list.iex.net >Date: 7/5/00 9:56:49 PM > >The "procedure" option with On-break is like an "After" option (I think). >The procedure will only kick off after the value changes. Maybe you should >try the "before" option instead. > > Begin-Program > Begin-Select > codgrupo > codproduto > produto > print &codgrupo (,10) On-Break >before =q_grupo > print &codproduto (,15) > print &produto (,28) > > next-listing > > From produtos > where coddepartamento = 1 > and codsecao = 8 > and codclasse = 168 > order by codgrupo > End-Select > End-Program > > > >> -----Original Message----- >> From: Ronaldo Delmar M. Fernandes [SMTP:ronaldo@ZAFFARI.COM.BR] >> Sent: 5 July 2000 4:35 PM >> To: SQR-USERS@list.iex.net >> Subject: Help !! I dont understanding on break in my report. >> >> look the follow code. >> >> Begin-Program >> Begin-Select >> codgrupo >> codproduto >> produto >> print &codgrupo (,10) On-Break procedure >> = >> q_grupo >> print &codproduto (,15) >> print &produto (,28) >> >> next-listing >> >> From produtos >> where coddepartamento = 1 >> and codsecao = 8 >> and codclasse = 168 >> order by codgrupo >> End-Select >> End-Program >> >> begin-procedure q_grupo >> print 'Grupo' (+1,1) >> end-procedure >> >> and look the result >> >> 1 189 cerveja tipo1 >> 502 cerveja brahma >> 924 cerveja skol >> 1223 cerveja polar >> >> grupo 5 242105 cerveja nortenha >> 6423 cerveja itaipava >> >> grupo 10 131484 cerveja kroneibier >> 2368 cerveja tipo 2 >> 4525 cerveja tipo 3 >> 1568 cerveja tipo 99 >> >> >> why in the first time the string grupo not printed if &codgrupo printed ? > > ---------------- Sent from a WebBox - http://www.webbox.com FREE Web based Email, Files, Bookmarks, Calendar, People and Great Ways to Share them with Others! From owner-sqr-users@list.iex.net Wed Jul 5 18:20:32 2000 Date: Wed, 5 Jul 2000 18:03:14 -0400 From: "Risman, Mark" Subject: Re: Headings question??? All, Haven't seen a solution to this problem posted yet. I'd like to throw my issue into the ring. I have a batch of SQR reports that I run nightly, and every report seems to always skip one line between the report heading and the report body, but only on every page AFTER the first page. Has anyone else seen this happen? I have tried adjusting both the page width and page length, but this didn't seem to help. I am using SQR V4.0.2 under Solaris (SunOS 5.6), and printing to PostScript printer type and then distilling to PDF. - Mark -----Original Message----- From: Matt Matthiessen [mailto:mmatthiessen@ASSISTED.COM] Sent: Wednesday, April 26, 2000 5:58 PM To: SQR-USERS@list.iex.net Subject: Re: Headings question??? Here's a bit more on my problem: Example: Here is my page one: Line 1: Heading info Line 2: Heading info Line 3: Heading info Line 4: Heading info Line 5: Heading info Line 6: Heading info Line 7: Heading info Line 8: Heading info Line 9: Heading info Line 10: blank line Line 11: ??? Line 12: ??? Line 13: ??? Line 14: ??? Line 15: My first "non-heading" print statement ( example: print &itemnum (, 1) ) Here is my page2(or higher): Line 1: Heading info Line 2: Heading info Line 3: Heading info Line 4: Heading info Line 5: Heading info Line 6: Heading info Line 7: Heading info Line 8: Heading info Line 9: Heading info Line 10: blank line Line 11: My first "non-heading" print statement ( example: print &itemnum (, 1) ) My question is why do I have blank lines after my heading is done and the data starts, on ONLY my first page... Thanks for your help... Matt Matt Matthiessen Programmer Analyst Alterra HealthCare Voice: 414-918-5677 Email: mmatthiessen@assisted.com -----Original Message----- From: Love, Kristin [SMTP:KLove@MSA.COM] Sent: Wednesday, April 26, 2000 3:49 PM To: SQR-USERS@list.iex.net Subject: Re: Headings question??? I think I've been bitten by this in the past... If you try to print past the page length, SQR will break the page on its own but not redo the headings. We always have to check if the current line > page length. (If I understand what you're asking) :) Kristin > -----Original Message----- > From: Matt Matthiessen [SMTP:mmatthiessen@ASSISTED.COM] > Sent: Wednesday, April 26, 2000 3:55 PM > To: SQR-USERS@list.iex.net > Subject: Headings question??? > > I have an SQR generating one report. I have a "begin-heading 10" block of > code within my SQR. My question is why is it that these "reserved 10 > lines" > only are so on pages 2 or higher within my report. Page one actually > starts > my first "non-heading" print statement on line 15. But, then, pages 2 and > higher actually conform to the 10 line heading. I made sure that there > are > no specific "print $whatevers (+1,1)" or any other line increased prints > tied to just the first page. It seems to be just how SQR is formatting > that > first page. Please help...thanks... > > SQR Matt From owner-sqr-users@list.iex.net Wed Jul 5 19:11:28 2000 Date: Wed, 5 Jul 2000 19:51:23 -0300 From: Davi Cabral Subject: RES: Help !! I dont understanding on break in my report. For what a On-Break and a Procedure to a so simple query? Try a group by and simply write "Grupo" beside &codgrupo: Return me what happens. By the way, what SQR version are you using? Do you write the code manually or you have a graphic interface? Davi Begin-Program Begin-Select codgrupo codproduto produto print 'Grupo' (+1,1) print &codgrupo (,10) print &codproduto (,15) print &produto (,28) next-listing From produtos where coddepartamento = 1 and codsecao = 8 and codclasse = 168 group by codgrupo order by codgrupo End-Select End-Program ----- Mensagem original ----- De: Ronaldo Delmar M. Fernandes [SMTP:ronaldo@ZAFFARI.COM.BR] Enviada em: quarta-feira, 5 de julho de 2000 18:35 Para: SQR-USERS@list.iex.net Assunto: Help !! I dont understanding on break in my report. look the follow code. Begin-Program Begin-Select codgrupo codproduto produto print &codgrupo (,10) On-Break procedure = q_grupo print &codproduto (,15) print &produto (,28) next-listing >From produtos where coddepartamento = 1 and codsecao = 8 and codclasse = 168 order by codgrupo End-Select End-Program begin-procedure q_grupo print 'Grupo' (+1,1) end-procedure and look the result 1 189 cerveja tipo1 502 cerveja brahma 924 cerveja skol 1223 cerveja polar grupo 5 242105 cerveja nortenha 6423 cerveja itaipava grupo 10 131484 cerveja kroneibier 2368 cerveja tipo 2 4525 cerveja tipo 3 1568 cerveja tipo 99 why in the first time the string grupo not printed if &codgrupo printed ? From owner-sqr-users@list.iex.net Thu Jul 6 09:51:20 2000 Date: Thu, 6 Jul 2000 10:32:44 -0300 From: "Ronaldo Delmar M. Fernandes" Subject: RES: Help !! I dont understanding on break in my report. The example just is to understand because procedure doesn't execute on first time. > ----- Mensagem original ----- > De: Davi Cabral [SMTP:dcabral@RECSA.COM.BR] > Enviada em: Quarta-feira, 5 de Julho de 2000 19:51 > Para: SQR-USERS@list.iex.net > Assunto: RES: Help !! I dont understanding on break in my > report. > > For what a On-Break and a Procedure to a so simple query? Try a group by > and simply write "Grupo" beside &codgrupo: > Return me what happens. > By the way, what SQR version are you using? Do you write the code manually > or you have a graphic interface? > > Davi > > Begin-Program > Begin-Select > codgrupo > codproduto > produto > print 'Grupo' (+1,1) > print &codgrupo (,10) > print &codproduto (,15) > print &produto (,28) > next-listing > From produtos > where coddepartamento = 1 > and codsecao = 8 > and codclasse = 168 > group by codgrupo > order by codgrupo > End-Select > End-Program > > > > > ----- Mensagem original ----- > De: Ronaldo Delmar M. Fernandes [SMTP:ronaldo@ZAFFARI.COM.BR] > Enviada em: quarta-feira, 5 de julho de 2000 18:35 > Para: SQR-USERS@list.iex.net > Assunto: Help !! I dont understanding on break in my > report. > > look the follow code. > > Begin-Program > Begin-Select > codgrupo > codproduto > produto > print &codgrupo (,10) On-Break procedure > = > q_grupo > print &codproduto (,15) > print &produto (,28) > > next-listing > > From produtos > where coddepartamento = 1 > and codsecao = 8 > and codclasse = 168 > order by codgrupo > End-Select > End-Program > > begin-procedure q_grupo > print 'Grupo' (+1,1) > end-procedure > > and look the result > > 1 189 cerveja tipo1 > 502 cerveja brahma > 924 cerveja skol > 1223 cerveja polar > > grupo 5 242105 cerveja nortenha > 6423 cerveja itaipava > > grupo 10 131484 cerveja kroneibier > 2368 cerveja tipo 2 > 4525 cerveja tipo 3 > 1568 cerveja tipo 99 > > > why in the first time the string grupo not printed if &codgrupo printed ? From owner-sqr-users@list.iex.net Thu Jul 6 14:05:39 2000 Date: Thu, 6 Jul 2000 10:48:52 -0700 From: Dave Thorburn Subject: SQR and MVS - Communicating with Op. System All, I have a problem with SQR and MVS JCL. The output dataset from the SQR has been defined in the JCL and works perfectly. The Problem is that when the SQR creates no output records I am left with an empty dataset cataloged on MVS. Is there a way to pass information from the SQR to MVS that could be used to trigger a subsequent Job Step to delete the dataset -or- Can someone suggest a way to resolve this situation without writing a COBOL program to check for a null dataset? How about MVS Utilities - Has any one used any of the 'IEB' or 'IEH' utilities to determine if a dataset is empty? Thanks, Dave ---------------- Sent from a WebBox - http://www.webbox.com FREE Web based Email, Files, Bookmarks, Calendar, People and Great Ways to Share them with Others! From owner-sqr-users@list.iex.net Thu Jul 6 14:30:06 2000 Date: Thu, 6 Jul 2000 14:16:30 -0400 From: "Joshi, Pradeep" Subject: Re: SQR and MVS - Communicating with Op. System You can use SQR reserved variable #return-status to pass info to operating system.. You can set the value of #return-status in your SQR and check that value in your O/S script. I hope this helps to solve your problem. Thanks, Pradeep > -----Original Message----- > From: Dave Thorburn [SMTP:thorburn@CONL.NET] > Sent: Thursday, July 06, 2000 1:49 PM > To: SQR-USERS@list.iex.net > Subject: SQR and MVS - Communicating with Op. System > > All, > > I have a problem with SQR and MVS JCL. The output dataset > from the SQR has been defined in the JCL and works perfectly. > > The Problem is that when the SQR creates no output records > I am left with an empty dataset cataloged on MVS. > > Is there a way to pass information from the SQR to MVS that > could be used to trigger a subsequent Job Step to delete the > dataset -or- > > Can someone suggest a way to resolve this situation without > writing a COBOL program to check for a null dataset? > > How about MVS Utilities - Has any one used any of the 'IEB' > or 'IEH' utilities to determine if a dataset is empty? > > Thanks, > > Dave > > > ---------------- > Sent from a WebBox - http://www.webbox.com > FREE Web based Email, Files, Bookmarks, Calendar, People and > Great Ways to Share them with Others! From owner-sqr-users@list.iex.net Fri Jul 7 15:11:03 2000 Date: Fri, 7 Jul 2000 14:56:10 -0400 From: Steve Schelske Subject: Re: SQR and MVS - Communicating with Op. System If you have access to FileAid, it gives a return code 8 if the input (DD01) file is empty. A subsequent job step could then run to delete the output dataset if the FileAid job returns 8. Just out of curiosity, is there a pressing reason that you need to delete these datasets? -----Original Message----- From: Discussion of SQR, Brio Technology's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Dave Thorburn Sent: Thursday, July 06, 2000 1:49 PM To: SQR-USERS@list.iex.net Subject: SQR and MVS - Communicating with Op. System All, I have a problem with SQR and MVS JCL. The output dataset from the SQR has been defined in the JCL and works perfectly. The Problem is that when the SQR creates no output records I am left with an empty dataset cataloged on MVS. Is there a way to pass information from the SQR to MVS that could be used to trigger a subsequent Job Step to delete the dataset -or- Can someone suggest a way to resolve this situation without writing a COBOL program to check for a null dataset? How about MVS Utilities - Has any one used any of the 'IEB' or 'IEH' utilities to determine if a dataset is empty? Thanks, Dave ---------------- Sent from a WebBox - http://www.webbox.com FREE Web based Email, Files, Bookmarks, Calendar, People and Great Ways to Share them with Others! From owner-sqr-users@list.iex.net Fri Jul 7 15:21:29 2000 Date: Fri, 7 Jul 2000 15:08:49 -0400 From: Jerry Coleman Subject: Re: SQR and MVS - Communicating with Op. System Pasted from the SQR Manual: #return-status - Value to be returned to the operating system when SQR exits. May be set in your report. #return-status is initialized to the "success" return value for the operating system. Steve Schelske cc: Sent by: Subject: Re: SQR and MVS - Communicating with Op. System "Discussion of SQR, Brio Technology's database reporting language" 07/07/00 02:56 PM Please respond to sqr-users If you have access to FileAid, it gives a return code 8 if the input (DD01) file is empty. A subsequent job step could then run to delete the output dataset if the FileAid job returns 8. Just out of curiosity, is there a pressing reason that you need to delete these datasets? -----Original Message----- From: Discussion of SQR, Brio Technology's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Dave Thorburn Sent: Thursday, July 06, 2000 1:49 PM To: SQR-USERS@list.iex.net Subject: SQR and MVS - Communicating with Op. System All, I have a problem with SQR and MVS JCL. The output dataset from the SQR has been defined in the JCL and works perfectly. The Problem is that when the SQR creates no output records I am left with an empty dataset cataloged on MVS. Is there a way to pass information from the SQR to MVS that could be used to trigger a subsequent Job Step to delete the dataset -or- Can someone suggest a way to resolve this situation without writing a COBOL program to check for a null dataset? How about MVS Utilities - Has any one used any of the 'IEB' or 'IEH' utilities to determine if a dataset is empty? Thanks, Dave ---------------- Sent from a WebBox - http://www.webbox.com FREE Web based Email, Files, Bookmarks, Calendar, People and Great Ways to Share them with Others! From owner-sqr-users@list.iex.net Thu Jul 6 16:56:26 2000 Date: Thu, 6 Jul 2000 16:45:08 -0400 From: Anne-Marie Matula Subject: Load-Lookup and return_values of long datatype Hi there SQR gurus and geeks, I was hoping to use LOAD-LOOKUP to return a value stored in a LONG datatype (field=comments). We are using Oracle 8.0.3 database last I checked. Unfortunately LOAD-LOOKUP selects the value using the distinct command which is illegal with LONG datatypes: ORA-00997: illegal use of LONG datatype SQL: select distinct Emplid, Comments from PS_PERSON_COMMENT umexgtrm1 where umexgtrm1.CMNT_CATEGORY='GSOL' and umexgtrm1.COMMENT_DTTM = (select MAX(COMMENT_DTTM) from PS_PERSON_COMMENT umexgtrm2 where umexgtrm1.EMPLID = umexgtrm2.EMPLID and umexgtrm2.CMNT_CATEGORY='GSOL') Error at: Comments My Load-Lookup command is: LET $where = 'umexgtrm1.CMNT_CATEGORY=''GSOL'' and '|| 'umexgtrm1.COMMENT_DTTM = (select MAX(COMMENT_DTTM) from PS_PERSON_COMMENT umexgtrm2 where '|| 'umexgtrm1.EMPLID = umexgtrm2.EMPLID and umexgtrm2.CMNT_CATEGORY=''GSOL'')' LOAD-LOOKUP Name=Um-SOL-Comments Table='PS_PERSON_COMMENT umexgtrm1' Key=Emplid Return_value=Comments where=$where ---------------- Does anyone have any suggestions on how to get what I want (the first 60 characters or so from the LONG field) using LOAD-LOOKUP? I guess I could link this query with my main one using an outer join but I wanted to see if I could get this to work first. Thanks! Have a good one, Anne-Marie PS: I get SQR-Users in digest format so if you could cc me in on any response I'd greatly appreciate it ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Anne-Marie Matula Student Information System Project Office of Information Technologies University of Massachusetts 161 Whitmore Administration Building Amherst Massachusetts, 01003-8165 Phone: 413/577-0685 Fax: 413/545-2150 From owner-sqr-users@list.iex.net Thu Jul 6 18:19:18 2000 Date: Thu, 6 Jul 2000 14:52:09 PDT From: Scott Hitchcock Subject: Re: Load-Lookup and return_values of long datatype Anne-Marie, You might try using the function below from Ken Atkins' Oracle tip page. Change the varchar2(2000) to varchar2(60) and substitute your columns/tables. I use it often...works great. Is also great for searching a long data type, first 2000 characters anyway, without the oracle context package. CREATE OR REPLACE FUNCTION comments (employee_id IN NUMBER) RETURN VARCHAR2 IS c_desc VARCHAR2(2000); c_Long LONG; BEGIN SELECT comments INTO c_Long FROM comment_table WHERE long_id = employee_id; v_Desc := substr(c_long,1,2000); RETURN(c_desc); END; Usage..... SELECT comments(emplid) FROM comment_table where.... >From: Anne-Marie Matula >Reply-To: sqr-users@list.iex.net >To: SQR-USERS@list.iex.net >Subject: Load-Lookup and return_values of long datatype >Date: Thu, 6 Jul 2000 16:45:08 -0400 > >Hi there SQR gurus and geeks, > >I was hoping to use LOAD-LOOKUP to return a value stored in a LONG datatype >(field=comments). We are using Oracle 8.0.3 database last I checked. >Unfortunately LOAD-LOOKUP selects the value using the distinct command >which >is illegal with LONG datatypes: > >ORA-00997: illegal use of LONG datatype >SQL: select distinct Emplid, Comments from PS_PERSON_COMMENT umexgtrm1 >where > umexgtrm1.CMNT_CATEGORY='GSOL' and umexgtrm1.COMMENT_DTTM = (select > MAX(COMMENT_DTTM) from PS_PERSON_COMMENT umexgtrm2 where > umexgtrm1.EMPLID = umexgtrm2.EMPLID and >umexgtrm2.CMNT_CATEGORY='GSOL') >Error at: Comments > >My Load-Lookup command is: > >LET $where = 'umexgtrm1.CMNT_CATEGORY=''GSOL'' and '|| > 'umexgtrm1.COMMENT_DTTM = (select MAX(COMMENT_DTTM) from >PS_PERSON_COMMENT umexgtrm2 where '|| > 'umexgtrm1.EMPLID = umexgtrm2.EMPLID and >umexgtrm2.CMNT_CATEGORY=''GSOL'')' > >LOAD-LOOKUP > Name=Um-SOL-Comments > Table='PS_PERSON_COMMENT umexgtrm1' > Key=Emplid > Return_value=Comments > where=$where > >---------------- >Does anyone have any suggestions on how to get what I want (the first 60 >characters or so from the LONG field) using LOAD-LOOKUP? I guess I could >link this query with my main one using an outer join but I wanted to see if >I could get this to work first. > >Thanks! > >Have a good one, > >Anne-Marie > >PS: I get SQR-Users in digest format so if you could cc me in on any >response I'd greatly appreciate it > > > > > >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Anne-Marie Matula >Student Information System Project >Office of Information Technologies >University of Massachusetts >161 Whitmore Administration Building >Amherst Massachusetts, 01003-8165 >Phone: 413/577-0685 >Fax: 413/545-2150 ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From owner-sqr-users@list.iex.net Fri Jul 7 17:49:31 2000 Date: Fri, 7 Jul 2000 15:38:27 -0600 From: Randy Kirkpatrick Subject: SQR 7501 Can anyone tell me why I'm getting this error and how I can fix it? (SQR 7501) Using YY edit mask from (DD-MON-YY) against (2000) Randy K. From owner-sqr-users@list.iex.net Fri Jul 7 19:32:26 2000 Date: Fri, 7 Jul 2000 17:51:53 -0400 From: "Risman, Mark" Subject: Re: SQR 7501 Randy, This is a warning, not an error. It means SQR thinks you might be trying to compare a two-digit year against a four-digit year. If these warnings are errant and come up frequently, you can disable this message by setting "OutputTwoDIgitYearWarningMsg" in your sqr.ini file to false. - Mark -----Original Message----- From: Randy Kirkpatrick [mailto:randyk@MESSAGEMEDIA.COM] Sent: Friday, July 07, 2000 5:38 PM To: SQR-USERS@list.iex.net Subject: SQR 7501 Can anyone tell me why I'm getting this error and how I can fix it? (SQR 7501) Using YY edit mask from (DD-MON-YY) against (2000) Randy K. From owner-sqr-users@list.iex.net Fri Jul 7 19:33:50 2000 Date: Fri, 7 Jul 2000 16:07:21 -0600 From: Randy Kirkpatrick Subject: Re: SQR 7501 Mark, I guess I should have asked why a strtodate function is returning a two digit year (DD-MM-YY). Randy -----Original Message----- From: Discussion of SQR, Brio Technology's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Risman, Mark Sent: Friday, July 07, 2000 3:52 PM To: SQR-USERS@list.iex.net Subject: Re: SQR 7501 Randy, This is a warning, not an error. It means SQR thinks you might be trying to compare a two-digit year against a four-digit year. If these warnings are errant and come up frequently, you can disable this message by setting "OutputTwoDIgitYearWarningMsg" in your sqr.ini file to false. - Mark -----Original Message----- From: Randy Kirkpatrick [mailto:randyk@MESSAGEMEDIA.COM] Sent: Friday, July 07, 2000 5:38 PM To: SQR-USERS@list.iex.net Subject: SQR 7501 Can anyone tell me why I'm getting this error and how I can fix it? (SQR 7501) Using YY edit mask from (DD-MON-YY) against (2000) Randy K. From owner-sqr-users@list.iex.net Fri Jul 7 20:44:44 2000 Date: Fri, 7 Jul 2000 18:13:08 -0600 From: Jim Vanderpool Subject: Re: SQR 7501 Randy, It's likely your SQR.INI (or PSSQR.INI in Peoplesoft) is driving the two digit year format. We're on Oracle and have set up the following code in PSSQR.INI (actually, just modified what was delivered) to get around the problem: [Environment:Oracle] SQR_DB_DATE_FORMAT=MM-DD-YYYY That should fix it. Jim Vanderpool University of Colorado Administrative Streamlining Project At 04:07 PM 7/7/00 -0600, you wrote: >Mark, > >I guess I should have asked why a strtodate function is returning a two >digit year (DD-MM-YY). > >Randy > > > >-----Original Message----- >From: Discussion of SQR, Brio Technology's database reporting language >[mailto:SQR-USERS@list.iex.net]On Behalf Of Risman, Mark >Sent: Friday, July 07, 2000 3:52 PM >To: SQR-USERS@list.iex.net >Subject: Re: SQR 7501 > > >Randy, > >This is a warning, not an error. It means SQR thinks you might be trying to >compare a two-digit year against a four-digit year. If these warnings are >errant and come up frequently, you can disable this message by setting >"OutputTwoDIgitYearWarningMsg" in your sqr.ini file to false. > >- Mark > > > -----Original Message----- > From: Randy Kirkpatrick [mailto:randyk@MESSAGEMEDIA.COM] > Sent: Friday, July 07, 2000 5:38 PM > To: SQR-USERS@list.iex.net > Subject: SQR 7501 > > Can anyone tell me why I'm getting this error and how I can >fix it? > > (SQR 7501) Using YY edit mask from (DD-MON-YY) against >(2000) > > > Randy K. From owner-sqr-users@list.iex.net Fri Jul 7 20:09:09 2000 Date: Fri, 7 Jul 2000 17:18:20 -0500 From: Don Mellen Subject: Re: SQR 7501 On Fri, 7 Jul 2000, Randy Kirkpatrick wrote: > Can anyone tell me why I'm getting this error and how I can fix it? > (SQR 7501) Using YY edit mask from (DD-MON-YY) against (2000) Actually, it's a warning message (Y2K and all), not an error message. It can be disabled by setting "OutputTwoDigitYearWarningMsg=FALSE" in the [Default-Settings] section of your sqr.ini file. ----------------------------------------------------------------------- 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 Sat Jul 8 09:40:28 2000 Date: Sat, 8 Jul 2000 08:19:43 -0500 From: "Aguirre, Jose' A" Subject: Re: SQR 7501 Need to use YYYY. Thanks, José A. Aguirre -----Original Message----- From: Randy Kirkpatrick [mailto:randyk@MESSAGEMEDIA.COM] Sent: Friday, July 07, 2000 4:38 PM To: SQR-USERS@LIST.IEX.NET Subject: SQR 7501 Can anyone tell me why I'm getting this error and how I can fix it? (SQR 7501) Using YY edit mask from (DD-MON-YY) against (2000) Randy K. From owner-sqr-users@list.iex.net Thu Jul 6 20:17:38 2000 Date: Thu, 6 Jul 2000 17:09:31 -0700 From: Sayre John Subject: Scratch tables I am attempting to do a really complicated sales and inventory SQR on Informix. The sales table for a week is ~ 4.5 million rows. In order to ease the load on the box , I want to load "Scratch" tables. I'm just curious how SQR or informix deals with this. Does the table load into memory on the Unix box? Does it manipulate disk storage somehow? Are there any practical limitations as to the size? Thanks John Sayre From owner-sqr-users@list.iex.net Fri Jul 7 12:43:24 2000 Date: Fri, 7 Jul 2000 12:23:10 -0400 From: "Noonan, Marybeth" Subject: Process Scheduler ques else delete Hi, Environ: Oracle 8.05, Sqr 4.2.3,ptolls 7.54, psapps 7.52,2 tier,server unix I want to schedule 2 sqr programs to run automatically m-f at a designated time, there ae no control arguments that need to be entered. The first SQR selects rows from ()NON-PEOPLESOFT) Oracle Tables , the 2nd sqr inserts rows into a PSOFT Oracle table & must run after 1st prog. My question can we run an SQR within process scheduler that reads NON psoft tables followed by a 2nd prog that will use PSOFT tables? I just reread ptools process scheduler & am confused whether this is possible and/or difficult to setup? MaryBeth Noonan Financial Systems Ext. 57467 mnoonan@mfs.com From owner-sqr-users@list.iex.net Fri Jul 7 13:02:14 2000 Date: Fri, 7 Jul 2000 12:39:48 -0400 From: Pamela Lantzy Subject: Re: Process Scheduler ques else delete Yes you can, you must setup a process definition for the 1st SQR just like the 2nd SQR regardless of what database its running against. Then you can create a job definition that contains both process defintions. -----Original Message----- From: Noonan, Marybeth [mailto:MNoonan@MFS.COM] Sent: Friday, July 07, 2000 12:23 PM To: SQR-USERS@LIST.IEX.NET Subject: Process Scheduler ques else delete Hi, Environ: Oracle 8.05, Sqr 4.2.3,ptolls 7.54, psapps 7.52,2 tier,server unix I want to schedule 2 sqr programs to run automatically m-f at a designated time, there ae no control arguments that need to be entered. The first SQR selects rows from ()NON-PEOPLESOFT) Oracle Tables , the 2nd sqr inserts rows into a PSOFT Oracle table & must run after 1st prog. My question can we run an SQR within process scheduler that reads NON psoft tables followed by a 2nd prog that will use PSOFT tables? I just reread ptools process scheduler & am confused whether this is possible and/or difficult to setup? MaryBeth Noonan Financial Systems Ext. 57467 mnoonan@mfs.com From owner-sqr-users@list.iex.net Fri Jul 7 12:50:31 2000 Date: Fri, 7 Jul 2000 11:28:07 -0500 From: Robert Richley Subject: Printing from a Mac We are not having any success print SQR's from PeopleSoft on a Mac. Has anyone out there been able to do this? Thanks for your help. - Bob From owner-sqr-users@list.iex.net Fri Jul 7 13:02:14 2000 Date: Fri, 7 Jul 2000 12:51:16 -0400 From: Sam Spritzer Subject: Re: Printing from a Mac What exactly is the problem? Sam >>> rrichley@POPMAIL.COLUM.EDU 07/07 12:28 PM >>> We are not having any success print SQR's from PeopleSoft on a Mac. Has anyone out there been able to do this? Thanks for your help. - Bob From owner-sqr-users@list.iex.net Fri Jul 7 13:50:00 2000 Date: Fri, 7 Jul 2000 12:34:15 -0500 From: Robert Richley Subject: Re: Printing from a Mac The .lis file gets created but doesn't go to the printer. We don't know how to specify the printer in PeopleSoft so that the mac sends to a printer. On a PC we can specify LPT1 or a printer name on our server. - Bob Sam Spritzer wrote: > What exactly is the problem? > Sam > > >>> rrichley@POPMAIL.COLUM.EDU 07/07 12:28 PM >>> > We are not having any success print SQR's from PeopleSoft on a Mac. Has anyone out > there been able to do this? > > Thanks for your help. > > - Bob From owner-sqr-users@list.iex.net Fri Jul 7 12:55:18 2000 Date: Fri, 7 Jul 2000 09:38:42 -0700 From: Michael Prodor Subject: Error Message in SQR Hello SQRers. I am getting an error message in an SQR when I try to insert a char value into a table.

The table column that causes the problem is defined as Varchar2(47) and the data I am trying to place into it is a string.

Here is the error message:

(SQR 5528) ORACLE OEXEC error -1461 in cursor 3:
   ORA-01461: can bind a LONG value only for insert into a LONG column

Error on line 94:
   (SQR 3735) Could not execute SQL.


Here is the statement:

    94        begin-sql
    95        insert into qc_acc_cf values (
    96  !Add name and replace funky values  - MLP
    97  !               nvl($nmc_acct_id,0) ,NULL, nvl($nmc_srvc_provider,0),
    98                 nvl($nmc_acct_id,0),replace(replace(replace(rtrim($nmc_name),chr(9),''),chr(10),''),chr(13),''),
    99                 nvl($nmc_srvc_provider,0), $region, $state ,to_number(nvl($super_acct,0)) , $clean_yymm )
   100       end-sql
   101        show (10, 2 ) 'Record: ' #rec_count
   102            !--  nvl($nmc_name,' ')
   103    end-if


and  here is the data that causes the problem (obviously not a long):

SECURITY CONSULTANTS GRP1 (SYS4)

Finally, here is the statement where we assign a value to the variable (from a read buffer):

let $nmc_name = ltrim( rtrim( substr( $readbuf, 14,43),' '),' ')

The statement works fine when I insert NULL. Initially I was receiving the error and I thought it was due to embedded tabs / returns, so I am using  the REPLACE statement on the value.


Any help would be greatly appreciated.


--
Michael Prodor
<mprodor@qualcomm.com>

Qualcomm - QWBS Info Systems From owner-sqr-users@list.iex.net Fri Jul 7 13:23:07 2000 Date: Fri, 7 Jul 2000 12:50:44 -0400 From: Jerry Coleman Subject: Re: Error Message in SQR I wonder if there could be another binary value that's not being captured in your replace statements. Maybe isblank() would capture it. You might also inspect the data with an editor in hex mode. Michael Prodor cc: Sent by: Subject: Error Message in SQR "Discussion of SQR, Brio Technology's database reporting language" 07/07/00 12:38 PM Please respond to sqr-users Hello SQRers. I am getting an error message in an SQR when I try to insert a char value into a table. The table column that causes the problem is defined as Varchar2(47) and the data I am trying to place into it is a string. Here is the error message: (SQR 5528) ORACLE OEXEC error -1461 in cursor 3: ORA-01461: can bind a LONG value only for insert into a LONG column Error on line 94: (SQR 3735) Could not execute SQL. Here is the statement: 94 begin-sql 95 insert into qc_acc_cf values ( 96 !Add name and replace funky values - MLP 97 ! nvl($nmc_acct_id,0) ,NULL, nvl ($nmc_srvc_provider,0), 98 nvl($nmc_acct_id,0),replace(replace(replace(rtrim ($nmc_name),chr(9),''),chr(10),''),chr(13),''), 99 nvl($nmc_srvc_provider,0), $region, $state ,to_number(nvl($super_acct,0)) , $clean_yymm ) 100 end-sql 101 show (10, 2 ) 'Record: ' #rec_count 102 !-- nvl($nmc_name,' ') 103 end-if and here is the data that causes the problem (obviously not a long): SECURITY CONSULTANTS GRP1 (SYS4) Finally, here is the statement where we assign a value to the variable (from a read buffer): let $nmc_name = ltrim( rtrim( substr( $readbuf, 14,43),' '),' ') The statement works fine when I insert NULL. Initially I was receiving the error and I thought it was due to embedded tabs / returns, so I am using the REPLACE statement on the value. Any help would be greatly appreciated. -- Michael Prodor Qualcomm - QWBS Info Systems From owner-sqr-users@list.iex.net Mon Jul 10 11:14:33 2000 Date: Mon, 10 Jul 2000 11:37:12 -0300 From: Davi Cabral Subject: Contact ID: 122561 - Is it possible to call an SQR program from another SQR program? Dear Sirs, Is it possible to call an SQR program from another SQR program? I didn`t find anything about this on the manuals. Thank you, Davi Cabral From owner-sqr-users@list.iex.net Mon Jul 10 12:06:31 2000 Date: Mon, 10 Jul 2000 17:19:46 +0200 From: Franck Masson Subject: Re: Contact ID: 122561 - Is it possible to call an SQR program from another SQR program? This is a multi-part message in MIME format. --------------50803910693D69E94AA7DF85 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Yes, Use the call system command and example is provided in the faq.txt file. ---------------------------- Example code ends here ---------------------------- ================================================================================ Q: Can I use 'dynamic column names' in Begin-Select (versions prior to v3.0)? A: Yes, see following workaround. This SQR report will actually write another SQR code with column names supplied by the user and execute it. Note that in SQR Version 3.0, dynamic columns are directly supported. ---------------------------- Example code begins here -------------------------- begin-report do main end-report begin-procedure main move 'DEPTNO' to $col1 ! You might use INPUT here to prompt the user move 'ENAME' to $col2 ! to enter the column and table names instead. move 'EMP' to $tab move 'sqrout.sqr' to $sqrpgmnam let $syscmd = 'sqr '||$sqrpgmnam||' user/password' move 100 to #flatfileid open $sqrpgmnam as #flatfileid for-writing record=132 write #flatfileid from 'BEGIN-REPORT' write #flatfileid from ' DO MAIN' write #flatfileid from 'END-REPORT' write #flatfileid from 'BEGIN-PROCEDURE MAIN' write #flatfileid from 'BEGIN-SELECT' write #flatfileid from $col1 ' (+1,1)' write #flatfileid from $col2 ' (,30)' write #flatfileid from 'from ' $tab write #flatfileid from 'END-SELECT' write #flatfileid from 'END-PROCEDURE MAIN' close #flatfileid call system using $syscmd #status display 'Status of call is ' noline display #status end-procedure Davi Cabral wrote: > > Dear Sirs, > > Is it possible to call an SQR program from another SQR program? > I didn`t find anything about this on the manuals. > > Thank you, > > Davi Cabral --------------50803910693D69E94AA7DF85 Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Franck Masson Content-Disposition: attachment; filename="vcard.vcf" begin: vcard fn: Franck Masson n: ;Franck Masson org: Brio Technology EMEA adr;dom: Le capitol;;55 av. des champs Pierreux;Nanterre;92000;; email;internet: franck.masson@brio.com title: Sales Manager Northern Europe tel;work: 33 1 55 69 36 00 tel;fax: 33 1 47 25 02 59 tel;home: Mobile : 33 6 84 80 17 05 x-mozilla-cpt: ;0 x-mozilla-html: FALSE version: 2.1 end: vcard --------------50803910693D69E94AA7DF85-- From owner-sqr-users@list.iex.net Mon Jul 10 11:39:00 2000 Date: Mon, 10 Jul 2000 11:13:17 -0400 From: John Milardovic Subject: Re: Contact ID: 122561 - Is it possible to call an SQR program fr om another SQR program? Read up on "Call System Using" or search the archives. HTH John Milardovic > -----Original Message----- > From: Davi Cabral [SMTP:dcabral@RECSA.COM.BR] > Sent: Monday, July 10, 2000 10:37 AM > To: SQR-USERS@list.iex.net > Subject: Contact ID: 122561 - Is it possible to call an SQR program > from another SQR program? > > Dear Sirs, > > Is it possible to call an SQR program from another SQR program? > I didn`t find anything about this on the manuals. > > Thank you, > > Davi Cabral From owner-sqr-users@list.iex.net Mon Jul 10 12:56:33 2000 Date: Mon, 10 Jul 2000 12:01:50 -0400 From: "Stein, Steve" Subject: Tricky SQL I need to do a query where it takes the latest dated row from one table (PS_VOUCHER_LINE) and the latest dated row from an effective dated table (PS_CM_PRODCOST). It is probably very simple but I'm having no luck. Anyone can help? So far I used psquery tool to get this SQL: SELECT B.MERCHANDISE_AMT, B.INV_ITEM_ID, C.TL_COST, C.BUSINESS_UNIT, C.INV_ITEM_ID, TO_CHAR(A.INVOICE_DT,'YYYY-MM-DD') FROM PS_VOUCHER A, PS_VOUCHER_LINE B, PS_CM_PRODCOST C WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.VOUCHER_ID = B.VOUCHER_ID AND C.EFFDT = (SELECT MAX(C_ED.EFFDT) FROM PS_CM_PRODCOST C_ED WHERE C.BUSINESS_UNIT = C_ED.BUSINESS_UNIT AND C.INV_ITEM_ID = C_ED.INV_ITEM_ID AND C.CONFIG_CODE = C_ED.CONFIG_CODE AND C_ED.EFFDT <= SYSDATE) AND C.INV_ITEM_ID = B.INV_ITEM_ID AND EXISTS (SELECT MAX( D.INVOICE_DT) FROM PS_VOUCHER D, PS_VOUCHER_LINE E WHERE D.BUSINESS_UNIT = E.BUSINESS_UNIT AND D.VOUCHER_ID = E.VOUCHER_ID) AND B.INV_ITEM_ID = 'A039901100' but it was returning all the PS_VOUCHER_LINE rows 11.52 A039901100 10.0000 I0005 A039901100 1999-08-26 17.28 A039901100 10.0000 I0005 A039901100 1999-10-06 12.96 A039901100 10.0000 I0005 A039901100 1999-10-21 23.04 A039901100 10.0000 I0005 A039901100 1999-12-01 17.28 A039901100 10.0000 I0005 A039901100 1999-12-10 17.28 A039901100 10.0000 I0005 A039901100 1999-12-10. From owner-sqr-users@list.iex.net Mon Jul 10 13:14:04 2000 Date: Mon, 10 Jul 2000 11:23:54 -0500 From: "Aguirre, Jose' A" Subject: Re: Tricky SQL select FIELD from TABLE where FIELD A= FIELD B AND L.EFFDT = (select max(EFFDT) from PS_VENDOR_LOC l2 where l2.VENDOR_ID = L.VENDOR_ID and l2.VNDR_LOC = L.VNDR_LOC and l2.EFFDT <= GETDATE()) José A. Aguirre -----Original Message----- From: Stein, Steve [mailto:Steve.Stein@ISACS.COM] Sent: Monday, July 10, 2000 11:02 AM To: SQR-USERS@LIST.IEX.NET Subject: Tricky SQL I need to do a query where it takes the latest dated row from one table (PS_VOUCHER_LINE) and the latest dated row from an effective dated table (PS_CM_PRODCOST). It is probably very simple but I'm having no luck. Anyone can help? So far I used psquery tool to get this SQL: SELECT B.MERCHANDISE_AMT, B.INV_ITEM_ID, C.TL_COST, C.BUSINESS_UNIT, C.INV_ITEM_ID, TO_CHAR(A.INVOICE_DT,'YYYY-MM-DD') FROM PS_VOUCHER A, PS_VOUCHER_LINE B, PS_CM_PRODCOST C WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.VOUCHER_ID = B.VOUCHER_ID AND C.EFFDT = (SELECT MAX(C_ED.EFFDT) FROM PS_CM_PRODCOST C_ED WHERE C.BUSINESS_UNIT = C_ED.BUSINESS_UNIT AND C.INV_ITEM_ID = C_ED.INV_ITEM_ID AND C.CONFIG_CODE = C_ED.CONFIG_CODE AND C_ED.EFFDT <= SYSDATE) AND C.INV_ITEM_ID = B.INV_ITEM_ID AND EXISTS (SELECT MAX( D.INVOICE_DT) FROM PS_VOUCHER D, PS_VOUCHER_LINE E WHERE D.BUSINESS_UNIT = E.BUSINESS_UNIT AND D.VOUCHER_ID = E.VOUCHER_ID) AND B.INV_ITEM_ID = 'A039901100' but it was returning all the PS_VOUCHER_LINE rows 11.52 A039901100 10.0000 I0005 A039901100 1999-08-26 17.28 A039901100 10.0000 I0005 A039901100 1999-10-06 12.96 A039901100 10.0000 I0005 A039901100 1999-10-21 23.04 A039901100 10.0000 I0005 A039901100 1999-12-01 17.28 A039901100 10.0000 I0005 A039901100 1999-12-10 17.28 A039901100 10.0000 I0005 A039901100 1999-12-10. From owner-sqr-users@list.iex.net Mon Jul 10 18:49:41 2000 Date: Mon, 10 Jul 2000 15:31:24 -0700 From: Bob Lang Subject: Re: Tricky SQL Steve. Check the format of Sysdate against the format of C_ED.EFFDT. That might be where the problem lies. Everything else looks ok to me. By the way, your name seems familiar to me, do I know you? Access Number: (877) 453-8931 From owner-sqr-users@list.iex.net Tue Jul 11 05:00:31 2000 Date: Tue, 11 Jul 2000 02:16:47 -0700 From: Arjan Hoornstra Subject: Re: Tricky SQL Steve, The exists sub-query is not correlated. The tables D and E are not used in another part of the query (each aliassed table is another one). There must lie your problem... I think the last subquery must be instead of: > AND EXISTS (SELECT MAX( D.INVOICE_DT) you need: > AND A.INVOICE_DT = (SELECT MAX( D.INVOICE_DT) Arjan --- "Stein, Steve" wrote: > I need to do a query where it takes the latest dated > row from one table > (PS_VOUCHER_LINE) and the latest dated row from an > effective dated table > (PS_CM_PRODCOST). It is probably very simple but > I'm having no luck. > Anyone can help? > > So far I used psquery tool to get this SQL: > > SELECT B.MERCHANDISE_AMT, B.INV_ITEM_ID, C.TL_COST, > C.BUSINESS_UNIT, > C.INV_ITEM_ID, TO_CHAR(A.INVOICE_DT,'YYYY-MM-DD') > FROM PS_VOUCHER A, PS_VOUCHER_LINE B, > PS_CM_PRODCOST C > WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT > AND A.VOUCHER_ID = B.VOUCHER_ID > AND C.EFFDT = > (SELECT MAX(C_ED.EFFDT) FROM PS_CM_PRODCOST > C_ED > WHERE C.BUSINESS_UNIT = C_ED.BUSINESS_UNIT > AND C.INV_ITEM_ID = C_ED.INV_ITEM_ID > AND C.CONFIG_CODE = C_ED.CONFIG_CODE > AND C_ED.EFFDT <= SYSDATE) > AND C.INV_ITEM_ID = B.INV_ITEM_ID > AND EXISTS (SELECT MAX( D.INVOICE_DT) > FROM PS_VOUCHER D, PS_VOUCHER_LINE E > WHERE D.BUSINESS_UNIT = E.BUSINESS_UNIT > AND D.VOUCHER_ID = E.VOUCHER_ID) > AND B.INV_ITEM_ID = 'A039901100' > > but it was returning all the PS_VOUCHER_LINE rows > > 11.52 A039901100 > 10.0000 I0005 > A039901100 1999-08-26 > 17.28 A039901100 > 10.0000 I0005 > A039901100 1999-10-06 > 12.96 A039901100 > 10.0000 I0005 > A039901100 1999-10-21 > 23.04 A039901100 > 10.0000 I0005 > A039901100 1999-12-01 > 17.28 A039901100 > 10.0000 I0005 > A039901100 1999-12-10 > 17.28 A039901100 > 10.0000 I0005 > A039901100 1999-12-10. __________________________________________________ Do You Yahoo!? Get Yahoo! Mail – Free email you can access from anywhere! http://mail.yahoo.com/ From owner-sqr-users@list.iex.net Mon Jul 10 14:26:26 2000 Date: Mon, 10 Jul 2000 17:53:52 GMT From: Ragu Sadasivam Subject: Page breaks in HTML Hi Everyone, I have an sqr that generates a report in HTML format using the -PRINTER:HT feature. * Even though there are page breaks in the output, when I print from within IE it ignores the breaks. In the sense, if one page has 10 lines and so does the next page, it prints both on one page with the break. How do I get IE to recognize the breaks? Appreciate your help. Thanks. LKR ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From owner-sqr-users@list.iex.net Mon Jul 10 18:29:23 2000 Date: Mon, 10 Jul 2000 17:06:54 +0100 From: Enrique =?iso-8859-1?Q?Mu=F1oz?= Subject: Re: Page breaks in HTML You can do this: -printer:ep Now, This flag you cag get html file and pdf file... And the breaks Ragu Sadasivam wrote: > Hi Everyone, > > I have an sqr that generates a report in HTML format using the -PRINTER:HT > feature. > > * Even though there are page breaks in the output, when I print from within > IE it ignores the breaks. In the sense, if one page has 10 lines and so > does the next page, it prints both on one page with the break. How do I get > IE to recognize the breaks? > > Appreciate your help. > > Thanks. > > LKR > > ________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From owner-sqr-users@list.iex.net Wed Jul 12 14:05:56 2000 Date: Wed, 12 Jul 2000 17:40:07 GMT From: Ragu Sadasivam Subject: Re: Page breaks in HTML I tried this and ended with an error for the PDF file. I'll try again. Does anyone know what triggers the FONT BASESIZE in the HTML document. My sqr generates multiple reports and on every report the first page the headings and the columns are off. It is introducing a FONT BASESIZE 4 eventhough I have reduced it to 2. But then there is FONT size 2 and the output is ok. Any thoughts on this one.... >From: Enrique Muñoz >Reply-To: sqr-users@list.iex.net >To: SQR-USERS@list.iex.net >Subject: Re: Page breaks in HTML >Date: Mon, 10 Jul 2000 17:06:54 +0100 > >You can do this: > >-printer:ep > >Now, This flag you cag get html file and pdf file... And the breaks > >Ragu Sadasivam wrote: > > > Hi Everyone, > > > > I have an sqr that generates a report in HTML format using the >-PRINTER:HT > > feature. > > > > * Even though there are page breaks in the output, when I print from >within > > IE it ignores the breaks. In the sense, if one page has 10 lines and so > > does the next page, it prints both on one page with the break. How do I >get > > IE to recognize the breaks? > > > > Appreciate your help. > > > > Thanks. > > > > LKR > > > > ________________________________________________________________________ > > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From owner-sqr-users@list.iex.net Wed Jul 12 15:35:26 2000 Date: Wed, 12 Jul 2000 15:11:42 -0400 From: "Dombrowski, Dave F" Subject: Re: Page breaks in HTML I could be wrong, but I've never heard of page breaks in HTML. Don't confuse separate web pages from a single web page with page breaking. Using SQR printer options will yield separate web pages. A three page 'document' is actually three separate web pages (HTML files). A browser has no capabilities to interpret printer commands like page breaks, carriage returns or tabbing. How could it? Even if you 'space out' things so that a page 'appears' to break where intended, what would happen when the user alters the text size through the browser? I'm not talking about .PDF or .DOC or .RPT files, just .HTM/.HTML files. The advantage you gain with straight HTML is that you are truly browser independent - no third party server software or browser plugins needed - and that you can do other things like edit data and more easily pull data dynamically. The advantage you gain from a .PDF or other file is full control over formatting. In the end, it's a matter of knowing who your clients are and what software they have. For 'pure' internet apps, you usually end up using server-side processing with as little JavaScript as possible and send out straight HTML to the client. For reporting purposes, use HTML tables to format things as best as possible. If you get concerned with page breks, split the output into separate web pages and provide navigation to move from one to another. Finally, if you absolutely must use something like .PDF files, always always always provide a prominent link for users to download the software needed to open it. -----Original Message----- From: Ragu Sadasivam [mailto:sathyamangalam@HOTMAIL.COM] Sent: Wednesday, July 12, 2000 1:40 PM To: SQR-USERS@list.iex.net Subject: Re: Page breaks in HTML I tried this and ended with an error for the PDF file. I'll try again. Does anyone know what triggers the FONT BASESIZE in the HTML document. My sqr generates multiple reports and on every report the first page the headings and the columns are off. It is introducing a FONT BASESIZE 4 eventhough I have reduced it to 2. But then there is FONT size 2 and the output is ok. Any thoughts on this one.... >From: Enrique Muñoz >Reply-To: sqr-users@list.iex.net >To: SQR-USERS@list.iex.net >Subject: Re: Page breaks in HTML >Date: Mon, 10 Jul 2000 17:06:54 +0100 > >You can do this: > >-printer:ep > >Now, This flag you cag get html file and pdf file... And the breaks > >Ragu Sadasivam wrote: > > > Hi Everyone, > > > > I have an sqr that generates a report in HTML format using the >-PRINTER:HT > > feature. > > > > * Even though there are page breaks in the output, when I print from >within > > IE it ignores the breaks. In the sense, if one page has 10 lines and so > > does the next page, it prints both on one page with the break. How do I >get > > IE to recognize the breaks? > > > > Appreciate your help. > > > > Thanks. > > > > LKR > > > > ________________________________________________________________________ > > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From owner-sqr-users@list.iex.net Wed Jul 12 16:49:12 2000 Date: Wed, 12 Jul 2000 20:28:21 GMT From: Ragu Sadasivam Subject: Re: Page breaks in HTML The reason I am even concerned about page breaks is b'cos, the report originally was designed that way per customer's request. Right now, it can be viewed with the SQR Viewer and printed. [It is a lengthy document - 1800 pages]. The reason we want it on the web is for distribution and also the licensing issues with SQR Viewer. Only y'day I found out about the page breaks not being possible in HTML. If people are looking to put their reports out in the web, for the ease of distribution and viewing [since IE or Netscape is on everyone's desktop], should it not be able to recognize page breaks. What is the use of publishing these reports online and go through the trouble of trying to fit them logically, if HTML is going to do its own thing? Any thoughts on the FONT BASESIZE [mentioned below]- what triggers this? Appreciate your help... >From: "Dombrowski, Dave F" >Reply-To: sqr-users@list.iex.net >To: SQR-USERS@list.iex.net >Subject: Re: Page breaks in HTML >Date: Wed, 12 Jul 2000 15:11:42 -0400 > >I could be wrong, but I've never heard of page breaks in HTML. Don't >confuse >separate web pages from a single web page with page breaking. Using SQR >printer options will yield separate web pages. A three page 'document' is >actually three separate web pages (HTML files). A browser has no >capabilities to interpret printer commands like page breaks, carriage >returns or tabbing. How could it? Even if you 'space out' things so that a >page 'appears' to break where intended, what would happen when the user >alters the text size through the browser? > >I'm not talking about .PDF or .DOC or .RPT files, just .HTM/.HTML files. >The >advantage you gain with straight HTML is that you are truly browser >independent - no third party server software or browser plugins needed - >and >that you can do other things like edit data and more easily pull data >dynamically. The advantage you gain from a .PDF or other file is full >control over formatting. > >In the end, it's a matter of knowing who your clients are and what software >they have. For 'pure' internet apps, you usually end up using server-side >processing with as little JavaScript as possible and send out straight HTML >to the client. For reporting purposes, use HTML tables to format things as >best as possible. If you get concerned with page breks, split the output >into separate web pages and provide navigation to move from one to another. >Finally, if you absolutely must use something like .PDF files, always >always >always provide a prominent link for users to download the software needed >to >open it. > >-----Original Message----- >From: Ragu Sadasivam [mailto:sathyamangalam@HOTMAIL.COM] >Sent: Wednesday, July 12, 2000 1:40 PM >To: SQR-USERS@list.iex.net >Subject: Re: Page breaks in HTML > > >I tried this and ended with an error for the PDF file. I'll try again. > >Does anyone know what triggers the FONT BASESIZE in the HTML document. My >sqr generates multiple reports and on every report the first page the >headings and the columns are off. It is introducing a FONT BASESIZE 4 >eventhough I have reduced it to 2. But then there is FONT size 2 and the >output is ok. > >Any thoughts on this one.... > > > >From: Enrique Muñoz > >Reply-To: sqr-users@list.iex.net > >To: SQR-USERS@list.iex.net > >Subject: Re: Page breaks in HTML > >Date: Mon, 10 Jul 2000 17:06:54 +0100 > > > >You can do this: > > > >-printer:ep > > > >Now, This flag you cag get html file and pdf file... And the breaks > > > >Ragu Sadasivam wrote: > > > > > Hi Everyone, > > > > > > I have an sqr that generates a report in HTML format using the > >-PRINTER:HT > > > feature. > > > > > > * Even though there are page breaks in the output, when I print from > >within > > > IE it ignores the breaks. In the sense, if one page has 10 lines and >so > > > does the next page, it prints both on one page with the break. How do >I > >get > > > IE to recognize the breaks? > > > > > > Appreciate your help. > > > > > > Thanks. > > > > > > LKR > > > > > > >________________________________________________________________________ > > > Get Your Private, Free E-mail from MSN Hotmail at >http://www.hotmail.com > >________________________________________________________________________ >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From owner-sqr-users@list.iex.net Wed Jul 12 18:39:52 2000 Date: Wed, 12 Jul 2000 17:23:07 -0500 From: Don Mellen Subject: Re: Page breaks in HTML On Wed, 12 Jul 2000, Ragu Sadasivam wrote: > The reason I am even concerned about page breaks is b'cos, the report > originally was designed that way per customer's request. Right now, it can > be viewed with the SQR Viewer and printed. [It is a lengthy document - 1800 > pages]. The reason we want it on the web is for distribution and also the > licensing issues with SQR Viewer. If you're wanting to create seperate HTML files for an 1800 page report, (which most browsers would take a while with), check out the -Burst command line flag (discussions of which are in the archives at www.scrug.com and in the books). It will make many HTML files instead of one based on various criteria. ----------------------------------------------------------------------- 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 Jul 12 21:49:54 2000 Date: Thu, 13 Jul 2000 13:24:11 +1200 From: Anthony J Vesey Subject: Re: Page breaks in HTML Ragu, Page breaks are possible in HTML, although not necessarily 'on-screen' breaks. HTML is a structural markup language, defining elements (i.e this is a paragraph, a title etc). It is not designed for layout (i.e. page break here). The WWW consortium who define HTML and like standards have developed the CSS (Cascading Style Sheets) stanard for this very purpose. It allows you to specify how elements on a page (of HTML) should be laid out, what colour etc. CSS2 is the latest recommendation and includes the ability to target output for different media. Therefore is is possible to produce an HTML file that looks like one page onscreen and when printed has the authors defined page breaks. To use these elements with SQR would require more effort however. And you would need to make sure that the customers browsers supported the standard. Sadly many current generation browsers do not support the standard properly, if only partially, and many are buggy to boot. And purists will argue that you can't force people to use a particular browser just to get page breaks. In summary , you might be able to implement page breaks but the results will be browser dependent anyway. The relevant standards can be found on the W3C page http://www.w3c.org http://www.w3.org/Style/CSS/ for Cascading Style Sheets and http://www.w3.org/MarkUp/ for HTML Hope this helps Anthony Vesey -----Original Message----- From: Discussion of SQR, Brio Technology's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Ragu Sadasivam Sent: Thursday, 13 July 2000 08:28 To: SQR-USERS@list.iex.net Subject: Re: Page breaks in HTML The reason I am even concerned about page breaks is b'cos, the report originally was designed that way per customer's request. Right now, it can be viewed with the SQR Viewer and printed. [It is a lengthy document - 1800 pages]. The reason we want it on the web is for distribution and also the licensing issues with SQR Viewer. Only y'day I found out about the page breaks not being possible in HTML. If people are looking to put their reports out in the web, for the ease of distribution and viewing [since IE or Netscape is on everyone's desktop], should it not be able to recognize page breaks. What is the use of publishing these reports online and go through the trouble of trying to fit them logically, if HTML is going to do its own thing? Any thoughts on the FONT BASESIZE [mentioned below]- what triggers this? Appreciate your help... >From: "Dombrowski, Dave F" >Reply-To: sqr-users@list.iex.net >To: SQR-USERS@list.iex.net >Subject: Re: Page breaks in HTML >Date: Wed, 12 Jul 2000 15:11:42 -0400 > >I could be wrong, but I've never heard of page breaks in HTML. Don't >confuse >separate web pages from a single web page with page breaking. Using SQR >printer options will yield separate web pages. A three page 'document' is >actually three separate web pages (HTML files). A browser has no >capabilities to interpret printer commands like page breaks, carriage >returns or tabbing. How could it? Even if you 'space out' things so that a >page 'appears' to break where intended, what would happen when the user >alters the text size through the browser? > >I'm not talking about .PDF or .DOC or .RPT files, just .HTM/.HTML files. >The >advantage you gain with straight HTML is that you are truly browser >independent - no third party server software or browser plugins needed - >and >that you can do other things like edit data and more easily pull data >dynamically. The advantage you gain from a .PDF or other file is full >control over formatting. > >In the end, it's a matter of knowing who your clients are and what software >they have. For 'pure' internet apps, you usually end up using server-side >processing with as little JavaScript as possible and send out straight HTML >to the client. For reporting purposes, use HTML tables to format things as >best as possible. If you get concerned with page breks, split the output >into separate web pages and provide navigation to move from one to another. >Finally, if you absolutely must use something like .PDF files, always >always >always provide a prominent link for users to download the software needed >to >open it. > >-----Original Message----- >From: Ragu Sadasivam [mailto:sathyamangalam@HOTMAIL.COM] >Sent: Wednesday, July 12, 2000 1:40 PM >To: SQR-USERS@list.iex.net >Subject: Re: Page breaks in HTML > > >I tried this and ended with an error for the PDF file. I'll try again. > >Does anyone know what triggers the FONT BASESIZE in the HTML document. My >sqr generates multiple reports and on every report the first page the >headings and the columns are off. It is introducing a FONT BASESIZE 4 >eventhough I have reduced it to 2. But then there is FONT size 2 and the >output is ok. > >Any thoughts on this one.... > > > >From: Enrique Muñoz > >Reply-To: sqr-users@list.iex.net > >To: SQR-USERS@list.iex.net > >Subject: Re: Page breaks in HTML > >Date: Mon, 10 Jul 2000 17:06:54 +0100 > > > >You can do this: > > > >-printer:ep > > > >Now, This flag you cag get html file and pdf file... And the breaks > > > >Ragu Sadasivam wrote: > > > > > Hi Everyone, > > > > > > I have an sqr that generates a report in HTML format using the > >-PRINTER:HT > > > feature. > > > > > > * Even though there are page breaks in the output, when I print from > >within > > > IE it ignores the breaks. In the sense, if one page has 10 lines and >so > > > does the next page, it prints both on one page with the break. How do >I > >get > > > IE to recognize the breaks? > > > > > > Appreciate your help. > > > > > > Thanks. > > > > > > LKR > > > > > > >________________________________________________________________________ > > > Get Your Private, Free E-mail from MSN Hotmail at >http://www.hotmail.com > >________________________________________________________________________ >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From owner-sqr-users@list.iex.net Wed Jul 12 16:58:37 2000 Date: Wed, 12 Jul 2000 16:37:07 -0400 From: "Dray, Adam" Subject: Re: Page breaks in HTML Ragu Sadasivam [mailto:sathyamangalam@HOTMAIL.COM] said: > The reason I am even concerned about page breaks is b'cos, the report > originally was designed that way per customer's request. Right now, it can > be viewed with the SQR Viewer and printed. [It is a lengthy document - 1800 > pages]. The reason we want it on the web is for distribution and also the > licensing issues with SQR Viewer. Only y'day I found out about the page > breaks not being possible in HTML. If people are looking to put their > reports out in the web, for the ease of distribution and viewing [since IE > or Netscape is on everyone's desktop], should it not be able to recognize > page breaks. What is the use of publishing these reports online and go > through the trouble of trying to fit them logically, if HTML is going to do > its own thing? The web is a browser display medium, not a print medium. The concept of "pages" (a la pieces of paper) with page breaks does not exist in HTML. Those who require fine web-to-paper control tend to use Adobe Acrobat (PDF) format files. With PDF ("Portable Display Format", I believe), you get the page-level control you need, plus fine control over fonts and text placement. Doesn't SQR offer PDF output? Adam From owner-sqr-users@list.iex.net Wed Jul 12 17:34:44 2000 Date: Wed, 12 Jul 2000 17:12:35 -0400 From: "Dombrowski, Dave F" Subject: Re: Page breaks in HTML I understand your thoughts regarding page breaks. I didn't mean to slam you - hope you didn't take it that way. The internet is the most generic platform ever devised. HTML is the most generic language ever devised (if you want to call markup commands a language - but that's a debate for another time) that is controlled by the W3C. The idea was to be generic. To be platform independent. There are a couple of concepts to grasp any time you develop for the web. These concepts are inherently different than Windows programming. First, understand what asynchronous modes of communicating between the client and server mean. Understand how precious bandwidth is. How to provide as much _perceived_ interaction and validation as possible while actually coding as little _actual_ interaction (read:bandwidth) as humanly possible. Second, understand that pure _internet_ (as opposed to _intranet_) apps have very little demands on any client. No software platforms, no minimum bandwidths, no browser versions. John Doe on his Mac may browse from NYC. Jane Doe with her Pentium III and IE5.5 may browse from Asia. Your boss may want to pull of info from his Palm Pilot! Pure internet apps try to work to the largest possible audience. Like someone just posted, if you desire good printing capabilities use a third party like Adobe/PDF or Crystal/RPT. Just don't expect to do it through HTML. As for BASESIZE... that may be an SQR option that you can change somehow. I'm new to SQR (as opposed to VB/COBOL/ASP/HTML) and can't help you. I was only trying to explain some background regarding some things everyone encounters when starting to program for browsers. Good luck! -----Original Message----- From: Ragu Sadasivam [mailto:sathyamangalam@HOTMAIL.COM] Sent: Wednesday, July 12, 2000 4:28 PM To: SQR-USERS@list.iex.net Subject: Re: Page breaks in HTML The reason I am even concerned about page breaks is b'cos, the report originally was designed that way per customer's request. Right now, it can be viewed with the SQR Viewer and printed. [It is a lengthy document - 1800 pages]. The reason we want it on the web is for distribution and also the licensing issues with SQR Viewer. Only y'day I found out about the page breaks not being possible in HTML. If people are looking to put their reports out in the web, for the ease of distribution and viewing [since IE or Netscape is on everyone's desktop], should it not be able to recognize page breaks. What is the use of publishing these reports online and go through the trouble of trying to fit them logically, if HTML is going to do its own thing? Any thoughts on the FONT BASESIZE [mentioned below]- what triggers this? Appreciate your help... >From: "Dombrowski, Dave F" >Reply-To: sqr-users@list.iex.net >To: SQR-USERS@list.iex.net >Subject: Re: Page breaks in HTML >Date: Wed, 12 Jul 2000 15:11:42 -0400 > >I could be wrong, but I've never heard of page breaks in HTML. Don't >confuse >separate web pages from a single web page with page breaking. Using SQR >printer options will yield separate web pages. A three page 'document' is >actually three separate web pages (HTML files). A browser has no >capabilities to interpret printer commands like page breaks, carriage >returns or tabbing. How could it? Even if you 'space out' things so that a >page 'appears' to break where intended, what would happen when the user >alters the text size through the browser? > >I'm not talking about .PDF or .DOC or .RPT files, just .HTM/.HTML files. >The >advantage you gain with straight HTML is that you are truly browser >independent - no third party server software or browser plugins needed - >and >that you can do other things like edit data and more easily pull data >dynamically. The advantage you gain from a .PDF or other file is full >control over formatting. > >In the end, it's a matter of knowing who your clients are and what software >they have. For 'pure' internet apps, you usually end up using server-side >processing with as little JavaScript as possible and send out straight HTML >to the client. For reporting purposes, use HTML tables to format things as >best as possible. If you get concerned with page breks, split the output >into separate web pages and provide navigation to move from one to another. >Finally, if you absolutely must use something like .PDF files, always >always >always provide a prominent link for users to download the software needed >to >open it. > >-----Original Message----- >From: Ragu Sadasivam [mailto:sathyamangalam@HOTMAIL.COM] >Sent: Wednesday, July 12, 2000 1:40 PM >To: SQR-USERS@list.iex.net >Subject: Re: Page breaks in HTML > > >I tried this and ended with an error for the PDF file. I'll try again. > >Does anyone know what triggers the FONT BASESIZE in the HTML document. My >sqr generates multiple reports and on every report the first page the >headings and the columns are off. It is introducing a FONT BASESIZE 4 >eventhough I have reduced it to 2. But then there is FONT size 2 and the >output is ok. > >Any thoughts on this one.... > > > >From: Enrique Muñoz > >Reply-To: sqr-users@list.iex.net > >To: SQR-USERS@list.iex.net > >Subject: Re: Page breaks in HTML > >Date: Mon, 10 Jul 2000 17:06:54 +0100 > > > >You can do this: > > > >-printer:ep > > > >Now, This flag you cag get html file and pdf file... And the breaks > > > >Ragu Sadasivam wrote: > > > > > Hi Everyone, > > > > > > I have an sqr that generates a report in HTML format using the > >-PRINTER:HT > > > feature. > > > > > > * Even though there are page breaks in the output, when I print from > >within > > > IE it ignores the breaks. In the sense, if one page has 10 lines and >so > > > does the next page, it prints both on one page with the break. How do >I > >get > > > IE to recognize the breaks? > > > > > > Appreciate your help. > > > > > > Thanks. > > > > > > LKR > > > > > > >________________________________________________________________________ > > > Get Your Private, Free E-mail from MSN Hotmail at >http://www.hotmail.com > >________________________________________________________________________ >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From owner-sqr-users@list.iex.net Thu Jul 13 11:04:42 2000 Date: Thu, 13 Jul 2000 11:41:33 -0300 From: Cherno Jagne Subject: Re: Page breaks in HTML The PRINTER:EH (Enhanced HTML) command line flag uses CSS to ensure page-breaks when the HTML output is printed, at least from MSIE40 and with SQR432. This format however seems to do away with the navigation buttons, in favor of empty tables as vertical spacers within the viewed HTML doc. Give it a shot, Ragu, if your SQR version supports it--it may be just what you're looking for. Cherno. >>> Anthony J Vesey 07/12 10:24 PM >>> Ragu, Page breaks are possible in HTML, although not necessarily 'on-screen' breaks. HTML is a structural markup language, defining elements (i.e this is a paragraph, a title etc). It is not designed for layout (i.e. page break here). The WWW consortium who define HTML and like standards have developed the CSS (Cascading Style Sheets) stanard for this very purpose. It allows you to specify how elements on a page (of HTML) should be laid out, what colour etc. CSS2 is the latest recommendation and includes the ability to target output for different media. Therefore is is possible to produce an HTML file that looks like one page onscreen and when printed has the authors defined page breaks. To use these elements with SQR would require more effort however. And you would need to make sure that the customers browsers supported the standard. Sadly many current generation browsers do not support the standard properly, if only partially, and many are buggy to boot. And purists will argue that you can't force people to use a particular browser just to get page breaks. In summary , you might be able to implement page breaks but the results will be browser dependent anyway. The relevant standards can be found on the W3C page http://www.w3c.org http://www.w3.org/Style/CSS/ for Cascading Style Sheets and http://www.w3.org/MarkUp/ for HTML Hope this helps Anthony Vesey -----Original Message----- From: Discussion of SQR, Brio Technology's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Ragu Sadasivam Sent: Thursday, 13 July 2000 08:28 To: SQR-USERS@list.iex.net Subject: Re: Page breaks in HTML The reason I am even concerned about page breaks is b'cos, the report originally was designed that way per customer's request. Right now, it can be viewed with the SQR Viewer and printed. [It is a lengthy document - 1800 pages]. The reason we want it on the web is for distribution and also the licensing issues with SQR Viewer. Only y'day I found out about the page breaks not being possible in HTML. If people are looking to put their reports out in the web, for the ease of distribution and viewing [since IE or Netscape is on everyone's desktop], should it not be able to recognize page breaks. What is the use of publishing these reports online and go through the trouble of trying to fit them logically, if HTML is going to do its own thing? Any thoughts on the FONT BASESIZE [mentioned below]- what triggers this? Appreciate your help... >From: "Dombrowski, Dave F" >Reply-To: sqr-users@list.iex.net >To: SQR-USERS@list.iex.net >Subject: Re: Page breaks in HTML >Date: Wed, 12 Jul 2000 15:11:42 -0400 > >I could be wrong, but I've never heard of page breaks in HTML. Don't >confuse >separate web pages from a single web page with page breaking. Using SQR >printer options will yield separate web pages. A three page 'document' is >actually three separate web pages (HTML files). A browser has no >capabilities to interpret printer commands like page breaks, carriage >returns or tabbing. How could it? Even if you 'space out' things so that a >page 'appears' to break where intended, what would happen when the user >alters the text size through the browser? > >I'm not talking about .PDF or .DOC or .RPT files, just .HTM/.HTML files. >The >advantage you gain with straight HTML is that you are truly browser >independent - no third party server software or browser plugins needed - >and >that you can do other things like edit data and more easily pull data >dynamically. The advantage you gain from a .PDF or other file is full >control over formatting. > >In the end, it's a matter of knowing who your clients are and what software >they have. For 'pure' internet apps, you usually end up using server-side >processing with as little JavaScript as possible and send out straight HTML >to the client. For reporting purposes, use HTML tables to format things as >best as possible. If you get concerned with page breks, split the output >into separate web pages and provide navigation to move from one to another. >Finally, if you absolutely must use something like .PDF files, always >always >always provide a prominent link for users to download the software needed >to >open it. > >-----Original Message----- >From: Ragu Sadasivam [mailto:sathyamangalam@HOTMAIL.COM] >Sent: Wednesday, July 12, 2000 1:40 PM >To: SQR-USERS@list.iex.net >Subject: Re: Page breaks in HTML > > >I tried this and ended with an error for the PDF file. I'll try again. > >Does anyone know what triggers the FONT BASESIZE in the HTML document. My >sqr generates multiple reports and on every report the first page the >headings and the columns are off. It is introducing a FONT BASESIZE 4 >eventhough I have reduced it to 2. But then there is FONT size 2 and the >output is ok. > >Any thoughts on this one.... > > > >From: Enrique Muñoz > >Reply-To: sqr-users@list.iex.net > >To: SQR-USERS@list.iex.net > >Subject: Re: Page breaks in HTML > >Date: Mon, 10 Jul 2000 17:06:54 +0100 > > > >You can do this: > > > >-printer:ep > > > >Now, This flag you cag get html file and pdf file... And the breaks > > > >Ragu Sadasivam wrote: > > > > > Hi Everyone, > > > > > > I have an sqr that generates a report in HTML format using the > >-PRINTER:HT > > > feature. > > > > > > * Even though there are page breaks in the output, when I print from > >within > > > IE it ignores the breaks. In the sense, if one page has 10 lines and >so > > > does the next page, it prints both on one page with the break. How do >I > >get > > > IE to recognize the breaks? > > > > > > Appreciate your help. > > > > > > Thanks. > > > > > > LKR > > > > > > >________________________________________________________________________ > > > Get Your Private, Free E-mail from MSN Hotmail at >http://www.hotmail.com > >________________________________________________________________________ >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From owner-sqr-users@list.iex.net Wed Jul 19 13:51:34 2000 Date: Wed, 19 Jul 2000 17:15:46 GMT From: Ragu Sadasivam Subject: Re: Page breaks in HTML Hi Everyone: Thanks to all who shared their thoughts on this subject. For now we decided to handle the page breaks by splitting the files. . But I did find a product HTML Scissors [www.faico.net] that introduces page breaks that will be recognized by the printer. Just has registration fees. On the font size that was being introduced even though I did an alter printer, the problem was an SQC which was initializing the printer [USEPRNTR.SQC and Do Init_Printer]. After I removed these two, the output looks just fine. Thanks again!!! >From: Cherno Jagne >Reply-To: sqr-users@list.iex.net >To: SQR-USERS@list.iex.net >Subject: Re: Page breaks in HTML >Date: Thu, 13 Jul 2000 11:41:33 -0300 > >The PRINTER:EH (Enhanced HTML) command line flag >uses CSS to ensure page-breaks when the HTML output >is printed, at least from MSIE40 and with SQR432. This >format however seems to do away with the navigation >buttons, in favor of empty tables as vertical spacers within >the viewed HTML doc. Give it a shot, Ragu, if your SQR >version supports it--it may be just what you're looking for. > >Cherno. > > > >>> Anthony J Vesey 07/12 10:24 PM >>> >Ragu, > >Page breaks are possible in HTML, although not necessarily 'on-screen' >breaks. HTML is a structural markup language, defining elements (i.e >this is >a paragraph, a title etc). It is not designed for layout (i.e. page >break >here). The WWW consortium who define HTML and like standards have >developed >the CSS (Cascading Style Sheets) stanard for this very purpose. It >allows >you to specify how elements on a page (of HTML) should be laid out, what >colour etc. CSS2 is the latest recommendation and includes the ability >to >target output for different media. Therefore is is possible to produce >an >HTML file that looks like one page onscreen and when printed has the >authors >defined page breaks. > >To use these elements with SQR would require more effort however. And >you >would need to make sure that the customers browsers supported the >standard. >Sadly many current generation browsers do not support the standard >properly, >if only partially, and many are buggy to boot. And purists will argue >that >you can't force people to use a particular browser just to get page >breaks. > >In summary , you might be able to implement page breaks but the results >will >be browser dependent anyway. > >The relevant standards can be found on the W3C page http://www.w3c.org > >http://www.w3.org/Style/CSS/ for Cascading Style Sheets > >and > >http://www.w3.org/MarkUp/ for HTML > > >Hope this helps > > >Anthony Vesey > >-----Original Message----- >From: Discussion of SQR, Brio Technology's database reporting language >[mailto:SQR-USERS@list.iex.net]On Behalf Of Ragu Sadasivam >Sent: Thursday, 13 July 2000 08:28 >To: SQR-USERS@list.iex.net >Subject: Re: Page breaks in HTML > > >The reason I am even concerned about page breaks is b'cos, the report >originally was designed that way per customer's request. Right now, it >can >be viewed with the SQR Viewer and printed. [It is a lengthy document - >1800 >pages]. The reason we want it on the web is for distribution and also >the >licensing issues with SQR Viewer. Only y'day I found out about the page >breaks not being possible in HTML. If people are looking to put their >reports out in the web, for the ease of distribution and viewing [since >IE >or Netscape is on everyone's desktop], should it not be able to >recognize >page breaks. What is the use of publishing these reports online and go >through the trouble of trying to fit them logically, if HTML is going to >do >its own thing? > >Any thoughts on the FONT BASESIZE [mentioned below]- what triggers this? > >Appreciate your help... > >From: "Dombrowski, Dave F" > >Reply-To: sqr-users@list.iex.net > >To: SQR-USERS@list.iex.net > >Subject: Re: Page breaks in HTML > >Date: Wed, 12 Jul 2000 15:11:42 -0400 > > > >I could be wrong, but I've never heard of page breaks in HTML. Don't > >confuse > >separate web pages from a single web page with page breaking. Using SQR > >printer options will yield separate web pages. A three page 'document' >is > >actually three separate web pages (HTML files). A browser has no > >capabilities to interpret printer commands like page breaks, carriage > >returns or tabbing. How could it? Even if you 'space out' things so >that a > >page 'appears' to break where intended, what would happen when the user > >alters the text size through the browser? > > > >I'm not talking about .PDF or .DOC or .RPT files, just .HTM/.HTML >files. > >The > >advantage you gain with straight HTML is that you are truly browser > >independent - no third party server software or browser plugins needed >- > >and > >that you can do other things like edit data and more easily pull data > >dynamically. The advantage you gain from a .PDF or other file is full > >control over formatting. > > > >In the end, it's a matter of knowing who your clients are and what >software > >they have. For 'pure' internet apps, you usually end up using >server-side > >processing with as little JavaScript as possible and send out straight >HTML > >to the client. For reporting purposes, use HTML tables to format things >as > >best as possible. If you get concerned with page breks, split the >output > >into separate web pages and provide navigation to move from one to >another. > >Finally, if you absolutely must use something like .PDF files, always > >always > >always provide a prominent link for users to download the software >needed > >to > >open it. > > > >-----Original Message----- > >From: Ragu Sadasivam [mailto:sathyamangalam@HOTMAIL.COM] > >Sent: Wednesday, July 12, 2000 1:40 PM > >To: SQR-USERS@list.iex.net > >Subject: Re: Page breaks in HTML > > > > > >I tried this and ended with an error for the PDF file. I'll try again. > > > >Does anyone know what triggers the FONT BASESIZE in the HTML document. >My > >sqr generates multiple reports and on every report the first page the > >headings and the columns are off. It is introducing a FONT BASESIZE 4 > >eventhough I have reduced it to 2. But then there is FONT size 2 and >the > >output is ok. > > > >Any thoughts on this one.... > > > > > > >From: Enrique Muñoz > > >Reply-To: sqr-users@list.iex.net > > >To: SQR-USERS@list.iex.net > > >Subject: Re: Page breaks in HTML > > >Date: Mon, 10 Jul 2000 17:06:54 +0100 > > > > > >You can do this: > > > > > >-printer:ep > > > > > >Now, This flag you cag get html file and pdf file... And the breaks > > > > > >Ragu Sadasivam wrote: > > > > > > > Hi Everyone, > > > > > > > > I have an sqr that generates a report in HTML format using the > > >-PRINTER:HT > > > > feature. > > > > > > > > * Even though there are page breaks in the output, when I print >from > > >within > > > > IE it ignores the breaks. In the sense, if one page has 10 lines >and > >so > > > > does the next page, it prints both on one page with the break. >How do > >I > > >get > > > > IE to recognize the breaks? > > > > > > > > Appreciate your help. > > > > > > > > Thanks. > > > > > > > > LKR > > > > > > > > > >________________________________________________________________________ > > > > Get Your Private, Free E-mail from MSN Hotmail at > >http://www.hotmail.com > > > >________________________________________________________________________ > >Get Your Private, Free E-mail from MSN Hotmail at >http://www.hotmail.com > >________________________________________________________________________ >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From owner-sqr-users@list.iex.net Mon Jul 10 14:42:09 2000 Date: Mon, 10 Jul 2000 15:19:46 -0300 From: "Ronaldo Delmar M. Fernandes" Subject: Who have BRIO SQR ? What your evaluate about this product ? Who have BRIO SQR ? What your evaluate about this product ? R.D. Fernandes From owner-sqr-users@list.iex.net Mon Jul 10 15:00:08 2000 Date: Mon, 10 Jul 2000 15:39:05 -0300 From: Peter Clark Subject: Re: Who have BRIO SQR ? What your evaluate about this product ? I would imagine that everyone on the SQR USERS list has SQR, no? Overall, a typically excellent product with less than excellent user manuals (therefore the need for this list). My only beef with the product is its inability to set or overide the Windows printer specifications from the values specified in the application (in the same manner as text editors and spreadsheet applications are able to do) i.e. landscape legal. Peter >>> "Ronaldo Delmar M. Fernandes" 2000/07/10 3:19:46 pm >>> Who have BRIO SQR ? What your evaluate about this product ? R.D. Fernandes From owner-sqr-users@list.iex.net Tue Jul 11 05:20:35 2000 Date: Tue, 11 Jul 2000 02:34:24 -0700 From: Arjan Hoornstra Subject: Re: Who have BRIO SQR ? What your evaluate about this product ? I wonde rif you mean the Brio Portal to generate sqr programs? That has very limited possibilities compared to the sqr-program language itself, and needs a lot of time to understand. For me, the best way to generate an SQR program is by opening a texteditor and start typing. --- "Ronaldo Delmar M. Fernandes" wrote: > Who have BRIO SQR ? > > What your evaluate about this product ? > > R.D. Fernandes __________________________________________________ Do You Yahoo!? Get Yahoo! Mail – Free email you can access from anywhere! http://mail.yahoo.com/ From owner-sqr-users@list.iex.net Mon Jul 10 14:57:13 2000 Date: Mon, 10 Jul 2000 14:39:45 -0400 From: "Calder, Chris" Subject: What are the advantages of HTML output? Hi everyone, I would be interested in hearing from anyone who could provide me with the advantages of generating SQR output in HTML format. Currently, we have all output generated as a .LIS file on the clients workstation. Is there a lot of work to ensure correct formatting for printing and viewing the output in a browser? Thanks in advance ;-) Chris Calder Programmer/Analyst PeopleSoft - HRMS Justice Canada Tel: (613) 946-4751 From owner-sqr-users@list.iex.net Tue Jul 11 07:34:46 2000 Date: Tue, 11 Jul 2000 08:18:06 -0300 From: Peter Clark Subject: Re: What are the advantages of HTML output? Hi Chris, Out of curiosity, are you asking on behalf of GoC Cluster or just your department? The advantages of HTML output should be fairly evident ... as are the disadvantages. We at Veterans Affairs took the middle-of-the-road approach, changing all our reports over to HPLaser output. This resolved a few things for us: first of all, it fixed the flakiness of the .LIS output reports (wherein network traffic could cause a printer to revert to its default settings thereby royally screwing up most reports). Two, it allowed us to use many of the SQR printing features unavailable in .LIS output such as graphics and images (you should see our Leave Statement ... a thing of beauty compared to what Cluster delivered). Three, it allowed us to use the SQR Viewer properly thereby saving an awful lot of trees. A feature of the Viewer is that it will allow the user to save the report in HTML format. Our users now have the flexibility to A) view the pertinent info they were seeking without killing any trees, B) print the report if desired and C) convert the report to HTML for publishing on their intranet. As for the work involved, yes there is a bit. Not so much in the way you format a report but just in the housekeeping aspects. Gimme a shout if I can be of further assistance. Peter Clark PeopleSoft HRMS Tech Support Veterans Affairs Canada (902)566-8682 >>> "Calder, Chris" 2000/07/10 3:39:45 pm >>> Hi everyone, I would be interested in hearing from anyone who could provide me with the advantages of generating SQR output in HTML format. Currently, we have all output generated as a .LIS file on the clients workstation. Is there a lot of work to ensure correct formatting for printing and viewing the output in a browser? Thanks in advance ;-) Chris Calder Programmer/Analyst PeopleSoft - HRMS Justice Canada Tel: (613) 946-4751 From owner-sqr-users@list.iex.net Wed Jul 12 14:18:56 2000 Date: Wed, 12 Jul 2000 17:47:05 GMT From: Ragu Sadasivam Subject: Re: What are the advantages of HTML output? Hi Peter, We also use the SQR Viewer but have never been able to Save File As "HTML" document. Any pointers?? Whenever we try to do this, nothing seems to happen. Any pointers in this are would be helpful? Any settings that need to be looked at?? Thanks. LKR >From: Peter Clark >Reply-To: sqr-users@list.iex.net >To: SQR-USERS@list.iex.net >Subject: Re: What are the advantages of HTML output? >Date: Tue, 11 Jul 2000 08:18:06 -0300 > >Hi Chris, > >Out of curiosity, are you asking on behalf of GoC Cluster or just your >department? > >The advantages of HTML output should be fairly evident ... as are the >disadvantages. > >We at Veterans Affairs took the middle-of-the-road approach, changing all >our reports over to HPLaser output. This resolved a few things for us: >first of all, it fixed the flakiness of the .LIS output reports (wherein >network traffic could cause a printer to revert to its default settings >thereby royally screwing up most reports). Two, it allowed us to use many >of the SQR printing features unavailable in .LIS output such as graphics >and images (you should see our Leave Statement ... a thing of beauty >compared to what Cluster delivered). Three, it allowed us to use the SQR >Viewer properly thereby saving an awful lot of trees. A feature of the >Viewer is that it will allow the user to save the report in HTML format. >Our users now have the flexibility to A) view the pertinent info they were >seeking without killing any trees, B) print the report if desired and C) >convert the report to HTML for publishing on their intranet. > >As for the work involved, yes there is a bit. Not so much in the way you >format a report but just in the housekeeping aspects. > >Gimme a shout if I can be of further assistance. > >Peter Clark >PeopleSoft HRMS Tech Support >Veterans Affairs Canada >(902)566-8682 > > >>> "Calder, Chris" 2000/07/10 3:39:45 pm >>> >Hi everyone, > >I would be interested in hearing from anyone who could provide me with the >advantages of generating SQR output in HTML format. Currently, we have all >output generated as a .LIS file on the clients workstation. > >Is there a lot of work to ensure correct formatting for printing and >viewing >the output in a browser? > >Thanks in advance ;-) > >Chris Calder >Programmer/Analyst >PeopleSoft - HRMS >Justice Canada >Tel: (613) 946-4751 ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From owner-sqr-users@list.iex.net Wed Jul 12 17:03:46 2000 Date: Wed, 12 Jul 2000 22:23:41 +0200 From: Franck Masson Subject: Re: What are the advantages of HTML output? This is a multi-part message in MIME format. --------------A4D6FA95878E810D4CF8E9D5 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit what version of SQR viewer / sqr do you use ? how do you have installed sqr viewer on your pc ? from the sqribe/Brio CD ? To convert in HTML, sqr use java so the setting of your envirronement must be properly set. Franck, Ragu Sadasivam wrote: > > Hi Peter, > > We also use the SQR Viewer but have never been able to Save File As "HTML" > document. Any pointers?? Whenever we try to do this, nothing seems to > happen. > > Any pointers in this are would be helpful? Any settings that need to be > looked at?? > > Thanks. > > LKR > > >From: Peter Clark > >Reply-To: sqr-users@list.iex.net > >To: SQR-USERS@list.iex.net > >Subject: Re: What are the advantages of HTML output? > >Date: Tue, 11 Jul 2000 08:18:06 -0300 > > > >Hi Chris, > > > >Out of curiosity, are you asking on behalf of GoC Cluster or just your > >department? > > > >The advantages of HTML output should be fairly evident ... as are the > >disadvantages. > > > >We at Veterans Affairs took the middle-of-the-road approach, changing all > >our reports over to HPLaser output. This resolved a few things for us: > >first of all, it fixed the flakiness of the .LIS output reports (wherein > >network traffic could cause a printer to revert to its default settings > >thereby royally screwing up most reports). Two, it allowed us to use many > >of the SQR printing features unavailable in .LIS output such as graphics > >and images (you should see our Leave Statement ... a thing of beauty > >compared to what Cluster delivered). Three, it allowed us to use the SQR > >Viewer properly thereby saving an awful lot of trees. A feature of the > >Viewer is that it will allow the user to save the report in HTML format. > >Our users now have the flexibility to A) view the pertinent info they were > >seeking without killing any trees, B) print the report if desired and C) > >convert the report to HTML for publishing on their intranet. > > > >As for the work involved, yes there is a bit. Not so much in the way you > >format a report but just in the housekeeping aspects. > > > >Gimme a shout if I can be of further assistance. > > > >Peter Clark > >PeopleSoft HRMS Tech Support > >Veterans Affairs Canada > >(902)566-8682 > > > > >>> "Calder, Chris" 2000/07/10 3:39:45 pm >>> > >Hi everyone, > > > >I would be interested in hearing from anyone who could provide me with the > >advantages of generating SQR output in HTML format. Currently, we have all > >output generated as a .LIS file on the clients workstation. > > > >Is there a lot of work to ensure correct formatting for printing and > >viewing > >the output in a browser? > > > >Thanks in advance ;-) > > > >Chris Calder > >Programmer/Analyst > >PeopleSoft - HRMS > >Justice Canada > >Tel: (613) 946-4751 > > ________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com --------------A4D6FA95878E810D4CF8E9D5 Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Franck Masson Content-Disposition: attachment; filename="vcard.vcf" begin: vcard fn: Franck Masson n: ;Franck Masson org: Brio Technology EMEA adr;dom: Le capitol;;55 av. des champs Pierreux;Nanterre;92000;; email;internet: franck.masson@brio.com title: Sales Manager Northern Europe tel;work: 33 1 55 69 36 00 tel;fax: 33 1 47 25 02 59 tel;home: Mobile : 33 6 84 80 17 05 x-mozilla-cpt: ;0 x-mozilla-html: FALSE version: 2.1 end: vcard --------------A4D6FA95878E810D4CF8E9D5-- From owner-sqr-users@list.iex.net Wed Jul 12 14:40:24 2000 Date: Wed, 12 Jul 2000 15:16:53 -0300 From: Peter Clark Subject: Re: What are the advantages of HTML output? Hi Ragu, When you do a Save As HTML, the created files are put into C:\TEMP There will be a series of .HTM files created. Use your browser to open (File, Open File) the one called xxx_frm.htm (where xxx is the name of your report) et voilà. Before you do that though, you must copy all the .gif files you'll find in your SQRBINW\IMAGES directory over to C:\TEMP ... these are the navigation icons used if you select "write a separate file every x pages" (recommended) when you do your Save As HTML (I recommend you specify 1 page) and will allow the user to flip from page to page the way they can in Viewer/ Hope this helps. Peter >>> Ragu Sadasivam 2000/07/12 2:47:05 pm >>> Hi Peter, We also use the SQR Viewer but have never been able to Save File As "HTML" document. Any pointers?? Whenever we try to do this, nothing seems to happen. Any pointers in this are would be helpful? Any settings that need to be looked at?? Thanks. LKR >From: Peter Clark >Reply-To: sqr-users@list.iex.net >To: SQR-USERS@list.iex.net >Subject: Re: What are the advantages of HTML output? >Date: Tue, 11 Jul 2000 08:18:06 -0300 > >Hi Chris, > >Out of curiosity, are you asking on behalf of GoC Cluster or just your >department? > >The advantages of HTML output should be fairly evident ... as are the >disadvantages. > >We at Veterans Affairs took the middle-of-the-road approach, changing all >our reports over to HPLaser output. This resolved a few things for us: >first of all, it fixed the flakiness of the .LIS output reports (wherein >network traffic could cause a printer to revert to its default settings >thereby royally screwing up most reports). Two, it allowed us to use many >of the SQR printing features unavailable in .LIS output such as graphics >and images (you should see our Leave Statement ... a thing of beauty >compared to what Cluster delivered). Three, it allowed us to use the SQR >Viewer properly thereby saving an awful lot of trees. A feature of the >Viewer is that it will allow the user to save the report in HTML format. >Our users now have the flexibility to A) view the pertinent info they were >seeking without killing any trees, B) print the report if desired and C) >convert the report to HTML for publishing on their intranet. > >As for the work involved, yes there is a bit. Not so much in the way you >format a report but just in the housekeeping aspects. > >Gimme a shout if I can be of further assistance. > >Peter Clark >PeopleSoft HRMS Tech Support >Veterans Affairs Canada >(902)566-8682 > > >>> "Calder, Chris" 2000/07/10 3:39:45 pm >>> >Hi everyone, > >I would be interested in hearing from anyone who could provide me with the >advantages of generating SQR output in HTML format. Currently, we have all >output generated as a .LIS file on the clients workstation. > >Is there a lot of work to ensure correct formatting for printing and >viewing >the output in a browser? > >Thanks in advance ;-) > >Chris Calder >Programmer/Analyst >PeopleSoft - HRMS >Justice Canada >Tel: (613) 946-4751 ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From owner-sqr-users@list.iex.net Mon Jul 10 15:27:25 2000 Date: Mon, 10 Jul 2000 13:56:58 -0500 From: "Lambert, Jin" Subject: running SQR (produces reports) on Unix box Hi, all- I want to hear from your experts out there, about possibilities of running SQR reports on the Unix Server??? (we are on SQR V4.3.4, Peoplesoft 7.52 application with 7.58 tools, the Unix server HP-UX 11.0 , the NT server 4 SP 5 and SP 6A) Current situation in our shop * For any sqr report processes, if they are not producing any .lis file (reports) we will try to run them on Unix box (Server) to improve performance. * For any sqr report process producing any type of .lis file (reports), we are forced to run them on Client so any produced reports (.lis) can be either printed (LPT1), or resided on the local drive (C: ) or the network drive (NT) somewhere. Desired situation * We would like to utilize Unix serve's horse power but not sure the followings- * If the sqr runs on the Unix, then all reports will be generated in the Unix directory, how do we efficiently ftp reports back to the NT network drive? * Is any software in the market, which allows sqr running on Unix to produce reports on the NT side (instead of Unix side) * What are your experiences and suggestions? -JL From owner-sqr-users@list.iex.net Mon Jul 10 15:28:14 2000 Date: Mon, 10 Jul 2000 13:59:49 -0500 From: Pragya Chandra Subject: Re: running SQR (produces reports) on Unix box We created Samba shares of the UNIX drives on our NT system..that way the users can get to the reports from their windows explorer. i am not sure if that is what you wanted to know. > -----Original Message----- > From: Lambert, Jin [SMTP:JLambert@HRBLOCK.COM] > Sent: Monday, July 10, 2000 1:57 PM > To: SQR-USERS@list.iex.net > Subject: running SQR (produces reports) on Unix box > > Hi, all- > > I want to hear from your experts out there, about possibilities of running > SQR reports on the Unix Server??? > > (we are on SQR V4.3.4, Peoplesoft 7.52 application with 7.58 tools, the > Unix > server HP-UX 11.0 , the NT server 4 SP 5 and SP 6A) > > Current situation in our shop > > * For any sqr report processes, if they are not producing any .lis > file (reports) we will try to run them on Unix box (Server) to improve > performance. > > * For any sqr report process producing any type of .lis file > (reports), we are forced to run them on Client so any produced reports > (.lis) can be either printed (LPT1), or resided on the local drive (C: ) > or > the network drive (NT) somewhere. > > Desired situation > > * We would like to utilize Unix serve's horse power but not sure the > followings- > > * If the sqr runs on the Unix, then all reports will be generated in > the Unix directory, how do we efficiently ftp reports back to the NT > network > drive? > * Is any software in the market, which allows sqr running on Unix to > produce reports on the NT side (instead of Unix side) > * What are your experiences and suggestions? > > -JL From owner-sqr-users@list.iex.net Mon Jul 10 16:56:03 2000 Date: Mon, 10 Jul 2000 13:33:42 -0700 From: "Lynds,Rick" Subject: Re: running SQR (produces reports) on Unix box We use a scheduled job to FTP our report files from UNIX to a non-Unix network server, which then converts them to word (or excel, etc) and distributes them to other non-Unix network servers. This was all home-grown, but its pretty simple and works reasonably well. -----Original Message----- From: Lambert, Jin [mailto:JLambert@HRBLOCK.COM] Sent: Monday, July 10, 2000 11:57 AM To: SQR-USERS@list.iex.net Subject: running SQR (produces reports) on Unix box Hi, all- I want to hear from your experts out there, about possibilities of running SQR reports on the Unix Server??? (we are on SQR V4.3.4, Peoplesoft 7.52 application with 7.58 tools, the Unix server HP-UX 11.0 , the NT server 4 SP 5 and SP 6A) Current situation in our shop * For any sqr report processes, if they are not producing any .lis file (reports) we will try to run them on Unix box (Server) to improve performance. * For any sqr report process producing any type of .lis file (reports), we are forced to run them on Client so any produced reports (.lis) can be either printed (LPT1), or resided on the local drive (C: ) or the network drive (NT) somewhere. Desired situation * We would like to utilize Unix serve's horse power but not sure the followings- * If the sqr runs on the Unix, then all reports will be generated in the Unix directory, how do we efficiently ftp reports back to the NT network drive? * Is any software in the market, which allows sqr running on Unix to produce reports on the NT side (instead of Unix side) * What are your experiences and suggestions? -JL From owner-sqr-users@list.iex.net Tue Jul 11 05:17:17 2000 Date: Tue, 11 Jul 2000 01:58:42 -0700 From: Arjan Hoornstra Subject: Re: running SQR (produces reports) on Unix box SQR running on Unix is never a problem... also the ftp part, the best way toi do this is let SQR take care of this with a 'call system' function. If you have access from your Unix machine to NT you can have the .lis file created there using the -F function. (for example sqr -F //NTSERV01/lisfiles/report.lis) You can also make sqr write a ftp-commandfile and on the Unix server make a batchfile which first executes the sqr and then ftp's using the command file (-n option). For a .lis file this is probably the best. Arjan --- "Lambert, Jin" wrote: > Hi, all- > > I want to hear from your experts out there, about > possibilities of running > SQR reports on the Unix Server??? > > (we are on SQR V4.3.4, Peoplesoft 7.52 application > with 7.58 tools, the Unix > server HP-UX 11.0 , the NT server 4 SP 5 and SP 6A) > > Current situation in our shop > > * For any sqr report processes, if they are > not producing any .lis > file (reports) we will try to run them on Unix box > (Server) to improve > performance. > > * For any sqr report process producing any > type of .lis file > (reports), we are forced to run them on Client so > any produced reports > (.lis) can be either printed (LPT1), or resided on > the local drive (C: ) or > the network drive (NT) somewhere. > > Desired situation > > * We would like to utilize Unix serve's horse > power but not sure the > followings- > > * If the sqr runs on the Unix, then all > reports will be generated in > the Unix directory, how do we efficiently ftp > reports back to the NT network > drive? > * Is any software in the market, which allows > sqr running on Unix to > produce reports on the NT side (instead of Unix > side) > * What are your experiences and suggestions? > > -JL __________________________________________________ Do You Yahoo!? Get Yahoo! Mail – Free email you can access from anywhere! http://mail.yahoo.com/ From owner-sqr-users@list.iex.net Tue Jul 11 08:25:12 2000 Date: Tue, 11 Jul 2000 13:53:30 +0200 From: Franck Masson Subject: Re: running SQR (produces reports) on Unix box This is a multi-part message in MIME format. --------------DEF898A999C8516E8B21191F Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Jin, 1)* For any sqr report processes, if they are not producing any .lis file (reports) we will try to run them on Unix box (Server) to improve performance. IT IS A VERY GOOD IDEA 2) * Is any software in the market, which allows sqr running on Unix to produce reports on the NT side (instead of Unix side) THERE IS ON THE MAKET SOME SOFTWARE THAT ALLOW TO SHARE DISK/DIRECTORY BETWEEN NT/UNIX. (LIKE SAMBA or NFS) 3) * What are your experiences and suggestions? The best performance is usualy obtain by running SQR on the database server if this server still have some cpu, I/O available. If the report provide output, you can put this output to a web/ftp server or Brio.portal sever to let the user acces to it. It is easier to maintain a web/ftp server than a file server. The users with a simple browser can access their report. Lot of Peoplesoft customer in version 7.5 have this kind of configuration. franck, Lambert, Jin wrote: > > Hi, all- > > I want to hear from your experts out there, about possibilities of running > SQR reports on the Unix Server??? > > (we are on SQR V4.3.4, Peoplesoft 7.52 application with 7.58 tools, the Unix > server HP-UX 11.0 , the NT server 4 SP 5 and SP 6A) > > Current situation in our shop > > * For any sqr report processes, if they are not producing any .lis > file (reports) we will try to run them on Unix box (Server) to improve > performance. > > * For any sqr report process producing any type of .lis file > (reports), we are forced to run them on Client so any produced reports > (.lis) can be either printed (LPT1), or resided on the local drive (C: ) or > the network drive (NT) somewhere. > > Desired situation > > * We would like to utilize Unix serve's horse power but not sure the > followings- > > * If the sqr runs on the Unix, then all reports will be generated in > the Unix directory, how do we efficiently ftp reports back to the NT network > drive? > * Is any software in the market, which allows sqr running on Unix to > produce reports on the NT side (instead of Unix side) > * What are your experiences and suggestions? > > -JL --------------DEF898A999C8516E8B21191F Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Franck Masson Content-Disposition: attachment; filename="vcard.vcf" begin: vcard fn: Franck Masson n: ;Franck Masson org: Brio Technology EMEA adr;dom: Le capitol;;55 av. des champs Pierreux;Nanterre;92000;; email;internet: franck.masson@brio.com title: Sales Manager Northern Europe tel;work: 33 1 55 69 36 00 tel;fax: 33 1 47 25 02 59 tel;home: Mobile : 33 6 84 80 17 05 x-mozilla-cpt: ;0 x-mozilla-html: FALSE version: 2.1 end: vcard --------------DEF898A999C8516E8B21191F-- From owner-sqr-users@list.iex.net Tue Jul 11 12:24:40 2000 Date: Tue, 11 Jul 2000 11:59:09 -0400 From: Scott Barnes Subject: Re: running SQR (produces reports) on Unix box Hello everyone, I have some class notes I am reading with junk in them, carriage returns, spaces, etc. I want to print them with the wrap and strip the line feeds or carriage return line feeds, and places were there are more than two spaces, and not have ON default to line feed, I tried <0> = null but that produced an error. I am on oracle eight and not sure which version of SQR I am new here. thanks for any help scotty BEGIN-SELECT LOOPS = 1 CN.DESCRLONG (,10) WRAP 55 5 LINE-HEIGHT = 2 STRIP=<13><32><10> ON=<07> DISPLAY ' SELECTED NOTE' FROM PS_CLASS_NOTES CN WHERE &CT.STRM = CN.STRM AND &CT.CRSE_ID = CN.CRSE_ID END-SELECT From owner-sqr-users@list.iex.net Tue Jul 11 09:04:03 2000 Date: Tue, 11 Jul 2000 08:49:38 -0400 From: "Johnson, Dan" Subject: Re: running SQR (produces reports) on Unix box When I was in school they were able to map the UNIX file system. In other words if you went to the file explorer you would see your UNIX directories as well as your NT ones. Perhaps you could do something like this. As to running SQR on UNIX it works well. We generate over 500,00 pages of reports every month and have few problems. Good Luck, Dan -----Original Message----- From: Lambert, Jin [SMTP:JLambert@HRBLOCK.COM] Sent: Monday, July 10, 2000 2:57 PM To: SQR-USERS@list.iex.net Subject: running SQR (produces reports) on Unix box Hi, all- I want to hear from your experts out there, about possibilities of running SQR reports on the Unix Server??? (we are on SQR V4.3.4, Peoplesoft 7.52 application with 7.58 tools, the Unix server HP-UX 11.0 , the NT server 4 SP 5 and SP 6A) Current situation in our shop * For any sqr report processes, if they are not producing any .lis file (reports) we will try to run them on Unix box (Server) to improve performance. * For any sqr report process producing any type of .lis file (reports), we are forced to run them on Client so any produced reports (.lis) can be either printed (LPT1), or resided on the local drive (C: ) or the network drive (NT) somewhere. Desired situation * We would like to utilize Unix serve's horse power but not sure the followings- * If the sqr runs on the Unix, then all reports will be generated in the Unix directory, how do we efficiently ftp reports back to the NT network drive? * Is any software in the market, which allows sqr running on Unix to produce reports on the NT side (instead of Unix side) * What are your experiences and suggestions? -JL From owner-sqr-users@list.iex.net Wed Jul 12 07:13:39 2000 Date: Wed, 12 Jul 2000 03:52:02 PDT From: Scott Hitchcock Subject: Re: running SQR (produces reports) on Unix box Scotty, Your requirement to wrap on the second space makes this a little more complex than a simple wrap. I think you will need to evaluate each character and the previous character to get your logic to work. Something like the code below should get you going in the direction you want, I didn't test it. It may need some tuning such as maximum number of lines, print locations and string lengths. Hope this helps.... Scott. encode '<032>' into $space encode '<013>' into $cr encode '<010>' into $lf begin-select cn.descrlong &descrlong move 1 to #lastbreak move 1 to #current move 0 to #start move 0 to #space let #total = length(&descrlong) while #start < #total add 1 to #start add 1 to #current let $current_char = substr(&descrlong, #start, 1) if $current_char = $space add 1 to #space if #space = 2 let $print_line = rtrim(ltrim(substr(&descrlong,#lastbreak,#current),' '), ' ') print $print_line (+1,10) let #lastbreak = #start + 1 move 0 to #current move 0 to #space end-if else move 0 to #space end-if if (($current_char = $cr) or ($current_char = $lf)) and (#lastbreak < #start) let $print_line = rtrim(ltrim(substr(&descrlong,#lastbreak,#current),' '), ' ') print $print_line (+1,10) let #lastbreak = #start + 1 move 0 to #current end-if end-while from ps_class_notes cn where cn.strm = &ct.strm and cn.crse_id = &ct.crse_id end-select >From: Scott Barnes >Reply-To: sqr-users@list.iex.net >To: SQR-USERS@list.iex.net >Subject: Re: running SQR (produces reports) on Unix box >Date: Tue, 11 Jul 2000 11:59:09 -0400 > >Hello everyone, > >I have some class notes I am reading with junk in them, carriage returns, >spaces, etc. >I want to print them with the wrap and strip the line feeds or carriage >return line feeds, and places were there are more than two spaces, and not >have ON default to line feed, I tried <0> = null but that produced an >error. I am on oracle eight and not sure which version of SQR I am new >here. > >thanks for any help > >scotty > > >BEGIN-SELECT LOOPS = 1 > >CN.DESCRLONG (,10) WRAP 55 5 LINE-HEIGHT = 2 STRIP=<13><32><10> ON=<07> > DISPLAY ' SELECTED NOTE' >FROM >PS_CLASS_NOTES CN >WHERE >&CT.STRM = CN.STRM AND >&CT.CRSE_ID = CN.CRSE_ID >END-SELECT ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From owner-sqr-users@list.iex.net Mon Jul 10 15:54:36 2000 Date: Mon, 10 Jul 2000 15:36:00 -0500 From: John B Wells Subject: Re: Who have BRIO SQR ? What your evaluate about this pr Speaking of beefs, what about the fact that you can't use the BEFORE and AFTER features of on-break when using text files rather than select statements. Just my 2 cents. John Wells ______________________________ Reply Separator _________________________________ Subject: Re: Who have BRIO SQR ? What your evaluate about this produ Author: sqr-users@list.iex.net at INTERNET Date: 7/10/2000 1:39 PM I would imagine that everyone on the SQR USERS list has SQR, no? Overall, a typically excellent product with less than excellent user manuals (th erefore the need for this list). My only beef with the product is its inability to set or overide the Windows pri nter specifications from the values specified in the application (in the same ma nner as text editors and spreadsheet applications are able to do) i.e. landscape legal. Peter >>> "Ronaldo Delmar M. Fernandes" 2000/07/10 3:19:46 pm >>> Who have BRIO SQR ? What your evaluate about this product ? R.D. Fernandes From owner-sqr-users@list.iex.net Mon Jul 10 17:11:30 2000 Date: Mon, 10 Jul 2000 12:49:35 -0800 From: "Brown, Bryan" Subject: Running Totals (SQR 3.0.13.2), Oracle 7 Hi gang, I have managed to create several reports without asking for help, but it is time once again to seek your wisdom.... I am writing a report which duplicates a spreadsheet - there are running totals for both columns and rows. I am having difficulty with the totals for the columns. The program selects 1st by employee and second by date.... The output looks like the following (the number of check dates may vary): 1/1/2000 1/15/2000 Total AAA $ $ Total for row BBB $ $ Total for row Total total for column total for column I would like to great variables based on the check date, and then add the individual amounts to the variables. The example of what I want to accomplish is below. I do not know how to have a numeric variable created by the program. I can handle the "contents" of the variable, but how do I have the variable itself created? This may make no sense at all - if so, I appologize in advance :-) Thanks, Bryan begin-select a1.al_amount a1.check_dt let #total-check-&a1.check_dt = #total-check-&a1.check_dt + &a1.check_dt From PS_AL_CHK_DED A1 Where a1.check_dt between $first_date and $second_date and a1.al_dedcd = '64' and a1.file_nbr = &a.file_nbr end-Select ------------------------------------------------------------ Bryan E. Brown bbrown2@acsalaska.com, 907-564-1303 Systems Analyst, ACS (Alaska Communication Systems) From owner-sqr-users@list.iex.net Mon Jul 10 17:39:32 2000 Date: Mon, 10 Jul 2000 17:19:33 -0400 From: John Milardovic Subject: Re: Running Totals (SQR 3.0.13.2), Oracle 7 SQR does not support pointers or references. To my knowledge the only way you can do this is to A) have an sqr (or another program) evaluate what columns are needed and dynamically modify/create another SQR which is then executed. B) figure out your max number of columns and create a variable for each possible column and programmatically control which variables are incremented and printed (easier then it sounds). There have been many times when references (perl style would be great) would have been invaluable to me. Hopefully it's in the cards for the future. HTH, John Milardovic > -----Original Message----- > From: Brown, Bryan [SMTP:bbrown2@ACSALASKA.COM] > Sent: Monday, July 10, 2000 4:50 PM > To: SQR-USERS@list.iex.net > Subject: Running Totals (SQR 3.0.13.2), Oracle 7 > > Hi gang, > > I have managed to create several reports without asking for help, but it > is > time once again to seek your wisdom.... > > I am writing a report which duplicates a spreadsheet - there are running > totals for both columns and rows. I am having difficulty with the totals > for > the columns. The program selects 1st by employee and second by date.... > > The output looks like the following (the number of check dates may vary): > > 1/1/2000 1/15/2000 Total > AAA $ $ Total for row > BBB $ $ Total for row > Total total for column total for column > > I would like to great variables based on the check date, and then add the > individual amounts to the variables. > > The example of what I want to accomplish is below. I do not know how to > have > a numeric variable created by the program. I can handle the "contents" of > the variable, but how do I have the variable itself created? This may make > no sense at all - if so, I appologize in advance :-) > > Thanks, > Bryan > > begin-select > a1.al_amount > a1.check_dt > > let #total-check-&a1.check_dt = #total-check-&a1.check_dt + > &a1.check_dt > > From PS_AL_CHK_DED A1 > Where a1.check_dt between $first_date and $second_date > and a1.al_dedcd = '64' > and a1.file_nbr = &a.file_nbr > > end-Select > > > > ------------------------------------------------------------ > Bryan E. Brown > bbrown2@acsalaska.com, 907-564-1303 > Systems Analyst, ACS (Alaska Communication Systems) From owner-sqr-users@list.iex.net Tue Jul 11 09:04:12 2000 Date: Tue, 11 Jul 2000 08:36:04 -0400 From: Scott Barnes Subject: Re: Running Totals (SQR 3.0.13.2), Oracle 7 I modified you code assuming that the variable in my add statement after the to is all one variable name. hope this helps Scotty At 12:49 PM 7/10/00 -0800, you wrote: >Hi gang, > >I have managed to create several reports without asking for help, but it is >time once again to seek your wisdom.... > >I am writing a report which duplicates a spreadsheet - there are running >totals for both columns and rows. I am having difficulty with the totals for >the columns. The program selects 1st by employee and second by date.... > >The output looks like the following (the number of check dates may vary): > > 1/1/2000 1/15/2000 Total >AAA $ $ Total for row >BBB $ $ Total for row >Total total for column total for column > >I would like to great variables based on the check date, and then add the >individual amounts to the variables. > >The example of what I want to accomplish is below. I do not know how to have >a numeric variable created by the program. I can handle the "contents" of >the variable, but how do I have the variable itself created? This may make >no sense at all - if so, I appologize in advance :-) > >Thanks, >Bryan > >begin-select >a1.al_amount >a1.check_dt > move &a1.check_dt to #a1.check_dt add #a1.check_dt to #total-check-&a1.check_dt >! let #total-check-&a1.check_dt = #total-check-&a1.check_dt + &a1.check_dt > > From PS_AL_CHK_DED A1 > Where a1.check_dt between $first_date and $second_date > and a1.al_dedcd = '64' > and a1.file_nbr = &a.file_nbr > >end-Select > > > >------------------------------------------------------------ >Bryan E. Brown >bbrown2@acsalaska.com, 907-564-1303 >Systems Analyst, ACS (Alaska Communication Systems) From owner-sqr-users@list.iex.net Mon Jul 10 19:01:11 2000 Date: Mon, 10 Jul 2000 18:22:31 -0400 From: "Turner, Ivan" Subject: Text Wrapping not Desireable When I write my report to the .LIS file it wraps. I know my SETUP02.SQC defines page size. How can I keep SETUP02.SQC and keep the report from wraping? I want two versions of the report based on a check box on the Run Cntl Panel; one for printing and a wider (> 177 characters) report for Excel importing. Thanks for any input. From owner-sqr-users@list.iex.net Tue Jul 11 15:45:55 2000 Date: Tue, 11 Jul 2000 15:12:10 -0400 From: "Texin, Patricia" Subject: SQR - causing SQRW.exe compiler to hang I have a fairly large and complex SQR which is run on the client via sqrw.exe. Due to other technical issues this SQR cannot run on the server. When I attempt to run the sqr I get the SQR V4.3.4 icon but no SQRW.exe icon. It's as if the sqrw.exe is not executed. SQR V4.3.4 icon will stay in Windows until I "end-task" it via Windows. Other SQRs are running properly. I believe I have narrowed it down to a select statement using a dblink. Has anyone else encountered anything like this??? Patricia Texin Project Mercury - HR Marriott International Voice: 301/380-5087 Fax: 301/380-9277 Email: patricia.texin@marriott.com From owner-sqr-users@list.iex.net Wed Jul 12 08:00:36 2000 Date: Wed, 12 Jul 2000 07:43:06 -0400 From: "Huber, Robert" Subject: ON-BREAK Question Greeting, When executing a SELECT with multiple levels of ON_BREAK, is there a way to know which level caused the break? Thanks.... From owner-sqr-users@list.iex.net Wed Jul 12 08:45:03 2000 Date: Wed, 12 Jul 2000 08:20:17 -0400 From: Mark Castleberry Subject: Re: ON-BREAK Question begin-select state (+1,1,2) on-break level=1 after=state-tot skiplines=2 county (,+2,14) on-break level=2 after=county-tot skiplines=1 city (,+2,14) on-break level=3 after=city-tot ... end-select begin-procedure state-tot display 'break caused by state' end-procedure state-tot ... "Huber, Robert" To: SQR-USERS@list.iex.net Subject: ON-BREAK Question Sent by: "Discussion of SQR, Brio Technology's database reporting language" 07/12/00 07:43 AM Please respond to sqr-users Greeting, When executing a SELECT with multiple levels of ON_BREAK, is there a way to know which level caused the break? Thanks.... From owner-sqr-users@list.iex.net Wed Jul 12 09:10:08 2000 Date: Wed, 12 Jul 2000 07:55:44 CDT From: the dragon Subject: Re: ON-BREAK Question You can place a show statement in the called procedures... Then you'll know what's happening. clark 'the dragon' willis dragon enterprises, consulting services ----Original Message Follows---- Greeting, When executing a SELECT with multiple levels of ON_BREAK, is there a way to know which level caused the break? Thanks.... ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From owner-sqr-users@list.iex.net Wed Jul 12 10:15:19 2000 Date: Wed, 12 Jul 2000 09:57:46 -0400 From: "Huber, Robert" Subject: Re: ON-BREAK Question Thanks for the reply! However, I need to rework my question. Since all procedures from the level of the break forward are executed whenever a break occurs I need to know in the program what caused the break so that I can do conditional processing (conditional on the level of the break). For example, if we have three levels of break in a given SELECT; level 2 breaks this causes level 2 and 3 procedures to execute. The question is how in the procedure associated with level 3 does the procedure know that the break was caused by level 2 and not 3? I know I could set up my own semaphores, but that is something of a pain and was hoping there was something built into SQR that would provide the information needed. I did look through the manuals but nothing popped out at me. I hope this is clear! Thanks! -----Original Message----- From: the dragon [mailto:ceprn@HOTMAIL.COM] Sent: Wednesday, July 12, 2000 08:56 AM To: SQR-USERS@list.iex.net Subject: Re: ON-BREAK Question You can place a show statement in the called procedures... Then you'll know what's happening. clark 'the dragon' willis dragon enterprises, consulting services ----Original Message Follows---- Greeting, When executing a SELECT with multiple levels of ON_BREAK, is there a way to know which level caused the break? Thanks.... ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From owner-sqr-users@list.iex.net Wed Jul 12 11:08:26 2000 Date: Wed, 12 Jul 2000 10:39:04 -0400 From: "Wanko, Christopher G, CFCTR" Subject: Re: ON-BREAK Question > I know I could set up my own semaphores, but that is > something of a pain and was hoping there was something built into SQR that would > provide the information needed. I did look through the manuals but > nothing popped out at me. It's not the job of the language to provide a semaphore for you, so you do need to make your own sempahore or global variable to catch the break. Just create a variable $broken and move the procedure name to it if it isn't null. Make sure when you process the final break, you reset the variable to null. -Chris From owner-sqr-users@list.iex.net Thu Jul 13 22:27:25 2000 Date: Thu, 13 Jul 2000 21:07:54 -0500 From: Nathan Stratton Treadway Subject: Re: ON-BREAK Question On Wed, Jul 12, 2000 at 10:39:04AM -0400, Wanko, Christopher G, CFCTR wrote: > Just create a variable $broken and move the procedure name to it if it isn't > null. > Make sure when you process the final break, you reset the variable to null. Unfortunately, this doesn't do everything you want if you are looking for this information in "after" procedures -- since the procedures are executed in decending order, each individual procedure has no way to know whether or not a lower-numbered break level actually triggered the break. In cases where you need to know this information (for example, when you want to page break between breaks at any level, but only one page break "in a row"), then you end up having to set a flag to be examined outside of all "after" procedures (e.g. within the "before" procedures for all of the break levels) to deal with this situation. I, too, would like to see something like a #break-level reserved variable for use these situations.... Nathan ---------------------------------------------------------------------------- Nathan Stratton Treadway | Ray Ontko & Co. | Software consulting services nathant@ontko.com | Richmond, IN | http://www.ontko.com/ From owner-sqr-users@list.iex.net Wed Jul 12 12:16:20 2000 Date: Wed, 12 Jul 2000 11:58:23 -0400 From: "Huber, Robert" Subject: Re: ON-BREAK Question Chris, Not to be argumentative, but in this specific case I would to disagree and state that it would be reasonable for the language to provide the information. The sub-process that performs the ON-BREAK processing certainly knows what has happened and could quite easily inform the executing program what has happened with a flag or some such. Thanks for getting back, Robert -----Original Message----- From: Wanko, Christopher G, CFCTR [mailto:apollo@ATT.COM] Sent: Wednesday, July 12, 2000 10:39 AM To: SQR-USERS@list.iex.net Subject: Re: ON-BREAK Question > I know I could set up my own semaphores, but that is > something of a pain and was hoping there was something built into SQR that would > provide the information needed. I did look through the manuals but > nothing popped out at me. It's not the job of the language to provide a semaphore for you, so you do need to make your own sempahore or global variable to catch the break. Just create a variable $broken and move the procedure name to it if it isn't null. Make sure when you process the final break, you reset the variable to null. -Chris From owner-sqr-users@list.iex.net Mon Jul 17 10:11:16 2000 Date: Mon, 17 Jul 2000 09:53:20 -0400 From: "Wanko, Christopher G, CFCTR" Subject: Re: ON-BREAK Question > Unfortunately, this doesn't do everything you want if you are looking > for this information in "after" procedures -- since the procedures are > executed in decending order, each individual procedure has no way to > know whether or not a lower-numbered break level actually > triggered the break. What's the difference between a global variable that you manually set, and a reserved variable set by SQR? What can't you code that the compiler can? -Chris From owner-sqr-users@list.iex.net Wed Jul 12 10:11:57 2000 Date: Wed, 12 Jul 2000 15:46:26 +0200 From: Greetje Coninckx Subject: Connection with a 4D-database Hello! We use two databases: one is Oracle, the other is 4D. The BrioQuery and BrioReporting (SQR) is working OK with Oracle. The BrioQuery is working also OK with 4D (we use the ODBC Driver for 4D Server). But still stays a problem to use BrioReporting with 4D: when we try to use the same driver, the following message appears when processing the created report: (SQR 5528) ODBC SQL dbftch error 0 in cursor 1: [Microsoft][ODBC Driver Manager] Driver does not support this function. Error on line 31: (SQR 3725) Bad return fetching row from database. SQR: Program aborting. To document our environment: The Brio.Report Builder says about the SQR version: SQR Server/5.1/PC/ Windows NT 4.0/ODBC Level 2/Aug 19 1999 What is strange, is that the in the Expression Builder that can be called inside the BrioReportBuilder, the 'Show values' button show us some values coming from the 4D database. Can it be that the reason why it will not work is the lack of a SQR ODBC Driver for 4D (because for Oracle we use the SQR ODBC Driver for Oracle8)? Greetje Coninckx __________________________________ Greetje Coninckx Information Technology Analyst V 1.33 Virco Generaal De Wittelaan L11 B4 B-2800 Mechelen Belgium Phone: +32 15 285 613 Fax: +32 15 286 346 __________________________________ From owner-sqr-users@list.iex.net Wed Jul 12 12:13:16 2000 Date: Wed, 12 Jul 2000 09:54:11 -0500 From: Stephen Keen Subject: selecting into a temp table Can someone give me the syntax for selecting data from a table into a temporary table? Thanks Steve From owner-sqr-users@list.iex.net Wed Jul 12 11:31:00 2000 Date: Wed, 12 Jul 2000 10:09:18 -0500 From: "Thomas, Lyla" Subject: Re: selecting into a temp table Hi Steve, you could do this way Begin-Procedure Populate_Temp_Tbl begin-sql INSERT INTO PS_ZZ_Temp_Table (EMPLID,ACTION,ACTION_REASON) SELECT A.EMPLID, C.ACTION, C.ACTION_REASON FROM PS_PERS_DATA_EFFDT A, PS_JOB C WHERE A.EMPLID = C.EMPLID End-SQL End-Procedure Or you could do this way SELECT A.EMPLID, C.ACTION, C.ACTION_REASON Do Insert_Into_Temp_Tbl FROM PS_PERS_DATA_EFFDT A, PS_JOB C WHERE A.EMPLID = C.EMPLID Begin-Procedure Insert_Into_Temp_Tbl Begin-sql INSERT INTO PS_ZZ_Temp_Table (EMPLID,ACTION,ACTION_REASON) Values ($o_EMPLID, $o_Action, $o_Action_Reason) End-SQL End-Procedure Hope this helps Lyla -----Original Message----- From: Stephen Keen [mailto:Stephen_Keen@SQR-SERVICES.COM] Sent: Wednesday, July 12, 2000 9:54 AM To: SQR-USERS@LIST.IEX.NET Subject: selecting into a temp table Can someone give me the syntax for selecting data from a table into a temporary table? Thanks Steve From owner-sqr-users@list.iex.net Wed Jul 12 11:45:10 2000 Date: Wed, 12 Jul 2000 10:24:52 -0500 From: Stephen Keen Subject: Re: selecting into a temp table Thanks Thomas!! Stephen B. Keen -----Original Message----- From: Discussion of SQR, Brio Technology's database reporting language [mailto:SQR-USERS@list.iex.net] On Behalf Of Thomas, Lyla Sent: Wednesday, July 12, 2000 10:09 AM To: SQR-USERS@list.iex.net Subject: Re: selecting into a temp table Hi Steve, you could do this way Begin-Procedure Populate_Temp_Tbl begin-sql INSERT INTO PS_ZZ_Temp_Table (EMPLID,ACTION,ACTION_REASON) SELECT A.EMPLID, C.ACTION, C.ACTION_REASON FROM PS_PERS_DATA_EFFDT A, PS_JOB C WHERE A.EMPLID = C.EMPLID End-SQL End-Procedure Or you could do this way SELECT A.EMPLID, C.ACTION, C.ACTION_REASON Do Insert_Into_Temp_Tbl FROM PS_PERS_DATA_EFFDT A, PS_JOB C WHERE A.EMPLID = C.EMPLID Begin-Procedure Insert_Into_Temp_Tbl Begin-sql INSERT INTO PS_ZZ_Temp_Table (EMPLID,ACTION,ACTION_REASON) Values ($o_EMPLID, $o_Action, $o_Action_Reason) End-SQL End-Procedure Hope this helps Lyla -----Original Message----- From: Stephen Keen [mailto:Stephen_Keen@SQR-SERVICES.COM] Sent: Wednesday, July 12, 2000 9:54 AM To: SQR-USERS@LIST.IEX.NET Subject: selecting into a temp table Can someone give me the syntax for selecting data from a table into a temporary table? Thanks Steve From owner-sqr-users@list.iex.net Wed Jul 12 11:28:49 2000 Date: Wed, 12 Jul 2000 10:58:46 -0400 From: jteschendorf@AGCONSULT.COM Subject: On-Break Question I haven't done it in awhile, but I have some older SQRs that I check the field #Level and do things differently based upon the value. For Example: begin-procedure Company-Change if #level = 2 new-page end-if end-procedure would mean it came from the Level 2 break. Another colleague of mine handles it differently. She sets a field (like #break_Level = 2) in her Procedure. For example: begin-procedure Company-Change let #break_level = 2 end-procedure And then in the other Procedure breaks, she checks the value in the #Break_Level. At the end of the breaks, she then resets the variable to zero. From owner-sqr-users@list.iex.net Wed Jul 12 16:50:05 2000 Date: Wed, 12 Jul 2000 16:06:17 -0400 From: Derrick Fisher Subject: Procedures Is there any command you can use to leave a procedure before reaching the end-procedure command. For example say there are multiple IF statements in a procedure and as soon as an IF statement executes you want to exit the procedure so that no more IF statements will be processed. Is there some form of EXIT command in SQR you can use to do this ? From owner-sqr-users@list.iex.net Wed Jul 12 17:03:39 2000 Date: Wed, 12 Jul 2000 16:38:52 -0400 From: "Dombrowski, Dave F" Subject: Re: Procedures How about a simple GOTO? If you want to exit a procedure just place the label right before your end-procedure. For instance: begin-procedure trythis if x=1 then y=2 goto exit-trythis end-if if y=2 then x=1 end-if exit-trythis: end-procedure trythis If trythis is called and x=1, the second if statement is never executed and y will not be altered. -----Original Message----- From: Derrick Fisher [mailto:DFisher@CO.NEW-CASTLE.DE.US] Sent: Wednesday, July 12, 2000 4:06 PM To: SQR-USERS@list.iex.net Subject: Procedures Is there any command you can use to leave a procedure before reaching the end-procedure command. For example say there are multiple IF statements in a procedure and as soon as an IF statement executes you want to exit the procedure so that no more IF statements will be processed. Is there some form of EXIT command in SQR you can use to do this ? From owner-sqr-users@list.iex.net Wed Jul 12 16:55:53 2000 Date: Wed, 12 Jul 2000 15:39:12 -0500 From: Pragya Chandra Subject: Re: Procedures you could use a GOTo command...but we have found them to be not very reliable. > -----Original Message----- > From: Derrick Fisher [SMTP:DFisher@CO.NEW-CASTLE.DE.US] > Sent: Wednesday, July 12, 2000 3:06 PM > To: SQR-USERS@list.iex.net > Subject: Procedures > > Is there any command you can use to leave a procedure before reaching the > end-procedure command. For example say there are multiple IF statements in > a procedure and as soon as an IF statement executes you want to exit the > procedure so that no more IF statements will be processed. Is there some > form of EXIT command in SQR you can use to do this ? From owner-sqr-users@list.iex.net Wed Jul 12 17:10:31 2000 Date: Wed, 12 Jul 2000 16:47:29 -0400 From: Sam Spritzer Subject: Re: Procedures You can use BREAK. Speaking of multiple IF statements, have you given any thought to EVALUATE? Sam >>> DFisher@CO.NEW-CASTLE.DE.US 07/12/00 16:39 PM >>> Is there any command you can use to leave a procedure before reaching the end-procedure command. For example say there are multiple IF statements in a procedure and as soon as an IF statement executes you want to exit the procedure so that no more IF statements will be processed. Is there some form of EXIT command in SQR you can use to do this ? From owner-sqr-users@list.iex.net Wed Jul 12 17:34:02 2000 Date: Wed, 12 Jul 2000 17:18:28 -0400 From: Rick_Creel@AONCONS.COM Subject: Re: Procedures Is it not true that the BREAK command only works in conjunction with either EVALUATE or the WHILE verbs? If he is using several IF statements, then I believe the GOTO is the only way to get to the end of a procedure. I have made use of the GOTO and have never had any problems with it. Sam Spritzer on 07/12/2000 04:47:29 PM Please respond to sqr-users@list.iex.net To: SQR-USERS@list.iex.net cc: (bcc: Rick Creel/IT/Aon Consulting) Subject: Re: Procedures You can use BREAK. Speaking of multiple IF statements, have you given any thought to EVALUATE? Sam >>> DFisher@CO.NEW-CASTLE.DE.US 07/12/00 16:39 PM >>> Is there any command you can use to leave a procedure before reaching the end-procedure command. For example say there are multiple IF statements in a procedure and as soon as an IF statement executes you want to exit the procedure so that no more IF statements will be processed. Is there some form of EXIT command in SQR you can use to do this ? From owner-sqr-users@list.iex.net Wed Jul 12 18:47:06 2000 Date: Wed, 12 Jul 2000 17:31:07 -0500 From: Don Mellen Subject: Re: Procedures On Wed, 12 Jul 2000 Rick_Creel@AONCONS.COM wrote: > If he is using several IF statements, then I believe the GOTO is the > only way to get to the end of a procedure. Actually, if statements can be nested. So... begin-procedure example if #w (misc. lines of code) else if #x (misc. lines of code) else if #y (misc. lines of code) else (misc. lines of code) end-if end-if end-if end-procedure example ...is perfectly workable. ----------------------------------------------------------------------- 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 Jul 12 20:25:01 2000 Date: Wed, 12 Jul 2000 20:07:30 -0400 From: Sam Spritzer Subject: Re: Procedures Yea, you're right....BREAK was the wrong answer. But at least EVALUATE was the right one. Anyone want to make an argument for that vs. GOTO vs. nested IFs? I don't like nested IFs for one simple reason, its pretty confusing trying to decipher them. Plus, I believe there is more overhead involved since each IF is called whereas with EVALUATE, you can stop it with BREAK. Sam P.S. Maybe Ray can add BREAKability to IFs in the SQR wish list for ver. 7. >>> donm@ONTKO.COM 07/12/00 19:01 PM >>> On Wed, 12 Jul 2000 Rick_Creel@AONCONS.COM wrote: > If he is using several IF statements, then I believe the GOTO is the > only way to get to the end of a procedure. Actually, if statements can be nested. So... begin-procedure example if #w (misc. lines of code) else if #x (misc. lines of code) else if #y (misc. lines of code) else (misc. lines of code) end-if end-if end-if end-procedure example ...is perfectly workable. ----------------------------------------------------------------------- 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 Jul 12 23:52:09 2000 Date: Wed, 12 Jul 2000 22:36:17 -0500 From: Ray Ontko Subject: Re: Procedures Rick, Sam, Don, et al, > P.S. Maybe Ray can add BREAKability to IFs in the SQR wish list for ver. 7. A lot of existing code will break if BREAK is added to IF. BREAK is often used within a WHILE to conditionally break the loop. Some other languages allow you to specify the number of levels of nesting you wish to BREAK by putting a numeric argument after the BREAK keyword, but I think that this is unwise. It seems odd to allow an inner control structure to affect the processing of an outer structure. I think that the use of GOTO that has been discussed here is quite appropriate. I DO wish that SQR had an ELSE IF structure, however. Ray > >>> donm@ONTKO.COM 07/12/00 19:01 PM >>> > On Wed, 12 Jul 2000 Rick_Creel@AONCONS.COM wrote: > > > If he is using several IF statements, then I believe the GOTO is the > > only way to get to the end of a procedure. > > Actually, if statements can be nested. So... > > begin-procedure example > if #w > (misc. lines of code) > else > if #x > (misc. lines of code) > else > if #y > (misc. lines of code) > else > (misc. lines of code) > end-if > end-if > end-if > end-procedure example > > ...is perfectly workable. > > ----------------------------------------------------------------------- > Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/ > donm@ontko.com | "In the beginning, there was nothing, which exploded" > ---------------------------------------------------------------------- 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 Fri Jul 14 10:49:12 2000 Date: Fri, 14 Jul 2000 09:26:48 -0500 From: Nathan Stratton Treadway Subject: Re: Procedures On Wed, Jul 12, 2000 at 04:06:17PM -0400, Derrick Fisher wrote: > Is there any command you can use to leave a procedure before reaching > the end-procedure command. For example say there are multiple IF > statements in a procedure and as soon as an IF statement executes you > want to exit the procedure so that no more IF statements will be > processed. Is there some form of EXIT command in SQR you can use to do > this ? Actually, I think there are sort of two different questions here. One is leaving a *procedure* "early". In other languages there is a RETURN statement that causes a procedure to exit immediately. There's no direct equivalent in SQR -- you have to fake it with GOTO or nested IFs or whatever so that execution flows to the bottom of your procedure and then passes back to the calling location in the usual way. A second but related question is "how can I skip over some statements and continue resume execution 'down the page a bit'". As other messages have said, GOTO may be appropriate here in SQR (and if there were some sort of "ELSEIF" we could avoid the need in many cases). The problem with using BREAK for this purpose is that it's not really clear where to jump to in this context -- how many IFs do you want to skip? However, you can just use a dummy WHILE to get around this problem: while 1 ! always enter loop; use BREAK to exit below if #x=1 let #y=2 break end-if if #y=2 let #x=7 break end-if break ! make sure we exit loop no matter what end-while In this case, the while loop gives a context out of which the BREAK should break.... (And, if this loop appears just before my END-PROCEDURE, then the BREAKs will basically act like "RETURNs" would have if they existed. :) ) Nathan ---------------------------------------------------------------------------- Nathan Stratton Treadway | Ray Ontko & Co. | Software consulting services nathant@ontko.com | Richmond, IN | http://www.ontko.com/ From owner-sqr-users@list.iex.net Wed Jul 12 17:37:33 2000 Date: Wed, 12 Jul 2000 17:19:05 -0400 From: Jenny Mckeon Subject: Column Headings Appearing Above level 1 break field print --=_1E4646C3.6F0E7E08 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline In my recently written report, I want the column headings to appear under = the department name. I am page breaking on Department, and it's my level 1 = control break, so I don't see how in the world the column names are = managing to come out on top, but they are. So the output looks like this: JOBCODE POSITION TITLE NAME EMPLID STATUS FTE ect. Department: 123456 AnyDeptName 99999999 Unit Clerk Smith,Joe 12345 A = 1.0 =20 What would cause this mixed up sequencing of report lines ? Code is attached. Any suggestions would be greatly appreciated. If this is an easy one I appologize (it's my first SQR program written = from scratch) Jenny Mckeon Shands Healthcare, Info. Svcs. Application Systems Analyst, Senior (352) 395-0680, ext. 8-5232 internet:mckeon@shands.ufl.edu --=_1E4646C3.6F0E7E08 Content-Type: text/plain Content-Disposition: attachment; filename="SQRPROG.TXT" !********************************* ! linrpt02: Turnover analysis * !********************************* !*********************************************************************** #include 'setenv.sqc' !Set environment #Include 'setup32.sqc' !Printer and page-size initialization begin-heading 8 let $Reporttitle = 'TURNOVER Test Report' #Include 'stdhtr08.sqc' ! print 'DEPARTMENT' (+1,1) print 'Budgt.' (+1,78) print 'Actual' (,83) print 'Transfer' (,103,8) print 'Transfered' (,91,10) print 'Jobcode' (+1,1) print 'Position Title' (0,10) print 'Name' (0,35, print 'Empl ID' (0,61,10) print 'Status' (0,72) print 'FTE' (,78) print 'FTE' (,84) print ' To Dept:' (,92,9) print 'Date' (,105) print 'Action' (,116,6) print 'Supervisor'(,123) end-heading !******************************************** begin-procedure Init-Report MOVE 'RNRPT01' TO $REPORTID do Stdapi-Init let $fromdate = '2000-06-01' let $thrudate = '2000-06-30' if $prcs_process_instance = '' do Ask-As-Of-Date else do Select-Parameters end-if do Init_Printer end-procedure !******************************************** begin-procedure Get-Values do Get-As-Of-Date end-procedure begin-program do Init-DateTime do Init-Number do Get-Current-DateTime do Init-Report do Main do Reset do Stdapi-Term end-program !*********************************************************************** begin-procedure Main !*********************************************************************** display 'in procedure main ' Begin-Select J.emplid DISPLAY &j.emplid J.empl_Rcd# J.deptid let $todept = &j.deptid J.Effdt let $acteffdt = &j.effdt J.Effseq display &j.Effseq J.Action let $action = &j.action do Select-Prior-Row >From PS_JOB J Where J.Deptid like '0103%' and J.Empl_status = 'A' and (J.Action not in ('REH')) and J.Effdt = (select Max(J1.Effdt) from PS_JOB J1 Where J1.Emplid = J.Emplid and J1.Effdt between $Fromdate and $Thrudate) and J.Effseq = (Select Max(J2.effseq) from PS_JOB J2 where J2.Emplid = J.Emplid and J2.Empl_Rcd# = J.Empl_Rcd# and J2.Effdt = J.Effdt) and Exists (select 'X' from PS_JOB JX where JX.emplid = J.emplid and JX.deptid <> J.deptid and JX.effdt = (select max(JZ.effdt) from PS_JOB JZ where JZ.emplid = JX.emplid and JZ.effdt < J.effdt) and JX.Effseq = (Select Max(JX1.effseq) from PS_JOB JX1 where JX1.Emplid = JX.Emplid and JX1.Empl_Rcd# = JX.Empl_Rcd# and JX1.Effdt = JX.Effdt)) End-Select End-Procedure !*********************************************************************** begin-procedure Select-Prior-Row !*********************************************************************** display 'in procedure select prior row ' Begin-Select loops=1 JP.DEPTID () on-break print=never level = 1 before=dept-change skiplines = 1 JP.Jobcode (+1,1) Pos.Descr (,12) P.name (,35,33) JP.emplid (,62,10) DISPLAY &JP.EMPLID JP.empl_Rcd# JP.Effdt JP.Effseq JP.Empl_status (,74) JP.Action Pos.Std_hrs_default let #FTE = &Pos.std_hrs_default / 40 do Format-Number(#FTE, $out, 'b9.99') print $out (0,78) JP.Std_hours display 'std hrs' display &jp.std_hours let #FTE = &JP.std_hours / 40 do Format-Number(#FTE, $out, 'b9.99') print $out (0,84) print $todept (0,91) print $acteffdt (0,103) print $action (0,116) P.Supervisor_id move &p.Supervisor_id to $emplid do Get-Employee-Name Print $name (,123) >From PS_JOB JP, PS_Personnel_Hist P, PS_Position_Data POS Where JP.Emplid = &J.emplid and JP.Empl_Rcd# = &J.Empl_Rcd# and JP.Effdt = (select Max(J1P.Effdt) from PS_JOB J1P Where J1P.Emplid = JP.Emplid and J1P.Empl_Rcd# = &J.Empl_Rcd# and J1P.Effdt < &J.effdt) and JP.Effseq = (Select Max(JP2.effseq) from PS_JOB JP2 where JP2.Emplid = JP.Emplid and JP2.Empl_Rcd# = JP.Empl_Rcd# and JP2.Effdt = JP.Effdt) and JP.Emplid = P.Emplid and P.Effdt = (select Max(P1.Effdt) from PS_Personnel_Hist P1 Where P1.Emplid = P.Emplid and P1.Effdt <= JP.effdt) and JP.Position_nbr = Pos.Position_nbr and Pos.Effdt = (select Max(P3.Effdt) from PS_Position_data P3 where P3.Position_nbr = Pos.Position_nbr and P3.effdt <= JP.effdt) order by JP.deptid End-Select CHAR End-Procedure begin-Procedure Dept-Change display 'in procedure dept change' new-page move &JP.DeptId to $DeptId do Get-Department-Name print 'DEPARTMENT:' (+1,1) print $DeptId (0,13) print $DeptName (0,30) End-Procedure #Include 'getcodta.sqc' !Get-Company-Data procedure #Include 'getdptnm.sqc' !Get Department Name from the Department Table #Include 'getempnm.sqc' !Get Employee Name #Include 'reset.sqc' !Reset printer procedure #include 'hrrnctl1.sqc' !Get run control parameter values #include 'hrgetval.sqc' !Get values mask routines #include 'askaod.sqc' !Ask As Of Date input #Include 'readxlat.sqc' !Read-Translate-Table procedure #Include 'curdttim.sqc' !Get-Current-DateTime procedure #Include 'datetime.sqc' !Routines for date and time formatting #Include 'number.sqc' !Routines to format numbers #Include 'stdapi.sqc' !Routines to Update Run Status #Include 'sqrtrans.sqc' #Include 'useprntr.sqc' --=_1E4646C3.6F0E7E08-- From owner-sqr-users@list.iex.net Fri Jul 14 17:44:40 2000 Date: Fri, 14 Jul 2000 17:11:55 -0400 From: "Risman, Mark" Subject: Re: Column Headings Appearing Above level 1 break field print Jenny, If I am following your code correctly, what you are seeing is exactly what would happen. You use "on-break...before=dept-change" - this would print your headings one line below the current line (since you specify (+1,1)). This will print before the data prints, since you said on-break=before. You then start printing the data, also initially at (+1,1), which would then print the data one line below the current line, which is the line with the headings on it. If you want to print your headings after all related rows have been selected, maybe you should investigate on-break=after instead of on-break=before. Hope this helps, - Mark -----Original Message----- From: Jenny Mckeon [mailto:MCKEON@SHANDS.UFL.EDU] Sent: Wednesday, July 12, 2000 5:19 PM To: SQR-USERS@list.iex.net Subject: Column Headings Appearing Above level 1 break field print << File: SQRPROG.TXT >> In my recently written report, I want the column headings to appear under the department name. I am page breaking on Department, and it's my level 1 control break, so I don't see how in the world the column names are managing to come out on top, but they are. So the output looks like this: JOBCODE POSITION TITLE NAME EMPLID STATUS FTE ect. Department: 123456 AnyDeptName 99999999 Unit Clerk Smith,Joe 12345 A 1.0 What would cause this mixed up sequencing of report lines ? Code is attached. Any suggestions would be greatly appreciated. If this is an easy one I appologize (it's my first SQR program written from scratch) Jenny Mckeon Shands Healthcare, Info. Svcs. Application Systems Analyst, Senior (352) 395-0680, ext. 8-5232 internet:mckeon@shands.ufl.edu From owner-sqr-users@list.iex.net Wed Jul 12 18:08:58 2000 Date: Wed, 12 Jul 2000 17:25:39 -0400 From: "Hurni, Daniel" Subject: Error 5528... Hi, I got this error : (SQR 5528) Sybase dbdesc: ct_results error in cursor 2. Did somebody know what it's meen. Thanks Daniel Hurni Stagiaire Informatique, MicroCell Télécom 1250, boul. René-Lévesque Ouest Tél: (514) 937-0102 ext. 7353 daniel.hurni@microcell.ca From owner-sqr-users@list.iex.net Mon Jul 17 10:00:10 2000 Date: Mon, 17 Jul 2000 09:39:54 -0400 From: "Wanko, Christopher G, CFCTR" Subject: Re: Error 5528... > I got this error : (SQR 5528) Sybase dbdesc: ct_results > error in cursor 2. Did somebody know what it's meen. What's the value of cursor 2? Re-run your SQR with the -S flag and list the errors. -Chris From owner-sqr-users@list.iex.net Mon Jul 17 11:29:03 2000 Date: Mon, 17 Jul 2000 10:56:34 -0400 From: "Hurni, Daniel" Subject: Re: Error 5528... Thanks Chris and Mark, The table PS_PROXY_JOB is a proxy table, I can do all my requests with SQL Advantage but it don't works with the SQR Process. Did sombody know how I can fix this problem? PS: Here is my log file, (SQR 5528) Sybase dbdesc: ct_results error in cursor 2: Error on line 178: (SQR 3716) Error in SQL statement. (SQR 5528) Sybase dbdesc: ct_results error in cursor 19: Error on line 240: (SQR 3716) Error in SQL statement. Errors were found in the program file. SQR: Program Aborting. Cursor Status: Cursor #2: SQL = select B.EMPLID, B.POSITION_NBR, B.DEPTID, B.COMPANY, B.EFFDT, B.EMPL_STATUS from PS_PROXY_JOB B where B.EFFDT = (SELECT MAX(EFFDT) FROM PS_PROXY_JOB WHERE B.EMPLID = EMPLID AND B.EMPL_RCD# = EMPL_RCD# AND EFFDT <= @__p1) and B.EFFSEQ = (SELECT MAX(EFFSEQ) FROM PS_PROXY_JOB WHERE B.EMPLID = EMPLID AND B.EMPL_RCD# = EMPL_RCD# AND B.EFFDT = EFFDT) Compiles = 1 Executes = 0 Rows = 0 Cursor #19: SQL = select EMPLID from PS_PROXY_JOB Compiles = 1 Executes = 0 Rows = 0 Daniel Hurni Stagiaire Informatique, MicroCell Télécom 1250, boul. René-Lévesque Ouest Tél: (514) 937-0102 ext. 7353 daniel.hurni@microcell.ca -----Original Message----- From: Wanko, Christopher G, CFCTR [mailto:apollo@ATT.COM] Sent: Monday, July 17, 2000 9:40 AM To: SQR-USERS@list.iex.net Subject: Re: Error 5528... > I got this error : (SQR 5528) Sybase dbdesc: ct_results > error in cursor 2. Did somebody know what it's meen. What's the value of cursor 2? Re-run your SQR with the -S flag and list the errors. -Chris From owner-sqr-users@list.iex.net Wed Jul 12 18:37:16 2000 Date: Wed, 12 Jul 2000 18:10:51 -0400 From: Mark Castleberry Subject: Re: Column Headings Appearing Above level 1 break field print --0__=8525691A0079626D8f9e8a93df938690918c8525691A0079626D Content-type: text/plain; charset=us-ascii To print a value in the heading you will need to add the print commands for that value to the BEGIN-HEADING section of the report. BEGIN-HEADING 8, as you have specified, will reserve the first 8 rows of each page for the report heading. Other print commands will begin on the next available line. That is why the print commands in your Dept-Change procedure print below the heading columns. Keep in mind that the heading is the last part of the page to be printed. This means that if you use a variable in BEGIN-HEADING the contents of the variable when SQR reaches the end of the page will be printed (rather than the beginning). Good luck! Mark Jenny Mckeon cc: Sent by: Subject: Column Headings Appearing Above level 1 break field print "Discussion of SQR, Brio Technology's database reporting language" 07/12/00 05:19 PM Please respond to sqr-users In my recently written report, I want the column headings to appear under the department name. I am page breaking on Department, and it's my level 1 control break, so I don't see how in the world the column names are managing to come out on top, but they are. So the output looks like this: JOBCODE POSITION TITLE NAME EMPLID STATUS FTE ect. Department: 123456 AnyDeptName 99999999 Unit Clerk Smith,Joe 12345 A 1.0 What would cause this mixed up sequencing of report lines ? Code is attached. Any suggestions would be greatly appreciated. If this is an easy one I appologize (it's my first SQR program written from scratch) Jenny Mckeon Shands Healthcare, Info. Svcs. Application Systems Analyst, Senior (352) 395-0680, ext. 8-5232 internet:mckeon@shands.ufl.edu (See attached file: SQRPROG.TXT) --0__=8525691A0079626D8f9e8a93df938690918c8525691A0079626D Content-type: application/octet-stream; name="SQRPROG.TXT" Content-Disposition: attachment; filename="SQRPROG.TXT" Content-transfer-encoding: base64 Content-Description: Text - character set unknown ISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg0KISAgbGlucnB0MDI6IFR1cm5vdmVy IGFuYWx5c2lzICAgKg0KISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg0KISoqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqDQoNCiNpbmNsdWRlICdzZXRlbnYuc3FjJyAgICAhU2V0IGVudmlyb25tZW50DQoj SW5jbHVkZSAnc2V0dXAzMi5zcWMnICAgIVByaW50ZXIgYW5kIHBhZ2Utc2l6ZSBpbml0aWFsaXph dGlvbg0KDQpiZWdpbi1oZWFkaW5nIDgNCmxldCAkUmVwb3J0dGl0bGUgPSAnVFVSTk9WRVIgVGVz dCBSZXBvcnQnDQojSW5jbHVkZSAnc3RkaHRyMDguc3FjJw0KDQohICBwcmludCAnREVQQVJUTUVO VCcgICAgICAgICAgKCsxLDEpDQoNCg0KICAgcHJpbnQgJ0J1ZGd0LicgICAgICAgICAgICAoKzEs NzgpDQogICBwcmludCAnQWN0dWFsJyAgICAgICAgICAgICgsODMpDQogICBwcmludCAnVHJhbnNm ZXInICAgICAgICAgICAoLDEwMyw4KQ0KICAgcHJpbnQgJ1RyYW5zZmVyZWQnICAgICAoLDkxLDEw KQ0KICAgcHJpbnQgJ0pvYmNvZGUnICAgICAgICAgICAgICAoKzEsMSkNCiAgIHByaW50ICdQb3Np dGlvbiBUaXRsZScgICAgICAgKDAsMTApDQogICBwcmludCAnTmFtZScgICAgICAgICAgICAgICAg ICgwLDM1LA0KICAgcHJpbnQgJ0VtcGwgSUQnICAgICAgICAgICAgICAoMCw2MSwxMCkNCiAgIHBy aW50ICdTdGF0dXMnICAgICAgICAgICAgICAgKDAsNzIpDQogICBwcmludCAnRlRFJyAgICAgICAg ICAgICAgICAgICgsNzgpDQogICBwcmludCAnRlRFJyAgICAgICAgICAgICAgICAgICgsODQpDQog ICBwcmludCAnIFRvIERlcHQ6JyAgICAoLDkyLDkpDQogICBwcmludCAnRGF0ZScgICAgICgsMTA1 KQ0KICAgcHJpbnQgJ0FjdGlvbicgICAgICgsMTE2LDYpDQogICBwcmludCAnU3VwZXJ2aXNvcico LDEyMykNCmVuZC1oZWFkaW5nDQoNCiEqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKg0KYmVnaW4tcHJvY2VkdXJlIEluaXQtUmVwb3J0DQoNCiAgTU9WRSAnUk5SUFQw MScgVE8gJFJFUE9SVElEDQogIGRvIFN0ZGFwaS1Jbml0DQogIGxldCAkZnJvbWRhdGUgPSAnMjAw MC0wNi0wMScNCiAgbGV0ICR0aHJ1ZGF0ZSA9ICcyMDAwLTA2LTMwJw0KICBpZiAkcHJjc19wcm9j ZXNzX2luc3RhbmNlID0gJycNCiAgICBkbyBBc2stQXMtT2YtRGF0ZQ0KICBlbHNlDQogICAgZG8g U2VsZWN0LVBhcmFtZXRlcnMNCiAgZW5kLWlmDQpkbyBJbml0X1ByaW50ZXINCg0KZW5kLXByb2Nl ZHVyZQ0KDQohKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioNCmJl Z2luLXByb2NlZHVyZSBHZXQtVmFsdWVzDQoNCiAgIGRvIEdldC1Bcy1PZi1EYXRlDQoNCmVuZC1w cm9jZWR1cmUNCg0KYmVnaW4tcHJvZ3JhbQ0KICAgZG8gSW5pdC1EYXRlVGltZQ0KICAgZG8gSW5p dC1OdW1iZXINCiAgIGRvIEdldC1DdXJyZW50LURhdGVUaW1lDQogICBkbyBJbml0LVJlcG9ydA0K ICAgZG8gTWFpbg0KICAgZG8gUmVzZXQNCiAgIGRvIFN0ZGFwaS1UZXJtDQplbmQtcHJvZ3JhbQ0K DQohKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioNCmJlZ2luLXByb2NlZHVyZSBNYWluDQohKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioN CmRpc3BsYXkgICdpbiBwcm9jZWR1cmUgbWFpbiAgJw0KQmVnaW4tU2VsZWN0DQpKLmVtcGxpZA0K ICBESVNQTEFZICZqLmVtcGxpZA0KSi5lbXBsX1JjZCMNCkouZGVwdGlkDQogIGxldCAkdG9kZXB0 ID0gJmouZGVwdGlkDQpKLkVmZmR0DQogIGxldCAkYWN0ZWZmZHQgPSAmai5lZmZkdA0KSi5FZmZz ZXENCiAgZGlzcGxheSAmai5FZmZzZXENCkouQWN0aW9uDQogIGxldCAkYWN0aW9uID0gJmouYWN0 aW9uDQogICAgIGRvIFNlbGVjdC1Qcmlvci1Sb3cNCkZyb20gUFNfSk9CIEoNCldoZXJlIEouRGVw dGlkIGxpa2UgJzAxMDMlJw0KYW5kIEouRW1wbF9zdGF0dXMgPSAnQScNCmFuZCAoSi5BY3Rpb24g bm90IGluICgnUkVIJykpDQphbmQgSi5FZmZkdCA9IChzZWxlY3QgTWF4KEoxLkVmZmR0KQ0KICAg ICBmcm9tIFBTX0pPQiBKMQ0KICAgICBXaGVyZSBKMS5FbXBsaWQgPSBKLkVtcGxpZA0KICAgICBh bmQgSjEuRWZmZHQgYmV0d2VlbiAkRnJvbWRhdGUgYW5kICRUaHJ1ZGF0ZSkNCiAgYW5kIEouRWZm c2VxID0gKFNlbGVjdCBNYXgoSjIuZWZmc2VxKQ0KICAgICAgICAgZnJvbSBQU19KT0IgSjINCiAg ICAgICAgIHdoZXJlIEoyLkVtcGxpZCAgICA9IEouRW1wbGlkDQogICAgICAgICBhbmQgICBKMi5F bXBsX1JjZCMgPSBKLkVtcGxfUmNkIw0KICAgICAgICAgYW5kIEoyLkVmZmR0ID0gSi5FZmZkdCkN CmFuZCBFeGlzdHMNCiAgICAoc2VsZWN0ICdYJyBmcm9tIFBTX0pPQiBKWA0Kd2hlcmUgSlguZW1w bGlkID0gSi5lbXBsaWQNCmFuZCAgSlguZGVwdGlkIDw+IEouZGVwdGlkDQphbmQgIEpYLmVmZmR0 ID0gKHNlbGVjdCBtYXgoSlouZWZmZHQpIGZyb20gUFNfSk9CIEpaDQogICAgICAgICAgICAgICAg IHdoZXJlIEpaLmVtcGxpZCA9IEpYLmVtcGxpZA0KICAgICAgICAgICAgICAgICAgIGFuZCBKWi5l ZmZkdCA8ICBKLmVmZmR0KQ0KICBhbmQgSlguRWZmc2VxID0gKFNlbGVjdCBNYXgoSlgxLmVmZnNl cSkNCiAgICAgICAgIGZyb20gUFNfSk9CIEpYMQ0KICAgICAgICAgd2hlcmUgSlgxLkVtcGxpZCAg ICA9IEpYLkVtcGxpZA0KICAgICAgICAgYW5kICAgSlgxLkVtcGxfUmNkIyA9IEpYLkVtcGxfUmNk Iw0KICAgICAgICAgYW5kIEpYMS5FZmZkdCA9IEpYLkVmZmR0KSkNCg0KRW5kLVNlbGVjdA0KRW5k LVByb2NlZHVyZQ0KDQohKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioNCmJlZ2luLXByb2NlZHVyZSBTZWxlY3QtUHJp b3ItUm93DQohKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioNCmRpc3BsYXkgICdpbiBwcm9jZWR1cmUgc2VsZWN0IHBy aW9yIHJvdyAnDQpCZWdpbi1TZWxlY3QgIGxvb3BzPTENCkpQLkRFUFRJRCAgICAgKCkgIG9uLWJy ZWFrIHByaW50PW5ldmVyDQogICAgICAgICAgICAgbGV2ZWwgPSAxDQogICAgICAgICAgICAgYmVm b3JlPWRlcHQtY2hhbmdlDQogICAgICAgICAgICAgc2tpcGxpbmVzID0gMQ0KSlAuSm9iY29kZSAg ICAgICAoKzEsMSkNClBvcy5EZXNjciAgICAgICAgKCwxMikNClAubmFtZSAgICAgICAoLDM1LDMz KQ0KSlAuZW1wbGlkICAgICgsNjIsMTApDQogICBESVNQTEFZICZKUC5FTVBMSUQNCkpQLmVtcGxf UmNkIw0KSlAuRWZmZHQNCkpQLkVmZnNlcQ0KSlAuRW1wbF9zdGF0dXMgICgsNzQpDQpKUC5BY3Rp b24NClBvcy5TdGRfaHJzX2RlZmF1bHQNCiAgbGV0ICNGVEUgPSAmUG9zLnN0ZF9ocnNfZGVmYXVs dCAvIDQwDQogIGRvIEZvcm1hdC1OdW1iZXIoI0ZURSwgJG91dCwgJ2I5Ljk5JykNCiAgcHJpbnQg JG91dCAgICAgICAgICAgICAgICAoMCw3OCkNCkpQLlN0ZF9ob3Vycw0KICBkaXNwbGF5ICdzdGQg aHJzJw0KICBkaXNwbGF5ICZqcC5zdGRfaG91cnMNCiAgbGV0ICNGVEUgPSAmSlAuc3RkX2hvdXJz IC8gNDANCiAgZG8gRm9ybWF0LU51bWJlcigjRlRFLCAkb3V0LCAnYjkuOTknKQ0KICBwcmludCAk b3V0ICAgICAgICAgICAgICAgICgwLDg0KQ0KICBwcmludCAkdG9kZXB0ICAgICAgICAgICAgICgw LDkxKQ0KICBwcmludCAkYWN0ZWZmZHQgICAgICAgICAgICgwLDEwMykNCiAgcHJpbnQgJGFjdGlv biAgICAgICAgICAgICAoMCwxMTYpDQpQLlN1cGVydmlzb3JfaWQNCiBtb3ZlICZwLlN1cGVydmlz b3JfaWQgdG8gJGVtcGxpZA0KIGRvIEdldC1FbXBsb3llZS1OYW1lDQogUHJpbnQgJG5hbWUgICAg ICAgICAgKCwxMjMpDQoNCg0KRnJvbSBQU19KT0IgSlAsDQogICAgIFBTX1BlcnNvbm5lbF9IaXN0 IFAsDQogICAgIFBTX1Bvc2l0aW9uX0RhdGEgIFBPUw0KV2hlcmUgSlAuRW1wbGlkID0gJkouZW1w bGlkDQphbmQgSlAuRW1wbF9SY2QjID0gJkouRW1wbF9SY2QjDQphbmQgSlAuRWZmZHQgPSAoc2Vs ZWN0IE1heChKMVAuRWZmZHQpDQogICAgIGZyb20gUFNfSk9CIEoxUA0KICAgICBXaGVyZSBKMVAu RW1wbGlkID0gSlAuRW1wbGlkDQogICAgIGFuZCBKMVAuRW1wbF9SY2QjID0gJkouRW1wbF9SY2Qj DQogICAgIGFuZCBKMVAuRWZmZHQgICA8ICZKLmVmZmR0KQ0KICBhbmQgSlAuRWZmc2VxID0gKFNl bGVjdCBNYXgoSlAyLmVmZnNlcSkNCiAgICAgICAgIGZyb20gUFNfSk9CIEpQMg0KICAgICAgICAg d2hlcmUgSlAyLkVtcGxpZCAgICA9IEpQLkVtcGxpZA0KICAgICAgICAgYW5kICAgSlAyLkVtcGxf UmNkIyA9IEpQLkVtcGxfUmNkIw0KICAgICAgICAgYW5kIEpQMi5FZmZkdCA9IEpQLkVmZmR0KQ0K YW5kIEpQLkVtcGxpZCAgICA9IFAuRW1wbGlkDQphbmQgUC5FZmZkdCA9IChzZWxlY3QgTWF4KFAx LkVmZmR0KQ0KICAgICBmcm9tIFBTX1BlcnNvbm5lbF9IaXN0IFAxDQogICAgIFdoZXJlIFAxLkVt cGxpZCA9IFAuRW1wbGlkDQogICAgIGFuZCBQMS5FZmZkdCAgIDw9ICAgSlAuZWZmZHQpDQphbmQg SlAuUG9zaXRpb25fbmJyID0gUG9zLlBvc2l0aW9uX25icg0KYW5kIFBvcy5FZmZkdCA9IChzZWxl Y3QgTWF4KFAzLkVmZmR0KQ0KICAgICBmcm9tIFBTX1Bvc2l0aW9uX2RhdGEgUDMNCiAgICAgd2hl cmUgUDMuUG9zaXRpb25fbmJyID0gUG9zLlBvc2l0aW9uX25icg0KICAgICBhbmQgUDMuZWZmZHQg PD0gSlAuZWZmZHQpDQpvcmRlciBieSBKUC5kZXB0aWQNCkVuZC1TZWxlY3QgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIENIQVINCkVu ZC1Qcm9jZWR1cmUNCg0KDQoNCg0KYmVnaW4tUHJvY2VkdXJlIERlcHQtQ2hhbmdlDQpkaXNwbGF5 ICAnaW4gcHJvY2VkdXJlIGRlcHQgY2hhbmdlJw0KICBuZXctcGFnZQ0KICBtb3ZlICZKUC5EZXB0 SWQgdG8gJERlcHRJZA0KICBkbyBHZXQtRGVwYXJ0bWVudC1OYW1lDQogICBwcmludCAnREVQQVJU TUVOVDonICAgICAgICAgICgrMSwxKQ0KICAgcHJpbnQgJERlcHRJZCAgICAgICAgICAgICAgICAo MCwxMykNCiAgIHByaW50ICREZXB0TmFtZSAgICAgICAgICAgICAgKDAsMzApDQpFbmQtUHJvY2Vk dXJlDQoNCg0KI0luY2x1ZGUgJ2dldGNvZHRhLnNxYycgICFHZXQtQ29tcGFueS1EYXRhIHByb2Nl ZHVyZQ0KI0luY2x1ZGUgJ2dldGRwdG5tLnNxYycgICFHZXQgRGVwYXJ0bWVudCBOYW1lIGZyb20g dGhlIERlcGFydG1lbnQgVGFibGUNCiNJbmNsdWRlICdnZXRlbXBubS5zcWMnICAhR2V0IEVtcGxv eWVlIE5hbWUNCiNJbmNsdWRlICdyZXNldC5zcWMnICAgICAhUmVzZXQgcHJpbnRlciBwcm9jZWR1 cmUNCiNpbmNsdWRlICdocnJuY3RsMS5zcWMnICAhR2V0IHJ1biBjb250cm9sIHBhcmFtZXRlciB2 YWx1ZXMNCiNpbmNsdWRlICdocmdldHZhbC5zcWMnICAhR2V0IHZhbHVlcyBtYXNrIHJvdXRpbmVz DQojaW5jbHVkZSAnYXNrYW9kLnNxYycgICAgIUFzayBBcyBPZiBEYXRlIGlucHV0DQojSW5jbHVk ZSAncmVhZHhsYXQuc3FjJyAgIVJlYWQtVHJhbnNsYXRlLVRhYmxlIHByb2NlZHVyZQ0KI0luY2x1 ZGUgJ2N1cmR0dGltLnNxYycgICFHZXQtQ3VycmVudC1EYXRlVGltZSBwcm9jZWR1cmUNCiNJbmNs dWRlICdkYXRldGltZS5zcWMnICAhUm91dGluZXMgZm9yIGRhdGUgYW5kIHRpbWUgZm9ybWF0dGlu Zw0KI0luY2x1ZGUgJ251bWJlci5zcWMnICAgICFSb3V0aW5lcyB0byBmb3JtYXQgbnVtYmVycw0K I0luY2x1ZGUgJ3N0ZGFwaS5zcWMnICAgICFSb3V0aW5lcyB0byBVcGRhdGUgUnVuIFN0YXR1cw0K I0luY2x1ZGUgJ3NxcnRyYW5zLnNxYycNCiNJbmNsdWRlICd1c2Vwcm50ci5zcWMnDQoNCg== --0__=8525691A0079626D8f9e8a93df938690918c8525691A0079626D-- From owner-sqr-users@list.iex.net Thu Jul 13 13:54:05 2000 Date: Thu, 13 Jul 2000 13:28:28 -0400 From: Steve_Talley@ADVANTECHSOLUTIONS.COM Subject: DateTime - Computing Elapse job time Hello all and thanks in advance - I need to compute wall time for particular batch job. For psoft users, I am looking at the following: Table: PSPRCSRQST Fields (Begindttm, Enddttm) -- In Oracle 734 date format What I would like is to subtract the begin time from the end time resulting in elapse time. However, I am having formatting problems in SQL. Can anyone provide me an SQL statement to do this? Or perhaps someother means. Thanks again. SELECT A.PRCSNAME, A.BEGINDTTM, A.ENDDTTM, a.enddttm - a.begindttm -- Need to compute this and then format...but having problems. FROM PSPRCSRQST A From owner-sqr-users@list.iex.net Thu Jul 13 14:23:54 2000 Date: Thu, 13 Jul 2000 14:03:38 EDT From: Vishner@AOL.COM Subject: Re: DateTime - Computing Elapse job time It appears that the difference is passed as part of a day. You could add this difference to (midnight of ) an arbitrary date and then get the time component. This would work for time periods less than 24 hours: SELECT A.PRCSNAME, to_char(A.BEGINDTTM,'mm/dd/yy hh:mi:ss'), to_char(A.ENDDTTM,'mm/dd/yy hh:mi:ss'), to_char(to_date('010101','mmddyy') + (A.enddttm - A.begindttm),'HH24:MI:SS') FROM PSPRCSRQST A HTH, Hugh In a message dated Thu, 13 Jul 2000 1:34:49 PM Eastern Daylight Time, Steve_Talley@ADVANTECHSOLUTIONS.COM writes: << Hello all and thanks in advance - I need to compute wall time for particular batch job. For psoft users, I am looking at the following: Table: PSPRCSRQST Fields (Begindttm, Enddttm) -- In Oracle 734 date format What I would like is to subtract the begin time from the end time resulting in elapse time. However, I am having formatting problems in SQL. Can anyone provide me an SQL statement to do this? Or perhaps someother means. Thanks again. SELECT A.PRCSNAME, A.BEGINDTTM, A.ENDDTTM, a.enddttm - a.begindttm -- Need to compute this and then format...but having problems. FROM PSPRCSRQST A >> From owner-sqr-users@list.iex.net Thu Jul 13 14:41:14 2000 Date: Thu, 13 Jul 2000 14:18:43 -0400 From: Steve_Talley@ADVANTECHSOLUTIONS.COM Subject: Re: DateTime - Computing Elapse job time Thanks Hugh, works great - hope I can return the favor to group someday. Vishner@AOL.COM on 07/13/2000 02:03:38 PM Please respond to sqr-users@list.iex.net To: SQR-USERS@list.iex.net cc: (bcc: Steve Talley/TPA/AdvanTech) Subject: Re: DateTime - Computing Elapse job time It appears that the difference is passed as part of a day. You could add this difference to (midnight of ) an arbitrary date and then get the time component. This would work for time periods less than 24 hours: SELECT A.PRCSNAME, to_char(A.BEGINDTTM,'mm/dd/yy hh:mi:ss'), to_char(A.ENDDTTM,'mm/dd/yy hh:mi:ss'), to_char(to_date('010101','mmddyy') + (A.enddttm - A.begindttm),'HH24:MI:SS') FROM PSPRCSRQST A HTH, Hugh In a message dated Thu, 13 Jul 2000 1:34:49 PM Eastern Daylight Time, Steve_Talley@ADVANTECHSOLUTIONS.COM writes: << Hello all and thanks in advance - I need to compute wall time for particular batch job. For psoft users, I am looking at the following: Table: PSPRCSRQST Fields (Begindttm, Enddttm) -- In Oracle 734 date format What I would like is to subtract the begin time from the end time resulting in elapse time. However, I am having formatting problems in SQL. Can anyone provide me an SQL statement to do this? Or perhaps someother means. Thanks again. SELECT A.PRCSNAME, A.BEGINDTTM, A.ENDDTTM, a.enddttm - a.begindttm -- Need to compute this and then format...but having problems. FROM PSPRCSRQST A >> From owner-sqr-users@list.iex.net Thu Jul 13 14:39:21 2000 Date: Thu, 13 Jul 2000 14:07:04 -0400 From: "Bunyea, Mark" Subject: SQLBase Configuration Hi all, I'm trying to connect to sqlbase from an installation that is normally connected to Oracle. I changed my rdbms.sqc to use SQLBASE but when I run the sqr I get SQR err msg SQR-5528 - ORACLE ORLON ERROR -1004 in cursor 0: Please help. Thank you. From owner-sqr-users@list.iex.net Thu Jul 13 19:47:10 2000 Date: Thu, 13 Jul 2000 18:16:34 -0000 From: Enrique Munoz Subject: Re: Using $anyvariable in order Or you can do this: let $Month = substr(J.effdt, 6,2) let $orderby = 'ORDER BY ' || $Month begin-SELECT J.FOO J.BAR substring(J.EFFDT,6,2) FROM TABLENAME [$orderby] end-select -----Mensaje original----- De: Jason Gill [SMTP:Jason.Gill@WELLPOINT.COM] Enviado el: jueves 13 de julio de 2000 16:29 Para: SQR-USERS@list.iex.net Asunto: Re: Using $anyvariable in order >I need to order a report by Department, Month. I'm deriving month from the the effective date as follows >$Month = substr(J.effdt, 6,2) .. The order by clause does not appear to accept anything but a column >variable. Is there a way to get around this constraint ? Repeat the substr in the order by. I don't know your database, but in Sybase it would look like this : begin-SELECT J.FOO J.BAR substring(J.EFFDT,6,2) FROM TABLENAME ORDER BY substring(J.EFFDT,6,2) end-select This works for any operation on a column. I've use LPAD in the ORDER BY to numerically sort non-zero-padded numerical data in a character field. -- Jason Gill Independent PeopleSoft Consultant 619.723.5881 From owner-sqr-users@list.iex.net Thu Jul 13 18:46:33 2000 Date: Thu, 13 Jul 2000 15:29:00 -0700 From: Jason Gill Subject: Re: Using $anyvariable in order >I need to order a report by Department, Month. I'm deriving month from the the effective date as follows >$Month = substr(J.effdt, 6,2) .. The order by clause does not appear to accept anything but a column >variable. Is there a way to get around this constraint ? Repeat the substr in the order by. I don't know your database, but in Sybase it would look like this : begin-SELECT J.FOO J.BAR substring(J.EFFDT,6,2) FROM TABLENAME ORDER BY substring(J.EFFDT,6,2) end-select This works for any operation on a column. I've use LPAD in the ORDER BY to numerically sort non-zero-padded numerical data in a character field. -- Jason Gill Independent PeopleSoft Consultant 619.723.5881 From owner-sqr-users@list.iex.net Mon Jul 17 17:06:53 2000 Date: Mon, 17 Jul 2000 16:51:03 -0400 From: Scott Barnes Subject: Re: Using $anyvariable in order Try order by TO_CHAR(j.EFFDT,'MM') scotty At 06:29 PM 7/13/00, you wrote: > >I need to order a report by Department, Month. I'm deriving month from the > the effective date as follows > >$Month = substr(J.effdt, 6,2) .. The order by clause does not appear to >accept anything but a column >variable. Is there a way to get around this >constraint ? > >Repeat the substr in the order by. I don't know your database, but in Sybase >it would look like this : > >begin-SELECT > >J.FOO >J.BAR >substring(J.EFFDT,6,2) >FROM TABLENAME >ORDER BY substring(J.EFFDT,6,2) > >end-select > > >This works for any operation on a column. I've use LPAD in the ORDER BY to >numerically sort non-zero-padded numerical data in a character field. > >-- >Jason Gill >Independent PeopleSoft Consultant >619.723.5881 From owner-sqr-users@list.iex.net Thu Jul 13 20:22:31 2000 Date: Thu, 13 Jul 2000 20:06:13 -0400 From: Jenny Mckeon Subject: Re: Using $anyvariable in order --=_E4BCBE82.DFBECEEC Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thanks, that would work well except for one wrinkle. I'm using fields = from both current and prior rows in this SQR, and the month is in the = current row, whereas the department is in the prior row. I'm doing my = control breaking in the called procedure (which selects the prior row), = passing it the current row's effective date as (I think what is called) a = bind variable. =20 Apparently you can't use a column from another select (a bind variable) in = the order by. The two selects are attached. Jenny Mckeon Shands Healthcare, Info. Svcs. Application Systems Analyst, Senior (352) 395-0680, ext. 8-5232 internet:mckeon@shands.ufl.edu >>> Jason.Gill@WELLPOINT.COM 07/13/00 06:29PM >>> >I need to order a report by Department, Month. I'm deriving month from = the the effective date as follows >$Month =3D substr(J.effdt, 6,2) .. The order by clause does not appear = to accept anything but a column >variable. Is there a way to get around = this constraint ? Repeat the substr in the order by. I don't know your database, but in = Sybase it would look like this : begin-SELECT J.FOO J.BAR substring(J.EFFDT,6,2) FROM TABLENAME ORDER BY substring(J.EFFDT,6,2) end-select This works for any operation on a column. I've use LPAD in the ORDER BY = to numerically sort non-zero-padded numerical data in a character field. -- Jason Gill Independent PeopleSoft Consultant 619.723.5881 --=_E4BCBE82.DFBECEEC Content-Type: text/plain Content-Disposition: attachment; filename="SQRPROG.TXT" !*********************************************************************** begin-procedure Main !*********************************************************************** display 'in procedure main ' Begin-Select J.emplid DISPLAY &j.emplid J.empl_Rcd# J.deptid let $todept = &j.deptid J.Effdt let $acteffdt = &j.effdt do Get-Month J.Effseq display &j.Effseq J.Action let $action = &j.action do Select-Prior-Row >From PS_JOB J where (J.Action not in ('REH')) and J.Effdt = (select Max(J1.Effdt) from PS_JOB J1 Where J1.Emplid = J.Emplid and J1.Effdt between $Fromdate and $Thrudate) and J.Effseq = (Select Max(J2.effseq) from PS_JOB J2 where J2.Emplid = J.Emplid and J2.Empl_Rcd# = J.Empl_Rcd# and J2.Effdt = J.Effdt) and Exists (select 'X' from PS_JOB JX where JX.emplid = J.emplid and JX.Deptid like '0103%' and JX.deptid <> J.deptid and JX.effdt = (select max(JZ.effdt) from PS_JOB JZ where JZ.emplid = JX.emplid and JZ.effdt < J.effdt) and JX.Effseq = (Select Max(JX1.effseq) from PS_JOB JX1 where JX1.Emplid = JX.Emplid and JX1.Empl_Rcd# = JX.Empl_Rcd# and JX1.Effdt = JX.Effdt)) End-Select End-Procedure !*********************************************************************** begin-procedure Select-Prior-Row !*********************************************************************** display 'in procedure select prior row ' Begin-Select Loops=1 JP.DEPTID () on-break print=never level=1 save=$oldept Before=dept-change skiplines = 1 print $month (+1,1) on-break print=change/top-page level=2 save = $oldmonth After=dept-totals skiplines=1 JP.Jobcode (,7) on-break print=change/top-page level=3 Pos.Descr (,18) P.name (,44,33) JP.emplid (,69,10) DISPLAY &JP.EMPLID JP.empl_Rcd# JP.Effdt JP.Effseq JP.Empl_status (,82) JP.Action Pos.Std_hrs_default let #FTE = &Pos.std_hrs_default / 40 do Format-Number(#FTE, $out, 'b9.99') print $out (0,89) JP.Std_hours display 'std hrs' display &jp.std_hours let #FTE = &JP.std_hours / 40 do Format-Number(#FTE, $out, 'b9.99') print $out (0,95) print $action (0,103) print $todept (0,120) print $acteffdt (0,109) add 1 to #Empl_cnt add 1 to #Grand_cnt P.Supervisor_id move &p.Supervisor_id to $emplid do Get-Employee-Name Print $name (,133) >From PS_JOB JP, PS_Personnel_Hist P, PS_Position_Data POS Where JP.Emplid = &J.emplid and JP.Empl_Rcd# = &J.Empl_Rcd# and JP.Effdt = (select Max(J1P.Effdt) from PS_JOB J1P Where J1P.Emplid = JP.Emplid and J1P.Empl_Rcd# = &J.Empl_Rcd# and J1P.Effdt < &J.effdt) and JP.Effseq = (Select Max(JP2.effseq) from PS_JOB JP2 where JP2.Emplid = JP.Emplid and JP2.Empl_Rcd# = JP.Empl_Rcd# and JP2.Effdt = JP.Effdt) and JP.Emplid = P.Emplid and P.Effdt = (select Max(P1.Effdt) from PS_Personnel_Hist P1 Where P1.Emplid = P.Emplid and P1.Effdt <= JP.effdt) and JP.Position_nbr = Pos.Position_nbr and Pos.Effdt = (select Max(P3.Effdt) from PS_Position_data P3 where P3.Position_nbr = Pos.Position_nbr and P3.effdt <= JP.effdt) order by JP.deptid End-Select CHAR End-Procedure begin-Procedure Dept-Change display 'in procedure dept change' new-page move &JP.DeptId to $DeptId do Get-Department-Name End-Procedure begin-Procedure Get-Month let $Month = SUBSTR($acteffdt,6,2) evaluate $Month when = '01' let $Month = 'Jan' break when = '02' let $Month = 'Feb' break when = '03' let $Month = 'Mar' break when = '04' let $Month = 'Apr' break when = '05' let $Month = 'May' break when = '06' let $Month = 'Jun' break when = '07' let $Month = 'Jul' break when = '08' let $Month = 'Aug' break when = '09' let $Month = 'Sep' break when = '10' let $Month = 'Oct' break when = '11' let $Month = 'Nov' break when = '12' let $Month = 'Dec' break end-evaluate End-Procedure begin-Procedure Dept-Totals display 'in procedure dept totals' Let $emplcnt = to_char(#empl_cnt) Let $total = 'Total for Department ' || $oldept || ' for ' || ' the month of ' || $oldmonth print $total (+2,1) print ': ' (0,+1) print $emplcnt (0,57) print ' ' (+2,1) let #empl_cnt = 0 End-Procedure --=_E4BCBE82.DFBECEEC-- From owner-sqr-users@list.iex.net Thu Jul 13 15:02:17 2000 Date: Thu, 13 Jul 2000 14:38:49 -0400 From: Steve_Talley@ADVANTECHSOLUTIONS.COM Subject: Re: Operator Class Import! --0__=aVoF2ZqAiD7MgNzcnubPkiGBlMK2SkCYpoGab7XaghgIklx0QU6KE8UD Content-type: text/plain; charset=us-ascii Content-Disposition: inline Try these in DMS. (See attached file: expcls.dms)(See attached file: impcls.dms) Cheikh Fall on 07/13/2000 02:39:22 PM Please respond to sqr-users@list.iex.net To: SQR-USERS@list.iex.net cc: (bcc: Steve Talley/TPA/AdvanTech) Subject: Operator Class Import! Gurus, Does anyone has a script that export/import just one Operator Class from one Database to another in peoplesoft? For example from TRAIN to PROD. Sorry about such PSFT question... We are on NT, ORACLE 8, PSFT 7 Thanks -Cheikh --0__=aVoF2ZqAiD7MgNzcnubPkiGBlMK2SkCYpoGab7XaghgIklx0QU6KE8UD Content-type: application/octet-stream; name="vcard.vcf" Content-Disposition: attachment; filename="vcard.vcf" Content-transfer-encoding: base64 YmVnaW46ICAgICAgICAgIHZjYXJkDQpmbjogICAgICAgICAgICAgQ2hlaWtoIE0uIEZhbGwNCm46 ICAgICAgICAgICAgICBGYWxsO0NoZWlraCBNLg0Kb3JnOiAgICAgICAgICAgIFdha2UgRm9yZXN0 IFVuaXZlcnNpdHkNCmFkcjogICAgICAgICAgICBJbmZvcm1hdGlvbiBTeXN0ZW0gQnVpbGRpbmc7 OzEwNiBDYXJvbGwgV2VhdGhlciBEcjtXaW5zdG9uLVNhbGVtO05DOzI3MTA2O1VTQQ0KZW1haWw7 aW50ZXJuZXQ6IGZhbGxjbUB3ZnUuZWR1DQp0aXRsZTogICAgICAgICAgUGVvcGxlU29mdCBUZWNo bmljYWwNCnRlbDt3b3JrOiAgICAgICAoMzM2KTc1OC0zOTM0DQpub3RlOiAgICAgICAgICAgaHR0 cDovL3dmdS5lZHUvfmZhbGxjbQ0KeC1tb3ppbGxhLWNwdDogIDstMzI0ODANCngtbW96aWxsYS1o dG1sOiBGQUxTRQ0KdmVyc2lvbjogICAgICAgIDIuMQ0KZW5kOiAgICAgICAgICAgIHZjYXJkDQoN Cg0K --0__=aVoF2ZqAiD7MgNzcnubPkiGBlMK2SkCYpoGab7XaghgIklx0QU6KE8UD Content-type: application/octet-stream; name="expcls.dms" Content-Disposition: attachment; filename="expcls.dms" Content-transfer-encoding: base64 LS0gZXhwY2xzLmRtcw0KLS0gLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tDQotLSBUaGlzIHNj cmlwdCBleHBvcnRzIG9wZXJhdG9yIGNsYXNzIGRlZmluaXRpb25zIGZyb20gYSBQZW9wbGVTb2Z0 IERhdGFiYXNlLg0KLS0gVGhpcyBzY3JpcHQgaXMgdXNlZCB3aXRoIGltcGNscy5kbXMgd2hpY2gg aW1wb3J0cyBvcGVyYXRvcg0KLS0gY2xhc3MgZGVmaW5pdGlvbnMgZnJvbSBhIGZpbGUgY3JlYXRl ZCB3aXRoIHRoaXMgc2NyaXB0LiANCi0tIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQ0KLS0g Y2hhbmdlIHRoZSBmb2xsb3dpbmcgbGluZSB0byBzcGVjaWZ5IGxvY2F0aW9uIG9mIHRoZSBvdXRw dXQgYW5kIGxvZyBmaWxlcyBmcm9tIHRoaXMgc2NyaXB0DQoNClNFVCBPVVRQVVQgYzpcdGVtcFxl eHBjbHMuZGF0Ow0KU0VUIExPRyBjOlx0ZW1wXGV4cGNscy5sb2c7DQoNClVQREFURSBQU09QUkRF Rk4gU0VUIFZFUlNJT04gPSAxIFdIRVJFIE9QUlRZUEUgPSAxOw0KDQotLSBUYWJsZXMgdXBkYXRl ZCBieSB0aGUgT3BlcmF0b3IgU2VjdXJpdHkgVG9vbA0KRVhQT1JUIFBTT1BSREVGTiBXSEVSRSBP UFJUWVBFID0gMTsNCkVYUE9SVCBQU0FVVEhTSUdOT04gV0hFUkUgRVhJU1RTIChTRUxFQ1QgJ1gn IEZST00gUFNPUFJERUZOIEEgV0hFUkUgQS5PUFJJRCA9IFBTQVVUSFNJR05PTi5PUFJJRCBBTkQg QS5PUFJUWVBFPTEpIDsNCkVYUE9SVCBQU0FVVEhJVEVNIFdIRVJFIEVYSVNUUyAoU0VMRUNUICdY JyBGUk9NIFBTT1BSREVGTiBBIFdIRVJFIEEuT1BSSUQgPSBQU0FVVEhJVEVNLk9QUklEIEFORCBB Lk9QUlRZUEU9MSkgOw0KRVhQT1JUIFBTQVVUSFBSQ1MgV0hFUkUgRVhJU1RTIChTRUxFQ1QgJ1gn IEZST00gUFNPUFJERUZOIEEgV0hFUkUgQS5PUFJJRCA9IFBTQVVUSFBSQ1MuT1BSSUQgQU5EIEEu T1BSVFlQRT0xKSA7DQpFWFBPUlQgUFNQUkNTUFJGTCBXSEVSRSBFWElTVFMgKFNFTEVDVCAnWCcg RlJPTSBQU09QUkRFRk4gQSBXSEVSRSBBLk9QUklEID0gUFNQUkNTUFJGTC5PUFJJRCBBTkQgQS5P UFJUWVBFPTEpIDsNCg0KLS0gVGFibGVzIHBvcHVsYXRlZCBieSB0aGUgUXVlcnkgU2VjdXJpdHkg cGFuZWxzDQpFWFBPUlQgUFNfU0NSVFlfUVVFUlkgV0hFUkUgRVhJU1RTIChTRUxFQ1QgJ1gnIEZS T00gUFNPUFJERUZOIEEgV0hFUkUgQS5PUFJJRCA9IFBTX1NDUlRZX1FVRVJZLk9QUklEIEFORCBB Lk9QUlRZUEU9MSkgOw0KRVhQT1JUIFBTX1NDUlRZX0FDQ19HUlAgV0hFUkUgRVhJU1RTIChTRUxF Q1QgJ1gnIEZST00gUFNPUFJERUZOIEEgV0hFUkUgQS5PUFJJRCA9IFBTX1NDUlRZX0FDQ19HUlAu T1BSSUQgQU5EIEEuT1BSVFlQRT0xKTsNCg0KLS0gVGFibGVzIHBvcHVsYXRlZCBieSB0aGUgT2Jq ZWN0IFNlY3VyaXR5IHRvb2wNCkVYUE9SVCBQU09QUk9CSiBXSEVSRSBFWElTVFMgKFNFTEVDVCAn WCcgRlJPTSBQU09QUkRFRk4gQSBXSEVSRSBBLk9QUklEID0gUFNPUFJPQkouT1BSSUQgQU5EIEEu T1BSVFlQRT0xKSA7DQoNCi0tIFRhYmxlcyBwb3B1bGF0ZWQgYnkgbWFzcyBjaGFuZ2UNCkVYUE9S VCBQU19NQ19PUFJfU0VDVVJJVFkgV0hFUkUgRVhJU1RTIChTRUxFQ1QgJ1gnIEZST00gUFNPUFJE RUZOIEEgV0hFUkUgQS5PUFJJRCA9IFBTX01DX09QUl9TRUNVUklUWS5PUFJJRCBBTkQgQS5PUFJU WVBFPTEpIDsNCkVYUE9SVCBQU19NQ19PUFJJRCBXSEVSRSBFWElTVFMgKFNFTEVDVCAnWCcgRlJP TSBQU09QUkRFRk4gQSBXSEVSRSBBLk9QUklEID0gUFNfTUNfT1BSSUQuT1BSSUQgQU5EIEEuT1BS VFlQRT0xKSA7DQo= --0__=aVoF2ZqAiD7MgNzcnubPkiGBlMK2SkCYpoGab7XaghgIklx0QU6KE8UD Content-type: application/octet-stream; name="impcls.dms" Content-Disposition: attachment; filename="impcls.dms" Content-transfer-encoding: base64 LS0gaW1wY2xzLmRtcw0KLS0gLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tDQotLSBUaGlzIGZp bGUgaW1wb3J0cyBvcGVyYXRvciBjbGFzcyBkZWZpbml0aW9ucyBpbnRvIGEgUGVvcGxlU29mdCBE YXRhYmFzZS4NCi0tIFRoaXMgZmlsZSBpcyB1c2VkIHdpdGggZXhwY2xzLmRtcyB3aGljaCBleHBv cnRzIG9wZXJhdG9yDQotLSBjbGFzcyBkZWZpbml0aW9ucyB0byBjcmVhdGUgdGhlIC5kYXQgZmls ZSB1c2VkIGJ5IHRoaXMgc2NyaXB0Lg0KLS0gLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tDQot LSBjaGFuZ2UgdGhlIGZvbGxvd2luZyBsaW5lIHRvIHNwZWNpZnkgbG9jYXRpb24gb2YgdGhlIGlu cHV0IGFuZCBsb2cgZmlsZXMgZm9yIHRoaXMgc2NyaXB0DQoNClNFVCBJTlBVVCBjOlx0ZW1wXGV4 cGNscy5kYXQ7DQpTRVQgTE9HIGM6XHRlbXBcaW1wY2xzLmxvZzsNClNFVCBJR05PUkVfRFVQUzsN Cg0KLS0gVGFibGVzIHVwZGF0ZWQgYnkgdGhlIE9wZXJhdG9yIFNlY3VyaXR5IFRvb2wNCklNUE9S VCBQU09QUkRFRk47DQpJTVBPUlQgUFNBVVRIU0lHTk9OOw0KSU1QT1JUIFBTQVVUSElURU07DQpJ TVBPUlQgUFNBVVRIUFJDUzsNCklNUE9SVCBQU1BSQ1NQUkZMOw0KDQotLSBUYWJsZXMgcG9wdWxh dGVkIGJ5IHRoZSBRdWVyeSBTZWN1cml0eSBwYW5lbHMNCnJlcGxhY2VfZGF0YSAgUFNfU0NSVFlf UVVFUlk7DQpyZXBsYWNlX2RhdGEgUFNfU0NSVFlfQUNDX0dSUDsNCg0KLS0gVGFibGVzIHBvcHVs YXRlZCBieSB0aGUgT2JqZWN0IFNlY3VyaXR5IHRvb2wNCklNUE9SVCBQU09QUk9CSjsNCg0KLS0g VGFibGVzIHBvcHVsYXRlZCBieSBtYXNzIGNoYW5nZQ0KSU1QT1JUIFBTX01DX09QUl9TRUNVUklU WTsNCklNUE9SVCBQU19NQ19PUFJJRDsNCg0KDQo= --0__=aVoF2ZqAiD7MgNzcnubPkiGBlMK2SkCYpoGab7XaghgIklx0QU6KE8UD-- From owner-sqr-users@list.iex.net Thu Jul 13 14:58:36 2000 Date: Thu, 13 Jul 2000 14:39:22 -0400 From: Cheikh Fall Subject: Operator Class Import! This is a multi-part message in MIME format. --------------4444A442BD4B2B7EC1548D42 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Gurus, Does anyone has a script that export/import just one Operator Class from one Database to another in peoplesoft? For example from TRAIN to PROD. Sorry about such PSFT question... We are on NT, ORACLE 8, PSFT 7 Thanks -Cheikh --------------4444A442BD4B2B7EC1548D42 Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Cheikh M. Fall Content-Disposition: attachment; filename="vcard.vcf" begin: vcard fn: Cheikh M. Fall n: Fall;Cheikh M. org: Wake Forest University adr: Information System Building;;106 Caroll Weather Dr;Winston-Salem;NC;27106;USA email;internet: fallcm@wfu.edu title: PeopleSoft Technical tel;work: (336)758-3934 note: http://wfu.edu/~fallcm x-mozilla-cpt: ;-32480 x-mozilla-html: FALSE version: 2.1 end: vcard --------------4444A442BD4B2B7EC1548D42-- From owner-sqr-users@list.iex.net Thu Jul 13 17:06:10 2000 Date: Thu, 13 Jul 2000 13:45:00 -0700 From: Jason Gill Subject: Re: Nested Ifs (was Procedures) > Anyone want to make an argument for that vs. GOTO vs. nested IFs? Sure. If it is not the same variable being evaluated. I've had this situation but can't remember the actual variables involved. Below is a simplified example. But I agree that most times if it is just reacting to various values of #x, an evaluate is the easiest. begin-procedure nested-ifs If #x = 1 !do something only if x = 1 that means you don't care about Y or Z anymore goto ENDPROC else If #y = 2 !do x=1 and y=2 thing, which means you don't care about Z anymore goto ENDPROC else !do x=1 but y <> 2 thing, but you still care about Z end-if if #z = 3 !do x <> 1 and z = 3 thing else !do x <> 1 and z <> 3 thing end-if el end-if ENDPROC: end-procedure From owner-sqr-users@list.iex.net Fri Jul 14 08:20:35 2000 Date: Fri, 14 Jul 2000 08:02:17 -0400 From: "Dombrowski, Dave F" Subject: Re: Nested Ifs (was Procedures) IMHO Evaluates are best suited to situations involving a single variable with 3 or more branches based on it's value. The nested If Jason used evaluates 3 variables (x, y and z) with only 2 branches for each. Trying to make this situation understandable through an Evaluate would be tough. Which brings me to maybe _the_ most important point - readability! Sure, 'modern' programmers frown upon GoTo statements... but sometimes the simplest way to maintain something is with that! Visual Basic - one of the more 'modern' event-driven languages - still requires GoTo statement for error handling (unless you can count on a RaiseEvent to be recognized by the client). I understand VB7 will change this, but for today, one of the most prevalent procedure-based languages uses it all the time. GoTo has it's own purpose: directing flow _out_ of an area. I'd never use it to jump to a routine, but to jump out of one I certainly do (like error handling). So why not also use it to exit out of a group of non-nested unrelated If statements? JMHO. -----Original Message----- From: Jason Gill [mailto:Jason.Gill@WELLPOINT.COM] Sent: Thursday, July 13, 2000 4:45 PM To: SQR-USERS@list.iex.net Subject: Re: Nested Ifs (was Procedures) > Anyone want to make an argument for that vs. GOTO vs. nested IFs? Sure. If it is not the same variable being evaluated. I've had this situation but can't remember the actual variables involved. Below is a simplified example. But I agree that most times if it is just reacting to various values of #x, an evaluate is the easiest. begin-procedure nested-ifs If #x = 1 !do something only if x = 1 that means you don't care about Y or Z anymore goto ENDPROC else If #y = 2 !do x=1 and y=2 thing, which means you don't care about Z anymore goto ENDPROC else !do x=1 but y <> 2 thing, but you still care about Z end-if if #z = 3 !do x <> 1 and z = 3 thing else !do x <> 1 and z <> 3 thing end-if el end-if ENDPROC: end-procedure From owner-sqr-users@list.iex.net Thu Jul 13 18:26:06 2000 Date: Thu, 13 Jul 2000 18:05:26 -0400 From: Jenny Mckeon Subject: Using $anyvariable in the order by clause I need to order a report by Department, Month. I'm deriving month from the the effective date as follows $Month = subsr(J.effdt, 6,2) .. The order by clause does not appear to accept anything but a column variable. Is there a way to get around this constraint ? I need month by month totals within department. Jenny Mckeon Shands Healthcare, Info. Svcs. Application Systems Analyst, Senior (352) 395-0680, ext. 8-5232 internet:mckeon@shands.ufl.edu From owner-sqr-users@list.iex.net Sun Jul 16 08:30:10 2000 Date: Sun, 16 Jul 2000 08:15:35 -0400 From: Tony DeLia Subject: FREE Book Preview - Essential Guide to PS Development and Customization Hello Everyone, I posted some sample PDF files for the "Essential Guide to PeopleSoft Development and Customization" (Manning Publications - DeLia, Landres, Rivera, Sankaran) on my website - http://www.sqrtools.com - The book is being printed and will be distributed in a couple weeks... The PDF samples include Chapter 9 (PeopleSoft Application Processor), Chapter 16 (Working with Scrolls), Chapter 35 (What is Application Engine), plus the Table of Contents, Index, Preface, etc... any feedback is, as always, greatly appreciated! Thanks! -- Tony DeLia AnswerThink Consulting Group PeopleSoft Solutions Practice - Delphi Partners tdelia@erols.com http://www.sqrtools.com From owner-sqr-users@list.iex.net Mon Jul 17 07:46:43 2000 Date: Mon, 17 Jul 2000 08:27:00 -0300 From: Peter Clark Subject: Beginning of the end for SQR? We had already been considering this move but it looks like the decision has been made for us. http://www.forbes.com/tool/html/99/Nov/1105/mu4.htm Cognos lands PeopleSoft deal NEW YORK. 11:54 AM EST-Cognos the Ontario, Canada-based maker of business intelligence software, has scored enterprise resource planning software provider PeopleSoft as a new customer for its PowerPlay analysis and reporting software as well as its Impromptu enterprise query and reporting software. While neither company would reveal the dollar amount of the deal, PeopleSoft's chief information officer David Thompson told Forbes.com that it is a "worldwide" implementation that is one of the top two projects of the year for the company. He also said PeopleSoft selected Cognos over rival solutions from Brio Technology and Business Objects. PeopleSoft is in the process of moving many of its business processes over to the web, and Thompson noted that up until now, the company had a "weak" internal reporting strategy. "We've been using multiple tools from different vendors. This provides us with a standard architecture--a common tool that's much easier for us to administer," he said. The company had used PowerPlay to a limited extent in the past as one of those "multiple tools," but this deal marks a significant expansion of that relationship. Thompson said that a main reason for PeopleSoft's selection of the Cognos solution was its strong security matrix, noting that Cognos has built integrated security architecture across all its products. Cognos already has close strategic ties with PeopleSoft. Back in August the companies announced an agreement to comarket Cognos business intelligence solutions for use with PeopleSoft's human resources, finance, manufacturing and distribution applications. ------ From owner-sqr-users@list.iex.net Mon Jul 17 09:59:07 2000 Date: Mon, 17 Jul 2000 08:35:58 -0500 From: Brian Murray Subject: Re: Beginning of the end for SQR? I remember a similar announcement and similar concern for SQR's future in a PeopleSoft environment when PeopleSoft acquired an equity position in Actuate. 30 seconds later many, myself included, were asking: are you getting rid of SQR? should we convert all our SQR's to Actuate? etc. Well, we're still writing SQR's here so Actuate must not have been the killer that we thought it was going to be. SQR will be with us for a while and here's why: 1. PeopleSoft can't keep up with their planned enhancement curve, so there's little chance that they'll have time or resource to go back and rewrite the existing (semi-)working code base. 2. I've been working with SQR off an on for 8 years and I've repeated the same pattern 4 or 5 times: 1)start developing a new series of reports in Crystal/Impromptu/GUI report tool X; 2)discover that real report requirements are more complicated then originally thought; 3)attempt to squeeze/bastardize GUI tool to handle the most complex reports; 4)give up and write the simple reports in Crystal/etc. and the most complex reports in SQR. Why? Because, in the end, there are some reports that are going to require a programming language to precisely meet customer requirements and to meet them in a timely and efficient (performance-wise) manner. The above is one persons opinion, but one who's been through this cycle before. I hate using SQR (I refer to it as the worst of COBOL plus the worst of BASIC wrapped around a non-standard SQL syntax) and would love to have a replacement, but, in a PeopleSoft shop anyway, it will be with us for quite a while to come. ----- Original Message ----- From: "Peter Clark" To: Sent: Monday, July 17, 2000 6:27 AM Subject: Beginning of the end for SQR? > We had already been considering this move but it looks like the decision has been made for us. > > http://www.forbes.com/tool/html/99/Nov/1105/mu4.htm > > Cognos lands PeopleSoft deal > rest of announcement deleted Brian Murray Management Information Systems Vanderbilt University From owner-sqr-users@list.iex.net Mon Jul 17 10:06:16 2000 Date: Mon, 17 Jul 2000 08:48:06 -0500 From: "Fetzik, John" Subject: Re: Beginning of the end for SQR? > -----Original Message----- > From: Brian Murray [mailto:Brian.C.Murray@VANDERBILT.EDU] > Sent: Monday, July 17, 2000 8:36 AM > To: SQR-USERS@list.iex.net > Subject: Re: Beginning of the end for SQR? > > > I remember a similar announcement and similar concern for > SQR's future in a > PeopleSoft environment when PeopleSoft acquired an equity position in > Actuate. 30 seconds later many, myself included, were asking: are you > getting rid of SQR? should we convert all our SQR's to Actuate? etc. > > Well, we're still writing SQR's here so Actuate must not have been the > killer that we thought it was going to be. > > SQR will be with us for a while and here's why: And don't forget that SQR is used in plenty places that are not PeopleSoft shops. From owner-sqr-users@list.iex.net Mon Jul 17 14:17:25 2000 Date: Mon, 17 Jul 2000 10:56:56 -0700 From: "Peter R. Lewandowski" Subject: Re: Beginning of the end for SQR? Since PeopleSoft is still programming new SQR's I would say that you might have a bit before you will need to worry about the application going away. With all the delivered reports that PeopleSoft now has utilizing this utility it would take them years to convert to a new tool. I will say that they are getting rid of SQR's to update PeopleSoft data. Like to close GL etc, but when it comes to producing reports to the end user community to run in batch the SQR tool is still the only thing they have in house. There are only a few wish lists items now that PeopleSoft has fixed it's security issues: 1) A good process scheduler - even buy one rather then develop one in house. 2) A good batch report tool from PS not from a third party that might pull the plug. 3) Apache webserver support is good but how about others, IIS not really fantastic in an all UNIX shop with only NT workstations. Also you might want a more stable environment for DB2 shops then the Windows NT Appserver. Later, Date sent: Mon, 17 Jul 2000 08:48:06 -0500 Send reply to: sqr-users@list.iex.net From: "Fetzik, John" Subject: Re: Beginning of the end for SQR? To: SQR-USERS@list.iex.net > -----Original Message----- > From: Brian Murray [mailto:Brian.C.Murray@VANDERBILT.EDU] > Sent: Monday, July 17, 2000 8:36 AM > To: SQR-USERS@list.iex.net > Subject: Re: Beginning of the end for SQR? > > > I remember a similar announcement and similar concern for > SQR's future in a > PeopleSoft environment when PeopleSoft acquired an equity position in > Actuate. 30 seconds later many, myself included, were asking: are you > getting rid of SQR? should we convert all our SQR's to Actuate? etc. > > Well, we're still writing SQR's here so Actuate must not have been the > killer that we thought it was going to be. > > SQR will be with us for a while and here's why: And don't forget that SQR is used in plenty places that are not PeopleSoft shops. Pete Lewandowski Analyst/Programmer 818-677-7539 From owner-sqr-users@list.iex.net Mon Jul 17 10:54:16 2000 Date: Mon, 17 Jul 2000 10:39:39 -0400 From: Rick_Creel@AONCONS.COM Subject: SQL performance tuning.. The SQR I am working on is in a PeopleSoft environment, specifically PeopleSoft Projects. PSoft Ver 7.53 Oracle Ver 8.06 SQR Ver 4.34 I am joining the PROJ_RESOURCE table (which has over 3 million of rows of data) to the PROJ_ACTIVITY table (which has just over 127,000 rows of data). For purposes of efficiency, is there a "rule of thumb" as to what sequence to specify the table names in the "FROM" clause? Do you say FROM PS_PROJ_RESOURCE PR, PS_PROJ_ACTIVITY PA or FROM PS_PROJ_ACTIVITY PA, PS_PROJ_RESOURCE PR or does it matter? In the WHERE clause, what about the sequence of the keys for each table, especially the keys that are used to join the 2 tables? The SQR I have works, but it is slow as molasses in the winter! I need to fine-tune the queries to make them as fast and efficient as possible. I hate to admit it, but I have no clue how to optimize SQL code and have never been given any training in how to optimize code. Thanks for any help/advice! From owner-sqr-users@list.iex.net Mon Jul 17 11:08:41 2000 Date: Mon, 17 Jul 2000 10:50:04 -0400 From: "Wanko, Christopher G, CFCTR" Subject: Re: SQL performance tuning.. > For purposes of efficiency, is there a "rule of thumb" as to > what sequence to > specify the table names in the "FROM" clause? Your database will probably reorder things for efficiency automatically. > In the WHERE clause, what about the sequence of the keys for > each table, > especially the keys that are > used to join the 2 tables? I would join the most restrictive keys first (ones least likely to find rows) in order to minimize rows being processed for the next WHERE clause, but again, your database may optimize this by reordering automatically. > to optimize SQL code and have never > been given any training in how to optimize code. There should be an Oracle FAQ available (I have the Sybase one) that details some basic info on profiling SQL queries. The Sybase equivalent is running a "showplan" with "no execute"; essentially you run a query against the database without returning rows, but the database engine details how it would execute the query (what indices it would use, how it would process the query and in what order it would execute statements). -Chris From owner-sqr-users@list.iex.net Mon Jul 17 11:14:41 2000 Date: Mon, 17 Jul 2000 10:51:15 -0400 From: Jerry Coleman Subject: Re: SQL performance tuning.. As to the order, in Oracle it depends on the optimizer mode you're using. If you're using the cost-based optimizer, then it doesn't matter as to the join order. In rule-based, it does - you want to put the smallest table (the one returning the least rows) last. It doesn't matter the order of the where clause in either case. It does matter that you join all possible indexed fields, whether they be unique or non-unique indexes. Try to join as may keys as possible. You can force an index read sometimes by saying "where fieldx > ' '". Look in the docs about using explain plan. It'll tell you what Oracle does. If you use Toad, hit CTRL-E and see if it'll explain it for you. As for courses, I took an Oracle course by satellite a few years ago, and found it worthwhile. A performance tuning book by Richard Niemiec is also pretty good. Rick_Creel@AON CONS.COM To: SQR-USERS@list.iex.net Sent by: cc: "Discussion of Subject: SQL performance tuning.. SQR, Brio Technology's database reporting language" 07/17/00 10:39 AM Please respond to sqr-users The SQR I am working on is in a PeopleSoft environment, specifically PeopleSoft Projects. PSoft Ver 7.53 Oracle Ver 8.06 SQR Ver 4.34 I am joining the PROJ_RESOURCE table (which has over 3 million of rows of data) to the PROJ_ACTIVITY table (which has just over 127,000 rows of data). For purposes of efficiency, is there a "rule of thumb" as to what sequence to specify the table names in the "FROM" clause? Do you say FROM PS_PROJ_RESOURCE PR, PS_PROJ_ACTIVITY PA or FROM PS_PROJ_ACTIVITY PA, PS_PROJ_RESOURCE PR or does it matter? In the WHERE clause, what about the sequence of the keys for each table, especially the keys that are used to join the 2 tables? The SQR I have works, but it is slow as molasses in the winter! I need to fine-tune the queries to make them as fast and efficient as possible. I hate to admit it, but I have no clue how to optimize SQL code and have never been given any training in how to optimize code. Thanks for any help/advice! From owner-sqr-users@list.iex.net Mon Jul 17 19:56:38 2000 Date: Mon, 17 Jul 2000 16:36:29 -0700 From: Arjan Hoornstra Subject: Re: SQL performance tuning.. There are a few things to say about query writing, although I'm not sure whether they all apply for all rdbms's. - the order of tables you specify is not important because the optimiser takes care of this - the order of where clauses are not imporatant because the optimiser takes care of this - do not use a function (isnull, max)on an indexed column, the index will not be used. - try not to use 'in' or 'not in', try rewriting the query using 'exists'. - try using <= and => rather than < and > Maybe this helps? Try giving us your query and rdbms, and maybe something will come up... --- Rick_Creel@AONCONS.COM wrote: > The SQR I am working on is in a PeopleSoft > environment, specifically PeopleSoft > Projects. > PSoft Ver 7.53 > Oracle Ver 8.06 > SQR Ver 4.34 > > I am joining the PROJ_RESOURCE table (which has over > 3 million of rows of data) > to the PROJ_ACTIVITY table > (which has just over 127,000 rows of data). > > For purposes of efficiency, is there a "rule of > thumb" as to what sequence to > specify the table names in the "FROM" clause? > Do you say > FROM PS_PROJ_RESOURCE PR, > PS_PROJ_ACTIVITY PA > > or > FROM PS_PROJ_ACTIVITY PA, > PS_PROJ_RESOURCE PR > > or does it matter? > > In the WHERE clause, what about the sequence of the > keys for each table, > especially the keys that are > used to join the 2 tables? > > The SQR I have works, but it is slow as molasses in > the winter! I need to > fine-tune the queries to make them > as fast and efficient as possible. I hate to admit > it, but I have no clue how > to optimize SQL code and have never > been given any training in how to optimize code. > > Thanks for any help/advice! __________________________________________________ Do You Yahoo!? Get Yahoo! Mail – Free email you can access from anywhere! http://mail.yahoo.com/ From owner-sqr-users@list.iex.net Mon Jul 17 11:02:45 2000 Date: Mon, 17 Jul 2000 10:46:12 -0400 From: Rick_Creel@AONCONS.COM Subject: Course Recommendation? Can anyone recommend a GOOD training course that teaches SQL optimization? From owner-sqr-users@list.iex.net Mon Jul 17 11:23:24 2000 Date: Mon, 17 Jul 2000 10:01:50 -0500 From: Nancy Brzezinski Subject: Re: Course Recommendation? Optimization rules change based on database. What is the database you will be using (including version)? > -----Original Message----- > From: Rick_Creel@AONCONS.COM [SMTP:Rick_Creel@AONCONS.COM] > Sent: Monday, July 17, 2000 9:46 AM > To: SQR-USERS@list.iex.net > Subject: Course Recommendation? > > Can anyone recommend a GOOD training course that teaches SQL optimization? From owner-sqr-users@list.iex.net Mon Jul 17 11:30:58 2000 Date: Mon, 17 Jul 2000 08:13:31 -0700 From: Michael Prodor Subject: Re: Course Recommendation? If you are using Oracle, they have a good class through Orcale University called SQL Statement Tuning Workshop




> -----Original Message-----
> From: Rick_Creel@AONCONS.COM [SMTP:Rick_Creel@AONCONS.COM]
> Sent: Monday, July 17, 2000 9:46 AM
> To:   SQR-USERS@list.iex.net
> Subject:      Course Recommendation?
>
> Can anyone recommend a GOOD training course that teaches SQL optimization?



--
Michael Prodor
<mprodor@qualcomm.com>

Qualcomm - QWBS Info Systems From owner-sqr-users@list.iex.net Mon Jul 17 11:35:30 2000 Date: Mon, 17 Jul 2000 11:20:41 -0400 From: Rick_Creel@AONCONS.COM Subject: Re: Course Recommendation? Our environment: Oracle Ver 8.06 (using "rule based" optimizer) PSoft Ver 7.53 SQR Ver 4.34 Nancy Brzezinski on 07/17/2000 11:01:50 AM Please respond to sqr-users@list.iex.net To: SQR-USERS@list.iex.net cc: (bcc: Rick Creel/IT/Aon Consulting) Subject: Re: Course Recommendation? Optimization rules change based on database. What is the database you will be using (including version)? > -----Original Message----- > From: Rick_Creel@AONCONS.COM [SMTP:Rick_Creel@AONCONS.COM] > Sent: Monday, July 17, 2000 9:46 AM > To: SQR-USERS@list.iex.net > Subject: Course Recommendation? > > Can anyone recommend a GOOD training course that teaches SQL optimization? From owner-sqr-users@list.iex.net Mon Jul 17 12:38:50 2000 Date: Mon, 17 Jul 2000 09:15:19 -0700 From: Ben Le Subject: Re: Course Recommendation? Check out: Preferred Database Solutions, Inc. www.oracle-edu.com Instructor: Mary Gable (757) 721-6655 I had 2 classes with her (Oracle8 and Avanced PL/SQL). Excellent instructor. She will come to your area. At 10:46 AM 7/17/00 -0400, you wrote: >Can anyone recommend a GOOD training course that teaches SQL optimization? Benjamin Le ITS, System Development Portland Community College 12000 SW 49th Ave. Portland, Oregon 97219 Voice: (503)-977-4970 Fax: (503)-977-4987 Mailto:ble@pcc.edu http://www.pcc.edu From owner-sqr-users@list.iex.net Mon Jul 17 12:13:09 2000 Date: Mon, 17 Jul 2000 09:52:19 -0600 From: "Turner, Ivan" Subject: Page as a Grid The include file setup02.sqc defines the .lis file's size via a page-size 58 177 statement. I want to continue to use the .lis file but I want to write beyond the 177th column. The .lis file automatically wraps the info printed after the 177th column. I want to enable the user to import the report into Excel and the wraping has to go. From owner-sqr-users@list.iex.net Mon Jul 17 12:43:28 2000 Date: Mon, 17 Jul 2000 12:10:08 -0400 From: Sam Spritzer Subject: Re: Page as a Grid Ivan, You might want to consider a separate procedure to write to a CSV file for use in Excel. Sam >>> Ivan.Turner@QWEST.COM 07/17 11:52 AM >>> The include file setup02.sqc defines the .lis file's size via a page-size 58 177 statement. I want to continue to use the .lis file but I want to write beyond the 177th column. The .lis file automatically wraps the info printed after the 177th column. I want to enable the user to import the report into Excel and the wraping has to go. From owner-sqr-users@list.iex.net Mon Jul 17 12:37:15 2000 Date: Mon, 17 Jul 2000 13:12:42 -0300 From: Peter Clark Subject: Re: Page as a Grid Clone Setup02 (and change the SQR to reference the cloned version) and change the page-size statement to whatever you wish. >>> "Turner, Ivan" 2000/07/17 12:52:19 pm >>> The include file setup02.sqc defines the .lis file's size via a page-size 58 177 statement. I want to continue to use the .lis file but I want to write beyond the 177th column. The .lis file automatically wraps the info printed after the 177th column. I want to enable the user to import the report into Excel and the wraping has to go. From owner-sqr-users@list.iex.net Mon Jul 17 12:51:18 2000 Date: Mon, 17 Jul 2000 12:17:11 -0400 From: "Lauri H. Macha" Subject: Connecting as another user in embedded SQL I am working in Oracle 8 and I have written an SQR program in which I have an embedded SQL statement. It works fine with just "Begin-SQL", but now I want the SQL statement to be executed as a particular user. I am attempting to use the -DB argument to accomplish this. My procedure looks like this: Begin-SQL -DBDSN=maxprod;UID=maxprod;PWD=mypassword end-SQL When I attempt to run my SQR program, I get the following error: Error on line 327: (SQR 3730) Incorrect arguments for BEGIN-SQL: [-Cnn] [ON-ERROR=procedure[(arg1[,argi]...)]] Begin-SQL -DBDSN=maxprod;UID=maxprod;PWD=mypassword I'm sure my syntax must be wrong ... can anyone either help with the syntax or suggest another approach? Thanks in advance, Lauri Macha From owner-sqr-users@list.iex.net Tue Jul 18 09:40:31 2000 Date: Tue, 18 Jul 2000 08:04:46 -0500 From: Gary Kearns Subject: Re: Connecting as another user in embedded SQL The syntax I've used is as follows: Begin-SQL -DB=maxprod;DSN=maxprod;UID=UserID;PWD=password . . End-SQL Hope this helps. Gary Kearns Elcor Corporation PeopleSoft Technical Analyst gkearns@elcor.com 972-851-0474 -----Original Message----- From: Lauri H. Macha [mailto:l.h.macha@LARC.NASA.GOV] Sent: Monday, July 17, 2000 11:17 AM To: SQR-USERS@list.iex.net Subject: Connecting as another user in embedded SQL I am working in Oracle 8 and I have written an SQR program in which I have an embedded SQL statement. It works fine with just "Begin-SQL", but now I want the SQL statement to be executed as a particular user. I am attempting to use the -DB argument to accomplish this. My procedure looks like this: Begin-SQL -DBDSN=maxprod;UID=maxprod;PWD=mypassword end-SQL When I attempt to run my SQR program, I get the following error: Error on line 327: (SQR 3730) Incorrect arguments for BEGIN-SQL: [-Cnn] [ON-ERROR=procedure[(arg1[,argi]...)]] Begin-SQL -DBDSN=maxprod;UID=maxprod;PWD=mypassword I'm sure my syntax must be wrong ... can anyone either help with the syntax or suggest another approach? Thanks in advance, Lauri Macha From owner-sqr-users@list.iex.net Mon Jul 17 17:12:23 2000 Date: Mon, 17 Jul 2000 16:38:30 -0400 From: Scott Barnes Subject: How do you use Italics font in SQR? I have been asked to copy a report someone had in Word and SQR and run it. The only problem I am having is I don't see how to use Italics font. I would appreciate any help. I am using printer default-hp thanks scotty From owner-sqr-users@list.iex.net Mon Jul 17 17:20:17 2000 Date: Mon, 17 Jul 2000 16:54:54 -0400 From: "Risman, Mark" Subject: Re: How do you use Italics font in SQR? If you can locate the desired typeface (font) number in your HP LaserJet documentation, the ALTER-PRINTER command will allow you to change the font to an italic font on the fly. The command syntax would be ALTER-PRINTER FONT-TYPE=... FONT=xx. Hope this helps, - Mark -----Original Message----- From: Scott Barnes [mailto:sbarnes@MAIL.WESLEYAN.EDU] Sent: Monday, July 17, 2000 4:39 PM To: SQR-USERS@list.iex.net Subject: How do you use Italics font in SQR? I have been asked to copy a report someone had in Word and SQR and run it. The only problem I am having is I don't see how to use Italics font. I would appreciate any help. I am using printer default-hp thanks scotty From owner-sqr-users@list.iex.net Mon Jul 17 18:47:09 2000 Date: Mon, 17 Jul 2000 14:22:38 -0800 From: "Brown, Bryan" Subject: SQR ver 3 in NT to start and run Excel Macro ?? Hi everyone, I think I have seen this fly by before, but thought I would ask a quick question now, and spend some time tonight looking in the archives.... I need to write an SQR that will create a file, execute Excel, and run an Excel macro that will import the data in the created file and bring up a print window. My guess is that I should be able to do this with the Call System Using command. Has anyone done this before - any pitfalls to look for? Thanks, Bryan ------------------------------------------------------------ Bryan E. Brown bbrown2@acsalaska.com, 907-564-1303 Systems Analyst, ACS (Alaska Communication Systems) SQRW V3.0.13.2, CSS Hrizon ver 8, Oracle 7.3.3, NT (server & workstations) From owner-sqr-users@list.iex.net Tue Jul 18 10:39:05 2000 Date: Tue, 18 Jul 2000 11:15:15 -0300 From: Peter Clark Subject: SQR reserved variable question Is anyone aware of a reserved variable that would contain the number of lines on the grid that an SQR has reserved for headers or footers according to the begin-heading or begin-footing definition? (trying to develop an common routine SQC that needs to know this info and it would be nice to be able to retrieve this info without each and every SQR that uses it having to pass the info along as an argument of a DO) TIA Peter From owner-sqr-users@list.iex.net Sun Jul 30 10:39:51 2000 Date: Sun, 30 Jul 2000 09:08:17 -0500 From: Ray Ontko Subject: Re: SQR reserved variable question Peter, There is no such reserved variable, but I'll add it to my list of suggested enhancements. You may be able to address your problem by: 1) using a global variable which is initialized by the calling program, or 2) using a #define variable which is expected by your common and must be #defined in your calling program. Ray > Is anyone aware of a reserved variable that would contain the number of lines on the grid that an SQR has reserved for headers or footers according to the begin-heading or begin-footing definition? (trying to develop an common routine SQC that needs to know this info and it would be nice to be able to retrieve this info without each and every SQR that uses it having to pass the info along as an argument of a DO) > > TIA > > Peter > ---------------------------------------------------------------------- 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 Mon Jul 31 07:25:58 2000 Date: Mon, 31 Jul 2000 08:01:32 -0300 From: Peter Clark Subject: Re: SQR reserved variable question Thanks Ray, We settled on #2 ... kludgy but we had little choice. Peter >>> Ray Ontko 2000/07/30 11:08:17 am >>> Peter, There is no such reserved variable, but I'll add it to my list of suggested enhancements. You may be able to address your problem by: 1) using a global variable which is initialized by the calling program, or 2) using a #define variable which is expected by your common and must be #defined in your calling program. Ray > Is anyone aware of a reserved variable that would contain the number of lines on the grid that an SQR has reserved for headers or footers according to the begin-heading or begin-footing definition? (trying to develop an common routine SQC that needs to know this info and it would be nice to be able to retrieve this info without each and every SQR that uses it having to pass the info along as an argument of a DO) > > TIA > > Peter > ---------------------------------------------------------------------- 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 Tue Jul 18 11:23:17 2000 Date: Tue, 18 Jul 2000 10:55:27 -0400 From: Jason Buzer Subject: Connecting to another SQL Server Hello. I am trying to run an SQR in one database on a particular server and populate a temporary file. After completing this I need to take the data and populate a table in a different database on a different server. We are on SQL Server 7. We just upgraded from 6.5 and I understand that this is one of the enhancements of SQL Server 7.0. Can anyone help me with this code? Thank You. JB. From owner-sqr-users@list.iex.net Tue Jul 18 11:46:54 2000 Date: Tue, 18 Jul 2000 10:28:33 -0500 From: Stephen Keen Subject: Re: Connecting to another SQL Server Hi Jason, You need to have the odbc connections established to both servers/databases? Here is the connect string after each select, sql command -DB=HOData;DSN=HOData;UID=sa;PWD= yourpassword Stephen B. Keen -----Original Message----- From: Discussion of SQR, Brio Technology's database reporting language [mailto:SQR-USERS@list.iex.net] On Behalf Of Jason Buzer Sent: Tuesday, July 18, 2000 9:55 AM To: SQR-USERS@list.iex.net Subject: Connecting to another SQL Server Hello. I am trying to run an SQR in one database on a particular server and populate a temporary file. After completing this I need to take the data and populate a table in a different database on a different server. We are on SQL Server 7. We just upgraded from 6.5 and I understand that this is one of the enhancements of SQL Server 7.0. Can anyone help me with this code? Thank You. JB. From owner-sqr-users@list.iex.net Tue Jul 18 15:49:39 2000 Date: Tue, 18 Jul 2000 21:07:33 +0200 From: Franck Masson Subject: Re: Connecting to another SQL Server This is a multi-part message in MIME format. --------------81A349D0C09105FDDD43FA13 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Jason, You have two options : 1) using flat file as you specify in your mail. run the export.sqr sample in the samplew directory. this code will generate 2 sqr codes one to export and one to import. look to the import code 2) You can populate from one database to another with sqr without a flat file. If you run sqr version 4 or 5 you have to use odbc ( so it is your case) see this example Begin-Program Do Main End-Program Begin-Procedure Main Begin-Select -DB'DSN=Sales;UID=scott;PWD=tiger' Ename, Job, Hiredate, Sal, Commission Do Insert >From Emp End-Select End-procedure ! Main Begin-procedure Insert Begin-SQL -DB'DSN=Archive' insert into EmpArch (ename, job, hiredate, sal, commission) values (&Ename, &Job, &Hiredate, &Sal, &Commission) End-SQL End-Procedure ! Insert IF you are using SQR 6. then you can do it without ODBC. Franck, Jason Buzer wrote: > > Hello. > > I am trying to run an SQR in one database on a particular server and populate a > temporary file. After completing this I need to take the data and populate a > table in a different database on a different server. We are on SQL Server 7. > We just upgraded from 6.5 and I understand that this is one of the enhancements > of SQL Server 7.0. Can anyone help me with this code? > > Thank You. > JB. --------------81A349D0C09105FDDD43FA13 Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Franck Masson Content-Disposition: attachment; filename="vcard.vcf" begin: vcard fn: Franck Masson n: ;Franck Masson org: Brio Technology EMEA adr;dom: Le capitol;;55 av. des champs Pierreux;Nanterre;92000;; email;internet: franck.masson@brio.com title: Sales Manager Northern Europe tel;work: 33 1 55 69 36 00 tel;fax: 33 1 47 25 02 59 tel;home: Mobile : 33 6 84 80 17 05 x-mozilla-cpt: ;0 x-mozilla-html: FALSE version: 2.1 end: vcard --------------81A349D0C09105FDDD43FA13-- From owner-sqr-users@list.iex.net Tue Jul 18 11:39:46 2000 Date: Tue, 18 Jul 2000 11:14:56 -0400 From: Derrick Fisher Subject: Re: Help...I need to learn SQR If you are using SQR with Peoplesoft I recommend that you purchase the book SQR in Peoplesoft and Other Applications. This is a excellent book that gives you a firm understanding of SQR. It's been a big help in me gaining an understanding of the language. >>> Nadav Karpenkop 07/18 11:57 AM >>> Hi My name is Nadav and I need to learn SQR from the beginning. Please help me to find a good site on the web or if some one can send me some documents which described the language from the beginning. Thanks Nadav From owner-sqr-users@list.iex.net Tue Jul 18 11:49:51 2000 Date: Tue, 18 Jul 2000 11:31:02 -0400 From: "Lauri H. Macha" Subject: Re: Help...I need to learn SQR Nadav, Here is a web site that I've found to have a lot of helpful links: http://www.ontko.com/sqr/ One book that may be helpful to you is "Essential Guide to PeopleSoft Development and Customization" by Tony DeLia, et al. Another is "SQR in Peoplesoft and Other Applications" by Galina and Vlad Landres. I'm not using PeopleSoft but have still found these guides to be helpful. Sometimes, though, I wish they weren't so PeopleSoft-oriented. Hope this helps! Lauri Macha At 05:57 PM 7/18/00 +0200, you wrote: >>>> Help...I need to learn SQR ArialHi ArialMy name is Nadav and I need to learn SQR from the beginning. ArialPlease help me to find a good site on the web or if some one can send me some documents which described the language from the beginning. ArialThanks ArialNadav From owner-sqr-users@list.iex.net Tue Jul 18 11:38:46 2000 Date: Tue, 18 Jul 2000 17:57:30 +0200 From: Nadav Karpenkop Subject: Help...I need to learn SQR This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01BFF0D0.E0952DC0 Content-Type: text/plain; charset="iso-8859-1" Hi My name is Nadav and I need to learn SQR from the beginning. Please help me to find a good site on the web or if some one can send me some documents which described the language from the beginning. Thanks Nadav ------_=_NextPart_001_01BFF0D0.E0952DC0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Help...I need to learn SQR

Hi

My name is Nadav and I need to learn = SQR from the beginning.
Please help me to find a good site on = the web or if some one can send me some documents which described the = language from the beginning.

Thanks
        Nadav

------_=_NextPart_001_01BFF0D0.E0952DC0-- From owner-sqr-users@list.iex.net Tue Jul 18 12:20:09 2000 Date: Tue, 18 Jul 2000 12:01:26 -0400 From: "Iberg, Cally A (ISI)" Subject: Re: Help...I need to learn SQR Hi Nadav, The book everyone is mentioning is pretty good. I have found it to be very helpful. One other site that was really good for people new to SQR is : http://www.codefactory.net/tutorial.htm It is an SQR tutorial. Unfortunately, though, it only has three chapters worth of information. I hope they update it soon! I also need as much training as I can get! Cally -----Original Message----- From: Nadav Karpenkop [mailto:nadavk@BUSINESSLAYERS.COM] Sent: Tuesday, July 18, 2000 11:58 AM To: SQR-USERS@list.iex.net Subject: Help...I need to learn SQR Hi My name is Nadav and I need to learn SQR from the beginning. Please help me to find a good site on the web or if some one can send me some documents which described the language from the beginning. Thanks Nadav From owner-sqr-users@list.iex.net Tue Jul 18 13:16:32 2000 Date: Tue, 18 Jul 2000 09:12:06 -0700 From: "Shaver, Richard H" Subject: Re: Help...I need to learn SQR We don't use Peoplesoft, but the book Derrick recommended is the best one, and only one I think, out there. Check out http://www.manning.com/Landres/index.html. Also look at http://www.ontko.com/library.html. Rick -----Original Message----- From: Derrick Fisher [mailto:DFisher@CO.NEW-CASTLE.DE.US] Sent: Tuesday, July 18, 2000 8:15 AM To: SQR-USERS@list.iex.net Subject: Re: Help...I need to learn SQR If you are using SQR with Peoplesoft I recommend that you purchase the book SQR in Peoplesoft and Other Applications. This is a excellent book that gives you a firm understanding of SQR. It's been a big help in me gaining an understanding of the language. >>> Nadav Karpenkop 07/18 11:57 AM >>> Hi My name is Nadav and I need to learn SQR from the beginning. Please help me to find a good site on the web or if some one can send me some documents which described the language from the beginning. Thanks Nadav From owner-sqr-users@list.iex.net Tue Jul 18 13:05:35 2000 Date: Tue, 18 Jul 2000 09:36:43 -0700 From: Bryan deSilva Subject: Re: Help...I need to learn SQR This is a multi-part message in MIME format. ------=_NextPart_000_000D_01BFF09B.AEEC92C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Nadav: The book Derrick mentioned is quite good and is the one we’re using in an SQR eStudy Group over in PeopleSoft-Fans hosted on www.eGroups.com . Standard response follows with our Amazon book links :-). If you wish to participate in the SQR eStudy Group, first join peoplesoft-fans by sending a blank email to peoplesoft-fans-subscribe@egroups.com or by going to http://www.egroups.com/group/peoplesoft-fans to check out our home page. Then please download stdgrp.doc from the vault at http://www.egroups.com/files/peoplesoft-fans/ It gives the basic guidelines of how we work. However, we’ve not been exactly on schedule because of the holidays and my recent move. The Amazon link to our book, “SQR in PeopleSoft and other Applications” is below. http://www.amazon.com/exec/obidos/ASIN/1884777775/improvisationsne Other books we're looking at for 'next time' include: "Peoplesoft Hrms Reporting" by Adam T. Bromwich. Prentice Hall; ISBN: 0130216127 http://www.amazon.com/exec/obidos/ASIN/0130216127/improvisationsne PeopleSoft Integration Tools" by Stewart S. Miller. McGraw-Hill Professional Publishing; ISBN: 0071354778 http://www.amazon.com/exec/obidos/ASIN/0071354778/improvisationsne Peoplesoft Application Development Tools" by Jami Clott, Stephen Raff . Computing McGraw-Hill; ISBN: 0071355693 http://www.amazon.com/exec/obidos/ASIN/0071355693/improvisationsne Peoplesoft Developer's Handbook" by Richard Gillespie, Joann Gillespie. Computing McGraw-Hill; ISBN: 0071349723 http://www.amazon.com/exec/obidos/ASIN/0071349723/improvisationsne "Peoplesoft: The WetFeet.com Insider Guide" by Wet Feet Press, Steve Pollock, Gary Alpert. WetFeet.com; ISBN: 158207061X http://www.amazon.com/exec/obidos/ASIN/158207061X/improvisationsne It’s also posted in the Links section of our eGroup home page. Please take a look at our info page at http://www.egroups.com/group/peoplesoft-fans/fullinfo.html for more information about our eGroup mailing list and web site. Start reading and posting away! Hope to see you there, Bryan -----Original Message----- From: owner-sqr-users@LIST.IEX.NET [mailto:owner-sqr-users@LIST.IEX.NET]On Behalf Of Nadav Karpenkop Sent: Tuesday, July 18, 2000 8:58 AM To: SQR-USERS@LIST.IEX.NET Subject: Help...I need to learn SQR Hi My name is Nadav and I need to learn SQR from the beginning. Please help me to find a good site on the web or if some one can send me some documents which described the language from the beginning. Thanks Nadav ------=_NextPart_000_000D_01BFF09B.AEEC92C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Help...I need to learn SQR

Na= dav:

 

 

The book Derrick mentioned is quite good and is the one = we’re using in an SQR eStudy Group over in PeopleSoft-Fans hosted on www.eGroups.com. Standard response = follows with our Amazon book links J.

 

If you wish to participate in the SQR eStudy Group, first = join peoplesoft-fans by sending a blank email to =

 

peoplesoft-fans-sub= scribe@egroups.com

 

or by going to

 

http://www.egroups.= com/group/peoplesoft-fans

 

to check out our home page.

 

Then please download stdgrp.doc from the vault at =

 

http://www.egroups= .com/files/peoplesoft-fans/

 

It gives the basic guidelines of how we work. However, = we’ve not been exactly on schedule because of the holidays and my recent move. =

 

The Amazon link to our book, “SQR in PeopleSoft and = other Applications” is below.

 

http://www.amazon.com/exec/obidos/ASIN/1884777775/improvisationsne=

 

Other books we're looking at for 'next time' = include:

 

"Peoplesoft Hrms Reporting" by Adam T. Bromwich. Prentice Hall; ISBN: 0130216127

 

http://www.amazon.com/exec/obidos/ASIN/0130216127/improvisationsne=

 

PeopleSoft Integration Tools" by Stewart S. Miller. McGraw-Hill Professional Publishing; ISBN: 0071354778 =

 

http://www.amazon.com/exec/obidos/ASIN/0071354778/improvisationsne=

 

Peoplesoft Application Development Tools" by Jami = Clott, Stephen Raff . Computing McGraw-Hill; ISBN: 0071355693 =

 

http://www.amazon.com/exec/obidos/ASIN/0071355693/improvisationsne=

 

Peoplesoft Developer's Handbook" by Richard Gillespie, = Joann Gillespie. Computing McGraw-Hill; ISBN: 0071349723 

 

http://www.amazon.com/exec/obidos/ASIN/0071349723/improvisationsne=

 

"Peoplesoft: The WetFeet.com Insider Guide" by = Wet Feet Press, Steve Pollock, Gary Alpert. WetFeet.com; ISBN: 158207061X =

 

http://www.amazon.com/exec/obidos/ASIN/158207061X/improvisationsne=

 

It’s also posted in the Links section of our eGroup = home page.

 

Please take a look at our info page = at

 

http:= //www.egroups.com/group/peoplesoft-fans/fullinfo.html

 

for more information about our eGroup mailing list and web = site.

 

Start reading and posting away! Hope to see you = there,

 

Bryan

<= span class=3DEmailStyle16> 

-----Original Message-----
From: = owner-sqr-users@LIST.IEX.NET [mailto:owner-sqr-users@LIST.IEX.NET]On Behalf Of Nadav Karpenkop
Sent: Tuesday, July 18, = 2000 8:58 AM
To: = SQR-USERS@LIST.IEX.NET
Subject: Help...I need to = learn SQR

 

 <= /p>

Hi= <= /p>

My name is = Nadav and I need to learn SQR from the beginning.
Please help me to find a good site on the = web or if some one can send me some documents which described the language from = the beginning.

Thanks
       
Nadav <= /p>

------=_NextPart_000_000D_01BFF09B.AEEC92C0-- From owner-sqr-users@list.iex.net Tue Jul 18 14:50:44 2000 Date: Tue, 18 Jul 2000 14:28:06 EDT From: DongW@AOL.COM Subject: Re: Help...I need to learn SQR the jury is not out! These books are quite well written and have numerous examples to follow. They are not for administrators per se and are designed for the programmer / analyst who actually have to do the coding. Additionally, you can obtain the source code they use, if you buy the book, by going to the authors' website, www.sqrland.com You can get a 20% discount by ordering through their site, www.sqrland.com/sqr_book.htm or through the online book retailers. Unfortunately, the book is not well-distributed, as i found out, so that you probably will not be able preview the book in a bricks-and-mortar bookstore. I consider Landres' book the best book on the market about SQR, combined with PeopleSoft so far. Walter Dong From owner-sqr-users@list.iex.net Tue Jul 18 13:01:38 2000 Date: Tue, 18 Jul 2000 12:34:51 -0400 From: Jenny Mckeon Subject: PRINT=NEVER causes loss of detail lines on report I'M losing all but my first line of detail per the LEVEL 1 control break when using the print = never on the level 2 control break in a report. I have coded the PRINT= NEVER correctly as far as I can tell. The only thing a little different from the examples I've seen is that I'm using a worktable. I didn't put any indexes on the work table when I created it, could that cause problems ? begin-heading 10 let $Reporttitle = 'RN Transfer Report - Transfers Within Nursing' #Include 'stdhtrrN.sqc' print ' ' (+1,1) print 'DEPARTMENT:' (+1,1) print $DeptId (0,13) print $DeptName (0,30) print 'Budgt' (+1,89) print 'Actual' (,96) print 'Transfered' (,120) print 'Transfer' (,110) ! print 'MONTH' (+1,1) print 'Jobcode' (+1,7) print 'Position Title' (0,18) print 'Name' (0,44) print 'Empl ID' (0,69,10) print 'Status' (0,81) print 'FTE' (,90) print 'FTE' (,97) print 'Action' (,103) print 'Date' (,112) print ' To Dept:' (,120) print 'Supervisor' (,133) end-heading !*********************************************************************** begin-procedure Create-Report !*********************************************************************** Begin-Select S.DEPTID () on-break print=never level=1 save=$oldept Before=dept-change skiplines = 1 display 's.deptid' display &s.deptid !S.MONTHCD (+1.1) on-break print=change !this works fine S.MONTHCD () on-break level=2 save=$oldmonth PRINT=never !this causes detail lines to disappear before=Month-name display 's.monthcd' display &s.monthcd display $month S.Jobcode (,7) on-break print=change/top-page level=3 S.Descr (,18) S.name (,44,33) DISPLAY &S.name S.emplid (,69,10) S.Empl_status (,82) S.Std_hrs_default let #FTE = &S.std_hrs_default / 40 do Format-Number(#FTE, $out, 'b9.99') print $out (0,89) S.Std_hours display 'std hrs' display &S.std_hours let #FTE = &S.std_hours / 40 do Format-Number(#FTE, $out, 'b9.99') print $out (0,95) S.action (0,103) S.deptid_from (0,120) S.EFFDT (0,109) add 1 to #Empl_cnt add 1 to #Grand_cnt S.SUPERVISOR_ID MOVE &S.SUPERVISOR_ID TO $EMPLID do Get-Employee-Name Print $name (,133) FROM SH_R_RNRPT01 S order by S.deptid, S.monthCD, S.JOBCODE End-Select CHAR End-Procedure begin-Procedure Month-Name display 'in procedure month name' MOVE &S.MONTHCD TO $MONTHCH do get-month print $month (,3) end-procedure begin-Procedure Dept-Change display 'in procedure dept change' new-page move &S.DeptId to $DeptId do Get-Department-Name End-Procedure begin-Procedure Get-Month display 'in procedure get month' display $monthch evaluate $MONTHCH when = '01' let $Month = 'Jan' break when = '02' let $Month = 'Feb' break when = '03' let $Month = 'Mar' break when = '04' let $Month = 'Apr' break when = '05' let $Month = 'May' break when = '06' let $Month = 'Jun' break when = '07' let $Month = 'Jul' break when = '08' let $Month = 'Aug' break when = '09' let $Month = 'Sep' break when = '10' let $Month = 'Oct' break when = '11' let $Month = 'Nov' break when = '12' let $Month = 'Dec' break end-evaluate End-Procedure begin-procedure Insert-Worktable let $sql-statement = 'RNRPT1.SQR,Insert-Worktable,Insert,SH_R_RNRPT01' begin-SQL On-Error=SQL-Error INSERT INTO SH_R_RNRPT01 (DEPTID,MONTHCD,JOBCODE,DESCR,EMPLID,NAME, EMPL_STATUS,STD_HRS_DEFAULT,STD_HOURS,SUPERVISOR_ID, DEPTID_FROM,ACTION,EFFDT) VALUES (&JP.DEPTID,$MONTHch,&JP.JOBCODE,&POS.DESCR,&J.EMPLID, &P.NAME,&JP.EMPL_STATUS,&POS.STD_HRS_DEFAULT, &JP.STD_HOURS,&P.SUPERVISOR_ID,&J.DEPTID, &J.ACTION,&J.EFFDT) end-SQL end-procedure begin-procedure Delete-Worktable let $sql-statement = 'RNRPT1.SQR,Delete-Worktable,Delete,SH_R_RNRPT01' begin-SQL On-Error=SQL-Error DELETE FROM SH_R_RNRPT01; end-SQL end-procedure Jenny Mckeon Shands Healthcare, Info. Svcs. Application Systems Analyst, Senior (352) 395-0680, ext. 8-5232 internet:mckeon@shands.ufl.edu From owner-sqr-users@list.iex.net Wed Jul 19 01:34:02 2000 Date: Tue, 18 Jul 2000 22:12:37 -0700 From: Heather Simpkins Subject: Re: PRINT=NEVER causes loss of detail lines on report In your create-report section, you are not incrementing the line in any of your print statements. The reason you are getting the first line, is because the skipline only occurs if the Level-1 break clause is active. The on-break statement that you have commented out with the (+1,1) On-Break Print=Change will cause the line to advance, even if the field doesn't change and the detail isn't printed. Change the S.MONTHCD field select to: S.MONTHCD (+1,1) on-break level=2 save=$oldmonth PRINT=never !this causes detail lines to disappear before=Month-name That should fix the problem. This one has caught me a couple of times. -----Original Message----- From: Discussion of SQR, Brio Technology's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Jenny Mckeon Sent: Tuesday, 18 July 2000 09:35 AM To: SQR-USERS@list.iex.net Subject: PRINT=NEVER causes loss of detail lines on report I'M losing all but my first line of detail per the LEVEL 1 control break when using the print = never on the level 2 control break in a report. I have coded the PRINT= NEVER correctly as far as I can tell. The only thing a little different from the examples I've seen is that I'm using a worktable. I didn't put any indexes on the work table when I created it, could that cause problems ? begin-heading 10 let $Reporttitle = 'RN Transfer Report - Transfers Within Nursing' #Include 'stdhtrrN.sqc' print ' ' (+1,1) print 'DEPARTMENT:' (+1,1) print $DeptId (0,13) print $DeptName (0,30) print 'Budgt' (+1,89) print 'Actual' (,96) print 'Transfered' (,120) print 'Transfer' (,110) ! print 'MONTH' (+1,1) print 'Jobcode' (+1,7) print 'Position Title' (0,18) print 'Name' (0,44) print 'Empl ID' (0,69,10) print 'Status' (0,81) print 'FTE' (,90) print 'FTE' (,97) print 'Action' (,103) print 'Date' (,112) print ' To Dept:' (,120) print 'Supervisor' (,133) end-heading !*********************************************************************** begin-procedure Create-Report !*********************************************************************** Begin-Select S.DEPTID () on-break print=never level=1 save=$oldept Before=dept-change skiplines = 1 display 's.deptid' display &s.deptid !S.MONTHCD (+1.1) on-break print=change !this works fine S.MONTHCD () on-break level=2 save=$oldmonth PRINT=never !this causes detail lines to disappear before=Month-name display 's.monthcd' display &s.monthcd display $month S.Jobcode (,7) on-break print=change/top-page level=3 S.Descr (,18) S.name (,44,33) DISPLAY &S.name S.emplid (,69,10) S.Empl_status (,82) S.Std_hrs_default let #FTE = &S.std_hrs_default / 40 do Format-Number(#FTE, $out, 'b9.99') print $out (0,89) S.Std_hours display 'std hrs' display &S.std_hours let #FTE = &S.std_hours / 40 do Format-Number(#FTE, $out, 'b9.99') print $out (0,95) S.action (0,103) S.deptid_from (0,120) S.EFFDT (0,109) add 1 to #Empl_cnt add 1 to #Grand_cnt S.SUPERVISOR_ID MOVE &S.SUPERVISOR_ID TO $EMPLID do Get-Employee-Name Print $name (,133) FROM SH_R_RNRPT01 S order by S.deptid, S.monthCD, S.JOBCODE End-Select CHAR End-Procedure begin-Procedure Month-Name display 'in procedure month name' MOVE &S.MONTHCD TO $MONTHCH do get-month print $month (,3) end-procedure begin-Procedure Dept-Change display 'in procedure dept change' new-page move &S.DeptId to $DeptId do Get-Department-Name End-Procedure begin-Procedure Get-Month display 'in procedure get month' display $monthch evaluate $MONTHCH when = '01' let $Month = 'Jan' break when = '02' let $Month = 'Feb' break when = '03' let $Month = 'Mar' break when = '04' let $Month = 'Apr' break when = '05' let $Month = 'May' break when = '06' let $Month = 'Jun' break when = '07' let $Month = 'Jul' break when = '08' let $Month = 'Aug' break when = '09' let $Month = 'Sep' break when = '10' let $Month = 'Oct' break when = '11' let $Month = 'Nov' break when = '12' let $Month = 'Dec' break end-evaluate End-Procedure begin-procedure Insert-Worktable let $sql-statement = 'RNRPT1.SQR,Insert-Worktable,Insert,SH_R_RNRPT01' begin-SQL On-Error=SQL-Error INSERT INTO SH_R_RNRPT01 (DEPTID,MONTHCD,JOBCODE,DESCR,EMPLID,NAME, EMPL_STATUS,STD_HRS_DEFAULT,STD_HOURS,SUPERVISOR_ID, DEPTID_FROM,ACTION,EFFDT) VALUES (&JP.DEPTID,$MONTHch,&JP.JOBCODE,&POS.DESCR,&J.EMPLID, &P.NAME,&JP.EMPL_STATUS,&POS.STD_HRS_DEFAULT, &JP.STD_HOURS,&P.SUPERVISOR_ID,&J.DEPTID, &J.ACTION,&J.EFFDT) end-SQL end-procedure begin-procedure Delete-Worktable let $sql-statement = 'RNRPT1.SQR,Delete-Worktable,Delete,SH_R_RNRPT01' begin-SQL On-Error=SQL-Error DELETE FROM SH_R_RNRPT01; end-SQL end-procedure Jenny Mckeon Shands Healthcare, Info. Svcs. Application Systems Analyst, Senior (352) 395-0680, ext. 8-5232 internet:mckeon@shands.ufl.edu From owner-sqr-users@list.iex.net Tue Jul 18 18:24:52 2000 Date: Tue, 18 Jul 2000 17:03:03 CDT From: Joe Johnson Subject: Help with (SQR 4027) Function or operator '!=' requires a numeric argument First of all, my apologies for this lengthy message. I am working with this code: begin-procedure Evaluate-Charge-Type begin-select blah blah blah evaluate &PBA.Z_CHARGE_TYPE when = 'EMT' add &PBA.Z_TID_COST to #er_taxes let #prod_er_taxes = #prod_er_taxes + &PBA.Z_TID_COST break when = 'WC' add &PBA.Z_TID_COST to #wc_cost let #prod_wc_cost = #prod_wc_cost + &PBA.Z_TID_COST break when = 'SUI' add &PBA.Z_TID_COST to #sui_cost let #prod_sui_cost = #prod_sui_cost + &PBA.Z_TID_COST break when-other break end-evaluate blah blah blah end-select end-procedure The user needs to have the program evaluate two other variables when &PBA.Z_CHARGE_TYPE = 'EMT'. I tried this change: when = 'EMT' do Special-SUI-Calc break and then putting the other considerations in a Special-SUI-Calc Procedure: BEGIN-PROCEDURE Special-SUI-Calc if (&PBA.TAX_CLASS = 'S' and &PBA.STATE <> '$U') add &PBA.Z_TID_COST to #sui_cost let #prod_sui_cost = #prod_sui_cost + &PBA.Z_TID_COST else add &PBA.Z_TID_COST to #er_taxes let #prod_er_taxes = #prod_er_taxes + &PBA.Z_TID_COST end-if END-PROCEDURE !Special-SUI-Calc When I run this, I get an error message: (SQR 4027) Function or operator '!=' requires a numeric argument. When I just use if &PBA.TAX_CLASS = 'S' in the Special-SUI-Calc Procedure, I get no errors -- but this does not meet my user's needs. Why does the SQR expect a numeric argument for if (&PBA.TAX_CLASS = 'S' and &PBA.STATE <> '$U') ? Thanks in Advance. Joe Johnson ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From owner-sqr-users@list.iex.net Tue Jul 18 18:46:56 2000 Date: Tue, 18 Jul 2000 17:27:11 -0500 From: Stephen Keen Subject: Re: Help with (SQR 4027) Function or operator '!=' requires a numeric argument Hi Joe, What happens if you instead of using '$U' you use $U ? Stephen B. Keen -----Original Message----- From: Discussion of SQR, Brio Technology's database reporting language [mailto:SQR-USERS@list.iex.net] On Behalf Of Joe Johnson Sent: Tuesday, July 18, 2000 5:03 PM To: SQR-USERS@list.iex.net Subject: Help with (SQR 4027) Function or operator '!=' requires a numeric argument First of all, my apologies for this lengthy message. I am working with this code: begin-procedure Evaluate-Charge-Type begin-select blah blah blah evaluate &PBA.Z_CHARGE_TYPE when = 'EMT' add &PBA.Z_TID_COST to #er_taxes let #prod_er_taxes = #prod_er_taxes + &PBA.Z_TID_COST break when = 'WC' add &PBA.Z_TID_COST to #wc_cost let #prod_wc_cost = #prod_wc_cost + &PBA.Z_TID_COST break when = 'SUI' add &PBA.Z_TID_COST to #sui_cost let #prod_sui_cost = #prod_sui_cost + &PBA.Z_TID_COST break when-other break end-evaluate blah blah blah end-select end-procedure The user needs to have the program evaluate two other variables when &PBA.Z_CHARGE_TYPE = 'EMT'. I tried this change: when = 'EMT' do Special-SUI-Calc break and then putting the other considerations in a Special-SUI-Calc Procedure: BEGIN-PROCEDURE Special-SUI-Calc if (&PBA.TAX_CLASS = 'S' and &PBA.STATE <> '$U') add &PBA.Z_TID_COST to #sui_cost let #prod_sui_cost = #prod_sui_cost + &PBA.Z_TID_COST else add &PBA.Z_TID_COST to #er_taxes let #prod_er_taxes = #prod_er_taxes + &PBA.Z_TID_COST end-if END-PROCEDURE !Special-SUI-Calc When I run this, I get an error message: (SQR 4027) Function or operator '!=' requires a numeric argument. When I just use if &PBA.TAX_CLASS = 'S' in the Special-SUI-Calc Procedure, I get no errors -- but this does not meet my user's needs. Why does the SQR expect a numeric argument for if (&PBA.TAX_CLASS = 'S' and &PBA.STATE <> '$U') ? Thanks in Advance. Joe Johnson ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From owner-sqr-users@list.iex.net Tue Jul 18 18:57:47 2000 Date: Tue, 18 Jul 2000 18:31:07 -0400 From: Jason Buzer Subject: Re: Help with (SQR 4027) Function or operator '!=' requires a numeric argument In the following procedure you do not need the ' ' around the variable. The quotes are used for literals only. If you are looking for the value not to be equal to the literal $U, use the quotes. If you are looking to for the value not to be equal to the value of the variable $U, do not use the quotes. BEGIN-PROCEDURE Special-SUI-Calc if (&PBA.TAX_CLASS = 'S' and &PBA.STATE <> '$U') ...etc. Joe Johnson on 07/18/2000 03:03:03 PM Please respond to sqr-users@list.iex.net To: SQR-USERS@list.iex.net cc: (bcc: Jason Buzer/THG) Subject: Help with (SQR 4027) Function or operator '!=' requires a numeric argument First of all, my apologies for this lengthy message. I am working with this code: begin-procedure Evaluate-Charge-Type begin-select blah blah blah evaluate &PBA.Z_CHARGE_TYPE when = 'EMT' add &PBA.Z_TID_COST to #er_taxes let #prod_er_taxes = #prod_er_taxes + &PBA.Z_TID_COST break when = 'WC' add &PBA.Z_TID_COST to #wc_cost let #prod_wc_cost = #prod_wc_cost + &PBA.Z_TID_COST break when = 'SUI' add &PBA.Z_TID_COST to #sui_cost let #prod_sui_cost = #prod_sui_cost + &PBA.Z_TID_COST break when-other break end-evaluate blah blah blah end-select end-procedure The user needs to have the program evaluate two other variables when &PBA.Z_CHARGE_TYPE = 'EMT'. I tried this change: when = 'EMT' do Special-SUI-Calc break and then putting the other considerations in a Special-SUI-Calc Procedure: BEGIN-PROCEDURE Special-SUI-Calc if (&PBA.TAX_CLASS = 'S' and &PBA.STATE <> '$U') add &PBA.Z_TID_COST to #sui_cost let #prod_sui_cost = #prod_sui_cost + &PBA.Z_TID_COST else add &PBA.Z_TID_COST to #er_taxes let #prod_er_taxes = #prod_er_taxes + &PBA.Z_TID_COST end-if END-PROCEDURE !Special-SUI-Calc When I run this, I get an error message: (SQR 4027) Function or operator '!=' requires a numeric argument. When I just use if &PBA.TAX_CLASS = 'S' in the Special-SUI-Calc Procedure, I get no errors -- but this does not meet my user's needs. Why does the SQR expect a numeric argument for if (&PBA.TAX_CLASS = 'S' and &PBA.STATE <> '$U') ? Thanks in Advance. Joe Johnson ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From owner-sqr-users@list.iex.net Wed Jul 19 10:58:46 2000 Date: Wed, 19 Jul 2000 09:36:32 -0500 From: Joe Johnson Subject: Re: Help with (SQR 4027) Function or operator '!=' requires a numeric argument Thanks to all who responded. I tried every suggestion, still got the error message, then re-checked my select statement - I wasn't selecting the &PBA.STATE variable (oops). I had cut the logic from another SQR, but failed to compare the select statements. mea culpa (I hope I spelled that right)! Interesting that the error message was what it was - Joe Johnson ;{) From owner-sqr-users@list.iex.net Tue Jul 18 18:58:18 2000 Date: Tue, 18 Jul 2000 15:37:33 -0700 From: "Lynds,Rick" Subject: Re: Help with (SQR 4027) Function or operator '!=' requires a num eric argument Check the database definition of &PBA.STATE - make sure that it is not defined as a numeric value. If that is OK, then try adding parentheses around the subexpressions in the IF ... AND ... -- so that they look like IF (...) AND (...) -- Worst case, try making the statement one line (so that the AND does not start the new line). HTH Rick -----Original Message----- From: Joe Johnson [mailto:jej1216@HOTMAIL.COM] Sent: Tuesday, July 18, 2000 3:03 PM To: SQR-USERS@list.iex.net Subject: Help with (SQR 4027) Function or operator '!=' requires a numeric argument First of all, my apologies for this lengthy message. I am working with this code: begin-procedure Evaluate-Charge-Type begin-select blah blah blah evaluate &PBA.Z_CHARGE_TYPE when = 'EMT' add &PBA.Z_TID_COST to #er_taxes let #prod_er_taxes = #prod_er_taxes + &PBA.Z_TID_COST break when = 'WC' add &PBA.Z_TID_COST to #wc_cost let #prod_wc_cost = #prod_wc_cost + &PBA.Z_TID_COST break when = 'SUI' add &PBA.Z_TID_COST to #sui_cost let #prod_sui_cost = #prod_sui_cost + &PBA.Z_TID_COST break when-other break end-evaluate blah blah blah end-select end-procedure The user needs to have the program evaluate two other variables when &PBA.Z_CHARGE_TYPE = 'EMT'. I tried this change: when = 'EMT' do Special-SUI-Calc break and then putting the other considerations in a Special-SUI-Calc Procedure: BEGIN-PROCEDURE Special-SUI-Calc if (&PBA.TAX_CLASS = 'S' and &PBA.STATE <> '$U') add &PBA.Z_TID_COST to #sui_cost let #prod_sui_cost = #prod_sui_cost + &PBA.Z_TID_COST else add &PBA.Z_TID_COST to #er_taxes let #prod_er_taxes = #prod_er_taxes + &PBA.Z_TID_COST end-if END-PROCEDURE !Special-SUI-Calc When I run this, I get an error message: (SQR 4027) Function or operator '!=' requires a numeric argument. When I just use if &PBA.TAX_CLASS = 'S' in the Special-SUI-Calc Procedure, I get no errors -- but this does not meet my user's needs. Why does the SQR expect a numeric argument for if (&PBA.TAX_CLASS = 'S' and &PBA.STATE <> '$U') ? Thanks in Advance. Joe Johnson ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From owner-sqr-users@list.iex.net Wed Jul 19 05:01:08 2000 Date: Wed, 19 Jul 2000 11:45:30 +0200 From: Nadav Karpenkop Subject: Integrate to PeopleSoft This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01BFF166.13AFA6A0 Content-Type: text/plain; charset="iso-8859-1" Hi I want to integrate to PeopleSoft , so while I'm creating a new employee in the PeopleSoft and the operation succeeded I want to write the new employee's details ( First Name , Last Name , Department ) who was created to a file(from this point I know what to do). I'm trying to catch the new employee event In the PeopleSoft and while it happens and succeeds ,I what to get the new employee details. My question is : Should I do it from the PeopleCode or With SQR or maybe both. What is the right way to do it,I'll be more then happy to hear. Lots & Lots of Thanks Nadav ------_=_NextPart_001_01BFF166.13AFA6A0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Integrate to PeopleSoft

Hi

I want to integrate to PeopleSoft , = so  while I'm creating a new employee in the PeopleSoft and the = operation
succeeded I want to write the new = employee's details ( First Name , Last Name , Department )
who was created to a file(from this = point I know what to do).
I'm trying to catch the new employee = event In the PeopleSoft and while it happens and
succeeds ,I what to get the new = employee details.
My question is : Should I do it from = the PeopleCode or With SQR or maybe both.
What is the right way to do it,I'll = be more then happy to hear.


Lots & Lots of Thanks
        Nadav

------_=_NextPart_001_01BFF166.13AFA6A0-- From owner-sqr-users@list.iex.net Wed Jul 19 09:13:07 2000 Date: Wed, 19 Jul 2000 08:56:33 -0400 From: Sam Spritzer Subject: Re: Integrate to PeopleSoft It sounds like you need to look at the audit functionality. Sam >>> nadavk@BUSINESSLAYERS.COM 07/19 5:45 AM >>> Hi I want to integrate to PeopleSoft , so while I'm creating a new employee in the PeopleSoft and the operation succeeded I want to write the new employee's details ( First Name , Last Name , Department ) who was created to a file(from this point I know what to do). I'm trying to catch the new employee event In the PeopleSoft and while it happens and succeeds ,I what to get the new employee details. My question is : Should I do it from the PeopleCode or With SQR or maybe both. What is the right way to do it,I'll be more then happy to hear. Lots & Lots of Thanks Nadav From owner-sqr-users@list.iex.net Wed Jul 19 07:32:04 2000 Date: Wed, 19 Jul 2000 04:11:14 -0700 From: Arjan Hoornstra Subject: Re: Help with (SQR 4027) Function or operator '!=' requires a numeric argument Joe, A few things are missing in your question: - what is the datatype of the variable &PBA.STATE If that is numeric, then the error is right... - do you need the value '$U' or do you mean a string variable $U, and what is it filled with? - you can also try to use != instead of <> Arjan --- Joe Johnson wrote: > First of all, my apologies for this lengthy message. > > I am working with this code: > > begin-procedure Evaluate-Charge-Type > begin-select > blah blah blah > > evaluate &PBA.Z_CHARGE_TYPE > > when = 'EMT' > add &PBA.Z_TID_COST to #er_taxes > let #prod_er_taxes = #prod_er_taxes + > &PBA.Z_TID_COST > break > when = 'WC' > add &PBA.Z_TID_COST to #wc_cost > let #prod_wc_cost = #prod_wc_cost + > &PBA.Z_TID_COST > break > when = 'SUI' > add &PBA.Z_TID_COST to #sui_cost > let #prod_sui_cost = #prod_sui_cost + > &PBA.Z_TID_COST > break > when-other > break > end-evaluate > > blah blah blah > end-select > end-procedure > > The user needs to have the program evaluate two > other variables when > &PBA.Z_CHARGE_TYPE = 'EMT'. > > I tried this change: > > when = 'EMT' > do Special-SUI-Calc > break > > and then putting the other considerations in a > Special-SUI-Calc Procedure: > > BEGIN-PROCEDURE Special-SUI-Calc > if (&PBA.TAX_CLASS = 'S' > and &PBA.STATE <> '$U') > add &PBA.Z_TID_COST to #sui_cost > let #prod_sui_cost = #prod_sui_cost + > &PBA.Z_TID_COST > else > add &PBA.Z_TID_COST to #er_taxes > let #prod_er_taxes = #prod_er_taxes + > &PBA.Z_TID_COST > end-if > END-PROCEDURE !Special-SUI-Calc > > When I run this, I get an error message: > (SQR 4027) Function or operator '!=' requires a > numeric argument. > > When I just use > if &PBA.TAX_CLASS = 'S' > in the Special-SUI-Calc Procedure, I get no errors > -- but this does not meet > my user's needs. > > Why does the SQR expect a numeric argument for > if (&PBA.TAX_CLASS = 'S' > and &PBA.STATE <> '$U') > ? > > Thanks in Advance. > > Joe Johnson > > > > > > > > > ________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com __________________________________________________ Do You Yahoo!? Get Yahoo! Mail – Free email you can access from anywhere! http://mail.yahoo.com/ From owner-sqr-users@list.iex.net Wed Jul 19 09:17:07 2000 Date: Wed, 19 Jul 2000 09:04:09 -0400 From: Rick_Creel@AONCONS.COM Subject: Re: Integrate to PeopleSoft [.] --0__=HBPRTSWUgECtJVp2wuvRRp5Az9qq4BwQVuLjb3qS2sMALytQZnz5tzLy Content-type: text/plain; charset=us-ascii Content-Disposition: inline How quickly do you need to have this file? One file per employee? One file per day that shows all new employees added that day? If you can do this once daily, I would write an SQR that is run on a daily basis, via a batch scheduler process, and it would extract the daily information. The SQR can write the extracted data to a flat file, or to a report.... your decision. If you need this data immediately after the employee is added in PeopleSoft, then you can write PeopleCode and attach the code to the 'SavePostChg' event on the record. The PeopleCode on this event can write/append to a flat file or it could initiate a SQR process passing the EMPLID as a parameter. Hope this helps a little. Nadav Karpenkop on 07/19/2000 05:45:30 AM Please respond to sqr-users@list.iex.net To: SQR-USERS@list.iex.net cc: (bcc: Rick Creel/IT/Aon Consulting) Subject: Integrate to PeopleSoft [.] Hi I want to integrate to PeopleSoft , so while I'm creating a new employee in the PeopleSoft and the operation succeeded I want to write the new employee's details ( First Name , Last Name , Department ) who was created to a file(from this point I know what to do). I'm trying to catch the new employee event In the PeopleSoft and while it happens and succeeds ,I what to get the new employee details. My question is : Should I do it from the PeopleCode or With SQR or maybe both. What is the right way to do it,I'll be more then happy to hear. Lots & Lots of Thanks Nadav --0__=HBPRTSWUgECtJVp2wuvRRp5Az9qq4BwQVuLjb3qS2sMALytQZnz5tzLy Content-type: text/html; name="att1.htm" Content-Disposition: attachment; filename="att1.htm" Content-transfer-encoding: base64 Content-Description: Internet HTML PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDMuMi8vRU4iPg0KPEhUTUw+ DQo8SEVBRD4NCjxNRVRBIEhUVFAtRVFVSVY9IkNvbnRlbnQtVHlwZSIgQ09OVEVOVD0idGV4dC9o dG1sOyBjaGFyc2V0PWlzby04ODU5LTEiPg0KPE1FVEEgTkFNRT0iR2VuZXJhdG9yIiBDT05URU5U PSJNUyBFeGNoYW5nZSBTZXJ2ZXIgdmVyc2lvbiA1LjUuMjY1MS42NyI+DQo8VElUTEU+SW50ZWdy YXRlIHRvIFBlb3BsZVNvZnQgPC9USVRMRT4NCjwvSEVBRD4NCjxCT0RZPg0KDQo8UD48Rk9OVCBT SVpFPTIgRkFDRT0iQXJpYWwiPkhpPC9GT05UPg0KPC9QPg0KDQo8UD48Rk9OVCBTSVpFPTIgRkFD RT0iQXJpYWwiPkkgd2FudCB0byBpbnRlZ3JhdGUgdG8gUGVvcGxlU29mdCAsIHNvJm5ic3A7IHdo aWxlIEknbSBjcmVhdGluZyBhIG5ldyBlbXBsb3llZSBpbiB0aGUgUGVvcGxlU29mdCBhbmQgdGhl IG9wZXJhdGlvbjwvRk9OVD4NCjxCUj48Rk9OVCBTSVpFPTIgRkFDRT0iQXJpYWwiPnN1Y2NlZWRl ZCBJIHdhbnQgdG8gd3JpdGUgdGhlIG5ldyBlbXBsb3llZSdzIGRldGFpbHMgKCBGaXJzdCBOYW1l ICwgTGFzdCBOYW1lICwgRGVwYXJ0bWVudCApIDwvRk9OVD4NCjxCUj48Rk9OVCBTSVpFPTIgRkFD RT0iQXJpYWwiPndobyB3YXMgY3JlYXRlZCB0byBhIGZpbGUoZnJvbSB0aGlzIHBvaW50IEkga25v dyB3aGF0IHRvIGRvKS48L0ZPTlQ+DQo8QlI+PEZPTlQgU0laRT0yIEZBQ0U9IkFyaWFsIj5JJ20g dHJ5aW5nIHRvIGNhdGNoIHRoZSBuZXcgZW1wbG95ZWUgZXZlbnQgSW4gdGhlIFBlb3BsZVNvZnQg YW5kIHdoaWxlIGl0IGhhcHBlbnMgYW5kIDwvRk9OVD4NCjxCUj48Rk9OVCBTSVpFPTIgRkFDRT0i QXJpYWwiPnN1Y2NlZWRzICxJIHdoYXQgdG8gZ2V0IHRoZSBuZXcgZW1wbG95ZWUgZGV0YWlscy48 L0ZPTlQ+DQo8QlI+PEZPTlQgU0laRT0yIEZBQ0U9IkFyaWFsIj5NeSBxdWVzdGlvbiBpcyA6IFNo b3VsZCBJIGRvIGl0IGZyb20gdGhlIFBlb3BsZUNvZGUgb3IgV2l0aCBTUVIgb3IgbWF5YmUgYm90 aC48L0ZPTlQ+DQo8QlI+PEZPTlQgU0laRT0yIEZBQ0U9IkFyaWFsIj5XaGF0IGlzIHRoZSByaWdo dCB3YXkgdG8gZG8gaXQsSSdsbCBiZSBtb3JlIHRoZW4gaGFwcHkgdG8gaGVhci48L0ZPTlQ+DQo8 L1A+DQo8QlI+DQoNCjxQPjxGT05UIFNJWkU9MiBGQUNFPSJBcmlhbCI+TG90cyAmYW1wOyBMb3Rz IG9mIFRoYW5rczwvRk9OVD4NCjxCUj4mbmJzcDsmbmJzcDsmbmJzcDsmbmJzcDsmbmJzcDsmbmJz cDsmbmJzcDsgPEZPTlQgU0laRT0yIEZBQ0U9IkFyaWFsIj5OYWRhdjwvRk9OVD4NCjwvUD4NCg0K PC9CT0RZPg0KPC9IVE1MPg0K --0__=HBPRTSWUgECtJVp2wuvRRp5Az9qq4BwQVuLjb3qS2sMALytQZnz5tzLy-- From owner-sqr-users@list.iex.net Wed Jul 19 09:38:28 2000 Date: Wed, 19 Jul 2000 09:14:24 -0400 From: Rod Wright Subject: Help with (SQR 4027) Function or operator '!=' requires a numeric argument FYI - You need the quotes around the $U. In PSoft, when you're dealing with taxes, as this code indicates, a State of $U refers to federal taxes. $U is a value here, not a variable. Date: Tue, 18 Jul 2000 18:31:07 -0400 From: Jason Buzer Subject: Re: Help with (SQR 4027) Function or operator '!=' requires a numeric argument In the following procedure you do not need the ' ' around the variable. The quotes are used for literals only. If you are looking for the value not to be equal to the literal $U, use the quotes. If you are looking to for the value not to be equal to the value of the variable $U, do not use the quotes. BEGIN-PROCEDURE Special-SUI-Calc if (&PBA.TAX_CLASS = 'S' and &PBA.STATE <> '$U') ...etc. From owner-sqr-users@list.iex.net Wed Jul 19 12:11:04 2000 Date: Wed, 19 Jul 2000 08:50:06 -0700 From: richard.mitchell@GSA.GOV Subject: Re: Help with (SQR 4027) Function or operator '!=' requires a numeric argument Joe, Just a hunch - Your code BEGIN-PROCEDURE Special-SUI-Calc > if (&PBA.TAX_CLASS = 'S' and &PBA.STATE <> '$U') ... may be compiling as if(true and false) thus SQR does not know what kind of variable you want. Regardless of which other list suggestion you take, try putting an extra set of parenthesis to separate the terms to be evaluated like BEGIN-PROCEDURE Special-SUI-Calc > if ((&PBA.TAX_CLASS = 'S') and (&PBA.STATE <> '$U')) ... hth, Rick "Arjan Hoornstra" @list.iex.net> on 07/19/2000 04:11:14 AM Please respond to sqr-users@list.iex.net Sent by: "Discussion of SQR, Brio Technology's database reporting language" To: SQR-USERS@list.iex.net cc: Subject: Re: Help with (SQR 4027) Function or operator '!=' requires a numeric argument Joe, A few things are missing in your question: - what is the datatype of the variable &PBA.STATE If that is numeric, then the error is right... - do you need the value '$U' or do you mean a string variable $U, and what is it filled with? - you can also try to use != instead of <> Arjan --- Joe Johnson wrote: > First of all, my apologies for this lengthy message. > > I am working with this code: > > begin-procedure Evaluate-Charge-Type > begin-select > blah blah blah > > evaluate &PBA.Z_CHARGE_TYPE > > when = 'EMT' > add &PBA.Z_TID_COST to #er_taxes > let #prod_er_taxes = #prod_er_taxes + > &PBA.Z_TID_COST > break > when = 'WC' > add &PBA.Z_TID_COST to #wc_cost > let #prod_wc_cost = #prod_wc_cost + > &PBA.Z_TID_COST > break > when = 'SUI' > add &PBA.Z_TID_COST to #sui_cost > let #prod_sui_cost = #prod_sui_cost + > &PBA.Z_TID_COST > break > when-other > break > end-evaluate > > blah blah blah > end-select > end-procedure > > The user needs to have the program evaluate two > other variables when > &PBA.Z_CHARGE_TYPE = 'EMT'. > > I tried this change: > > when = 'EMT' > do Special-SUI-Calc > break > > and then putting the other considerations in a > Special-SUI-Calc Procedure: > > BEGIN-PROCEDURE Special-SUI-Calc > if (&PBA.TAX_CLASS = 'S' > and &PBA.STATE <> '$U') > add &PBA.Z_TID_COST to #sui_cost > let #prod_sui_cost = #prod_sui_cost + > &PBA.Z_TID_COST > else > add &PBA.Z_TID_COST to #er_taxes > let #prod_er_taxes = #prod_er_taxes + > &PBA.Z_TID_COST > end-if > END-PROCEDURE !Special-SUI-Calc > > When I run this, I get an error message: > (SQR 4027) Function or operator '!=' requires a > numeric argument. > > When I just use > if &PBA.TAX_CLASS = 'S' > in the Special-SUI-Calc Procedure, I get no errors > -- but this does not meet > my user's needs. > > Why does the SQR expect a numeric argument for > if (&PBA.TAX_CLASS = 'S' > and &PBA.STATE <> '$U') > ? > > Thanks in Advance. > > Joe Johnson > > > > > > > > > ________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com __________________________________________________ Do You Yahoo!? Get Yahoo! Mail ? Free email you can access from anywhere! http://mail.yahoo.com/ From owner-sqr-users@list.iex.net Wed Jul 19 09:52:13 2000 Date: Wed, 19 Jul 2000 08:17:35 -0500 From: "Hallmark, Robert J" Subject: E-Mailing Sqr/ HTML output to N/T Work Station I am attempting to send the HTM file produced by an SQR report to an N/T Work Station via Outlook Express. When sending to a Windows 95 station, I send both the HTM file and the .h00 File. The receiver copies the .h00 file to his windows.temp folder, then he is able to open the HTM file to see the report in HTML format. When I follow the same process sending to an N/T workstation, the receiver cannot open the HTM file as N/T has no windows.temp folder to place the .H00 file in. He therefore gets the message "netscape is unable to find the file or directory named /C|/WINDOWS/TEMP/FILENAME.h00". Does anyone out there know a way to get around this problem. Also, is there a simpler solution to the way I am sending to the Windows 95 Station. Is there any way to get around having to copy the .h00 file to the windows.temp folder. Thanks Bob Hallmark From owner-sqr-users@list.iex.net Wed Jul 19 09:54:30 2000 Date: Wed, 19 Jul 2000 09:36:27 -0400 From: "Wanko, Christopher G, CFCTR" Subject: Re: E-Mailing Sqr/ HTML output to N/T Work Station > /C|/WINDOWS/TEMP/FILENAME.h00". Does anyone out there know a Why does it have to go to "windows\temp"? Why can't it go to %TEMP% or %TMP%, if either are defined? -Chris From owner-sqr-users@list.iex.net Wed Jul 19 10:04:48 2000 Date: Wed, 19 Jul 2000 09:46:53 -0400 From: Buddy Sandridge Subject: Re: E-Mailing Sqr/ HTML output to N/T Work Station This sounds like it is using what Windows has defined as it's temporary file area.... This is standard for many applications because of how windows works. If that's not where your windows temporary area is, then they must have hard coded it. Hope this helps, Buddy Sandridge (MCSE) From: "Wanko, Christopher G, CFCTR" on 07/19/2000 09:36 To: SQR-USERS@list.iex.net@SMTP@Exchange cc: Subject: Re: E-Mailing Sqr/ HTML output to N/T Work Station > /C|/WINDOWS/TEMP/FILENAME.h00". Does anyone out there know a Why does it have to go to "windows\temp"? Why can't it go to %TEMP% or %TMP%, if either are defined? -Chris From owner-sqr-users@list.iex.net Wed Jul 19 10:17:46 2000 Date: Wed, 19 Jul 2000 08:51:23 -0500 From: "Hallmark, Robert J" Subject: Re: E-Mailing Sqr/ HTML output to N/T Work Station Chris, I dont know the answer to that one. I haven't been able to find the code which points to the windows'temp folder. Bob H -----Original Message----- From: Wanko, Christopher G, CFCTR [mailto:apollo@ATT.COM] Subject: Re: E-Mailing Sqr/ HTML output to N/T Work Station > /C|/WINDOWS/TEMP/FILENAME.h00". Does anyone out there know a Why does it have to go to "windows\temp"? Why can't it go to %TEMP% or %TMP%, if either are defined? -Chris From owner-sqr-users@list.iex.net Wed Jul 19 10:20:08 2000 Date: Wed, 19 Jul 2000 10:01:59 -0400 From: "Wanko, Christopher G, CFCTR" Subject: Re: E-Mailing Sqr/ HTML output to N/T Work Station > I dont know the answer to that one. I haven't been able to > find the code > which points to the windows'temp folder. Okay, hang on. What happens if you say "copy thisfile.txt %TEMP%\thatfile.txt"? Maybe if you code your command using the environment variables, you can obviate hardcoded ones. -Chris From owner-sqr-users@list.iex.net Wed Jul 19 15:50:36 2000 Date: Wed, 19 Jul 2000 21:07:49 +0200 From: Franck Masson Subject: Re: E-Mailing Sqr/ HTML output to N/T Work Station This is a multi-part message in MIME format. --------------E9A04CDD429403B95AAECBFA Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I will recommand to use PDF instead of HTML or force the report to be in one HTML page if possible. but if i folow your procedure, just download anywhere the html and use relatif path in the URL in the html report. franck, Hallmark, Robert J wrote: > > I am attempting to send the HTM file produced by an SQR report to an N/T > Work Station via Outlook Express. When sending to a Windows 95 station, I > send both the HTM file and the .h00 File. The receiver copies the .h00 file > to his windows.temp folder, then he is able to open the HTM file to see the > report in HTML format. When I follow the same process sending to an N/T > workstation, the receiver cannot open the HTM file as N/T has no > windows.temp folder to place the .H00 file in. He therefore gets the > message > "netscape is unable to find the file or directory named > /C|/WINDOWS/TEMP/FILENAME.h00". Does anyone out there know a way to get > around this problem. Also, is there a simpler solution to the way I am > sending to the Windows 95 Station. Is there any way to get around having to > copy the .h00 file to the windows.temp folder. > > Thanks > > Bob Hallmark --------------E9A04CDD429403B95AAECBFA Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Franck Masson Content-Disposition: attachment; filename="vcard.vcf" begin: vcard fn: Franck Masson n: ;Franck Masson org: Brio Technology EMEA adr;dom: Le capitol;;55 av. des champs Pierreux;Nanterre;92000;; email;internet: franck.masson@brio.com title: Sales Manager Northern Europe tel;work: 33 1 55 69 36 00 tel;fax: 33 1 47 25 02 59 tel;home: Mobile : 33 6 84 80 17 05 x-mozilla-cpt: ;0 x-mozilla-html: FALSE version: 2.1 end: vcard --------------E9A04CDD429403B95AAECBFA-- From owner-sqr-users@list.iex.net Thu Jul 20 09:42:27 2000 Date: Thu, 20 Jul 2000 09:18:38 EDT From: Manoj Gurjar Subject: Re: E-Mailing Sqr/ HTML output to N/T Work Station it may be a dumb solution, but how abt creating same named folder on NT workstation, as we have on Windows and then copy files, and try opening using Netscape. hth, manoj >From: "Hallmark, Robert J" >Reply-To: sqr-users@list.iex.net >To: SQR-USERS@list.iex.net >Subject: E-Mailing Sqr/ HTML output to N/T Work Station >Date: Wed, 19 Jul 2000 08:17:35 -0500 > >I am attempting to send the HTM file produced by an SQR report to an N/T >Work Station via Outlook Express. When sending to a Windows 95 station, I >send both the HTM file and the .h00 File. The receiver copies the .h00 >file >to his windows.temp folder, then he is able to open the HTM file to see the >report in HTML format. When I follow the same process sending to an N/T >workstation, the receiver cannot open the HTM file as N/T has no >windows.temp folder to place the .H00 file in. He therefore gets the >message >"netscape is unable to find the file or directory named >/C|/WINDOWS/TEMP/FILENAME.h00". Does anyone out there know a way to get >around this problem. Also, is there a simpler solution to the way I am >sending to the Windows 95 Station. Is there any way to get around having >to >copy the .h00 file to the windows.temp folder. > >Thanks > >Bob Hallmark ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From owner-sqr-users@list.iex.net Mon Jul 24 08:24:39 2000 Date: Mon, 24 Jul 2000 07:02:40 -0500 From: "Hallmark, Robert J" Subject: Re: E-Mailing Sqr/ HTML output to N/T Work Station Thanks to all for the help. What finally worked was to copy the .h00 file to the C:\Temp folder on the N/T station. Bob Subject: Re: E-Mailing Sqr/ HTML output to N/T Work Station I will recommand to use PDF instead of HTML or force the report to be in one HTML page if possible. but if i folow your procedure, just download anywhere the html and use relatif path in the URL in the html report. franck, Hallmark, Robert J wrote: > > I am attempting to send the HTM file produced by an SQR report to an N/T > Work Station via Outlook Express. When sending to a Windows 95 station, I > send both the HTM file and the .h00 File. The receiver copies the .h00 file > to his windows.temp folder, then he is able to open the HTM file to see the > report in HTML format. When I follow the same process sending to an N/T > workstation, the receiver cannot open the HTM file as N/T has no > windows.temp folder to place the .H00 file in. He therefore gets the > message > "netscape is unable to find the file or directory named > /C|/WINDOWS/TEMP/FILENAME.h00". Does anyone out there know a way to get > around this problem. Also, is there a simpler solution to the way I am > sending to the Windows 95 Station. Is there any way to get around having to > copy the .h00 file to the windows.temp folder. > > Thanks > > Bob Hallmark From owner-sqr-users@list.iex.net Wed Jul 19 14:42:52 2000 Date: Wed, 19 Jul 2000 14:22:46 -0400 From: "Calder, Chris" Subject: Range Question Hi Folks! Ok, here's the scoop. The users enter a From and To range using the Department Id. When entering a Range of 7530 - 7530, no data is returned. If I use a range of 7530-7531, data is returned for department 7530. I suspect it is the code below using the RANGE function. I'm assuming that if $DEPT = 7530 and $FRRANGE and TORANGE are also 7530, the value will be returned as one (1), therefore true. Can anyone confirm this? Thanks in advance! ;-) EVALUATE &L.LNG_RQMT_PSN WHEN = '1' ADD 1 TO #DEPTALL1 IF RANGE($DEPT,$FRRANGE,$TORANGE) ADD 1 TO #SECTOR1 END-IF IF LTRIM(RTRIM(&LOC.GEOLOC_CODE,' '),' ') = '350614' ADD 1 TO #NCR1 END-IF BREAK Chris Calder Programmer/Analyst PeopleSoft - HRMS Tel: (613) 946-4751 From owner-sqr-users@list.iex.net Wed Jul 19 15:35:01 2000 Date: Wed, 19 Jul 2000 15:14:41 EDT From: Vishner@AOL.COM Subject: Re: Range Question Hi Chris, If $Deptid = '7530', the range will return true whether $TORANGE = '7530' or '7531' If $Deptid = '7530 ' (note the extra space), the range will return true if $TORANGE = '7531', but will return false if $TORANGE = '7530' HTH, Hugh In a message dated Wed, 19 Jul 2000 2:24:38 PM Eastern Daylight Time, "Calder, Chris" writes: << Hi Folks! Ok, here's the scoop. The users enter a From and To range using the Department Id. When entering a Range of 7530 - 7530, no data is returned. If I use a range of 7530-7531, data is returned for department 7530. I suspect it is the code below using the RANGE function. I'm assuming that if $DEPT = 7530 and $FRRANGE and TORANGE are also 7530, the value will be returned as one (1), therefore true. Can anyone confirm this? Thanks in advance! ;-) EVALUATE &L.LNG_RQMT_PSN WHEN = '1' ADD 1 TO #DEPTALL1 IF RANGE($DEPT,$FRRANGE,$TORANGE) ADD 1 TO #SECTOR1 END-IF IF LTRIM(RTRIM(&LOC.GEOLOC_CODE,' '),' ') = '350614' ADD 1 TO #NCR1 END-IF BREAK Chris Calder Programmer/Analyst PeopleSoft - HRMS Tel: (613) 946-4751 >> From owner-sqr-users@list.iex.net Wed Jul 19 16:42:16 2000 Date: Wed, 19 Jul 2000 16:19:50 -0400 From: "Calder, Chris" Subject: Re: Range Question Hi Hugh, Thanks for your speedy response! The solution was changing this code from LET $DEPT = &J.DEPTID to LET $DEPT = RTRIM(&J.DEPTID, ' ') due to the 6 trailing spaces. And to think that this report has been in production for 4 years! All good things, Chris -----Original Message----- From: Vishner@AOL.COM [mailto:Vishner@AOL.COM] Sent: 2000 Jul 19 3:15 PM To: SQR-USERS@list.iex.net Subject: Re: Range Question Hi Chris, If $Deptid = '7530', the range will return true whether $TORANGE = '7530' or '7531' If $Deptid = '7530 ' (note the extra space), the range will return true if $TORANGE = '7531', but will return false if $TORANGE = '7530' HTH, Hugh In a message dated Wed, 19 Jul 2000 2:24:38 PM Eastern Daylight Time, "Calder, Chris" writes: << Hi Folks! Ok, here's the scoop. The users enter a From and To range using the Department Id. When entering a Range of 7530 - 7530, no data is returned. If I use a range of 7530-7531, data is returned for department 7530. I suspect it is the code below using the RANGE function. I'm assuming that if $DEPT = 7530 and $FRRANGE and TORANGE are also 7530, the value will be returned as one (1), therefore true. Can anyone confirm this? Thanks in advance! ;-) EVALUATE &L.LNG_RQMT_PSN WHEN = '1' ADD 1 TO #DEPTALL1 IF RANGE($DEPT,$FRRANGE,$TORANGE) ADD 1 TO #SECTOR1 END-IF IF LTRIM(RTRIM(&LOC.GEOLOC_CODE,' '),' ') = '350614' ADD 1 TO #NCR1 END-IF BREAK Chris Calder Programmer/Analyst PeopleSoft - HRMS Tel: (613) 946-4751 >> From owner-sqr-users@list.iex.net Thu Jul 20 16:02:40 2000 Date: Thu, 20 Jul 2000 14:39:14 -0500 From: Debra Taylor Subject: Performance Issues w/Oracle 8 We are experiencing major performance issues with SQR's in Oracle 8.1.6. The same SQR's that run in version 7.3.4 in minutes, take hours in 8.1.6. Has anyone else experienced issues like this and if so, what have you done to eliminate this problem? Thanks for any help!! Debra Taylor Dtaylor@netbsa.org From owner-sqr-users@list.iex.net Thu Jul 20 16:08:03 2000 Date: Thu, 20 Jul 2000 15:48:52 -0400 From: "Jamadagni, Rajendra" Subject: Re: Performance Issues w/Oracle 8 Oracle 816 by default uses CBO, and if you were using RBO in 734 you'd experience lot (I mean lot) of performance drag. If this is the case, change optimizer setting to CHOOSE and bump the instance. If this is not practical do a 'alter session ....' in the initial portion of SRQ and see if that helps. It did work for us though .... Cheers Raj ______________________________________________________ Rajendra Jamadagni MIS, ESPN Inc. Rajendra dot Jamadagni at ESPN dot com QOTD: Any clod can have facts, but having an opinion is an art ! Any opinion expressed here is personal and doesn't reflect that of ESPN Inc. From owner-sqr-users@list.iex.net Thu Jul 20 16:24:44 2000 Date: Thu, 20 Jul 2000 15:51:45 -0400 From: "ggravino@wesleyan.edu" Subject: Re: Performance Issues w/Oracle 8 We just upgraded from 7.5 to 7.6 and found that some indexes were not migrated and we had to recreate them to fix some performance problems. At 02:39 PM 7/20/00 -0500, you wrote: >We are experiencing major performance issues with SQR's in Oracle 8.1.6. >The same SQR's that run in version 7.3.4 in minutes, take hours in 8.1.6. >Has anyone else experienced issues like this and if so, what have you done >to eliminate this problem? > >Thanks for any help!! >Debra Taylor >Dtaylor@netbsa.org From owner-sqr-users@list.iex.net Thu Jul 20 16:26:12 2000 Date: Thu, 20 Jul 2000 13:06:01 -0700 From: "Peter R. Lewandowski" Subject: Re: Performance Issues w/Oracle 8 No when you upgraded did you rebuild your indexes, and are you using the same optimization technique? Rules or cost based? Date sent: Thu, 20 Jul 2000 14:39:14 -0500 Send reply to: sqr-users@list.iex.net From: Debra Taylor Subject: Performance Issues w/Oracle 8 To: SQR-USERS@list.iex.net > We are experiencing major performance issues with SQR's in Oracle 8.1.6. The same SQR's that run in version 7.3.4 in > minutes, take hours in 8.1.6. Has anyone else experienced issues like this and if so, what have you done to eliminate > this problem? > > Thanks for any help!! > Debra Taylor > Dtaylor@netbsa.org Pete Lewandowski Analyst/Programmer 818-677-7539 From owner-sqr-users@list.iex.net Thu Jul 20 16:06:35 2000 Date: Thu, 20 Jul 2000 15:46:05 -0400 From: "Iberg, Cally A (ISI)" Subject: Need SQR Program Help! Hello! I have an SQR program that I need help with! I'm relatively new to SQR and have been fighting with this all day. What I'm looking to do is print a report that page-breaks each time the bldg no. changes, counting the number of bldgs. on each page. I know that I have to do some sort of on-break, but nothing I've tried has worked. A copy of the code is below. If someone could show me where I need to insert the on-break so that it gives me each bldg. on a new page, with a count I'd greatly appreciate it! The headings will not match the select statement since I moved the bldgno up. Thanks, Cally ---------------------------------------------------------------------------- -------------------------------- begin-setup page-size 15000 250 end-setup begin-report do get_records end-report begin-heading 2 print 'PAXIS ID TAG' (,1,) print 'NOMENCLATURE' (,15,) print 'CPU TYPE' (,37,) print 'MODEL NUMBER' (,52,) print 'MFR NAME' (,68,) print 'SERIAL NUMBER' (,89,) print 'COST' (,115,) print 'BLDG' (,124,) print 'LOCATION' (,130,) print 'CUSTODIAN' (,151,) print 'COMP' (,182,) print 'LAST INV DATE' (,190,) print '-' (+1,1,202) fill end-heading begin-procedure get_records move 0 to #cnt begin-select bldgno (+1,1,5) uic (,+1,6) govtidpre (,,1) govtidtag (,,6) nomen (,+1,20) cpu_type (,+1,15) modelno (,+1,15) mfrname (,+1,20) serialno (,+1,20) cost (,+1,14) edit 99,999,999.00 !bldgno (,+1,5) location (,+1,20) custodian (,+1,30) competency (,+1,7) lastinvdt (,+1,11) edit dd-mon-yyyy let #cnt = #cnt +1 from inventory.i2pia02v where bldgno like '665%' and lastinvdt < '10-JUL-2000' order by bldgno, uic, govtidpre, govtidtag end-select print 'TOTAL:' (+2,1,) print #cnt (,9,) edit 99999 end-procedure From owner-sqr-users@list.iex.net Thu Jul 20 16:25:00 2000 Date: Thu, 20 Jul 2000 16:03:19 -0400 From: "ggravino@wesleyan.edu" Subject: Re: Need SQR Program Help! --=====================_13712327==_ Content-Type: text/plain; charset="us-ascii" Attached is some sample code that works for me. It is only a code exerpt and will not work as is, just as an example. It is more complex then you need, but may be usefule to see. What happens int he ON-BREAK procedures is not important. You can do what you want there. Hope it helps. At 03:46 PM 7/20/00 -0400, you wrote: >Hello! >I have an SQR program that I need help with! I'm relatively new to SQR and >have been fighting with this all day. What I'm looking to do is print a >report that page-breaks each time the bldg no. changes, counting the number >of bldgs. on each page. I know that I have to do some sort of on-break, but >nothing I've tried has worked. A copy of the code is below. If someone >could show me where I need to insert the on-break so that it gives me each >bldg. on a new page, with a count I'd greatly appreciate it! > >The headings will not match the select statement since I moved the bldgno >up. > >Thanks, Cally > >---------------------------------------------------------------------------- >-------------------------------- > >begin-setup > page-size 15000 250 >end-setup > >begin-report > do get_records >end-report > >begin-heading 2 > print 'PAXIS ID TAG' (,1,) > print 'NOMENCLATURE' (,15,) > print 'CPU TYPE' (,37,) > print 'MODEL NUMBER' (,52,) > print 'MFR NAME' (,68,) > print 'SERIAL NUMBER' (,89,) > print 'COST' (,115,) > print 'BLDG' (,124,) > print 'LOCATION' (,130,) > print 'CUSTODIAN' (,151,) > print 'COMP' (,182,) > print 'LAST INV DATE' (,190,) > print '-' (+1,1,202) fill >end-heading > >begin-procedure get_records > move 0 to #cnt > >begin-select >bldgno (+1,1,5) >uic (,+1,6) >govtidpre (,,1) >govtidtag (,,6) >nomen (,+1,20) >cpu_type (,+1,15) >modelno (,+1,15) >mfrname (,+1,20) >serialno (,+1,20) >cost (,+1,14) edit 99,999,999.00 >!bldgno (,+1,5) >location (,+1,20) >custodian (,+1,30) >competency (,+1,7) >lastinvdt (,+1,11) edit dd-mon-yyyy > > let #cnt = #cnt +1 > > from inventory.i2pia02v > where bldgno like '665%' > and lastinvdt < '10-JUL-2000' > order by bldgno, uic, govtidpre, govtidtag >end-select > print 'TOTAL:' (+2,1,) > print #cnt (,9,) edit 99999 >end-procedure --=====================_13712327==_ Content-Type: text/plain; charset="us-ascii" Content-Disposition: attachment; filename="ON_BREAK_EXAMPLE.sqr" BEGIN-SELECT ct.subject () ON-BREAK LEVEL=1 PRINT=NEVER SAVE=$subject AFTER=after-break1 ct.crse_offer_nbr () ON-BREAK LEVEL=2 PRINT=NEVER SAVE=$offer_nbr AFTER=after-break2 ct.catalog_nbr () ON-BREAK LEVEL=3 PRINT=NEVER SAVE=$catal_nbr AFTER=after-break3 ct.session_code () ON-BREAK LEVEL=3 PRINT=NEVER SAVE=$session_code ct.class_section () ON-BREAK LEVEL=3 PRINT=NEVER SAVE=$class_section ct.acad_org () ON-BREAK LEVEL=3 PRINT=NEVER SAVE=$acad_org se.strm () ON-BREAK LEVEL=3 PRINT=NEVER SAVE=$strm ct2.subject () ON-BREAK LEVEL=3 PRINT=NEVER SAVE=$host_subject ct2.catalog_nbr () ON-BREAK LEVEL=3 PRINT=NEVER SAVE=$host_catalog_nbr ct2.session_code () ON-BREAK LEVEL=3 PRINT=NEVER SAVE=$host_session_code ct2.class_section () ON-BREAK LEVEL=3 PRINT=NEVER SAVE=$host_class_section se.crse_grade_off COUNT(se.emplid) &enrollment DO sum-array FROM ps_stdnt_enrl se, ps_class_tbl ct, ps_class_tbl ct2, ps_subject_tbl st WHERE se.strm in ($fall_term,$spring_term) AND se.crse_career='UGRD' AND se.stdnt_enrl_status='E' AND se.crse_grade_off<>'AU' AND se.class_nbr=ct.class_nbr AND se.strm=ct.strm AND ct.crse_id=ct2.crse_id AND ct.strm=ct2.strm AND ct.session_code=ct2.session_code AND ct.class_section=ct2.class_section AND ct2.crse_offer_nbr=1 AND ct.session_code<>'OMT' AND ct.institution=st.institution(+) AND ct.subject=st.subject(+) GROUP BY ct.subject, ct.crse_offer_nbr, ct.catalog_nbr, ct.session_code, ct.class_section, ct.acad_org, se.strm, ct2.subject, ct2.catalog_nbr, ct2.session_code, ct2.class_section, se.crse_grade_off ORDER BY ct.subject, ct.crse_offer_nbr, ct.catalog_nbr, ct.session_code, ct.class_section, ct.acad_org, se.strm, ct2.subject, ct2.catalog_nbr, ct2.session_code, ct2.class_section, se.crse_grade_off END-SELECT END-PROCEDURE !------------------------------------------------------------------------- ! Break Level 1 BEGIN-PROCEDURE after-break1 ! Setup Summary index to Total Summary (Host + Alias) LET #summary = #total_summary LET $sub_heading = 'Total' DO calculate-totals(#summary) DO print-summary ! Reinstate current Summary index LET #summary = TO_NUMBER($summary) ! Initialize array values for all 3 break levels DO init-array(#detail) DO init-array(#summary) DO init-array(#total_summary) END-PROCEDURE !------------------------------------------------------------------------- ! Break Level 2 BEGIN-PROCEDURE after-break2 ! $summary is an ON-BREAK SAVE value. It reflects either ! Host Summary (#host_summary) or Alias Summary (#alias_summary) array index, ! depending on the value of CRSE_OFFER_NBR. ! $report_type is an ON-BREAK SAVE value. It reflects either ! Host Report ($host_report) or Alias Report ($alias_report) array index, ! depending on the value of CRSE_OFFER_NBR ! (see DECODES in main-proc cursor). LET #summary = TO_NUMBER($summary) IF $report_type = $host_report LET $sub_heading = 'Host Courses' ELSE LET $sub_heading = 'Alias Courses' END-IF DO calculate-totals(#summary) DO print-detail-totals DO print-summary DO init-array(#detail) DO init-array(#summary) END-PROCEDURE !------------------------------------------------------------------------- ! Break Level 3 BEGIN-PROCEDURE after-break3 ! $detail is an ON-BREAK SAVE value. It reflects either ! Host Detail (#host_detail) or Alias Detail (#alias_detail) array index, ! depending on the value of CRSE_OFFER_NBR. ! $report_type is an ON-BREAK SAVE value. It reflects either ! Host Report ($host_report) or Alias Report ($alias_report) array index, ! depending on the value of CRSE_OFFER_NBR ! (see DECODES in main-proc cursor). LET #detail = TO_NUMBER($detail) IF $report_type = $host_report LET $sub_heading = 'Host Courses' ELSE LET $sub_heading = 'Alias Courses' END-IF DO setup-term DO calculate-totals(#detail) DO print-detail-line DO init-array(#detail) END-PROCEDURE --=====================_13712327==_-- From owner-sqr-users@list.iex.net Thu Jul 20 16:27:31 2000 Date: Thu, 20 Jul 2000 16:05:38 -0400 From: "Riepenhoff, Ray" Subject: Re: Need SQR Program Help! Cally, Try the following changes. They should work. Raymond Riepenhoff -----Original Message----- From: Iberg, Cally A (ISI) [mailto:IbergCA@NAVAIR.NAVY.MIL] Sent: Thursday, July 20, 2000 3:46 PM To: SQR-USERS@list.iex.net Subject: Need SQR Program Help! Hello! I have an SQR program that I need help with! I'm relatively new to SQR and have been fighting with this all day. What I'm looking to do is print a report that page-breaks each time the bldg no. changes, counting the number of bldgs. on each page. I know that I have to do some sort of on-break, but nothing I've tried has worked. A copy of the code is below. If someone could show me where I need to insert the on-break so that it gives me each bldg. on a new page, with a count I'd greatly appreciate it! The headings will not match the select statement since I moved the bldgno up. Thanks, Cally ---------------------------------------------------------------------------- -------------------------------- begin-setup page-size 15000 250 end-setup begin-report do get_records end-report begin-heading 2 print 'PAXIS ID TAG' (,1,) print 'NOMENCLATURE' (,15,) print 'CPU TYPE' (,37,) print 'MODEL NUMBER' (,52,) print 'MFR NAME' (,68,) print 'SERIAL NUMBER' (,89,) print 'COST' (,115,) print 'BLDG' (,124,) print 'LOCATION' (,130,) print 'CUSTODIAN' (,151,) print 'COMP' (,182,) print 'LAST INV DATE' (,190,) print '-' (+1,1,202) fill end-heading begin-procedure get_records move 0 to #cnt begin-select !bldgno (+1,1,5) bldgno (+1,1,5) on-break print=never after=bldgno-chg uic (,+1,6) govtidpre (,,1) govtidtag (,,6) nomen (,+1,20) cpu_type (,+1,15) modelno (,+1,15) mfrname (,+1,20) serialno (,+1,20) cost (,+1,14) edit 99,999,999.00 !bldgno (,+1,5) location (,+1,20) custodian (,+1,30) competency (,+1,7) lastinvdt (,+1,11) edit dd-mon-yyyy let #cnt = #cnt +1 from inventory.i2pia02v where bldgno like '665%' and lastinvdt < '10-JUL-2000' order by bldgno, uic, govtidpre, govtidtag end-select print 'TOTAL:' (+2,1,) print #cnt (,9,) edit 99999 end-procedure begin-procedure bldgno-chg print 'Building Ct: ' (+2,1) print #cnt (+0,14) edit 9,999 add #cnt to #tot_cnt move 0 to #cnt end-procedure bldgno-chg From owner-sqr-users@list.iex.net Thu Jul 20 16:29:10 2000 Date: Thu, 20 Jul 2000 16:07:40 -0400 From: "Riepenhoff, Ray" Subject: Re: Need SQR Program Help! Cally, I forgot you wanted a page break. If you reviewed the previous reply I sent you, after you print the building count, add the following line: new-page Raymond -----Original Message----- From: Iberg, Cally A (ISI) [mailto:IbergCA@NAVAIR.NAVY.MIL] Sent: Thursday, July 20, 2000 3:46 PM To: SQR-USERS@list.iex.net Subject: Need SQR Program Help! Hello! I have an SQR program that I need help with! I'm relatively new to SQR and have been fighting with this all day. What I'm looking to do is print a report that page-breaks each time the bldg no. changes, counting the number of bldgs. on each page. I know that I have to do some sort of on-break, but nothing I've tried has worked. A copy of the code is below. If someone could show me where I need to insert the on-break so that it gives me each bldg. on a new page, with a count I'd greatly appreciate it! The headings will not match the select statement since I moved the bldgno up. Thanks, Cally ---------------------------------------------------------------------------- -------------------------------- begin-setup page-size 15000 250 end-setup begin-report do get_records end-report begin-heading 2 print 'PAXIS ID TAG' (,1,) print 'NOMENCLATURE' (,15,) print 'CPU TYPE' (,37,) print 'MODEL NUMBER' (,52,) print 'MFR NAME' (,68,) print 'SERIAL NUMBER' (,89,) print 'COST' (,115,) print 'BLDG' (,124,) print 'LOCATION' (,130,) print 'CUSTODIAN' (,151,) print 'COMP' (,182,) print 'LAST INV DATE' (,190,) print '-' (+1,1,202) fill end-heading begin-procedure get_records move 0 to #cnt begin-select bldgno (+1,1,5) uic (,+1,6) govtidpre (,,1) govtidtag (,,6) nomen (,+1,20) cpu_type (,+1,15) modelno (,+1,15) mfrname (,+1,20) serialno (,+1,20) cost (,+1,14) edit 99,999,999.00 !bldgno (,+1,5) location (,+1,20) custodian (,+1,30) competency (,+1,7) lastinvdt (,+1,11) edit dd-mon-yyyy let #cnt = #cnt +1 from inventory.i2pia02v where bldgno like '665%' and lastinvdt < '10-JUL-2000' order by bldgno, uic, govtidpre, govtidtag end-select print 'TOTAL:' (+2,1,) print #cnt (,9,) edit 99999 end-procedure From owner-sqr-users@list.iex.net Thu Jul 20 18:10:31 2000 Date: Thu, 20 Jul 2000 17:49:40 -0400 From: Chuck.L.King@SEALEDAIR.COM Subject: Re: Need SQR Program Help! Hi Cally! We use this quite often. Below I have inserted the commands you will need. Chuck L. King "Iberg, Cally A (ISI)" @list.iex.net> on 07/20/2000 02:46:05 PM Please respond to sqr-users@list.iex.net Sent by: "Discussion of SQR, Brio Technology's database reporting language" To: SQR-USERS@list.iex.net cc: Subject: Need SQR Program Help! Hello! I have an SQR program that I need help with! I'm relatively new to SQR and have been fighting with this all day. What I'm looking to do is print a report that page-breaks each time the bldg no. changes, counting the number of bldgs. on each page. I know that I have to do some sort of on-break, but nothing I've tried has worked. A copy of the code is below. If someone could show me where I need to insert the on-break so that it gives me each bldg. on a new page, with a count I'd greatly appreciate it! The headings will not match the select statement since I moved the bldgno up. Thanks, Cally ---------------------------------------------------------------------------- -------------------------------- begin-setup page-size 15000 250 end-setup begin-report do get_records end-report begin-heading 2 print 'PAXIS ID TAG' (,1,) print 'NOMENCLATURE' (,15,) print 'CPU TYPE' (,37,) print 'MODEL NUMBER' (,52,) print 'MFR NAME' (,68,) print 'SERIAL NUMBER' (,89,) print 'COST' (,115,) print 'BLDG' (,124,) print 'LOCATION' (,130,) print 'CUSTODIAN' (,151,) print 'COMP' (,182,) print 'LAST INV DATE' (,190,) print '-' (+1,1,202) fill end-heading begin-procedure pg_break ! Procedure to issue a page break when called NEW-PAGE ! by on-break print=always procedure=pg_break end-procedure ! as seen below begin-procedure get_records move 0 to #cnt begin-select bldgno (+1,1,5) ON-BREAK PRINT=ALWAYS PROCEDURE=pg_break uic (,+1,6) govtidpre (,,1) govtidtag (,,6) nomen (,+1,20) cpu_type (,+1,15) modelno (,+1,15) mfrname (,+1,20) serialno (,+1,20) cost (,+1,14) edit 99,999,999.00 !bldgno (,+1,5) location (,+1,20) custodian (,+1,30) competency (,+1,7) lastinvdt (,+1,11) edit dd-mon-yyyy let #cnt = #cnt +1 from inventory.i2pia02v where bldgno like '665%' and lastinvdt < '10-JUL-2000' order by bldgno, uic, govtidpre, govtidtag end-select print 'TOTAL:' (+2,1,) print #cnt (,9,) edit 99999 end-procedure From owner-sqr-users@list.iex.net Mon Jul 24 10:04:22 2000 Date: Mon, 24 Jul 2000 09:43:16 -0400 From: "Iberg, Cally A (ISI)" Subject: Re: Need SQR Program Help! Just wanted to say thanks to everyone that wrote in with help. I'm guessing you can do this several different ways? Ray - your code worked like a charm! Thanks Again! Cally -----Original Message----- From: Riepenhoff, Ray [mailto:riepenhoffrm@PORTS.USEC.COM] Sent: Thursday, July 20, 2000 4:08 PM To: SQR-USERS@list.iex.net Subject: Re: Need SQR Program Help! Cally, I forgot you wanted a page break. If you reviewed the previous reply I sent you, after you print the building count, add the following line: new-page Raymond -----Original Message----- From: Iberg, Cally A (ISI) [mailto:IbergCA@NAVAIR.NAVY.MIL] Sent: Thursday, July 20, 2000 3:46 PM To: SQR-USERS@list.iex.net Subject: Need SQR Program Help! Hello! I have an SQR program that I need help with! I'm relatively new to SQR and have been fighting with this all day. What I'm looking to do is print a report that page-breaks each time the bldg no. changes, counting the number of bldgs. on each page. I know that I have to do some sort of on-break, but nothing I've tried has worked. A copy of the code is below. If someone could show me where I need to insert the on-break so that it gives me each bldg. on a new page, with a count I'd greatly appreciate it! The headings will not match the select statement since I moved the bldgno up. Thanks, Cally ---------------------------------------------------------------------------- -------------------------------- begin-setup page-size 15000 250 end-setup begin-report do get_records end-report begin-heading 2 print 'PAXIS ID TAG' (,1,) print 'NOMENCLATURE' (,15,) print 'CPU TYPE' (,37,) print 'MODEL NUMBER' (,52,) print 'MFR NAME' (,68,) print 'SERIAL NUMBER' (,89,) print 'COST' (,115,) print 'BLDG' (,124,) print 'LOCATION' (,130,) print 'CUSTODIAN' (,151,) print 'COMP' (,182,) print 'LAST INV DATE' (,190,) print '-' (+1,1,202) fill end-heading begin-procedure get_records move 0 to #cnt begin-select bldgno (+1,1,5) uic (,+1,6) govtidpre (,,1) govtidtag (,,6) nomen (,+1,20) cpu_type (,+1,15) modelno (,+1,15) mfrname (,+1,20) serialno (,+1,20) cost (,+1,14) edit 99,999,999.00 !bldgno (,+1,5) location (,+1,20) custodian (,+1,30) competency (,+1,7) lastinvdt (,+1,11) edit dd-mon-yyyy let #cnt = #cnt +1 from inventory.i2pia02v where bldgno like '665%' and lastinvdt < '10-JUL-2000' order by bldgno, uic, govtidpre, govtidtag end-select print 'TOTAL:' (+2,1,) print #cnt (,9,) edit 99999 end-procedure From owner-sqr-users@list.iex.net Mon Jul 24 10:58:55 2000 Date: Mon, 24 Jul 2000 10:40:47 EDT From: Manoj Gurjar Subject: Re: Need SQR Program Help! i would recommend, don't print using implicit print in begin-select, instead save each col into variable and then use print command just before FROM. and then use following : begin-select bldgno () on-break print=never AFTER=bldgno-after level=1 save=$prev_bldgno uic . . . and then in procedure bldgno-after, put new-page command to get new page for each diff bldgno. Also $prev_bldgno will have previous bldgno value when it changes, in case u need it in AFTER proc. hth, manoj >From: "Iberg, Cally A (ISI)" >Reply-To: sqr-users@list.iex.net >To: SQR-USERS@list.iex.net >Subject: Need SQR Program Help! >Date: Thu, 20 Jul 2000 15:46:05 -0400 > >Hello! >I have an SQR program that I need help with! I'm relatively new to SQR and >have been fighting with this all day. What I'm looking to do is print a >report that page-breaks each time the bldg no. changes, counting the number >of bldgs. on each page. I know that I have to do some sort of on-break, >but >nothing I've tried has worked. A copy of the code is below. If someone >could show me where I need to insert the on-break so that it gives me each >bldg. on a new page, with a count I'd greatly appreciate it! > >The headings will not match the select statement since I moved the bldgno >up. > >Thanks, Cally > >---------------------------------------------------------------------------- >-------------------------------- > >begin-setup > page-size 15000 250 >end-setup > >begin-report > do get_records >end-report > >begin-heading 2 > print 'PAXIS ID TAG' (,1,) > print 'NOMENCLATURE' (,15,) > print 'CPU TYPE' (,37,) > print 'MODEL NUMBER' (,52,) > print 'MFR NAME' (,68,) > print 'SERIAL NUMBER' (,89,) > print 'COST' (,115,) > print 'BLDG' (,124,) > print 'LOCATION' (,130,) > print 'CUSTODIAN' (,151,) > print 'COMP' (,182,) > print 'LAST INV DATE' (,190,) > print '-' (+1,1,202) fill >end-heading > >begin-procedure get_records > move 0 to #cnt > >begin-select >bldgno (+1,1,5) >uic (,+1,6) >govtidpre (,,1) >govtidtag (,,6) >nomen (,+1,20) >cpu_type (,+1,15) >modelno (,+1,15) >mfrname (,+1,20) >serialno (,+1,20) >cost (,+1,14) edit 99,999,999.00 >!bldgno (,+1,5) >location (,+1,20) >custodian (,+1,30) >competency (,+1,7) >lastinvdt (,+1,11) edit dd-mon-yyyy > > let #cnt = #cnt +1 > > from inventory.i2pia02v > where bldgno like '665%' > and lastinvdt < '10-JUL-2000' > order by bldgno, uic, govtidpre, govtidtag >end-select > print 'TOTAL:' (+2,1,) > print #cnt (,9,) edit 99999 >end-procedure ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From owner-sqr-users@list.iex.net Thu Jul 20 19:49:47 2000 Date: Thu, 20 Jul 2000 16:30:49 -0700 From: Sayre John Subject: datenow() fails my program! I am attempting to use datenow() in a program. It causes an expressionspace error. Expressionspace is set in -mfile to the max, but I get this error: (SQR 4038) Out of space while processing expression; Use -Mfile to increase EXPRESSIONSPACE. I have lifted, verbatim, two different formats from previous questions in the group. I am using V4.0.3.1 The offending code is: let $date_string = edit(datenow(),'YYYY-MM-DD HH24:MI:SS') What is wrong? From owner-sqr-users@list.iex.net Fri Jul 21 10:15:03 2000 Date: Fri, 21 Jul 2000 08:56:12 -0500 From: Kathy Anderson Subject: Re: datenow() fails my program! I wrote a quick program with your line of code and it did not err out. So it must really be a memory error (sometimes I don't always believe the Out of space . . . use -mfile . . .error is really due to a memory issue.) You should increase the expressionspace value in your .max file or whatever file your -m flag is pointing to. If you're a PeopleSoft user your -mfile is allmaxes.max <<...>> > -----Original Message----- > From: Sayre John [SMTP:John_Sayre@GAP.COM] > Sent: 20 July 2000 6:31 PM > To: SQR-USERS@list.iex.net > Subject: datenow() fails my program! > > I am attempting to use datenow() in a program. It causes an > expressionspace > error. > Expressionspace is set in -mfile to the max, but I get this error: > > (SQR 4038) Out of space while processing expression; Use -Mfile to > increase > EXPRESSIONSPACE. > > I have lifted, verbatim, two different formats from previous questions in > the > group. > > I am using V4.0.3.1 > The offending code is: > let $date_string = edit(datenow(),'YYYY-MM-DD HH24:MI:SS') > > What is wrong? From owner-sqr-users@list.iex.net Sat Jul 22 11:55:47 2000 Date: Sat, 22 Jul 2000 08:35:19 -0700 From: Heather Simpkins Subject: Re: datenow() fails my program! Check that all your Begin-Select / End-Select and Begin-SQL / End-SQL match up. You sometimes get that message if there is a mismatch. -----Original Message----- From: Discussion of SQR, Brio Technology's database reporting language [mailto:SQR-USERS@list.iex.net]On Behalf Of Kathy Anderson Sent: Friday, 21 July 2000 06:56 AM To: SQR-USERS@list.iex.net Subject: Re: datenow() fails my program! I wrote a quick program with your line of code and it did not err out. So it must really be a memory error (sometimes I don't always believe the Out of space . . . use -mfile . . .error is really due to a memory issue.) You should increase the expressionspace value in your .max file or whatever file your -m flag is pointing to. If you're a PeopleSoft user your -mfile is allmaxes.max <<...>> > -----Original Message----- > From: Sayre John [SMTP:John_Sayre@GAP.COM] > Sent: 20 July 2000 6:31 PM > To: SQR-USERS@list.iex.net > Subject: datenow() fails my program! > > I am attempting to use datenow() in a program. It causes an > expressionspace > error. > Expressionspace is set in -mfile to the max, but I get this error: > > (SQR 4038) Out of space while processing expression; Use -Mfile to > increase > EXPRESSIONSPACE. > > I have lifted, verbatim, two different formats from previous questions in > the > group. > > I am using V4.0.3.1 > The offending code is: > let $date_string = edit(datenow(),'YYYY-MM-DD HH24:MI:SS') > > What is wrong? From owner-sqr-users@list.iex.net Fri Jul 21 10:17:09 2000 Date: Fri, 21 Jul 2000 08:59:09 CDT From: Bill Reestman Subject: isblank vs. isnull Can someone tell me the difference between a null string and null. Isblank checks if source_val is an empty string, null string, or composed entirely of whitespace characters. Isnull checks if source_val is null. I was under the impression that isblank was just a more robust version of isnull, but when I tested this, isblank doesn't seem to treat a null value in the database as I thought it would. Thanks in advance for any help, Bill ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From owner-sqr-users@list.iex.net Fri Jul 21 17:53:56 2000 Date: Fri, 21 Jul 2000 16:32:33 CDT From: Joe Johnson Subject: Reading from a flat file and writing to another flat file I want to write an SQR to extract phone contact data from a text file, with the values delimited by a ';' and to create an XML file. Text file has something like this: Baker, Ron;972-972-9729;972-972-7297;;9727927@skytel.com;1200 etc The XML file must look like this: Baker, Ron 972-972-9729 972-972-7297 9727927@skytel.com 1200 etc There will also be some other tags in the XML file, but my question is this: Will I need to create an array or temporary table in a database to extract the data from the text file, or can I directly read the data from the text file and then write it to the XML file? I'm hoping to do something like: Open 'a:\phonelis.txt' as 1 For-Reading Record=100 Do Read-Input-File !which would unstring the data into ! $NAME ! $HOME_PHONE ! $PAGER ! $CELL ! $PAGER_EMAIL ! $EXT !and then Open 'a:\Phonelis.xml' as 1 For-Writing Record=100 DO Create-XML-File ! which would do something like: !Write 1 From ! '' ! ''$NAME'' ! ''$HOME_PHONE'' ! ''$PAGER'' ! ''$CELL'' ! ''$PAGER_EMAIL'' ! ''$EXT'' ! ' Does this ROUGH outline look like it would work? Thanks in advance! Joe Johnson ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From owner-sqr-users@list.iex.net Fri Jul 21 18:01:10 2000 Date: Fri, 21 Jul 2000 16:45:11 -0500 From: "Yates, Kimberly" Subject: Re: Reading from a flat file and writing to another flat file This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01BFF35C.F21645F0 Content-Type: text/plain; charset="iso-8859-1" You need to use two different file number literals. Your first open would be "as 1" the second would be "as 2". -----Original Message----- From: Joe Johnson [mailto:jej1216@HOTMAIL.COM] Sent: Friday, July 21, 2000 4:33 PM To: SQR-USERS@list.iex.net Subject: Reading from a flat file and writing to another flat file I want to write an SQR to extract phone contact data from a text file, with the values delimited by a ';' and to create an XML file. Text file has something like this: Baker, Ron;972-972-9729;972-972-7297;;9727927@skytel.com;1200 etc The XML file must look like this: Baker, Ron 972-972-9729 972-972-7297 9727927@skytel.com 1200 etc There will also be some other tags in the XML file, but my question is this: Will I need to create an array or temporary table in a database to extract the data from the text file, or can I directly read the data from the text file and then write it to the XML file? I'm hoping to do something like: Open 'a:\phonelis.txt' as 1 For-Reading Record=100 Do Read-Input-File !which would unstring the data into ! $NAME ! $HOME_PHONE ! $PAGER ! $CELL ! $PAGER_EMAIL ! $EXT !and then Open 'a:\Phonelis.xml' as 1 For-Writing Record=100 DO Create-XML-File ! which would do something like: !Write 1 From ! '' ! ''$NAME'' ! ''$HOME_PHONE'' ! ''$PAGER'' ! ''$CELL'' ! ''$PAGER_EMAIL'' ! ''$EXT'' ! ' Does this ROUGH outline look like it would work? Thanks in advance! Joe Johnson ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ------_=_NextPart_001_01BFF35C.F21645F0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: Reading from a flat file and writing to another flat = file

You need to use two different file number = literals.  Your first open would be "as 1" the second = would be "as 2".

-----Original Message-----
From: Joe Johnson [mailto:jej1216@HOTMAIL.COM]
Sent: Friday, July 21, 2000 4:33 PM
To: SQR-USERS@list.iex.net
Subject: Reading from a flat file and writing to = another flat file


I want to write an SQR to extract phone contact data = from a text file, with
the values delimited by a ';' and to create an XML = file.

Text file has something like this:

Baker, = Ron;972-972-9729;972-972-7297;;9727927@skytel.com;1200

etc

The XML file must look like this:

  <PH>
    <EMPLOYEE>Baker, = Ron</EMPLOYEE>
    = <HOME_PHONE>972-972-9729</HOME_PHONE>
    = <PAGER>972-972-7297</PAGER>
    <CELL></CELL>
    = <PAGER_EMAIL>9727927@skytel.com</PAGER_EMAIL>
    = <WORK_EXT>1200</WORK_EXT>
  </PH>

etc

There will also be some other tags in the XML file, = but my question is this:

Will I need to create an array or temporary table in = a database to extract
the data from the text file, or can I directly read = the data from the text
file and then write it to the XML file?

I'm hoping to do something like:

Open 'a:\phonelis.txt' as 1 For-Reading = Record=3D100

       Do = Read-Input-File
!which would unstring the data into
! $NAME
! $HOME_PHONE
! $PAGER
! $CELL
! $PAGER_EMAIL
! $EXT


!and then

Open 'a:\Phonelis.xml' as 1 For-Writing = Record=3D100

       DO = Create-XML-File
! which would do something like:
!Write 1 From
! '<PH>'
! '<EMPLOYEE>'$NAME'</EMPLOYEE>'
! = '<HOME_PHONE>'$HOME_PHONE'</HOME_PHONE>'
! '<PAGER>'$PAGER'</PAGER>'
! '<CELL>'$CELL'</CELL>'
! = '<PAGER_EMAIL>'$PAGER_EMAIL'</PAGER_EMAIL>'
! '<WORK_EXT>'$EXT'</WORK_EXT>'
! '</PH>

Does this ROUGH outline look like it would = work?

Thanks in advance!

Joe Johnson

_______________________________________________________________= _________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

------_=_NextPart_001_01BFF35C.F21645F0-- From owner-sqr-users@list.iex.net Fri Jul 21 18:09:59 2000 Date: Fri, 21 Jul 2000 14:54:17 -0700 From: Ian Robinson Subject: Re: Reading from a flat file and writing to another flat file BrioReport 6.0, which is available now and incorporates the new SQR Server 6.0, makes it easy to generate XML report output, and it can also read in XML as a data source. - Ian Robinson, Brio Technology, Inc. -----Original Message----- From: Joe Johnson [mailto:jej1216@HOTMAIL.COM] Sent: Friday, July 21, 2000 2:33 PM To: SQR-USERS@list.iex.net Subject: Reading from a flat file and writing to another flat file I want to write an SQR to extract phone contact data from a text file, with the values delimited by a ';' and to create an XML file. Text file has something like this: Baker, Ron;972-972-9729;972-972-7297;;9727927@skytel.com;1200 etc The XML file must look like this: Baker, Ron 972-972-9729 972-972-7297 9727927@skytel.com 1200 etc There will also be some other tags in the XML file, but my question is this: Will I need to create an array or temporary table in a database to extract the data from the text file, or can I directly read the data from the text file and then write it to the XML file? I'm hoping to do something like: Open 'a:\phonelis.txt' as 1 For-Reading Record=100 Do Read-Input-File !which would unstring the data into ! $NAME ! $HOME_PHONE ! $PAGER ! $CELL ! $PAGER_EMAIL ! $EXT !and then Open 'a:\Phonelis.xml' as 1 For-Writing Record=100 DO Create-XML-File ! which would do something like: !Write 1 From ! '' ! ''$NAME'' ! ''$HOME_PHONE'' ! ''$PAGER'' ! ''$CELL'' ! ''$PAGER_EMAIL'' ! ''$EXT'' ! ' Does this ROUGH outline look like it would work? Thanks in advance! Joe Johnson ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From owner-sqr-users@list.iex.net Mon Jul 24 16:27:39 2000 Date: Mon, 24 Jul 2000 16:04:04 EDT From: Manoj Gurjar Subject: Re: Reading from a flat file and writing to another flat file only suggestion is instead of writing using only single WRITE, break into seperate WRITE commands for the each line you would like to have in XML file... >From: Joe Johnson >Reply-To: sqr-users@list.iex.net >To: SQR-USERS@list.iex.net >Subject: Reading from a flat file and writing to another flat file >Date: Fri, 21 Jul 2000 16:32:33 CDT > >I want to write an SQR to extract phone contact data from a text file, with >the values delimited by a ';' and to create an XML file. > >Text file has something like this: > >Baker, Ron;972-972-9729;972-972-7297;;9727927@skytel.com;1200 > >etc > >The XML file must look like this: > > > Baker, Ron > 972-972-9729 > 972-972-7297 > > 9727927@skytel.com > 1200 > > >etc > >There will also be some other tags in the XML file, but my question is >this: > >Will I need to create an array or temporary table in a database to extract >the data from the text file, or can I directly read the data from the text >file and then write it to the XML file? > >I'm hoping to do something like: > >Open 'a:\phonelis.txt' as 1 For-Reading Record=100 > > Do Read-Input-File >!which would unstring the data into >! $NAME >! $HOME_PHONE >! $PAGER >! $CELL >! $PAGER_EMAIL >! $EXT > > >!and then > >Open 'a:\Phonelis.xml' as 1 For-Writing Record=100 > > DO Create-XML-File >! which would do something like: >!Write 1 From >! '' >! ''$NAME'' >! ''$HOME_PHONE'' >! ''$PAGER'' >! ''$CELL'' >! ''$PAGER_EMAIL'' >! ''$EXT'' >! ' > >Does this ROUGH outline look like it would work? > >Thanks in advance! > >Joe Johnson > >________________________________________________________________________ >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From owner-sqr-users@list.iex.net Mon Jul 24 18:05:39 2000 Date: Mon, 24 Jul 2000 16:45:44 CDT From: Joe Johnson Subject: Re: Reading from a flat file and writing to another flat file Thanks to all who responded! With your input, I was able to do the task - read from a text file delimited with semi-colons and create an XML file that I could display with an HTML file. Here's the code I ended up with: !Phonelis.SQR ! IS Phonelist program to extract data from txt file delimited by ';' and create a file in XML format ! Joe Johnson ! Snelling and Snelling, Inc. ! jej1216@hotmail.com !******************** Begin-Program !******************** Open 'a:\Phonelis.txt' as 1 For-Reading Record=1000 Status=#OpenStat If #OpenStat != 0 Show 'Error Opening a:\Phonelist.txt' Else Show 'a:\Phonelist.txt has been opened for reading.' End-If Open 'a:\Phonelis.xml' as 2 For-Writing Record=1000 Status=#OpenStat If #OpenStat != 0 Show 'Error Opening a:\Phonelist.xml' Else Show 'a:\Phonelist.xml has been opened for writing.' End-If Do Read-Input-File End-Program !********************************************* Begin-Procedure Read-Input-File !********************************************* Show 'Reading Phonelis.txt' Move 0 To #Tot_Recs Write 2 From '' Write 2 From '' While Not #end-file Read 1 Into $Input:1000 If #end-file Break End-If Unstring $Input By ';' Into $NAME $HOME_PHONE $PAGER $CELL $PAGER_EMAIL $EXT Add 1 to #Tot_Recs Display 'Total records exported: ' Noline Display #Tot_Recs 999,999,999 If $NAME = '' Let $NAME = 'none' End-if If $HOME_PHONE = '' Let $HOME_PHONE = 'none' End-if If $PAGER = '' Let $PAGER = 'none' End-if If $CELL = '' Let $CELL = 'none' End-if If $PAGER_EMAIL = '' Let $PAGER_EMAIL = 'none' End-if If $EXT = '' Let $EXT = 'none' End-if Let $XML_NAME = ''|| $NAME||'' Let $XML_HPHONE = ''||$HOME_PHONE||'' Let $XML_PAGER = ''||$PAGER||'' Let $XML_CELL = ''||$CELL||'' Let $XML_PAGEREMAIL = ''||$PAGER_EMAIL||'' Let $XML_EXT = ''||$EXT||'' Do Create-XML-File End-While Write 2 From '' Display 'Total Records Inserted: ' Noline Display #Tot_Recs 999,999,999 End-Procedure !********************************************* Begin-Procedure Create-XML-File !********************************************* Show 'Writing Phonelis.xml' Write 2 From '' $XML_NAME $XML_HPHONE $XML_PAGER $XML_CELL $XML_PAGEREMAIL $XML_EXT '' End-Procedure Thanks again! Joe Johnson ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From owner-sqr-users@list.iex.net Sun Jul 23 09:34:45 2000 Date: Sun, 23 Jul 2000 16:15:46 +0200 From: Nadav Karpenkop Subject: SQR & COM This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01BFF4B0.7E8A0860 Content-Type: text/plain; charset="iso-8859-1" Hi Does the SQR language support COM object , I mean can I create COM object like for example in VB : Set a = CreateObject("...") and if the answer is yes please send me a simple example. Thanks in advance for any help, Nadav. ------_=_NextPart_001_01BFF4B0.7E8A0860 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable SQR & COM

Hi

Does the SQR language support COM = object , I mean can I create COM object like for example in VB : Set = a  =3D CreateObject("...")

and if the answer is yes please send = me a simple example.
Thanks in advance for any help, =
        =         =         =         =         =         Nadav.



------_=_NextPart_001_01BFF4B0.7E8A0860-- From owner-sqr-users@list.iex.net Mon Jul 24 10:36:38 2000 Date: Mon, 24 Jul 2000 09:04:50 -0500 From: "Thomas, Lyla" Subject: Re: PeopleSoft Integration This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01BFF578.1EDA9D6C Content-Type: text/plain; charset="iso-8859-1" Nadav, You can write some people code in SavePostChange event to write to a Audit table and then in your SQR you can read that Audit table and write it to a file.The people code you have is a standard people code for the job panel.All the people soft have a panel for hire employee and the people code is standard. Only thing we did was created new Action code and Action reason codes. This is the code I have in Position_data Tble to write it to a Audit table If FieldChanged(POSITION_NBR) SQLExec("insert into ps_zzaudit_dpt_tbl (setid,audit_oprid,audit_stamp,audit_actn,newvalue,oldvalue,deptid,effdt,des cr,descrshort,company,location,manager_id,eff_status,paygroup,jobcode,positi on_nbr,business_unit,reports_to,zz_trng_srs_ind,zz_mas_job_desc,zz_spc_pay_r t,zz_app_prem_max,zz_app_basesup_pay,zz_spc_pay_rt_type,zz_prior_deptid,zz_p rior_jobcode,zz_prior_reportsto) values (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12,:13,:14,:15,:16,:17,:18,:19,:20,:21, :22,:23,:24,:25,:26,:27,:28)", &SETID, &OPRID, &DATE, &ACTN, &NEWVALUE, &OLDVALUE, DEPTID, EFFDT, DESCR, DESCRSHORT, COMPANY, LOCATION, &MANAGER, EFF_STATUS, PAYGROUP, JOBCODE, POSITION_NBR, BUSINESS_UNIT, REPORTS_TO, ZZ_TRNG_SRS_IND, ZZ_MAS_JOB_DESC, ZZ_SPC_PAY_RT, ZZ_APP_PREM_MAX, ZZ_APP_BASESUP_PAY, ZZ_SPC_PAY_RT_TYPE, &PRIOR_DEPTID, &PRIOR_JOBCODE, &PRIOR_REPORTS_TO); End-If; Hope this helps Lyla -----Original Message----- From: Nadav Karpenkop [mailto:nadavk@BUSINESSLAYERS.COM] Sent: Monday, July 24, 2000 9:35 AM To: SQR-USERS@list.iex.net Subject: PeopleSoft Integration Hi I'm trying to write an integration to PeopleSoft , which will catch the New Employee Event and will create an output file with the employee details. My question is , what should I expect to find on different PeopleSoft customers , is there a default screen for Hire employee or maybe a template panel which every one is expands , or maybe the PeopleSoft application comes naked and every customer defines there own Hire Employee panel ( screen ) using the PeopleCode at the customer's site. Does the "SavePostChg" event exist on every project etc ? All my questions were raised while I was looking on an Integration for PeopleSoft. There I saw for example the Hire event code: If %PanelGroup = PANELGROUP.JOB_DATA_HIRE Then If(ACTION = "HIR") And RecordNew(EMPID) And &PER_STATUS = "E" And %Mode<>"C" Then ... .... ... End-if; End-if; Should I expect to find this at any customer's sites which are using PeopleSoft ? is the below sample the right way (generic way ) to write my code ? can I count on the fact that these panels and panel groups exist for any PeopleSoft customer ? Please let me Know Lots & Lots of Thanks Nadav ------_=_NextPart_001_01BFF578.1EDA9D6C Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable PeopleSoft Integration
Nadav,
    You can write some  = people code=20 in SavePostChange event to write to a Audit table and then in your SQR = you can=20 read that Audit table and write it to a file.The people code you have = is a=20 standard people code for the job panel.All the people soft have = a panel for=20 hire employee and the people code is standard. Only thing we did was = created new=20 Action code and Action reason codes.
 This is the code I have in = Position_data = Tble to write it=20 to a Audit table
If FieldChanged(POSITION_NBR) =

SQLExec("insert = into=20 ps_zzaudit_dpt_tbl=20 (setid,audit_oprid,audit_stamp,audit_actn,newvalue,oldvalue,deptid,effdt= ,descr,descrshort,company,location,manager_id,eff_status,paygroup,jobcod= e,position_nbr,business_unit,reports_to,zz_trng_srs_ind,zz_mas_job_desc,= zz_spc_pay_rt,zz_app_prem_max,zz_app_basesup_pay,zz_spc_pay_rt_type,zz_p= rior_deptid,zz_prior_jobcode,zz_prior_reportsto)=20 values=20 (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12,:13,:14,:15,:16,:17,:18,:19,:20,= :21,:22,:23,:24,:25,:26,:27,:28)",=20 &SETID, &OPRID, &DATE, &ACTN, &NEWVALUE, = &OLDVALUE,=20 DEPTID, EFFDT, DESCR, DESCRSHORT, COMPANY, LOCATION, &MANAGER, = EFF_STATUS,=20 PAYGROUP, JOBCODE, POSITION_NBR, BUSINESS_UNIT, REPORTS_TO, = ZZ_TRNG_SRS_IND,=20 ZZ_MAS_JOB_DESC, ZZ_SPC_PAY_RT, ZZ_APP_PREM_MAX, ZZ_APP_BASESUP_PAY,=20 ZZ_SPC_PAY_RT_TYPE, &PRIOR_DEPTID, &PRIOR_JOBCODE,=20 &PRIOR_REPORTS_TO);

End-If;

Hope this helps

Lyla

-----Original Message-----
From: Nadav Karpenkop=20 [mailto:nadavk@BUSINESSLAYERS.COM]
Sent: Monday, July 24, = 2000 9:35=20 AM
To: SQR-USERS@list.iex.net
Subject: PeopleSoft = Integration

Hi

I'm trying to write an integration to = PeopleSoft ,=20 which will catch the New Employee Event and will create an output = file with=20 the employee details.

My question is , what should I expect = to find on=20 different PeopleSoft customers , is there a default screen for Hire = employee=20 or maybe a template panel  which every one is expands , or maybe = the=20 PeopleSoft application comes naked and every customer defines there = own Hire=20 Employee panel ( screen ) using the PeopleCode at the customer's = site. Does=20 the "SavePostChg" event exist on every project etc ?

All my questions were raised while I = was looking on=20 an Integration for PeopleSoft. There I saw
for example the Hire event code:

        If=20 %PanelGroup =3D PANELGROUP.JOB_DATA_HIRE Then=20
       =20         If(ACTION =3D=20 "HIR") And RecordNew(EMPID) And=20

           =20        =20         &PER_STATUS =3D "E" And %Mode<>"C" Then=20
           =20        =20         ...     ....    = ...=20
           =20         End-if; =
            End-if;

    Should I expect to find this at any = customer's=20 sites which are using PeopleSoft ?

      is the = below sample=20 the right way (generic way ) to write my code ? can I count on the = fact that=20 these panels and panel groups exist for any PeopleSoft customer = ?

Please let me Know
Lots & Lots of Thanks =20
       =20        =20         Nadav

------_=_NextPart_001_01BFF578.1EDA9D6C-- From owner-sqr-users@list.iex.net Mon Jul 24 09:57:44 2000 Date: Mon, 24 Jul 2000 16:35:19 +0200 From: Nadav Karpenkop Subject: PeopleSoft Integration This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01BFF57C.644CFC60 Content-Type: text/plain; charset="iso-8859-1" Hi I'm trying to write an integration to PeopleSoft , which will catch the New Employee Event and will create an output file with the employee details. My question is , what should I expect to find on different PeopleSoft customers , is there a default screen for Hire employee or maybe a template panel which every one is expands , or maybe the PeopleSoft application comes naked and every customer defines there own Hire Employee panel ( screen ) using the PeopleCode at the customer's site. Does the "SavePostChg" event exist on every project etc ? All my questions were raised while I was looking on an Integration for PeopleSoft. There I saw for example the Hire event code: If %PanelGroup = PANELGROUP.JOB_DATA_HIRE Then If(ACTION = "HIR") And RecordNew(EMPID) And &PER_STATUS = "E" And %Mode<>"C" Then ... .... ... End-if; End-if; Should I expect to find this at any customer's sites which are using PeopleSoft ? is the below sample the right way (generic way ) to write my code ? can I count on the fact that these panels and panel groups exist for any PeopleSoft customer ? Please let me Know Lots & Lots of Thanks Nadav ------_=_NextPart_001_01BFF57C.644CFC60 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable PeopleSoft Integration

Hi

I'm trying to write an integration to = PeopleSoft , which will catch the New Employee Event and will create an = output file with the employee details.

My question is , what should I expect = to find on different PeopleSoft customers , is there a default screen = for Hire employee or maybe a template panel  which every one is = expands , or maybe the PeopleSoft application comes naked and every = customer defines there own Hire Employee panel ( screen ) using the = PeopleCode at the customer's site. Does the "SavePostChg" = event exist on every project etc ?

All my questions were raised while I = was looking on an Integration for PeopleSoft. There I saw
for example the Hire event = code:

        If %PanelGroup =3D PANELGROUP.JOB_DATA_HIRE Then
        =         If(ACTION =3D "HIR") And RecordNew(EMPID) = And

            =         =         &PER_STATUS =3D "E" And = %Mode<>"C" Then
            =         =         ...     ....    = ...
            =         End-if;
            End-if;

    Should I expect to find this at any = customer's sites which are using PeopleSoft ?

      is the = below sample the right way (generic way ) to write my code ? can I = count on the fact that these panels and panel groups exist for any = PeopleSoft customer ?

Please let me Know
Lots & Lots of Thanks  =
        =         =         Nadav

------_=_NextPart_001_01BFF57C.644CFC60-- From owner-sqr-users@list.iex.net Tue Jul 25 08:32:00 2000 Date: Tue, 25 Jul 2000 07:11:00 -0500 From: "Hallmark, Robert J" Subject: SQR Report Run-time Is there any way to record the run time of an SQR report. I have attempted to do this by using the datenow function at both the beginning and end of the report. This works well as far as recording the start and finish time, but I have not found a way to subtract the start time from the finish time. I have tried using datediff for this but I get the message that datediff requires a date argument, so apparently it does not recognize the datenow output as a date. Any ideas how to accomplish this? Thanks Bob From owner-sqr-users@list.iex.net Tue Jul 25 08:47:29 2000 Date: Tue, 25 Jul 2000 08:30:00 -0400 From: "Huber, Robert" Subject: Re: SQR Report Run-time The output from datediff is a number so you have to extract the seconds, minutes, hours separately and then combine these numbers into a output that describes the run time. -----Original Message----- From: Hallmark, Robert J [mailto:robert.j.hallmark@LMCO.COM] Sent: Tuesday, July 25, 2000 08:11 AM To: SQR-USERS@list.iex.net Subject: SQR Report Run-time Is there any way to record the run time of an SQR report. I have attempted to do this by using the datenow function at both the beginning and end of the report. This works well as far as recording the start and finish time, but I have not found a way to subtract the start time from the finish time. I have tried using datediff for this but I get the message that datediff requires a date argument, so apparently it does not recognize the datenow output as a date. Any ideas how to accomplish this? Thanks Bob From owner-sqr-users@list.iex.net Tue Jul 25 08:56:04 2000 Date: Tue, 25 Jul 2000 08:47:08 -0400 From: "Johnson, Dan" Subject: Re: SQR Report Run-time If you are using Oracle you could use the following procedure: Begin-procedure date_time_diff($start_time,$end_time,:$result) Begin-select To_date($end_time,'dd-mon-rr hh:mm:ss') - to_date($start_time,' dd-mon-rr hh:mm:ss') &result >From dual End-select Move &result to $result End-procedure I think this will work. You may have to play with the date/time mask. If you are not using Oracle I'm sure that your database has some similar function. Anyone see anything I'm missing? Dan > Is there any way to record the run time of an SQR report. I have attempted to do this by using the datenow function at both the beginning and end of the report. This works well as far as recording the start and finish time, but I have not found a way to subtract the start time from the finish time. I have tried using datediff for this but I get the message that datediff requires a date argument, so apparently it does not recognize the datenow output as a date. Any ideas how to accomplish this? Thanks Bob From owner-sqr-users@list.iex.net Tue Jul 25 09:23:43 2000 Date: Tue, 25 Jul 2000 09:05:23 -0400 From: Peter Alan Burton Subject: Re: SQR Report Run-time Dan, Begin-Report Do TestMe End-Report Begin-Procedure TestMe() Declare-Variable Date $Start End-Declare Let $Start = DateNow() While #Loop < 5000 ! Spin the clock Add 1 to #Loop End-While Let #Diff = DateDiff(DateNow(), $Start, 'second') Show #Diff End-Procedure Peter On 25 Jul 2000, at 8:47, Johnson, Dan wrote: Date sent: Tue, 25 Jul 2000 08:47:08 -0400 Send reply to: sqr-users@list.iex.net From: "Johnson, Dan" Subject: Re: SQR Report Run-time To: SQR-USERS@list.iex.net > If you are using Oracle you could use the following procedure: > > > Begin-procedure date_time_diff($start_time,$end_time,:$result) > Begin-select > To_date($end_time,'dd-mon-rr hh:mm:ss') - to_date($start_time,' dd-mon-rr > hh:mm:ss') &result From dual End-select > > Move &result to $result > End-procedure > > I think this will work. You may have to play with the date/time mask. If you > are not using Oracle I'm sure that your database has some similar function. > Anyone see anything I'm missing? > > Dan > > > > Is there any way to record the run time of an SQR report. I have > attempted > to do this by using the datenow function at both the beginning and > end of > the report. This works well as far as recording the start and > finish time, > but I have not found a way to subtract the start time from the > finish time. > I have tried using datediff for this but I get the message that > datediff > requires a date argument, so apparently it does not recognize the > datenow > output as a date. Any ideas how to accomplish this? > > > Thanks > > Bob From owner-sqr-users@list.iex.net Tue Jul 25 09:04:42 2000 Date: Tue, 25 Jul 2000 08:52:46 -0400 From: Rick_Creel@AONCONS.COM Subject: Re: SQR Report Run-time The only way I have been able to get the DATEDIFF function to work is to make sure that the date argument has been declared as a date at the beginning of the program. If you just set some variable = to the datenow function, the datediff function still does not recognize it as being a date variable. begin-setup declare-variable date $start_date $end_date end-declare end-setup begin-program let $start_date = datenow() blah blah blah let $end_date = datenow() let #diff = datediff($end_date,$start_date,'') blah blah blah end-program Hope this helps. "Hallmark, Robert J" on 07/25/2000 08:11:00 AM Please respond to sqr-users@list.iex.net To: SQR-USERS@list.iex.net cc: (bcc: Rick Creel/IT/Aon Consulting) Subject: SQR Report Run-time Is there any way to record the run time of an SQR report. I have attempted to do this by using the datenow function at both the beginning and end of the report. This works well as far as recording the start and finish time, but I have not found a way to subtract the start time from the finish time. I have tried using datediff for this but I get the message that datediff requires a date argument, so apparently it does not recognize the datenow output as a date. Any ideas how to accomplish this? Thanks Bob From owner-sqr-users@list.iex.net Tue Jul 25 09:30:03 2000 Date: Tue, 25 Jul 2000 08:11:29 -0500 From: Don Mellen Subject: Re: SQR Report Run-time On Tue, 25 Jul 2000 Rick_Creel@AONCONS.COM wrote: > The only way I have been able to get the DATEDIFF function to work is to > make sure that the date argument has been declared as a date at the > beginning of the program. If you just set some variable = to the > datenow function, the datediff function still does not recognize it as > being a date variable. This is because all "$" variables that are not specifically declared are string variables by default. SQR is being told to put the date value into a string, which it auto-converts for you. To do the datediff, you need to declare the variables as dates, or datetostr() them after datenow (better to declare them). Hope this clears up the confusion, ----------------------------------------------------------------------- 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 Tue Jul 25 09:15:42 2000 Date: Tue, 25 Jul 2000 08:57:32 -0400 From: "Huber, Robert" Subject: Re: SQR Report Run-time Just read my reply and forgot one detail that being that you must declare the variable into which you store the output of datenow as a date variable, e.g., declare-variable date $now end-declare . . . let $now = datenow() -----Original Message----- From: Huber, Robert [mailto:RHuber@IMF.ORG] Sent: Tuesday, July 25, 2000 08:30 AM To: SQR-USERS@list.iex.net Subject: Re: SQR Report Run-time The output from datediff is a number so you have to extract the seconds, minutes, hours separately and then combine these numbers into a output that describes the run time. -----Original Message----- From: Hallmark, Robert J [mailto:robert.j.hallmark@LMCO.COM] Sent: Tuesday, July 25, 2000 08:11 AM To: SQR-USERS@list.iex.net Subject: SQR Report Run-time Is there any way to record the run time of an SQR report. I have attempted to do this by using the datenow function at both the beginning and end of the report. This works well as far as recording the start and finish time, but I have not found a way to subtract the start time from the finish time. I have tried using datediff for this but I get the message that datediff requires a date argument, so apparently it does not recognize the datenow output as a date. Any ideas how to accomplish this? Thanks Bob From owner-sqr-users@list.iex.net Tue Jul 25 10:34:34 2000 Date: Tue, 25 Jul 2000 10:13:09 EDT From: Manoj Gurjar Subject: Re: SQR Report Run-time try Formate-Datetime() or strtodate() before using datediff() >From: "Hallmark, Robert J" >Reply-To: sqr-users@list.iex.net >To: SQR-USERS@list.iex.net >Subject: SQR Report Run-time >Date: Tue, 25 Jul 2000 07:11:00 -0500 > >Is there any way to record the run time of an SQR report. I have attempted >to do this by using the datenow function at both the beginning and end of >the report. This works well as far as recording the start and finish time, >but I have not found a way to subtract the start time from the finish time. >I have tried using datediff for this but I get the message that datediff >requires a date argument, so apparently it does not recognize the datenow >output as a date. Any ideas how to accomplish this? > > >Thanks > >Bob ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From owner-sqr-users@list.iex.net Tue Jul 25 10:42:07 2000 Date: Tue, 25 Jul 2000 09:13:32 -0500 From: "Hallmark, Robert J" Subject: Re: SQR Report Run-time Thanks to all for the help. As usual, you resolved my problem right away. Declaring the variable did the trick. I really appreciate the quick response I always get from this group. -----Original Message----- From: Hallmark, Robert Is there any way to record the run time of an SQR report. I have attempted to do this by using the datenow function at both the beginning and end of the report. This works well as far as recording the start and finish time, but I have not found a way to subtract the start time from the finish time. I have tried using datediff for this but I get the message that datediff requires a date argument, so apparently it does not recognize the datenow output as a date. Any ideas how to accomplish this? Thanks Bob From owner-sqr-users@list.iex.net Tue Jul 25 10:39:55 2000 Date: Tue, 25 Jul 2000 10:26:36 -0400 From: "Johnson, Dan" Subject: Re: SQR Report Run-time Date functionality is another reason that I wish I could talk my superiors into upgrading from SQR version 3. We're still stuck in the Stone Age (version 3.0) here so I have to use the Database for date/time calculations. -----Original Message----- Peter Alan Burton Tuesday, July 25, 2000 9:05 AM SQR-USERS@list.iex.net Re: SQR Report Run-time Dan, Begin-Report Do TestMe End-Report Begin-Procedure TestMe() Declare-Variable Date $Start End-Declare Let $Start = DateNow() While #Loop < 5000 ! Spin the clock Add 1 to #Loop End-While Let #Diff = DateDiff(DateNow(), $Start, 'second') Show #Diff End-Procedure Peter On 25 Jul 2000, at 8:47, Johnson, Dan wrote: Date sent: Tue, 25 Jul 2000 08:47:08 -0400 Send reply to: sqr-users@list.iex.net From: "Johnson, Dan" Subject: Re: SQR Report Run-time To: SQR-USERS@list.iex.net > If you are using Oracle you could use the following procedure: > > > Begin-procedure date_time_diff($start_time,$end_time,:$result) > Begin-select > To_date($end_time,'dd-mon-rr hh:mm:ss') - to_date($start_time,' dd-mon-rr > hh:mm:ss') &result From dual End-select > > Move &result to $result > End-procedure > > I think this will work. You may have to play with the date/time mask. If you > are not using Oracle I'm sure that your database has some similar function. > Anyone see anything I'm missing? > > Dan > > > > Is there any way to record the run time of an SQR report. I have > attempted > to do this by using the datenow function at both the beginning and > end of > the report. This works well as far as recording the start and > finish time, > but I have not found a way to subtract the start time from the > finish time. > I have tried using datediff for this but I get the message that > datediff > requires a date argument, so apparently it does not recognize the > datenow > output as a date. Any ideas how to accomplish this? > > > Thanks > > Bob From owner-sqr-users@list.iex.net Tue Jul 25 07:39:11 2000 Date: Tue, 25 Jul 2000 14:23:08 +0200 From: Nadav Karpenkop Subject: Passing parameter to Sqr from PeopleCode. This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01BFF633.177D0EE0 Content-Type: text/plain; charset="iso-8859-1" Hi What is the right way to call SQR from the PeopleCode and to pass to the SQR a parameter , for example the EMPLID parameter. Should I need to use the winexec function or maybe there is other way. Please , if it not a big problem , send me a simple example. Lots of Thanks Nadav ------_=_NextPart_001_01BFF633.177D0EE0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Passing parameter to Sqr from PeopleCode.

Hi


What is the right way to call SQR from = the PeopleCode and to pass to the SQR a parameter , for example the = EMPLID parameter.

Should I need to use the winexec = function or maybe there is other way.
Please , if it not a big problem , = send  me a simple  example.

Lots of Thanks
        =         Nadav

------_=_NextPart_001_01BFF633.177D0EE0-- From owner-sqr-users@list.iex.net Tue Jul 25 10:34:17 2000 Date: Tue, 25 Jul 2000 10:11:43 EDT From: Manoj Gurjar Subject: Re: Passing parameter to Sqr from PeopleCode. use scheduleprocess() >From: Nadav Karpenkop >Reply-To: sqr-users@list.iex.net >To: SQR-USERS@list.iex.net >Subject: Passing parameter to Sqr from PeopleCode. >Date: Tue, 25 Jul 2000 14:23:08 +0200 > >Hi > > >What is the right way to call SQR from the PeopleCode and to pass to the >SQR >a parameter , for example the EMPLID parameter. >Should I need to use the winexec function or maybe there is other way. >Please , if it not a big problem , send me a simple example. > >Lots of Thanks > Nadav ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From owner-sqr-users@list.iex.net Tue Jul 25 11:02:53 2000 Date: Tue, 25 Jul 2000 10:39:19 -0400 From: Jason Buzer Subject: Re: Passing parameter to Sqr from PeopleCode. ScheduleProcess is the way to go. If you are looking for an example, search PeopleCode for "pay003". The online check uses this functionality. I do not remember off hand what the exact record is, as I do not have any access to the application at this time. Manoj Gurjar on 07/25/2000 07:11:43 AM Please respond to sqr-users@list.iex.net To: SQR-USERS@list.iex.net cc: (bcc: Jason Buzer/THG) Subject: Re: Passing parameter to Sqr from PeopleCode. use scheduleprocess() >From: Nadav Karpenkop >Reply-To: sqr-users@list.iex.net >To: SQR-USERS@list.iex.net >Subject: Passing parameter to Sqr from PeopleCode. >Date: Tue, 25 Jul 2000 14:23:08 +0200 > >Hi > > >What is the right way to call SQR from the PeopleCode and to pass to the >SQR >a parameter , for example the EMPLID parameter. >Should I need to use the winexec function or maybe there is other way. >Please , if it not a big problem , send me a simple example. > >Lots of Thanks > Nadav ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com From owner-sqr-users@list.iex.net Tue Jul 25 12:26:49 2000 Date: Tue, 25 Jul 2000 11:50:57 -0400 From: Praveen Gopu Subject: Run SQR reports on UNIX and print them on mainframe We have a requirement to utilize mainframe printing architecture to handle large volume of printing requirements in Peoplesoft Benfits and Payroll modules and the question is can we generate the output on UNIX server and transfer the file to mainframe using FTP and print the file onto the mainframe printer with little tweaking? I would appreciate any insight on this issue. Thanks, Praveen From owner-sqr-users@list.iex.net Tue Jul 25 12:25:10 2000 Date: Tue, 25 Jul 2000 09:51:28 -0600 From: Gerard Fehling Subject: SQR 4.1.7.3 vs. SQR 3.0.1.8 Hi all, Can anyone point out a comprehensive list of the known differences between SQR (version) 318 and SQR 4173? I am woking on a large PeopleSoft Implementation that relies heavily on SQR for reports, interfaces, and so on. We recently switched versions of SQR, knowing some of the differences ahead of time, such as: 1. Display statements not working as they do in 318 in all cases. 2. Differences with Edit masks. I ask because we recently encountered an issue where a report is printing differently when using the two versions. Using 318, the report is left justified. Using 4173, on every new line of the report, one additional space is indented. Does anybody know the reason for this or where I can find more information? Thank you. From owner-sqr-users@list.iex.net Tue Jul 25 12:36:48 2000 Date: Tue, 25 Jul 2000 12:18:02 -0400 From: John Milardovic Subject: Re: SQR 4.1.7.3 vs. SQR 3.0.1.8 Go to "www.ontko.com" and take a look at the SQR Programmer's Reference Card. It lists all the commands/functions and what release they were introduced/dropped/modified. I believe a bound hard copy can also be purchased from the site. I recommend it highly. Also take a look at the release notes that were sent with the latest release. HTH John Milardovic > -----Original Message----- > From: Gerard Fehling [SMTP:gerryrard@YAHOO.COM] > Sent: Tuesday, July 25, 2000 11:51 AM > To: SQR-USERS@list.iex.net > Subject: SQR 4.1.7.3 vs. SQR 3.0.1.8 > > Hi all, > > Can anyone point out a comprehensive list of > the known differences between SQR (version) > 318 and SQR 4173? I am woking on a large > PeopleSoft Implementation that relies > heavily on SQR for reports, interfaces, and > so on. We recently switched versions of > SQR, knowing some of the differences ahead > of time, such as: > > 1. Display statements not working as they > do in 318 in all cases. > 2. Differences with Edit masks. > > I ask because we recently encountered an > issue where a report is printing > differently when using the two versions. > Using 318, the report is left justified. > Using 4173, on every new line of the report, > one additional space is indented. > > Does anybody know the reason for this or > where I can find more information? > > Thank you. From owner-sqr-users@list.iex.net Tue Aug 1 22:56:37 2000 Date: Tue, 1 Aug 2000 21:28:29 -0500 From: Nathan Stratton Treadway Subject: Re: SQR 4.1.7.3 vs. SQR 3.0.1.8 On Tue, Jul 25, 2000 at 09:51:28AM -0600, Gerard Fehling wrote: > Can anyone point out a comprehensive list of > the known differences between SQR (version) > 318 and SQR 4173? I am woking on a large There was a list posted a year or so ago to sqr-users; see http://www.sqrug.com/sqr-users/sqrusers_99q2/msg00491.html (especially the document "upgradeV2ouV3enV4.doc"). > 1. Display statements not working as they > do in 318 in all cases. What differences exist in Display statements? I don't remember any changes there (other than the new restrictions on date edit masks in general), off hand. > 2. Differences with Edit masks. > > I ask because we recently encountered an > issue where a report is printing > differently when using the two versions. > Using 318, the report is left justified. > Using 4173, on every new line of the report, > one additional space is indented. Did you ever resolve this problem? I don't know of a particular reason this would show up in sqr v4, but off hand I'd say that your lines are hitting the right margin of the page and causing an automatic line feed, or something like that. (Are you using the default "lineprinter" output type? Does the report look wrong on-line or only when you print it out?) Nathan ---------------------------------------------------------------------------- Nathan Stratton Treadway | Ray Ontko & Co. | Software consulting services nathant@ontko.com | Richmond, IN | http://www.ontko.com/ From owner-sqr-users@list.iex.net Wed Aug 2 09:20:14 2000 Date: Wed, 2 Aug 2000 08:52:02 -0400 From: Denise White Subject: Re: SQR 4.1.7.3 vs. SQR 3.0.1.8 Gerard, You may also want to take a look at a message I posted with some results of testing I did when we upgraded last year. I did find some minor changes in the results of edit masks, although I don't think any of them have to do with the specific problem you are having. http://www.sqrug.com/sqr-users/sqrusers_99q3/msg00349.html Denise White Sr. Programmer/Analyst Vicor ------------------------------ Date: Tue, 1 Aug 2000 21:28:29 -0500 From: Nathan Stratton Treadway Subject: Re: SQR 4.1.7.3 vs. SQR 3.0.1.8 On Tue, Jul 25, 2000 at 09:51:28AM -0600, Gerard Fehling wrote: > Can anyone point out a comprehensive list of > the known differences between SQR (version) > 318 and SQR 4173? I am woking on a large There was a list posted a year or so ago to sqr-users; see http://www.sqrug.com/sqr-users/sqrusers_99q2/msg00491.html (especially the document "upgradeV2ouV3enV4.doc"). > 1. Display statements not working as they > do in 318 in all cases. What differences exist in Display statements? I don't remember any changes there (other than the new restrictions on date edit masks in general), off hand. > 2. Differences with Edit masks. > > I ask because we recently encountered an > issue where a report is printing > differently when using the two versions. > Using 318, the report is left justified. > Using 4173, on every new line of the report, > one additional space is indented. Did you ever resolve this problem? I don't know of a particular reason this would show up in sqr v4, but off hand I'd say that your lines are hitting the right margin of the page and causing an automatic line feed, or something like that. (Are you using the default "lineprinter" output type? Does the report look wrong on-line or only when you print it out?) Nathan ---------------------------------------------------------------------------- Nathan Stratton Treadway | Ray Ontko & Co. | Software consulting services nathant@ontko.com | Richmond, IN | http://www.ontko.com/ From owner-sqr-users@list.iex.net Wed Aug 2 18:19:02 2000 Date: Wed, 2 Aug 2000 17:47:51 -0400 From: "Risman, Mark" Subject: Re: SQR 4.1.7.3 vs. SQR 3.0.1.8 Gerard, We don't have either of those versions here, but I did notice one thing that has tripped me up several times when we upgraded some of our reports from ver. 2.27 to ver. 4.0.2. We use Solaris 2.6 (SunOS 5.6) and Sybase 11.9.2. Both problems related to the treatment of fixed- vs. variable-length character strings being extracted from Sybase; this could lead to the kind of behavior that Nathan was talking about with printed items moving around the page. Case #1: In several reports we would do something like select convert(char, some_date_field, 110) &that_date_field and later, print 'some text ' () print &that_date_field () print ' some more text () In SQR 2, this would print something like this on the page: some text 08/02/2000 some more text However, in SQR 4, we would get something more like this: some text 08/02/2000 some more text Now, in the SYBASE convert() statement above, "char" should indicate a SYBASE data type to convert to, but as far as I know, there is no "char" datatype in SYBASE, or at least not in current versions, so this is a programming mistake in the report. (SYBASE allows a character string of fixed-length x to be declared as type "char(x)", not "char"). Apparently SQR 2 is more fault-tolerant and we got away with it, but SQR 4 seemed to think it was a fixed-length string whose length is unspecified or something like that, and so we got some strange-looking output. The solution here was to specify char(10) instead of char. Case #2: The way one of our reports was coded, it would create a temp table with datatype char(4), and then populate it with data which varies in length from 2 to 4 characters. Later on, the data would be pulled out into a variable, call it $compare, and we would have a statement such as: evaluate $compare when = 'a' ... when = 'bcde' ... when = 'fg' ... end-evaluate Lo and behold, this evaluate stopped working upon the SQR upgrade! SQR 4 was now pulling the data as 'a ' instead of 'a', 'fg ' instead of 'fg' and so on, and this would cause the when clauses not to match. This one took me nearly a full day to figure out, but I was able to get around it by simply changing the offending temp table fields from "char(4)" to "varchar(4)", since the data is variable-length anyway. These are the kind of unexpected little twists you need to be aware of. I hope it doesn't take you as long to figure them out as it took me. Hope this helps, - Mark -----Original Message----- From: Nathan Stratton Treadway [mailto:nathant@ONTKO.COM] Sent: Tuesday, August 01, 2000 10:28 PM To: SQR-USERS@list.iex.net Subject: Re: SQR 4.1.7.3 vs. SQR 3.0.1.8 On Tue, Jul 25, 2000 at 09:51:28AM -0600, Gerard Fehling wrote: > Can anyone point out a comprehensive list of > the known differences between SQR (version) > 318 and SQR 4173? I am woking on a large There was a list posted a year or so ago to sqr-users; see http://www.sqrug.com/sqr-users/sqrusers_99q2/msg00491.html (especially the document "upgradeV2ouV3enV4.doc"). > 1. Display statements not working as they > do in 318 in all cases. What differences exist in Display statements? I don't remember any changes there (other than the new restrictions on date edit masks in general), off hand. > 2. Differences with Edit masks. > > I ask because we recently encountered an > issue where a report is printing > differently when using the two versions. > Using 318, the report is left justified. > Using 4173, on every new line of the report, > one additional space is indented. Did you ever resolve this problem? I don't know of a particular reason this would show up in sqr v4, but off hand I'd say that your lines are hitting the right margin of the page and causing an automatic line feed, or something like that. (Are you using the default "lineprinter" output type? Does the report look wrong on-line or only when you print it out?) Nathan ---------------------------------------------------------------------------- Nathan Stratton Treadway | Ray Ontko & Co. | Software consulting services nathant@ontko.com | Richmond, IN | http://www.ontko.com/ From owner-sqr-users@list.iex.net Tue Jul 25 13:59:08 2000 Date: Tue, 25 Jul 2000 13:28:04 -0400 From: "Smith, James O" Subject: Re: SQRW from command line I use the following syntax to run sqr against an oracle database from the command line: {SQR Executable Path and name} {Report Path and name} {userid/password@database} {SQR Parameters} Note: There is a space between the each of the four bracketed sections shown above and do not include the brackets at the command line. James > ---------- > From: Nadav Karpenkop[SMTP:nadavk@BUSINESSLAYERS.COM] > Sent: Tuesday, July 25, 2000 2:19 PM > To: SQR-USERS@list.iex.net > Subject: SQRW from command line > > > Hi > I'm trying to execute the sqrw.exe from the command line without getting > the SQR V4.3.4 screen so I need to pass the username , password , database > and another > > parameter but without success. > This is my command line : sqrw c:\temp\test.sqr -id:\psoft\hr75\sqr\ > -fc:\temp\ -ZIFd:\psoft\hr75\sqr\pssqr.ini > I tried the -U parameter for the username the -DB or -N parameter for the > database parameter and again without any success. > > The other parameter is an integer parameter that I'm using with the ASK > function inside the SQR. > > Is it possible to execute sqrw in the command line without getting the SQR > dialog? > > Thanks > Nadav > > > > From owner-sqr-users@list.iex.net Tue Jul 25 14:12:55 2000 Date: Tue, 25 Jul 2000 13:55:16 -0400 From: Rick_Creel@AONCONS.COM Subject: Re: SQRW from command line [.] --0__=m9XXAKZIWTq4S4BwYlZ0WRKfR9BjvamuCV7QCdyOG2my3E4zSLpTi3EA Content-type: text/plain; charset=us-ascii Content-Disposition: inline The command line I use is: SQRW c:\sqr\test.sqr username/password@servername -iP:\psoft\ac\FS753\sqr\ -mP:\psoft\ac\FS753\sqr\allmaxes.max -oC:\temp\test.log -ftest.lst -ZIFP:\psoft\ac\FS753\sqr\pssqr.ini Nadav Karpenkop on 07/25/2000 02:19:07 PM Please respond to sqr-users@list.iex.net To: SQR-USERS@list.iex.net cc: (bcc: Rick Creel/IT/Aon Consulting) Subject: SQRW from command line [.] Hi I'm trying to execute the sqrw.exe from the command line without getting the SQR V4.3.4 screen so I need to pass the username , password , database and another parameter but without success. This is my command line : sqrw c:\temp\test.sqr -id:\psoft\hr75\sqr\ -fc:\temp\ -ZIFd:\psoft\hr75\sqr\pssqr.ini I tried the -U parameter for the username the -DB or -N parameter for the database parameter and again without any success. The other parameter is an integer parameter that I'm using with the ASK function inside the SQR. Is it possible to execute sqrw in the command line without getting the SQR dialog? Thanks Nadav --0__=m9XXAKZIWTq4S4BwYlZ0WRKfR9BjvamuCV7QCdyOG2my3E4zSLpTi3EA Content-type: text/html; name="att1.htm" Content-Disposition: attachment; filename="att1.htm" Content-transfer-encoding: base64 Content-Description: Internet HTML PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDMuMi8vRU4iPg0KPEhUTUw+ DQo8SEVBRD4NCjxNRVRBIEhUVFAtRVFVSVY9IkNvbnRlbnQtVHlwZSIgQ09OVEVOVD0idGV4dC9o dG1sOyBjaGFyc2V0PWlzby04ODU5LTEiPg0KPE1FVEEgTkFNRT0iR2VuZXJhdG9yIiBDT05URU5U PSJNUyBFeGNoYW5nZSBTZXJ2ZXIgdmVyc2lvbiA1LjUuMjY1MS42NyI+DQo8VElUTEU+U1FSVyBm cm9tIGNvbW1hbmQgbGluZTwvVElUTEU+DQo8L0hFQUQ+DQo8Qk9EWT4NCjxCUj4NCg0KPFA+PEZP TlQgU0laRT0yIEZBQ0U9IkFyaWFsIj5IaTwvRk9OVD4NCjxCUj48Rk9OVCBTSVpFPTIgRkFDRT0i QXJpYWwiPkknbSB0cnlpbmcgdG8gZXhlY3V0ZSB0aGUgc3Fydy5leGUgZnJvbSB0aGUgY29tbWFu ZCBsaW5lIHdpdGhvdXQgZ2V0dGluZyB0aGUgU1FSIFY0LjMuNCBzY3JlZW4gc28gSSBuZWVkIHRv IHBhc3MgdGhlIHVzZXJuYW1lICwgcGFzc3dvcmQgLCBkYXRhYmFzZSBhbmQgYW5vdGhlcjwvRk9O VD48L1A+DQoNCjxQPjxGT05UIFNJWkU9MiBGQUNFPSJBcmlhbCI+cGFyYW1ldGVyJm5ic3A7IGJ1 dCB3aXRob3V0IHN1Y2Nlc3MuPC9GT05UPg0KPEJSPjxGT05UIFNJWkU9MiBGQUNFPSJBcmlhbCI+ VGhpcyBpcyBteSBjb21tYW5kIGxpbmUgOiBzcXJ3IGM6XHRlbXBcdGVzdC5zcXIgLWlkOlxwc29m dFxocjc1XHNxclwgLWZjOlx0ZW1wXCAtWklGZDpccHNvZnRcaHI3NVxzcXJccHNzcXIuaW5pPC9G T05UPg0KPEJSPjxGT05UIFNJWkU9MiBGQUNFPSJBcmlhbCI+SSB0cmllZCB0aGUgLVUgcGFyYW1l dGVyIGZvciB0aGUgdXNlcm5hbWUgdGhlIC1EQiBvciAtTiBwYXJhbWV0ZXIgZm9yIHRoZSBkYXRh YmFzZSBwYXJhbWV0ZXIgYW5kIGFnYWluIHdpdGhvdXQgYW55IHN1Y2Nlc3MuPC9GT05UPjwvUD4N Cg0KPFA+PEZPTlQgU0laRT0yIEZBQ0U9IkFyaWFsIj5UaGUgb3RoZXIgcGFyYW1ldGVyIGlzIGFu IGludGVnZXIgcGFyYW1ldGVyIHRoYXQgSSdtIHVzaW5nIHdpdGggdGhlIEFTSyBmdW5jdGlvbiBp bnNpZGUgdGhlIFNRUi48L0ZPTlQ+DQo8L1A+DQoNCjxQPjxGT05UIFNJWkU9MiBGQUNFPSJBcmlh bCI+SXMgaXQgcG9zc2libGUgdG8gZXhlY3V0ZSBzcXJ3IGluIHRoZSBjb21tYW5kIGxpbmUgd2l0 aG91dCBnZXR0aW5nIHRoZSBTUVIgZGlhbG9nPzwvRk9OVD4NCjwvUD4NCg0KPFA+PEZPTlQgU0la RT0yIEZBQ0U9IkFyaWFsIj5UaGFua3MgPC9GT05UPg0KPEJSPiZuYnNwOyZuYnNwOyZuYnNwOyZu YnNwOyZuYnNwOyZuYnNwOyZuYnNwOyA8Rk9OVCBTSVpFPTIgRkFDRT0iQXJpYWwiPk5hZGF2PC9G T05UPg0KPC9QPg0KPEJSPg0KPEJSPg0KDQo8L0JPRFk+DQo8L0hUTUw+DQo= --0__=m9XXAKZIWTq4S4BwYlZ0WRKfR9BjvamuCV7QCdyOG2my3E4zSLpTi3EA-- From owner-sqr-users@list.iex.net Tue Jul 25 13:36:48 2000 Date: Tue, 25 Jul 2000 20:19:07 +0200 From: Nadav Karpenkop Subject: SQRW from command line This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01BFF664.D2127250 Content-Type: text/plain; charset="iso-8859-1" Hi I'm trying to execute the sqrw.exe from the command line without getting the SQR V4.3.4 screen so I need to pass the username , password , database and another parameter but without success. This is my command line : sqrw c:\temp\test.sqr -id:\psoft\hr75\sqr\ -fc:\temp\ -ZIFd:\psoft\hr75\sqr\pssqr.ini I tried the -U parameter for the username the -DB or -N parameter for the database parameter and again without any success. The other parameter is an integer parameter that I'm using with the ASK function inside the SQR. Is it possible to execute sqrw in the command line without getting the SQR dialog? Thanks Nadav ------_=_NextPart_001_01BFF664.D2127250 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable SQRW from command line

Hi
I'm trying to execute the sqrw.exe = from the command line without getting the SQR V4.3.4 screen so I need = to pass the username , password , database and another

parameter  but without = success.
This is my command line : sqrw = c:\temp\test.sqr -id:\psoft\hr75\sqr\ -fc:\temp\ = -ZIFd:\psoft\hr75\sqr\pssqr.ini
I tried the -U parameter for the = username the -DB or -N parameter for the database parameter and again = without any success.

The other parameter is an integer = parameter that I'm using with the ASK function inside the SQR.

Is it possible to execute sqrw in the = command line without getting the SQR dialog?

Thanks
        Nadav



------_=_NextPart_001_01BFF664.D2127250-- From owner-sqr-users@list.iex.net Tue Jul 25 16:32:02 2000 Date: Tue, 25 Jul 2000 15:59:44 -0400 From: "Joshi, Pradeep" Subject: Re: SQRW from command line A typical PS SQR program will expect Process Instance, OprID and Run Control Id as command line parameters, hence before your program parameters, you will have to provide these three parameters. So command line will look like this: sqrw program-name usrid/passwd -command-line-flags process-instance oprid run-control-id program-parameters I am following above syntax to run in UNIX env. I hope this helps you in your env. Pradeep > -----Original Message----- > From: Nadav Karpenkop [SMTP:nadavk@BUSINESSLAYERS.COM] > Sent: Tuesday, July 25, 2000 2:19 PM > To: SQR-USERS@list.iex.net > Subject: SQRW from command line > > > Hi > I'm trying to execute the sqrw.exe from the command line without getting > the SQR V4.3.4 screen so I need to pass the username , password , database > and another > > parameter but without success. > This is my command line : sqrw c:\temp\test.sqr -id:\psoft\hr75\sqr\ > -fc:\temp\ -ZIFd:\psoft\hr75\sqr\pssqr.ini > I tried the -U parameter for the username the -DB or -N parameter for the > database parameter and again without any success. > > The other parameter is an integer parameter that I'm using with the ASK > function inside the SQR. > > Is it possible to execute sqrw in the command line without getting the SQR > dialog? > > Thanks > Nadav > > > From owner-sqr-users@list.iex.net Tue Jul 25 16:41:31 2000 Date: Tue, 25 Jul 2000 15:18:13 -0500 From: Kathy Anderson Subject: Re: SQRW from command line Just one other bit of info regarding James response. As he mentioned the syntax for the command line is {SQR Executable Path and name} {Report Path and name} {userid/password@database} {SQR Parameters} The third piece of the command line is the connect string (userid/password@database) and this is what you were missing. The syntax above works for Oracle (as James mentioned) so if you're on another platform the connect string might vary slightly. I know for MS SQL Server the syntax is: database/userid/password. I'm not sure what it is for DB2 or Informix. {SQR Executable Path and name} {Report Path and name} {database/userid/password} {SQR Parameters} > -----Original Message----- > From: Smith, James O [SMTP:james.o.smith@USAGO.KSC.NASA.GOV] > Sent: 25 July 2000 12:28 PM > To: SQR-USERS@list.iex.net > Subject: Re: SQRW from command line > > I use the following syntax to run sqr against an oracle database from the > command line: > > {SQR Executable Path and name} {Report Path and name} > {userid/password@database} {SQR Parameters} > > Note: There is a space between the each of the four bracketed sections > shown > above and do not include the brackets at the command line. > > > James > > > ---------- > > From: Nadav Karpenkop[SMTP:nadavk@BUSINESSLAYERS.COM] > > Sent: Tuesday, July 25, 2000 2:19 PM > > To: SQR-USERS@list.iex.net > > Subject: SQRW from command line > > > > > > Hi > > I'm trying to execute the sqrw.exe from the command line without getting > > the SQR V4.3.4 screen so I need to pass the username , password , > database > > and another > > > > parameter but without success. > > This is my command line : sqrw c:\temp\test.sqr -id:\psoft\hr75\sqr\ > > -fc:\temp\ -ZIFd:\psoft\hr75\sqr\pssqr.ini > > I tried the -U parameter for the username the -DB or -N parameter for > the > > database parameter and again without any success. > > > > The other parameter is an integer parameter that I'm using with the ASK > > function inside the SQR. > > > > Is it possible to execute sqrw in the command line without getting the > SQR > > dialog? > > > > Thanks > > Nadav > > > > > > > > From owner-sqr-users@list.iex.net Tue Jul 25 16:51:43 2000 Date: Tue, 25 Jul 2000 12:29:07 -0800 From: "Brown, Bryan" Subject: (SQR 5007) Report 'default' has overlapping heading and footing Hi everyone, As the frustration begins to appear, it's time to ask for help... When trying to use print to create a flat file, I get the following error: "(SQR 5007) Report 'default' has overlapping heading and footing " I need to use the print (instead of write) due to the general nature of this report. The concept (which is even demonstrated in the manual) is: declare-layout default formfeed = No max-lines = 1 max-columns = 1000 end-declare This causes the above error. When I use a different layout name (and the use-report option), I get the same error for the new report name. It must be a real obvious thing that I just don't know - or can't see...help :-) Thanks, Bryan ------------------------------------------------------------ Bryan E. Brown bbrown2@acsalaska.com, 907-564-1303 Systems Analyst, ACS (Alaska Communication Systems) SQRW V3.0.13.2, CSS Hrizon ver 8, Oracle 7.3.3, NT (server & workstations) From owner-sqr-users@list.iex.net Tue Jul 25 17:50:04 2000 Date: Tue, 25 Jul 2000 17:20:54 -0400 From: "St.Andre, Patricia" Subject: Re: (SQR 5007) Report 'default' has overlapping heading and footi ng Make sure that you specify the for-reports option on any footings or headings you have defined if you are using one or more report layouts.... For example, begin-footing 33 for-reports = (Report_Name) The error you are getting leads me to believe that you have defined one or more headings / footings in your SQR but have not specified a report layout to be used for each defined heading and footing.... Hope this helps! Trish > -----Original Message----- > From: Brown, Bryan [SMTP:bbrown2@ACSALASKA.COM] > Sent: Tuesday, July 25, 2000 4:29 PM > To: SQR-USERS@list.iex.net > Subject: (SQR 5007) Report 'default' has overlapping heading and > footing > > Hi everyone, > > As the frustration begins to appear, it's time to ask for help... > > When trying to use print to create a flat file, I get the following > error: > "(SQR 5007) Report 'default' has overlapping heading and footing " > > I need to use the print (instead of write) due to the general nature of > this > report. The concept (which is even demonstrated in the manual) is: > > declare-layout default > formfeed = No > max-lines = 1 > max-columns = 1000 > end-declare > > This causes the above error. When I use a different layout name (and the > use-report option), I get the same error for the new report name. It must > be > a real obvious thing that I just don't know - or can't see...help :-) > > Thanks, > Bryan > > ------------------------------------------------------------ > Bryan E. Brown > bbrown2@acsalaska.com, 907-564-1303 > Systems Analyst, ACS (Alaska Communication Systems) > SQRW V3.0.13.2, CSS Hrizon ver 8, Oracle 7.3.3, NT (server & > workstations) From owner-sqr-users@list.iex.net Tue Jul 25 18:07:43 2000 Date: Tue, 25 Jul 2000 13:45:34 -0800 From: "Brown, Bryan" Subject: Re: (SQR 5007) Report 'default' has overlapping heading and footi ng Thanks for the info, unfortunately, I have checked that. Currently, I am using only the default. I have no headings or footings defined in the report at all... That is sort of the problem, as I don't want any headings or footings in the report. The error seems to be stating that I am trying to print in the heading area, and I can't find how to tell it not to reserve any space for a header or footer...sigh.... Thanks for the response though - have a good one! Bryan -----Original Message----- From: St.Andre, Patricia [mailto:Patricia.St.Andre@MARRIOTT.COM] Sent: Tuesday, July 25, 2000 1:21 PM To: SQR-USERS@list.iex.net Subject: Re: (SQR 5007) Report 'default' has overlapping heading and footi ng Make sure that you specify the for-reports option on any footings or headings you have defined if you are using one or more report layouts.... For example, begin-footing 33 for-reports = (Report_Name) The error you are getting leads me to believe that you have defined one or more headings / footings in your SQR but have not specified a report layout to be used for each defined heading and footing.... Hope this helps! Trish > -----Original Message----- > From: Brown, Bryan [SMTP:bbrown2@ACSALASKA.COM] > Sent: Tuesday, July 25, 2000 4:29 PM > To: SQR-USERS@list.iex.net > Subject: (SQR 5007) Report 'default' has overlapping heading and > footing > > Hi everyone, > > As the frustration begins to appear, it's time to ask for help... > > When trying to use print to create a flat file, I get the following > error: > "(SQR 5007) Report 'default' has overlapping heading and footing " > > I need to use the print (instead of write) due to the general nature of > this > report. The concept (which is even demonstrated in the manual) is: > > declare-layout default > formfeed = No > max-lines = 1 > max-columns = 1000 > end-declare > > This causes the above error. When I use a different layout name (and the > use-report option), I get the same error for the new report name. It must > be > a real obvious thing that I just don't know - or can't see...help :-) > > Thanks, > Bryan > > ------------------------------------------------------------ > Bryan E. Brown > bbrown2@acsalaska.com, 907-564-1303 > Systems Analyst, ACS (Alaska Communication Systems) > SQRW V3.0.13.2, CSS Hrizon ver 8, Oracle 7.3.3, NT (server & > workstations) From owner-sqr-users@list.iex.net Tue Jul 25 18:14:39 2000 Date: Tue, 25 Jul 2000 13:52:29 -0800 From: "Brown, Bryan" Subject: Re: (SQR 5007) Report 'default' - solved (or reason discovered an yway...) Trish, I knew it was right in front of me! After I read your message again - it hit (yea - it hit pretty hard too!). The heading/footing was defined in one of our "standard" includes!! Thanks for making me think :-) Bryan -----Original Message----- From: St.Andre, Patricia [mailto:Patricia.St.Andre@MARRIOTT.COM] Sent: Tuesday, July 25, 2000 1:21 PM To: SQR-USERS@list.iex.net Subject: Re: (SQR 5007) Report 'default' has overlapping heading and footi ng Make sure that you specify the for-reports option on any footings or headings you have defined if you are using one or more report layouts.... For example, begin-footing 33 for-reports = (Report_Name) The error you are getting leads me to believe that you have defined one or more headings / footings in your SQR but have not specified a report layout to be used for each defined heading and footing.... Hope this helps! Trish > -----Original Message----- > From: Brown, Bryan [SMTP:bbrown2@ACSALASKA.COM] > Sent: Tuesday, July 25, 2000 4:29 PM > To: SQR-USERS@list.iex.net > Subject: (SQR 5007) Report 'default' has overlapping heading and > footing > > Hi everyone, > > As the frustration begins to appear, it's time to ask for help... > > When trying to use print to create a flat file, I get the following > error: > "(SQR 5007) Report 'default' has overlapping heading and footing " > > I need to use the print (instead of write) due to the general nature of > this > report. The concept (which is even demonstrated in the manual) is: > > declare-layout default > formfeed = No > max-lines = 1 > max-columns = 1000 > end-declare > > This causes the above error. When I use a different layout name (and the > use-report option), I get the same error for the new report name. It must > be > a real obvious thing that I just don't know - or can't see...help :-) > > Thanks, > Bryan > > ------------------------------------------------------------ > Bryan E. Brown > bbrown2@acsalaska.com, 907-564-1303 > Systems Analyst, ACS (Alaska Communication Systems) > SQRW V3.0.13.2, CSS Hrizon ver 8, Oracle 7.3.3, NT (server & > workstations) From owner-sqr-users@list.iex.net Tue Jul 25 18:33:37 2000 Date: Tue, 25 Jul 2000 18:13:19 -0400 From: "St.Andre, Patricia" Subject: Re: (SQR 5007) Report 'default' - solved (or reason discovered an yway...) Great! Glad you figured it out! :) Trish > -----Original Message----- > From: Brown, Bryan [SMTP:bbrown2@ACSALASKA.COM] > Sent: Tuesday, July 25, 2000 5:52 PM > To: SQR-USERS@list.iex.net > Subject: Re: (SQR 5007) Report 'default' - solved (or reason > discovered an yway...) > > Trish, > > I knew it was right in front of me! After I read your message again - it > hit > (yea - it hit pretty hard too!). The heading/footing was defined in one of > our "standard" includes!! > > Thanks for making me think :-) > > Bryan > > > > -----Original Message----- > From: St.Andre, Patricia [mailto:Patricia.St.Andre@MARRIOTT.COM] > Sent: Tuesday, July 25, 2000 1:21 PM > To: SQR-USERS@list.iex.net > Subject: Re: (SQR 5007) Report 'default' has overlapping heading and > footi ng > > > Make sure that you specify the for-reports option on any footings or > headings you have defined if you are using one or more report layouts.... > > For example, > > begin-footing 33 for-reports = (Report_Name) > > The error you are getting leads me to believe that you have defined one or > more headings / footings in your SQR but have not specified a report > layout > to be used for each defined heading and footing.... > > Hope this helps! > > Trish > > > -----Original Message----- > > From: Brown, Bryan [SMTP:bbrown2@ACSALASKA.COM] > > Sent: Tuesday, July 25, 2000 4:29 PM > > To: SQR-USERS@list.iex.net > > Subject: (SQR 5007) Report 'default' has overlapping heading and > > footing > > > > Hi everyone, > > > > As the frustration begins to appear, it's time to ask for help... > > > > When trying to use print to create a flat file, I get the following > > error: > > "(SQR 5007) Report 'default' has overlapping heading and footing " > > > > I need to use the print (instead of write) due to the general nature of > > this > > report. The concept (which is even demonstrated in the manual) is: > > > > declare-layout default > > formfeed = No > > max-lines = 1 > > max-columns = 1000 > > end-declare > > > > This causes the above error. When I use a different layout name (and the > > use-report option), I get the same error for the new report name. It > must > > be > > a real obvious thing that I just don't know - or can't see...help :-) > > > > Thanks, > > Bryan > > > > ------------------------------------------------------------ > > Bryan E. Brown > > bbrown2@acsalaska.com, 907-564-1303 > > Systems Analyst, ACS (Alaska Communication Systems) > > SQRW V3.0.13.2, CSS Hrizon ver 8, Oracle 7.3.3, NT (server & > > workstations) From owner-sqr-users@list.iex.net Wed Jul 26 11:24:26 2000 Date: Wed, 26 Jul 2000 17:53:01 +0200 From: Nadav Karpenkop Subject: PRINT problem This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01BFF719.93D95480 Content-Type: text/plain; charset="iso-8859-1" Hi Does anybody know if there is a way to avoid the printing of the end of file character when I'm using the PRINT command. I'm using the PRINT command to create an XML file , and this character cause an error. Thanks Nadav ------_=_NextPart_001_01BFF719.93D95480 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable PRINT problem

Hi

Does anybody know if there is a way to = avoid the printing of the  end of file character when I'm using = the PRINT command.

I'm using the PRINT command to create = an XML file , and this character cause an error.

Thanks
        Nadav

------_=_NextPart_001_01BFF719.93D95480-- From owner-sqr-users@list.iex.net Wed Jul 26 14:19:06 2000 Date: Wed, 26 Jul 2000 12:59:23 -0500 From: "Thomas, Lyla" Subject: List File redirection Hi all, In my sqr I need to redirect my .lis file to a specified dir. Which Sqc is handling this? I am running my SQR from a Process Schedular. On the Process I can input my File Path for Client, but for server I am not able to do that. I need to redirect this list file because I am writing couple of different files to a network drive and backed up every time with a Copy command. Any help is very much appreciated. Thanks Lyla From owner-sqr-users@list.iex.net Thu Jul 27 08:25:25 2000 Date: Thu, 27 Jul 2000 05:47:15 -0600 From: John Willson Subject: Postscript Editing This is a multi-part message in MIME format. ------=_NextPart_000_0015_01BFF78E.1E2AC780 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all. =20 I am trying to rotate landscape pages 180 degrees on an HP laserjet by = editing the postscript file produced by SQR (left hand edge becomes = right hand edge) without modifying each and every command (including = graphics, logos, etc) that creates the page. Remember the HP printer = only has portrait and landscape so here is what I have tried. 270 = rotate command, -90 rotate command, points 1 -612 becoming 0 612, = orientation 3. =20 Any other thoughts on what to try either in terms of postscript or = other? John Willson PS. Just physically turning the page doesn't work, I need to do it with = software for this application. ------=_NextPart_000_0015_01BFF78E.1E2AC780 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi all. 
I am trying to rotate landscape pages = 180 degrees=20 on an HP laserjet by editing the postscript file produced by SQR  = (left=20 hand edge becomes right hand edge) without modifying each and every = command=20 (including graphics, logos, etc) that creates the page.  Remember = the HP=20 printer only has portrait and landscape so here is what I have = tried.  270=20 rotate command, -90 rotate command, points 1 -612 becoming 0 612, = orientation=20 3. 
Any other thoughts on what to try = either in terms=20 of postscript or other?
 
John Willson
 
PS.  Just physically turning the = page doesn't=20 work, I need to do it with software for this application.
 
------=_NextPart_000_0015_01BFF78E.1E2AC780-- From owner-sqr-users@list.iex.net Thu Jul 27 20:33:01 2000 Date: Fri, 28 Jul 2000 08:09:05 +0800 From: "Ivory, Wayne" Subject: Re: Postscript Editing John, Some time back I posted a link to HP's site that will generate escape sequences for you based on what you want. I don't have it here, but you can either search the archives for PCL or check Ray Ontko's site because he put the link there. Wayne Ivory Information Services Iluka Resources Limited -----Original Message----- From: John Willson [mailto:jwillson@DSSLTD.COM] Sent: Thursday, 27 July 2000 19:47 To: SQR-USERS@list.iex.net Subject: Postscript Editing Hi all. I am trying to rotate landscape pages 180 degrees on an HP laserjet by editing the postscript file produced by SQR (left hand edge becomes right hand edge) without modifying each and every command (including graphics, logos, etc) that creates the page. Remember the HP printer only has portrait and landscape so here is what I have tried. 270 rotate command, -90 rotate command, points 1 -612 becoming 0 612, orientation 3. Any other thoughts on what to try either in terms of postscript or other? John Willson PS. Just physically turning the page doesn't work, I need to do it with software for this application. ------------------------------------------------------------------------- From owner-sqr-users@list.iex.net Thu Jul 27 21:46:20 2000 Date: Thu, 27 Jul 2000 19:17:10 -0600 From: John Willson Subject: Re: Postscript Editing Thanks for the input Wayne, I have been up there but I am being told only portrait and landscape are available no other rotations available including using PCL let alone postscript. John PS. The HP link I have been using is http://www.hp.com/cposupport/eschome.html but without success. ----- Original Message ----- From: "Ivory, Wayne" To: Sent: Thursday, July 27, 2000 6:09 PM Subject: Re: Postscript Editing > John, > > Some time back I posted a link to HP's site that will generate escape > sequences for you based on what you want. I don't have it here, but you can > either search the archives for PCL or check Ray Ontko's site because he put > the link there. > > > > Wayne Ivory > Information Services > Iluka Resources Limited > > -----Original Message----- > From: John Willson [mailto:jwillson@DSSLTD.COM] > Sent: Thursday, 27 July 2000 19:47 > To: SQR-USERS@list.iex.net > Subject: Postscript Editing > > > Hi all. > I am trying to rotate landscape pages 180 degrees on an HP laserjet by > editing the postscript file produced by SQR (left hand edge becomes right > hand edge) without modifying each and every command (including graphics, > logos, etc) that creates the page. Remember the HP printer only has > portrait and landscape so here is what I have tried. 270 rotate command, > -90 rotate command, points 1 -612 becoming 0 612, orientation 3. > Any other thoughts on what to try either in terms of postscript or other? > > John Willson > > PS. Just physically turning the page doesn't work, I need to do it with > software for this application. > > > ------------------------------------------------------------------------- > From owner-sqr-users@list.iex.net Thu Jul 27 21:08:13 2000 Date: Fri, 28 Jul 2000 08:44:38 +0800 From: kenss.lo@WB.GOV.HK Subject: Re: Postscript Editing If you're on Unix you can use psutil. It is a bunch of small programs that can do rotate, shift, shuffle etc. with postscript files. Downloadable from any HP archive site. Just do a search on psutil. John Willson @list.iex.net> on 2000/07/27 07:47:15 PM Please respond to sqr-users@list.iex.net Sent by: "Discussion of SQR, Brio Technology's database reporting language" To: SQR-USERS@list.iex.net cc: Subject: Postscript Editing Hi all. I am trying to rotate landscape pages 180 degrees on an HP laserjet by editing the postscript file produced by SQR? (left hand edge becomes right hand edge) without modifying each and every command (including graphics, logos, etc) that creates the page.? Remember the HP printer only has portrait and landscape so here is what I have tried.? 270 rotate command, -90 rotate command, points 1 -612 becoming 0 612, orientation 3. Any other thoughts on what to try either in terms of postscript or other? John Willson PS.? Just physically turning the page doesn't work, I need to do it with software for this application. From owner-sqr-users@list.iex.net Thu Jul 27 21:48:53 2000 Date: Thu, 27 Jul 2000 19:21:08 -0600 From: John Willson Subject: Re: Postscript Editing Thank-you. Your response has been the most helpful. Unfortunately I am on NT. John ----- Original Message ----- From: To: Sent: Thursday, July 27, 2000 6:44 PM Subject: Re: Postscript Editing > If you're on Unix you can use psutil. It is a bunch of small programs that > can do rotate, shift, shuffle etc. with postscript files. Downloadable > from any HP archive site. Just do a search on psutil. > > > > > > John Willson @list.iex.net> on 2000/07/27 07:47:15 PM > > Please respond to sqr-users@list.iex.net > > Sent by: "Discussion of SQR, Brio Technology's database reporting > language" > > > To: SQR-USERS@list.iex.net > cc: > > Subject: Postscript Editing > > > > Hi all. > I am trying to rotate landscape pages 180 degrees on an HP laserjet by > editing the postscript file produced by SQR? (left hand edge becomes right > hand edge) without modifying each and every command (including graphics, > logos, etc) that creates the page.? Remember the HP printer only has > portrait and landscape so here is what I have tried.? 270 rotate command, > -90 rotate command, points 1 -612 becoming 0 612, orientation 3. > Any other thoughts on what to try either in terms of postscript or other? > > John Willson > > PS.? Just physically turning the page doesn't work, I need to do it with > software for this application. > From owner-sqr-users@list.iex.net Thu Jul 27 09:36:58 2000 Date: Thu, 27 Jul 2000 08:14:43 -0500 From: "Thomas, Lyla" Subject: Declare report to specify where the list file is Hi all, I send this question already and I did not get any response, so I am reprasing my question again. Please help!! I am trying to write a .lis file to a specified dir. Can this be done?Can I use Declare-report to do this. In all the examples I see only the printer layout or the page setup are changing. I need to redirect this list file to a specified network drive to back up every night. How can I send it to a printer whithout knowing where this list file will be.? The user's could put any drive path when they are running from the process schedular. Any help is very much appreciated. Thanks Lyla From owner-sqr-users@list.iex.net Thu Jul 27 10:08:02 2000 Date: Thu, 27 Jul 2000 09:41:05 -0400 From: Troy Wiechman Subject: Re: Declare report to specify where the list file is Have you tried the -F flag? It is used to re-direct output to a different name and location. "Thomas, Lyla" on 07/27/2000 09:14:43 AM Please respond to sqr-users@list.iex.net To: SQR-USERS@list.iex.net cc: (bcc: Troy Wiechman/HQ/USA/Kelly) Subject: Declare report to specify where the list file is Hi all, I send this question already and I did not get any response, so I am reprasing my question again. Please help!! I am trying to write a .lis file to a specified dir. Can this be done?Can I use Declare-report to do this. In all the examples I see only the printer layout or the page setup are changing. I need to redirect this list file to a specified network drive to back up every night. How can I send it to a printer whithout knowing where this list file will be.? The user's could put any drive path when they are running from the process schedular. Any help is very much appreciated. Thanks Lyla From owner-sqr-users@list.iex.net Thu Jul 27 10:29:02 2000 Date: Thu, 27 Jul 2000 09:01:48 -0500 From: "Wendel, Robbi" Subject: Re: Declare report to specify where the list file is Lyla, Do you want this change for only this SQR? Are you using PeopleSoft? If so I believe you can change the output destination via an SQR flag for this SQR. This can also be done in the SQRW dialogue box when running the SQR outside of PS. The problem with doing it at the dialogue level is that you would have to do it every time if it applied to only this SQR. There may be a way to change the flags from within the SQR - maybe the LIST can tell us ( I am fairly new to SQR myself). Additionally you could use WRITE instead of PRINT and identify your full path in the open command. HTH, Robbi -----Original Message----- From: Thomas, Lyla [mailto:lthoma4@LSUHSC.EDU] Sent: Thursday, July 27, 2000 8:15 AM To: SQR-USERS@list.iex.net Subject: Declare report to specify where the list file is Hi all, I send this question already and I did not get any response, so I am reprasing my question again. Please help!! I am trying to write a .lis file to a specified dir. Can this be done?Can I use Declare-report to do this. In all the examples I see only the printer layout or the page setup are changing. I need to redirect this list file to a specified network drive to back up every night. How can I send it to a printer whithout knowing where this list file will be.? The user's could put any drive path when they are running from the process schedular. Any help is very much appreciated. Thanks Lyla ------------------------------------------------------------------------- This email server is running an evaluation copy of the MailShield anti- spam software. Please contact your email administrator if you have any questions about this message. MailShield product info: www.mailshield.com From owner-sqr-users@list.iex.net Thu Jul 27 10:42:12 2000 Date: Thu, 27 Jul 2000 09:20:37 -0500 From: "Thomas, Lyla" Subject: Re: Declare report to specify where the list file is Hi Troy, Thanks for the reply. Is'nt -F flag is only for the shortcut to run the SQR. I am running it from people Soft Process schedular. Tankd Lyla -----Original Message----- From: Troy Wiechman [mailto:WIECHTJ@KELLYSERVICES.COM] Sent: Thursday, July 27, 2000 8:41 AM To: SQR-USERS@list.iex.net Subject: Re: Declare report to specify where the list file is Have you tried the -F flag? It is used to re-direct output to a different name and location. "Thomas, Lyla" on 07/27/2000 09:14:43 AM Please respond to sqr-users@list.iex.net To: SQR-USERS@list.iex.net cc: (bcc: Troy Wiechman/HQ/USA/Kelly) Subject: Declare report to specify where the list file is Hi all, I send this question already and I did not get any response, so I am reprasing my question again. Please help!! I am trying to write a .lis file to a specified dir. Can this be done?Can I use Declare-report to do this. In all the examples I see only the printer layout or the page setup are changing. I need to redirect this list file to a specified network drive to back up every night. How can I send it to a printer whithout knowing where this list file will be.? The user's could put any drive path when they are running from the process schedular. Any help is very much appreciated. Thanks Lyla From owner-sqr-users@list.iex.net Thu Jul 27 10:49:53 2000 Date: Thu, 27 Jul 2000 09:26:13 -0500 From: "Thomas, Lyla" Subject: Re: Declare report to specify where the list file is Thanks Robbi, Yes I used write instad of print statement.That works fine but loose all my formatting. I cannot belive we cannot read the value of -F in our sqr or change it in our SQR. I am running my SQR from people Soft. Thanks for the help. Lyla -----Original Message----- From: Wendel, Robbi [mailto:rwendel@NESPOWER.COM] Sent: Thursday, July 27, 2000 9:02 AM To: SQR-USERS@list.iex.net Subject: Re: Declare report to specify where the list file is Lyla, Do you want this change for only this SQR? Are you using PeopleSoft? If so I believe you can change the output destination via an SQR flag for this SQR. This can also be done in the SQRW dialogue box when running the SQR outside of PS. The problem with doing it at the dialogue level is that you would have to do it every time if it applied to only this SQR. There may be a way to change the flags from within the SQR - maybe the LIST can tell us ( I am fairly new to SQR myself). Additionally you could use WRITE instead of PRINT and identify your full path in the open command. HTH, Robbi -----Original Message----- From: Thomas, Lyla [mailto:lthoma4@LSUHSC.EDU] Sent: Thursday, July 27, 2000 8:15 AM To: SQR-USERS@list.iex.net Subject: Declare report to specify where the list file is Hi all, I send this question already and I did not get any response, so I am reprasing my question again. Please help!! I am trying to write a .lis file to a specified dir. Can this be done?Can I use Declare-report to do this. In all the examples I see only the printer layout or the page setup are changing. I need to redirect this list file to a specified network drive to back up every night. How can I send it to a printer whithout knowing where this list file will be.? The user's could put any drive path when they are running from the process schedular. Any help is very much appreciated. Thanks Lyla ------------------------------------------------------------------------- This email server is running an evaluation copy of the MailShield anti- spam software. Please contact your email administrator if you have any questions about this message. MailShield product info: www.mailshield.com From owner-sqr-users@list.iex.net Thu Jul 27 11:00:37 2000 Date: Thu, 27 Jul 2000 10:30:14 -0400 From: Troy Wiechman Subject: Re: Declare report to specify where the list file is The -F flag is used on the command line when SQR is executed. We execute all of our SQRs thru unix and always re-direct the output to the appropriate location for our application. Our application is Oracle Financials. This method works very well for Concurrent Manager ( the Oracle Scheduler ). I can't answer for PeopleSoft as I have never used it. Sorry. Troy "Thomas, Lyla" on 07/27/2000 10:20:37 AM Please respond to sqr-users@list.iex.net To: SQR-USERS@list.iex.net cc: (bcc: Troy Wiechman/HQ/USA/Kelly) Subject: Re: Declare report to specify where the list file is Hi Troy, Thanks for the reply. Is'nt -F flag is only for the shortcut to run the SQR. I am running it from people Soft Process schedular. Tankd Lyla -----Original Message----- From: Troy Wiechman [mailto:WIECHTJ@KELLYSERVICES.COM] Sent: Thursday, July 27, 2000 8:41 AM To: SQR-USERS@list.iex.net Subject: Re: Declare report to specify where the list file is Have you tried the -F flag? It is used to re-direct output to a different name and location. "Thomas, Lyla" on 07/27/2000 09:14:43 AM Please respond to sqr-users@list.iex.net To: SQR-USERS@list.iex.net cc: (bcc: Troy Wiechman/HQ/USA/Kelly) Subject: Declare report to specify where the list file is Hi all, I send this question already and I did not get any response, so I am reprasing my question again. Please help!! I am trying to write a .lis file to a specified dir. Can this be done?Can I use Declare-report to do this. In all the examples I see only the printer layout or the page setup are changing. I need to redirect this list file to a specified network drive to back up every night. How can I send it to a printer whithout knowing where this list file will be.? The user's could put any drive path when they are running from the process schedular. Any help is very much appreciated. Thanks Lyla From owner-sqr-users@list.iex.net Thu Jul 27 11:01:20 2000 Date: Thu, 27 Jul 2000 10:32:46 -0400 From: Troy Wiechman Subject: Re: Declare report to specify where the list file is I believe the value of -F is held in $sqr-report. I don't know if you can change it. Troy "Thomas, Lyla" on 07/27/2000 10:26:13 AM Please respond to sqr-users@list.iex.net To: SQR-USERS@list.iex.net cc: (bcc: Troy Wiechman/HQ/USA/Kelly) Subject: Re: Declare report to specify where the list file is Thanks Robbi, Yes I used write instad of print statement.That works fine but loose all my formatting. I cannot belive we cannot read the value of -F in our sqr or change it in our SQR. I am running my SQR from people Soft. Thanks for the help. Lyla -----Original Message----- From: Wendel, Robbi [mailto:rwendel@NESPOWER.COM] Sent: Thursday, July 27, 2000 9:02 AM To: SQR-USERS@list.iex.net Subject: Re: Declare report to specify where the list file is Lyla, Do you want this change for only this SQR? Are you using PeopleSoft? If so I believe you can change the output destination via an SQR flag for this SQR. This can also be done in the SQRW dialogue box when running the SQR outside of PS. The problem with doing it at the dialogue level is that you would have to do it every time if it applied to only this SQR. There may be a way to change the flags from within the SQR - maybe the LIST can tell us ( I am fairly new to SQR myself). Additionally you could use WRITE instead of PRINT and identify your full path in the open command. HTH, Robbi -----Original Message----- From: Thomas, Lyla [mailto:lthoma4@LSUHSC.EDU] Sent: Thursday, July 27, 2000 8:15 AM To: SQR-USERS@list.iex.net Subject: Declare report to specify where the list file is Hi all, I send this question already and I did not get any response, so I am reprasing my question again. Please help!! I am trying to write a .lis file to a specified dir. Can this be done?Can I use Declare-report to do this. In all the examples I see only the printer layout or the page setup are changing. I need to redirect this list file to a specified network drive to back up every night. How can I send it to a printer whithout knowing where this list file will be.? The user's could put any drive path when they are running from the process schedular. Any help is very much appreciated. Thanks Lyla ------------------------------------------------------------------------- This email server is running an evaluation copy of the MailShield anti- spam software. Please contact your email administrator if you have any questions about this message. MailShield product info: www.mailshield.com From owner-sqr-users@list.iex.net Thu Jul 27 10:58:01 2000 Date: Thu, 27 Jul 2000 09:33:22 -0500 From: "Wendel, Robbi" Subject: Re: Declare report to specify where the list file is Go to the definition definitions panel in the process scheduler you can set the directory with a flag there. Be sure to use APPEND so as to not over write your other defaults. Robbi -----Original Message----- From: Thomas, Lyla [mailto:lthoma4@LSUHSC.EDU] Sent: Thursday, July 27, 2000 9:21 AM To: SQR-USERS@list.iex.net Subject: Re: Declare report to specify where the list file is Hi Troy, Thanks for the reply. Is'nt -F flag is only for the shortcut to run the SQR. I am running it from people Soft Process schedular. Tankd Lyla -----Original Message----- From: Troy Wiechman [mailto:WIECHTJ@KELLYSERVICES.COM] Sent: Thursday, July 27, 2000 8:41 AM To: SQR-USERS@list.iex.net Subject: Re: Declare report to specify where the list file is Have you tried the -F flag? It is used to re-direct output to a different name and location. "Thomas, Lyla" on 07/27/2000 09:14:43 AM Please respond to sqr-users@list.iex.net To: SQR-USERS@list.iex.net cc: (bcc: Troy Wiechman/HQ/USA/Kelly) Subject: Declare report to specify where the list file is Hi all, I send this question already and I did not get any response, so I am reprasing my question again. Please help!! I am trying to write a .lis file to a specified dir. Can this be done?Can I use Declare-report to do this. In all the examples I see only the printer layout or the page setup are changing. I need to redirect this list file to a specified network drive to back up every night. How can I send it to a printer whithout knowing where this list file will be.? The user's could put any drive path when they are running from the process schedular. Any help is very much appreciated. Thanks Lyla ------------------------------------------------------------------------- This email server is running an evaluation copy of the MailShield anti- spam software. Please contact your email administrator if you have any questions about this message. MailShield product info: www.mailshield.com From owner-sqr-users@list.iex.net Thu Jul 27 11:08:13 2000 Date: Thu, 27 Jul 2000 10:40:27 -0400 From: John Milardovic Subject: Re: Declare report to specify where the list file is FROM SQR HELP: "The variable $sqr-report is the name of the report output file. It reflects the actual name of the file to be used (as specified by the -F command-line flag or the NEW-REPORT command). $sqr-report is an SQR reserved, or predefined, variable. All of SQR's reserved variables are global variables. Within a local procedure they must be referenced using the leading underscore: $_sqr-report" > -----Original Message----- > From: Thomas, Lyla [SMTP:lthoma4@LSUHSC.EDU] > Sent: Thursday, July 27, 2000 10:26 AM > To: SQR-USERS@list.iex.net > Subject: Re: Declare report to specify where the list file is > > Thanks Robbi, > Yes I used write instad of print statement.That works fine but loose all > my formatting. I cannot belive we cannot read the value of -F in our sqr > or > change it in our SQR. I am running my SQR from people Soft. > Thanks for the help. > Lyla > > -----Original Message----- > From: Wendel, Robbi [mailto:rwendel@NESPOWER.COM] > Sent: Thursda