Is there any Natural inbuilt tool/utility to comapre 2 modules.
Is there anything that comes with Natural itself.
I am aware of few, those are customised utilities of clinet.
I need to compare 2 modules, but do not how I can do it in Natural.
Also is it possible to download the modules to flat files, so that I can compare in ISPF 3.13 option.
There are two programs for NATURAL compare:
1. CSGCMPS - Used for NATURAL single module comparison
2. CSGCMPL - Used for NATURAL library comparison.
Note: These two programs are part of the NATURAL Construct product, and therefor they are documented in the NATURAL Construct manuals. However, I believe they are available for you even if you don't have NATURAL Construct. Look at your FNAT file in the SYSTEM or SYSLIBS library. You can try entering CSGCMPS from the command line when you are in SYSTEM.
Regarding your second question, the best method I know to "export" a NATURAL module into textual format, is using the SYSTRANS utility, which is part of NATURAL, and is well documented in Software AG's fine manuals.
Here is an example of "exporting" two programs using SYSTRANS and then comparing them using SUPERC:
Code:
//V08020FT JOB (23610,0,0668),SYSTRNSU,MSGCLASS=X,
// CLASS=U,NOTIFY=&SYSUID,REGION=4096K,TIME=1440
//*
//NATU EXEC NAT2UT2,REG=8M,
// PARM='IM=D,MADIO=0,MAXCL=0,AUTO=OFF,INTENS=1,PROFILE=ONTARGET'
//CMWKF01 DD DSN=&&NATOLD,DISP=(,PASS)
//CMPRT01 DD SYSOUT=*
//CMSYNIN DD *
LOGON SYSTRANS
MENU
U
N,N,Y,Y,N,N,N,N
N
OFER,ADAREXX,*,SYSTEM
FIN
/*
//*
//NATU EXEC NAT2UT2,REG=8M,
// PARM='IM=D,MADIO=0,MAXCL=0,AUTO=OFF,INTENS=1,PROFILE=ONTARGET'
//CMWKF01 DD DSN=&&NATNEW,DISP=(,PASS)
//CMPRT01 DD SYSOUT=*
//CMSYNIN DD *
LOGON SYSTRANS
MENU
U
N,N,Y,Y,N,N,N,N
N
OFERTEST,ADAREXX,*,SYSTEM
FIN
/*
//*
//SCOMP EXEC PGM=ISRSUPC,
// PARM=(DELTAL,LINECMP,NOPRTCC,LONGLN)
//OLDDD DD DSN=&&NATOLD,DISP=(OLD,DELETE,DELETE)
//NEWDD DD DSN=&&NATNEW,DISP=(OLD,DELETE,DELETE)
//OUTDD DD SYSOUT=*
//SYSIN DD *
Please note that when you use CSGCMPS/CSGCMPL, the comparing process takes into account the NATURAL comments line, which considered as a regular lines when using SUPERC.
Also, you can run the comparing programs, as well as SYSTRANS, from TSO, Batch or CICS.
hemanth.nandas -
NATURAL is a forth-generation programming language, as well as a development infrastructure.
Hi Hemanth,
I just wanted to compare 2 modules (same module with 2 different versions). Natural inbuilt means(for me) that comes with Natural installation and Natural itself also mean same to me.
I do not have any utility to do that. Downloading the files also depends If there is a work file defined or not.
Though I never used SYSTRANS (always used client provided tool/utililities), I am just to try the options by Ofer.