Just out of curiosity, wouldn't it be faster and safer to create very short versions of your routines. Have the COBOL routine just pass a few test values to the HLASM routine. Have the HLASM routine move the data to a work area and take a snap dump. Then you would know exactly what data looks like.
> -----Original Message----- > From: IBM Mainframe Discussion List [mailto:[email protected]] On > Behalf Of Scott Ford > Sent: Wednesday, September 17, 2014 10:05 AM > To: [email protected] > Subject: Data Conversion > > 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 … ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
