View previous topic :: View next topic
|
Author |
Message |
pingte
Active User
Joined: 03 Dec 2005 Posts: 120 Location: india
|
|
|
|
Hi,
i have a IDCAMS step where i COUNT command is used along with REPRO
Code: |
REPRO INFILE(DD1) OUTFILE(DD2) COUNT(1)
|
1. What is function of COUNT(1) command?
2. under what circumstances will the return code of this step be zero? |
|
Back to top |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
If you do search in forum you can get info of why this is used.
This is one of the technique to know whether dataset is empty or not,
If dataset is emtpy then RC=4
if dataset has more than 1 record then RC=0
or it could be just to copy only first record |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Have you considered using the fine manual for explanation about COUNT?
O. |
|
Back to top |
|
|
|