Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Problem with transferring .GIF images

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: Reply to: LRECL for sending images from mainframes.
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7236

PostPosted: Fri Sep 20, 2013 1:27 am    Post subject: Reply to: LRECL for sending images from mainframes.
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: 1738
Location: Bloomington, IL

PostPosted: Fri Sep 20, 2013 1:43 am    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7236

PostPosted: Fri Sep 20, 2013 1:53 am    Post subject: Reply to: LRECL for sending images from mainframes.
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

Active Member


Joined: 07 Feb 2009
Posts: 984
Location: Oostende, Belgium

PostPosted: Fri Sep 20, 2013 2:09 am    Post subject:
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    Post subject: Reply to: LRECL for sending images from mainframes.
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: 1738
Location: Bloomington, IL

PostPosted: Fri Sep 20, 2013 2:48 am    Post subject: Re: Reply to: LRECL for sending images from mainframes.
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: 1738
Location: Bloomington, IL

PostPosted: Fri Sep 20, 2013 7:54 pm    Post subject: Re: Reply to: LRECL for sending images from mainframes.
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    Post subject: Reply to: Problem with transferring .GIF images
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: 1738
Location: Bloomington, IL

PostPosted: Fri Sep 20, 2013 10:40 pm    Post subject: Re: Reply to: Problem with transferring .GIF images
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 pm
No new posts DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm
No new posts Problem with GETMAIN command amitc23 CICS 6 Thu Sep 01, 2016 1:01 pm
No new posts TXT2PDF problem - printing @ in PDF vipul65 All Other Mainframe Topics 9 Thu Aug 25, 2016 12:48 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us