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: 2081
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: 2081
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 Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts Hardcoded negative sign value in output scdinesh SYNCSORT 8 Fri Sep 08, 2017 5:28 am
No new posts SORT Trailer Count - LRECL Output co... amorante DFSORT/ICETOOL 5 Tue Aug 29, 2017 8:57 pm
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm

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