Application Development 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: 

Dataset - How long does the data stay inside?

Former Member
0 Kudos
141

Hi,

After transferring data to a dataset, how long does the data stay inside the dataset? How long is the dataset named once it is named?

Thanks,

John

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor
0 Kudos
77

dataset if a file on the server, so it remains forever except if you delete it...

3 REPLIES 3

Sandra_Rossi
Active Contributor
0 Kudos
78

dataset if a file on the server, so it remains forever except if you delete it...

0 Kudos
77

The problem that I has is that when I run this program less that a minute after running it, the dataset information is no longer there, not even its name:

DATA: par_file5 LIKE ifibl_aux_fields-allgunix. "Filename

DATA: V1(5) TYPE C VALUE 'HELLO',

V2(5) TYPE C.

IF par_file5 EQ space. "Kein Dateiname wurde angegeben

par_file5 = sy-repid. "--> Namen generieren

par_file5+8 = '.'.

WRITE sy-datlo TO par_file5+9(6) YYMMDD.

par_file5+15 = '.'.

par_file5+16 = sy-timlo.

CONDENSE par_file5 NO-GAPS.

ENDIF.

OPEN DATASET par_file5 FOR OUTPUT IN TEXT MODE ENCODING NON-UNICODE.

TRANSFER V1 TO par_file5.

CLOSE DATASET par_file5.

OPEN DATASET par_file5 FOR OUTPUT IN TEXT MODE ENCODING NON-UNICODE.

READ DATASET par_file5 INTO V2.

CLOSE DATASET par_file5.

0 Kudos
77

When you read, open the file with FOR INPUT !