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 Posted / 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 |
Post New Answer View All Answers
What is the local-storage section?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
How do you get the data to code the BMS macro?
What are various search techniques in cobol? Explain.
Write some characteristics of cobol as means of business language.
how can i see junk values in dclgen or in hostvariable of comp ?
What is the usage of comp fields in cobol?
What is the problem of ordered sequential files access?
Why occurs cannot be used in 01 level in COBOL?
how do you reference the rrds file formats from cobol programs
example for sub strings ? and refernce modifications whit output pls
1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?
In COBOL, what is the different between index and subscript?
What are the different types of condition in cobol and write their forms.
What is the difference between structured cobol programming and object alternativelyiented cobol programming?