Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

OPEN DATASET Statement +possible+OPEN IN BINARY MODE+TEXT MODE + INPUT

Former Member
0 Likes
669

During a OPEN DATASET Statement is it possible that in the same program:-

There are some OPEN DATASET Statement that OPEN IN BINARY MODE & some that OPEN IN TEXT MODE for the statement

OPEN DATASET FOR INPUT

4 REPLIES 4
Read only

Former Member
0 Likes
597

It is very Much Possible.

Open a Dataset, Process the file ( Read/write....) and close the Dataset.

Now Open the next Dataset.

You shud be fine.

Vinodh Balakrishnan

Read only

0 Likes
597

and for the same dataset?

Read only

0 Likes
597

Hi learner,

>

> and for the same dataset?

if the question is "can we open a file in text mode and in mode" at the same time it is the same as "can we cross the street at red light and green light at the same time?"

Answer: Try it to believe it!

Regards,

Clemens

Read only

Clemenss
Active Contributor
0 Likes
597

Hi learner,

the number of files open at the same time may be restricted by operating system conditions. For each single file the mode can be different.

If the OPEN DATASET statement is missing, the OPEN will be done implicitly in BINARA MODE with the first READ DATASET or TRANSFER command.

This information is available at F1.

Regards,

Clemens