1. How can a COBOL program handle an input file with a variety of fixed (?) record lengths.
- Write small Hlasm program that returns record pointer and length. It can handle all RECFM. - Multiple file definitions, each defined as OPTIONAL. Open each and look at file status to see which one is really there. I've done both methods but prefer former as it is universal. 2. The people who do encryption tell me they have a software package to do such from Cobol. They said it would take too long to explain the details. IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> wrote on 10/18/2012 02:06:48 PM: > From: Charles Mills <charl...@mcn.org> > To: IBM-MAIN@LISTSERV.UA.EDU, > Date: 10/18/2012 02:07 PM > Subject: Re: File Processing > Sent by: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> > > Two problems here, right? > 1. How can a COBOL program handle an input file with a variety of fixed (?) record lengths. > > 2. How can a COBOL program encrypt a field? > > Answers: > > 1. I'm not much of a COBOL guy but I am going to guess you need > three different FD's and a PARM= that tells it which one to use. > > 2. A major topic of its own. Ron, any idea what sort of API or > package you intend to use to do this? IBM? Third-party? Have you > thought about password management? Public key? Private key? Would > perhaps just masking the number -- making it unreadable to the > average guy or gal -- be sufficient? > > Is there an API to encrypt a field with crypto services? > -----Original Message----- > From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU > I have a requirement where the input file is comming from a thrid > party system and each of the files is having different logical > record lengths. Once the file cam i have to use the file and > encrypt the customer number that is there. Please let me know how in > a single cobol program we can acheive the same? > > Regards > Ron T ----------------------------------------- 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. 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 lists...@listserv.ua.edu with the message: INFO IBM-MAIN