COBOL

 View Only

 Avoiding DFSORT on z/OS

Petrea Mitchell's profile image
Petrea Mitchell posted Thu August 21, 2025 07:13 PM

Hi, I'm back with another 64-bit z/OS question.

I get the CEE3259E error when running a program that contains a SORT statement. The error tells me "Invoking DFSORT is not supported when the POSIX(ON) runtime option is in effect."

How do I tell the compiler I don't want to use DFSORT?

 I've found documentation suggesting that I could use NOFASTSRT, but also that NOFASTSRT is already the default. I tried adding it to the compile anyway and it didn't make any difference.

This same program generates no errors in 32-bit form, running with POSIX(ON). Is DFSORT only a problem with POSIX(ON) in AMODE(64), or does the 32-bit compile not convert SORT to use DFSORT?

Bernie Rataj's profile image
Bernie Rataj

Hi Petrea, COBOL and other high level languages use the sort interface provided by the Language Environment runtime, and it (or DFSORT itelf) is not compatible with POSIX(ON) or for that matter with CICS. It's unclear to me why it would work in an LP(32) COBOL program with POSIX(ON). 

Bernie

CEE3SRT — Call DFSORT (compiler writer's interface)