IF UNIT-CONTROL(R1.) = HOLDING-POS-UNITS-HELD(R1./11)
MOVE UNIT-CONTROL(R1.) TO #CW0002L1-IN-DEPOSIT
MOVE 0 TO #CW0002L1-AT-VAULT
ELSE
MOVE HOLDING-POS-UNITS-HELD(11) TO #CW0002L1-IN-DEPOSIT
MOVE UNIT-CONTROL(R1.) TO #CW0002L1-AT-VAULT
COMPUTE #CW0002L1-AT-VAULT = #CW0002L1-AT-VAULT -
#CW0002L1-IN-DEPOSIT
END-IF
I just need to know what is the meaning of IF UNIT-CONTROL(R1.) = HOLDING-POS-UNITS-HELD(R1./11) statement ?
Meaning of (R1./11) statement ?
-
- Posts: 90
- Joined: Sun Mar 14, 2010 5:12 pm
- Skillset: Natural,Adabas,jcl
- Referer: friend
- RGZbrog
- Posts: 101
- Joined: Mon Nov 23, 2009 1:34 pm
- Skillset: Natural, Adabas, Predict, Natural Security, Construct, EntireX, SPoD, NaturalONE
- Referer: SAG Developer Forum
- Location: California, USA
- Contact:
Re: Meaning of (R1./11) statement ?
"R1." is a statement label, likely referring to a READ statement. Statement labels are used as field qualifiers. For example, if your master and transaction files both contained a PERSONNEL-ID field, Natural wold need to know which one you meant. In "R1./11" the slash is used to separate the label from the index.
You could also qualify using the view name:
This statement assigns UNIT-CONTROL to the value of the 11th occurrence of HOLDING-POS-UNITS-HELD.
You could also qualify using the view name:
Code: Select all
view.UNIT-CONTROL = view.HOLDING-POS-UNITS-HELD(11)
This statement assigns UNIT-CONTROL to the value of the 11th occurrence of HOLDING-POS-UNITS-HELD.
-
- Similar Topics
- Replies
- Views
- Last post
-
- 8
- 4453
-
by steve-myers
View the latest post
Sat Oct 16, 2021 8:59 pm
-
-
Splice JCL into one record for DD statement parms
by phcribb » Thu Nov 05, 2020 9:31 pm » in CLIST & REXX - 3
- 1967
-
by phcribb
View the latest post
Fri Nov 06, 2020 8:06 pm
-