![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| COBOL file status 39 | jbrubaker | UNIX for Dummies Questions & Answers | 3 | 08-03-2006 09:39 AM |
| Installing RedHat 8.0 onto Dell PowerEdge SC1425 - hdc: status error: status = 0x58 | fishsponge | Red Hat | 5 | 07-14-2006 02:53 PM |
| check the status and send an email with status | isingh786 | Shell Programming and Scripting | 3 | 12-29-2005 07:22 PM |
| Couldn't open status file /var/samba/STATUS.LCK | macdonto | UNIX for Dummies Questions & Answers | 2 | 08-08-2001 08:42 AM |
| file status during FTP | sean76 | UNIX for Dummies Questions & Answers | 3 | 07-01-2001 10:06 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Cobol File Status 41 & 42
I'm new to coding on Unix but have coded with COBOL on mainframe for a number of years. This is driving me nuts. My select clause is like so:
SELECT GRPFILE ASSIGN TO EXTERNAL DISK WS-GRPFILE ACCESS IS SEQUENTIAL STATUS IS WS-SORTGRP-STATUS. my WS declaration: 01 WS-FILENAMES. 05 WS-GRPFILE PIC X(26) VALUE "/mpux/MCS/DATA/GRPFILE.SRT". I can open the file with file status "00" and write to it with file status "00" until I have written 1024 records - at which point I get a file status 23 ?? (which used to mean to me that record key not found). When looking at the physical file I see that nothing has been written so I coded a close when I wrote 1023 records: IF CNTR = 1023 CLOSE GRPFILE PERFORM EOJ END-IF. I got a status 42 - file already closed. I know for sure its already open but I inserted the following OPEN line giving: IF CNTR = 1023 OPEN OUTPUT GRPFILE CLOSE GRPFILE PERFORM EOJ END-IF. Now I get a status 41! Its already opened and its already closed! I tried to "touch" the file so that it was already generated before the original open statement - still opens with a "00" but still gives the same end result. I believe this all has something to do with logical vs physical files but dont know where to take it. Anyone?? |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|