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...

Suppose I have a file with three fields with data in the
following format
1. empid - S9(4) COMP
2. empname - X(20)
3. empsal - S9(5)V(2) COMP-3
If I view this file, it will not be in a readable format.
How to display the empid and empsal fields in a readable
format without using COBOL program? What kind of SORT card
will have to be coded?

Answer Posted / bharathi

We can use a SORT utility in JCL. In the SYSIN DD statement, we need to use the OUTREC FIELDS in the below format,

//SYSIN DD *
SORT FIELDS = COPY
OUTREC FIELDS =(1,4,BI,TO=ZD,
5,20,
21,4,PD,M4)
/*

NOTE - Please refer the below link (Chapter 5) for reformatting records using SORT.
http://publibz.boulder.ibm.com/epubs/pdf/ice1cg30.pdf

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?

2342


Can I send output of job to my remote device careerride123?

1081


Name a few IBM utility programs, and explain its function.

4898


What is concatenating?

1031


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

1784


What is multithreading in jcl?

1397


what is use of space parameter in dd statement?

1210


Is there any command to check wether the ps file is in sorted order?

2828


Which dd parameters are required?

1111


Explain the job statement in jcl?

1110


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

1111


What are the parameter we cannot use in procedure? How many instream we can write in single jcl?

1000


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

1168


hello friends ,i have exam in Hsbc,pls any on send me placement papers and technical questions on mainframes,thank u

2097


What is the function of the dd avgrec keyword in sms datasets?

1285