Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

select a specific month&day for all years

125 views
Skip to first unread message

Scott Ballinger

unread,
Sep 24, 2024, 7:34:57 PM9/24/24
to Pick and MultiValue Databases
This is D3. Date format is US mm-dd-yy.
I can't figure out how to select a specific date (e.g. March 1st) across all years.
When I "select invoices with date eq "03-01-^^" or "03-01-]" I just get 03-01-24. What I want to do is sample all invoices with that date across all years.
Other than creating a basic call dict item, can this be done?
Thanks,
/Scott

Scott Ballinger

unread,
Sep 24, 2024, 7:41:16 PM9/24/24
to Pick and MultiValue Databases
Funny how describing a problems presents you with the solution.
Julian date! Putting "dj" in attribute 8 and selecting for "61" gets the job done.

Scott Ballinger

unread,
Sep 24, 2024, 7:43:24 PM9/24/24
to Pick and MultiValue Databases
Arghhh! Except for leap years.

Wols Lists

unread,
Sep 24, 2024, 7:48:11 PM9/24/24
to mvd...@googlegroups.com
Does D3 have the equivalent of Universe EVAL?

EVAL "OCONV(DATEFIELD, "MMM-DD")" EQ "MAR-01" or something like that.

Cheers,
Wol

Optimus01010101

unread,
Sep 24, 2024, 7:57:01 PM9/24/24
to Pick and MultiValue Databases
Make 2 new dictionary records, one for DAY and one for MONTH

For DAY, put on attribute 8 the code "DD"
For MONTH, put on attribute 8 the code "DM"

Here's my output in QM in a PICK style account. I had to look up the codes in an old Ultimate manual I have.
LIST CK MONTH DAY ACK_6                                                  Page 1
CK........   Month.....   Day.......   Date......
5100*1604            02           25   02/25/2013
5105*46093           12           14   12/14/2017
5100*1605            02           25   02/25/2013

3 record(s) listed
:SELECT CK WITH DAY EQ "25" AND MONTH EQ "02"
2 record(s) selected to list 0
::LIST CK MONTH DAY ACK_6
LIST CK MONTH DAY ACK_6                                                  Page 1
CK........   Month.....   Day.......   Date......
5100*1604            02           25   02/25/2013
5100*1605            02           25   02/25/2013

2 record(s) listed

Scott Ballinger

unread,
Sep 24, 2024, 8:04:59 PM9/24/24
to Pick and MultiValue Databases
Yup!!!
Thanks.

Scott Ballinger

unread,
Sep 24, 2024, 8:08:03 PM9/24/24
to Pick and MultiValue Databases
Unfortunately, I don't think D3 eval works like that, nor do I think oconv(datefield,"mmm-dd") is gonna work in D3 either.

Christopher Jeune

unread,
Sep 24, 2024, 8:18:44 PM9/24/24
to mvd...@googlegroups.com
Oconv(‘d’,,)?

--
You received this message because you are subscribed to
the "Pick and MultiValue Databases" group.
To post, email to: mvd...@googlegroups.com
To unsubscribe, email to: mvdbms+un...@googlegroups.com
For more options, visit http://groups.google.com/group/mvdbms
---
You received this message because you are subscribed to the Google Groups "Pick and MultiValue Databases" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mvdbms+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mvdbms/89c7ff65-9a2d-4921-b25e-f6439df47851n%40googlegroups.com.

Joe Goldthwaite

unread,
Sep 24, 2024, 8:42:38 PM9/24/24
to mvd...@googlegroups.com
I don't have access to a D3 system but since you're getting the julian date by putting "dj" in attribute 8, try putting "d0" and then selecting for "03 Mar". An alternative would be "d0-" and selecting for "03-03".

jorge jjcsf

unread,
Sep 25, 2024, 3:12:20 AM9/25/24
to mvd...@googlegroups.com
 simple way I think:

2 words in  dict of file

Date                   Rdate
001 A                001 A
...                        ...
...                        ...
007 D2-             007
008                    008 D2-
009 R                009 R
010 8                010 8

as  D3 do select using atrib 8 and format using atrib 7 you can do

Sort/list file with Rdate ="03-02]" Date ....etc.
Best regards



--

geneb

