Hexadecimal Array
Java Program, Hex with ASC and EBC
  Table of Contents  v-24.01.01 - jvhext01.htm 
  Introduction
  Sample Output
  The CMD Members
  Display HEX Array to SYSOUT
  Write HEX Array to File
  Java Source Members
  Display HEX Array to SYSOUT
  Write HEX Array to File
  Ancillary Functions
  Summary
  Software Agreement and Disclaimer
  Downloads and Links
  Current Server or Internet Access
  Internet Access Required
  Glossary of Terms
  Contact or Feedback
  Company Overview
The SimoTime Home Page 

Table of Contents Previous Section Next Section Introduction

This Java Program will define and display an array containing hexadecimal values to the standard output device or write a hex-dump array to a file. The array includes the character symbols for ASCII and EBCDIC encoding.


We have made a significant effort to ensure the documents and software technologies are correct and accurate. We reserve the right to make changes without notice at any time. The function delivered in this version is based upon the enhancement requests from a specific group of users. The intent is to provide changes as the need arises and in a timeframe that is dependent upon the availability of resources.

Copyright © 1987-2024
SimoTime Technologies and Services
All Rights Reserved

Table of Contents Previous Section Next Section Sample Output

This Java Program will display a hex-dump array to the standard output device or write a hex-dump array to a file.

