SlideShare a Scribd company logo
Real time interview questions on COBOL:
For more information refer http://clearmainframeinterview.blogspot.in/search/label/COBOL
1.How table is defined in COBOL and what are the different ways table entries are accessed
?
OCCURS is used to define table and table entries are accessed either by using Subscript or
index.
Read here for complete information on : Working with tables
2. What is COMP -3 field and what is the use of it?
COMP-3 is packed decimal representation of data and is used to save space.
For complete information on all COMP fields and how the vlaues are displayed in COBOL
program READ HERE
3.Can we move Alphanumeric value to numeric variable?
Yes, we can do that but might face data exception(S0C7) error in case if the field is used in
any calculation.
For complete information READ HERE
4.What is INSPECT and the use of it?
INSPECT is a defined COBOL verb and is used to find number of times a particular
character or string appears or to replace a some portion of any data item.
For complete information on how to work with INSPECT,Read here :Working with
INSPECT
5.Can we use MAX or MIN with Alphanumeric data?
yes, we can use.
For complete information,READ HERE
6.How to find when the COBOL program was compiled?
We can find by using WHEN-COMPILED function or by searching the LOAD library.
There is a defined function in COBOL which can be used to find the compilation date and
time of any program.
The function used is WHEN-COMPILED and it returns 21 characters..
Sample:
Procedure division statement:
DISPLAY 'PROGRAM COMPILED ON:' FUNCTION WHEN-COMPILED
Output:
PROGRAM COMPILED ON:2013122412433857+0000
7.How to pass value from COBOL to JCL?
We can pass by using RETURN-CODE.
There is a defined word RETURN-CODE in COBOL which can be used to pass data from
program to JCL.
This is specially useful when some specific return code to be reported in a job.
Normally the job returns 0 or 4 or 8 or 12 return code when any abnormality happens.This
can be changed by using RETURN-CODE in the program.
8.What is DELIMITED BY SIZE and DELIMITED BY SPACE and when they are used?
DELIMITED BY SIZE or DELIMITED BY SPACE will be used along with STRING to control
how the data is copied.
DELIMITED BY SIZE: Total size of data items will be considered as delimiter.
DELIMITED BY SPACE : Space is considered as delimiter.
For more information on this, READ HERE
9.
Any scenario which can result in Infinite loop by using PERFORM?
With PERFORM UNTIL and PERFORM TIMES ,infinite loop can be produced.
Read here for Sample code
10.
What is the use of TEST BEFORE and TEST AFTER in PERFORM statements?
TEST BEFORE and TEST AFTER are used to define when the condition to be checked.
For complete information along with samples,READ HERE

More Related Content

What's hot

MVS ABEND CODES
MVS ABEND CODESMVS ABEND CODES
MVS ABEND CODES
Nirmal Pati
 
CICS basics overview session-1
CICS basics overview session-1CICS basics overview session-1
CICS basics overview session-1
Srinimf-Slides
 
Vsam presentation PPT
Vsam presentation PPTVsam presentation PPT
Vsam presentation PPT
Anil Polsani
 
Jcl tutor
Jcl tutorJcl tutor
Jcl tutor
shivas
 
CICS basic mapping support - session 3
CICS basic mapping support - session 3CICS basic mapping support - session 3
CICS basic mapping support - session 3
Srinimf-Slides
 
Basic concept of jcl
Basic concept of jclBasic concept of jcl
Basic concept of jcl
Anil Bharti
 
Db2
Db2Db2
Db2
yboren
 
DB2 Interview Questions - Part 1
DB2 Interview Questions - Part 1DB2 Interview Questions - Part 1
DB2 Interview Questions - Part 1
ReKruiTIn.com
 
Skillwise cics part 1
Skillwise cics part 1Skillwise cics part 1
Skillwise cics part 1
Skillwise Group
 
Mainframe JCL Part - 1
Mainframe JCL Part - 1Mainframe JCL Part - 1
Mainframe JCL Part - 1
janaki ram
 
VSAM Tuning
VSAM TuningVSAM Tuning
VSAM Tuning
Dan O'Dea
 
Mainframe - OPC
Mainframe -  OPCMainframe -  OPC
Mainframe - OPC
Srinimf-Slides
 
Parallel Sysplex Implement2
Parallel Sysplex Implement2Parallel Sysplex Implement2
Parallel Sysplex Implement2
ggddggddggdd
 
Jcl
JclJcl
Jcl
shivas
 
