Question on Cobol

other mainframe interview questions

Moderators: Anuj Dhawan, Moderator Group

Post Reply
tpkumar77
Member
Posts: 16
Joined: Mon Jul 13, 2009 1:01 am

Question on Cobol

Post by tpkumar77 » Mon Jul 13, 2009 1:16 am

Hello all, I was asked the below question during one of my interivew:

Suppose I give you a prinout of a Cobol Program( its an online program,without the EXEC Stmts,Without File Declarations )how can you determine if this is an Online or Batch? ( The interviewer insisted that it is an online program bt wthout EXEC statements)

Could any one please tell me how can you determine if the given program is online? or batch with the conditions specified above?


In a static call,what is the order of compilation :
Main Program
Sub Program
Regards,
Kumar

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

Post by Anuj Dhawan » Mon Jul 13, 2009 11:59 am

If this has to do with IMS DC programs, you won't have FILE-SECTION coded under data-division and PROCEDURE-DIVISION would be coded with some terminal PCB like

Code: Select all

PROCEDURE DIVISION  USING L100-LOGICAL-TERMINAL-PCB
. If above two "symptoms" are there -- that's an IMS DC (online) program. Not sure about CICS though.
Regards,
Anuj

tpkumar77
Member
Posts: 16
Joined: Mon Jul 13, 2009 1:01 am

Post by tpkumar77 » Mon Jul 13, 2009 1:59 pm

Thanks Anuj,
Incase if it was IMS as u mentioned ,definetly by above thing we can find .
But the interview and the requirement was purely for CICS..so was just looking if some one can throw some light on that part.
Regards,
Kumar

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

Post by Anuj Dhawan » Mon Jul 13, 2009 2:13 pm

Your initial question didn't talk about CICS so I answered for IMS DC.

I don't do CICS -- so can't answer that appropriate. Please have some patience; some one will be around soon.
Regards,
Anuj

tpkumar77
Member
Posts: 16
Joined: Mon Jul 13, 2009 1:01 am

Post by tpkumar77 » Mon Jul 13, 2009 2:34 pm

ohh sorry Anuj,that was my fault..I should have mentioned it as CICS
Regards,
Kumar

User avatar
Natarajan
Moderator
Posts: 537
Joined: Fri Oct 10, 2008 12:57 pm
Location: chennai
Contact:

Post by Natarajan » Mon Jul 13, 2009 3:46 pm

CICS programs have atleast a EXEC CICS RETURN statement.

If EXEC CICS not there... it can be called program (calling program is a cics program.)

If interviewer talking about cics called program, it will contain linkage section with
commarea in it.
Natarajan
Chennai

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