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.
Answers were Sorted based on User's Feedback
Answer / keshireddy
I guess Q is not clear..
If you want the task to complete with Cobol module within
one JCL step it can be done.
If task has to complete with JCL then you need to tell the
business logic. If anything like filtering.. then with 3
steps it can be done.
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / prachi
It depends on business logic..
If you can perform all these operation in one program you
can put it in one step in JCL.
| Is This Answer Correct ? | 0 Yes | 0 No |
In A cobol program , we can use COPY Statement in FILE- SECTION / WORKING-STORAGE SECTION / ENVIRONMENT DIVIION basically what is the difference
study the following 01 A PIC 99V0 VALUE 5 01 B PIC 9V9 VALUE 6 01 C PIC 99V9 VALUE 2.5 01 D PIC 99 VALUE 3 COMPUTE A ROUNDED B C = A+B*C/D ON SIZE ERROR PERFORM PRINT-ERROR the comments of A.B.C after execution of the above statement are a.A=10 B=0 C=10 b.A=10 B=9.9 C=9.9 c.A=10 B=0 C=9.9 d.A=10 B=6 C=10
How to read a 100 record from a file through cobol?
What is binary search?
How many bytes do a s9 (7) comp-3 field occupy?
I have the requirement to compare the two files and pick up the matching records. File 1. file2 23 32 32 13 34 15 35 36 36 35 43 Get the matching records from this 2 files to out file. how you will do this in cobol program?
15 Answers ADP, Broadridge, CTS, HSBC, L&T, RBS, TCS,
how you read control card into array?
I have put two write operations in a single para for two different conditions.Will that lead to an abend or run successfully and write two records?
What is XDC ?
What is the difference between Structured COBOL Programming and Object Oriented COBOL ?
What is file status 39 ?
What divisions, sections and paragraphs are mandatory for a COBOL program?