IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

"REDEFINES" was not the first clause in a data definition


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
purushoth_jp

New User


Joined: 12 Dec 2004
Posts: 22

PostPosted: Tue Dec 14, 2004 2:11 pm
Reply with quote

IDENTIFICATION DIVISION.
PROGRAM-ID. REDEFPGM.
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
77 A PIC X(10) VALUE "REDEFINES"
77 B PIC X(10) REDEFINES A.
PROCEDURE DIVISION.
MAIN-PARA.
DISPLAY A.
DISPLAY B.
STOP RUN.
this program is not working and the error message is
7 IGYDS1048-E "REDEFINES" was not the first clause in a data definition
The clause was accepted

will plz anyone can help to find out.
Back to top
View user's profile Send private message
anuradha

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

PostPosted: Tue Dec 14, 2004 3:47 pm
Reply with quote

Hi purushoth_jp,


Quote:
77 A PIC X(10) VALUE "REDEFINES"
77 B PIC X(10) REDEFINES A.


Declare as follows:

77 A PIC X(10) VALUE "REDEFINES".
77 B REDEFINES A PIC X(10).
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts PuTTY - "User is not a surrogate... IBM Tools 5
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top