Is there any command to check wether the ps file is in
sorted order?
Answers were Sorted based on User's Feedback
Answer / muttaiah
I know like we can make a file sorted in either ascending
or desc based on a key. But i'm not sure how to check this
using a command.
Probably i guess there is no such command.
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / swapraneel
we can do one thing here just edit the file and give sort on
command line if the file is already sorted it says records
are in sorted order if not it will sort.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / himap
I don't know of any command that can tell you if the file is in sorted order or not but you can write a REXX program for the same and use it in the command line.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is SORT ? How do we eliminate duplicate records ? How do I select some records using SORT ?
Why we us SYSTSIN DD with IKJEFT01 (TSO Utility) to execute a COBOL DB2 program? Why can't we use SYSIN DD?
How to get the last but one duplicate record of the file using Sort?
what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?
What is STEPLIB, JOBLIB? What is it used for?
How do you create a temporary dataset?
How do you access a file that had a disposition of KEEP?
For what purpose steplib and joblib are used ?
What is the function of job statement in jcl?
If a field is declared as a comp-3 field and if we want to sort a dataset based on this field, then how will the sort card be??? e.g- if we want to sort by a field which is defined as a PIC X(5) then we will mention - sort fields=(1,5,ch,a). Likewise if a field is defined as PIC S9(10)COMP-3 then in this case how will the sort field be defined (because in this case a sign is also involved)???
What are hierarchy levels in jcl?
What is COND=ONLY ?