NEED TO KNOW

cobol interview questions

Moderator: Moderator Group

Post Reply
davidbeckam
Member
Posts: 1
Joined: Tue Aug 04, 2009 9:59 am

NEED TO KNOW

Post by davidbeckam » Thu Aug 13, 2009 1:18 pm

Give example of Inspect TALLYING / BEFORE INTIAL / AFTER INITIAL. In which situation will use this in COBOL?

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Thu Aug 13, 2009 10:13 pm

Are Manuals not clear enough?
Regards,
Anuj

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Fri Aug 14, 2009 12:48 pm

topic title could have been a little more descriptive

INSPECT syntax, rules
INSPECT statement examples

Here is the Redbook Url: http://www.redbooks.ibm.com/redbooks.nsf/redbooks/
Here is the IBM library server: http://publibz.boulder.ibm.com/cgi-bin/ ... 90/library
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

naveentanamala
Member
Posts: 5
Joined: Sun Feb 21, 2010 11:01 pm

Post by naveentanamala » Tue Mar 02, 2010 12:34 pm

It is used ti count the number of characters in a field and also to replace a single or set of characters

working-storage section.
01 text pic x(10) value 'naveen'
procedure division.
inspect text tallying tally for chracters.
inspect text replacing all 'ee' by 'i'.

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others