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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


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