This would work for the last of the previous month
But I also needed to consult the manual for the correct date conversions...
Get internal date for 1st of current month.
Subtract 1 gets you internal end date of previous month
Loop until numeric day of week = 4 (assuming Monday is 1)
Subtract 1 from internal end date of previous month
Repeat
e.g.
<code>
* Date format is DD/MM/YYYY
CurrentMonth = oconv(date(), 'DM')
CurrentYear = oconv(date(), 'DY4')
InternalFirstThisMonth = iconv('1/':CurrentMonth:'/':CurrentYear, 'D4/')
InternalLastPreviousMonth = InternalFirstThisMonth - 1
loop
IsThisThursday = (oconv(InternalLastPreviousMonth, 'DW') = 4)
until IsThisThursday do
InternalLastPreviousMonth -= 1
repeat
if IsThisThursday then crt oconv(InternalLastPreviousMonth, 'D4')
</code>
Peter Cheney
Ultracs Developer
t 07 3017 8837 | f 07 3002 8400
e [email protected]
w firstmac.com.au
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Wjhonson
Sent: Tuesday, 17 December 2013 10:17
To: [email protected]
Subject: Re: [U2] [OT] Interview Questions
What is the last Thursday of the current month.
Current Date minus Current Day of Month number plus 1 puts you on the first of
the current month Or you could just Oconv d2/ and replace the middle number
with 01 with Iconv that.
Now take that internal date and add 32, this will *always* put you exactly into
the next month somewhere.
Now oconv that date D2/ and replace the middle number with 01 which will always
put on the first of "next month"
Now if the DOW number is larger than Thursday subtract the difference If its
less than Thursday subtract that number and an extra 2 to get to last Thursday
-----Original Message-----
From: Daniel McGrath <[email protected]>
To: U2 Users List <[email protected]>
Sent: Mon, Dec 16, 2013 2:55 pm
Subject: Re: [U2] [OT] Interview Questions
Build an API to Mechanical Turk.
neededDate = Mech_Turk("In YYYY/mm/dd format, what is the last Thursday
of ":month:" ":year)
Hmmm - I guess that's why I don't code anymore ;)
-----Original Message-----
From: [email protected]
[mailto:[email protected]]
On Behalf Of Kevin King
Sent: Monday, December 16, 2013 3:22 PM
To: U2 Users List
Subject: Re: [U2] [OT] Interview Questions
Asking the list...I'd label that as "resourceful". So yeah, that's a positive.
On Mon, Dec 16, 2013 at 10:08 AM, Woodward, Bob
<[email protected]>wrote:
> Maybe it's a good thing you're not interviewing me, Kevin. My
> immediate answer would be "I don't know. Let me check the
> documentation and get back to you." I've never had to do anything
> like that so it's not something I'd know off the top of my head. I'm
> sure there's probably and OCONV format that would get me started but.
>
> Oh! I know! I'd as this list! <silly smile> Does that count?
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Kevin King
> Sent: Saturday, December 14, 2013 8:15 AM
> To: U2 Users List
> Subject: Re: [U2] [OT] Interview Questions
>
> David, I've used many of these questions in the past but where it fell
> down was that it didn't give any real picture of technical ability.
> The one question I've been using lately to assess technical thinking
> is "how would you calculate the last Thursday in a month?" The answers
> have been everywhere from accurate to sheer ridiculous. The unexpected
> takeaway from this question is that it has helped to identify people
> who simply want to answer quickly without thinking - not a good trait
> unless the answer is right and to date that's happened a total of zero
> times - vs people who think first and then give a reasoned response.
>
> I've just found it too easy for people to stretch the truth when
> explaining their technical ability, so I'm asking questions intended
> to give some evidence.
>
> On Saturday, December 14, 2013, David Sharp wrote:
>
> > Here is something I have used:
> > What single project
> > or task would you consider the most significant accomplishment in
> > your
>
> > career so far?
> >
> >
> >
> >
> > *
> > Can you give me a detailed overview of the accomplishment?
> >
> > *
> > Tell me about the company, your title, your position, your role, and
> > the team involved.
> >
> > *
> > What were the actual results achieved?
> >
> > *
> > When did it take place and how long did the project take.
> >
> > *
> > Why you were chosen?
> >
> > *
> > What were the 3-4 biggest challenges you faced and how did you deal
> > with them?
> >
> > *
> > Where did you go the extra mile or take the initiative?
> >
> > *
> > Walk me through the plan, how you managed to it, and if it was
> > successful.
> >
> > *
> > Describe the environment and resources.
> >
> > *
> > Describe your manager's style and whether you liked it or not.
> >
> > *
> > Describe the technical skills needed to accomplish the objective and
> > how they were used.
> >
> > *
> > Some of the biggest mistakes you made.
> >
> > *
> > Aspects of the project you truly enjoyed.
> >
> > *
> > Aspects you didn't especially care about and how you handled them.
> >
> > *
> > How you managed and influenced other, with lots of examples.
> >
> > *
> > How you changed and grew as a person.
> >
> > *
> > What you would do differently if you could do it again.
> >
> > *
> > What type of formal recognition did your receive?
> >
> >
> > Regards,
> > David Sharp
> > > Date: Fri, 13 Dec 2013 12:27:18 -0800
> > > From: [email protected] <javascript:;>
> > > To: [email protected] <javascript:;>
> > > Subject: Re: [U2] [OT] Interview Questions
> > >
> > > Please email me in regards to your ads. I am currently in between
> > > contracts/assignments/projects and looking for my next assignment.
> > > Multivalue languages I have been programming in:
> > >
> > > * CACHE (language: MV BASIC)
> > > * INFORMATION (language: INFO/BASIC)
> > > * jBASE (language: jBC, jBASE BASIC, jBASIC)
> > > * MENTOR System (language: DATA/BASIC, DATABASIC, DATA BASIC)
> > > * MVENTERPRISE (language: MVENTERPRISE BASIC)
> > > * MVON/ONWARE (language: ONWARE BASIC)
> > > * OPENINSIGHT (language: BASIC+)
> > > * OPENQM, QM (language: QMBASIC)
> > > * PICK, Advanced PICK, D3 (language: PICK BASIC)
> > > * Power95 (language: DATA/BASIC, DATABASIC, DATA BASIC)
> > > * REALITY System (language: DATA/BASIC, DATABASIC, DATA BASIC)
> > > * REVELATION, Advanced REVELATION (language: R/BASIC, REVELATION
> BASIC)
> > > * UNIDATA (language: UNIBASIC)
> > > * UNIVERSE (language: UNIVERSE BASIC)
> > > * UNIVISION (language: UVBASIC)
> > > * WebSphere DataStage (language: DSBASIC, DataStage BASIC)
> > >
> > > Robert Norman, Multivalue Programmer/Analyst
> > > (951) 541-1668
> > >
> > > On 10/7/2013 7:35 PM, Kevin King wrote:
> > > > This is not specifically a job posting, but I do have ads up on
> > Monster and
> > > > LinkedIn looking for talent.
> > > >
> > > > At the risk of confessing too much, I have historically been far
> too
> > easy
> > > > in the interview process. As a result, I have had some
> > less-than-excellent
> > > > hires and spent far too much time and money trying to rescue
> > > > underperforming and/or recalcitrant staff. Therefore, I'm
> planning to
> > be
> > > > much more discriminating this time around, and am building a
> series of
> > > > technical questions to help quickly identify those that have the
> right
> > > > skills, abilities, and attitude for our team compared to those
> > > > who
> may
> > not.
> > > >
> > > > That being said, I have a question for the group:
> > > >
> > > > Technical questions aside, what are the best interview questions
> you've
> > > > asked, been asked, or otherwise heard about that help
> differentiate
> > between
> > > > the candidates worthy of additional consideration vs. those that
> are
> > not?
> > > >
> > > > Each company is different of course, but that aside I'm hoping
> > > > to
> get
> > some
> > > > ideas to cut to the heart of the matter as quickly and
> > > > efficiently
> as
> > > > possible, both for the sake of the interviewer and the
> interviewee.
> > (My
> > > > technical interview is bordering on 200 questions and growing at
> an
> > > > alarming pace.) If there were a half dozen questions to open
> > > > with
> that
> > > > could help set the stage for what may be to come, that could be
> very
> > > > beneficial for everyone in this mix.
> > > >
> > > > Also, in an effort to keep the OT to a minimum, please don't ask
> me
> > > > questions about the positions here. If you have questions,
> > > > email
> me
> > > > directly or through LinkedIn. I'd prefer to keep this topic on
> point
> > of
> > > > your recommended interview questions.
> > > > _______________________________________________
> > > > U2-Users mailing list
> > > > [email protected] <javascript:;>
> > > > http://listserver.u2ug.org/mailman/listinfo/u2-users
> > > >
> > >
> > >
> > >
> > > _______________________________________________
> > > U2-Users mailing list
> > > [email protected] <javascript:;>
> > > http://listserver.u2ug.org/mailman/listinfo/u2-users
> >
> > _______________________________________________
> > U2-Users mailing list
> > [email protected] <javascript:;>
> > http://listserver.u2ug.org/mailman/listinfo/u2-users
> >
> _______________________________________________
> U2-Users mailing list
> [email protected]
> http://listserver.u2ug.org/mailman/listinfo/u2-users
> _______________________________________________
> U2-Users mailing list
> [email protected]
> http://listserver.u2ug.org/mailman/listinfo/u2-users
>
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users
-------------------------------------------------------------------------------
Note:
This email (inc all attachments) is for the use of the intended recipient(s)
only.
Privileged or confidential information may be contained in this communication.
If you have received this email in error, please notify the sender immediately
and then delete all copies of this message from your computer network. If you
are not the intended recipient, you must not keep, use, disclose, copy or
distribute this email without the author's prior permission. If you are the
intended recipient and you do not wish to receive similar electronic messages
from us in future, then please respond to the sender to this effect.
We have taken precautions to minimise the risk of transmitting software
viruses, but advise you to carry out your own virus checks on this email and
its attachments. We do not accept liability for any loss or damage caused by
software viruses and do not represent that this transmission is free from
viruses or other defects.
Firstmac Limited (ABN 59 094 145 963) (AFSL 290600)
-------------------------------------------------------------------------------
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users