For Programmers: Free Programming Magazines  


Home > Archive > Cobol > July 2007 > Re: Help, Realia Cobol problem with "ACCEPT" (from DOS screen)









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Help, Realia Cobol problem with "ACCEPT" (from DOS screen)
John Culleton

2007-07-19, 6:55 pm

Joe M wrote:

> 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@ameritech.net

Works fine on Linux using Open Cobol. Had an obscure error in Tiny Cobol.
I would either reinstall Realia COBOL from original media or consider
switch to Open Cobol.
--
John Culleton
Able Indexers and Typesetters
Erordemaplo

2007-07-22, 3:59 pm

Incredible pissing action in the toilet webcams club!
Nasty teen teasing her clit then pissing. Click here to watch online
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com