|
|
| Author |
Message |
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 169 Location: Chennai
|
|
|
|
Hi,
Kindly suggest me how to change packed data in input file.
02 DB-DT-MTH-END PIC 9(5) COMP-3.
DB DT
MTH END
P 3
24-----
*******
-------
X'210F+
200
1F8
When i try to display that variable thru COBOL program it shows as DB-DT-MTH-END: 08213.
Now i want to test the same program for the value 08295. How to change the input file for
obtaining that new value.
Regards
R KARTHIK |
|
| Back to top |
|
 |
References
|
|
 |
arcvns
Senior Member
Joined: 17 Oct 2006 Posts: 710 Location: Chennai, India
|
|
|
|
Karthik,
How many records you want to update? |
|
| Back to top |
|
 |
arcvns
Senior Member
Joined: 17 Oct 2006 Posts: 710 Location: Chennai, India
|
|
|
|
Karthik,
If its is only for one or two, you can put a HEX ON and directly edit the file.
For e.g,
will get displayed as
'F' in the last byte represents a positive sign and you can update the rest. |
|
| Back to top |
|
 |
lokesh ranjan
New User
Joined: 29 Jul 2005 Posts: 1 Location: pune
|
|
|
|
Hi,
By doing Hex on is a good idea. Also you can create a copybook for that field.
01 group variable.
02 filler pic x(the length before that field).
02 DB-DT-MTH-END PIC 9(5) COMP-3.
02 filler pic x(the length after the field).
Then Using FILE-AID utility in mainframe the records can be edited.
Thanks,
Lokesh |
|
| Back to top |
|
 |
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 169 Location: Chennai
|
|
|
|
Hi,
Sorry for late reply, stuck up with other work.
| Quote: |
For e.g,
will get displayed as
|
But when i opened in File Master it displayed as 210F08 and not 08213F for the value 08213.
| Code: |
P 3
24-----
X'210F+
200
1F8
|
| Quote: |
Also you can create a copybook for that field
|
I am using layout for viewing files.
Please clarify,
R KARTHIK |
|
| Back to top |
|
 |
hchinnam
Active User
Joined: 18 Oct 2006 Posts: 68
|
|
|
|
Can you post your data in ISPF browse mode or view mode with HEX on.
If it is a VSAM, File-aid Browse mode(in CHAR) would do. |
|
| Back to top |
|
 |
|
|