On Fri, 15 Sep 2023 20:19:32 +0000, Schmitt, Michael wrote:
>I want to generate a data set that has the record number on each line, such as:
>
>RECORD 1
>RECORD 2
>RECORD 3
>
A shell solution:
#! /bin/sh +x
R=0
while R=$(( $R + 1 )); [ 10 -ge $R ]
do
echo "Record $R"
done
I'm confident you'll get alternatives in REXX and DFSORT.
--
gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN