Bernd,
Yes, that will work.? You do not have to use MOVEFILE.? You can write your own program to read the records from the FILEDEF dataset.? If you do, you must use OS-style macros (e.g., GET/PUT or READ/WRITE) so as to use the OS simulation support built into CMS.? Compiled PASCAL will be using OS macros so you should be good to go.
This is not just limited to PDS datasets either.? You can read in sequential files too, with F, V or U records; just leave off the MEMBER option on the filedef.
Regards,
Bob