help with REXX FTP

Ask/Clarify the questions on TSO, CLIST & REXX

Moderators: Veera, Moderator Group

Post Reply
Manjusha
Member
Posts: 1
Joined: Wed Jun 11, 2014 2:42 pm
Location: Bangalore

help with REXX FTP

Post by Manjusha » Thu Jun 12, 2014 11:39 am

I want to FTP few set of files from Mainframes to Windows Location. I am trying the below code,
--------------------------------------------------------------------
MAIN:
Say "main section started"

server = 'xx.xxx.xxx.xxx'
Queue "User_ID"
Queue "Password"
Queue "locsite encoding=mbcs"
Queue "locsite mbdataconn=(IBM-285,UTF-8)"
Queue "cd Folder1/Test"
Queue "put //dd:mainframe_file windows_file.txt"
Queue "qui"
x = Outtrap(x.)
"FTP "server" 21 (Exit=8"
retcode = rc
x = Outtrap(Off)
Say RC

Return

-----------------------------------------------------------------------------

Ans I am submitting the job,

//XMLREXX JOB (,,USERID,),USERID,TIME=(10,59),NOTIFY=&SYSUID,
// REGION=0M,
// USER=USERID,
// CLASS=A
//REXX3 EXEC PGM=IKJEFT01,
// PARM='ISPSTART CMD(FTP)'
//SYSEXEC DD DSN=ISTEST.PROJ.GWM.REXX,DISP=SHR
//SYSPROC DD DISP=SHR,DSN=SYS2.ISPF.SISPCLIB
//ISPPROF DD DSN=ISTEST.DEVANAS.ISPF.ISPPROF,DISP=SHR
//ISPLOG DD DUMMY,DCB=(RECFM=VBA,LRECL=125,BLKSIZE=27944)
//ISPPLIB DD DISP=SHR,DSN=SYS1.SISPPENU
//ISPMLIB DD DISP=SHR,DSN=SYS1.SISPMENU
//ISPTLIB DD DISP=SHR,DSN=SYS1.SISPTENU
//ISPSLIB DD DSN=ISTEST.PROJ.GWM.REXX,DISP=SHR
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD DUMMY

-------------------------------------------------------------------------------------

But, I am getting output message as
ACF0C038 ACF2 LOGONID ATTRIBUTES HAVE REPLACED DEFAULT USER ATTRIBUTES
NULLFILE was preallocated (no free was done).
READY
END

Could you please help me with this?

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others