Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
SAS is an independent software product from a private company called SAS Institute, Inc. It is a superb data manipulation tool. If your site has it, the code to generate a file of sequence numbers in reverse order would be:
Code:
DATA _NULL_ ;
FILE OUTFILE ;
DO I=9999999 TO 1 BY -1 ;
PUT I Z8.;
END;
"I tried using SELCOPY but it takes lot of time to execute the job."
I've executed some benchmark tests on our 28MIP Flex-es emulated z/OS server using Kolusu's sample SORT job and the following, equivalent SELCOPY job...
cvpc 4 at 11 to 7 at 1
write OUTDD
sub 1 from 4 at 11
goto loop
There were only a few seconds difference between the two jobs, both taking in the region of 4 minutes to execute. (So some finger tapping is involved for this task whichever application you use. )
Note that, for any questions and information relating to SELCOPY, a SELCOPY group/forum is available via http://www.linkedin.com (registration required).