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 Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm


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