Sorry, hopefully I am posting this in the correct location. I am using Natural within Windows:
Software AG Natural for Windows. -- Version 6.3.14 PL 0
Mainframe vs Windows - Errors.
I have a Natural program that I am able to view either within my windows environment or on the mainframe. Both locations STOW correctly. However, when you view the program within the windows environment, the +/- for a FOR and IF statement are both highlighted in red.
Is it possible for a program to STOW ok, yet still have problems with a statement? I can't find any other information for this indicator within the environment.
Attached & below is an example. So there may be problem with the way this - FOR and IF statement are setup that I am not seeing yet....? I’m assuming that is why there is a red box next to those parts of the code.. Sorry, still new to this. The attachment shows the code that is marked in red.
4860 FOR #AA = 1 TO 6
4862 IF #H-BUDGET(#AA) > ' '
4864 EXAMINE #BUDGET-ARRAY(*) FOR #H-BUDGET(#AA) GIVING INDEX #BB
4866 IF #BB > 0 AND
4868 #H-FUND(#AA) = #FUND-ARRAY(#BB) AND
4870 #H-OBJ-CAT(#AA) = #OBJ-CAT(#BB)
4872 ADD #H-OBJ-CAT-AMT(#AA) TO #OBJ-CAT-AMT(#BB)
4874 ** ADD #H-OBJ-CAT-AMT(#AA) TO #WORK-INCM.#AMNT-BUDG-ADJ(#BB)
4876 ELSE
4878 ADD 1 TO #CC
4880 MOVE #H-BUDGET(#AA) TO #BUDGET-ARRAY(#CC)
4882 MOVE #H-FUND(#AA) TO #FUND-ARRAY(#CC)
4884 MOVE #H-OBJ(#AA) TO #OBJECT-ARRAY(#CC)
4886 ** MOVE #H-OBJ(#AA) TO #WORK-INCM.#CODE-BUDG-ADJ(#CC)
4888 MOVE #H-OBJ-CAT(#AA) TO #OBJ-CAT(#CC)
4890 ADD #H-OBJ-CAT-AMT(#AA) TO #OBJ-CAT-AMT(#CC)
4892 ** ADD #H-OBJ-CAT-AMT(#AA) TO #WORK-INCM.#AMNT-BUDG-ADJ(#CC)
4894 END-IF
4896 ELSE
4898 ESCAPE BOTTOM
4900 END-IF
4902 END-FOR
Thank you in advance.
Mainframe vs Windows - Errors
-
- Posts: 20
- Joined: Fri Sep 07, 2012 11:25 pm
- Skillset: JCL, EASYTRIEVE, NATURAL
- Referer: Google
Mainframe vs Windows - Errors
You do not have the required permissions to view the files attached to this post.
- 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: Mainframe vs Windows - Errors
You know the program's syntax is correct, because it STOWed. The bug is in the colorization routine, whose logic is not as comprehensive as the compiler.
You can fix the coloring by removing the FOR keyword from the EXAMINE statement, but the EXAMINE won't read as well.
You can fix the coloring by removing the FOR keyword from the EXAMINE statement, but the EXAMINE won't read as well.
-
- Similar Topics
- Replies
- Views
- Last post
-
- 1
- 3587
-
by jibanes
View the latest post
Sun Dec 06, 2020 1:41 am
-
-
Copying All Data Off An Old Mainframe
by zunebuggy » Wed Sep 25, 2024 1:10 am » in Mainframe Security - 0
- 1580
-
by zunebuggy
View the latest post
Wed Sep 25, 2024 1:10 am
-
-
- 0
- 1617
-
by aarvalar1
View the latest post
Mon Sep 09, 2024 7:21 pm
-
- 2
- 2453
-
by brown7
View the latest post
Sun Nov 07, 2021 1:11 pm
-
-
Dropped records when FTP from mainframe to server
by MLK2348 » Tue Mar 19, 2024 9:19 pm » in All other Mainframe Topics - 2
- 3745
-
by sergeyken
View the latest post
Tue Apr 02, 2024 9:32 pm
-