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
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 |
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 |
Answer / mailid
Sort fields syntax is
//SYSIN DD*
SORT FIELDS=(START POSITION,LENGTH,A/D,DATATYPE)
/*
Is This Answer Correct ? | 0 Yes | 1 No |
How to Pass table from a cobol program to another cobol program and how to use that table in called program
s9(18) comp-3:: What is the size of memory it takes internally?
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)?
What is XDC ?
When is a scope terminator mandatory?
how can we find total no of records in a file ....is there any utility......?
What do you feel makes a good program?
what is redefines? where it can be effectively use for the purpose of memory utilization? give an example?
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?
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 ?
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.
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.