unread,
Sep 25, 2024, 10:17:54 AM9/25/24
to Pick and MultiValue Databases
Maybe two simple dicts with a month output conversion in one and a day
output conversion in the other? Then you could do "select foo with
month = 3 and with day = 1"

g.



--
Proud owner of F-15C 80-0007
http://www.f15sim.com - The only one of its kind.
http://www.diy-cockpits.org/coll - Go Collimated or Go Home.
Some people collect things for a hobby. Geeks collect hobbies.

ScarletDME - The red hot Data Management Environment
A Multi-Value database for the masses, not the classes.
http://scarlet.deltasoft.com - Get it _today_!

geneb

unread,
Sep 25, 2024, 10:18:54 AM9/25/24
to Pick and MultiValue Databases
On Tue, 24 Sep 2024, Scott Ballinger wrote:

> Funny how describing a problems presents you with the solution.
> Julian date! Putting "dj" in attribute 8 and selecting for "61" gets the
> job done.
>

\o/

philippe GRACIA

unread,
Sep 25, 2024, 11:54:49 AM9/25/24
to mvd...@googlegroups.com
hello.
only d0- in att8 of dict


you can try with basic :
print oconv((20723,'d0-') gives you 25-09 ;)


--
You received this message because you are subscribed to
the "Pick and MultiValue Databases" group.
To post, email to: mvd...@googlegroups.com
To unsubscribe, email to: mvdbms+un...@googlegroups.com
For more options, visit http://groups.google.com/group/mvdbms
---
You received this message because you are subscribed to the Google Groups "Pick and MultiValue Databases" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mvdbms+un...@googlegroups.com.

Christopher Jeune

unread,
Sep 25, 2024, 10:03:18 PM9/25/24
to mvd...@googlegroups.com
What's Day 0?  I was there for Day 10,000

--
You received this message because you are subscribed to
the "Pick and MultiValue Databases" group.
To post, email to: mvd...@googlegroups.com
To unsubscribe, email to: mvdbms+un...@googlegroups.com
For more options, visit http://groups.google.com/group/mvdbms
---
You received this message because you are subscribed to the Google Groups "Pick and MultiValue Databases" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mvdbms+un...@googlegroups.com.

Eric Means

unread,
Sep 25, 2024, 11:43:28 PM9/25/24
to mvd...@googlegroups.com

Ok. I don't know where juilian was mentioned,  but the original post asked:


"I can't figure out how to select a specific date (e.g. March 1st) across all years."

If the field, aka attribute  stores the the date in standard PICK compatability, then using "DM" and "DD" as correlative codes is the best solution.


Chris Long

unread,
Sep 26, 2024, 7:57:46 AM9/26/24
to mvd...@googlegroups.com

Jan 1st, 1968

Brian Speirs

unread,
Sep 26, 2024, 3:43:13 PM9/26/24
to Pick and MultiValue Databases
Actually, that is day 1. Day 0 is 31 December 1967.

Brian

Scott Ballinger

unread,
Sep 26, 2024, 9:43:51 PM9/26/24
to Pick and MultiValue Databases
I think "d0" or "d0-" is the simplest solution offered.
Many thanks to phig330 and joe!
/Scott

Christopher Jeune

unread,
Sep 26, 2024, 9:46:08 PM9/26/24
to mvd...@googlegroups.com
When was Day 10,000?  I don't have a current pick system to run the date command.   TIA!

--
You received this message because you are subscribed to
the "Pick and MultiValue Databases" group.
To post, email to: mvd...@googlegroups.com
To unsubscribe, email to: mvdbms+un...@googlegroups.com
For more options, visit http://groups.google.com/group/mvdbms
---
You received this message because you are subscribed to the Google Groups "Pick and MultiValue Databases" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mvdbms+un...@googlegroups.com.

James A

unread,
Sep 26, 2024, 10:48:50 PM9/26/24
to mvd...@googlegroups.com

>MY.DATE 10000

Internal Pick Days                    : 10000

Default External Pick Date (oconv 'D'): 18 MAY 1995

 

 

John Lorentz

unread,
Sep 27, 2024, 2:18:59 PM9/27/24
to mvd...@googlegroups.com
Or, as we referred to it, the "Mt. St. Helens virus" (Mt St. Helens' famous eruption was May 18, 1980--a date that many of us in Pacific NW remembered very well).

John

Reply all
Reply to author
Forward
0 new messages