MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

To find out a dataset is an empty file...

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
bala
Beginner


Joined: 08 Dec 2005
Posts: 17
Topics: 6
Location: India

PostPosted: Fri Dec 16, 2005 2:51 am    Post subject: To find out a dataset is an empty file... Reply with quote

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). Smile
Bala
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Dec 16, 2005 5:45 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
bala
Beginner


Joined: 08 Dec 2005
Posts: 17
Topics: 6
Location: India

PostPosted: Sun Dec 18, 2005 11:55 pm    Post subject: Reply with quote

Thanks for your help. You gave a very useful info. to me.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group