I have 100 records in a file.. i want to sort the records from
5 to 5o... give the syntax...
Answers were Sorted based on User's Feedback
Answer / seema dawlekar
This can be done in two steps
in the step1 copy the the selective records by giving the
syntax as
skiprec = 4 -
stopaft = 50
this will copy only the selected records, now in the step2
we can perform sort
syntax is
sort fields=(starting position,length,type,A/D)
A--ascending and D--descending order
correct me if I am wrong
| Is This Answer Correct ? | 17 Yes | 0 No |
Answer / anand
Follow the workaround below,
1.split the file into 3 files using IDCAMS
file1 1-4
file2 5-50
file3 51-100
2.Sort the mid file file2.
3.Finally merge all the 3 files using concatenation.
| Is This Answer Correct ? | 3 Yes | 1 No |
input:- 12233344445555566666... output:- 1=1,2=4,3=9... Here firstno i.e 1 should be displayed and after that the alikeno.s should be added n displayed.i.e 2+2=4 like tat it goeson.
what is Pic 9v99 Indicates?
What are the various section in data division and briefly explain them.
How can you display the SPOOL information ?
example for sub strings ? and refernce modifications whit output pls
0 Answers College School Exams Tests, IBM,
Explain about Redefines cluse?
How does IDMS communicate with CICS?
What is the meaning of 'Eject' verb in cobol?
can i use multiple when statements in search & search all ? justify ur answer?
How to read records in reverse order in flat file? I know we can do it by reading all records into an array.... Then read records in reverse order by using subscript or index but can any body give me the exact code.
How to define a array dynamically.....
What are options have been removed in COBOL 11?