Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why does a VsamStoreField fail for the Primary Key field?

0
Posted

Why does a VsamStoreField fail for the Primary Key field?

0

Remember when you write a record with VsamPut (after storing all fields except the primary) the Primary key is specified as a parameter to the VsamPut function. We have had discussions as to whether this should be wrapped into the record but we chose to support legacy systems (VB/ISAM) that use the concept that the Key is separate from the record, and thus passed as a separate parameter. While the actual key data is stored in the same location as the record, to be consistent, VsamStoreField fails on the Primary key field. Because of this, you can create a record in memory and clone it in the DataSet under different Primary Key names without changing the actual record (Just the Key). This is a good way to initialize a subset of records to the same set of field values.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123