COBOL data files, even variable length files, possess a maximum duration that is definitely fixed WHEN THE Plan IS Put together and that duration cannot be changed unless you recompile the plan.For a variable length document, each personal record duration can become anywhere up to the optimum record length (subject matter to system restrictions, of course).File INPUT-INTELLI-FILE in program LR930 had a record size of 12081.
![]() However, if the XCOM electricity is creating records that possess LRECL 133 then you have got a MAJOR problem. You finest option in like a case would end up being to change the XCOM process to power the created data files to each have got LRECL 12077. Otherwise, you COULD make use of an IEBGENER action to copy the information published from XCOM into a fixed file that will be defined ás RECFMVB,LRECL12081,BLKSIZE0 and alter your COBOL program to manage different duration records. Youd want to possess, presumably also reference-modified, a test for the last two bytes of information. Cobol Write File Code It InHaving said that, if as a developer, you anticipate that the insight can differ up to 12077 - with COBOL youve obtained no option -- tough code it in your program and JCL. FILE - CONTROL. SELECT CustomerFile ASSlGN TO 20141111-235959-CN-BEIJ.dat ORGANIZATION IS Series SEQUENTIAL. DATA Department. FILE Area. FD CustomerFile. 01 CustomerDetails. CustomerId PIC Times ( 10 ). CustomerName. 03 Lastname Picture A ( 20 ). Firstname PIC Back button ( 20 ). ![]() PROCEDURE DIVISION. Begin. Open up Insight CustomerFile Look at CustomerFile AT Finish Shift 1 TO Finish - OF - FILE Finish - READ IF Finish - OF - FILE 1 Close up CustomerFile Finish - IF MOVE 0 TO Finish - OF - FILE. PERFORM UNTIL Finish - OF - FILE 1 Screen CustomerId Area Lastname SPACE Firstname Look at CustomerFile AT END Shift 1 TO Finish - OF - FILE Finish - READ Finish - PERFORM End RUN. It can be something like mapping a data source desk to some Java class making use of ORM. Its like an instance of an confidential class in Coffee exceeded to some build.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |