I have a PS file and I would like to manually insert the
binary values (like a COMP format) into the file. How can i
do that? the way do in COMP-3 format.. suppose i want to
insert -12345 in to file in comp-3 format. simply we can
open a file in edit mode and do HEX-ON and insert the
value .
SEE BELOW--
135
24D
in 3 bytes - this will be COMP-3 presenatation of -12345.
Answer / harsha
Create a layout(copybook) of your PS file. This layout
will have fields defined in COMP-3/COMP format etc...
Open the file in EDIT mode in File Manager/File Aid and
start inserting records.
Suppose first field on your PS file is defined as S9(5)COMP-
3. Now open the file in File Manager/File Aid, and insert
appropriate value. e.g. -12345. Save and close file.
Now open the file again in CHAR MOD(i.e. simply browse the
file) and put HEX ON, you will see the value below.
135
24D
It will occupy only three byte.
| Is This Answer Correct ? | 2 Yes | 0 No |
what is the minimum number of lines a Cobol program should have to successfully compile and run
11 Answers ABC, Societe Generale,
How do u sort the table for Search ALL? Is it only using ASCENDING KEY IS statement in occurs clause? If the data is input in non ascending order, will the ASC KEY IS automatically sort the data? or will it throw compile time error?
What is Static and Dynamic linking ?
what is the meaning of pic 9(09)v99-
9(2).99 how many bytes take? Why . consider as a byte?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
how will u find out 3rd week's 2nd day using occurs ?
i want to learn mainframes. i completed MCA ,whats the future of mainframes
What is the different between index and subscript?
what is the advantage of using redefines instead of delaring the variables ?
what is srange and nosrange pls reply to ths question ?