Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Facing Error IGYPS2072-S

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
murugan_mf

Active User


Joined: 31 Jan 2008
Posts: 148
Location: Chennai, India

PostPosted: Wed Jun 01, 2016 7:12 pm    Post subject: Facing Error IGYPS2072-S
Reply with quote

Hi,

Can anyone help with this

01 Sales-Data-County occurs 10 times.
05 Amount PIC 9(09)
05 Date PIC X(10)

01 Sales-Data-County occurs 10 times
05 Amount PIC 9(09)
05 Date PIC X(10)


Now when I am moving values to the field I am facing the following error IGYPS2072-S "OF" was invalid

Move ws-amount to Amount(ws-sub1) of Sales-Data-County

Not sure why its not working for an internal table element.
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7913
Location: Bellevue, IA

PostPosted: Wed Jun 01, 2016 7:29 pm    Post subject:
Reply with quote

Sigh. You have the same 01 level names -- how can you uniquely identify anything in either 01 level? And if you change one of the names to make them unique, how do you identify which of the 10 occurrences of the 01 level variable you are referring to?

Are you even bothering to test this code before you post? Enterprise COBOL does not support OCCURS on the 01 level, nor does it allow use of DATE as a variable name.
Back to top
View user's profile Send private message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1610
Location: NY,USA

PostPosted: Wed Jun 01, 2016 10:54 pm    Post subject:
Reply with quote

Duplicate of this
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts Error during restore rename archanamuthukrishnan All Other Mainframe Topics 2 Fri Oct 14, 2016 3:30 pm
No new posts Error IEC161I 052(009,XXXRS00)-084 wh... amitc23 JCL & VSAM 10 Wed Oct 12, 2016 5:00 pm
No new posts IDMS/DC-COBOL program - SNAP error wh... rakeshsekar1987 IDMS/ADSO 5 Tue Sep 13, 2016 8:28 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us