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: 4649
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 Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 5 Wed Jul 26, 2017 7:35 pm
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am


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