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

Cobol/400 and DDS
Hi!

I'm actually trying to get familiar with Cobol programming on a AS/400
machine. I've got a DDS Screen description, the ususal kind of file
executed with EXFMT within RPG. I'd like to call this screen format
from Cobol now. I declared it that way:

In FILE-CONTROL:
SELECT SCREEN-FILE ASSIGN TO WORKSTATION-SCREEN ORGANIZATION IS
TRANSACTION.

In FILE-SECTION:
FD  SCREEN-FILE LABEL RECORDS ARE STANDARD.
01  SCREEN-REC.
COPY DDS-ALL-FORMATS OF BUKTODSP.

In PROCEDURE DIVISION:
OPEN I-O SCREEN-FILE.
WRITE SCREEN-REC FORMAT IS "D1KONTO".
READ SCREEN-FILE RECORD.
CLOSE SCREEN-FILE.

Well, I know there is no error checking done in this sample program.
The AS/400 responds with a LBE7207 exception during the OPEN
statement. So it seems the WORKSTATION-SCREEN cannot be opened. But
why? The COPY is expanded to the single records in the DDS file, so
this file is found. What can be the reason for the open failure of the
SCREEN-FILE?

Sorry if this question is too stupid, I've been used to program in the
VMS environment.

Luke

Report this thread to moderator Post Follow-up to this message
Old Post
Lukas Zackmann
11-24-04 01: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 06:32 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.