Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: Moving display to computational items
anguel@web.de wrote:
> Hi,
>
> I've got a file description with computational components, e.g.
>   05 REC-DATE PIC 9(08) COMP.
>
> In the Working-Storage section, the date must be a display item for
> several reasons, e.g.  77 W-DATE PIC 9(08).
>
> How to move the content of the display to the comp field? A straight
> move seems to work, but the result recorded in the file is erroneous.
>
> Any hint?
>
> TIA
> Anguel

Hello Anguel

It is usually good practice when posting such questions to specify the
COBOL compiler being used, including the version, together with the
version of the operating system being used.  A code fragment, or more,
is often helpful too.
On IBM mainframes USAGE COMP is a binary field, but that may not be
true for all other suppliers.  Specifying the compiler options in use
is also often helpful.

In this case, I can't see from your explanation why there should be a
problem.  Have you tried using the DISPLAY statement before and after
the MOVE statement?  If you are looking at the file after it has been
written and the program ended, are you sure you are using exactly the
same file layout to write and then read the file?  Have you tried using
an interactive debugger to see what is going on?

With regards

Robert


Report this thread to moderator Post Follow-up to this message
Old Post
Robert Jones
09-20-05 12:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Cobol archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 12:42 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.