2014/08/24 09:36:34 Ap10Jv02 - HEX='00'   .......   .......   0
2014/08/24 09:36:34 Ap10Jv02 - HEX='01'   .......   .......   1
2014/08/24 09:36:34 Ap10Jv02 - HEX='02'   .......   .......   2
2014/08/24 09:36:34 Ap10Jv02 - HEX='03'   .......   .......   3
2014/08/24 09:36:34 Ap10Jv02 - HEX='04'   .......   .......   4
2014/08/24 09:36:34 Ap10Jv02 - HEX='05'   .......   .......   5
2014/08/24 09:36:34 Ap10Jv02 - HEX='06'   .......   .......   6
2014/08/24 09:36:34 Ap10Jv02 - HEX='07'   .......   .......   7
2014/08/24 09:36:34 Ap10Jv02 - HEX='08'   .......   .......   8
2014/08/24 09:36:34 Ap10Jv02 - HEX='09'   .......   .......   9
2014/08/24 09:36:34 Ap10Jv02 - HEX='0A'   .......   .......   10
2014/08/24 09:36:34 Ap10Jv02 - HEX='0B'   .......   .......   11
2014/08/24 09:36:34 Ap10Jv02 - HEX='0C'   .......   .......   12
2014/08/24 09:36:34 Ap10Jv02 - HEX='0D'   .......   .......   13
2014/08/24 09:36:34 Ap10Jv02 - HEX='0E'   .......   .......   14
2014/08/24 09:36:34 Ap10Jv02 - HEX='0F'   .......   .......   15
2014/08/24 09:36:34 Ap10Jv02 - HEX='10'   .......   .......   16
2014/08/24 09:36:34 Ap10Jv02 - HEX='11'   .......   .......   17
2014/08/24 09:36:34 Ap10Jv02 - HEX='12'   .......   .......   18
2014/08/24 09:36:34 Ap10Jv02 - HEX='13'   .......   .......   19
2014/08/24 09:36:34 Ap10Jv02 - HEX='14'   .......   .......   20
2014/08/24 09:36:34 Ap10Jv02 - HEX='15'   .......   .......   21
2014/08/24 09:36:34 Ap10Jv02 - HEX='16'   .......   .......   22
2014/08/24 09:36:34 Ap10Jv02 - HEX='17'   .......   .......   23
2014/08/24 09:36:34 Ap10Jv02 - HEX='18'   .......   .......   24
2014/08/24 09:36:34 Ap10Jv02 - HEX='19'   .......   .......   25
2014/08/24 09:36:34 Ap10Jv02 - HEX='1A'   .......   .......   26
2014/08/24 09:36:34 Ap10Jv02 - HEX='1B'   .......   .......   27
2014/08/24 09:36:34 Ap10Jv02 - HEX='1C'   .......   .......   28
2014/08/24 09:36:34 Ap10Jv02 - HEX='1D'   .......   .......   29
2014/08/24 09:36:34 Ap10Jv02 - HEX='1E'   .......   .......   30
2014/08/24 09:36:34 Ap10Jv02 - HEX='1F'   .......   .......   31
2014/08/24 09:36:34 Ap10Jv02 - HEX='20'   ASC=' '   .......   32
2014/08/24 09:36:34 Ap10Jv02 - HEX='21'   ASC='!'   .......   33
2014/08/24 09:36:34 Ap10Jv02 - HEX='22'   ASC='"'   .......   34
2014/08/24 09:36:34 Ap10Jv02 - HEX='23'   ASC='#'   .......   35
2014/08/24 09:36:34 Ap10Jv02 - HEX='24'   ASC='$'   .......   36
2014/08/24 09:36:34 Ap10Jv02 - HEX='25'   ASC='%'   .......   37
2014/08/24 09:36:34 Ap10Jv02 - HEX='26'   ASC='&'   .......   38
2014/08/24 09:36:34 Ap10Jv02 - HEX='27'   ASC='''   .......   39
2014/08/24 09:36:34 Ap10Jv02 - HEX='28'   ASC='('   .......   40
2014/08/24 09:36:34 Ap10Jv02 - HEX='29'   ASC=')'   .......   41
2014/08/24 09:36:34 Ap10Jv02 - HEX='2A'   ASC='*'   .......   42
2014/08/24 09:36:34 Ap10Jv02 - HEX='2B'   ASC='+'   .......   43
2014/08/24 09:36:34 Ap10Jv02 - HEX='2C'   ASC=','   .......   44
2014/08/24 09:36:34 Ap10Jv02 - HEX='2D'   ASC='-'   .......   45
2014/08/24 09:36:34 Ap10Jv02 - HEX='2E'   ASC='.'   .......   46
2014/08/24 09:36:34 Ap10Jv02 - HEX='2F'   ASC='/'   .......   47
2014/08/24 09:36:34 Ap10Jv02 - HEX='30'   ASC='0'   .......   48
2014/08/24 09:36:34 Ap10Jv02 - HEX='31'   ASC='1'   .......   49
2014/08/24 09:36:34 Ap10Jv02 - HEX='32'   ASC='2'   .......   50
2014/08/24 09:36:34 Ap10Jv02 - HEX='33'   ASC='3'   .......   51
2014/08/24 09:36:34 Ap10Jv02 - HEX='34'   ASC='4'   .......   52
2014/08/24 09:36:34 Ap10Jv02 - HEX='35'   ASC='5'   .......   53
2014/08/24 09:36:34 Ap10Jv02 - HEX='36'   ASC='6'   .......   54
2014/08/24 09:36:34 Ap10Jv02 - HEX='37'   ASC='7'   .......   55
2014/08/24 09:36:34 Ap10Jv02 - HEX='38'   ASC='8'   .......   56
2014/08/24 09:36:34 Ap10Jv02 - HEX='39'   ASC='9'   .......   57
2014/08/24 09:36:34 Ap10Jv02 - HEX='3A'   ASC=':'   .......   58
2014/08/24 09:36:34 Ap10Jv02 - HEX='3B'   ASC=';'   .......   59
2014/08/24 09:36:34 Ap10Jv02 - HEX='3C'   ASC='<'   .......   60
2014/08/24 09:36:34 Ap10Jv02 - HEX='3D'   ASC='='   .......   61
2014/08/24 09:36:34 Ap10Jv02 - HEX='3E'   ASC='>'   .......   62
2014/08/24 09:36:34 Ap10Jv02 - HEX='3F'   ASC='?'   .......   63
2014/08/24 09:36:34 Ap10Jv02 - HEX='40'   ASC='@'   EBC=' '   64
2014/08/24 09:36:34 Ap10Jv02 - HEX='41'   ASC='A'   .......   65
2014/08/24 09:36:34 Ap10Jv02 - HEX='42'   ASC='B'   .......   66
2014/08/24 09:36:34 Ap10Jv02 - HEX='43'   ASC='C'   .......   67
2014/08/24 09:36:34 Ap10Jv02 - HEX='44'   ASC='D'   .......   68
2014/08/24 09:36:34 Ap10Jv02 - HEX='45'   ASC='E'   .......   69
2014/08/24 09:36:34 Ap10Jv02 - HEX='46'   ASC='F'   .......   70
2014/08/24 09:36:34 Ap10Jv02 - HEX='47'   ASC='G'   .......   71
2014/08/24 09:36:34 Ap10Jv02 - HEX='48'   ASC='H'   .......   72
2014/08/24 09:36:34 Ap10Jv02 - HEX='49'   ASC='I'   .......   73
2014/08/24 09:36:34 Ap10Jv02 - HEX='4A'   ASC='J'   .......   74
2014/08/24 09:36:34 Ap10Jv02 - HEX='4B'   ASC='K'   EBC='.'   75
2014/08/24 09:36:34 Ap10Jv02 - HEX='4C'   ASC='L'   EBC='<'   76
2014/08/24 09:36:34 Ap10Jv02 - HEX='4D'   ASC='M'   EBC='('   77
2014/08/24 09:36:34 Ap10Jv02 - HEX='4E'   ASC='N'   EBC='+'   78
2014/08/24 09:36:34 Ap10Jv02 - HEX='4F'   ASC='O'   EBC='|'   79
2014/08/24 09:36:34 Ap10Jv02 - HEX='50'   ASC='P'   EBC='&'   80
2014/08/24 09:36:34 Ap10Jv02 - HEX='51'   ASC='Q'   .......   81
2014/08/24 09:36:34 Ap10Jv02 - HEX='52'   ASC='R'   .......   82
2014/08/24 09:36:34 Ap10Jv02 - HEX='53'   ASC='S'   .......   83
2014/08/24 09:36:34 Ap10Jv02 - HEX='54'   ASC='T'   .......   84
2014/08/24 09:36:34 Ap10Jv02 - HEX='55'   ASC='U'   .......   85
2014/08/24 09:36:34 Ap10Jv02 - HEX='56'   ASC='V'   .......   86
2014/08/24 09:36:34 Ap10Jv02 - HEX='57'   ASC='W'   .......   87
2014/08/24 09:36:34 Ap10Jv02 - HEX='58'   ASC='X'   .......   88
2014/08/24 09:36:34 Ap10Jv02 - HEX='59'   ASC='Y'   .......   89
2014/08/24 09:36:34 Ap10Jv02 - HEX='5A'   ASC='Z'   EBC='!'   90
2014/08/24 09:36:34 Ap10Jv02 - HEX='5B'   ASC='['   EBC='$'   91
2014/08/24 09:36:34 Ap10Jv02 - HEX='5C'   ASC='\'   EBC='*'   92
2014/08/24 09:36:34 Ap10Jv02 - HEX='5D'   ASC=']'   EBC=')'   93
2014/08/24 09:36:34 Ap10Jv02 - HEX='5E'   ASC='^'   EBC=';'   94
2014/08/24 09:36:34 Ap10Jv02 - HEX='5F'   ASC='_'   .......   95
2014/08/24 09:36:34 Ap10Jv02 - HEX='60'   ASC='`'   EBC='-'   96
2014/08/24 09:36:34 Ap10Jv02 - HEX='61'   ASC='a'   EBC='/'   97
2014/08/24 09:36:34 Ap10Jv02 - HEX='62'   ASC='b'   .......   98
2014/08/24 09:36:34 Ap10Jv02 - HEX='63'   ASC='c'   .......   99
2014/08/24 09:36:34 Ap10Jv02 - HEX='64'   ASC='d'   .......   100
2014/08/24 09:36:34 Ap10Jv02 - HEX='65'   ASC='e'   .......   101
2014/08/24 09:36:34 Ap10Jv02 - HEX='66'   ASC='f'   .......   102
2014/08/24 09:36:34 Ap10Jv02 - HEX='67'   ASC='g'   .......   103
2014/08/24 09:36:34 Ap10Jv02 - HEX='68'   ASC='h'   .......   104
2014/08/24 09:36:34 Ap10Jv02 - HEX='69'   ASC='i'   .......   105
2014/08/24 09:36:34 Ap10Jv02 - HEX='6A'   ASC='j'   EBC='|'   106
2014/08/24 09:36:34 Ap10Jv02 - HEX='6B'   ASC='k'   EBC=','   107
2014/08/24 09:36:34 Ap10Jv02 - HEX='6C'   ASC='l'   EBC='%'   108
2014/08/24 09:36:34 Ap10Jv02 - HEX='6D'   ASC='m'   EBC='_'   109
2014/08/24 09:36:34 Ap10Jv02 - HEX='6E'   ASC='n'   EBC='>'   110
2014/08/24 09:36:34 Ap10Jv02 - HEX='6F'   ASC='o'   EBC='?'   111
2014/08/24 09:36:34 Ap10Jv02 - HEX='70'   ASC='p'   .......   112
2014/08/24 09:36:34 Ap10Jv02 - HEX='71'   ASC='q'   .......   113
2014/08/24 09:36:34 Ap10Jv02 - HEX='72'   ASC='r'   .......   114
2014/08/24 09:36:34 Ap10Jv02 - HEX='73'   ASC='s'   .......   115
2014/08/24 09:36:34 Ap10Jv02 - HEX='74'   ASC='t'   .......   116
2014/08/24 09:36:34 Ap10Jv02 - HEX='75'   ASC='u'   .......   117
2014/08/24 09:36:34 Ap10Jv02 - HEX='76'   ASC='v'   .......   118
2014/08/24 09:36:34 Ap10Jv02 - HEX='77'   ASC='w'   .......   119
2014/08/24 09:36:34 Ap10Jv02 - HEX='78'   ASC='x'   .......   120
2014/08/24 09:36:34 Ap10Jv02 - HEX='79'   ASC='y'   EBC='`'   121
2014/08/24 09:36:34 Ap10Jv02 - HEX='7A'   ASC='z'   EBC=':'   122
2014/08/24 09:36:34 Ap10Jv02 - HEX='7B'   ASC='{'   EBC='#'   123
2014/08/24 09:36:34 Ap10Jv02 - HEX='7C'   ASC='.'   EBC='@'   124
2014/08/24 09:36:34 Ap10Jv02 - HEX='7D'   ASC='}'   EBC='''   125
2014/08/24 09:36:34 Ap10Jv02 - HEX='7E'   ASC='~'   EBC='='   126
2014/08/24 09:36:34 Ap10Jv02 - HEX='7F'   .......   EBC='"'   127
2014/08/24 09:36:34 Ap10Jv02 - HEX='80'   .......   .......   128
2014/08/24 09:36:34 Ap10Jv02 - HEX='81'   .......   EBC='a'   129
2014/08/24 09:36:34 Ap10Jv02 - HEX='82'   .......   EBC='b'   130
2014/08/24 09:36:34 Ap10Jv02 - HEX='83'   .......   EBC='c'   131
2014/08/24 09:36:34 Ap10Jv02 - HEX='84'   .......   EBC='d'   132
2014/08/24 09:36:34 Ap10Jv02 - HEX='85'   .......   EBC='e'   133
2014/08/24 09:36:34 Ap10Jv02 - HEX='86'   .......   EBC='f'   134
2014/08/24 09:36:34 Ap10Jv02 - HEX='87'   .......   EBC='g'   135
2014/08/24 09:36:34 Ap10Jv02 - HEX='88'   .......   EBC='h'   136
2014/08/24 09:36:34 Ap10Jv02 - HEX='89'   .......   EBC='i'   137
2014/08/24 09:36:34 Ap10Jv02 - HEX='8A'   .......   .......   138
2014/08/24 09:36:34 Ap10Jv02 - HEX='8B'   .......   .......   139
2014/08/24 09:36:34 Ap10Jv02 - HEX='8C'   .......   .......   140
2014/08/24 09:36:34 Ap10Jv02 - HEX='8D'   .......   .......   141
2014/08/24 09:36:34 Ap10Jv02 - HEX='8E'   .......   .......   142
2014/08/24 09:36:34 Ap10Jv02 - HEX='8F'   .......   EBC='+'   143
2014/08/24 09:36:34 Ap10Jv02 - HEX='90'   .......   .......   144
2014/08/24 09:36:34 Ap10Jv02 - HEX='91'   .......   EBC='j'   145
2014/08/24 09:36:34 Ap10Jv02 - HEX='92'   .......   EBC='k'   146
2014/08/24 09:36:34 Ap10Jv02 - HEX='93'   .......   EBC='l'   147
2014/08/24 09:36:34 Ap10Jv02 - HEX='94'   .......   EBC='m'   148
2014/08/24 09:36:34 Ap10Jv02 - HEX='95'   .......   EBC='n'   149
2014/08/24 09:36:34 Ap10Jv02 - HEX='96'   .......   EBC='o'   150
2014/08/24 09:36:34 Ap10Jv02 - HEX='97'   .......   EBC='p'   151
2014/08/24 09:36:34 Ap10Jv02 - HEX='98'   .......   EBC='q'   152
2014/08/24 09:36:34 Ap10Jv02 - HEX='99'   .......   EBC='r'   153
2014/08/24 09:36:34 Ap10Jv02 - HEX='9A'   .......   .......   154
2014/08/24 09:36:34 Ap10Jv02 - HEX='9B'   .......   EBC='}'   155
2014/08/24 09:36:34 Ap10Jv02 - HEX='9C'   .......   .......   156
2014/08/24 09:36:34 Ap10Jv02 - HEX='9D'   .......   .......   157
2014/08/24 09:36:34 Ap10Jv02 - HEX='9E'   .......   .......   158
2014/08/24 09:36:34 Ap10Jv02 - HEX='9F'   .......   .......   159
2014/08/24 09:36:34 Ap10Jv02 - HEX='A0'   .......   .......   160
2014/08/24 09:36:34 Ap10Jv02 - HEX='A1'   .......   .......   161
2014/08/24 09:36:34 Ap10Jv02 - HEX='A2'   .......   EBC='s'   162
2014/08/24 09:36:34 Ap10Jv02 - HEX='A3'   .......   EBC='t'   163
2014/08/24 09:36:34 Ap10Jv02 - HEX='A4'   .......   EBC='u'   164
2014/08/24 09:36:34 Ap10Jv02 - HEX='A5'   .......   EBC='v'   165
2014/08/24 09:36:34 Ap10Jv02 - HEX='A6'   .......   EBC='w'   166
2014/08/24 09:36:34 Ap10Jv02 - HEX='A7'   .......   EBC='x'   167
2014/08/24 09:36:34 Ap10Jv02 - HEX='A8'   .......   EBC='y'   168
2014/08/24 09:36:34 Ap10Jv02 - HEX='A9'   .......   EBC='z'   169
2014/08/24 09:36:34 Ap10Jv02 - HEX='AA'   .......   .......   170
2014/08/24 09:36:34 Ap10Jv02 - HEX='AB'   .......   .......   171
2014/08/24 09:36:34 Ap10Jv02 - HEX='AC'   .......   .......   172
2014/08/24 09:36:34 Ap10Jv02 - HEX='AD'   .......   .......   173
2014/08/24 09:36:34 Ap10Jv02 - HEX='AE'   .......   .......   174
2014/08/24 09:36:34 Ap10Jv02 - HEX='AF'   .......   .......   175
2014/08/24 09:36:34 Ap10Jv02 - HEX='B0'   .......   .......   176
2014/08/24 09:36:34 Ap10Jv02 - HEX='B1'   .......   .......   177
2014/08/24 09:36:34 Ap10Jv02 - HEX='B2'   .......   .......   178
2014/08/24 09:36:34 Ap10Jv02 - HEX='B3'   .......   .......   179
2014/08/24 09:36:34 Ap10Jv02 - HEX='B4'   .......   .......   180
2014/08/24 09:36:34 Ap10Jv02 - HEX='B5'   .......   .......   181
2014/08/24 09:36:34 Ap10Jv02 - HEX='B6'   .......   .......   182
2014/08/24 09:36:34 Ap10Jv02 - HEX='B7'   .......   .......   183
2014/08/24 09:36:34 Ap10Jv02 - HEX='B8'   .......   .......   184
2014/08/24 09:36:34 Ap10Jv02 - HEX='B9'   .......   .......   185
2014/08/24 09:36:34 Ap10Jv02 - HEX='BA'   .......   EBC='['   186
2014/08/24 09:36:34 Ap10Jv02 - HEX='BB'   .......   EBC=']'   187
2014/08/24 09:36:34 Ap10Jv02 - HEX='BC'   .......   .......   188
2014/08/24 09:36:34 Ap10Jv02 - HEX='BD'   .......   .......   189
2014/08/24 09:36:34 Ap10Jv02 - HEX='BE'   .......   .......   190
2014/08/24 09:36:34 Ap10Jv02 - HEX='BF'   .......   .......   191
2014/08/24 09:36:34 Ap10Jv02 - HEX='C0'   .......   EBC='{'   192
2014/08/24 09:36:34 Ap10Jv02 - HEX='C1'   .......   EBC='A'   193
2014/08/24 09:36:34 Ap10Jv02 - HEX='C2'   .......   EBC='B'   194
2014/08/24 09:36:34 Ap10Jv02 - HEX='C3'   .......   EBC='C'   195
2014/08/24 09:36:34 Ap10Jv02 - HEX='C4'   .......   EBC='D'   196
2014/08/24 09:36:34 Ap10Jv02 - HEX='C5'   .......   EBC='E'   197
2014/08/24 09:36:34 Ap10Jv02 - HEX='C6'   .......   EBC='F'   198
2014/08/24 09:36:34 Ap10Jv02 - HEX='C7'   .......   EBC='G'   199
2014/08/24 09:36:34 Ap10Jv02 - HEX='C8'   .......   EBC='H'   200
2014/08/24 09:36:34 Ap10Jv02 - HEX='C9'   .......   EBC='I'   201
2014/08/24 09:36:34 Ap10Jv02 - HEX='CA'   .......   .......   202
2014/08/24 09:36:34 Ap10Jv02 - HEX='CB'   .......   .......   203
2014/08/24 09:36:34 Ap10Jv02 - HEX='CC'   .......   .......   204
2014/08/24 09:36:34 Ap10Jv02 - HEX='CD'   .......   .......   205
2014/08/24 09:36:34 Ap10Jv02 - HEX='CE'   .......   .......   206
2014/08/24 09:36:34 Ap10Jv02 - HEX='CF'   .......   .......   207
2014/08/24 09:36:34 Ap10Jv02 - HEX='D0'   .......   EBC='}'   208
2014/08/24 09:36:34 Ap10Jv02 - HEX='D1'   .......   EBC='J'   209
2014/08/24 09:36:34 Ap10Jv02 - HEX='D2'   .......   EBC='K'   210
2014/08/24 09:36:34 Ap10Jv02 - HEX='D3'   .......   EBC='L'   211
2014/08/24 09:36:34 Ap10Jv02 - HEX='D4'   .......   EBC='M'   212
2014/08/24 09:36:34 Ap10Jv02 - HEX='D5'   .......   EBC='N'   213
2014/08/24 09:36:34 Ap10Jv02 - HEX='D6'   .......   EBC='O'   214
2014/08/24 09:36:34 Ap10Jv02 - HEX='D7'   .......   EBC='P'   215
2014/08/24 09:36:34 Ap10Jv02 - HEX='D8'   .......   EBC='Q'   216
2014/08/24 09:36:34 Ap10Jv02 - HEX='D9'   .......   EBC='R'   217
2014/08/24 09:36:34 Ap10Jv02 - HEX='DA'   .......   .......   218
2014/08/24 09:36:34 Ap10Jv02 - HEX='DB'   .......   .......   219
2014/08/24 09:36:34 Ap10Jv02 - HEX='DC'   .......   .......   220
2014/08/24 09:36:34 Ap10Jv02 - HEX='DD'   .......   .......   221
2014/08/24 09:36:34 Ap10Jv02 - HEX='DE'   .......   .......   222
2014/08/24 09:36:34 Ap10Jv02 - HEX='DF'   .......   .......   223
2014/08/24 09:36:34 Ap10Jv02 - HEX='E0'   .......   .......   224
2014/08/24 09:36:34 Ap10Jv02 - HEX='E1'   .......   .......   225
2014/08/24 09:36:34 Ap10Jv02 - HEX='E2'   .......   EBC='S'   226
2014/08/24 09:36:34 Ap10Jv02 - HEX='E3'   .......   EBC='T'   227
2014/08/24 09:36:34 Ap10Jv02 - HEX='E4'   .......   EBC='U'   228
2014/08/24 09:36:34 Ap10Jv02 - HEX='E5'   .......   EBC='V'   229
2014/08/24 09:36:34 Ap10Jv02 - HEX='E6'   .......   EBC='W'   230
2014/08/24 09:36:34 Ap10Jv02 - HEX='E7'   .......   EBC='X'   231
2014/08/24 09:36:34 Ap10Jv02 - HEX='E8'   .......   EBC='Y'   232
2014/08/24 09:36:34 Ap10Jv02 - HEX='E9'   .......   EBC='Z'   233
2014/08/24 09:36:34 Ap10Jv02 - HEX='EA'   .......   .......   234
2014/08/24 09:36:34 Ap10Jv02 - HEX='EB'   .......   .......   235
2014/08/24 09:36:34 Ap10Jv02 - HEX='EC'   .......   .......   236
2014/08/24 09:36:34 Ap10Jv02 - HEX='ED'   .......   .......   237
2014/08/24 09:36:34 Ap10Jv02 - HEX='EE'   .......   .......   238
2014/08/24 09:36:34 Ap10Jv02 - HEX='EF'   .......   .......   239
2014/08/24 09:36:34 Ap10Jv02 - HEX='F0'   .......   EBC='0'   240
2014/08/24 09:36:34 Ap10Jv02 - HEX='F1'   .......   EBC='1'   241
2014/08/24 09:36:34 Ap10Jv02 - HEX='F2'   .......   EBC='2'   242
2014/08/24 09:36:34 Ap10Jv02 - HEX='F3'   .......   EBC='3'   243
2014/08/24 09:36:34 Ap10Jv02 - HEX='F4'   .......   EBC='4'   244
2014/08/24 09:36:34 Ap10Jv02 - HEX='F5'   .......   EBC='5'   245
2014/08/24 09:36:34 Ap10Jv02 - HEX='F6'   .......   EBC='6'   246
2014/08/24 09:36:34 Ap10Jv02 - HEX='F7'   .......   EBC='7'   247
2014/08/24 09:36:34 Ap10Jv02 - HEX='F8'   .......   EBC='8'   248
2014/08/24 09:36:34 Ap10Jv02 - HEX='F9'   .......   EBC='9'   249
2014/08/24 09:36:34 Ap10Jv02 - HEX='FA'   .......   .......   250
2014/08/24 09:36:34 Ap10Jv02 - HEX='FB'   .......   .......   251
2014/08/24 09:36:34 Ap10Jv02 - HEX='FC'   .......   .......   252
2014/08/24 09:36:34 Ap10Jv02 - HEX='FD'   .......   .......   253
2014/08/24 09:36:34 Ap10Jv02 - HEX='FE'   .......   .......   254
2014/08/24 09:36:34 Ap10Jv02 - HEX='FF'   .......   .......   255

