Read or write RECFM=U datasets from COBOL



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Read or write RECFM=U datasets from COBOL

Postby Tzadik Vanderhoof » Tue Nov 13, 2007 11:59 pm

Hi there... this is my first post!

Is there any way to read or write RECFM=U datasets from COBOL? I can't find any info about it in my COBOL book or online.
Tzadik Vanderhoof
 
Posts: 21
Joined: Tue Nov 13, 2007 11:53 pm
Has thanked: 0 time
Been thanked: 0 time

Re: RECFM=U

Postby dick scherrer » Wed Nov 14, 2007 1:08 am

Hello Tzadik and welcome to the forums,

What data do you want to read that is recfm=u? This is mostly used for loadlib members and some proprietary uses (which have supporting utility code.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: RECFM=U

Postby CICS Guy » Wed Nov 14, 2007 1:50 am

Tzadik Vanderhoof wrote:Is there any way to read or write RECFM=U datasets from COBOL? I can't find any info about it in my COBOL book or online.
Yes, just specify Recording Mode U (Fixed or Variable). The records can be either fixed-length or variable-length. However, there is only one record for each block. There are no record-length or block-descriptor fields.
CICS Guy
 
Posts: 246
Joined: Wed Jun 20, 2007 4:08 am
Has thanked: 0 time
Been thanked: 0 time

Re: RECFM=U

Postby Tzadik Vanderhoof » Wed Nov 14, 2007 3:22 am

Thanks... it's for processing a binary file received via FTP
Tzadik Vanderhoof
 
Posts: 21
Joined: Tue Nov 13, 2007 11:53 pm
Has thanked: 0 time
Been thanked: 0 time

Re: RECFM=U

Postby dick scherrer » Wed Nov 14, 2007 6:55 am

Hello,

How was the binary file created?

If the source of the data was unix or win-based, you may have more "opportunities" than simply reading the file.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post