Hi Boda3Nath,
The below sort card which you have given will not work when if current date is 1st date of every month,
Today I have faced the problem as today is 1st of april
In the below condition your checking for current month and year
IFTHEN=(WHEN=(50,2,ZD,EQ,70,2,ZD,&,56,2,ZD,EQ,76,2,ZD),
INREC IFTHEN=(WHEN=INIT,OVERLAY=(1:3,4,5:8,3,4X,13:13,20,50:DATE,
70:3,5,Y2T,DTNS=(MD4),20X)),
IFTHEN=(WHEN=(50,2,ZD,EQ,70,2,ZD,&,56,2,ZD,EQ,76,2,ZD),
BUILD=(1,4,C'/',5,30,53,2,ZD,SUB,72,2,ZD))
SORT FIELDS=COPY
OUTFIL REMOVECC,BUILD=(1:13,20),INCLUDE=(50,1,ZD,EQ,1)
Can you please provide updated code, so that it will work independent of first day of month and year?
If you are not clear of my requirement please see below
Input file:
----+----1----+----2----+
. 2012/091 AA.BB.CC.
. 2012/091 AA.BB.CC.
. 2012/091 AA.BB.CC.
if yesterday’s Julian date present from 3rd position to 10th position, I need in out file from 12th poison (as similar in above code