IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Comparing/Downloading 2 modules


IBM Mainframe Forums -> Java & MQSeries
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
monasu1998

Active User


Joined: 23 Dec 2005
Posts: 176
Location: India

PostPosted: Wed Oct 31, 2007 4:14 pm
Reply with quote

Hi All,

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.


Thanks in Advance
Back to top
View user's profile Send private message
hemanth.nandas

Active User


Joined: 18 Aug 2007
Posts: 120
Location: India

PostPosted: Wed Oct 31, 2007 4:25 pm
Reply with quote

Hi Monasu,

Quote:
Is there any Natural inbuilt tool/utility to comapre 2 modules.
Is there anything that comes with Natural itself.


Please let us know whats that natural inbuilt and Natural itself.

Quote:
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


Yup, You can Retrieve it. Retrieve it to PDS library. Don't Download..!!

Which version control you are using?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Oct 31, 2007 4:56 pm
Reply with quote

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.

O.
Back to top
View user's profile Send private message
hemanth.nandas

Active User


Joined: 18 Aug 2007
Posts: 120
Location: India

PostPosted: Wed Oct 31, 2007 5:04 pm
Reply with quote

Hi Ofer,

Quote:
NATURAL is a forth-generation programming language, as well as a development infrastructure.


Thanks your explanation. icon_smile.gif
Could you please explain it little more.
Back to top
View user's profile Send private message
monasu1998

Active User


Joined: 23 Dec 2005
Posts: 176
Location: India

PostPosted: Thu Nov 01, 2007 11:30 am
Reply with quote

Hi Ofer,

Thank you for your response.

Thanks
Back to top
View user's profile Send private message
monasu1998

Active User


Joined: 23 Dec 2005
Posts: 176
Location: India

PostPosted: Thu Nov 01, 2007 11:57 am
Reply with quote

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.

Thanks.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Nov 01, 2007 11:59 am
Reply with quote

hemanth.nandas -

What was unclear in my response? icon_rolleyes.gif

O.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Java & MQSeries

 


Similar Topics
Topic Forum Replies
No new posts Comparing Header and Trailer. DFSORT/ICETOOL 7
No new posts z/OS Modules Usage report using SMF 42 DFSORT/ICETOOL 2
No new posts Job is loading load modules several t... COBOL Programming 12
No new posts Convert CICS Modules to AMODE ANY PL/I & Assembler 6
No new posts Comparing Signed Packed decimal and p... SYNCSORT 2
Search our Forums:

Back to Top