Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
FTP ASCII-Text to Mainframe - REG

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: FTP ASCII-Text to Mainframe - REG
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: 539
Location: Maryland

PostPosted: Thu Mar 28, 2019 8:41 pm    Post subject:
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    Post subject:
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: 2219
Location: Hampshire, UK

PostPosted: Fri Mar 29, 2019 1:21 pm    Post subject: Reply to: FTP ASCII-Text to Mainframe - REG
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Mainframe - PL1, JCL, DB2 opening - 5... Rathish123 Mainframe Jobs 0 Tue Jul 16, 2019 8:13 pm
No new posts The oldest active mainframe developer? John Poulakos General Talk & Fun Stuff 5 Fri Jun 14, 2019 9:24 pm
No new posts Mainframe to linux file count mismatch shreya19 All Other Mainframe Topics 4 Thu Jun 13, 2019 9:49 pm
No new posts Send text at cursor position on an IS... Domenic Ailati CLIST & REXX 10 Sun Jun 02, 2019 7:34 am
No new posts Mainframe openings in US /Malaysia Ba... shalini_devi Mainframe Jobs 0 Mon May 20, 2019 7:07 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us