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
Tzadik Vanderhoof
Posts: 21
Joined: Tue Nov 13, 2007 11:53 pm
Skillset: I received an email that i have been registered and approved but the username and password you sent me are not working. I tried to find a way to contact you but I was not able to, and the email says "donotreply".
Referer: web search

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.

User avatar
dick scherrer
Global moderator
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am

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.

CICS Guy
Posts: 246
Joined: Wed Jun 20, 2007 4:08 am

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.

Tzadik Vanderhoof
Posts: 21
Joined: Tue Nov 13, 2007 11:53 pm
Skillset: I received an email that i have been registered and approved but the username and password you sent me are not working. I tried to find a way to contact you but I was not able to, and the email says "donotreply".
Referer: web search

Re: RECFM=U

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

Thanks... it's for processing a binary file received via FTP

User avatar
dick scherrer
Global moderator
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am

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.