Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How do you sort in a COBOL program? Give sort file
definition, sort statement syntax and meaning.

Answers were Sorted based on User's Feedback



How do you sort in a COBOL program? Give sort file definition, sort statement syntax and meaning...

Answer / kavya

As he told above we need to specify the sort-file in sd
entry.
But syntax is as follows,

SORT SORT-FILE ON ASCENDING/DESCENDING KEY
USING INPUT-FILE
GIVING OUTPUT-FILE.

We have to specifies the key to sort.
INPUT-FILE is the file to sorted.The sorted OUTPUT is sent
to the OUTPUT-FILE.

Is This Answer Correct ?    34 Yes 3 No

How do you sort in a COBOL program? Give sort file definition, sort statement syntax and meaning...

Answer / guest

second ans is correct

Is This Answer Correct ?    15 Yes 3 No

How do you sort in a COBOL program? Give sort file definition, sort statement syntax and meaning...

Answer / ram

THE ABOVE ONE IS CORRECT

Is This Answer Correct ?    7 Yes 1 No

How do you sort in a COBOL program? Give sort file definition, sort statement syntax and meaning...

Answer / mftech

Need to define the SORT-FILE in SD in file section.

Sort SORT-FILE
Using Input-File
Giving Output-File

Can also use inout procedure and output ptocedure inplace
of input fiile and output files.

Is This Answer Correct ?    14 Yes 10 No

How do you sort in a COBOL program? Give sort file definition, sort statement syntax and meaning...

Answer / subhashini

we can sort a cobol program define SD SORT-FILE in
FILE SECTION
THE SYNTAX IS
SORT SORT-FILE IN ASCENDING/DESCENDING KEY USING
INPUT-FILE GIVING OUTPUT-FILE.

Is This Answer Correct ?    8 Yes 5 No

How do you sort in a COBOL program? Give sort file definition, sort statement syntax and meaning...

Answer / nagaraju

SORT SORT-FILE
ON ASCENDING/DESCENDING KEY key-value
USING input-file
GIVING output-file.

we can use input procedure and output procedure as fallow
SORT SORT-FILE
ON ASCENDING/DESCENDING KEY key-value
INPUT PROCEDURE IS --------
OUTPUT PROCEDURE IS -------.

Is This Answer Correct ?    4 Yes 2 No

How do you sort in a COBOL program? Give sort file definition, sort statement syntax and meaning...

Answer / bhaskar reddy

This is the exam for the sort command:

SORT SORTFILE ON ASCENDING/DESCENDING KEY USING FILE1,FILE2
GIVING FILE3.

Is This Answer Correct ?    2 Yes 3 No

Post New Answer

More COBOL Interview Questions

hi, can you ppl tell me, how to check whether the rewrite we gave for the ksds file is successful or not in the program.? i gave rewrite, the rewrite code is executing and maxcc=0 but updation doenot happen in the file?

1 Answers   CGI,


What R 2 of the common forms of the EVALUATE STATEMENT ?

1 Answers   Cap Gemini,


How do you reference the following file formats from cobol programs?

0 Answers  


I try to use some column names in my cobol progorm but these column not in db2 table ..when do i get error ..while bind time or runtime?

2 Answers  


what do you mean by copybook? and what is the difference between the copybook which we are using in working storage and procedure division.

3 Answers   HCL, TCS,


what happens if we dont close cursor in db2-cobol pgm?

6 Answers  


how to transfer the file from pc to mainframe??

5 Answers   TCS,


can we print comp 3 stmts how ?

3 Answers   Accenture, TCS,


Difference between next and continue clause

4 Answers   Kanbay,


what are the limitations of Inline Perform?

3 Answers   Zensar,


BY seeing a program how can we say that it is static call or dynamic call

5 Answers   CGI,


What is the utilization of copybook in cobol?

0 Answers  


Categories