IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Set the return code based on the records present in input


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sandeep1dimri

New User


Joined: 30 Oct 2006
Posts: 76

PostPosted: Thu Jun 21, 2007 11:55 am
Reply with quote

Hi

can anyone ples provide info regarding to below requirement.

I want to set the return code of step based on the records present in the inut dataset.

Please suggest some JCL utility to achieve same.

Thanks sandeep
Back to top
View user's profile Send private message
sandeep1dimri

New User


Joined: 30 Oct 2006
Posts: 76

PostPosted: Thu Jun 21, 2007 11:58 am
Reply with quote

Can i set return code based on TALLY option of file aid?

Please suggest on same.
Back to top
View user's profile Send private message
tosaurabh20

New User


Joined: 08 Jun 2007
Posts: 26
Location: Noida

PostPosted: Thu Jun 21, 2007 4:13 pm
Reply with quote

sandeep1dimri wrote:
Can i set return code based on TALLY option of file aid?

Please suggest on same.


Hi Sandeep,

You can use the IDCAMS utility through which you can find out whether the file is having any records in it or it is empty. It will give you the return code of 4 if the file is not empty.

if you specifically wish to find out the numbers of the records in the file then there is some alternate way to do so .


hope it helps.

Thanks
Saurabh
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Jun 21, 2007 4:20 pm
Reply with quote

sandeep,

This might help you -

ibmmainframes.com/viewtopic.php?t=22036&sid=c72b1a78458b0f7006c922ac2cec6b5d
Back to top
View user's profile Send private message
sandeep1dimri

New User


Joined: 30 Oct 2006
Posts: 76

PostPosted: Thu Jun 21, 2007 7:46 pm
Reply with quote

Please suggest some other utility i dont wana use ICETOOL in production can some buddy sugest some other utility.

Hi saurrabh can u provide me code details to for IDCAMS

Thanks every budy :-)
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Jun 21, 2007 10:28 pm
Reply with quote

sandeep1dimri wrote:
Please suggest some other utility i dont wana use ICETOOL in production can some buddy sugest some other utility.

Hi saurrabh can u provide me code details to for IDCAMS

Thanks every budy :-)


Warning issued -
Sandeep, you have posted over 40 times here, and yet you still need to ask for IDCAMS statements. Please search.

Also - "I dont wana use ICETOOL"
Someone has gone out of their way to be helpful and you reply like that !
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 0
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top