ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Trying to find the EXPORT command for use in NMBCI to extract to flat file

book

Article ID: 237756

calendar_today

Updated On:

Products

NetMaster Network Automation

Issue/Introduction

 I'm trying to export a ruleset using NMBCI, but cannot find the syntax for the command in the manual, if at all possible. I'm interested in comparing two different LPAR's NCL libraries for differences, and can potentially make changes and import again.

Environment

Release : 12.2

Component : NetMaster Network Automation

Resolution

You will need to create an NCL in the hlq.TESTEXEC dataset and have the BCI call that NCL procedure.

 

The NCL is just 2 lines - the same command as before - 

I named mine KGTRANS. 

 

list kgtrans  
                                                                  
 START $RMDB01M ACTION=EXPTCMD OPT=RULESET +                            00000105
       DSName=AUCM0.GILKE04.ALERTEX  RULESET=PWTEST                     00000205

N03906 LIST KGTRANS PROCESSING COMPLETE.                                         

Note - any time you make changes to the proc you will need to issue a UNLOAD PROC=<ProcName>
THis will remove the OLF version f
rom memory.


The BCI would
BCILOGON U11NCE81
TRACE ON         
KGTRANS        
BCIDISC          
//               


The bci job results -

SYSIN    GILKE04. $USERBCI $USV3270     +KGTRANS                                                
CSNM40   GILKE04. $USERBCI $USV3270      N03906 START KGTRANS PROCESSING COMPLETE. NCLID 033168..
CSNM40   GILKE04. $USERBCI $USV3270      RMDB0204 9 Records Processed Successfully...............
SYSIN    GILKE04. $USERBCI $USV3270     +BCIDISC                                                 
                                        =N96010 SESSION DISCONNECTED - APPL-ID=CSNM40  

The output dsn -
 BROWSE    AUCM0.GILKE04.ALERTEX 
 Command ===>                    
*********************************
LEVEL=080100                     
OBJECT=C'PWTEST  ZEVW93PWTEST    
$RM00CDATE=C'TUE 10-SEP-2019     
$RM00CLASS=C'93                  
$RM00CTIME=C'10.14.53