×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
As alluded\stated by others, building the entire command string
rather than attempting to build a string which is a list of objects will
be more productive. That is because the OBJ() parameter is defined as a
_list of elements_ rather than a string with space delimited values. As
such, to include sixty separate object name values would require sixty
ten byte character variables. Since the list of objects is not a
string, but separate elements for each object name, each of which is a
ten byte string, the save request would have to look something like:
savobj obj(&objnam01 &objnam02 &objnam## &objnam60)
Instead of using QCAPCMD or QCMDEXC to pass the generated command
string.... The Save Object (QSRSAVO) API should enable building the
list of objects as a string; an /object information/ string, which
includes name and type, prefixed by a bin-4 designating how many names
are in the list. See also the CMDUSRSPC() parameter on the SAVOBJ
command, to replace the OBJ() parameter with the object information
string that would also or instead be used in the QSRSAVO API.
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/rzaiu/rzaiurzaiu121.htm
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/rzaiu/rzaiurzaiu123.htm
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/rzaiu/rzaiurzaiu124.htm
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/cl/savobj.htm
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/apis/qsrsavo.htm
Regards, Chuck
Rubino, Jim wrote:
I am trying to create a CL program that will do a RCVF of a phy file
that has the name of objects that I want to save to a savf. As I
read this file I am trying to build a string of 60 objects in a
variable. Then using this variable on the SAVOBJ command. The problem
I am having is that the objects in the variable are not going into
the individual OBJ fields on the SAVF command. <<SNIP>>
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.