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 |
Why did you choose to work with ibm mainframe cobol programming?
can you declare redefine in level 01?
I have put two write operations in a single para for two different conditions.Will that lead to an abend or run successfully and write two records?
Consider the following code: 77 A PIC 99V99 VALUE 55.35 77 B PIC 99V999 VALUE 32.754 ADD B TO A ON SIZE ERROR DISPLAY "ERROR!!!" What will be the result ? (a) A=88.10, B=32.754 (b) A=87.00 B=32.754 (c) A=87.10 B=32.754 (d) ERROR!!! will be DISPLAYed on the screen.
What was removed from COBOL in the COBOL II implementation?
study the following 01 A PIC 99V0 VALUE 5 01 B PIC 9V9 VALUE 6 01 C PIC 99V9 VALUE 2.5 01 D PIC 99 VALUE 3 COMPUTE A ROUNDED B C = A+B*C/D ON SIZE ERROR PERFORM PRINT-ERROR the comments of A.B.C after execution of the above statement are a.A=10 B=0 C=10 b.A=10 B=9.9 C=9.9 c.A=10 B=0 C=9.9 d.A=10 B=6 C=10
i have the job which has written updated 100 records into the table and for 101th record it got abended and i want to start the job again and should wirte from 101th record not from 1st record..how to do it..?
how can u pass the values into db2 values from cobol ?
how to transfer the file from pc to mainframe??
In a file if a column account number conatain value 0001234.. how can we move the value to another variable without zero. value may contain any type such as 00123405. we need the value 1234 or 12305. how can we do that in cobol. Please help.
What is the difference between comp and comp-3 usage? Explain other COBOL usage?s.
I am sending values a and b with pic x(10) and pic x(10) by using call statement. In linkage section, I am receiving values with pic x(10) and pic x(11). Will my program fail? will it be compile error or run time abend?