I'm running Realia Cobol, version 4.201. Things were fine and then I had a
hard drive crash so I had to reload everything. Now programs will still
compile and run, but anything that asks for input via the ACCEPT verb from
the dos screen window just hangs the system, I have to alt-ctrl-delete and
kill the task. I stripped the program down to the simplest version and
the
display's work fine, but the accept's just hang it. The compile and link
work fine. I can run other programs with no problems, just accept's are
not
working. Any ideas? Here's an example of what will no longer work:
IDENTIFICATION DIVISION.
PROGRAM-ID. TEST2.
AUTHOR. JOE.
ENVIRONMENT DIVISION.
CONFIGURATION SECTION.
SOURCE-COMPUTER. IBM-PC.
OBJECT-COMPUTER. IBM-PC.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 FILLER.
05 FILE-PATH PIC X(18).
05 WS-IN-FILE-NAME PIC X(36) VALUE SPACES.
PROCEDURE DIVISION.
000-EXECUTIVE.
DISPLAY 'ENTER FILE PATH'.
ACCEPT FILE-PATH.
STRING 'C:\FILE\' DELIMITED BY SIZE
FILE-PATH DELIMITED BY SPACES
'\FILE1.TXT' DELIMITED BY SIZE
INTO WS-IN-FILE-NAME.
DISPLAY 'INPUT FILE NAME = ' WS-IN-FILE-NAME.
GOBACK.
Am I missing some environmental variable somewhere in my autoexec.bat or
something? Please help, this is getting me crazy. Thanks,
Joe (joemagiera at ameritech dot net)
joemagiera@[EMAIL PROTECTED]


|