Explain the difference between an internal and an external
sort, the pros and cons, internal sort syntax etc.

Answers were Sorted based on User's Feedback



Explain the difference between an internal and an external sort, the pros and cons, internal sort ..

Answer / vampire

Internal sort is manual sort use in cobol.
external sort is in jcl using inbuild program name called sort

ex

//step1 exec pgm=sort

synatx for internal sort

sort/merge sortfile on ascending/descending
key1/key2/key3,using file1/file2/input procedure is
section-1 giving file3/file4/output procedure is section-2


nobody can write syntax more than this.it is combination.

Is This Answer Correct ?    5 Yes 0 No

Explain the difference between an internal and an external sort, the pros and cons, internal sort ..

Answer / ajmal

I would like to add something to that.

External Sort's syntax

//SYSIN DD *
SORT FIELDS = (length of key, starting position of key,
CH, A/D)
/*
A - Ascending
D - Descending

Correct me if i'm wrong

Is This Answer Correct ?    3 Yes 4 No

Explain the difference between an internal and an external sort, the pros and cons, internal sort ..

Answer / mailid

Sort fields syntax is

//SYSIN DD*
SORT FIELDS=(START POSITION,LENGTH,A/D,DATATYPE)
/*

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More COBOL Interview Questions

How to Pass table from a cobol program to another cobol program and how to use that table in called program

8 Answers   Patni, SunGard,


s9(18) comp-3:: What is the size of memory it takes internally?

4 Answers  


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

0 Answers  


What is XDC ?

3 Answers   Cap Gemini, IBM,


When is a scope terminator mandatory?

3 Answers  






how can we find total no of records in a file ....is there any utility......?

3 Answers   IBM,


What do you feel makes a good program?

2 Answers  


what is redefines? where it can be effectively use for the purpose of memory utilization? give an example?

4 Answers   IBM,


Why do we use COMP-3 variables for computation, when we know that they are non displayable fields and require additional MOVE to numeric field before we populate it in output Reports?

1 Answers   Accenture,


I hav vari declaration like..... 77 a pic s9(9).99. 77 b pic s9(9).99 comp. 77 c pic s9(9).99 comp-3. if i use MOVE 123456789.99 to a,b,c what happen every one working fine ?

1 Answers   Mphasis,


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

2 Answers   IBM, Steria,


I have two sequential files, FILE-1 and FILE-2. FILE-1 contains 2 columns(A,B) and FILE-2 contains 3 columns (C,D,E).I want an output file, FILE-3 which has all five columns with duplicates eliminated from column A.

3 Answers  


Categories