I am not in the office at the moment but you can do what you wish if you are
using DFSORT with the appropriate PTF's applied.  Do a search on Frank
Yeager and download his write-ups on some of the new features of sort.

Here is something that should get you started.
http://www-304.ibm.com/jct01004c/systems/support/storage/software/sort/mvs/p
dug/pdf/sortpdug.pdf


HTH

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf
Of Rashmi Nijaguni Mogali
Sent: Monday, March 19, 2007 8:51 AM
To: [email protected]
Subject: Help for SORT requirement

Hi all,




I have the following requirement:




Input file:

---+----1----+----2----+----3----+----4----+----5----+----6----+----7---
-+----8

400000000910024892          123                 234

400000000100324890          456                 567

400000000910024891          789                 890





Output file:




---+----1----+----2----+----3----+----4----+----5----+----6----+----7---
-+----8

400000000910024892     123                 234

400000000100324890     456                 567

400000000910024891     789                 890





Whenever there the value in column 1 of input file is 4 I need the data
at position 30 shifted to 25 and data at position 50 shifted to 45. The
length of this data is fixed i.e. 3 bytes.

The length of the input file is 250 bytes.

How can I do this using SORT?




Regards,

Rashmi

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to