View previous topic :: View next topic
|
Author |
Message |
rammraju
New User
Joined: 05 Mar 2005 Posts: 65 Location: Hyderabad
|
|
|
|
Hi,
I am trying to send a file from a UNIX server to my mainframe. I am doing a FTP connecting to my mainframe and I am able to send the file. Now on the mainframe side I do a TSO RECEIVE INDATASET and i dont give the dataset name a file is automatically created prefixing my userid with LRECL=1024 and RECFM=VBA.
What i need is to copy the file to a LRECL=250, RECFM=VBM file. I created such file and when I do the
Code: |
TSO RECEIVE INDATASET('TEST.ABC.XYZ') |
I am getting the below error
Code: |
INMR130I RECEIVE command terminated. Input dataset unusable +
INMR139I Input file is empty
*** |
Can someone please let me know if LRECL=1024 and RECFM=VBA is any standard? if so is there any way to get the file into my 'TEST.ABC.XYZ' which is LRECL=250 and RECFM=VBM
Thanks in advance |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
What kind of session is transferring the file? An ftp client on the unix systgem?
Does the mainframe run an ftp service?
If it does, you can pre-allocate the file with the dcb attributes you want and then send it from the unix system.
I've done many, many ftp transfers from Win-based or unix systems to the mainframe and have never tried to use TSO RECEIVE. |
|
Back to top |
|
|
rammraju
New User
Joined: 05 Mar 2005 Posts: 65 Location: Hyderabad
|
|
|
|
I connect to mainframe with the command
Code: |
FTP mainframe ip address |
My mainframe runs a FTP service
I tried pre allocating the file with the required attributes and when I do a TSO RECEIVE the error msg as i stated earlier come up |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
my understanding of the RECEIVE statement is that the file was created by a TRANSMIT statement. The input file is sequential with an LRECL of 80.
Gerry |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
As i mentioned before - i have never used TSO RECEIVE when using ftp to transfer a file to the mainframe. You should not be using it either.
If your mainframe is running an ftp service, that is all that is needed.
When you connect to the mainframe via the unix ftp client, you then "put" the file to the mainframe. When the transfer successfully completes, the file is on the mianframe. There is nothing for the TSO RECEIVE to do.
Also, as i mentioned earlier - try pre-allocating the file on the mainframe and then connect and upload the file. When the upload completes, log into tso, go to 3.4 and list this dataset name.
If there are questions/problems doing this, post them here. |
|
Back to top |
|
|
|