Packed Integer for Sequential File
Moderators: chulett, rschirm, roy
Packed Integer for Sequential File
My task is to extract data from DB (defined as Decimal (16,0)) and create a sequential file for mainframe. My target format is packed integer. I understand I need to do a conversion first. But how do I define packed integer in the file?
-
- Premium Member
- Posts: 252
- Joined: Mon Sep 19, 2005 10:28 pm
- Location: Melbourne, Australia
- Contact:
In the online help, search on OCONV. Go to the Conversion Codes link and look at the MP conversion code.
It could be as simple as
You would probably need to set the output type to binary with a length of the number of bytes required.
In case you hadn't guessed, I've never tried it. Good luck though.
It could be as simple as
Code: Select all
Oconv(LK_in.my_integer, "MP")
In case you hadn't guessed, I've never tried it. Good luck though.
Ross Leishman