cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
605
Views
0
Helpful
1
Replies

Custom Sysdate Variable

Todd Clayton
Level 1
Level 1

It’s probably because its really a Monday today that I can’t quite get my head around what I need to do to accomplish this.

On the first of the month I have to run a script and pass it date variables.

Example: On Sept 1st, it would have been:

Script 20140826 20140831

With the 20140826 being anywhere from 2-5 days previously, I can’t just use something like sysdate-1 like I would for the second date variable. The first date is always going to be the 26th of the previous month. 

a) How would I represent yyyymm(-1)

and

b) yyyymm(month end)

1 Reply 1

Todd Clayton
Level 1
Level 1

nm. I figured it out.

 

a) Date variable, start with current month subtract 1.

b) start with current month add one month, subtract 1 day.

 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: