Hello,
Does anybody know if it is possible to get in a jcl the name of the job that created the dataset:
Example:
//SORT01 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//CEEDUMP DD SYSOUT=C
//SORTMSG DD SYSOUT=*
//SORTJNF1 DD DSN=ABC.DE123F.GH123I(0),DISP=SHR
//SORTJNF2 DD DSN=JKL.MN123O.PQ123R(0),DISP=SHR <--- I need to get the name of the job that created this file
Job that created a dataset
- sergeyken
- Posts: 458
- Joined: Wed Jul 24, 2019 10:12 pm
- Skillset: Assembler, JCL, Utilities, PL/I, C/C++, DB2, SQL, REXX, COBOL, etc. etc. etc.
- Referer: Internet search
Re: Job that created a dataset
Please, clarify this sentence: "to get in a JCL the name of the job"
1) the job name to appear as a text within the JCL stream?
2) make the job name available to SORT utility in the same step?
3) print the job name as part of the JCL log, and/or of the SORT log?
4) something else?
1) the job name to appear as a text within the JCL stream?
2) make the job name available to SORT utility in the same step?
3) print the job name as part of the JCL log, and/or of the SORT log?
4) something else?
Javas and Pythons come and go, but JCL and SORT stay forever.
-
- Posts: 474
- Joined: Thu Mar 10, 2016 5:03 pm
- Skillset: assembler rexx zOS ispf racf smf
- Referer: saw it in the experts foprum thought I could help here
Re: Job that created a dataset
Not in JCL.
You can find the creation date using the IEHLIST utility or ISPF 3.4, then scan SMF records type 15 and 61 for that day for the datasetname. The latter is not a trivial exercise, so talk to your systems people, they might have something set up already.
You can find the creation date using the IEHLIST utility or ISPF 3.4, then scan SMF records type 15 and 61 for that day for the datasetname. The latter is not a trivial exercise, so talk to your systems people, they might have something set up already.
-
- Similar Topics
- Replies
- Views
- Last post
-
- 24
- 4352
-
by Pedro
View the latest post
Wed Jan 04, 2023 5:59 am
-
-
Can i read output file created after SORTing in the same pgm
by savitha_y » Sat Feb 06, 2021 1:17 am » in IBM Cobol - 4
- 1604
-
by savitha_y
View the latest post
Tue Feb 09, 2021 7:11 pm
-
-
- 3
- 2630
-
by sergeyken
View the latest post
Sat Nov 16, 2024 11:05 pm
-
- 12
- 3802
-
by RalphEagle
View the latest post
Fri Jul 30, 2021 1:00 pm
-
-
SMTPNOTE - can a font be specified for a dataset?
by Proddish2348 » Sat Jul 01, 2023 5:31 am » in Operating Systems - 0
- 4225
-
by Proddish2348
View the latest post
Sat Jul 01, 2023 5:31 am
-