View previous topic :: View next topic |
Author |
Message |
bala Beginner

Joined: 08 Dec 2005 Posts: 17 Topics: 6 Location: India
|
Posted: Fri Dec 16, 2005 2:51 am Post subject: To find out a dataset is an empty file... |
|
|
Hello,
I am using PL/1 as a application language. My Jcl calls a pgm, which checks the input Dataset whether the input dataset is empty or not. Instead of doing that in a application pgm, can I do it in JCL itself? When the input dataset/file (represented as DD name of Jcl) is empty then bypass that step, or abend the job like that... If possible, it will be very helpful to me to change a production version.
One more question, can we use the jcl's catalog information in a application program like pl/i?? For eg.. printing/accessing file's volume, block size, referenced&created date etc.. etc.. in a application language(PL/1)...
Thanks in advance for your answer(s).
Bala |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Fri Dec 16, 2005 5:45 am Post subject: |
|
|
bala,
PLEASE SEARCH before posting. check this link
http://www.mvsforums.com/helpboards/viewtopic.php?t=5319
Quote: |
One more question, can we use the jcl's catalog information in a application program like pl/i?? For eg.. printing/accessing file's volume, block size, referenced&created date etc.. etc.. in a application language(PL/1)...
|
You can call IDCAMS from Pl/i to issue Listcat against the dataset and parse the information from that.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
bala Beginner

Joined: 08 Dec 2005 Posts: 17 Topics: 6 Location: India
|
Posted: Sun Dec 18, 2005 11:55 pm Post subject: |
|
|
Thanks for your help. You gave a very useful info. to me. |
|
Back to top |
|
 |
|
|