View previous topic :: View next topic
|
Author |
Message |
sivasree03
New User
Joined: 12 Sep 2008 Posts: 8 Location: chennai
|
|
|
|
Hi,
I have a requirement to write a file with a number from '000000000' to '000099999', is it possible thru DFSORT. I do not have any input files for this. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
sivasree03 wrote: |
Hi,
I have a requirement to write a file with a number from '000000000' to '000099999', is it possible thru DFSORT. I do not have any input files for this. |
Is this just one number between the limits or all numbers ? |
|
Back to top |
|
|
sivasree03
New User
Joined: 12 Sep 2008 Posts: 8 Location: chennai
|
|
|
|
We have to write all the numbers between these limits. And I do not have any input file for this |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Here's a DFSORT job that will do what you asked for:
Code: |
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD *
DUMMY RECORD
/*
//SORTOUT DD DSN=... output file (FB/9)
//SYSIN DD *
OPTION COPY
OUTFIL REPEAT=100000,BUILD=(SEQNUM,9,ZD,START=0)
/*
|
|
|
Back to top |
|
|
|