Learn NATURAL-SCRIPTING with Real Code Examples
Updated Nov 27, 2025
Installation Setup
Install Natural development environment on mainframe or server
Set up runtime libraries and system modules
Configure Adabas or other supported databases
Ensure proper access rights for developers
Test sample Natural programs to validate environment
Environment Setup
Install Natural development environment and libraries
Configure Adabas or other target databases
Set access rights for development and execution
Test sample programs to verify setup
Prepare batch job and scheduling scripts if needed
Config Files
Program library definitions
Database view definitions
Job scheduling scripts for batch runs
Natural configuration files for runtime environment
Security and access control settings
Cli Commands
Natural -> run programs interactively
NATTEST -> test Natural programs
NATBATCH -> execute batch jobs
NATADMIN -> manage environment and libraries
Debug -> step through programs and monitor variables
Internationalization
Supports multiple character encodings (EBCDIC, ASCII, Unicode)
Date, number, and currency formats can be localized
Reports can be translated for different locales
Online applications may adapt UI language dynamically
Integration supports region-specific data formats
Accessibility
Mainly terminal-based; compatible with accessibility tools
Reports can be exported for external consumption
Online Natural applications can follow standard UI accessibility practices
Batch jobs maintain consistent outputs for audit purposes
Data access governed by user roles
Ui Styling
Typically console or terminal output
Modern Natural Studio supports GUI development
Reports formatted for readability
Online applications may leverage screens and forms
Styling minimal; focus on data presentation
State Management
Program variables manage runtime state
Database records reflect persistent state
Subprograms isolate logic and local state
Transaction management ensures data integrity
Error handling controls rollback or retries
Data Management
Record-based database access for transactional data
Derived data handled in working variables
Batch processing allows sequential data updates
Online programs provide real-time access
Integration with external systems synchronizes state