77 D PIC X(64) . . . 77 L PIC S9(4) BINARY. . . . MOVE D (1:L) TO wherever . . . DISPLAY D (1:L)
IBM Mainframe Discussion List <IBM-MAIN@BAMA.UA.EDU> wrote on 10/09/2006 05:24:27 PM: > I know this isn't the COBOL list. I'm not a COBOL programmer, so it all > works out. I'm writing a quick COBOL test program. I've got a PIC X(64) > field but the actual length of the data in the field is in a separate S9(4) > field. I want to display the real data and not whatever garbage might be > beyond the real data. Is there any easy way to do this? ----------------------------------------- The information contained in this communication (including any attachments hereto) is confidential and is intended solely for the personal and confidential use of the individual or entity to whom it is addressed. The information may also constitute a legally privileged confidential communication. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this communication in error and that any review, dissemination, copying, or unauthorized use of this information, or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. Thank you ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html