Re: Report help



In article <8b73d$45639f43$454920f8$1954@xxxxxxxxxxx>,
LX-i <lxi0007@xxxxxxxxxxxx> wrote:
jeff@xxxxxxxxxx wrote:
Does anybody have a good routine I can use to calculate 50 days prior
to todays-date. This will be used for an AR report and I want to be
able to list accounts that have balances over 50 days.


You've gotten some COBOL replies on this. You might also see if however
you're pulling the data can be constrained (i.e., including a date in a
SQL "where" clause).

This is something that I'm teaching my Tech Lead on my present contract.
While I make sure the Olde Stuffe keeps running he's learning PeopleSoft
and SQL for the first time in a 12-year-or-so COBOL career... one of the
things I pointed out was that in a COBOL program one quite often first
gets a record and then applies the edits... all right, now I've got data,
let me see if it matches the conditions for processing.

It may be useful, on the other hand, to think of SQL as establishing the
conditions first and *then* getting the data which satisfy them... oh, and
you have to learn to read the queries from the inside outwards, as well.

DD

.



Relevant Pages

  • Re: Definition of FACTORY
    ... > taking different elements in the record to create keys. ... COBOL provided nice syntactic file access support initially. ... the SQL part. ... > At a later stage, as need arises, I can include SQL syntax in other ...
    (comp.object)
  • Re: Conversion of data & associated logic from ISAM to RDB
    ... embedded SQL is not necessarily the best solution. ... feed it your ISAM COBOL definition (Source code) and it creates a Relational ... Database in third normal form. ...
    (comp.lang.cobol)
  • Re: Dynamiv SQL and multi-row access SQL from COBOL... some quick questions
    ... EXECUTE IMMEDIATE is for one time dynamic SQL. ... Perhaps you were referring to something other than host variables. ... COBOL using ACCESS 2003. ...
    (comp.lang.cobol)
  • Re: Definition of FACTORY
    ... COBOL code, but see if the following helps. ... invoke os-CustomerFile "readRecord" using Customer-Key returning ... > funny stuff around the SQL queries. ... Anyway thanks for responding. ...
    (comp.object)
  • Re: Reading sequential files in COBOL vs SQL
    ... Obviously in COBOL I'd having to allow for reading a high ... | If the files are already in the database and have an index that would allow keyed retrieval of the records you seek then SQL would ... | Mike Sicilian ... If your program can quit the search as soon as you find the record you are looking for, then a COBOL sequential search will be almost twice as fast as SQL because on average you will quit after reading half the file and SQL will always read the whole file. ...
    (comp.sys.ibm.as400.misc)