/* Alternative 1: WORK.FORMATS                       */

libname library server=serverid slibref=work;

proc format library=library;
   value sexfmt 1='F' 2='M';
run;


/* Alternative 2: LIBRARY.FORMATS                    */

proc operate server=serverid;
alloc lib library 'data.set.name';
quit;

libname library server=serverid;
proc format library=library;
   value sexfmt 1='F' 2='M';
run;


/* Alternative 3: FMTSEARCH=                         */

fmtsearch=(test.userfmt)

proc operate server=serverid;
alloc lib test 'data.set.name';

libname test server=serverid;
options fmtsearch=(test.userfmt);
proc format library=test.userfmt;
   value sexfmt 1='F' 2='M';
run;