MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

returning cc=4 while using IKJEFT01 in jcl

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
radkrish
Beginner


Joined: 12 Aug 2005
Posts: 102
Topics: 19

PostPosted: Wed Aug 31, 2005 3:51 am    Post subject: returning cc=4 while using IKJEFT01 in jcl Reply with quote

I received max cc=4 while selecting 2 particular fields from a table using IKJEFT01 in jcl.

the message follows:
Code:
1 DSNT490I SAMPLE DATA UNLOAD
PROGRAM                                           
0 DSNT505I DSNTIAUL OPTIONS USED: SQL                                           
0 DSNT503I UNLOAD DATA SET SYSPUNCH RECORD LENGTH SET TO    80                 
0 DSNT506I INPUT STATEMENT WAS NOT A FULL SELECT ON A SINGLE TABLE. LOAD STATEMENT WILL NEED MODIFICATION

0 DSNT503I UNLOAD DATA SET SYSREC00 RECORD LENGTH SET TO     8                 
0 DSNT504I UNLOAD DATA SET SYSREC00 BLOCK SIZE SET TO 27992                     
0 DSNT495I SUCCESSFUL UNLOAD            1 ROWS OF TABLE TBLNAME                 


but when i select * from the table it gives cc=00
and the message for the same was
Code:
DSNT490I SAMPLE DATA UNLOAD PROGRAM                                           
DSNT505I DSNTIAUL OPTIONS USED: SQL                                           
DSNT503I UNLOAD DATA SET SYSPUNCH RECORD LENGTH SET TO    80                   
DSNT503I UNLOAD DATA SET SYSREC00 RECORD LENGTH SET TO  3951                   
DSNT504I UNLOAD DATA SET SYSREC00 BLOCK SIZE SET TO 27657                     
DSNT495I SUCCESSFUL UNLOAD            1 ROWS OF TABLE aaaaa.bbbbb       


Quote:
0 DSNT506I INPUT STATEMENT WAS NOT A FULL SELECT ON A SINGLE TABLE. LOAD STATEMENT WILL NEED MODIFICATION


It says load statement needs to be modified.
what do i modify to get cc=0?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12370
Topics: 75
Location: San Jose

PostPosted: Wed Aug 31, 2005 5:56 am    Post subject: Reply with quote

radkrish,

Please search before posting. This topic has been discussed earlier . Check this link

http://www.mvsforums.com/helpboards/viewtopic.php?t=1172&highlight=return

Hope this helps...

Cheers

Kolusu
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
radkrish
Beginner


Joined: 12 Aug 2005
Posts: 102
Topics: 19

PostPosted: Wed Aug 31, 2005 11:00 pm    Post subject: Reply with quote

Kolusu,

Now I changed the extract usage in IKJET01.
I didnt follow SYSREC00 in IKJEFT.Now getting return code 0 from the step itself.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12370
Topics: 75
Location: San Jose

PostPosted: Thu Sep 01, 2005 3:46 am    Post subject: Reply with quote

Quote:

Now I changed the extract usage in IKJET01.
I didnt follow SYSREC00 in IKJEFT.Now getting return code 0 from the step itself.


Huh ! What did you do to get a return code of 0 ?

Kolusu
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
radkrish
Beginner


Joined: 12 Aug 2005
Posts: 102
Topics: 19

PostPosted: Thu Sep 01, 2005 3:58 am    Post subject: Reply with quote

As i said in my previous post,i didnt follow SYSRECC00 concept.
Instep i used PLINK steplib,

Code:
//SHZC20   EXEC PGM=IKJEFT01,                               
//            DYNAMNBR=20,                                   
//            COND=(04,LT)                                   
//*                                                         
#SCC,COND=(04,LT,SHZC20)                                     
//*                                                         
//STEPLIB      DD  DSN=SYS2.PLILINK,                         
//            DISP=SHR                                       
//*                                                         
//PLIDUMP      DD  SYSOUT=*                                 
//SYSTSPRT     DD  SYSOUT=*                                 
//SYSPRINT     DD  SYSOUT=*                                 
//SYSUDUMP     DD  SYSOUT=Z                                 
//*                                                         
//SYSTSIN      DD  * *** CONSTANT CONTROL CARDS ***         
 DSN SYSTEM(D2P1)                                           
 RUN  PROGRAM(DSNTEP2) PLAN(DSNTEP2) PARM('NOSPIE,NOSTAE/') 
 END                                                         


You have to sort out the resultant output.But it will give cc=0
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12370
Topics: 75
Location: San Jose

PostPosted: Thu Sep 01, 2005 4:04 am    Post subject: Reply with quote

radkrish,

You are running DSNTEP2 utility. It has its limitations. The output file LRECL cannot exceed 133 bytes. So if you are unloading the data more than 133 bytes in length then it will be split into mulitple lines.

It adds a delimiter between each column and also daignostic/informational messages in output. You need to remove them and I don't think it is good idea to run a sort step to remove all this just to avoid the return code of 4. What is wrong with return code 4?

Kolusu
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
radkrish
Beginner


Joined: 12 Aug 2005
Posts: 102
Topics: 19

PostPosted: Thu Sep 01, 2005 4:10 am    Post subject: Reply with quote

In CA7,whenever the condition code is 4 then the whole job is moved to abort queue from active running queue.
Here i can use step condition code card to avoid the job being moved to abort queue.But if i get cc=0 i dont want to use #SCC card to the step.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group