How to get more than 32k data through FTP



Post anything related to mainframes (IBM & UNISYS) if not fit in any of the above categories

How to get more than 32k data through FTP

Postby gauthamnagpur18 » Tue Nov 04, 2014 12:42 am

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:
gauthamnagpur18
 
Posts: 93
Joined: Sat Oct 23, 2010 1:28 pm
Location: Chennai, India
Has thanked: 3 times
Been thanked: 3 times

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

Postby steve-myers » Tue Nov 04, 2014 1:02 am

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.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

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

Postby gauthamnagpur18 » Tue Nov 04, 2014 1:14 am

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.
gauthamnagpur18
 
Posts: 93
Joined: Sat Oct 23, 2010 1:28 pm
Location: Chennai, India
Has thanked: 3 times
Been thanked: 3 times

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

Postby steve-myers » Tue Nov 04, 2014 1:55 am

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.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

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

Postby Robert Sample » Tue Nov 04, 2014 4:19 am

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).
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

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

Postby gauthamnagpur18 » Tue Nov 04, 2014 4:05 pm

Hi,

I tried with below command which worked out.

LOCSITE WRAPRECORD

Thanks once again for all your inputs.


Thanks,
Gautham :idea:
gauthamnagpur18
 
Posts: 93
Joined: Sat Oct 23, 2010 1:28 pm
Location: Chennai, India
Has thanked: 3 times
Been thanked: 3 times


Return to All other Mainframe Topics

 


  • Related topics
    Replies
    Views
    Last post