Table of Contents Previous Section Next Section The CMD Members

The following are the Windows Command files that will create a table that is used to convert strings containing binary characters to strings containing Hexadecimal Dump information with possible ASCII and EBCDIC display (or print) information.

Table of Contents Previous Section Next Section Display HEX Array to SYSOUT

The following is the Windows Command file (AP10JVW1.cmd) that is used to display a HEX Dump array to the standard SYSOUT device.

@echo OFF
rem  * *******************************************************************
rem  *               AP10JVW1.cmd - a Windows Command File               *
rem  *         This program is provided by SimoTime Technologies         *
rem  *           (C) Copyright 1987-2019 All Rights Reserved             *
rem  *             Web Site URL:   http://www.simotime.com               *
rem  *                   e-mail:   helpdesk@simotime.com                 *
rem  * *******************************************************************
rem  *
rem  * Text   - Display a Message to SYSOUT using Java.
rem  * Author - SimoTime Technologies
rem  * Date   - January 24, 1996
rem  *
rem  * *******************************************************************
rem  * Step 1, Set the Environment...
rem  *
     set CmdName=AP10JVW1
     call ..\ENV1BASE %CmdName%
     if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG
     set JobStatus=0000
rem  *
     call SimoNOTE "*******************************************************%CmdName%"
     call SimoNOTE "Starting CmdName %CmdName%"
rem  *
rem  * *******************************************************************
rem  * Step 2, Execute Java Program, display a message...
rem  *
     call SimoNOTE "CATALINA_HOME ... %CATALINA_HOME%"
     call SimoNOTE "JRE_HOME ........ %JRE_HOME%"
     call SimoNOTE "JAVA_HOME ....... %JAVA_HOME%"
     call SimoNOTE "CLASSPATH ....... %CLASSPATH%"
     call SimoNOTE "Continue AP88JCW1 Display a message from a Java Program..."
     java Ap10Jv01
     if not ERRORLEVEL = 0 set JobStatus=0010
     if not %JobStatus% == 0000 goto :EojNok
rem  *
rem  * *******************************************************************
rem  * Step 3, End of Job Processing... ...
rem  *
:EojAok
     call SimoNOTE "Finished JobName %CmdName%, Job Status is %JobStatus%"
     goto :End
:EojNok
     call SimoNOTE "ABENDING JobName %CmdName%, Job Status is %JobStatus%"
:End
     if not "%1" == "nopause" pause

Table of Contents Previous Section Next Section Write HEX Array to File

The following is the Windows Command file (AP10JVW2.cmd) that is used to write a HEX Dump array to a file.

@echo OFF
rem  * *******************************************************************
rem  *               AP10JVW2.cmd - a Windows Command File               *
rem  *         This program is provided by SimoTime Technologies         *
rem  *           (C) Copyright 1987-2019 All Rights Reserved             *
rem  *             Web Site URL:   http://www.simotime.com               *
rem  *                   e-mail:   helpdesk@simotime.com                 *
rem  * *******************************************************************
rem  *
rem  * Text   - Display a Message to SYSOUT using Java.
rem  * Author - SimoTime Technologies
rem  * Date   - January 24, 1996
rem  *
rem  * *******************************************************************
rem  * Step 1, Set the Environment...
rem  *
     set CmdName=AP10JVW2
     call ..\ENV1BASE %CmdName%
     if "%SYSLOG%" == "" set syslog=c:\SimoLIBR\LOGS\SimoTime.LOG
     set JobStatus=0000
