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

Records need to be splitted in output file


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Tue Sep 15, 2009 10:01 pm
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

Global Moderator


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

PostPosted: Tue Sep 15, 2009 11:43 pm
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

Moderator Emeritus


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

PostPosted: Tue Sep 15, 2009 11:51 pm
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

Global Moderator


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

PostPosted: Wed Sep 16, 2009 12:28 am
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

Moderator Emeritus


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

PostPosted: Wed Sep 16, 2009 2:22 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 0
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top