Home > Archive > Cobol > August 2004 > Partitioned Dataset
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Partitioned Dataset
|
|
| sameer 2004-08-13, 3:55 pm |
| 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.
| |
| docdwarf@panix.com 2004-08-13, 3:55 pm |
| In 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
| |
|
| > 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 like?
You didn't tell us anything about your dataset.
| |
| Arnold Trembley 2004-08-14, 3:55 am |
|
sameer 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/
|
|
|
|
|