What is the point statement in easytrieve?
eg- POINT DUPIN GE HD-IN-KEY STATUS
Here DUPIN is filename , GE is relational operator, HD-IN-KEY is field name
What is the point statement in easytrieve?
eg- POINT DUPIN GE HD-IN-KEY STATUS
Here DUPIN is filename , GE is relational operator, HD-IN-KEY is field name
Copyright © 2021 Jogjafile Inc.
Not sure if I can revive old questions. I just thought of leaving an example with usage of POINT statement in Easytrieve. It might be useful to someone referring this thread.
In this example, I'm using an Input VSAM file with following contents.
First 6 bytes is the key and I would like to display the text field against the key. Let's choose to display the text field of 123456, the first record. The Easytrieve code is as follows:
After executing the code, we will have the following results in the Spool.
Points to be noted:
The POINT statement in Easytrieve points a record on a keyed file.
Note the POINT statement with STATUS parameter. Specify the STATUS parameter whenever there is a possibility for unsuccessful completion of the input/output request. STATUS checks input/output processing to see if it was performed properly. STATUS causes the file's FILE-STATUS field to be set with the appropriate return code. FILE-STATUS is a read only field in Easytrieve.