VSAM file search



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

VSAM file search

Postby navennaik » Wed Jun 10, 2009 11:11 pm

Hellow ,

For searching any field values in an array we will use SEARCH ALL and WHEN option.Whether the same clauses can be used for VSAM file search.

If possible then let me know the syntax ?

If not possible please let me know why it can not be possible?

Thanx in Advance.
Naveen.
navennaik
 
Posts: 8
Joined: Thu Feb 26, 2009 7:33 pm
Has thanked: 0 time
Been thanked: 0 time

Re: VSAM file search

 

Re: VSAM file search

Postby dick scherrer » Thu Jun 11, 2009 7:06 am

Hello,

Whether the same clauses can be used for VSAM file search.
No, it cannot.

If not possible please let me know why it can not be possible?
Because SEARCH and SEARCH ALL are used to process a table/array in a program - not a file (vsam or otherwise).
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: VSAM file search

Postby navennaik » Thu Jun 11, 2009 3:03 pm

Thanks you so much...
navennaik
 
Posts: 8
Joined: Thu Feb 26, 2009 7:33 pm
Has thanked: 0 time
Been thanked: 0 time

Re: VSAM file search

Postby dick scherrer » Thu Jun 11, 2009 9:55 pm

You're welcome :)

d
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post