Skip to Content
0
Former Member
Dec 26, 2007 at 06:09 AM

In OPEN DATASET Statement Filenames are platform-specific How to specify MS

264 Views

In OPEN DATASET Statement

Filenames are platform-specific. You must therefore use file- and pathnames that conform to the rules of the operating system under which your R/3 System is running. However, you can also use logical filenames to ensure that your programs are not operating system-specific. For further information, refer to Using Platform-Independent Filenames.

DATA FNAME(60).

FNAME = '/tmp/myfile'.

OPEN DATASET 'myfile'.

OPEN DATASET FNAME.

This example works as long as your R/3 System is running under UNIX. The program opens the file "myfile" in the directory in which the R/3 System is running, and also opens the file "myfile" in directory "/tmp".

FNAME = '[TMP]myfile.BIN'

OPEN DATASET 'myfile.BIN'.

question]] How to specify an MS-file & how to go about?