Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 2088
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: 2088
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 ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm

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