View previous topic :: View next topic
|
Author |
Message |
Vishnupriyan Pandiyan
New User
Joined: 26 Apr 2011 Posts: 16 Location: India
|
|
|
|
Hi,
After reading your I was interested in doing the same in my site, transferring a GIF image file to Mainframe in binary format and transfer it back to my PC it worked perfectly in the first go itself by using the FTP(transfer) option in the emulator.
But when I tried to send that binary file(gif transferred one) as a attachment through email(SMTP) I am getting the error as below.
And this is the JCL I used.
//STEP01 EXEC PGM=IKJEFT1B
//SYSEXEC DD DSN=SYS2.XMIT.EXEC,DISP=SHR
//OUTPUTT DD DSN=SAMPLE.FILE.GIF,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
%XMITIP (to address) -
From (from address) -
Subject "Image test" -
FILEDD (OUTPUTT) -
format (GIF) -
Msgdd BODYMSG
can you please help me fixing this out. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
It tells you on the last line what to do..
If you don't have authority to send images to/from the Mainframe, I'd not do it. Not the type of thing that the Security people enjoy. |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
Bill Woodger wrote: |
If you don't have authority to send images to/from the Mainframe, I'd not do it. Not the type of thing that the Security people enjoy. |
Is that an authority error? It looks more as if the XMITB64 module couldn't be found. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
No, I'm not saying that the error is a secuirty error.
I'm saying that transferring images to/from a Mainframe just to see how it works is not such a good thing to do unless your boss knows about it and is OK with it. The type of Security that arrives at someone's desk and escorts them and a single cardboard box from the building. |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
If you transfer files as binary, the LRECL should not matter. Just tried your original to RECFM=FB/VB LRECL=80/255/1024 datasets and back via IND$FILE, and they are byte-for-byte equivalent before and after, and I didn't expect anything else.
Your LRECL FB 10000.jpg has a CR/FL at offset 10,000, and that screws up the image. |
|
Back to top |
|
|
Vishnupriyan Pandiyan
New User
Joined: 26 Apr 2011 Posts: 16 Location: India
|
|
|
|
Hi Akatsukami,
Thanks for your quick response, I checked my SYSEXEC lib we have that XMITB64 in place, so it is not the problem I think.
@Prino, my Gif file have the attributes as below,
Organization . . . : PS
Record format . . . : FB
Record length . . . : 80
Block size . . . . : 6160
1st extent tracks . : 1
Secondary tracks . : 1
Thanks |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
Vishnupriyan Pandiyan wrote: |
I checked my SYSEXEC lib we have that XMITB64 in place, so it is not the problem I think. |
Has someone hacked that Rexx? I don't think that you'd attach an exec. |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
Akatsukami wrote: |
Vishnupriyan Pandiyan wrote: |
I checked my SYSEXEC lib we have that XMITB64 in place, so it is not the problem I think. |
Has someone hacked that Rexx? I don't think that you'd attach an exec. |
FWIW, I checked the XMITIP documentation, and XMITB64 is an assembler module; placing it in SYSEXEC is definitely not a good idea (nor is having an exec by the same name). |
|
Back to top |
|
|
Vishnupriyan Pandiyan
New User
Joined: 26 Apr 2011 Posts: 16 Location: India
|
|
|
|
Thanks Akatsukam, any advice how can I transfer a image if I don't have that XMITB64 module not there. |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
Vishnupriyan Pandiyan wrote: |
Thanks Akatsukam, any advice how can I transfer a image if I don't have that XMITB64 module not there. |
There are several possibilities that I can think of off-hand.
- Continue to use your emulator.
- Use FTP to transfer to/from a LAN, and a .BAT file, or Rexx, or some such, to transfer between the LAN and your PC.
- Send the file as an attachment using another means to send e-mail
Depending on your environment -- which of course I don't know -- there may be others. |
|
Back to top |
|
|
|