[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

as/400 programming - Indirect reference API or BIF

Asked by elauren2 in Programming for iSeries / AS400, COBOL Programming Language, RPG Programming Language

Tags: Indirect reference RPG COBOL CLP OS400

Hello, I am trying to find an easy "Tool" or function to create a variable from the contents of another variable, or do some kind of Indirect reference. I am getting the variable name by using DSPFFD in a CL. I then want to call an RPG or COBOL program that will take the value of the WHFLDE ie "CUSTNO" and get the value from the field CUSTNO in a PF. My goal is to be able to pass any file name into the CL.  Any help would be much appreciated.
1:
2:
3:
4:
5:
6:
dspffd   whflde = "CUSTNO"
 
PF  Custmast
      CUSTNO  10A
      Cname     20A
      Caddr      30A
[+][-]09/22/09 12:36 PM, ID: 25396619Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/22/09 12:47 PM, ID: 25396765Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/16/09 02:55 PM, ID: 25593673Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625