IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

FTP ASCII-Text to Mainframe - REG


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Dhamodharan.G

New User


Joined: 19 Feb 2014
Posts: 3
Location: India

PostPosted: Wed Mar 27, 2019 1:02 pm
Reply with quote

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
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2018
Location: USA

PostPosted: Thu Mar 28, 2019 8:41 pm
Reply with quote

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
View user's profile Send private message
Dhamodharan.G

New User


Joined: 19 Feb 2014
Posts: 3
Location: India

PostPosted: Fri Mar 29, 2019 12:17 pm
Reply with quote

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
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Fri Mar 29, 2019 1:21 pm
Reply with quote

Quote:
...and transferred

I assume you mean that this is what you have done to successfully get around the problem?
Back to top
View user's profile Send private message
Dhamodharan.G

New User


Joined: 19 Feb 2014
Posts: 3
Location: India

PostPosted: Fri Mar 29, 2019 1:35 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts Mainframe Programmer with CICS Skill... Mainframe Jobs 0
No new posts How to Reformat a file using File Man... All Other Mainframe Topics 14
No new posts TEXT-TO-PDF Compuware & Other Tools 1
Search our Forums:

Back to Top