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
 
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: 4650
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am

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