Altnernative to ACCEPT



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Altnernative to ACCEPT

Postby cwseay » Mon Apr 29, 2019 7:51 pm

In another thread a member informed me that ACCEPT was not the best way to get input for a COBOL program. I am using ACCEPT to get a value from the user. Is there another method I should be using?
cwseay
 
Posts: 16
Joined: Thu Oct 05, 2017 8:28 am
Has thanked: 4 times
Been thanked: 0 time

Re: Altnernative to ACCEPT

Postby Robert Sample » Mon Apr 29, 2019 10:06 pm

The READ statement in COBOL is the usual, normal, accepted way to get input.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post