what is sort? whis is internal & external sort ?when do u go
for inter sort & external sort? tell about some sort utilites?

Answer Posted / vikash chawla

Sort is a utility using which we can sort a VSAM/ NON-VSAM
file in a perticuler order i.e Assending or Discendin.

Internal Sort - It is a process to sort the file using JCL
External Sort - It is a process to sort the file using
cobol program .

Sort Utilites

sort INREC " select the fields then sort then"
sort OUTREC " sort the fields then select the records out
of them

Include " include a perticuler record
omit " except the perticuler record"

Sum fields = NONE to elemintae duplicate records

sort fields = (start postion , number of characters , type,
order )

Is This Answer Correct ?    6 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to move the records from file to array table. give with code example

2202


Why did you choose to work with ibm mainframe cobol programming?

617


i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

980


What are the pertinent COBOL commands?

2613


What are the different rules to perform a Search?

608






Whats the difference between search & search ALL?

5225


What is the Purpose of Pointer in the string?

630


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1764


What is the compute verb? How is it used?

644


Explain how to differentiate call by context by comparing it to other calls?

670


Name some of the examples of COBOl 11?

2666


What is rmode(any) ?

674


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

637


How to know whether the module is dynamical or statistical?

640


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 ......

10517