View previous topic :: View next topic |
Author |
Message |
Nimesh Srivastava Beginner

Joined: 22 Jul 2003 Posts: 13 Topics: 8
|
Posted: Fri Jul 25, 2003 3:22 am Post subject: How to open file in MVS using C/C++ |
|
|
Hi,
I am trying to open a file in MVS env using C/C++ standard fopen command. Is is possible to open a file using fopen in MVS.
I tried for both a PDS member and a PS fileset, but it failed.
The command I gave was
FILE *fp = fopen("DD:NCS.DBS.TSTFLE","r"); for PS
and
FILE *fp = fopen("DD:NCS.DBS.SOURCE(TSTFLE)","r"); for PDS
they both failed.
Can anybody please help me on this??? |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
Nimesh Srivastava Beginner

Joined: 22 Jul 2003 Posts: 13 Topics: 8
|
Posted: Sun Jul 27, 2003 11:57 pm Post subject: |
|
|
Thanks kolusu,
I tried on
fp = fopen("\'NCS.DBS.TSTFLE\'","r");
and I was able to open the PS file in MVS env |
|
Back to top |
|
 |
|
|