Assembler Language Tutorial for Mainframe Programmers
Assembler Language Tutorial for Mainframe ProgrammersAssembler Language Tutorial for Mainframe Programmers
Assembler Language Tutorial for Mainframe Programmers
Srinimf-Slides
 
Skillwise JCL
Skillwise JCLSkillwise JCL
Skillwise JCL
Skillwise Group
 
Z OS IBM Utilities
Z OS IBM UtilitiesZ OS IBM Utilities
Z OS IBM Utilities
kapa rohit
 
Tso and ispf
Tso and ispfTso and ispf
Tso and ispf
satish090909
 
DB2 on Mainframe
DB2 on MainframeDB2 on Mainframe
DB2 on Mainframe
Skillwise Group
 
IMS DC Self Study Complete Tutorial
IMS DC Self Study Complete TutorialIMS DC Self Study Complete Tutorial
IMS DC Self Study Complete Tutorial
Srinimf-Slides
 

What's hot (20)

MVS ABEND CODES
MVS ABEND CODESMVS ABEND CODES
MVS ABEND CODES
 
CICS basics overview session-1
CICS basics overview session-1CICS basics overview session-1
CICS basics overview session-1
 
Vsam presentation PPT
Vsam presentation PPTVsam presentation PPT
Vsam presentation PPT
 
Jcl tutor
Jcl tutorJcl tutor
Jcl tutor
 
CICS basic mapping support - session 3
CICS basic mapping support - session 3CICS basic mapping support - session 3
CICS basic mapping support - session 3
 
Basic concept of jcl
Basic concept of jclBasic concept of jcl
Basic concept of jcl
 
Db2
Db2Db2
Db2
 
DB2 Interview Questions - Part 1
DB2 Interview Questions - Part 1DB2 Interview Questions - Part 1
DB2 Interview Questions - Part 1
 
Skillwise cics part 1
Skillwise cics part 1Skillwise cics part 1
Skillwise cics part 1
 
Mainframe JCL Part - 1
Mainframe JCL Part - 1Mainframe JCL Part - 1
Mainframe JCL Part - 1
 
VSAM Tuning
VSAM TuningVSAM Tuning
VSAM Tuning
 
Mainframe - OPC
Mainframe -  OPCMainframe -  OPC
Mainframe - OPC
 
Parallel Sysplex Implement2
Parallel Sysplex Implement2Parallel Sysplex Implement2
Parallel Sysplex Implement2
 
Jcl
JclJcl
Jcl
 
Assembler Language Tutorial for Mainframe Programmers
Assembler Language Tutorial for Mainframe ProgrammersAssembler Language Tutorial for Mainframe Programmers
Assembler Language Tutorial for Mainframe Programmers
 
Skillwise JCL
Skillwise JCLSkillwise JCL
Skillwise JCL
 
Z OS IBM Utilities
Z OS IBM UtilitiesZ OS IBM Utilities
Z OS IBM Utilities
 
Tso and ispf
Tso and ispfTso and ispf
Tso and ispf
 
DB2 on Mainframe
DB2 on MainframeDB2 on Mainframe
DB2 on Mainframe
 
IMS DC Self Study Complete Tutorial
IMS DC Self Study Complete TutorialIMS DC Self Study Complete Tutorial
IMS DC Self Study Complete Tutorial
 

Viewers also liked

Cobol questions and answers
Cobol questions and answersCobol questions and answers
Cobol questions and answers
Sweta Singh
 
JCL DFSORT
JCL DFSORTJCL DFSORT
JCL DFSORT
Nirmal Pati
 
Top 9 mainframe testing interview questions answers
Top 9 mainframe testing interview questions answersTop 9 mainframe testing interview questions answers
Top 9 mainframe testing interview questions answers
jonhmart036
 
20 DFSORT Tricks For Zos Users - Interview Questions
20 DFSORT Tricks For Zos Users - Interview Questions20 DFSORT Tricks For Zos Users - Interview Questions
20 DFSORT Tricks For Zos Users - Interview Questions
Srinimf-Slides
 
Cobol basics 19-6-2010
Cobol basics 19-6-2010Cobol basics 19-6-2010
Cobol basics 19-6-2010
SivaprasanthRentala1975
 
IMSDB-COBOL PROGRAM EXPLANATION
IMSDB-COBOL PROGRAM EXPLANATIONIMSDB-COBOL PROGRAM EXPLANATION
IMSDB-COBOL PROGRAM EXPLANATION
Srinimf-Slides
 
Sql queries
Sql queriesSql queries
Sql queries
narendrababuc
 
