Thanks for the responses!
Option1 is working to send the multiple files without ZIP.
And the below code has not worked for option2 i.e to ZIP the the multiple file.Its just added one file to ZIP file.
//SYSIN DD *
-ECHO
-ACTION(ADD)
-ARCHIVE_OUTFILE(ZIPFILE)
-ARCHIVE_OUTFILE(ZIPFILE1)
-COMPRESSION_LEVEL(NORMAL)
-DATA_DELIMITER(CR)
-DATA_TYPE(TEXT)
-FILE_EXTENSION(DROP|SUFFIX|NAMEFILE)
-FILE_TERMINATOR(CR)
-INFILE(INFILE)
-INFILE(INFILE1)
-ZIPPED_DSN(**,WINDOWS_FILE_NAME)
/*
And the below SAS control card is not working to tranmit the ZIP file.
FILENAME EMFILE EMAIL
FROM = ('[email protected]')
TO = ('[email protected]')
CC = ('[email protected]')
REPLYTO=('[email protected]')
SUBJECT='SOME SAMPLE TEST REPORT'
ATTACH=('WINDOWS_FILE_NAME' CT='APPLICATION/ZIP' NAME='Monthly report' EXT='ZIP');
DATA _NULL_;
FILE EMFILE;
PUT 'just look at this awesome attachment';
PUT 'THE EMAIL ENDS NOW ';
RUN;
/*
Getting the below Errors:
ERROR: Error in the FILENAME statement.
ERROR: Physical file does not exist, XBBLG8X.EMFILE.DATA.
NOTE: The SAS System stopped processing this step because of errors.
How To Zip Two Files Together
Step2: Create a ZIP file to inlude all 9 files Step3: Send the ZIP file created from second step to the requester through Mainframe SAS. I am aware to send a file alone via Mainframe SAS but not aware to send the ZIP file having multiple files. Zipping Multiple Files Use 'Windows Explorer' or 'My Computer' ('File Explorer' on Windows 10) to locate the files you wish to zip. (It will help if you move all the files you wish to zip to a single location.) Hold down Ctrl on your keyboard Click on each file you wish to combine into a zipped file. Python’s zip function creates an iterator that will aggregate elements from two or more iterables. You can use the resulting iterator to quickly and consistently solve common programming problems, like creating dictionaries.In this tutorial, you’ll discover the logic behind the Python zip function and how you can use it to solve real-world problems. The man page of zip says you can specify file. on the command line. This notation says you can specify multiple files separated by spaces, like this: zip a.zip a.txt b.txt c.txt You can also utilize pathname expansion. The shell will replace wildcards used in the filename with all matching filenames. Example: zip a.zip.txt. The quickest way to create a zip file is to place all of the files that you want to archive into one folder. Stronghold 2 steam edition skidrow. You can place multiple files and folders into the folder that you are creating the ZIP file from. Rename the folder to whatever you want the ZIP file to be named.