natural 6 tnt 1 natural conference 2005 natural 6 tips ‘n’ techniques natural conference 2005...

22
Natural 6 TnT 1 Natural Conference 2005 Natural 6 Tips ‘n’ Techniques Natural Conference 2005 Chad Scott [email protected] Ralph Zbrog [email protected]

Upload: tiana-wagstaff

Post on 16-Dec-2015

214 views

Category:

Documents


0 download

TRANSCRIPT

Natural 6 TnT1Natural Conference 2005

Natural 6Tips ‘n’ Techniques

Natural Conference 2005

Chad [email protected]

Ralph [email protected]

2Natural Conference 2005 Natural 6 TnT

Program Editor

Avoiding long source linesLines up to 250 charactersSet ruler position to 72 for mainframe

compatibilityTools Options... Program Editor

Ruler Position

3Natural Conference 2005 Natural 6 TnT

Program Editor

Font sizeCoding vs presentationTools Options... Program Editor

Font... Size• Coding: Courier New, 10• Presentation: Lucida Console, 16

Output window, editors (not Dialogs)

4Natural Conference 2005 Natural 6 TnT

Program Editor

Mainframe convention: uppercase source with (optional) mixed-case literals

Windows compatibilityTools Options... Program Editor

Uppercase translationTools Options... Program Editor

Ignore text constants External object names

CALLNAT ‘d2optsub’CALLNAT “d2optsub”

5Natural Conference 2005 Natural 6 TnT

Program Editor

List or edit external object via context menuLeft-click object name ctrl-oRight-click object name OpenRight-click object name List

6Natural Conference 2005 Natural 6 TnT

Accelerators

ctrl-m – convert block to comments shift-ctrl-m – reverse ctrl-m Help Contents Getting Started:

Fundamentals Natural Studio - Introduction Accelerators

7Natural Conference 2005 Natural 6 TnT

Screen Images

Program editorSelect block of source codeLine numbers

• Program Editor Options toolbar• Tools Options... Program Editor

Line numbers

ctrl-c to copyctrl-v to insert

Output window%c program editor

8Natural Conference 2005 Natural 6 TnT

Folders

FiltersRight-click folder Display Filter...

specify wildcards+ indicates active filters

9Natural Conference 2005 Natural 6 TnT

Folders

Export source moduleDrag-n-drop module from Library

workspace to directory or desktop• Faster than copy/paste

• edit ctrl-a ctrl-c ctrl-v save as

Import source moduleDrag-n-drop module from directory or

desktop to Library workspace

10Natural Conference 2005 Natural 6 TnT

Folders

Upload to mainframeChange NSx extension to TXT for

upload/FTP//LOAD EXEC NATBT,SYSOUT=*,TIME=50,PRM='AUTO=ON,SL=80,MAINPR=1,PS=65'

//CMSYNIN DD *,BLKSIZE=27948

%L

LOGON natlib

EDT

/*

// DD DSN=ZBROG.PUNCH(########),DISP=SHR FB/102

// DD *

.E

SA ########

FIN

/*

//

11Natural Conference 2005 Natural 6 TnT

Folders

Download from mainframeExtract from mainframe FUSER

(ZZPUNCH)Set file extension to TXT for

download/FTP to directorySet file extension to NSx, where x

represents module type

12Natural Conference 2005 Natural 6 TnT

FTOUCH

Software AG warns strongly against any external manipulation of FUSER directories and contents

FTOUCH utility provided as last resort to correct data corruption in FILEDIR.SAG

Exceptions?Automated backup & recoveryDeleting library contents (client vs

server)

13Natural Conference 2005 Natural 6 TnT

Backup Directory

Directory name templateConfiguration Utility Natural

Parameter Files NATPARM Natural Execution Configuration Workfiles 1

C:\Documents and Settings\...\NatBackup\nat05mmdd.sag

Simply overtype mmdd

14Natural Conference 2005 Natural 6 TnT

Backup Directory

Works for Object Handler and SYSTrans

15Natural Conference 2005 Natural 6 TnT

Program Load

Buffer Pool Search First IndicatorSet OFF in development environment

• Configuration Utility Natural Parameter Files NATPARM Natural Execution Configuration Program Loading/Deletion BPSFI OFF

16Natural Conference 2005 Natural 6 TnT

Start-up Program

At Natural initiation (one-time)Configuration Utility Natural

Parameter Files NATPARM Natural Execution Configuration Program Loading/Deletion STACK HELLO

In place of NEXT promptConfiguration Utility Natural

Parameter Files NATPARM Natural Execution Configuration System Variables STARTUP HELLO

17Natural Conference 2005 Natural 6 TnT

Session Parameters

Persistence (Windows-only)During familiarization with Studio,

session parameter adjustments may be made

PERSIST configuration parameter causes session parameters to be saved for next session

• Configuration Utility Natural Parameter Files NATPARM Natural Execution Configuration Program Loading/Deletion PERSIST

18Natural Conference 2005 Natural 6 TnT

Configuration Utility

START All Programs Software AG Natural 6.1.1 Configuration Utility

c:\Program Files\Software AG \Natural\6.1.1\Bin\natparm.exe

19Natural Conference 2005 Natural 6 TnT

Date Initialization

Data editor Data Field Definition Initialize... Free form entry

20Natural Conference 2005 Natural 6 TnT

Questions

How to initialize with *DATX or *TIMX?Workaround: import from a program

How to handle empty files? How to shift a block of code within

program editor?

21Natural Conference 2005 Natural 6 TnT

Fin

Natural 6 TnT22Natural Conference 2005

Natural 6Tips ‘n’ Techniques

Natural Conference 2005

Chad [email protected]

Ralph [email protected]