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

What do we mean by 'Virtual storage' for a dataset and for a JOBSTEP ? What is the significance of the following statement for a programmer 'Virtual storage results in program addresses being independent of the addresses that actually exist in a computer' ?

2020


Is it possible to left uncode disp? If yes, how?

1180


I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?

1836


Explain the jcl exec statement?

1141


what is DD statement is used in JCL?

1191


Explain the function of dd name parameter with a 2 part structure; audit.report?

1452


How can unused space allocation be returned to the system when a dataset is closed?

1482


what is the use of IEBGENER utility?

1165


Name the statement which can be used to send data to another mvs jes3 node?

1173


Is their any limit for data sets?

1183


What happens if both JOBLIB & STEPLIB is specified ?

1138


Explain the purpose of the dd keylen parameter?

1158


Explain dfsort utility?

1336


I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?

1228


Explain the function of //jcllib statement?

1204