IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search Log in to check your private messages Log in
 

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

Active Member


Joined: 29 Apr 2008
Posts: 878
Location: Maryland

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: 2432
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 All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Forum Replies
No new posts XYplorer - EBCDIC to ASCII translatio... All Other Mainframe Topics 0
No new posts Proc print in Mainframe All Other Mainframe Topics 4
No new posts Need opinion on mainframe to cloud mi... General Talk & Fun Stuff 4
No new posts EBCDIC to ASCII conversion help All Other Mainframe Topics 1
No new posts Looking for Mainframe Project Manager Mainframe Jobs 0

Back to Top