Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Cobol Misc > Re: Help, Reali...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 136 of 183
Post > Topic >>

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

by John Culleton <john@[EMAIL PROTECTED] > Jul 19, 2007 at 08:50 AM

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@[EMAIL PROTECTED]
 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
 




 3 Posts in Topic:
Help, Realia Cobol problem with "ACCEPT" (from DOS screen)
"Joe M" <joe  2006-10-14 20:09:36 
Re: Help, Realia Cobol problem with "ACCEPT" (from DOS screen)
John Culleton <john@[E  2007-07-19 08:35:41 
Re: Help, Realia Cobol problem with "ACCEPT" (from DOS screen)
John Culleton <john@[E  2007-07-19 08:50:59 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 8:27:30 CST 2008.