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

REXX FTP issue


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
CICS fan

New User


Joined: 03 Apr 2008
Posts: 82
Location: United States

PostPosted: Wed Aug 04, 2010 5:33 pm
Reply with quote

I have written this small rexx to ftp from tso to windows.

Code:
/*REXX*/                                     
ddnftp = AA.bb.cc                   
filename = file.tobe.sent
server = nnn.nn.nn.nn
Queue "sendsite"                             
Queue "ascii"                               
Queue "cd temp"                             
Queue "put //dd:"ddnftp" "filename           
Queue "qui"                                 
x = Outtrap(x.)                             
"FTP "server" 21 (Exit=8"                   
retcode = rc                                 
x = Outtrap(Off)                             
Say RC                     


i am getting this error:

Code:
CEE5101C During initialization, the callable service BPX1MSS failed. The system
return code was 0000000156 , the                                               
***                                                                           
          reason code was 0B0C00FB . The application will be terminated.       
 CEE3798I ATTEMPTING TO TAKE A DUMP FOR ABEND U4093 TO DATA SET: SITUS02.D216.T1
733111.SITUS02                                                                 
 IGD101I SMS ALLOCATED TO DDNAME (SYS00116)                                     
         DSN (SITUS02.D216.T1733111.SITUS02               )                     
         STORCLAS (SITSC) MGMTCLAS (        ) DATACLAS (        )               
         VOL SER NOS= PSIT01                                                   
 IGD104I SITUS02.D216.T1733111.SITUS02                RETAINED,  DDNAME=SYS00116
 IEA822I COMPLETE TRANSACTION DUMP WRITTEN TO SITUS02.D216.T1733111.SITUS02     
 CEE3797I LANGUAGE ENVIRONMENT HAS DYNAMICALLY CREATED A DUMP.                 
 IEA995I SYMPTOM DUMP OUTPUT                                                   
   USER COMPLETION CODE=4093 REASON CODE=00000090                               
  TIME=17.33.11  SEQ=05528  CPU=0000  ASID=0071                                 
  PSW AT TIME OF ERROR  078D1000   8008FE40  ILC 2  INTC 0D                     
    ACTIVE LOAD MODULE           ADDRESS=0008C850  OFFSET=000035F0             
    NAME=CEEBINIT                                                               
    DATA AT PSW  0008FE3A - 00181610  0A0D47F0  B1081811                       
    AR/GR 0: 8C148EDE/00000000_84000000   1: 00000000/00000000_84000FFD         
          2: 00000000/00000000_00000090   3: 00000000/00000000_0B0C00FB         
          4: 00000000/00000000_0C9BF198   5: 00000000/00000000_80099818         
          6: 00000000/00000000_0C9BF198   7: 00000000/00000000_0C9BF648         
          8: 00000000/00000000_00000000   9: 00000000/00000000_04EA6E16         
          A: 00000000/00000000_00000004   B: 00000000/00000000_8008FD70         
 ***                                                                           
          C: 00000000/00000000_0C9C09B0   D: 00000000/00000000_0C9C6030   
          E: 00000000/00000000_80000000   F: 00000002/00000010_00000090   
  END OF SYMPTOM DUMP                                                     
                                                                         
 4093                                                                     
 IKJ56500I COMMAND SENDSITE NOT FOUND                                     
 IKJ56500I COMMAND ASCII NOT FOUND                                       
 IKJ56500I COMMAND CD NOT FOUND                                           
 IKJ56500I COMMAND PUT NOT FOUND                                         
 IKJ56500I COMMAND QUI NOT FOUND                                         
 ***                                                                     


can u please help on this?
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Aug 04, 2010 5:48 pm
Reply with quote

Does the id that this process ran under have FTP authority?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Wed Aug 04, 2010 5:51 pm
Reply with quote

As I understand it, the 0B0C00FB reason code indicates that your user id is not authorized to use Unix System Services (which is required to use FTP). If your site uses RACF, you need to contact your site security group and have an OMVS segment added to your user id. If you don't use RACF, there are equivalent things to be done but I don't know what they would be -- so, again, contacting your site security group would be your best option.
Back to top
View user's profile Send private message
CICS fan

New User


