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

Print Labels using PowerForm/PowerCobol 7.0
Hi, When i'm trying write a Form with PwerCobol I have the following
problem:
Error 9024 during debug of project

ENVIRONMENT     DIVISION.
INPUT-OUTPUT SECTION.
FILE-CONTROL.
SELECT PRINT-FILE ASSIGN TO PRTFILE
FORMAT IS DEFINITION-NAME
GROUP  IS GROUP-NAME.

DATA            DIVISION.
FILE SECTION.
FD  PRINT-FILE.
* Record format defined by PowerFORM
COPY  Daniel  OF XMDLIB.
WORKING-STORAGE SECTION.
01  DEFINITION-NAME PIC  X(8).
01  GROUP-NAME      PIC  X(8).
01  INPUT-DATA-AREA.
03  ECLIENTNAME  PIC  X(10).
03  EADDRESS01   PIC  X(10).

PROCEDURE       DIVISION.
MOVE POW-MP-WAIT TO "MousePointer" OF POW-SELF
MOVE POW-FALSE TO "Enabled" OF POW-SELF

OPEN OUTPUT PRINT-FILE.

MOVE "Daniel"    TO DEFINITION-NAME.
MOVE "BODY" TO GROUP-NAME.

MOVE "Text" OF CM1 TO ECLIENTNAME.
MOVE "Text" OF CM11 TO EADDRESS01.

MOVE ECLIENTNAME TO campo(1).
MOVE EADDRESS01  TO campo1(1).
WRITE Daniel.

CLOSE PRINT-FILE.
MOVE POW-TRUE TO "Enabled" OF POW-SELF.
MOVE POW-MP-DEFAULT TO "MousePointer" OF POW-SELF.

Form :

Daniel.pmd
BODY
Campo X
Campo X

I know that this error occurs because nao I am identifies the name of
the group, but to the best of my knowledge and belief is the BODY, in
this case.  Friends necessary of a light, therefore this me seems
simple.


Report this thread to moderator Post Follow-up to this message
Old Post
Daniel
03-28-06 11:55 PM


Re: Print Labels using PowerForm/PowerCobol 7.0
Daniel wrote:
> Hi, When i'm trying write a Form with PwerCobol I have the following
> problem:
> Error 9024 during debug of project
>
> ENVIRONMENT     DIVISION.
> INPUT-OUTPUT SECTION.
> FILE-CONTROL.
>     SELECT PRINT-FILE ASSIGN TO PRTFILE
>     FORMAT IS DEFINITION-NAME
>     GROUP  IS GROUP-NAME.
>
> DATA            DIVISION.
> FILE SECTION.
> FD  PRINT-FILE.
> * Record format defined by PowerFORM
> COPY  Daniel  OF XMDLIB.
> WORKING-STORAGE SECTION.
> 01  DEFINITION-NAME PIC  X(8).
> 01  GROUP-NAME      PIC  X(8).
> 01  INPUT-DATA-AREA.
>   03  ECLIENTNAME  PIC  X(10).
>   03  EADDRESS01   PIC  X(10).
>
> PROCEDURE       DIVISION.
>     MOVE POW-MP-WAIT TO "MousePointer" OF POW-SELF
>     MOVE POW-FALSE TO "Enabled" OF POW-SELF
>
>     OPEN OUTPUT PRINT-FILE.
>
>     MOVE "Daniel"    TO DEFINITION-NAME.
>     MOVE "BODY" TO GROUP-NAME.
>
>     MOVE "Text" OF CM1 TO ECLIENTNAME.
>     MOVE "Text" OF CM11 TO EADDRESS01.
>
>     MOVE ECLIENTNAME TO campo(1).
>     MOVE EADDRESS01  TO campo1(1).
>     WRITE Daniel.
>
>     CLOSE PRINT-FILE.
>     MOVE POW-TRUE TO "Enabled" OF POW-SELF.
>     MOVE POW-MP-DEFAULT TO "MousePointer" OF POW-SELF.
>
> Form :
>
> Daniel.pmd
>    BODY
>       Campo X
>       Campo X
>
> I know that this error occurs because nao I am identifies the name of
> the group, but to the best of my knowledge and belief is the BODY, in
> this case.  Friends necessary of a light, therefore this me seems
> simple.

What you're doing seems correct. Therefore, make sure all the names in use
("Daniel" etc.) are consistent between PowerForm and your program. I
recommend UPPER-CASE, too.



Report this thread to moderator Post Follow-up to this message
Old Post
HeyBub
03-28-06 11:55 PM


Re: Print Labels using PowerForm/PowerCobol 7.0
A 9024 is a incorrect PRT-GROUP.
Be sure your POWERFORM group name is "BODY".

JIH
www.pcpayroll.net

"Daniel" <dafmarques@gmail.com> wrote in message
news:1143544840.970530.311980@i39g2000cwa.googlegroups.com...
> Hi, When i'm trying write a Form with PwerCobol I have the following
> problem:
> Error 9024 during debug of project
>
> ENVIRONMENT     DIVISION.
> INPUT-OUTPUT SECTION.
> FILE-CONTROL.
>     SELECT PRINT-FILE ASSIGN TO PRTFILE
>     FORMAT IS DEFINITION-NAME
>     GROUP  IS GROUP-NAME.
>
> DATA            DIVISION.
> FILE SECTION.
> FD  PRINT-FILE.
> * Record format defined by PowerFORM
> COPY  Daniel  OF XMDLIB.
> WORKING-STORAGE SECTION.
> 01  DEFINITION-NAME PIC  X(8).
> 01  GROUP-NAME      PIC  X(8).
> 01  INPUT-DATA-AREA.
>   03  ECLIENTNAME  PIC  X(10).
>   03  EADDRESS01   PIC  X(10).
>
> PROCEDURE       DIVISION.
>     MOVE POW-MP-WAIT TO "MousePointer" OF POW-SELF
>     MOVE POW-FALSE TO "Enabled" OF POW-SELF
>
>     OPEN OUTPUT PRINT-FILE.
>
>     MOVE "Daniel"    TO DEFINITION-NAME.
>     MOVE "BODY" TO GROUP-NAME.
>
>     MOVE "Text" OF CM1 TO ECLIENTNAME.
>     MOVE "Text" OF CM11 TO EADDRESS01.
>
>     MOVE ECLIENTNAME TO campo(1).
>     MOVE EADDRESS01  TO campo1(1).
>     WRITE Daniel.
>
>     CLOSE PRINT-FILE.
>     MOVE POW-TRUE TO "Enabled" OF POW-SELF.
>     MOVE POW-MP-DEFAULT TO "MousePointer" OF POW-SELF.
>
> Form :
>
> Daniel.pmd
>    BODY
>       Campo X
>       Campo X
>
> I know that this error occurs because nao I am identifies the name of
> the group, but to the best of my knowledge and belief is the BODY, in
> this case.  Friends necessary of a light, therefore this me seems
> simple.
>



Report this thread to moderator Post Follow-up to this message
Old Post
jh
03-29-06 02:55 AM


Re: Print Labels using PowerForm/PowerCobol 7.0
Thank you, for answering, I made the same changes in projet, but not
solution the error.

I sending e-mail for you with the project and form, that using.

Please, analyze this project.

Regards..
Daniel

HeyBub wrote:
> Daniel wrote: 
>
> What you're doing seems correct. Therefore, make sure all the names in use
> ("Daniel" etc.) are consistent between PowerForm and your program. I
> recommend UPPER-CASE, too.


Report this thread to moderator Post Follow-up to this message
Old Post
Daniel
03-29-06 11: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 05:29 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.