I think you are saying you want to convert C'241' to X'F1'. If that is the case, then use CVD followed by CVB. Don't forget to validate the data prior to conversion.
Jon Perryman On Wednesday, September 17, 2014 10:06 AM, Scott Ford <[email protected]> wrote: > > >Guys/Gals: > > >I have a fundamental question to ask. We have a Cobol routine passing a set of >parms ..one of the parms is a number PIC 999. > >The called program is in HLASM and receives the parms and we have WORKAREA >dsect setup and address it with a using. > >My issue is I must convert this PIC 999 field to a DC x’00’ field in >Assembler. Is my assumption correct that at I have to translate the PIC 999 >with a TROT or TR with a hex table to build the DC x’00’ field ? If I am >passing 241 , the hex value I am expecting is x’F1’. I must be > >able to convert a range from 128-255 … > > > > >I appreciate any help …I want to just make sure my thinking is correct. > > >Regards, > >Scott > >www.identityforge.com > >---------------------------------------------------------------------- >For IBM-MAIN subscribe / signoff / archive access instructions, >send email to [email protected] with the message: INFO IBM-MAIN > > > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
