Addition 4
... IN BINARY MODE
Effect
The contents of the file are not interpreted by the read and write operations READ DATASET and TRANSFER . The data areas specified with these key words are directly input or output. The addition IN BINARY MODE does not have to be specified explicitly.
Addition 5
... IN TEXT MODE
Effect
If a file is opened with this addition, the system assumes that the file has a line structure. Each time READ DATASET or TRANSFER occurs, exactly one line is input or output. If the data area is too big for the line read, the remaining area is padded with blanks. If it is too small, the remainder of the line is lost.
Addition 6
... AT POSITION pos
Effect
This addition allows you to specify an explicit file position pos in bytes from the start of the file. The next read or write operation then occurs there. You cannot specify a position before the start of the file.
Although this addition can also be used with the addition IN TEXT MODE , it makes little sense, because the physical format of a text file depends largely on the operating system.
Addition 7
... TYPE attr
Effect
In the field attr , you can specify further file attributes. The contents of this field are passed unchanged to the operating system. No checks are performed. See the documentation of the fopen command for the relevant operating system.
Example
Generate a MVS file " 'QXX.YYY' " with the specified
attributes. (The apostrophes ['] are part of the file name.):
OPEN DATASET '''QXX.YYY'''
TYPE 'lrecl=80, blksize=8000, recfm=F'
FOR OUTPUT.
Addition 8
... MESSAGE msg
Effect
Stores the relevant operating system message in the field msg if an error occurs when opening the file.
Example
DATA: DSN(20) VALUE '/usr/test',
MSG(100).
OPEN DATASET DSN FOR INPUT MESSAGE MSG.
IF SY-SUBRC <> 0.
WRITE: / MSG.
STOP.
ENDIF.
Addition 9
... FILTER filter
Effect
Under UNIX and Windows NT, you can specify an operating
system command in the field filter .
Example
Under UNIX
DATA DSN(20) VALUE '/usr/test.Z'.
OPEN DATASET DSN FOR OUTPUT FILTER
'compress'.
opens the file DSN and writes the output data to this file via the UNIX command 'compress'.
ABAP TOPIC WISE COMPLETE COURSE
BDC OOPS ABAP ALE IDOC'S BADI BAPI Syntax Check
Interview Questions ALV Reports with sample code ABAP complete course
ABAP Dictionary SAP Scripts Script Controls Smart Forms
Work Flow Work Flow MM Work Flow SD Communication Interface
OTHER PROGRAMMING COURSES:
Dot Net Complete Course Part one and two ASP.NET part one and two
Programming with C and C Sharp
Interview Questions in dot net and asp.net part one part two
Software Testing Complete course part one and two and Interview Questions
Team blog recent posts
ALE EDI work flow and work item
ABAP Syntax for On
Software testing prospective
SHM and Simple Pendulum(physics)
Thank you for visiting SAP ABAP REPORTS.If you liked the post, please subscribe to RSS FEED or get the updates directly into your mail box through EMAIL SUBSCRIPTION.You can contact me at d_vsuresh[at the rate of]yahoo[dot]co[dot]in for any specific feed back.