Is there any command to check wether the ps file is in
sorted order?
Answer / Nirpendra Rai
There isn't a built-in JCL command to check if a PS (Job Control Language) file is in sorted order. However, you can use sort utility or another programming language to sort the file before submitting it.
| Is This Answer Correct ? | 0 Yes | 0 No |
How jcl is used for testing batch programs?
1) SORT FIELDS=(20,4,CH,D,10,3,CH,D) OUTREC FIELDS=(7:20,4,C' FUTURE ',20,2,10,3,1Z,1,9,13,7, 24,57,TRAN=LTOU,6X'FF') This example illustrates how a fixed-length input data set can be sorted and reformatted for output. The SORTIN LRECL is 80 bytes. The reformatted output records are fixed length with a record size of 103 bytes. SOLRF (the IBM-supplied default) is in effect, so unless the SORTOUT LRECL is specified or available, it will automatically be set to the reformatted record length of 103. in the above example i have some doubts that a) sort fields=(20,4,CH,D,10,3,CH,D) -what exactly it does and this fields related to output record fields or input record fields b)outrec used to refprmat the records after sorting that means could please reply me as soon as possible Thanks. Venkat
explain concatinating datasets?
A maximum of 100 chars can be passed to Cobol through Parm in JCL, If we want to pass more than 100 Chars how we can do it ?
can we have more than one job in a single job card that is we are specifying only one 'job' statement in the jcl.
describe the job statement, its meaning,syntax and significant keywords?
What is the difference between run mode and addressing mode?
i need some shortcuts and tso commands can any on ehelp me in these ?
What is default if we don't specify RD parameter at all ?
I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?
What is JOBLIB ?
In a single step if input file is present then only need to copy into output file or else need to through a RC is it possible. Note : i want it in a single step