i have a sequencial file contains multiple records, i want
to extract one row which contains various fields like order
number,date,warehouse,.ect.. in to the another file by
accepting the order number from jcl. how can i do it. pls
help me..
Answer Posted / sowjanya
let say ur input file is like below.
FD input-file.
01 input-record.
05 order-number pic x(5).
05 order-date pic x(10). etc.
the order number passed by the JCl willbe received in cobol
thru linkage section .let say that is LS-ORDER-NUMBER.
code like below in procedure division.
Procedure division.
Read input-file until EOF
at end move 'Y' to EOF.
if order-number = ls-order-number
write out-rec from input-record.
Here the out-rec contains only one record that has order
number equals to the order number received from JCL.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
Explain how you can characterize tables in cobol?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
Write the code implementing the perform … varying.
how do you define single dimensional array and multidimensional array in your cobol?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
how to access the file from prodution from changeman tool and to submit a file to production
Explain what you understand by passing by value.
Define static linking and dynamic linking.
What guidelines should be followed to write a structured cobol prgm?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
what are decleratives in cobol?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
what is s000 u4087 error? please give the all error codes in cobol,jcl.