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
 

 

VB to FB dataset conversion and calculation of byte count

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
gchoud

New User


Joined: 01 Mar 2007
Posts: 3
Location: sydney

PostPosted: Tue Mar 06, 2007 6:35 am    Post subject: VB to FB dataset conversion and calculation of byte count
Reply with quote

Can any one advise the method to convert VB format datset to FB format datset through JCL.I have searched and could not get proper answer.

Also is it possible to calculate the exact byte count for VB file manually.Looking to match that number of bytes send through xcom to different system so as to ensure that xcom is proper and no bytes were lost.

Thanks in advance.
Gautam
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Mar 06, 2007 9:10 am    Post subject:
Reply with quote

Hello,

Does the VB file actually have records of varying lengths? Are there different recvord formats ikn the variable file? Is it possibly a delimited file? It will help if you post the definition of the VB file and the FB file.

Please explain more about the byte count to ensure complete transmission. Where (which platform) does the transmission originate and where is the data received?

Are you familiar with how a variable length block is physically constructed? The first bytes are a block descriptor that contains the length of that block. Next is a record descriptor that contains the length of the first record. If you hex dump the first couple of blocks of the variable file, you will see the block descriptor & record descriptor fields. For a file byte count, you only need the block descriptors. Total them and you will have the length of the variable file.

Transmissions sometimes fail, but i've not seen any individual bytes lost for a verylong time.
Back to top
View user's profile Send private message
gchoud

New User


Joined: 01 Mar 2007
Posts: 3
Location: sydney

PostPosted: Tue Mar 06, 2007 10:15 am    Post subject: Re: VB to FB dataset conversion and calculation of byte coun
Reply with quote

Thanks for the above information.I was some what aware of how the files are construsted.( 4 byte + the rec)

Please find below some more information ..

How this VB datset was generated ?

Cobol program creates the FB file on Mainframe and this fixed block file are stored as back up in mainframe as varible block file.The original file did not had any delimiter nor was any added during back up process.


Files are transmitted from mainframe to Stratus platform through XCom from mainframe.


Sometimes for recovery purpose the back up file created in VB format needs to be changed to FB format and need to be xcomed.



On the byte count:
I just want to know how can we count the actual byte for a VB dataset.( that is the total size of file in bytes)

How to take hex dump?.When I browse the file and give HEX after going inside file ..it does not give the Hex for file descriptor.It has Hex for the rest of the data.

Many thanks..looking forward to response.
Thanks
Gautam
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Mar 06, 2007 8:25 pm    Post subject:
Reply with quote

Hello,

I'm unclear on what this means:
Quote:
Cobol program creates the FB file on Mainframe and this fixed block file are stored as back up in mainframe as varible block file.


If the data was created FB, how is it stored as VB?

Check with someone (the system support group) at your location and ask if you have a program called DITTO available. With that utility you can easily "dump" blocks in hex. If they say they don't have DITTO, ask them for jcl to dump physical blocks. You only need the first few blocks to see the descriptor words. You might want to dump a few blocks from both the FB and VB files that were created from the same data. Then you will be able to see how the different files are constructed.
Back to top
View user's profile Send private message
gchoud

New User


Joined: 01 Mar 2007
Posts: 3
Location: sydney

PostPosted: Wed Mar 07, 2007 10:42 am    Post subject: Re: VB to FB dataset conversion and calculation of byte coun
Reply with quote

Thanks for the above suggestion will check.

Original file is created in FB.No issues.Later this file is deleted and stored as FB format.The original file is copied to VB file through IDCAM/some other utility before the original file in FB is deleted.


Regards
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 -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts Conversion of a VB file to FB. isssal DFSORT/ICETOOL 1 Mon Oct 31, 2016 10:23 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm


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