View previous topic :: View next topic
|
Author |
Message |
Dhamodharan.G
New User
Joined: 19 Feb 2014 Posts: 3 Location: India
|
|
|
|
Hello All,
We have a text file with very long lines. That is 1 XML in each line. We have to transfer that text feed to mainframe, the target file is VB with record length 32004. When we transfer the file through command prompt (FTP) the lines are not placed as expected. The second line starts immediately after the first line.
Example:
PC File:
XXXXX...............<more than 32000 chars>
AAAAA...............<more than 32000 chars>
Mainframe File:
Code: |
XXXXX.................
XXXXX.................
XXXXXAAAAA.......
AAAAAA...............
|
Instead, we expect the data to be transferred as follows:
Code: |
XXXXX................
XXXXX................
XXXXX
AAAAA................
AAAAA
|
We are using the following SITE commands.
QUOTE SITE RECFM=VB LRECL=32004 BLKSIZE=32008 WRAPRECORD SBSENDEOL=CRLF
Kindly suggest us what to do. |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2018 Location: USA
|
|
|
|
Dhamodharan.G wrote: |
Example:
PC File:
XXXXX...............<more than 32000 chars>
AAAAA...............<more than 32000 chars>
Mainframe File:
Code: |
XXXXX.................
XXXXX.................
XXXXXAAAAA.......
AAAAAA...............
|
Instead, we expect the data to be transferred as follows:
Code: |
XXXXX................
XXXXX................
XXXXX
AAAAA................
AAAAA
|
|
Did you mean that 2 PC lines must produce 5 mainframe lines?
How come?
Clarification is required... |
|
Back to top |
|
|
Dhamodharan.G
New User
Joined: 19 Feb 2014 Posts: 3 Location: India
|
|
|
|
Hello,
Actually if you see the specifications that I have given, the PC line has characters more than 32000 and my target VB file is of record length 32004. That is why I used WRAPRECORD in my FTP parms and the single PC lines are wrapped into many lines in MF based on its record length.
I traversed this forum and found about SBSENDEOL and i have also tried passing LF to it but of no use.
Anyways, i just copied the UNIX (LF) file into Windows (CRLF) file using notepad++ and transferred. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Quote: |
...and transferred |
I assume you mean that this is what you have done to successfully get around the problem? |
|
Back to top |
|
|
Dhamodharan.G
New User
Joined: 19 Feb 2014 Posts: 3 Location: India
|
|
|
|
Yes, as this is just an one time activity. I have tried the recommendations from similar posts (like using SBSENDEOL) but could not succeed. |
|
Back to top |
|
|
|