Re: Generate a data set with record numbers?

2024-02-07 Thread Schmitt, Michael
x27;s when I noticed that the linked documentation was for z/OS 2.5. -Original Message- From: IBM Mainframe Discussion List On Behalf Of Paul Gilmartin Sent: Tuesday, February 6, 2024 5:30 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Generate a data set with record numbers? On Tue, 6 F

Re: Generate a data set with record numbers?

2024-02-06 Thread Paul Gilmartin
On Tue, 6 Feb 2024 16:18:16 -0600, Michael Schmitt wrote: >Reason I never knew you could have a sequential SYSEXEC is I'm on z/OS 2.4. >This capability is added in z/OS 2.5. > It has long been possible according to lore. A resourceful programmer looked at the control block description where was

Re: Generate a data set with record numbers?

2024-02-06 Thread Michael Schmitt
hricht- >Von: IBM Mainframe Discussion List Im Auftrag von >Schmitt, Michael >Gesendet: Freitag, 15. September 2023 22:20 >An: IBM-MAIN@LISTSERV.UA.EDU >Betreff: [IBM-MAIN] Generate a data set with record numbers? > >I want to generate a data set that has the record num

Re: Generate a data set with record numbers?

2023-09-18 Thread Farley, Peter
lusu Sent: Friday, September 15, 2023 5:01 PM To: IBM-MAIN@LISTSERV.UA.EDU 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

Re: Generate a data set with record numbers?

2023-09-18 Thread Schmitt, Michael
Sent: Monday, September 18, 2023 1:47 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: AW: Generate a data set with record numbers? Hi Michael, you could directly run the REXX as in-stream in the JCL: https://www.ibm.com/docs/en/zos/2.5.0?topic=routine-using-irxjcl-execute-in-stream-rexx-exec Best re

Re: Generate a data set with record numbers?

2023-09-18 Thread Schmitt, Michael
5:01 PM To: IBM-MAIN@LISTSERV.UA.EDU 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

Re: Generate a data set with record numbers?

2023-09-18 Thread Schmitt, Michael
Ah, INDEX was the parameter I needed. -Original Message- From: IBM Mainframe Discussion List On Behalf Of Bill Godfrey Sent: Friday, September 15, 2023 4:31 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Generate a data set with record numbers? On Fri, 15 Sep 2023 20:19:32 +, Schmitt

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

2023-09-18 Thread Paul Gilmartin
On Mon, 18 Sep 2023 06:46:58 +, Beate Kawelke wrote: > >you could directly run the REXX as in-stream in the JCL: >https://www.ibm.com/docs/en/zos/2.5.0?topic=routine-using-irxjcl-execute-in-stream-rexx-exec > Where I read: When the first non-blank name in the parm data passed to IRXJCL

AW: Generate a data set with record numbers?

2023-09-17 Thread Beate Kawelke
: Freitag, 15. September 2023 22:20 An: IBM-MAIN@LISTSERV.UA.EDU Betreff: [IBM-MAIN] Generate a data set with record numbers? I want to generate a data set that has the record number on each line, such as: RECORD 1 RECORD 2 RECORD 3 Or RECORD 1 RECORD 2 RECORD 3 Perhaps I want to

Re: Generate a data set with record numbers?

2023-09-15 Thread Sri h Kolusu
>> 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 f

Re: Generate a data set with record numbers?

2023-09-15 Thread Paul Gilmartin
On Fri, 15 Sep 2023 20:55:21 +, Schmitt, Michael wrote: >Can you run the shell script from JCL? > Probably as STDENV to BPXBATCH. Simpler as STDIN to COZBATCH or AOPBATCH, but those aren't base z/OS utilities. >-Original Message- >From: Paul Gilmartin >Sent: Friday, September 15, 202

Re: Generate a data set with record numbers?

2023-09-15 Thread Bill Godfrey
On Fri, 15 Sep 2023 20:19:32 +, Schmitt, Michael wrote: For 80-byte records: //DG EXEC PGM=IEBDG //SYSPRINT DD SYSOUT=* //OUTDDDD DSN=USERID.IEBDG.DATA,DISP=SHR //SYSINDD * DSD OUTPUT=(OUTDD) FD NAME=REC,LENGTH=7,STARTLOC=1,PICTURE=7,'RECORD ' FD NAME=SEQ,LENGTH=5,FORMAT=ZD

Re: Generate a data set with record numbers?

2023-09-15 Thread Mark Naylon
You can run the below in batch and point systsprt to disk /* REXX */ do x = 1 to 100 Say "RECORD " || X End -- For IBM-MAIN subscribe / signoff / archive access

Re: Generate a data set with record numbers?

2023-09-15 Thread Retired Mainframer
Look up the SEQNUM operand in your sort reference -Original Message- From: IBM Mainframe Discussion List On Behalf Of Schmitt, Michael Sent: Friday, September 15, 2023 1:20 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Generate a data set with record numbers? I want to generate a data set

Re: Generate a data set with record numbers?

2023-09-15 Thread Schmitt, Michael
On Behalf Of Paul Gilmartin Sent: Friday, September 15, 2023 3:45 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Generate a data set with record numbers? On Fri, 15 Sep 2023 20:19:32 +, Schmitt, Michael wrote: >I want to generate a data set that has the record number on each line, such as

Re: Generate a data set with record numbers?

2023-09-15 Thread Paul Gilmartin
On Fri, 15 Sep 2023 20:19:32 +, 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

Generate a data set with record numbers?

2023-09-15 Thread Schmitt, Michael
I want to generate a data set that has the record number on each line, such as: RECORD 1 RECORD 2 RECORD 3 Or RECORD 1 RECORD 2 RECORD 3 Perhaps I want to generate 1,000 records. Or 10,000. The question is, what's the simplest way to do this with a *standard* z/OS utility (i.e. th