# Is anybody running into IBM programmers who do not like . .

**URL:** <https://techcommunity.softwareag.com/t/is-anybody-running-into-ibm-programmers-who-do-not-like/80421>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-News-and-General-Topics\
**Created:** [March 5, 2009, 8:04pm UTC](https://techcommunity.softwareag.com/t/is-anybody-running-into-ibm-programmers-who-do-not-like/80421 "2009-03-05T20:04:45Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_quot\_Pete\_quot\_M](https://avatars.discourse-cdn.com/v4/letter/_/919ad9/32.png) [@\_quot\_Pete\_quot\_M](https://techcommunity.softwareag.com/u/_quot_Pete_quot_M)\
**Post date:** [March 5, 2009, 8:04pm UTC](https://techcommunity.softwareag.com/t/is-anybody-running-into-ibm-programmers-who-do-not-like/80421/1 "2009-03-05T20:04:45Z")

</div>

natural programs with an internal SORT? The IBM’ers are so used to SORTing a file in a JCL deck before inputting it into a program.

Doing a Natural program internal SORT is not that bad from what I can understand. Just a couple of extra lines of code within the program, change the END-READ to END-SORT, and you get the sorted results that you wanted. You can then remove the IBM SORT code in the JCL deck.

What about this?

---

<div class="post-metadata">

**Author:** ![Steve\_Robinson](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/steve_robinson/32/107_2.png) [@Steve\_Robinson](https://techcommunity.softwareag.com/u/Steve_Robinson)\
**Post date:** [March 6, 2009, 3:13am UTC](https://techcommunity.softwareag.com/t/is-anybody-running-into-ibm-programmers-who-do-not-like/80421/2 "2009-03-06T03:13:33Z")

</div>

Why would someone not like one of the nice features of a programming language? Perhaps no one ever explained to them how Natural’s SORT works.

steve

---

<div class="post-metadata">

**Author:** ![Ralph\_Zbrog](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/ralph_zbrog/32/78_2.png) [@Ralph\_Zbrog](https://techcommunity.softwareag.com/u/Ralph_Zbrog)\
**Post date:** [March 6, 2009, 5:24am UTC](https://techcommunity.softwareag.com/t/is-anybody-running-into-ibm-programmers-who-do-not-like/80421/3 "2009-03-06T05:24:52Z")

</div>

COBOL programmers, both IBM and non-IBM, have used embedded sorts for many years, so Natural supports them, too. They are not unique to Natural.

Both external sort (separate SORT utility step) and internal sort (SORT verb) have their pros and cons - too many to list in this thread.

My recommendation:

- external sorts for all batch processes

- internal sorts to process internal arrays within on-line applications

---

<div class="post-metadata">

**Author:** ![Douglas\_Kelly](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/douglas_kelly/32/102_2.png) [@Douglas\_Kelly](https://techcommunity.softwareag.com/u/Douglas_Kelly)\
**Post date:** [March 7, 2009, 4:02am UTC](https://techcommunity.softwareag.com/t/is-anybody-running-into-ibm-programmers-who-do-not-like/80421/4 "2009-03-07T04:02:10Z")

</div>

Personally, I replace external SORT steps with Natural SORTs whenever I can:

- it simplifies the JCL JOB stream immensely. A typical scenario:
  - Natural extract step - write to work file
  - external sort
  - Natural report step - reads output of sort  
all of which can be done from one Natural program and thus one JCL step. If the sort can be done incore, all of the I/O between steps is eliminated, improving performance. If not, it’s performance is still at least as good as an external step

- it is easier to understand and thus maintain:  
SORT …BY PERSONNEL-ID DESC  
is much easier to understand than  
SORT 1,10,CH,D  
…and that’s just for one field.

In batch, Natural can (and should) invoke the same sort routine as is used by the external sort step - check out the SORT settings. Performance for the Natural SORT will then equal (or even slightly better) an external sort step since it is using the same sorting function but with a bit less I/O involved.

When processing really large external files, I will use the external sort step for selecting small subsets or using esoteric features such as SUM and TALLY - again, only on really big files (and the definition of “really big files” gets bigger all the time!), and only if it is going to be used a lot. Otherwise, a Natural program is easier to read and maintain.

---

<div class="post-metadata">

**Author:** ![\_quot\_Pete\_quot\_M](https://avatars.discourse-cdn.com/v4/letter/_/919ad9/32.png) [@\_quot\_Pete\_quot\_M](https://techcommunity.softwareag.com/u/_quot_Pete_quot_M)\
**Post date:** [March 11, 2009, 10:43pm UTC](https://techcommunity.softwareag.com/t/is-anybody-running-into-ibm-programmers-who-do-not-like/80421/5 "2009-03-11T22:43:03Z")

</div>

Old IBM analysts are RESISTANT to change, and this little subject is a typical example.

I have tried to sell them on a Natural SORT, but they pull out the old “this is not in line with shop standards. Do it our way, or get on the highway!”

> [@Douglas Kelly](#):
>
> Personally, I replace external SORT steps with Natural SORTs whenever I can:
> 
> - it simplifies the JCL JOB stream immensely. A typical scenario:
> - Natural extract step - write to work file
> - external sort
> - Natural report step - reads output of sort  
> all of which can be done from one Natural program and thus one JCL step. If the sort can be done incore, all of the I/O between steps is eliminated, improving performance. If not, it’s performance is still at least as good as an external step
> 
> - it is easier to understand and thus maintain:  
> SORT …BY PERSONNEL-ID DESC  
> is much easier to understand than  
> SORT 1,10,CH,D  
> …and that’s just for one field.
> 
> In batch, Natural can (and should) invoke the same sort routine as is used by the external sort step - check out the SORT settings. Performance for the Natural SORT will then equal (or even slightly better) an external sort step since it is using the same sorting function but with a bit less I/O involved.
> 
> When processing really large external files, I will use the external sort step for selecting small subsets or using esoteric features such as SUM and TALLY - again, only on really big files (and the definition of “really big files” gets bigger all the time!), and only if it is going to be used a lot. Otherwise, a Natural program is easier to read and maintain.

---

<div class="post-metadata">

**Author:** ![Steve\_Robinson](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/steve_robinson/32/107_2.png) [@Steve\_Robinson](https://techcommunity.softwareag.com/u/Steve_Robinson)\
**Post date:** [March 12, 2009, 12:05am UTC](https://techcommunity.softwareag.com/t/is-anybody-running-into-ibm-programmers-who-do-not-like/80421/6 "2009-03-12T00:05:23Z")

</div>

The first question asked in this thread was:

Is anybody running into IBM programmers who do not like natural programs with an internal SORT?

The reason no one responded yes is clearly that all such “IBM programmers” are at your shop. javascript:emoticon(‘:D’)

steve

---

<div class="post-metadata">

**Author:** ![Peter\_Reale](https://avatars.discourse-cdn.com/v4/letter/p/c2a13f/32.png) [@Peter\_Reale](https://techcommunity.softwareag.com/u/Peter_Reale)\
**Post date:** [September 22, 2009, 6:49pm UTC](https://techcommunity.softwareag.com/t/is-anybody-running-into-ibm-programmers-who-do-not-like/80421/7 "2009-09-22T18:49:17Z")

</div>

LOL! I am an ex-IBMer, and I would agree with “Pete”, that we are resistant to change. Coming from a Lotus/Domino development group (with no experience in PL/1 and JCL), I find learning Natural programming to be challenging, but not impossible.

I also agree with a comment in another post, that there isn’t as many online tutorials, examples or forums for Natural, as there are with other languages (JavaScript, Java, [ASP.NET](http://ASP.NET), etc…) As an IBMer, where funding for education was tight, I have relied mostly on the internet and book stores for my education. I have the blue, “Natural Developers Handbook” from WH&O, but that is a reference, not a developer’s guide. I will continue to read through the online documentation at Software AG and employ knowledge sharing techniques (on-line and co-workers).

> [@Steve Robinson](#):
>
> Is anybody running into IBM programmers who do not like natural programs with an internal SORT?

---

<div class="post-metadata">

**Author:** ![Matthias1](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Matthias1](https://techcommunity.softwareag.com/u/Matthias1)\
**Post date:** [September 22, 2009, 7:27pm UTC](https://techcommunity.softwareag.com/t/is-anybody-running-into-ibm-programmers-who-do-not-like/80421/8 "2009-09-22T19:27:08Z")

</div>

> [@Steve Robinson](#):
>
> Why would someone not like one of the nice features of a programming language?

Maybe bad performance. Some years ago we used an UNIX-Sort for sorting ~500,000 records.

Export into Workfile + unix-sort + Import of the sorted workfile was much faster than using Natural’s sort.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:51pm UTC](https://techcommunity.softwareag.com/t/is-anybody-running-into-ibm-programmers-who-do-not-like/80421/9 "2021-04-02T14:51:38Z")

</div>


