Thanks for all the suggestion. I got it sorted out.
Now I wish to do something like "SELECT * FROM NAME-FILE WHERE DEALER-NAME LIKE USER-INPUT". If user would input "JA" it will display out all the name starting with "JA", is that possible?Any guidance would be appreciated thanks~
Thanks for the reply. Sorry for the lack of input as I am still new to Cobol so there is still some terms I not familiar with.
I am trying to search for a text string within a txt file.
001000 SELECT VENDOR-FILE
001100 ASSIGN TO "name"
001200 ORGANIZATION IS INDEXED
001300 RECORD...
Hi this is my first time here.
I trying to write a program that will search throught the txt file for a name specified by the user. Say if user enter "Lucas", the program would then display all the name of "Lucas".
Currently I am using SEARCH which only retrieve a single "Lucas" name value...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.