Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sort status Syntax 1

Status
Not open for further replies.

amitjainbls

Programmer
Mar 7, 2008
10
US
Hello,

I am compiling a program in NETcobol for windows v9 and getting sev error message "An invalid word sort-status was found " for sort file selection.

SELECT SORT-FILE ASSIGN TO SORTFIL
SORT-STATUS IS SORT-STAT.

Compiler has sort-status as the reserved word set. Otherwise in normal file selection we use "file status is dataname".


If i select the file as :

SELECT SORT-FILE ASSIGN TO SORTFIL
SORT STATUS IS SORT-STAT.

I get the error message as "invlid word sort"

Could Any one with Netcobol experience compiler can put down the exact syntax?
 

Tom,

I am unable to find sort status example program. Though only sort file select statement is given.

Manual also says that sort-status is the keyword which is different from microfoucus/IBMCOBOL2 compilers.So i need the exact syntax for sort status declaration.

thanks
 
Perhaps you are having difficulty because what you desire does not exist. You may view the NetCOBOL Language Reference Manual here.

SORT-STATUS is a predefined special register. It is not the same as FILE STATUS in the ENVIRONMENT DIVISION. You will reference SORT-STATUS solely in the PROCEDURE DIVISION. See page 94 of the above referenced manual.

Tom Morrison
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top