Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Set the return code based on the records present in input

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Set the return code based on the records present in input
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    Post subject:
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    Post subject:
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: 1439
Location: Bangalore,India

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

sandeep,

This might help you -

http://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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Jun 21, 2007 10:28 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Split file based on comparsion to 2 f... Div Grad DFSORT/ICETOOL 3 Thu Jul 27, 2017 9:16 pm
No new posts EXIT or RETURN cvnlynn CLIST & REXX 16 Wed Jul 19, 2017 2:50 am
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Need input in Scheduling Benchwarmer CA Products 5 Tue Jun 06, 2017 1:44 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us