Try out:
ds= dataset(ones(50),name='onez') formatDataSet('/tmp/jbf/foo.sav?name=ones',ds)
I think the name should be "ones" and not "onez"...