Search Results

Search: Posts Made By: mavesum
8,442
Posted By mavesum
its workin fine now ... i tried giving echo...
its workin fine now ...

i tried giving echo $PWD and found out it was looking in some different dir .
8,442
Posted By mavesum
Hi All , I have come up with this script...
Hi All ,

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...
3,398
Posted By mavesum
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...
8,442
Posted By mavesum
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...
5,233
Posted By mavesum
thnx for all prompt replies ...all of them worked...
thnx for all prompt replies ...all of them worked for me

i am using ! -s for my script :)
5,233
Posted By mavesum
if a file is empty throw an error
I want to count the number of lines in a file and store it in a variable if this count is zero i hv to throw an error ...is this syntax correct , but i am not getting the desired result

I am not...
4,785
Posted By mavesum
ahh now I got it ...thnkx for such a clear...
ahh now I got it ...thnkx for such a clear explanantion :)
4,785
Posted By mavesum
thnx for the reply , now i m giving like this ...
thnx for the reply , now i m giving like this

#!/bin/ksh
if [[ -s "$DD_INDD" ]]; then
echo "data"
ERROR=$?
echo "$ERROR"
else
echo "****************************"
echo "**** ERROR...
4,785
Posted By mavesum
Getting same exit status for empty and non empty file
Hi All,

I am checking for a empty input file to do some further action , but I am getting exit status 0 in both the cases , for empty and non empty file both.

The value of $? is coming 0 in...
4,270
Posted By mavesum
its not workng in perl not sure wat syntax...
its not workng in perl

not sure wat syntax to use in perl for this
14,732
Posted By mavesum
to check if file is empty or not and return a non zero value
Hi All,

I am new to unix worldd .

I need to check a file1 if its empty or not.

If its empty then return a non zero value say 99

could you pls let me know the perl script for this.
4,270
Posted By mavesum
Based on num of records in file1 need to check records in file2 to set some condns
Hi All,

I have two files say file1 and file2.

I want to check the number of records in file1 and if its atleast 2 (i.e., 2 or greater than 2 ) then I have to check records in file2 .If...
Showing results 1 to 12 of 12

 
All times are GMT -4. The time now is 11:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy