Hi all,
I have been questioned in an interview as whats the diff between internal sort and external sort ??
Answer :
Internal sort is handled by a cobol program using i/p file,work file and o/p file.
Internal sort is when you do any processing you need to recompile the cobol program
External sort is performed through jcl where you provide SORTIN and SORTOUT datasets and its easier to perform this sort as any changes, will require only submitting the jcl.
Kindly clarify on the same.
Difference between internal sort and external sort
Moderators: Frank Yaeger, DikDude, Moderator Group
Not typically. Well-implemented internal sorts do NOT specify using/giving, but rather input proccedure/ output procedure.Internal sort is handled by a cobol program using i/p file,work file and o/p file.
Most of the time this is not true. Once the code is in Production only a requirements change should cause the code to be re-compiled.Internal sort is when you do any processing you need to recompile the cobol program
If the sort must be changed, the code on either side of the sort may also have to be changed. . .External sort is performed through jcl where you provide SORTIN and SORTOUT datasets and its easier to perform this sort as any changes, will require only submitting the jcl.
IMHO, the primary difference between an internal and an external sort is that in one case some program uses the SORT statement and in the other the sort product for the system is directly invoked via JCL.
There is no generic "best to use". What is "best" depends on the requirement.
Have a good one
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