Try using -tab before your select.. Dsmadmc id=someid pa=somepw -tab "select domain_name,description from domains" > somefile