100 sql queries
100 sql queries100 sql queries
100 sql queries
Srinimf-Slides
 
Db2 Important questions to read
Db2 Important questions to readDb2 Important questions to read
Db2 Important questions to read
Prasanth Dusi
 
Top 9 cobol interview questions answers
Top 9 cobol interview questions answersTop 9 cobol interview questions answers
Top 9 cobol interview questions answers
Jobinterviews
 
Sql queires
Sql queiresSql queires
Sql queires
MohitKumar1985
 
Dbms lab questions
Dbms lab questionsDbms lab questions
Dbms lab questions
Parthipan Parthi
 
Mainframe jcl exec and dd statements part - 3
Mainframe jcl exec and dd statements part - 3Mainframe jcl exec and dd statements part - 3
Mainframe jcl exec and dd statements part - 3
janaki ram
 

Viewers also liked (13)

Cobol questions and answers
Cobol questions and answersCobol questions and answers
Cobol questions and answers
 
JCL DFSORT
JCL DFSORTJCL DFSORT
JCL DFSORT
 
Top 9 mainframe testing interview questions answers
Top 9 mainframe testing interview questions answersTop 9 mainframe testing interview questions answers
Top 9 mainframe testing interview questions answers
 
20 DFSORT Tricks For Zos Users - Interview Questions
20 DFSORT Tricks For Zos Users - Interview Questions20 DFSORT Tricks For Zos Users - Interview Questions
20 DFSORT Tricks For Zos Users - Interview Questions
 
Cobol basics 19-6-2010
Cobol basics 19-6-2010Cobol basics 19-6-2010
Cobol basics 19-6-2010
 
IMSDB-COBOL PROGRAM EXPLANATION
IMSDB-COBOL PROGRAM EXPLANATIONIMSDB-COBOL PROGRAM EXPLANATION
IMSDB-COBOL PROGRAM EXPLANATION
 
Sql queries
Sql queriesSql queries
Sql queries
 
100 sql queries
100 sql queries100 sql queries
100 sql queries
 
Db2 Important questions to read
Db2 Important questions to readDb2 Important questions to read
Db2 Important questions to read
 
Top 9 cobol interview questions answers
Top 9 cobol interview questions answersTop 9 cobol interview questions answers
Top 9 cobol interview questions answers
 
Sql queires
Sql queiresSql queires
Sql queires
 
Dbms lab questions
Dbms lab questionsDbms lab questions
Dbms lab questions
 
Mainframe jcl exec and dd statements part - 3
Mainframe jcl exec and dd statements part - 3Mainframe jcl exec and dd statements part - 3
Mainframe jcl exec and dd statements part - 3
 

Similar to Cobol interview-questions

Bca cobol
Bca cobolBca cobol
Bca cobol
blancanus
 
Reengineering and Reuse of Legacy Software
Reengineering and Reuse of Legacy SoftwareReengineering and Reuse of Legacy Software
Reengineering and Reuse of Legacy Software
Teodoro Cipresso
 
Object Oriented Concepts and Principles
Object Oriented Concepts and PrinciplesObject Oriented Concepts and Principles
Object Oriented Concepts and Principles
deonpmeyer
 
【Unite 2017 Tokyo】パフォーマンス向上のためのスクリプトのベストプラクティス(note付き)
【Unite 2017 Tokyo】パフォーマンス向上のためのスクリプトのベストプラクティス(note付き)【Unite 2017 Tokyo】パフォーマンス向上のためのスクリプトのベストプラクティス(note付き)
【Unite 2017 Tokyo】パフォーマンス向上のためのスクリプトのベストプラクティス(note付き)
Unity Technologies Japan K.K.
 
ConSteel_14_User_Manual-351-359.pdf
ConSteel_14_User_Manual-351-359.pdfConSteel_14_User_Manual-351-359.pdf
ConSteel_14_User_Manual-351-359.pdf
JuanUnafVargas
 
Week 2
Week 2Week 2
Week 2
EasyStudy3
 
C, C++ Interview Questions Part - 1
C, C++ Interview Questions Part - 1C, C++ Interview Questions Part - 1
C, C++ Interview Questions Part - 1
ReKruiTIn.com
 
Quick Development and Deployment of Industrial Applications using Excel/VBA, ...
Quick Development and Deployment of Industrial Applications using Excel/VBA, ...Quick Development and Deployment of Industrial Applications using Excel/VBA, ...
Quick Development and Deployment of Industrial Applications using Excel/VBA, ...
Alkis Vazacopoulos
 
Cobol
CobolCobol
interview questions.docx
interview questions.docxinterview questions.docx
interview questions.docx
SeoTechnoscripts
 
Operators
OperatorsOperators
Operators
moniammu
 
C interview questions
C interview questionsC interview questions
C interview questions
Soba Arjun
 
Basics of kotlin ASJ
Basics of kotlin ASJBasics of kotlin ASJ
Basics of kotlin ASJ
DSCBVRITH
 
PLSQLmy Updated (1).pptx
PLSQLmy Updated (1).pptxPLSQLmy Updated (1).pptx
PLSQLmy Updated (1).pptx
vamsiyadav39
 
Inline function
Inline functionInline function
Inline function
Tech_MX
 
Objective C Tricks
Objective C TricksObjective C Tricks
Objective C Tricks
Inova LLC
 
Objective of c in IOS , iOS Live Project Training Ahmedabad, MCA Live Project...
Objective of c in IOS , iOS Live Project Training Ahmedabad, MCA Live Project...Objective of c in IOS , iOS Live Project Training Ahmedabad, MCA Live Project...
Objective of c in IOS , iOS Live Project Training Ahmedabad, MCA Live Project...
NicheTech Com. Solutions Pvt. Ltd.
 
Pseudocode
PseudocodePseudocode
Pseudocode
Harsha Madushanka
 
Design of Real - Time Operating System Using Keil µVision Ide
Design of Real - Time Operating System Using Keil µVision IdeDesign of Real - Time Operating System Using Keil µVision Ide
Design of Real - Time Operating System Using Keil µVision Ide
iosrjce
 
Bcsl 031 solve assignment
Bcsl 031 solve assignmentBcsl 031 solve assignment

Similar to Cobol interview-questions (20)

Bca cobol
Bca cobolBca cobol
Bca cobol
 
Reengineering and Reuse of Legacy Software
Reengineering and Reuse of Legacy SoftwareReengineering and Reuse of Legacy Software
Reengineering and Reuse of Legacy Software
 
Object Oriented Concepts and Principles
Object Oriented Concepts and PrinciplesObject Oriented Concepts and Principles
Object Oriented Concepts and Principles
 
【Unite 2017 Tokyo】パフォーマンス向上のためのスクリプトのベストプラクティス(note付き)
【Unite 2017 Tokyo】パフォーマンス向上のためのスクリプトのベストプラクティス(note付き)【Unite 2017 Tokyo】パフォーマンス向上のためのスクリプトのベストプラクティス(note付き)
【Unite 2017 Tokyo】パフォーマンス向上のためのスクリプトのベストプラクティス(note付き)
 
ConSteel_14_User_Manual-351-359.pdf
ConSteel_14_User_Manual-351-359.pdfConSteel_14_User_Manual-351-359.pdf
ConSteel_14_User_Manual-351-359.pdf
 
Week 2
Week 2Week 2
Week 2
 
C, C++ Interview Questions Part - 1
C, C++ Interview Questions Part - 1C, C++ Interview Questions Part - 1
C, C++ Interview Questions Part - 1
 
Quick Development and Deployment of Industrial Applications using Excel/VBA, ...
Quick Development and Deployment of Industrial Applications using Excel/VBA, ...Quick Development and Deployment of Industrial Applications using Excel/VBA, ...
Quick Development and Deployment of Industrial Applications using Excel/VBA, ...
 
Cobol
CobolCobol
Cobol
 
interview questions.docx
interview questions.docxinterview questions.docx
interview questions.docx
 
Operators
OperatorsOperators
Operators
 
C interview questions
C interview questionsC interview questions
C interview questions
 
Basics of kotlin ASJ
Basics of kotlin ASJBasics of kotlin ASJ
Basics of kotlin ASJ
 
PLSQLmy Updated (1).pptx
PLSQLmy Updated (1).pptxPLSQLmy Updated (1).pptx
PLSQLmy Updated (1).pptx
 
Inline function
Inline functionInline function
Inline function
 
Objective C Tricks
Objective C TricksObjective C Tricks
Objective C Tricks
 
Objective of c in IOS , iOS Live Project Training Ahmedabad, MCA Live Project...
Objective of c in IOS , iOS Live Project Training Ahmedabad, MCA Live Project...Objective of c in IOS , iOS Live Project Training Ahmedabad, MCA Live Project...
Objective of c in IOS , iOS Live Project Training Ahmedabad, MCA Live Project...
 
