+1

I have always admired the product but I have really a hard time using the 
manual effectively.  It leaves MUCH to be desired.

Peter

From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
Schmitt, Michael
Sent: Monday, September 18, 2023 10:52 AM
To: [email protected]
Subject: Re: Generate a data set with record numbers?


Thanks, "REPEAT" was what I was looking for.





I think the SyncSort MFX manual is in the top 2 (bottom 2?) for hardest to 
figure out capabilities and syntax.



-----Original Message-----

From: IBM Mainframe Discussion List <[email protected]> On Behalf Of Sri 
h Kolusu

Sent: Friday, September 15, 2023 5:01 PM

To: [email protected]

Subject: Re: Generate a data set with record numbers?



>> The question is, what's the simplest way to do this with a *standard* z/OS 
>> utility (i.e. that comes with z/OS), or with a standard sort product (e.g. 
>> DFSORT or SyncSort), where it is all in a self-contained job?



Michael,



DFSORT can generate the sequenced records quite easily. Use the following JCL. 
It will generate an 8 byte sequence number. You can change the REPEAT=n  to the 
desired number of records that you want.



//STEP0100 EXEC PGM=SORT

//SYSOUT   DD SYSOUT=*

//SORTIN   DD *

ABC

//SORTOUT  DD SYSOUT=*

//SYSIN    DD *

  OPTION COPY

  OUTFIL REPEAT=1000,

  BUILD=(C'RECORD ',SEQNUM,8,ZD)

/*



If you want the leading zeroes suppressed then you can use FS format instead of 
ZD



Thanks,

Kolusu

DFSORT Development

IBM Corporation

--

This message and any attachments are intended only for the use of the addressee 
and may contain information that is privileged and confidential. If the reader 
of the message is not the intended recipient or an authorized representative of 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please notify us immediately by e-mail and delete the message and any 
attachments from your system.


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to