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
 

 

Different Header Record length than Detail in FB file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: Different Header Record length than Detail in FB file
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

Moderator Team Head


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

PostPosted: Mon Mar 27, 2006 9:15 pm    Post subject: Re: Different Header Record length than Detail in FB file
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 3 Fri Mar 24, 2017 11:51 am
No new posts Record Not found in AlX but record re... mukun264 COBOL Programming 5 Fri Mar 24, 2017 9:28 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm


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