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)???

Answer Posted / jegadeesan ramu

sort fields=(1,6,a),format=bi

Is This Answer Correct ?    6 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is condition checking possible in jcl? If yes, how?

735


What is use of restart and how to use it?

764


What is the use of disp parameter?

649


Immediate Job opening for mainframe professionals in Keane Bangalore. Please find the below details: Organization: Keane India Location: Bangalore Skill: COBOL, JCL,VSAM,DB2,CICS,IMS,REXX,CLIST Exp: 1 to 4 years only Employment Type: Permenant Employee Note: If you have attended keane interview in past 6 months please ignore this job opening. Please respond to email id keanemfjob@gmail.com OR keanemfjob@yahoo.in with your latest resume and following details, We will contact you within 24 hours: Total IT Exp: Exp in Mainframe: Current CTC: Expected CTC: Notice Period:

3528


in ways data can be passed to a COBOL program from JCL?

662






What parameter of the job statement is used to limit the cpu time consumed by the job?

834


How do you create a temporary dataset?

660


How does jcl act on code(if you take a cobol program)?

705


which parameter is use to declare the name of dataset in dd statement?

728


What is the purpose of the dd keylen parameter?

718


What is the difference between the positional and keyword parameters? Give examples.

704


define cond parameter in jcl?

771


Explain the function of job statement in jcl?

644


How to run cobol program using jcl?

648


Is automatic restart possible in jcl?

733