Anmelden

View Full Version : CLRPFM per FTP möglich



bettina_martin
10-05-11, 14:41
hi,

ich hole mir von einem SAP-Server via FTP Daten von einer anderen AS/400 ab mit get.

Nun möchte ich aber die Daten danach löschen um ein nochmaliges Abholen auszuschließen.

Mit einem "delete lib/file.member" wird jedoch der MEMBER komplett gelöscht, das will ich auch nicht !

weiß wer ob ich mittels FTP den Inhalt eines Members löschen kann ?

lg Martin

Andreas Herzfeldt
10-05-11, 15:00
Hallo Bettina, das geht per FTP mit dem "rcmd" :

ftp> bin
200 Representation type is binary IMAGE.
ftp> cd Bibliotehk
250 "BIBLIOTHEK" is current library.
ftp> quote rcmd clrpfm BIBLIOTHEK/DATEI
250 Command clrpfm actsys/splovlp successful.

MFG

Andreas

bettina_martin
10-05-11, 15:10
Hallo Andreas,

suuuuuper, das passt perfekt !!! :) :)

wie weiß das Command aber welchen member ich clearen will falls es mehrere gibt ?

lg

Andreas Herzfeldt
10-05-11, 15:24
Hallo Bettina, na eben wie der Syntax auf dem system-i :

ftp> bin
200 Representation type is binary IMAGE.
ftp> cd BIBLIOTHEK
250 "BIBLIOTHEK" is current library.
ftp> quote rcmd clrpfm file(bibliothek/datei) mbr(teildatei)
250 Command clrpfm file(bibliothek/datei) mbr(teildatei) successful.


MFG
Andreas