Hi:
Options LS and PS are essentially ignored for ODS destinations. They are LISTING destination or LISTING window options. So, for ODS PDF (and RTF and HTML) the concept of FILE PRINT is not one that works for ODS in the same way that worked for LISTING window output.
There is no concept of "LINESLEFT" anywhere but the LISTING window and you may find that PUT _PAGE_ does not work with ODS PDF (or RTF or HTML) the way you expect.
Your PAPERSIZE options and ORIENTATION would have an impact on PDF, as would the MARGIN options. Since you ask for both PAPERSIZE=LEGAL, followed by PAPERSIZE=LETTER, it is the last setting that "wins".
The LISTING destination and FILE PRINT, give you a way to address the whole output area as though it were a piece of graph paper. However, techniques (such as LINESLEFT, PUT @15, PUT @32, etc) that work with the LISTING destination do not work with ODS or if they do work, will generally produce undesirable results.
These Tech Support Notes may cast some light on the issues involved.
http://support.sas.com/kb/14/766.html
http://support.sas.com/kb/5/486.html
http://support.sas.com/kb/24/256.html
http://support.sas.com/kb/24/606.html
http://support.sas.com/kb/25/414.html
http://support.sas.com/kb/23/661.html
If your report is basically tabular in structure, you may want to use other techniques to force only 35 observations/records per sheet (such as PROC PRINT or PROC REPORT or FILE PRINT ODS and PUT _ODS_). I don't know what you mean by "when I put following codes, it print 35 records per page and it print 2 or more pages in a sheet" however, that sounds like undesirable results to me. You may want to work with Tech Support on this issue.
cynthia