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 / albert

We have to specify the sort card like below.

Sort fields=(1,5,PD,A) -> PD is packed decimal

Is This Answer Correct ?    12 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the jcl exec statement?

1196


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

1327


Explain the function of //jcllib statement?

1271


if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?

2349


What are the difference between jcl and jes?

1657


How to alter the parameters for the existing gdg?

1252


Differentiate between the joblib and the steplib statements?

1513


what is the purpose of coding notify parameter in job statement?

1199


Is it possible to define dd statements as you want?

1158


Explain how can a stopped job be started again?

1176


When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?

1516


what is the JCL statement consists of?

1252


what sort card you will use to copy the data from one dataset to another dataset?

1296


Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?

2808


What are some jcl statements that are not allowed in procedures?

1285