COBOL Interview Questions.

other mainframe interview questions

Moderators: Anuj Dhawan, Moderator Group

Post Reply
User avatar
Active Member
Posts: 56
Joined: Fri Mar 17, 2006 3:21 pm

COBOL Interview Questions.

Post by rangab » Thu Apr 20, 2006 6:20 pm


I've two questions.

1). How to set a subscript or index to zero AUTOMATICALLY when it reaches it's max count. We should not use any "move 0 to subscript" or "set index to 0" in the code. Is it possible?

2). How to execute a program on Friday's only with COBOL logic? Is this possible too?

Any help?
Learn Which You Don't Know - Teach Others Which They Don't Know.

User avatar
Active Member
Posts: 144
Joined: Fri Feb 24, 2006 11:33 am

Post by arrbee » Fri Apr 21, 2006 12:42 pm

It is simple you know.........

Suppose, you've a field defined as PIC 9(02) and it allows only 99 to be the max count. Once the counter reaches is set to "0" automatically.

Regarding the Friday thing, probably you need to know the dates that of year 2006 (any other year) on which Friday comes and do the coding accordingly.

Arr Bee
?My joy in learning is partly that it enables me to teach? - Seneca(Roman philosopher, mid-1st century AD)


Topic deleted by Admin

Post by academyindia4 » Wed Feb 03, 2016 11:04 pm

<< Content deleted By Admin >>

Post Reply


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.
Mainframe Interview questions

Other References
Mainframe Tools and others