Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
RELEASE command in Cobol

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL
Author Message
vinit_infy
Warnings : 1

New User


Joined: 07 Apr 2005
Posts: 43

PostPosted: Tue Apr 12, 2005 9:51 am    Post subject: RELEASE command in Cobol
Reply with quote

Hi,
Could any please clarify the use of RELEASE Command in Cobol.
Regards,
Vinit
Back to top
View user's profile Send private message
References
sivatechdrive

Active User


Joined: 17 Oct 2004
Posts: 167
Location: hyderabad

PostPosted: Tue Apr 12, 2005 11:23 am    Post subject: Re: RELEASE command in Cobol
Reply with quote

Hi vinit

the Release is used in SORT

SORT SORTFILE ON ASCENDING /DESCENDING KEY sd-key-1 sd-key2
USING file1 file2 / INPUT PROCEDURE IS section-1
GIVING file3 / OUTPUT PROCEDURE is section-2
END-SORT

INPUT PROCEDURE and USING are mutually exclusive. If USING is used, then file1 and files should not be opened or READ explicitly. If INPUT PROCEDURE is used then File1 and file2 need to be OPENed and READ the records one by one until end of the file and pass the required records to sort-work-file using the command RELEASE.
Syntax: RELEASE sort-work-record from input-file-record.

Thanks
Siva
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL All times are GMT + 6 Hours
Page 1 of 1