To check if the latest version of given GDG base has data
Hi All ,
I am trying to run a shell script through a JCL . The requirement is I have a gdg base name and I need to create a script that will just check if the latest version of that gdg has data or not . If it doesnt have data RC 4 need to be returned . One more thing which is bothering me is i need to pass a parameter from the JCL to that script that will be appended at the end of the file . Let me be more clear .
Suppose the file name is PRODGA.GL.DTL&PARM
This would be the JCl :
So the Script needs to check for the file PRODGA.GL.DTLTEST_00 (latest version) for the data ....something like
Any sort of help is appreciated and pls let me know if i can provide you guys with some more details which might be needed here.
I have come up with this script which does the thngs required but in both the cases i.e., whether the file PRODGA.GL.DTLTEST_00 has data or not it gives file empty error . The PARM passed from JCL is TEST
now even if ls -l PRODGA.GL.DTLTEST_00 :
but this script shws error - file empty
Could anyone please let me know where i am missing .
Are you running the JCL on the MVS side to perform a script on the Unix side? If so why not use the MVS utilities to check if the GDG is empty? Also, you might try posting your problem on this site: MVSFORUMS.com :: Index or do a search their and see what you find. Good Luck.
Hi
During a host review session I was told to check if the engineers have been updating Solaris 11 OS regularly by verifying the SRU version of the system.
However i was having no luck in finding the latest SRU version number in oracle website for hours. I wonder did anyone here know where i... (4 Replies)
Hello,
Please i have installed libatlas-base-dev on my Ubuntu Trusty Tahr:
sudo apt-get install libatlas-base-dev
Which command can i use to get the version of the library installed ?
Thanks a lot.
Best Regards. (2 Replies)
Hi All ,
I am trying to run a shell script through a JCL . The requirement is I have a gdg base name and I need to create a script that will just check if the latest version of that gdg has data or not . If it doesnt have data RC 4 need to be returned . One more thing which is bothering me is i... (1 Reply)
Hi All,
I am having trouble through, I am reading the input from tab delimited file containing several records,
e.g.
line1 field1 field2 field3 so on..
line2 field1 field2 field3 so on..
..
..
on the basis of certain fields for each record in input file, I have to retrieve... (1 Reply)
:o How do I confirm that the script on one server is latest compare to other servers? Is there any script which can tell me the latest version of a file across the servers?
Thanks, (2 Replies)
I am currently taking a Unix programming class in school, I want ot know which is more efficient and quicker, downloading the os or buying the os (4 Replies)