Home The Company Publications Products Links Tips

Tips, Tricks, and Techniques

Last update: 30 April 2004

NATLOAD/UNLD Examples

Details:

The following are examples of NATUNLD/LOAD. These examples will be listed in pairs. The first example of the pair will show the 'old' ULDMAIN or INPL parameter mode. The second example of the pair will show the 'new' NATUNLD or NATLOAD direct commands. Both examples are supported for Natural 2.2, however, we suggest a change to the new, direct commands method for ease of use. For the first example only, all the control cards will be listed. (ie, LOGON, ULDMAIN, FIN). Logon to the SYSDBA library for Natural 2.1 ULDMAIN jobs. Logon to the SYSTEM library for Natural 2.2 NATUNLD jobs.



NATUNLD examples

Example #1: Unloads everything from the FUSER specified in NATPARMs
Parameter Mode Direct Command
LOGON SYSDBA
ULDMAIN
L,,*,
.
FIN
/*
LOGON SYSTEM
NATUNLD ALL * FM LIB * <=== all on one line
FIN
/*
NATUNLD <=== or separated, which requires the use of commas
ALL,*,FM,LIB,*
FIN


Example #2: Multiple unload cards
Parameter Mode Direct Command
ULDMAIN
L,,TESTLIB,,S
L,,FROMLIB,TOLIB,*
NATUNLD SAVED * FM TESTLIB
ALL,*,FM,FROMLIB,TO,TOLIB <=== second line doesn't need another NATUNLD


Example #3: Usage of DATE and XREF
Parameter Mode Direct Command
ULDMAIN
L,,TESTLIB,,,,92-08-31,Y
NATUNLD
ALL,*,FM,TESTLIB,WITH,FMDATE,92-08-31,XREF,Y


Example #4: DDMs
Parameter Mode Direct Command
ULDMAIN
D,EMPLOY*
NATUNLD VIEW EMPLOY*
-or-
NATUNLD
VIEW,EMPLY* <=== if not on the same line as NATUNLD, use commas


Example #5: Unloads from other DBIDs or FNRs with password on FDIC file and a continuation character on the end of the 1st line
Parameter Mode Direct Command
Not possible NATUNLD
ALL,*,FM,LIB,*,WHERE,DBID,XXX,FNR,XXX,%
DIC,(DBID/FNR/PSW)



NATLOAD examples

Example #1: Loads everything that was NATUNLDed or ULDMAINed to the work file
Parameter Mode Direct Command
INPL
L,,,*
NATLOAD
ALL,*,FM,LIB,*


Example #2: Multiple load cards. These are different than the unload cards in that a NATLOAD is needed on each line. The first card allows replacement of all modules into library LIB1
Parameter Mode Direct Command
L,Y,,,LIB1
L,,,,LIB2
NATLOAD LOAD ALL * FM LIB REPLACE
NATLOAD LOAD ALL * FM LIB


Example #3: Usage of DATE, XREF and REP. The 'S' option for XREF means that the object will be processed regardless of whether it has XREF data or not
Parameter Mode Direct Command
L,Y,,,LIB1,92-09-09
L,Y,,,LIB2,Y
NATLOAD LOAD ALL * FM LIB1 FMDATE 92-09-09 REP
NATLOAD LOAD ALL * FM LIB2 XREF S


Example #4: NATLOAD card for DDMs
Parameter Mode Direct Command
D,,,EMPLOY* NATLOAD LOAD VIEW EMPLOY*
-or-
NATLOAD
LOAD,VIEW,EMPLOY* <===commas are required


Example #5: NATLOAD with '>' with library. This will load only libraries whose names begin with TEST and are greater than TEST.
Parameter Mode Direct Command
Not possible NATLOAD LOAD ALL * FM LIB TEST>


Example #6: NATLOAD with the EXCEPT parameter. This will load everything EXCEPT what is specified on the control card
Parameter Mode Direct Command
L,,Y,,SYS*, NATLOAD LOAD EXCEPT ALL * FM LIB SYS*


Back to NATURAL Tips, Tricks, Techniques -- Overview