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

TSO RECEIVE issue


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rammraju

New User


Joined: 05 Mar 2005
Posts: 65
Location: Hyderabad

PostPosted: Wed May 14, 2008 7:06 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Wed May 14, 2008 7:37 am
Reply with quote

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
View user's profile Send private message
rammraju

New User


Joined: 05 Mar 2005
Posts: 65
Location: Hyderabad

PostPosted: Wed May 14, 2008 9:45 am
Reply with quote

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
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Wed May 14, 2008 10:33 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Wed May 14, 2008 10:52 am
Reply with quote

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
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts Facing ABM3 issue! CICS 3
No new posts Panvalet - 9 Character name - Issue c... CA Products 6
No new posts Issue with EXEC CICS QUERY SECURITY c... CICS 6
Search our Forums:

Back to Top