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: 8132
Location: East Dubuque, Illinois, USA

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: 1744
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 DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts IDC2902I Error tzeche ABENDS & Debugging 2 Tue Mar 28, 2017 11:39 am
No new posts Need help with below DB2 error ashek15 DB2 3 Sat Mar 18, 2017 5:56 am
No new posts FINDREP Syntax Error seahawk789 DFSORT/ICETOOL 4 Thu Mar 09, 2017 10:11 pm


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