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


How to retain the Duplicates in the one records?

Answers were Sorted based on User's Feedback



How to retain the Duplicates in the one records?..

Answer / kk

Hi,

Using sort Utilities,
some fields=None,xsum
//STEP010 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SORTIN DD DSN=TEST.XSUM.INPUT,DISP=SHR
//SORTOUT DD DSN=TEST.XSUM.OUTPUT,DISP=SHR
//SORTXSUM DD DSN=TEST.XSUM.OUTPUT.XSUM,DISP=SHR
//SYSIN DD *
SORT FIELDS=(2,10,CH,A)
SUM FIELDS=NONE,XSUM

Is This Answer Correct ?    15 Yes 4 No

How to retain the Duplicates in the one records?..

Answer / tv

The question is want to retain duplicates. So sum
fields=none shouldn't be used in SORTing.

Is This Answer Correct ?    1 Yes 2 No

How to retain the Duplicates in the one records?..

Answer / sow

in Sysin dd*

sortfields=copy
sumfields=none,xsum

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More COBOL Interview Questions

What is the difference between a binary search and a sequential search?

10 Answers  


what is redefines? where it can be effectively use for the purpose of memory utilization? give an example?

4 Answers   IBM,


In A cobol program , we can use COPY Statement in FILE- SECTION / WORKING-STORAGE SECTION / ENVIRONMENT DIVIION basically what is the difference

3 Answers   IBM,


How to concatenation one or more string?

4 Answers   Temenos,


which is better comp or comp-3 in terms of memory utilization?

6 Answers  


what modification we need to do in jcl if we use sort in cobol? I mean whether we need to include tempary file used for sorting in assign statement?

3 Answers   TCS,


I have a PS file and I would like to manually insert the binary values (like a COMP format) into the file. How can i do that? the way do in COMP-3 format.. suppose i want to insert -12345 in to file in comp-3 format. simply we can open a file in edit mode and do HEX-ON and insert the value . SEE BELOW-- 135 24D in 3 bytes - this will be COMP-3 presenatation of -12345.

1 Answers  


can i use multiple when statements in search & search all ? justify ur answer?

2 Answers  


What is ASKTIME, SUSPEND

1 Answers   IBM,


A table has two indexes defined. Which one will be used by the SEARCH?

0 Answers  


In the JCL, how do you define the files referred to in a subroutine ?

2 Answers  


I got user abend U4038 while compiling my runjcl.. can anyone help me?

10 Answers   CGI,


Categories