I am sorry to have confused you( by not being clear with the question)
We actually need to calculate difference between the Years of the two date i.e System Date and the Year mentioned along the record
You can use CEECBLDY (IBM standard function) to translate the gregorian dates you want to compare into absolute dates where 1601 01 01 is 00001, and then just subtract the two resultant absolute dates from each other to work out the number of days between the two dates. You define the date fomats you send and receive.
i have a requirement like i have to print system date in the report title,i understand that the system date comes automatically in the report title but as i am using easytrieve plus my leading zero is being suppressed ie. 02/20/13 is being displayed as 2/20/13.my requirement is to have it displayed as 02/20/13..any suggestions..
There is no really easy way to do this, but you would have to place NODATE in your report line and actually parse out SYSDATE-LONG into a WS field and then depending on the month, add a 0 (zero) to the 1st position of the month.
One is Easytrieve classic and the other one is Easytrieve plus. The super advantage of Easytrieve is you can use it in Mainframe, UNIX, LINUX, and Windows environment. The program flow chart helps you how to run easytrieve program runs. So that you can understand quickly.
7fc3f7cf58