Code Comments
Programming Forum and web based access to our favorite programming groups.Hi, Can you tell me whether we can access PDS member in Cobol program. If we can, what should be DD statement in JCL & File definition in Cobol program. Thanks Sameer.
Post Follow-up to this messageIn article <bf573a0d.0408130927.32ec065c@posting.google.com>, sameer <sameer_bon@rediffmail.com> wrote: >Hi, > > Can you tell me whether we can access PDS member in Cobol program. >If we can, what should be DD statement in JCL & File definition in >Cobol program. Please do your own homework. DD
Post Follow-up to this message> Can you tell me whether we can access PDS member in Cobol program. > If we can, what should be DD statement in JCL & File definition in > Cobol program. > > Thanks > Sameer. Jeez. It wouldn't take you more than 10 minutes to test this yourself. How the heck are we supposed to know what your file definition should look l ike? You didn't tell us anything about your dataset.
Post Follow-up to this messagesameer wrote: > Hi, > > Can you tell me whether we can access PDS member in Cobol program. > If we can, what should be DD statement in JCL & File definition in > Cobol program. > > Thanks > Sameer. //SYS001 DD DSN=SOME.PDS.NAME(MEMBER),DISP=SHR SELECT SYS001-INPUT-FILE ASSIGN TO SYS001. FD SYS001-INPUT-FILE BLOCK CONTAINS 0 RECORDS. 01 SYS001-INPUT-RECORD PIC X(80). What are you really trying to do? The example above will work, but doesn't cover all the possible cases. -- http://arnold.trembley.home.att.net/
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.