Skip to main content

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

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