Joined: 03 Apr 2008
Posts: 82
Location: United States

PostPosted: Wed Aug 04, 2010 5:52 pm
Reply with quote

Oh, okay. Thank you Superk and Robert.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Wed Aug 04, 2010 5:56 pm
Reply with quote

Quote:
I have written this small rexx to ftp from tso to windows.
I didn't spot this statement first time around. Be aware that it is not possible to FTP from the mainframe to a desktop machine. FTP requires specialized software to be running on the machine you are connecting to, and desktop machines do not run that specialized software (except in very rare circumstances). If you are connecting to a Windows SERVER, that will be fine -- but connecting to a Windows DESKTOP will fail. Period.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Aug 04, 2010 5:56 pm
Reply with quote

Also ...

ddnftp = AA.bb.cc

that is NOT a valid DDNAME.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Aug 04, 2010 6:00 pm
Reply with quote

Robert, I don't know about you, but when someone posts a topic concerning an FTP issue, I usually immediately presume that they've already validated that they have the proper authority, network access to the target server(s), and that the server(s) they want to connect to are already setup for proper FTP access.
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 792
Location: Pennsylvania

PostPosted: Wed Aug 04, 2010 6:03 pm
Reply with quote

Kevin said:
Quote:

I usually immediately presume


You know what they say when you presume....

or is it assume?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Wed Aug 04, 2010 6:04 pm
Reply with quote

Kevin, I usually assume the same -- but when someone says they're wanting to FTP to "Windows", too many times they think they can FTP to their desktop.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Aug 04, 2010 6:05 pm
Reply with quote

Let me state it this way. Proper due diligence is expected from the poster, especially if they've been a long-time member.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Wed Aug 04, 2010 9:47 pm
Reply with quote

Hello,

And when someone is trying something "new" i'd suggest doing all of the steps manually first to make sure everything works as needed.

Then wrap the process with code to automate.

Sure makes diagnosing easier. . .
Back to top
View user's profile Send private message
prino

Senior Member


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

PostPosted: Wed Aug 04, 2010 9:57 pm
Reply with quote

Robert Sample wrote:
Quote:
I have written this small rexx to ftp from tso to windows.
I didn't spot this statement first time around. Be aware that it is not possible to FTP from the mainframe to a desktop machine. FTP requires specialized software to be running on the machine you are connecting to, and desktop machines do not run that specialized software (except in very rare circumstances). If you are connecting to a Windows SERVER, that will be fine -- but connecting to a Windows DESKTOP will fail. Period.


Actually, "specialized" is somewhat of an exaggeration, I use FileZilla Server, which is probably entry level software on an XP Pro box and that works without any problems. It is also pretty easy to set up: define a user with password, define a home directory, make sure your router/modem forwards port 21, and, optionally, get a pseudo-static IP address via one of the many free services that provide them, I use the free DynDNS client. That's it...
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Aug 04, 2010 10:31 pm
Reply with quote

... and I use Cerberus FTP Server (we're Windows/XP Professional). Never an issue, works great.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Thu Aug 05, 2010 12:28 am
Reply with quote

Hello,

All well and good for home use or if your organization permits turning your desktop into a server. . .

Many organizations do not permit individuals to load software onto their "work" pc and they also do not permit running an "ftp server" on a desktop.

When people ask how to get data from the mainframe for personal use, i suggest they "pull" from the mainframe rather than "push" to the desktop.

Another "solution" that has become popular is to send data as an attachment to an e-mail.
Back to top
View user's profile Send private message
purusothaman

New User


Joined: 17 Feb 2007
Posts: 39
Location: Chennai

PostPosted: Fri Mar 11, 2011 2:27 pm
Reply with quote

Hi,

I am aware that this thread is little old.. but still wanted to share my view.

I use simple DOS based Batch(.bat) file written in Notepad to GET and PUT files from/to Mainframe and Windows.
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Run rexx with JCL Job CLIST & REXX 1
No new posts Run rexx in batch job CLIST & REXX 7
No new posts Does anyone know rexx for VSE CLIST & REXX 3
No new posts TSO ALLOC In REXX Needs Improvement JCL & VSAM 3
No new posts REXX/CMS How to place command console... CLIST & REXX 4
Search our Forums:

Back to Top