Can you please clarify your response here for me?
Are you stating that the presence of the statement, "accept wrk-Datai from DATE YYYYMMDD" within your WPF application is causing the compiler error that you are experiencing and that by commenting it out the error goes away?
This is a standard COBOL statement and it should certainly be allowed. I just added the statement to my WPF demo here and do not experience the problem.
Where in you application do you declare this statement?
How are you defining wrk-Datai?
Thanks.