rem  *
     call SimoNOTE "*******************************************************%CmdName%"
     call SimoNOTE "Starting CmdName %CmdName%"
rem  *
rem  * *******************************************************************
rem  * Step 2, Execute Java Program, display a message...
rem  *
     call SimoNOTE "CATALINA_HOME ... %CATALINA_HOME%"
     call SimoNOTE "JRE_HOME ........ %JRE_HOME%"
     call SimoNOTE "JAVA_HOME ....... %JAVA_HOME%"
     call SimoNOTE "CLASSPATH ....... %CLASSPATH%"
     call SimoNOTE "Continue AP88JCW2 Map logical file name to physical file,"
     call SimoNOTE "Continue AP88JCW2 ExecuteJava Program, Write Array Element to file."
     set HEXTABLE=%BASELIB1%\DATA\TXT1\SIMOTIME.DATA.HEXTABLE.txt
     java Ap10Jv02
     if not ERRORLEVEL = 0 set JobStatus=0010
     if not %JobStatus% == 0000 goto :EojNok
rem  *
rem  * *******************************************************************
rem  * Step 3, End of Job Processing... ...
rem  *
:EojAok
     call SimoNOTE "DataMAKE is %HEXTABLE% "
     call SimoNOTE "Finished JobName %CmdName%, Job Status is %JobStatus%"
     goto :End
