Skip to main content

Support Tip: ACCEPT/DISPLAY syntax incorrect on DATE-AND-TIME

  • June 21, 2022
  • 1 reply
  • 1 view

Heather Caldwell

Each of the following fails with '310-S ACCEPT/DISPLAY syntax incorrect' in Net Express and Visual COBOL:

ACCEPT data-item1 FROM DATE-AND-TIME
ACCEPT data-item2 FROM DAY-AND-TIME

Full article: https://portal.microfocus.com/s/article/KM000008005


#SupportTips/KnowledgeDocs

1 reply

Claude Greiner
  • Participating Frequently
  • 322 replies
  • June 21, 2022

Each of the following fails with '310-S ACCEPT/DISPLAY syntax incorrect' in Net Express and Visual COBOL:

ACCEPT data-item1 FROM DATE-AND-TIME
ACCEPT data-item2 FROM DAY-AND-TIME

Full article: https://portal.microfocus.com/s/article/KM000008005


#SupportTips/KnowledgeDocs

i know this as:

accept data-item1 from date YYYYMMDD   --> 20220620

accept data-item2 from date                          --> 220620

accept data-item3 from time                          --> 23000050   HHMMSSMS

Other possibilities are function that can be call, see documentation