I have a file which contains so many lines and variable
number of lines are treated as a record. For example

*first ooooo xxxxx
ttttt mmmm vvvvvvv
*end uuu bbbb
*first kkkkvvvvvv
nnnn mmmmm kkkkk
fffff gggg ffff
kkkk
lllll
*end.

Here the lines from *first to *end are treated as a record.
The number of lines between *first and *end is not same for
all the records.

Suppose there are 100 records (or number of records are not
predefined)like the format given in the above example. Now
the entire file needs to split into two files, first having
40 and remaining in the second file.
Can we split using sort utility? If possible then what is
the sort card?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Programming Code AllOther Interview Questions

Write a program to Print the Pascal triangle

0 Answers   InterGraph,


How to find the list of users who have two codes su01 and pfcg? thank in advance all.

0 Answers  


what full form name of B.K.U.

0 Answers  


can any body give me answer to this question please? please give me code in cl with the folling specifications. 1.Accept 2 parameters-date and date type 2.If date type is J then convert date to *MDY format 3.If date type is M convert date to *JUL format 4. Send a program message with the value of converted date? Please give me the answer.Because im practicing in my house.Im taking trining on AS/400.

0 Answers  


Write a program that will convert an integer pointer to an integer and vice-versa.

0 Answers  






Write a Program to find whether the given number is a Armstrong number.

0 Answers   InterGraph,


DAL in oracle

1 Answers  


Hello, Can anyone tell me the source code for FLAMES game in Control Language Programming(CLP)of AS/400.

1 Answers  


i wrote from two tables (employee and department) 1.select * from employee,department; (it is cartesian product) but 2.select * from employee department; (?????????????????) by default it displays the employee table,what is the reason it is not taking department ??? mail @ mak2786@gmail.com Arunkumar

1 Answers  


Write a Program to truncate a given floating point value (e.g.16.25=16).

0 Answers   InterGraph,


How to get the version(major,minor,revision ) of VB6.0 delphi code .I am able to fetch dll file of vb6.0 but not vba file .Can u send me the code snippet in delphi to get the value for vb6.0.

0 Answers  


i have two internal tables with customer and credit amount in one table then customer and debit amount in another table. now i need output in single list as customer, credit amount, debit amount and (credit - debit). help me please

1 Answers  


Categories