|
|
z390 SuperZap File Utility for Windows and Linux |
![]() |
|
|
Superzap is a z390 utility to verify, replace, find, and dump the content of any Windows or Linux file up to 2 GB. The utility is written in structured z390 mainframe assembler and consists of 800+ lines of code which are included in the z390 download from z390.sourceforge.net. The commands supported by SUPERZAP using either the GUI interface or the command line interface are as follows:
Use the z390 batch command ZAP.BAT with the name of a ".ZAP" type superzap ascii command file in order to run superzap in batch creating a corresponding ".RPT" type ascii file showing results. Run the z390 regression test RTUTIL.BAT to regenerate the superzap utility from source and verify results of demo. SUPERZAP can be run from command line using the command ez390 util\superzap\SUPERZAP parm(CON). The output will appear on console and on the SUPERZAP.LOG file. In order to use SUPERZAP with files larger than 1 MB, add the MEM(mb) option to the execution command in order for z390 to allocate the specified memory size in MB. For example, if the file is up to 16 MB, specify MEM(16). If the file is over 16 MB, specify the size plus 16 since 31 bit memory allocation starts at 16 MB line. For files large than about 50 MB, the additional java runtime explicit memory allocation option -Xmx? will need to be added to the execution command (? is the requested memory size in bytes). Note that SUPERZAP is a very useful utility to see exactly what is in a file and to change it if necessary in order to get an application working. However it is a dangerous program and should not be used on files that cannot be easily recreated if needed. SUPERZAP is installed as part of the open source z390 portable mainframe assembler tool which can be downloaded from www.z390.org. Example 1 - The following 3 commands will dump the ZAP.BAT file showing hex and ASCII characters: name ZAP.BAT If the above 3 commands are placed in an ASCII file named DUMPZAP.ZAP, then the commands can be executed in batch using the command ZAP DUMZAP and the output will appear in file DUMPZAP.RPT as follows:
SUPERZAP V1.0 04/13/07 Z390 FILE UTILITY Example 2 - Search the SUPERZAP.390 executable binary file and dump each occurance of the EBCDIC string 'SUPERZAP' name util\superzap\SUPERZAP.390 The resulting output report looks like this:
SUPERZAP
V1.0 04/13/07 Z390 FILE UTILITY |
|||
This page last updated
Wednesday January 16, 2008.
Webmaster
Copyright 2007 Automated Software Tools Corporation
z390 and
SuperZap are distributed under
OSI compliant GPL
license