Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help on FTPing a dataset of huge length 1

Status
Not open for further replies.

deveshjogal

Programmer
Dec 30, 2002
61
Hi

I have a requirement. I need to pull a dataset from UNIX box to OS/390. This dataset has only one records but the size of this record is about 4 megabytes. Is it possible to pull it using FTP or I have to go for some differnt approach.

As far my understanding I need to preallocate the dataset on OS/390. But I am not able to define a dataset with this huge length. Any help is appreciated.

Thanks

Devesh
 
[mvsforumemulation]
You do not have to pre-allocate, this works:
Code:
ip-name
user-id
password
cd /home/truus            
locsite lr=100 ref=fb tr pri=5 sec=5    
get        +                                   
hello.world +                           
'MVSHLQ.HELLO.WORLD.MVSLLQ'       
quit

In the locsite card you specify the parameters you would normaly specify in the DD card.


[/mvsforumemulation]
 
If you want to make the data a little bit smaller you can perhaps ZIP it. PKZIP is also available on the mainframe.
 
Hi

I tried the solution but it looks like the max reord length which I can define on OS/390 is 32K.

So it fails since my record size is > 32K.

Is it possible to break the single record in multiple records while pulling the file?

devesh
 
If you must do it while FTPing, then see if your local or remote FTP has the record description subcommand. If it does, specify the file as unstructured and set an arbitrary fixed record length.

When I have more time, I'll look up the exact syntax.

(The easiest way to handle this is to break up the record on Unix, then move it to IBM.)

Dimandja
 
You should be able to define it on the mainframe as 128 32k records. Or break it down by the fields in the record.
 
Hi

Dimandja

I tried to search on net. But not able to find a syntax. If you remember even a bit of the syntax post it. I will try to find the rest.


Webrabbit

so far I am not in position to break the file before FTP. R u saying I can define a file with a record length of 12832K. If yes then how? Because it doesnt allow me to define a file with record length > 32k using. the FTP provided syntax or using the ISPF.


Thanks for ur suggestion.

Devesh

 
Can you help me understand WHY you are trying to FTP this file to the mainframe and more importantly WHAT you expect to do with it once it gets there? Depending on the answer to these, it might be easier to provide you with a "solution".

IBM has a 32K limit on QSAM files - on DASD. They did (relatively recently) increase this for tape files - but I doubt that is what you want as your "target" file.

Bill Klein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top