Pseudocode
PseudocodePseudocode
Pseudocode
 
Design of Real - Time Operating System Using Keil µVision Ide
Design of Real - Time Operating System Using Keil µVision IdeDesign of Real - Time Operating System Using Keil µVision Ide
Design of Real - Time Operating System Using Keil µVision Ide
 
Bcsl 031 solve assignment
Bcsl 031 solve assignmentBcsl 031 solve assignment
Bcsl 031 solve assignment
 

Recently uploaded

Measures in SQL (SIGMOD 2024, Santiago, Chile)
Measures in SQL (SIGMOD 2024, Santiago, Chile)Measures in SQL (SIGMOD 2024, Santiago, Chile)
Measures in SQL (SIGMOD 2024, Santiago, Chile)
Julian Hyde
 
美洲杯赔率投注网【​网址​🎉3977·EE​🎉】
美洲杯赔率投注网【​网址​🎉3977·EE​🎉】美洲杯赔率投注网【​网址​🎉3977·EE​🎉】
美洲杯赔率投注网【​网址​🎉3977·EE​🎉】
widenerjobeyrl638
 
Enhanced Screen Flows UI/UX using SLDS with Tom Kitt
Enhanced Screen Flows UI/UX using SLDS with Tom KittEnhanced Screen Flows UI/UX using SLDS with Tom Kitt
Enhanced Screen Flows UI/UX using SLDS with Tom Kitt
Peter Caitens
 
All you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVMAll you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVM
Alina Yurenko
 
WWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders AustinWWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders Austin
Patrick Weigel
 
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
safelyiotech
 
Orca: Nocode Graphical Editor for Container Orchestration
Orca: Nocode Graphical Editor for Container OrchestrationOrca: Nocode Graphical Editor for Container Orchestration
Orca: Nocode Graphical Editor for Container Orchestration
Pedro J. Molina
 
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
gapen1
 
Manyata Tech Park Bangalore_ Infrastructure, Facilities and More
Manyata Tech Park Bangalore_ Infrastructure, Facilities and MoreManyata Tech Park Bangalore_ Infrastructure, Facilities and More
Manyata Tech Park Bangalore_ Infrastructure, Facilities and More
narinav14
 
DevOps Consulting Company | Hire DevOps Services
DevOps Consulting Company | Hire DevOps ServicesDevOps Consulting Company | Hire DevOps Services
DevOps Consulting Company | Hire DevOps Services
seospiralmantra
 
TMU毕业证书精仿办理
TMU毕业证书精仿办理TMU毕业证书精仿办理
TMU毕业证书精仿办理
aeeva
 
Malibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed RoundMalibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed Round
sjcobrien
 
Liberarsi dai framework con i Web Component.pptx
Liberarsi dai framework con i Web Component.pptxLiberarsi dai framework con i Web Component.pptx
Liberarsi dai framework con i Web Component.pptx
Massimo Artizzu
 
Upturn India Technologies - Web development company in Nashik
Upturn India Technologies - Web development company in NashikUpturn India Technologies - Web development company in Nashik
Upturn India Technologies - Web development company in Nashik
Upturn India Technologies
 
8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf
kalichargn70th171
 
What’s New in Odoo 17 – A Complete Roadmap
What’s New in Odoo 17 – A Complete RoadmapWhat’s New in Odoo 17 – A Complete Roadmap
What’s New in Odoo 17 – A Complete Roadmap
Envertis Software Solutions
 
Assure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyesAssure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
kalichargn70th171
 
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
Bert Jan Schrijver
 
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
campbellclarkson
 

Recently uploaded (20)

Measures in SQL (SIGMOD 2024, Santiago, Chile)
Measures in SQL (SIGMOD 2024, Santiago, Chile)Measures in SQL (SIGMOD 2024, Santiago, Chile)
Measures in SQL (SIGMOD 2024, Santiago, Chile)
 
美洲杯赔率投注网【​网址​🎉3977·EE​🎉】
美洲杯赔率投注网【​网址​🎉3977·EE​🎉】美洲杯赔率投注网【​网址​🎉3977·EE​🎉】
美洲杯赔率投注网【​网址​🎉3977·EE​🎉】
 
Enhanced Screen Flows UI/UX using SLDS with Tom Kitt
Enhanced Screen Flows UI/UX using SLDS with Tom KittEnhanced Screen Flows UI/UX using SLDS with Tom Kitt
Enhanced Screen Flows UI/UX using SLDS with Tom Kitt
 
All you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVMAll you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVM
 
WWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders AustinWWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders Austin
 
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
 
Orca: Nocode Graphical Editor for Container Orchestration
Orca: Nocode Graphical Editor for Container OrchestrationOrca: Nocode Graphical Editor for Container Orchestration
Orca: Nocode Graphical Editor for Container Orchestration
 
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
 
Manyata Tech Park Bangalore_ Infrastructure, Facilities and More
Manyata Tech Park Bangalore_ Infrastructure, Facilities and MoreManyata Tech Park Bangalore_ Infrastructure, Facilities and More
Manyata Tech Park Bangalore_ Infrastructure, Facilities and More
 
DevOps Consulting Company | Hire DevOps Services
DevOps Consulting Company | Hire DevOps ServicesDevOps Consulting Company | Hire DevOps Services
DevOps Consulting Company | Hire DevOps Services
 
TMU毕业证书精仿办理
TMU毕业证书精仿办理TMU毕业证书精仿办理
TMU毕业证书精仿办理
 
Malibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed RoundMalibou Pitch Deck For Its €3M Seed Round
Malibou Pitch Deck For Its €3M Seed Round
 
Liberarsi dai framework con i Web Component.pptx
Liberarsi dai framework con i Web Component.pptxLiberarsi dai framework con i Web Component.pptx
Liberarsi dai framework con i Web Component.pptx
 
Upturn India Technologies - Web development company in Nashik
Upturn India Technologies - Web development company in NashikUpturn India Technologies - Web development company in Nashik
Upturn India Technologies - Web development company in Nashik
 
8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf
 
What’s New in Odoo 17 – A Complete Roadmap
What’s New in Odoo 17 – A Complete RoadmapWhat’s New in Odoo 17 – A Complete Roadmap
What’s New in Odoo 17 – A Complete Roadmap
 
Assure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyesAssure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyes
 
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
A Comprehensive Guide on Implementing Real-World Mobile Testing Strategies fo...
 
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
 
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
 

Cobol interview-questions

  • 1. Real time interview questions on COBOL: For more information refer http://clearmainframeinterview.blogspot.in/search/label/COBOL 1.How table is defined in COBOL and what are the different ways table entries are accessed ? OCCURS is used to define table and table entries are accessed either by using Subscript or index. Read here for complete information on : Working with tables 2. What is COMP -3 field and what is the use of it? COMP-3 is packed decimal representation of data and is used to save space. For complete information on all COMP fields and how the vlaues are displayed in COBOL program READ HERE 3.Can we move Alphanumeric value to numeric variable? Yes, we can do that but might face data exception(S0C7) error in case if the field is used in any calculation. For complete information READ HERE 4.What is INSPECT and the use of it? INSPECT is a defined COBOL verb and is used to find number of times a particular character or string appears or to replace a some portion of any data item. For complete information on how to work with INSPECT,Read here :Working with INSPECT 5.Can we use MAX or MIN with Alphanumeric data? yes, we can use. For complete information,READ HERE 6.How to find when the COBOL program was compiled? We can find by using WHEN-COMPILED function or by searching the LOAD library. There is a defined function in COBOL which can be used to find the compilation date and time of any program. The function used is WHEN-COMPILED and it returns 21 characters.. Sample: Procedure division statement: DISPLAY 'PROGRAM COMPILED ON:' FUNCTION WHEN-COMPILED
  • 2. Output: PROGRAM COMPILED ON:2013122412433857+0000 7.How to pass value from COBOL to JCL? We can pass by using RETURN-CODE. There is a defined word RETURN-CODE in COBOL which can be used to pass data from program to JCL. This is specially useful when some specific return code to be reported in a job. Normally the job returns 0 or 4 or 8 or 12 return code when any abnormality happens.This can be changed by using RETURN-CODE in the program. 8.What is DELIMITED BY SIZE and DELIMITED BY SPACE and when they are used? DELIMITED BY SIZE or DELIMITED BY SPACE will be used along with STRING to control how the data is copied. DELIMITED BY SIZE: Total size of data items will be considered as delimiter. DELIMITED BY SPACE : Space is considered as delimiter. For more information on this, READ HERE 9. Any scenario which can result in Infinite loop by using PERFORM? With PERFORM UNTIL and PERFORM TIMES ,infinite loop can be produced. Read here for Sample code 10. What is the use of TEST BEFORE and TEST AFTER in PERFORM statements? TEST BEFORE and TEST AFTER are used to define when the condition to be checked. For complete information along with samples,READ HERE