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

Different Header Record length than Detail in FB file


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Swapna Rani.T

New User


Joined: 25 Mar 2006
Posts: 0

PostPosted: Fri Mar 24, 2006 3:36 pm
Reply with quote

I create a formatted file with a header record and details records.
The file I create needs to be fixed Block lenght of 100.
I FTP the file to the server once created to a *.txt file.

All the records in the *.txt file are lenght 100 even though I write the header record from a PIC X(80). The final 20 bytes are set to spaces.

I am trying to get the header to be recognized as 80 and the detail 100 in the *.txt file but keep the mainframe file FB 100.

Any thoughts appreciated? Is there any way to signal the end of the record early for the header record?

Thanks
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Mon Mar 27, 2006 9:15 pm
Reply with quote

From what I can tell, you have three options here:

1. Change the dataset RECFM from FB to VB. Any of the trailing blanks will be removed.

2. Look into enabling the FTP option for truncating trailing blanks.

3. Seperate the 80-byte files from the 100-byte files, transfer them all to the ASCII machine, then concatenate them back together on that machine.
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Store the data for fixed length COBOL Programming 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 PARSE Syntax for not fix length word ... JCL & VSAM 7
Search our Forums:

Back to Top