BookmarkSubscribeRSS Feed
makata
Calcite | Level 5

Hi,

 

I am emailiing  mainframe PS file as  attachment in excel file format.

the excel file name is more than 31 chars for ex ."Test format pro marketing - All - time test data for verification".

 

when i opened the file using excel the work book name is proper,however sheet is truncated at 31 char for ex "Test format pro marketing - All - t"

 

How to set the excel sheet name different from theexcel  work book while sending email attachemnt from mainframes.

 

Please suggest.

3 REPLIES 3
makata
Calcite | Level 5

Hi,

Thanks for quick response..

is it possible to set workbook name and sheet name different..

for a given Mainframe file name - test.sample

 

for ex. work book name as sample.xlsx

worksheet name as sheettest

 

Thanks

Mallik

Kurt_Bremser
Super User

I have no idea if libname xlsx works on a mainframe; if it does (SAS/ACCESS to PC Files must be installed and licensed), you can treat the workbook like a SAS library, and each "dataset" written to it will be a sheet.

How you address a Excel file on the mainframe is a different beast, though. See "z/OS file catalog".

 

FWIW, I never ever export to Excel directly, I always use csv as transfer format. Textuality rules. Let the recipients cobble the data together in Excel, if they want.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 900 views
  • 0 likes
  • 2 in conversation