Hi,
I'm a COBOL newbie and i'm stuck on what seems to be a simple problem. I'm currently using "SAMS teach yourself COBOL in 21 days", which uses MicroFocus code. But i use the free Fujitsu compiler with it. Anyways, the following code snippet doesn't behave properly:
...
DATA DIVISION.
WORKING-STORAGE SECTION.
01 THE-NAME PIC X(10).
PROCEDURE DIVISION.
PROGRAM-BEGIN.
DISPLAY "Enter your name".
ACCEPT THE-NAME.
DISPLAY "Hello " THE-NAME.
STOP RUN.
--------
For example, if enter my name 'Marc' and then press the ENTER key, it wont accept the output yet. Instead i have to type 10 characters until it will show the output. Obviously, this isn't how i want it to run.
Any suggestions? Does it have to do with the compiler?
I'm a COBOL newbie and i'm stuck on what seems to be a simple problem. I'm currently using "SAMS teach yourself COBOL in 21 days", which uses MicroFocus code. But i use the free Fujitsu compiler with it. Anyways, the following code snippet doesn't behave properly:
...
DATA DIVISION.
WORKING-STORAGE SECTION.
01 THE-NAME PIC X(10).
PROCEDURE DIVISION.
PROGRAM-BEGIN.
DISPLAY "Enter your name".
ACCEPT THE-NAME.
DISPLAY "Hello " THE-NAME.
STOP RUN.
--------
For example, if enter my name 'Marc' and then press the ENTER key, it wont accept the output yet. Instead i have to type 10 characters until it will show the output. Obviously, this isn't how i want it to run.
Any suggestions? Does it have to do with the compiler?