Skip to main content

How to sort with mfsort command in EBCDIC order

  • February 15, 2013
  • 0 replies
  • 0 views

Problem:

The file data was translated from EBCDIC to ASCII. From the application it is necessary that this file is sorted in EBCDIC order.

Resolution:

To sort in EBCDIC order , it is necessary to use the SORT-EBCDIC instruction. This instruction must be before all use and give instructions.

The example is :

sort fields ( 1, 4 , ch , a )

SORT-EBCDIC

give FICHIER2 record(f:40) org ls

use F1 record(f:40)

Old KB# 2249

#netexpress
#COBOL
#ServerExpress
#RMCOBOL

0 replies

Be the first to reply!