satya das

Absent Member.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2017-10-04
08:49
1055 views
How to handle special register "TALLY".
I am working on a modernization code where we are upgrading netexpress to visual cobol for visual studio. In one of the code special register character "Tally" is being used which is throwing back error saying that "Operand tally is not declared.
After doing some search got to know that I need to enable it using either the OSVS or VSC2 compiler directives. Since I have basic idea on cobol and not an expert, so can someone please help me as how to include the compiler directives to get rid of the error.
4 Replies


Cadet 2nd Class
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2017-10-04
12:32
Replace Tally with a defined numeric field WS-TALLY
satya das

Absent Member.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2017-10-05
05:10
Any idea what is the value of TALLY. Is it PIC S9(5) or any other value ?
lanter-edv_ch

Vice Admiral
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2017-10-05
05:30
Have a look at the documentation. TALLYING is different between EXAMINE and INSPECT. EXAMINE uses the internal register TALLY, which has PIC 9(5) COMP; for INSPECT you must specify an elementary numeric data item.
Gael Wilson

Micro Focus Expert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2017-10-06
10:02
You can set the directive either at project level or file level depending on whether you just want to compile that file or the entire project with the OSVS or VSC2 directives.
For file level properties go to the Solution Explorer, right click on the program and on the Property Pages dialog select COBOL and you can select a mainframe dialect, which will set the compiler directives necessary for that particular dialect, or alternatively you can add the required directive to the Additional directives field.
For project level, right click on the project in Solution Explorer and select the COBOL tab. From there it is similar o what I have just mentioned ie you can select a mainframe dialect or add the required directive to the Additional directives field and that will be applied to all of the COBOL programs in the project.
For file level properties go to the Solution Explorer, right click on the program and on the Property Pages dialog select COBOL and you can select a mainframe dialect, which will set the compiler directives necessary for that particular dialect, or alternatively you can add the required directive to the Additional directives field.
For project level, right click on the project in Solution Explorer and select the COBOL tab. From there it is similar o what I have just mentioned ie you can select a mainframe dialect or add the required directive to the Additional directives field and that will be applied to all of the COBOL programs in the project.