where will we code call by content and call by reference dude pls reply soon ?
Answers were Sorted based on User's Feedback
Answer / munigopal
procedure division.
CALL "subpgm name"
USING BY CONTENT
BY REFERENCE.
BY REFERENCE is default
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / priya
its being coded in procedure division
procedure division.
CALL "subpgm name"
USING BY CONTENT
BY REFERENCE.
by content is default
| Is This Answer Correct ? | 1 Yes | 8 No |
what if any ,is the syntex error in the following piece of code 01 B PIC A(7) 02 C PIC 9(4) ........ IF(B NUMERIC) ADD 10 TO C a.the condition in the if statement is wrong b.noting is wrong c.because C is initialised.ADD 10 TO C is wrong d.both B and C shoud have same size.
What are the differences bitween cobol and cobol-2?
How to Pass table from a cobol program to another cobol program and how to use that table in called program
How can you add a particular field in copybook?
Will the variable POS in the following code have a value of 2 or not? 01 POS PIC S9(4) COMP VALUE 2. 01 FIRST-NAME PIC X(10) VALUE 'ABC'. 01 LAST-NAME PIC X(10) VALUE 'XYZ'. 01 NAME PIC X(20) VALUE SPACES. STRING FIRST-NAME DELIMITED BY SPACES ' ' DELIMITED BY SIZE LAST-NAME DELIMITED BY SPACES INTO NAME WITH POINTER POS
What does the IS NUMERIC clause establish ?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
study the following code 01 A1 05 B PIC 99 05 C PIC X(4) 01 A2 05 B PIC 99V99 05 C PIC A(4) pick out the valid statement from the following a.A1 and A2 can not have sub-ordinates b.A1 and A2 can have the same sub-ordinates but must have same PIC clause c.there is nothing wrong d.A1 and A2 can have same sub-ordinates provided they are not at 01 level
Minimum how many Number of Paragraphs are there in ID- Divison?
What are the divisions in a cobol program? Which one is the mandatory division among them?
How can i write a comp-3 variable into a sequential file should i declara the field in the file description as comp- 3?
Mention the guidelines to write a structured cobol program?