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


i have a jcl containing header body and trailer .in header i
have viswa
body 2
6
1
9
7
trailer reddy .now i need to sort only body in either
asecending or descending order how can i do it



i have a jcl containing header body and trailer .in header i have viswa body 2 6 1 ..

Answer / vadivel r

ICETOOL will help you,

//S1 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN DD *
viswa
2
6
1
9
7
reddy
/*
//OUT DD DSN=... output file
//TOOLIN DD *
* Sort detail records between the header and trailer
DATASORT FROM(IN) TO(OUT) HEADER TRAILER USING(CTL1)
//CTL1CNTL DD *
* Sort the detail records ascending by positions 14-23.
SORT FIELDS=(1,1,CH,A)
/*

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More JCL Interview Questions

How to pass the temp dataset form one JOB step to another?

6 Answers   IBM,


how to compress the data set

8 Answers   Keane India Ltd,


what is static and dynamic call with examples?

4 Answers   IBM,


How can the submitting users racf authority be overridden in a job stream?

0 Answers  


how to eliminate the duplicates in sorting

4 Answers   Fidelity,


What are isolation levels? Where do we need to specify them in compiling JCL?

3 Answers  


What is COND=ONLY ?

2 Answers  


Explain about CBL/PROCESS statement syntax

1 Answers  


How can return codes be tested before execution of a job step?

0 Answers  


in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?

0 Answers   IBM,


Describe the DD statement, its meaning, syntax and keywords?

2 Answers  


What is one line to pass PARM from JCL to COBOL?

0 Answers  


Categories