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
 

 

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: 10210
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 How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Convert +9999999999999.99 to S9(12)V9(3) vnktrrd DFSORT/ICETOOL 8 Thu Nov 17, 2016 8:15 pm
This topic is locked: you cannot edit posts or make replies. Db2 SQL query to convert rows into co... subratarec DB2 5 Thu Nov 17, 2016 4:51 pm
No new posts convert PD to ZD ram_vizag DFSORT/ICETOOL 5 Sat Nov 05, 2016 3:06 am
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm


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