Hi While i was trying to call a program dynamically in pl/1 i am getting SOC-7 error.
Proga :
PROGA:PROC OPTIONS(MAIN);
DCL A FIXED DEC(2) INIT(12);
DCL B FIXED DEC(2) INIT(14);
DCL C FIXED DEC(2) INIT(00);
FETCH PROGB;
CALL PROGB(A,B,C);
RELEASE PROGB;
PUT SKIP LIST('VALUE OF C IS =',C);
ON ERROR BEGIN;
CALL PLIDUMP;
PUT DATA;
END;
END PROGA;
progb:
PROGB: PROC(A,B,C);
DCL A FIXED DEC(2);
DCL B FIXED DEC(2);
DCL C FIXED DEC(2);
C=A+B;
PUT SKIP LIST(C);
END PROGB;
i am getting SOC7 error.
error in dynamic call
-
- Posts: 3
- Joined: Fri Oct 24, 2008 11:32 am
- Skillset: pl/1,cobol,db2,jcl
- Referer: villan
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: error in dynamic call
Hello and welcome to the forum,
What do the compiles and link edits show?
What happens if you try to do this statically?
On which statement?i am getting SOC7 error.
What do the compiles and link edits show?
What happens if you try to do this statically?
Hope this helps,
d.sch.
d.sch.
-
- Posts: 3
- Joined: Fri Oct 24, 2008 11:32 am
- Skillset: pl/1,cobol,db2,jcl
- Referer: villan
Re: error in dynamic call
Hi Dick,
Sorry this is my Mistake... forgot to give keyword fetchable in called program.now the program works fine....
Sorry this is my Mistake... forgot to give keyword fetchable in called program.now the program works fine....
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: error in dynamic call
Hello,
Good to hear it is working - thanks for letting us know.
d
Not a problemSorry this is my Mistake...

Good to hear it is working - thanks for letting us know.
d