Natural Code Samples Overview  
 

Post a new Code Sample

 

cs_searchSearch Code Samples

 



 
New Code Sample

Read More
 
Map Natural Data Area

Map a Natural Data Area


Read More
 
Convert between Char/Hex/Binary displays

Natural subprogram to convert to/from character, hexadecimal and binary strings. 

Character string of length L.

Hex format as 1 string of length 2*L; or 2 strings each of length 1L.

Binary as 1 string length 8*L; or 8 strings each of length 1L.


Read More
 
Issuing a SOAP request and parsing the response

 This example outlines how to issue a SOAP call using the Natural REQUST DOCUMENT statement plus parsing the response using PARSE XML


Read More
 
Convert numeric value to 8 byte binary

Read More
 
Eliminating Characters from a String - Take 2

This code sample adds Case 4 to Steve Robinson's post "Eliminating Special Characters from a String".

From the fertile imagination of Paul Macgowan.


Read More
 
READ WORK FILE versus READ WORK FILE RECORD

This posting explains how Natural typically handles Group Names (and Group Array Names).

Then, we explain Natural's one departure from the "typical" handling, namely

how they are treated when used in conjunction with READ WORK FILE RECORD.


Read More
 
DYNAMIC Variables - *LENGTH, REDUCE, EXPAND, RESIZE

This posting is a continuation of the previous post. The intent is to provide an understanding
of the basics of DYNAMIC Variables in the hope that programmers will be more "comfortable"
with their use, and begin to utilize them more than appears to be the case at present.


Read More
 
DYNAMIC Variable basics

This posting will discuss some of the basics associated with DYNAMIC variables.
In particular, we will look at how *LENGTH is set, and how REDUCE and EXPAND
impact *LENGTH.

In a subsequent posting we will go further in our discussion of DYNAMIC variables.
We will discuss when to use them, when not to use them, and, when not to use
EXPAND, REDUCE, and RESIZE (most of the time, contrary to what I have seen
many programmers doing).


Read More
 
Eliminating Special Characters from a String

This program shows several ways to eliminate Special Characters from a string.

The performance comparison indicates that what might be a counter intuitive fastest alternative is indeed the best performing of the three alternatives shown.


Read More
 
Search Community Websites
Natural Products
Roadmap (July, 2012)
NaturalONE
Natural General
Natural for Mainframes
Natural for Unix, Linux and OpenVMS
Natural for Windows
Natural Add-Ons
? Enhancement Requests (Brainstorm) ? Universities ? SAG-L Discussion List Search Archives ? Skills Assessment ? Training ? Contact Us
Terms of Use    Privacy Policy    Imprint    Copyright © 2012 Software AG    Contact Us