MAINFRAME - TIP OF THE DAY :
Q. If there is a situation, where we need to code more than 255 steps in a JOB?
A. We need to split jcl into two jcls , at the end of the first jcl check the condition code and initiate the second jcl.
Programmers Voted for below topics. Please Vote for good Posts.
Thank You! for your feedback. Connecting to the server. Please Wait...
Then send the Zip file as below using IEBGENER
CONTENT-DISPOSITION: ATTACHMENT; FILENAME=REPORT.ZIP
I got a Zip file as attachment. But it gives the error on opening it to Unzip.
CANNOT OPEN FILE: IT DOES NOT APPEAR TO BE A VALID ARCHIVE
Looks like the problem is with the Zip file on Mainframe and not with the E-Mail step. As the same error appears when i FTP the Zippped file to Windows and try Unzipping it.
Can anyone please let me know what parameters are to be added to properly Zip the file. And what should be the CONTENT-TYPE provided in the E-Mail step (Using IEBGENER or SAS)?
I can't help you with the PKZIP step unless you want to include some error messages or anything else that might help.
As far as using MIME for the attachment, I'm pretty sure a binary file would be coded as:
Now, I'm no MIME expert, and you can look this up just as easily as I can, but I think that you have to encode the attachment using BASE64 encoding. If I recall, SAS will properly encode the attachment without you needing to do anything special.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum