MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » September 2009

Re: Printing Every Other Friday



fixed

Sounds good....

except how do you handle months that have 5 Fridays, or week number 53?

Charles

On Fri, Sep 18, 2009 at 3:35 PM, Raul A. Jager W. <raul@xxxxxxxxxx> wrote:
If you can get the "week number", print when odd (or when even)

You can convert to Julian,take the "day in year" and look for the
remaider by 14 one week will be less than 7, the next week will be
between 7 and 13.

Terry Nonamaker wrote:

You could also do

/* Declare Day of week */
Dcl        Var(&DOW)  Type(*Char) Len(4)

/* Get dow system Value */
RtvSysVal  SysVal(QDAYOFWEEK) RtnVar(&Dow)

For Friday, the value w/b ... *FRI

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Robert Ostrowski
Sent: Friday, September 18, 2009 8:26 AM
To: midrange-L@xxxxxxxxxxxx
Subject: Printing Every Other Friday

We have a series of reports that now print every Friday.  We print them
based on the day of the week determined in a CL program.

IF COND(&DAY *EQ '5') etc....

They now want these reports to print every other Friday.  Anybody know
of a way to do this?

Thanks.






--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.







Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact