View previous topic :: View next topic
|
Author |
Message |
r.ravikumar
New User
Joined: 05 Jan 2007 Posts: 18 Location: chennai
|
|
|
|
Hi,
I have a input file in client server in which records are appending to each other(i.e., the record length of each record 1400, so the second record start from position 1401, simillarly 3rd from 2801).
I done SFTP to copy the file from client server to Host file (LRECL = 1400).
But i am getting only the first record in my output file, and the rest of the records are getting trucated. When i increase the record size of output file(host file), i am getting the second record, but appended to the first record. I am aware that CARRIAGE RETURN & LINE FEED is not working while performing the SFTP. Can any help me to reolve the same. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Is the file created wirh cr/lf?
Quote: |
I am aware that CARRIAGE RETURN & LINE FEED is not working while performing the SFTP. |
Why is this not working?
Suggest you try an experiment of creating the remote file with cr/lf and pre-allocating a mainframe file of length 1403.
If this works, great. If this does not work, post the ftp control statements being used as well as the definition of the pre-allocated mainframe file. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
...pre-allocating a mainframe file of length 1403. |
??? I thought 1403 was a device type, not a desired record length. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hi Pedro,
Quote: |
I thought 1403 was a device type, not a desired record length. |
The key word being was. . . And a paper carriage-control tape. . . And the ability to not only skip to the next page, but skip to the end of the box of paper. . .
But for this topic, i thought (which is dangerous) that pre-allocating with a length that would handle the data as well as a cr/lr might give better results
d |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Sorry, I did not realize the original record length was 1400. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hi Pedro,
If that is the worst thing that happens all year, it will be a very good year
d |
|
Back to top |
|
|
|