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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the parameters that are used in creating a gdg?

1281


how you can access an uncataloged dataset in a JCL?

1196


if the submitter of a job wants to inform another user about the job completion, how can it be done?

1305


What statement can be used to send data to another mvs jes3 node?

1691


Explain dfsort utility?

1407


How jcl is used for testing batch programs?

1355


What is the syntax of JCL statement?

1292


Differentiate between addressing mode and run mode.

1137


Explain how can a jobs execution priority be modified?

1262


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

1325


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

1192


how can the same proc be re-used and called by many jobs?

1562


What is the maximum length of a single line of jcl?

1405


What is the purpose of dd * statement in jcl?

1335


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

1264