SORTL Instruction

HLASM for MVS. PL/I for MVS & Enterprise PL/I for z/OS.
Post Reply
HolgerSchuett
New Member
Posts: 1
Joined: Wed Jun 22, 2016 12:24 pm

SORTL Instruction

Post by HolgerSchuett »

Does anyone have an example of the SORLT instruction? I'm too stupid to understand the definitions in Principles of Operations ....
Kamel Rana
New Member
Posts: 6
Joined: Tue Nov 18, 2014 2:18 pm
India

Re: SORTL Instruction

Post by Kamel Rana »

Is the instruction spelled correctly, I don't find any reference of in pdf of "Principles of Operations"?
User avatar
kapitaali
New Member
Posts: 1
Joined: Sat May 25, 2024 7:04 pm
Finland

Re: SORTL Instruction

Post by kapitaali »

SORTL (opcode 'B938') is a special instruction that calls DFSORT. Per the documentation, it needs at least z version 15 and the facility needs to be enabled. In the Principles the instruction is documented on page 26-96.

Sorting fixed or variable length records requires you to give it a set of parameters. It's a literal block in memory that describes the data structure to be sorted. In the Principles see Figure 26-80 on page 26-101. You will give the memory address of this parameter block as an argument to the SORTL-SFLR/SORTL-SVLR instruction.

If you need to sort something in Assembler, it's probably easier to write a bubble sort algorithm of your own ... ...

link removed ( it is considered bad forum manners to post a link to a competitor forum )


 
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “Assembler & PL/I.”