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
 
How to convert U format to FB format

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Furion

New User


Joined: 27 Nov 2007
Posts: 14
Location: China

PostPosted: Fri Jan 25, 2008 1:57 pm    Post subject: How to convert U format to FB format
Reply with quote

Hi all,

Could anyone tell me how to convert one U format file to FB format?
I have one undefined format file and I need to convert it to some FB format. Is there anyway?

Thx in advance
Back to top
View user's profile Send private message

mnnarayankar

New User


Joined: 21 Jan 2008
Posts: 24
Location: bangalore

PostPosted: Fri Jan 25, 2008 2:24 pm    Post subject:
Reply with quote

I think,

The U formate is called unformated file.

If u consider the unformated file it contains all system related symbols or character which is understood by system.


Example of UNFORMATED file is nothing but our load module or object module member ( or file). Nad i think it is impossible to read all system related character. and it is variable block VB type.

For u r simplicity open loadlib with 'i' option instead u open in 'e' option.
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: Fri Jan 25, 2008 9:31 pm    Post subject:
Reply with quote

Hello,

If you post some of the content (and describe just what it is) of the "U" file, we can probably offer suggestions on how to write the data to an FB file.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Fri Jan 25, 2008 10:24 pm    Post subject: Reply to: How to convert U format to FB format
Reply with quote

Quote:
The U formate is called unformated file.


as already said in other posts U means undefined...

for FB files the lrecl and blksize are stored in the VTOC
( rough approach ... to keep things simple )
the physical read and logical deblockig will be done by data management based on those values

for VB files same as above
the lrecl is less important because
the physical read and logical deblockig will be done by data management
but the logical deblocking will be based on the RDW or RDF
( record definition word/record definition field)

for U files
the data management will simply take care of the physical read
and the whole block read will be passed back to the application program

If You care about the details here they are for assembler
You have to issue a read for the maximum blksize expected,
after the read one of the control blocks will contain the residual length ( not read stuff )
( I do not right now remember which... decb/csw)
the difference between the blksize length requested and the residual length
will give the block/record lenght

the records of a load module are not unformatted...
if they were nobody would be able to understand thir content icon_biggrin.gif
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fetch Previous month & year in MM... girishb2 DFSORT/ICETOOL 3 Thu Sep 21, 2017 9:54 pm
No new posts Convert rows and column into JSON for... Dinesh Manivannan DB2 2 Sun Sep 03, 2017 6:50 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts FTP data transfer from PC to Mainfram... AJAYREDDY All Other Mainframe Topics 8 Wed Aug 23, 2017 9:59 pm
No new posts Convert CLIST to REXX cvnlynn CLIST & REXX 12 Tue Jun 27, 2017 2:06 am

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