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?



with out sorting how to copy records from one file to another file using jcl.Mean I have one input..

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

More JCL Interview Questions

can we maintain 2 generations with different Lengths in Same GDG ?

3 Answers   RBS,


At what stage, operator can change the class and priority of a submitted job?

2 Answers  


01 A. 10 B pic X(10). move spaces to A. move spaces to B. output in A & B

2 Answers   Perot Systems,


what are the types of abends that occur on job failure? And explain the possible causes of these

0 Answers  


What does the statements: typrun=scan and typrun=hold do in a JCL statement

2 Answers  


What will happen if two JOB statements are mentioned in an JCL continuously.

2 Answers   IBM,


What are SD37, SB37, SE37 abends?

4 Answers  


how to create gdg with out using idcams utility

8 Answers   DSRC,


Whats error code s222?

7 Answers   Patni,


what is XSUM in some fields= none, xsum ??

7 Answers   Xansa,


what is full form of AIX

3 Answers   Accenture,


How to test thru JCL if any file(PS or VSAM) is empty or not. I do not want to use any COBOL prog or Ezytrieve and want to do using utility.

10 Answers   Lehman Brothers,


Categories