I am wondering if there is away to increment a date in c shell. What I need to do is basic, but I lack the knowledge.
I have they following environmental variable in my job scripts
setenv YYYY `date '+%Y'`
I then set YYYY to be part of my output dataset name:
setenv dd_OUTPUTP "build$YYYY.dat"
So when I run the job script, it creates a dataset named build2012.dat.
I need to have the dataset be build2013.dat.
Is there a way to increment $YYYY by 1 to give me the next year.
Thanks.