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
Question on Cobol
Moderators: Anuj Dhawan, Moderator Group
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
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 . If above two "symptoms" are there -- that's an IMS DC (online) program. Not sure about CICS though.
Code: Select all
PROCEDURE DIVISION USING L100-LOGICAL-TERMINAL-PCB
Regards,
Anuj
Anuj
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
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
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page