Hi
When i execute a program cobol in the JCL i use
//SYSTSIN DD *
DSN SYSTEM(DB2P)
RUN PROGRAM(PROGNAME) PLAN(PLANNAME)
/*
i search to find a way to get the name of the DSN Connect in the program cobol (DB2P)
but i don't see how do this.
pearhaps by using a EXEC SQL SELECT ..........END-EXEC but i don"t know whet column or function use.
thank you to anyone will help me to do this.
Thank you.
Christophe
Get DSN SYSTEM in a Program COBOL
-
- Posts: 17
- Joined: Fri Jul 08, 2022 7:29 pm
- Skillset: leblesmoutilabiskouti
- Referer: leblesmoutilabiskouti
Re: Get DSN SYSTEM in a Program COBOL
Hello
Do so :
SELECT GETVARIABLE('SYSIBM.SSID') FROM SYSIBM.SYSDUMMY1

Do so :
SELECT GETVARIABLE('SYSIBM.SSID') FROM SYSIBM.SYSDUMMY1

-
- Similar Topics
- Replies
- Views
- Last post
-
-
Calling Java program on UNIX/USS from a COBOL CICS program?
by zbius » Tue Nov 05, 2024 2:37 pm » in IBM Cobol - 2
- 2580
-
by zbius
View the latest post
Wed Nov 06, 2024 6:02 pm
-
-
- 2
- 3153
-
by enrico-sorichetti
View the latest post
Mon Oct 30, 2023 6:25 pm
-
- 6
- 1923
-
by sergeyken
View the latest post
Sat Jul 17, 2021 12:38 am
-
-
Find the version of a cobol program through its load module
by vinigim » Fri Oct 30, 2020 3:16 am » in IBM Cobol - 5
- 5136
-
by chaat
View the latest post
Sat Nov 07, 2020 8:40 am
-
-
-
Can anyone tell me how to retrieve the vsam system timestamp
by jdechirico » Tue Jun 18, 2024 9:22 pm » in VSAM/SMS - 1
- 1541
-
by enrico-sorichetti
View the latest post
Tue Jun 18, 2024 10:06 pm
-