• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with FTPing file to Mainframe dataset using apache commons net

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm ftping a file to Mainframe dataset. But the problem is, only first 256 characters of the file are being received on mainframe dataset and rest of it is truncated. I was advised to execute/run the ftp command "locsite lrecl=320 recfm=fb blocksize=6080" so that the record length would be set to 320 characters and file will not be truncated. I tried running this command using both sendSiteCommand(String) and sendCommand(String) of apache commons FTPClient class.Though return status of sendCommand is '500' and sendSiteCommand is 'true', the data being stored is only 256 characters on the mainframe dataset. I have tried by using sendCommand("rec=-320,,f,ascii") also, but not of any use.

Can someone please help me by advising how to overcome this scenario?

Many Thanks in advance.

Regards,
Damodara Reddy
reply
    Bookmark Topic Watch Topic
  • New Topic