natural 6 tips ‘n’ techniques
DESCRIPTION
Natural 6 Tips ‘n’ Techniques. Chad Scott [email protected] Ralph Zbrog [email protected]. Natural Conference 2006. Program Editor. Avoiding long source lines Lines up to 250 characters Set ruler position to 72 for mainframe compatibility - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Natural 6 Tips ‘n’ Techniques](https://reader036.vdocument.in/reader036/viewer/2022070406/56814125550346895dacff48/html5/thumbnails/1.jpg)
Natural 6 TnT1Natural Conference 2006
Natural 6Tips ‘n’ Techniques
Natural Conference 2006
Chad [email protected]
Ralph [email protected]
![Page 2: Natural 6 Tips ‘n’ Techniques](https://reader036.vdocument.in/reader036/viewer/2022070406/56814125550346895dacff48/html5/thumbnails/2.jpg)
2Natural Conference 2006 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
![Page 3: Natural 6 Tips ‘n’ Techniques](https://reader036.vdocument.in/reader036/viewer/2022070406/56814125550346895dacff48/html5/thumbnails/3.jpg)
3Natural Conference 2006 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)
![Page 4: Natural 6 Tips ‘n’ Techniques](https://reader036.vdocument.in/reader036/viewer/2022070406/56814125550346895dacff48/html5/thumbnails/4.jpg)
4Natural Conference 2006 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”
![Page 5: Natural 6 Tips ‘n’ Techniques](https://reader036.vdocument.in/reader036/viewer/2022070406/56814125550346895dacff48/html5/thumbnails/5.jpg)
5Natural Conference 2006 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
![Page 6: Natural 6 Tips ‘n’ Techniques](https://reader036.vdocument.in/reader036/viewer/2022070406/56814125550346895dacff48/html5/thumbnails/6.jpg)
6Natural Conference 2006 Natural 6 TnT
Shortcut Keys
ctrl-m – convert block to comments shift-ctrl-m – reverse ctrl-m Help Contents Getting Started:
Using Natural Studio Shortcut Keys
![Page 7: Natural 6 Tips ‘n’ Techniques](https://reader036.vdocument.in/reader036/viewer/2022070406/56814125550346895dacff48/html5/thumbnails/7.jpg)
7Natural Conference 2006 Natural 6 TnT
Screen Images
Program editorLine numbers
• Program Editor Options toolbar• Tools Options... Program Editor
Line numbers
ctrl-c to copyctrl-v to insert
Output window%c program editor%h select target
![Page 8: Natural 6 Tips ‘n’ Techniques](https://reader036.vdocument.in/reader036/viewer/2022070406/56814125550346895dacff48/html5/thumbnails/8.jpg)
8Natural Conference 2006 Natural 6 TnT
Folders
FiltersLimit library display within
FUSER/FNATLimit module display within libraryRight-click folder Display Filter...
specify wildcards+ indicates active filters
![Page 9: Natural 6 Tips ‘n’ Techniques](https://reader036.vdocument.in/reader036/viewer/2022070406/56814125550346895dacff48/html5/thumbnails/9.jpg)
9Natural Conference 2006 Natural 6 TnT
Folders
Module transfer (without Object Handler)
Source and/or objectExport module
• Drag-n-drop module from Library workspace to directory or desktop
• Faster than copy/paste• edit ctrl-a ctrl-c ctrl-v save as
Import module• Drag-n-drop module from directory or
desktop to Library workspace
![Page 10: Natural 6 Tips ‘n’ Techniques](https://reader036.vdocument.in/reader036/viewer/2022070406/56814125550346895dacff48/html5/thumbnails/10.jpg)
10Natural Conference 2006 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
/*
//
![Page 11: Natural 6 Tips ‘n’ Techniques](https://reader036.vdocument.in/reader036/viewer/2022070406/56814125550346895dacff48/html5/thumbnails/11.jpg)
11Natural Conference 2006 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
![Page 12: Natural 6 Tips ‘n’ Techniques](https://reader036.vdocument.in/reader036/viewer/2022070406/56814125550346895dacff48/html5/thumbnails/12.jpg)
12Natural Conference 2006 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)
![Page 13: Natural 6 Tips ‘n’ Techniques](https://reader036.vdocument.in/reader036/viewer/2022070406/56814125550346895dacff48/html5/thumbnails/13.jpg)
13Natural Conference 2006 Natural 6 TnT
Backup Directory
Directory name templateConfiguration Utility Natural
Parameter Files NATPARM Natural Execution Configuration Workfiles 1
C:\Documents and Settings\...\NatBackup\nat06mmdd.sag
Invoke Object HandlerSimply overtype mmdd
![Page 14: Natural 6 Tips ‘n’ Techniques](https://reader036.vdocument.in/reader036/viewer/2022070406/56814125550346895dacff48/html5/thumbnails/14.jpg)
14Natural Conference 2006 Natural 6 TnT
Backup Directory
Works for Object Handler and SYSTrans
![Page 15: Natural 6 Tips ‘n’ Techniques](https://reader036.vdocument.in/reader036/viewer/2022070406/56814125550346895dacff48/html5/thumbnails/15.jpg)
15Natural Conference 2006 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
![Page 16: Natural 6 Tips ‘n’ Techniques](https://reader036.vdocument.in/reader036/viewer/2022070406/56814125550346895dacff48/html5/thumbnails/16.jpg)
16Natural Conference 2006 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
![Page 17: Natural 6 Tips ‘n’ Techniques](https://reader036.vdocument.in/reader036/viewer/2022070406/56814125550346895dacff48/html5/thumbnails/17.jpg)
17Natural Conference 2006 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
![Page 18: Natural 6 Tips ‘n’ Techniques](https://reader036.vdocument.in/reader036/viewer/2022070406/56814125550346895dacff48/html5/thumbnails/18.jpg)
18Natural Conference 2006 Natural 6 TnT
Configuration Utility
START All Programs Software AG Natural 6.2.2 Configuration Utility
C:\Program Files\Software AG \Natural\6.2\Bin\natparm.exe
![Page 19: Natural 6 Tips ‘n’ Techniques](https://reader036.vdocument.in/reader036/viewer/2022070406/56814125550346895dacff48/html5/thumbnails/19.jpg)
19Natural Conference 2006 Natural 6 TnT
Date & Time Initialization
Corrected in 6.2
![Page 20: Natural 6 Tips ‘n’ Techniques](https://reader036.vdocument.in/reader036/viewer/2022070406/56814125550346895dacff48/html5/thumbnails/20.jpg)
20Natural Conference 2006 Natural 6 TnT
Questions
![Page 21: Natural 6 Tips ‘n’ Techniques](https://reader036.vdocument.in/reader036/viewer/2022070406/56814125550346895dacff48/html5/thumbnails/21.jpg)
21Natural Conference 2006 Natural 6 TnT
Fin
![Page 22: Natural 6 Tips ‘n’ Techniques](https://reader036.vdocument.in/reader036/viewer/2022070406/56814125550346895dacff48/html5/thumbnails/22.jpg)
Natural 6 TnT22Natural Conference 2006
Natural 6Tips ‘n’ Techniques
Natural Conference 2006
Chad [email protected]
Ralph [email protected]