Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Records need to be splitted in output file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
r.ravikumar

New User


Joined: 05 Jan 2007
Posts: 18
Location: chennai

PostPosted: Tue Sep 15, 2009 8:23 pm    Post subject: Records need to be splitted in output file
Reply with quote

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

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Sep 15, 2009 10:01 pm    Post subject:
Reply with quote

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

Senior Member


Joined: 01 Sep 2006
Posts: 2025
Location: Silicon Valley

PostPosted: Tue Sep 15, 2009 11:43 pm    Post subject: Reply to: Records need to be splitted in output file
Reply with quote

Quote:
...pre-allocating a mainframe file of length 1403.


??? I thought 1403 was a device type, not a desired record length.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Sep 15, 2009 11:51 pm    Post subject: Reply to: Records need to be splitted in output file
Reply with quote

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. . . icon_cool.gif

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 icon_smile.gif

d
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2025
Location: Silicon Valley

PostPosted: Wed Sep 16, 2009 12:28 am    Post subject: Reply to: Records need to be splitted in output file
Reply with quote

Sorry, I did not realize the original record length was 1400.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Sep 16, 2009 2:22 am    Post subject: Reply to: Records need to be splitted in output file
Reply with quote

Hi Pedro,

If that is the worst thing that happens all year, it will be a very good year icon_wink.gif

d
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Incorrect output when trying to add n... monica1 PL/I & Assembler 10 Fri Jan 13, 2017 5:02 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us