I want to know if it is possible to create hdat format file without take the step of loading in memory the dataset first and then save as hdat. I'm a developer on SAS Viya 3.5 Linux.
The only way I know of writing a SASHDAT file format in Viya is to save a CAS table as SASHDAT. You're going to have to load the original data table somehow - either with a DATA step or PROC COPY or the like, so why not just load it into CAS and save it out as SASHDAT? Should be pretty efficient...