IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Problem with transferring .GIF images


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Vishnupriyan Pandiyan

New User


Joined: 26 Apr 2011
Posts: 16
Location: India

PostPosted: Fri Sep 20, 2013 1:22 am
Reply with quote

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
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Sep 20, 2013 1:27 am
Reply with quote

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
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Fri Sep 20, 2013 1:43 am
Reply with quote

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
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Sep 20, 2013 1:53 am
Reply with quote

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
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Fri Sep 20, 2013 2:09 am
Reply with quote

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
View user's profile Send private message
Vishnupriyan Pandiyan

New User


Joined: 26 Apr 2011
Posts: 16
Location: India

PostPosted: Fri Sep 20, 2013 2:23 am
Reply with quote

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
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Fri Sep 20, 2013 2:48 am
Reply with quote

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
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Fri Sep 20, 2013 7:54 pm
Reply with quote

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
View user's profile Send private message
Vishnupriyan Pandiyan

New User


Joined: 26 Apr 2011
Posts: 16
Location: India

PostPosted: Fri Sep 20, 2013 10:18 pm
Reply with quote

Thanks Akatsukam, any advice how can I transfer a image if I don't have that XMITB64 module not there.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Fri Sep 20, 2013 10:40 pm
Reply with quote

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.
  1. Continue to use your emulator.
  2. 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.
  3. 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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts z/vm installation problem All Other Mainframe Topics 0
No new posts Job scheduling problem. JCL & VSAM 9
No new posts Problem with IFTHEN=(WHEN=GROUP,BEGIN... DFSORT/ICETOOL 5
No new posts Need to add field to copybook, proble... COBOL Programming 14
Search our Forums:

Back to Top