:EojNok
     call SimoNOTE "ABENDING JobName %CmdName%, Job Status is %JobStatus%"
:End
     if not "%1" == "nopause" pause

Table of Contents Previous Section Next Section Java Source Members

The following are the Java Source Members that will create a table that is used to convert strings containing binary characters to strings contain Hexadecimal Dump information with possible ASCII and EBCDIC display or print) information.

Table of Contents Previous Section Next Section Display HEX Array to SYSOUT

The following is the Java Source Member (AP10JV01.java) that is required to display a HEX Dump array to the standard SYSOUT device.

/* ********************************************************** */
/* *              ap10jv01.java - a Java Program              */
/* *     This program is provided by SimoTime Technologies    */
/* *       (C) Copyright 1987-2017 All Rights Reserved        */
/* *         Originally released in December of 2001          */
/* *         Web Site URL:   http://www.simotime.com          */
/* *               e-mail:   helpdesk@simotime.com            */
/* ********************************************************** */
/* * The following table contains 256, 5-byte elements.
   *
   * The format of the table elements is as follows
   * Byte  Function
   *  1-2  Two-byte hexadecimal print value
   *    3  Print character for EBCDIC
   *    4  Print character for ASCII
   *    5  0 - non-printable
   *       1 - printable for EBCDIC
   *       2 - printable for ASCII
   *       3 - printable for Both
   *
   * Notice the technique used for an ASCII double-quote (X'22')
   * and an EBCDIC double-quote (X'7F'). The value content is
   * prece3dd by a \ for the definition of a double-quote within
   * a String variable.
   *
   * This program will define (create) an array.
 */

public class ap10jv01 {

   public static void main(String[] args) {
      String[]
                  hextable = {
                  "00..0", "01..0", "02..0", "03..0", "04..0", "05..0", "06..0", "07..0",
                  "08..0", "09..0", "0A..0", "0B..0", "0C..0", "0D..0", "0E..0", "0F..0",
                  "10..0", "11..0", "12..0", "13..0", "14..0", "15..0", "16..0", "17..0",
                  "18..0", "19..0", "1A..0", "1B..0", "1C..0", "1D..0", "1E..0", "1F..0",
                  "20. 2", "21.!2", "22.\"2", "23.#2", "24.$2", "25.%2", "26.&2", "27.'2",
                  "28.(2", "29.)2", "2A.*2", "2B.+2", "2C.,2", "2D.-2", "2E..2", "2F./2",
                  "30.02", "31.12", "32.22", "33.32", "34.42", "35.52", "36.62", "37.72",
                  "38.82", "39.92", "3A.:2", "3B.;2", "3C.<2", "3D.=2", "3E.>2", "3F.?2",
                  "40 @3", "41.A2", "42.B2", "43.C2", "44.D2", "45.E2", "46.F2", "47.G2",
                  "48.H2", "49.I2", "4A.J2", "4B.K3", "4Cn3", "6F?o3",
                  "70.p2", "71.q2", "72.r2", "73.s2", "74.t2", "75.u2", "76.v2", "77.w2",
                  "78.x2", "79`y3", "7A:z3", "7B#{3", "7C@.3", "7D'}3", "7E=~3", "7F\".1",
                  "80..0", "81a.1", "82b.1", "83c.1", "84d.1", "85e.1", "86f.1", "87g.1",
                  "88h.1", "89i.1", "8A..0", "8B{.1", "8C..0", "8D..0", "8E..0", "8F+.1",
                  "90..0", "91j.1", "92k.1", "93l.1", "94m.1", "95n.1", "96o.1", "97p.1",
                  "98q.1", "99r.1", "9A..0", "9B}.1", "9C..0", "9D..0", "9E..0", "9F..0",
                  "A0..0", "A1..0", "A2s.1", "A3t.1", "A4u.1", "A5v.1", "A6w.1", "A7x.1",
                  "A8y.1", "A9z.1", "AA..0", "AB..0", "AC..0", "AD..0", "AE..0", "AF..0",
                  "B0..0", "B1..0", "B2..0", "B3..0", "B4..0", "B5..0", "B6..0", "B7..0",
                  "B8..0", "B9..0", "BA[.1", "BB].1", "BC..0", "BD..0", "BE..0", "BF..0",
                  "C0{.1", "C1A.1", "C2B.1", "C3C.1", "C4D.1", "C5E.1", "C6F.1", "C7G.1",
                  "C8H.1", "C9I.1", "CA..0", "CB..0", "CC..0", "CD..0", "CE..0", "CF..0",
                  "D0}.1", "D1J.1", "D2K.1", "D3L.1", "D4M.1", "D5N.1", "D6O.1", "D7P.1",
                  "D8Q.1", "D9R.1", "DA..0", "DB..0", "DC..0", "DD..0", "DE..0", "DF..0",
                  "E0..0", "E1..0", "E2S.1", "E3T.1", "E4U.1", "E5V.1", "E6W.1", "E7X.1",
                  "E8Y.1", "E9Z.1", "EA..0", "EB..0", "EC..0", "ED..0", "EE..0", "EF..0",
                  "F00.1", "F11.1", "F22.1", "F33.1", "F44.1", "F55.1", "F66.1", "F77.1",
                  "F88.1", "F99.1", "FA..0", "FB..0", "FC..0", "FD..0", "FE..0", "FF..0"
                  };
      System.out.println("Length of hextable is " + hextable.length + " ");

      // Print all the elements in the Array
      for (int i = 0; i < hextable.length; i++) {
        String work05 = hextable[i];
        char[] asc07 = {'A', 'S', 'C', '=', '\'', '?', '\''};
        String newasc07 = ".......";
        char[] ebc07 = {'E', 'B', 'C', '=', '\'', '?', '\''};
        String newebc07 = ".......";

        char char00 = work05.charAt(0);
        char char01 = work05.charAt(1);
        char char02 = work05.charAt(2);
        char char03 = work05.charAt(3);
        char char04 = work05.charAt(4);

        switch (char04) {
          case '1' :
            ebc07[5] = char02;
            newebc07 = new String(ebc07);
          break;
          case '2' :
            asc07[5] = char03;
            newasc07 = new String(asc07);
          break;
          case '3' :
            ebc07[5] = char02;
            newebc07 = new String(ebc07);
            asc07[5] = char03;
            newasc07 = new String(asc07);
          break;
          default :
            newasc07 = ".......";
            newebc07 = ".......";
        }
        System.out.println("HEX='" + char00 + char01 + "'" + "   " + newasc07 + "   " + newebc07 + "   " + i + " ");
      }
    System.exit(0);
  }
}

Table of Contents Previous Section Next Section Write HEX Array to File

The following is the Java Source Member (AP10JV02.java) that is required to write a HEX Dump array to a file.

/* ********************************************************** */
/* *              ap10jv02.java - a Java Program              */
/* *     This program is provided by SimoTime Technologies    */
/* *       (C) Copyright 1987-2017 All Rights Reserved        */
/* *         Originally released in December of 2001          */
/* *         Web Site URL:   http://www.simotime.com          */
/* *               e-mail:   helpdesk@simotime.com            */
/* ********************************************************** */
/* This program will get the system date and time and write   */
/* a record to an existing file.                              */

import java.io.FileWriter;
import java.io.PrintWriter;
import java.io.IOException;

import java.util.Date;
import java.text.DateFormat;
import java.text.SimpleDateFormat;

public class ap10jv02
{
   public static void main(String[] args) throws IOException
   {
       PrintWriter outputStream = null;
       String usermessage;
           String filename;
           String[]
                           hextable = {
                          "00..0", "01..0", "02..0", "03..0", "04..0", "05..0", "06..0", "07..0",
                          "08..0", "09..0", "0A..0", "0B..0", "0C..0", "0D..0", "0E..0", "0F..0",
                          "10..0", "11..0", "12..0", "13..0", "14..0", "15..0", "16..0", "17..0",
                          "18..0", "19..0", "1A..0", "1B..0", "1C..0", "1D..0", "1E..0", "1F..0",
                          "20. 2", "21.!2", "22.\"2", "23.#2", "24.$2", "25.%2", "26.&2", "27.'2",
                          "28.(2", "29.)2", "2A.*2", "2B.+2", "2C.,2", "2D.-2", "2E..2", "2F./2",
                          "30.02", "31.12", "32.22", "33.32", "34.42", "35.52", "36.62", "37.72",
                          "38.82", "39.92", "3A.:2", "3B.;2", "3C.<2", "3D.=2", "3E.>2", "3F.?2",
                          "40 @3", "41.A2", "42.B2", "43.C2", "44.D2", "45.E2", "46.F2", "47.G2",
                          "48.H2", "49.I2", "4A.J2", "4B.K3", "4Cn3", "6F?o3",
                          "70.p2", "71.q2", "72.r2", "73.s2", "74.t2", "75.u2", "76.v2", "77.w2",
                          "78.x2", "79`y3", "7A:z3", "7B#{3", "7C@.3", "7D'}3", "7E=~3", "7F\".1",
                          "80..0", "81a.1", "82b.1", "83c.1", "84d.1", "85e.1", "86f.1", "87g.1",
                          "88h.1", "89i.1", "8A..0", "8B..0", "8C..0", "8D..0", "8E..0", "8F+.1",
                          "90..0", "91j.1", "92k.1", "93l.1", "94m.1", "95n.1", "96o.1", "97p.1",
                          "98q.1", "99r.1", "9A..0", "9B}.1", "9C..0", "9D..0", "9E..0", "9F..0",
                          "A0..0", "A1..0", "A2s.1", "A3t.1", "A4u.1", "A5v.1", "A6w.1", "A7x.1",
                          "A8y.1", "A9z.1", "AA..0", "AB..0", "AC..0", "AD..0", "AE..0", "AF..0",
                          "B0..0", "B1..0", "B2..0", "B3..0", "B4..0", "B5..0", "B6..0", "B7..0",
                          "B8..0", "B9..0", "BA[.1", "BB].1", "BC..0", "BD..0", "BE..0", "BF..0",
                          "C0{.1", "C1A.1", "C2B.1", "C3C.1", "C4D.1", "C5E.1", "C6F.1", "C7G.1",
                          "C8H.1", "C9I.1", "CA..0", "CB..0", "CC..0", "CD..0", "CE..0", "CF..0",
                          "D0}.1", "D1J.1", "D2K.1", "D3L.1", "D4M.1", "D5N.1", "D6O.1", "D7P.1",
                          "D8Q.1", "D9R.1", "DA..0", "DB..0", "DC..0", "DD..0", "DE..0", "DF..0",
                          "E0..0", "E1..0", "E2S.1", "E3T.1", "E4U.1", "E5V.1", "E6W.1", "E7X.1",
                          "E8Y.1", "E9Z.1", "EA..0", "EB..0", "EC..0", "ED..0", "EE..0", "EF..0",
                          "F00.1", "F11.1", "F22.1", "F33.1", "F44.1", "F55.1", "F66.1", "F77.1",
                          "F88.1", "F99.1", "FA..0", "FB..0", "FC..0", "FD..0", "FE..0", "FF..0"
                          };
       try
       {
           filename = "SIMOTIME.DATA.HEXNOTES.txt";
           outputStream = new PrintWriter(new FileWriter(filename, true));


           DateFormat df = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
           Date currentdatetime = new Date();

           usermessage = " Ap10Jv02 - ";

           // Print all the elements in the Array
           for (int i = 0; i < hextable.length; i++) {
             String work05 = hextable[i];
             char[] asc07 = {'A', 'S', 'C', '=', '\'', '?', '\''};
             String newasc07 = ".......";
             char[] ebc07 = {'E', 'B', 'C', '=', '\'', '?', '\''};
             String newebc07 = ".......";

             char char00 = work05.charAt(0);
             char char01 = work05.charAt(1);
             char char02 = work05.charAt(2);
             char char03 = work05.charAt(3);
             char char04 = work05.charAt(4);

             switch (char04) {
               case '1' :
                    ebc07[5] = char02;
                    newebc07 = new String(ebc07);
                  break;
               case '2' :
                    asc07[5] = char03;
                    newasc07 = new String(asc07);
                  break;
               case '3' :
                    ebc07[5] = char02;
                    newebc07 = new String(ebc07);
                    asc07[5] = char03;
                    newasc07 = new String(asc07);
                  break;
               default :
                 newasc07 = ".......";
                 newebc07 = ".......";
             }
             outputStream.println(df.format(currentdatetime) + usermessage + "HEX='" + char00 + char01 + "'" + "   " + newasc07 + "   " + newebc07 + "   " + i + " ");
           }

           // Close the output device
           outputStream.close();
           System.exit(0);
       }
       catch (Exception e)
       {
           e.printStackTrace();
           System.exit(1);
       }
   }
}

