Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / y@$w@nth

PIC S9(10)COMP-3

(n+1)/2 i.e (10+1)/2 11/2 =6(it fill follow round approach
if the result is in decimals)

so comp-3 allocates 6 bytes and the data inside comp-3 field
is stored in packed decimal format then we have to give

sort fields=(1,6,pd,a)
(or)
sort fields=(1,6,a) format=pd

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we call instream to catalog and catalog to instream?

1086


What are the utility programs in jcl?

1099


When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?

1180


what is the use of IEBGENER utility?

1115


how you will the direct the data to spool using sysout option?

2357


what is use of dcb parameter in dd statement?

1241


Give the syntax of job specifying jcl statement.

1088


Are there any set of rules for the names of the steps used in a job?

1054


what is the use of JCL?

1110


How to execute 2nd and 4th steps among 5 steps in jcl proc?

1216


what is the resolution for sb37 error

8953


What do you understand by the term job time – out and how can you overcome that?

969


how do you access an uncataloged dataset in a jcl?

1635


Is their any limit for data sets?

1123


Explain the function of the steplib dd statement?

1074