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 |
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
how will u code parm parameter and where pls ?
What is the difference between CONTINUE & NEXT SENTENCE ?
1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?
is it possible to pass an SQL query inside a jcl which is inside a cobol program?
how you read control card into array?
What is JOBLIB and STEPLIB in JCL? what is the purpose of using it?
How do u find the programs calling the given module, without having doing 3.13 on loadlib/source library?
What do you do to resolve SOC-7 error?
Can you please let me know the centre name of INS certification in Kolkata.
how many subpgms we can use in a main pgm ? how do u link sub pgm to main pgm ? how can i use the parameters declared in main pgm to sub pgm ?
What is IMPACT analysis?