Sending File from Unix to MVS


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Sending File from Unix to MVS
# 1  
Old 10-20-2011
Sending File from Unix to MVS

Hi,
I am trying to send a txt file via FTP to the Mainframe or MVS. the file gets sent to the MVS but the user name gets appended to the file name.

For eg if i am sending test.txt, in the mainframe it lands as username.test.txt.
I tried putting the filename inside single quotes but I get an error message saying No such file or directory.

put '$FTP_FILE_NAME' is the command i am using.

also i am trying to set the record length and the block type as

quote site Lrecl=160 recfm=FB
But the records are going with length 124 and format as VB.

So these are my queries.
1) how to send file only with the actual name.
2) how to set the record length and block type?

Can someone help me out with these queries?
# 2  
Old 10-20-2011
Have you tried specifying the destination filename?
Code:
put '$FTP_FILE_NAME' '<Path>/$FTP_FILE_NAME.Test'


Last edited by Franklin52; 10-21-2011 at 07:48 AM.. Reason: Code tags
# 3  
Old 10-20-2011
I am sending the file to a mainframe system. so i am not sure what is the destination folder. I have specified the destination name in the open command.
# 4  
Old 10-20-2011
Hummm... Sorry!
I don't know anything about mainframes, but as "put" is a FTP command, I just supposed it could help you somehow!

Maybe someone else here can help you with your issue.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Typeset -i in MVS (Mainframe system)

Hi, I have one job that runs daily and creates daily files. At the end I compare the today's file with previous day's file. And if today's file size is greater or equal to previous day's file, then it is ok, else I need to through error. I have following piece of code: typeset -i... (2 Replies)
Discussion started by: ppatra
2 Replies

2. UNIX for Advanced & Expert Users

MVS compression that unix can uncompress

Dear all, I have been given the opportunity at the last minute to help on a project. There is a need to move some very large files from an MVS machine to an AIX one. The servers are remote with (I think) a 2Meg network pipe between them. The people on the project have been moving small... (1 Reply)
Discussion started by: rbatte1
1 Replies

3. Shell Programming and Scripting

Running a select script through UNIX and sending output to file

Hi, (Oracle, AIX) I have googled this and searched this forum, however I haven't had much luck with an answer and have tried several different things. Basically I have a SQL select statement which generates a whole load of UPDATE statements, I want to run the select statement via... (13 Replies)
Discussion started by: dbchud
13 Replies

4. Shell Programming and Scripting

Perl: Sending file from UNIX server to Windows server

I'm trying to write a Perl script where a file from a UNIX server box connects to a Windows server box and copies that file into the Window box. The main problem I have right now is that whenever I try to connect to the Windows box, the connection is refused. The error message that always pops... (2 Replies)
Discussion started by: kooshi
2 Replies

5. AIX

MVS DB2 Connection from AIX

Hi, I want to try to connect to a DB2 (MVS) database from an AIX, through my c++ custom program. Is anybody who knows how can I do this? Which libraries should I use? Should I have a DB2 connect installed on my AIX? Thank you in advance. (3 Replies)
Discussion started by: develo
3 Replies

6. UNIX for Advanced & Expert Users

MVS->Unix FTP : Using chmod as part of FTP.

We are transferring file from mainframes to unix, & in FTP process itself we would like to set access rights for unix machine. Has anyone used chmod command in association with site command in ftp? How it should be used? Thanks in advance. (1 Reply)
Discussion started by: videsh77
1 Replies

7. Shell Programming and Scripting

SFTP to MVS system

Hi All, I have written a script that transfers(FTP) files from Unix system to MVS system. Below is the code for it. ftp -inv $HOST<<ftp_test quote site LRECL=200 quote site BLKSIZE=28000 mput SOURCE DEST ftp_test Here I need the help, if the above code can get... (3 Replies)
Discussion started by: rinku11
3 Replies

8. Shell Programming and Scripting

FTP script for sending a file from one unix directory to another unix server director

Hi, My local server is :/usr/abcd/ Remote server is :/Usr/host/test/ I want to send files from local unix directory(All files starting with O_999) to remote host unix directory. Can any body give me the Unix Shell script to do this. One more doubt: Shall we need to change the file... (1 Reply)
Discussion started by: raja_1234
1 Replies

9. UNIX for Dummies Questions & Answers

spooled file getting distorted when sending through unix mail

Hi Folks, I'm spooling a file through sqlplus and sending using mailx but the output got distorted in MS-outlook. Thanks in advance (2 Replies)
Discussion started by: chgopi
2 Replies

10. Solaris

ftp flat file from MVS(OS390) to Solaris

I've been working on this for a while and decided to see if anyone else here had this same issue. I'm trying to ftp a file from a mainframe (OS390) to Solaris. Obviously this is easily done, however the file is somehow being stripped of data in comparison to the way we transfer the file via a... (5 Replies)
Discussion started by: douknownam
5 Replies
Login or Register to Ask a Question