Table of Contents Previous Section Next Section Ancillary Functions

This suite of programs references other system and user members in order to function in a larger environment that includes other languages and sub-systems. The following link provides additional details.

Link to Internet   Link to Server   Explore How to use Common or Shared Routines that perform repetitive tasks in a consistent manner. This link will provide information about setting common environment variables and many other utilitarian tasks.

Table of Contents Previous Section Next Section Summary

This Java Program will define and display an array containing hexadecimal values to the standard output device or write a hex-dump array to a file. This document may be used to assist as a tutorial for new programmers or as a quick reference for experienced programmers.

In the world of programming there are many ways to solve a problem. This documentation and software were developed and tested on systems that are configured for a SIMOTIME environment based on the hardware, operating systems, user requirements and security requirements. Therefore, adjustments may be needed to execute the jobs and programs when transferred to a system of a different architecture or configuration.

SIMOTIME Services has experience in moving or sharing data or application processing across a variety of systems. For additional information about SIMOTIME Services or Technologies please contact us using the information in the  Contact or Feedback  section of this document.

Table of Contents Previous Section Next Section Software Agreement and Disclaimer

Permission to use, copy, modify and distribute this software, documentation or training material for any purpose requires a fee to be paid to SimoTime Technologies. Once the fee is received by SimoTime the latest version of the software, documentation or training material will be delivered and a license will be granted for use within an enterprise, provided the SimoTime copyright notice appear on all copies of the software. The SimoTime name or Logo may not be used in any advertising or publicity pertaining to the use of the software without the written permission of SimoTime Technologies.

SimoTime Technologies makes no warranty or representations about the suitability of the software, documentation or learning material for any purpose. It is provided "AS IS" without any expressed or implied warranty, including the implied warranties of merchantability, fitness for a particular purpose and non-infringement. SimoTime Technologies shall not be liable for any direct, indirect, special or consequential damages resulting from the loss of use, data or projects, whether in an action of contract or tort, arising out of or in connection with the use or performance of this software, documentation or training material.

Table of Contents Previous Section Next Section Downloads and Links

This section includes links to documents with additional information that are beyond the scope and purpose of this document. The first group of documents may be available from a local system or via an internet connection, the second group of documents will require an internet connection.

Note: A SimoTime License is required for the items to be made available on a local system or server.

Table of Contents Previous Section Next Section Current Server or Internet Access

The following links may be to the current server or to the Internet.

Note: The latest versions of the SimoTime Documents and Program Suites are available on the Internet and may be accessed using the Link to Internet icon. If a user has a SimoTime Enterprise License the Documents and Program Suites may be available on a local server and accessed using the Link to Server icon.

Link to Internet   Link to Server   Explore the Java Connection for examples of the various coding or programming techniques using the Java Software Development Kit from Oracle/Sun.

Link to Internet   Link to Server   Explore An Enterprise System Model that describes and demonstrates how Applications that were running on a Mainframe System and non-relational data that was located on the Mainframe System were copied and deployed in a Microsoft Windows environment with Micro Focus Enterprise Server.

Link to Internet   Link to Server   Explore The ASCII and EBCDIC Translation Tables. These tables are provided for individuals that need to better understand the bit structures and differences of the encoding formats.

Table of Contents Previous Section Next Section Internet Access Required

The following links will require an internet connection.

A good place to start is The SimoTime Home Page for access to white papers, program examples and product information. This link requires an Internet Connection

Explore The Micro Focus Web Site for more information about products (including Micro Focus COBOL) and services available from Micro Focus. This link requires an Internet Connection.

Table of Contents Previous Section Next Section Glossary of Terms

Link to Internet   Link to Server   Explore the Glossary of Terms for a list of terms and definitions used in this suite of documents and white papers.

Table of Contents Previous Section Next Section Contact or Feedback

This document was created and is maintained by SimoTime Technologies. If you have any questions, suggestions, comments or feedback please use the following contact information.

1. Send an e-mail to our helpdesk.
1.1. helpdesk@simotime.com.
2. Our telephone numbers are as follows.
2.1. 1 415 763-9430 office-helpdesk
2.2. 1 415 827-7045 mobile

 

We appreciate hearing from you.

Table of Contents Previous Section Next Section Company Overview

SimoTime Technologies was founded in 1987 and is a privately owned company. We specialize in the creation and deployment of business applications using new or existing technologies and services. We have a team of individuals that understand the broad range of technologies being used in today's environments. Our customers include small businesses using Internet technologies to corporations using very large mainframe systems.

Quite often, to reach larger markets or provide a higher level of service to existing customers it requires the newer Internet technologies to work in a complementary manner with existing corporate mainframe systems. We specialize in preparing applications and the associated data that are currently residing on a single platform to be distributed across a variety of platforms.

Preparing the application programs will require the transfer of source members that will be compiled and deployed on the target platform. The data will need to be transferred between the systems and may need to be converted and validated at various stages within the process. SimoTime has the technology, services and experience to assist in the application and data management tasks involved with doing business in a multi-system environment.

Whether you want to use the Internet to expand into new market segments or as a delivery vehicle for existing business functions simply give us a call or check the web site at http://www.simotime.com


Return-to-Top
Hexadecimal Array - Java Program, Hex with ASC and EBC
Copyright © 1987-2024
SimoTime Technologies and Services
All Rights Reserved
When technology complements business
http://www.simotime.com