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

with out sorting how to copy records from one file to
another file using jcl.Mean I have one input file in which
the record are like 1,6,5,4,2,3(for example) and i want to
copy to output file from top to bottom(without sorting) like
3,2,4,5,6,1.so I want the JCL for this.cna any one can
answers?

Answer Posted / ramesh

Please find below sort card for same
//SYSIN DD *
INREC FIELDS=(1:1,10,11:SEQNUM,8,ZD)
SORT FIELDS=(11,8,ZD,D)
OUTREC FIELDS=(1:1,10)
/*

Here we have data from 1 to 10 columns , i am generating
seqence number from column 11 in descending order , which
is not part of record layout .
After generating Seqence number digits will get reversed .

Is This Answer Correct ?    19 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the function of //jcllib statement?

1276


List the different components of jcl statement?

1146


How do you submit a job for execution?

1163


In sms datasets, what is the function of the dd mgmtclas keyword?

1430


What does a disposition of (MOD,DELETE,DELETE) mean ?

1191


How dummy is used in jcl?

1202


what is use of dcb parameter in dd statement?

1345


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

1520


is there any way to execute more than one proc in the same exec statement at the same time..?

2676


I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?

1267


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

1688


I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?

1470


a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?

1132


How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY

1437


How do you access an uncatalogued dataset in a jcl?

1270