How do pass the values to the parameters in cobol
Answers were Sorted based on User's Feedback
Answer / sushant kumar mohanty
1) PARM (Receive in Linkage Section)
2) SYSIN DD* (Receive with ACCEPT statement)
3) Files ( Declare/Define/Open in the program)
Is This Answer Correct ? | 5 Yes | 0 No |
Answer / naidu
You can pass the values to cobol program using 3 ways:
1.passing the parameters from SYSIN
2.using parm
3.using file
Is This Answer Correct ? | 2 Yes | 0 No |
i have a variable block which is used in my cobol program as input file having records of 4080 after compilation while runing the program im getiing file attribut mismatch and it is saying tht the record length of the file is 4084 can any one knw the answer how to reslove it ?
how can i see junk values in dclgen or in hostvariable of comp ?
how will u pass dadta to cobol+db2 program...?
what is MSGLEVEL?
Scenario: I have 3 Input Files.Read the first i/p file and depending on certain business logic, I want to read wither i/p file-2 or i/p file-3.Now, depending on certain business logic applied to the record read from either file-2 or file-3, I decide to write them to either output file-2 or output file-2. Question: How many job steps are necessary to implement a solution for the above.
i have the following varibles in the working storage 05 ws-A PIC X(30) VALUE 'ABCDEFGHIJKLMNOPQRESTUVWXYZ ' 05 WS-B REDEFINES WS-A 10 WS-B1 PIC X(10). 10 WS-B2 PIC 9(10). 10 WS-B3 PIC X(10). If I Display B1, B2 and B3 respectively, what is the value displayed in B2
What is the difference between index and subscript?
Can the OCCURS clause be at the 01 level?
Which of the following paragraphs is compulsory in every COBOL program? (a) SPECIAL-NAMES (b) PROGRAM-ID (c) FILE-CONTROL (d) OBJECT-COMPUTER
ZEROES and SPACES are _______ constants (a) Figurative (b) Numeric (c) Non-numeric (d) Alphabete
What is the difference beetween Arrays and Tables in Cobol? please dont give the answer that arrays in cobol terminology is called tables......
can u plz expain me how to declare dynamic array? what is the meaning of depending on clause in dynamic array?