Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Comparing/Downloading 2 modules

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries
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    Post subject: Comparing/Downloading 2 modules
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: Chennai

PostPosted: Wed Oct 31, 2007 4:25 pm    Post subject:
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: 2360
Location: Israel

PostPosted: Wed Oct 31, 2007 4:56 pm    Post subject:
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: Chennai

PostPosted: Wed Oct 31, 2007 5:04 pm    Post subject:
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    Post subject:
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    Post subject:
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: 2360
Location: Israel

PostPosted: Thu Nov 01, 2007 11:59 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Java & MQSeries All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts Copy load modules and alias vasanthz IBM Tools 5 Thu Apr 20, 2017 6:31 am
No new posts Comparing Decimal and CHAR columns rakesh17684 DB2 7 Thu Oct 20, 2016 2:33 am
No new posts comparing comp-3 and unpacked numbers juares castro COBOL Programming 3 Mon May 30, 2016 6:46 pm
No new posts Need help on comparing hexadecimal va... ashok_uddaraju DFSORT/ICETOOL 4 Thu Apr 28, 2016 2:08 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us