Page 1 of 1

How to get more than 32k data through FTP

PostPosted: Tue Nov 04, 2014 12:42 am
by gauthamnagpur18
Hi,

Can we get more than 32K data in mainframe through FTP?

When I tried , it was getting truncated to 32K.

Could you please help.

Thanks in advance.

Thanks.
Gautham :roll:

Re: How to get more than 32k data through FTP

PostPosted: Tue Nov 04, 2014 1:02 am
by steve-myers
If you mean a record greater than 32K it can't be done. Data management in z/OS imposes a max record length of 32760 bytes. There are some tricks to cheat this, but I doubt FTP uses any of them.

If you mean a total data set size - well, I have my self transferred 100s of megabytes in a single transfer back in the days when I did product support for a living.

Re: How to get more than 32k data through FTP

PostPosted: Tue Nov 04, 2014 1:14 am
by gauthamnagpur18
Thanks Steve .

Is it possible to do word wrap in FTP?

I meant , if record length is more than 32K , then it should come in next line.

Thanks in advance.

Re: How to get more than 32k data through FTP

PostPosted: Tue Nov 04, 2014 1:55 am
by steve-myers
gauthamnagpur18 wrote:... Is it possible to do word wrap in FTP? ...
I'm not sure what you mean by "word wrap." If you do a binary transfer, FTP will always stream the data to the next logical record, which I think is what you want to do. Obviously your mainframe program will have to make sense of the data, but FTP will transfer the data.

Going back to my product support days, I was often asked by colleagues to figure out what was going on with transferred data. About 75% of the time I succeeded. The rest of the time we had to go back to our customer to get the data transferred better.

Re: How to get more than 32k data through FTP

PostPosted: Tue Nov 04, 2014 4:19 am
by Robert Sample
You can transfer a record of arbitrary length from another platform to z/OS -- as long as you go to a Unix System Services directory / file and NOT to a z/OS data set. If you insist you need to go to a z/OS data set, then 32K is the limit. Depending on the parameters used in the FTP, IIRC the excess data will be truncated or put on the next line (but I may not be recalling correctly; it's been a while now since I've done an FTP on z/OS).

Re: How to get more than 32k data through FTP

PostPosted: Tue Nov 04, 2014 4:05 pm
by gauthamnagpur18
Hi,

I tried with below command which worked out.

LOCSITE WRAPRECORD

Thanks once again for all your inputs.


Thanks,
Gautham :idea: