Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

I-QUESTIONS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
rsantoshk
Warnings : 1

New User


Joined: 09 Aug 2005
Posts: 1
Location: hyderabad

PostPosted: Tue Aug 09, 2005 2:19 pm    Post subject: I-QUESTIONS
Reply with quote

hi,

Can u please answer the following questions?

1. Give compiler errors and run time errors as many as possible?
2. Explain how do u do testing?
3. I have a file which contains 1000 records. I want to sort 500th record to 800th record using COBOL sort. How do u do?
4. I want to eliminate the duplicates while sorting a file?

Thank you.
Back to top
View user's profile Send private message

shivashunmugam Muthu

Active User


Joined: 22 Jul 2005
Posts: 114
Location: Chennai

PostPosted: Tue Aug 09, 2005 4:05 pm    Post subject: Re: I-QUESTIONS
Reply with quote

For 3rd Q

Start copying after specified records

Start copying after skipping 1000 records.
SORT FIELDS=COPY,SKIPREC=1000
Index

Stop copying after specified records

Stop copying after 1000 records.
SORT FIELDS=COPY,STOPREC=1000

Instead of copy u can specify your conditions for sorting

For 4th

Add sum control statement after specifying the above.. (instead of STOPREC & SKIPREC give)

SUM FIELDS = NONE
Back to top
View user's profile Send private message
thanooz

New User


Joined: 28 Jun 2005
Posts: 99

PostPosted: Tue Aug 09, 2005 4:06 pm    Post subject:
Reply with quote

hi

4) sort fields=(1,8,ch,a),equals
sum fields=none



thanks,
thanooz.
Back to top
View user's profile Send private message
thanooz

New User


Joined: 28 Jun 2005
Posts: 99

PostPosted: Tue Aug 09, 2005 4:15 pm    Post subject:
Reply with quote

hi

3rd question

sort fields=(1,8,ch,a) skiprec=500 stoprec=800

thanks,
thanooz
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm
No new posts Viewing executing process in NDM .. q... Debb.Brant IBM Tools 0 Wed Dec 14, 2016 10:55 pm
No new posts INCLUDE condition questions van bui DFSORT/ICETOOL 1 Thu Jun 30, 2016 9:52 am
No new posts SAS Programming - Basic Questions Techelm All Other Mainframe Topics 3 Fri Mar 18, 2016 10:53 pm
No new posts Where can i find Interview questions ... Elixir Mainframe Interview Questions 4 Sat Feb 20, 2016 12:38 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us