Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the default value(s) for an initialize? What keyword will allow for an override of the default?

1115


Explain how you can characterize tables in cobol?

1057


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1502


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

1113


Write the code implementing the perform … varying.

1058


how do you define single dimensional array and multidimensional array in your cobol?

1092


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

1293


how to access the file from prodution from changeman tool and to submit a file to production

7537


Explain what you understand by passing by value.

1147


Define static linking and dynamic linking.

1185


What guidelines should be followed to write a structured cobol prgm?

1146


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

1077


what are decleratives in cobol?

2254


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

2465


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17876