Support COBUG |
|
 |
|
 |
|
|
| |
|
COBOL Language [
return
] |
|
From |
Message |
cobol27
5/04/2006 07:08:28
|
Subject: cobol coding
Message: 1. How can you make a COBOL program respond to keyboard keys for
> example you want to scroll down over a list of option using the
*arrow
> keys* and after you have reach the option then you press the *enter
key.*
> 2. *I *wanted to know if it is possible with COBOL programming
> that you can search an indexed sequential file using the only first 3
> letters of the search key for example I want to know all drugs that
> start with ASM, and the programs list that they is asmanol 4mg,
> asmanol 2mg. If it is there how can I go about it.**
> 3. Lastly I would want to know whether it is possible to change
> the size of the output words in a Cobol program
>
|
donfnelson
5/04/2006 09:07:06
| RE: cobol coding
Message: Number 1 depends on the implementation. You did not specify
which COBOL and OS you are using. Number 2 depends on
what you are trying to do. You can define the key as a group
item and the first three characters as a "partial key". Using the
KEY phrase of the READ statement you can read one randomly.
Or, you can use the START statement specifying the partial key
and position to the start of the set of records and read
sequentially through it. Read the manual on this. The third
item is not clear.
|
JWL
5/04/2006 10:16:55
| RE: cobol coding
Message: The exact way to code these, depends on which cobol you are using, and yes they are all possible. Question 3, I assume you are referring to printing?
If you let us know which compiler you are using, I will give you a few examples.
jwl
|
nitkot
5/04/2006 22:04:35
| RE: cobol coding
Message: Hi,
1. You have to define values for arrow keys in working storage. This values differs from compiler to compiler. Further create one reverse-video variable which will scroll thru rows you have defined. Make cobol compiler hexadecimal calls to sense the value user have pressed. I have program which can sense complete keyboard at any single press event. So you can call diff routines on press of keyboard value, arrow key, function keys.
2. You have to define alternate key for complete string you want to search. Call Start-para again and again as user presses more inner values of search string. Like if you want to search "ANACIN" on press on "A" start, "AN" start, "ANA start....and so on. So user can see filtered value of each press and result will filter accordingly.
3. Again compiler dependent. On MF COBOL 4.5 pressing ALT14 before and after string of printing values will print font in double size only on dot matrix printer. There are other ways in which you need to install some third party softwares.
Nitin Kothari
Symphony Infotech
COBO Lover
Mumbai
9867696515
|
| |
| P 1 Next Page >> | | | |
|
|
|
[ Go to Top of Page ]
|
|
 |
|
Local COBOL User Groups |
Check out the list of local COBOL user groups from around the world and join a user group near you.
|
 |
|
Call for User Group Leaders! |
Get Involved! We are looking for user group
leaders to help organize and coordinate a local COBOL user group.
|
 |
|
Join COBUG! |
Become a part of the COBUG community today.
Join Now ...
|
 |
|
COBOL Forums |
Try our forums for help!
Let the COBUG members help you.
Post your issues!
|
 |
|
COBOL Job Resources |
Here are references to a wealth of
job resources, including job listing sites, resume preparation, and interview questions.
|
 |
|
Job and Resume Matchmaker! |
Employers submit your COBOL job openings.
Job seekers submit your resumes.
|
 |
|