![]() There are techniques available to use the same FD to process more than one dataset using earlier COBOL compilers, unfortunately I don't recall where I saw them. If Enterprise COBOL is available in your shop you can use a new facility called "environment(al?) variables" which you can use to repeatedly open and close the same FD (that defines the PDS, not the directory) and change the member name before each OPEN. You can use these to determine all the member names in the PDS. The following link shows the layout of the directory blks of a PDS. In your COBOL pgm treat the file as an undefined sequential file. ![]() Specify the file DCB as RECFM=U and BLKSIZE=256. You can access the directory of a PDS by defining it in your JCL as DSN=your.pdsname but with no member name.
0 Comments
Leave a Reply. |