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

IGYPG3178-I when compiling a pgm reading a VB file


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

Active User


Joined: 12 Jan 2006
Posts: 113
Location: Germany

PostPosted: Tue May 12, 2026 3:57 pm
Reply with quote

My definitions in FILE-CONTROL and FILE SECTION are as follows:
Code:

SELECT RCXMLIN  ASSIGN       TO RCXMLIN           
                ORGANIZATION IS SEQUENTIAL         
                ACCESS       IS SEQUENTIAL         
                FILE STATUS  IS S-FILESTATUS-XMLIN.

FD  RCXMLIN  RECORDING MODE IS V                     
             RECORD IS VARYING IN SIZE               
             FROM 1 TO 04000 CHARACTERS             
             DEPENDING ON Z-SL-RCXMLIN               
             LABEL RECORDS ARE OMITTED               
             BLOCK CONTAINS 0 RECORDS.               
01  XMLIN-SATZ                         PIC  X(04000).

And here is my READ statement:
Code:

READ RCXMLIN                       
  AT END                           
    SET S-STATUS-XMLIN-EOF TO TRUE 
  NOT AT END                       
    SET S-STATUS-XMLIN-FOUND TO TRUE
END-READ                           

I don't understand why the compiler (version 6.4) issues the following message when parsing the READ statement:

IGYPG3178-I A "READ" statement was found for a file whose "FD" had a shortest record
length that was not equal to the lower "RECORD IS VARYING" integer or a
longest record length that was not equal to the higher "RECORD IS VARYING" integer.
A record length conflict could occur at execution.
For a more reliable program, change the "FD" so that the shortest and
longest record lengths match the "RECORD IS VARYING" integers.[/code]
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1217
Location: Dublin, Ireland

PostPosted: Tue May 12, 2026 5:14 pm
Reply with quote

For V format, should it be varying from 5 to 4004 - to allow for the RDW?

Garry.
Back to top
View user's profile Send private message
Stefan

Active User


Joined: 12 Jan 2006
Posts: 113
Location: Germany

PostPosted: Wed May 13, 2026 7:22 pm
Reply with quote

Thank you Gary for your quick reply.
I changed the boundaries to "FROM 5 to 4004 CHARACTERS" but got the same message.
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1325
Location: Vilnius, Lithuania

PostPosted: Wed May 13, 2026 8:51 pm
Reply with quote

The message is inly "I", so you should be able/willing to ignore it.
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1325
Location: Vilnius, Lithuania

PostPosted: Wed May 13, 2026 8:52 pm
Reply with quote

Better ask on the IBM-MAIN mailing list...
Back to top
View user's profile Send private message
Stefan

Active User


Joined: 12 Jan 2006
Posts: 113
Location: Germany

PostPosted: Fri May 15, 2026 12:59 pm
Reply with quote

Whenever the compiler issues a message, even if it is of type "I", I try at least to take it seriously and understand it.
Meanwhile the moderator of another forum solved the problem by changing the definition of the input records as follows:
Code:
01  XMLIN-SATZ.                                             
    05 XMLIN-SATZ-REC           OCCURS 1 TO 4000           
                                DEPENDING ON Z-SL-RCXMLIN   
                                PIC X(01).

This did the trick. Message IGYPG3178-I did not reappear.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts FileAid move data from two files to o... Compuware & Other Tools 5
No new posts Sorting date into YYYYMMDD, and creat... DFSORT/ICETOOL 13
No new posts To Sort detail records in a file with... SYNCSORT 5
No new posts To Populate Trailer cnt in the file w... SYNCSORT 1
No new posts Sort card to know that creation date ... DFSORT/ICETOOL 10
Search our Forums:


Back to Top