Hello Folks
I am looking for logic help for below scenerio with respect to AIX n unix script
1) We need to get the date of all the saturday in yr
2) L_o left over days is weeks left over days for previous month for eg.
first sat of feb is 4th of feb in that week we have 29 - 30 - 31 from Jan so 3 left over days
so we need to have 2 entries for this date one in jan and one in feb with l_o days as 3 and 4 resp.
Expected output will be something like this
Code:
Saturday Month l_o mth_st mth_end
1/7/2012 jan 0 Y N
1/14/2012 jan 0 N N
1/21/2012 jan 0 N N
1/28/2012 jan 0 N N
2/4/2012 jan 3 N Y
2/4/2012 feb 4 Y N
2/11/2012 feb 0 N N
2/18/2012 feb 0 N N
2/25/2012 feb 0 N N
3/3/2012 feb 4 N Y
.
Please let me know if more information is needed
Thanks in advance
Last edited by methyl; 02-01-2012 at 09:31 AM..
Reason: please use code tags
5/5/2012 apr 2 N Y
5/5/2012 may 5 Y N
5/12/2012 may 0 N N
5/19/2012 may 0 N N
5/26/2012 may 0 N N
6/2/2012 may 5 N Y
6/2/2012 jun 2 Y N
Aug :
8/4/2012 jul 3 N Y
8/4/2012 aug 4 Y N
8/11/2012 aug 0 N N
8/18/2012 aug 0 N N
8/25/2012 aug 0 N N
9/1/2012 aug 6 N Y
9/1/2012 sep 1 Y N
Regarding 2nd point one will definatively need this table in year process where you load the dates which is refer in processes which runs throughout year.
Last edited by Scott; 02-04-2012 at 05:24 PM..
Reason: Code tags...
Hi,
my file has the data like below:
11,231,ABCVAV
22,AAHJHAj22,hdsjkhdls
22,dhskjhdkshd
22,gdgkdkadh
11,232,dgsjgdjh
22,ghdskahdkja
22,shdkajshs
11,233,ddjs
22,dhjkahkd
22,hsajhaah
11,231,sjkjsjj
22,ahkh
22,hsakh
From the above i need only the records which starts as 11,231... (5 Replies)