login about faq

TECTIA 6.0 - IBM Mainframe - OS: z/OS 1.7

Can someone help me please?

File is being sent from Mainframe to a Unix Server using SFTPG3.

All the columns with data are arriving in the destination correctly, no problem with that.

File in Mainframe has record lenght equal a 515 characters and the last field of the record sometimes has data and sometimes is filled with blanks (concept of the business).

When the last field is filled with blanks, sftpg3 disregard this field and it is truncated in the field before which has data.

And the interesting thing is that using FTP this issue does not occur, record arrives in its destiny with the blanks in the last field correctly.

Records in MF, example:

AAAABBBBCCCDDDDEEEEFFFFGGGG§
HHHHIIIIJJJKKKKLLLLMMMM    §
NNNNOOOOPPPQQQQRRRRSSSSTTTT§

Second record is filled with 4 blanks in the last field. "§" is the max limit of the record.

Records in the Unix Sever after transmission, example:

AAAABBBBCCCDDDDEEEEFFFFGGGG§
HHHHIIIIJJJKKKKLLLLMMMM§    
NNNNOOOOPPPQQQQRRRRSSSSTTTT§

Second record does not have the lenght record equal to the first and third record. The "§" (mark the end of line) is in a wrong position.

is there a command or parameter (other than LRECL) that can be used to avoid the record to be truncated when the last field is filled with blanks?

Thanks in advance.

In the Unix Server

asked Jan 26 '11 at 16:56

Anny%20K.'s gravatar image

Anny K.
1222

edited Jan 26 '11 at 19:06

Roman's gravatar image

Roman ♦♦
7735817


add the following lines before the sput

lsite trailing_blanks=YES lsite

link

answered Nov 25 '11 at 15:57

COMPU%20AL%20MOSAWI's gravatar image

COMPU AL MOSAWI
1

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×80
×45
×7
×2
×1

Asked: Jan 26 '11 at 16:56

Seen: 4,699 times

Last updated: Nov 25 '11 at 15:57

All user contributed content licensed under the cc-by-sa license.
Powered by OSQA.