I am using the below sql to get the day of week but i am getting :NumWeekDay as 0
I am using V5R3...can some help me on this to get the day of week.
C/Exec SQL Set :NumWeekDay = DayOfWeek_ISO(:MyDate)
C/End-Exec
the above sql to get the day of week
What is the value of the date you are trying to determine ?
It looks like MyDate but I dont see that value getting loaded.
Maybe it's just me but it seems like some code may be missing.
Also, what are the values of SQLSTATE/SQLCODE after the SET statement? We don't know your variable values and we don't know what SQL reported. It's effectively impossible to come up with a useful answer. Tom
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!
Discuss This Question: 3  Replies