How to Pass table from a cobol program to another cobol
program and how to use that table in called program
Answers were Sorted based on User's Feedback
Answer / guest
Declare the tabe in both alling and called programs WS_Section
and Linkage section respectively..
| Is This Answer Correct ? | 4 Yes | 2 No |
Answer / maria
we can declare the internal table in both the called and calling program with the key word EXTERNAL .By doing this, the table data can be accessed in both the programs.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / sj
we can pass table via linkage section means static table
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / guest
Can anyone explain this by example and give some sample code of both calling and called program ?
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / santhosh
Ramkrishna is right, we cannt pass the table via linkage
| Is This Answer Correct ? | 1 Yes | 3 No |
Answer / ramakrishna.d
We cant pass a table from one cobol program to another
cobol program
| Is This Answer Correct ? | 3 Yes | 12 No |
What is the difference between Global and External Variables?
what is call by value and call by reference ?
3 Answers Infosys, ITC Indian Tobacco Company,
What is LENGTH in COBOL II?
Mention the guidelines to write a structured cobol program?
What is static and dynamic call in cobol?
What is the utilization of copybook in cobol?
Consider the following: 77 A PIC 9(10) 77 B PIC 9(10) 77 C PIC 9(19) MULTIPLY AB BY B GIVING C Which of the following is true ? (a) The execution of the above may result in size error. (b) The execution of the above will result in size error. (c) The definition of C is invalid resulting in compilation error. (d) No error will be thee and the program would proceed correctly.
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
i have variable record in the 5th, i want to sort from 5th filed ? how ?
How do you define a sort file in JCL that runs the COBOL program?
here is my compile and link edit steps in a jcl //COMPILE1 JOB (3CUS,S),'CCDM TEST' //STEPNAME EXEC PGM=IGYCRCTL,PARM='DYNAM,RENT,LIB,OBJECT, // OFFSET,APOST,OPTIMIZE',REGION=4096K //STEPLIB DD DSNAME=PM7351.TEST2.COB,DISP=SHR //SYSIN DD DSNAME=PM7351.TEST2.COB(PGM1),DISP=SHR //SYSUT1 DD UNIT=SYSDA,SPACE=(10,(10,10)) //SYSUT2 DD UNIT=SYSDA,SPACE=(10,(10,10)) //SYSUT3 DD UNIT=SYSDA,SPACE=(10,(10,10)) //SYSUT4 DD UNIT=SYSDA,SPACE=(10,(10,10)) //SYSUT5 DD UNIT=SYSDA,SPACE=(10,(10,10)) //SYSUT6 DD UNIT=SYSDA,SPACE=(10,(10,10)) //SYSUT7 DD UNIT=SYSDA,SPACE=(10,(10,10)) //SYSPRINT DD SYSOUT=* //SYSLIN DD DSNAME=&&LOAD,DISP=(MOD,PASS),UNIT=SYSDA, // SPACE=(10,(10,10)),DCB=BLKSIZE=400 //LKED EXEC PGM=IEWL,REGION=1024K //SYSPRINT DD SYSOUT=A //SYSLIB DD DSN=PM7351.TEST2.LOADLIB,DISP=SHR // DD DSN=PM7351.TEST2.COB(PGM1),DISP=SHR //SYSLMOD DD DSN=PM7351.TEST2.LOADLIB, // DISP=SHR //SYSUT1 DD UNIT=SYSDA,DCB=BLKSIZE=1024,SPACE=(CYL,(1,1)) //SYSTERM DD SYSOUT=* //SYSLIN DD DSN=&&LOAD,DISP=(OLD,DELETE) //SYSIN DD DUMMY i am getting IEW2013I 0F08 NO MEMBER NAME WAS SPECIFIED. MODULE WAS SAVED USING TEMPNAM1. could any one tell me the resolution for this..?
What is comp-1 and comp-2?