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...

copy 100 records without using ibm utilities

Answer Posted / vaneesh

MOVE 0 TO WS-COUNTER
MOVE N TO END-OF-FILE

PERFORM 1000-COPY-PARAGRAPH UNTILL (WS-COUNTER = 100 OR END-
OF-FILE = 'Y'.

100-COPY-PARAGRAPH.
READ INPUT FILE
AT END MOVE Y TO END-OF-FILE
NOT AT END MOVE IN-REC TO OUT-REC
ADD +001 TO WS-COUNTER.
1000-EXIT.
EXI.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why did you choose to work with ibm mainframe cobol programming?

1162


What are literals?

1185


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

1484


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

7630


How can you get the ksds file records into your cobol program?

1138


What is the difference between Call and a Link?

1265


example for sub strings ? and refernce modifications whit output pls

2370


i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

1379


What is inspect in cobol ?

1356


Write a cobol program making use of the redefine clause.

1229


how to convert the recors form vsam file to db2 table tru file aid

3314


how do you reference the esds vsam file formats from cobol programs

1273


Can we change the password using ALTER? anyone tried and changed?

2081


What is redefines clause in COBOL?

1351


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

3319