View previous topic :: View next topic
|
Author |
Message |
mbalaji2585 Warnings : 1 New User
Joined: 10 Nov 2006 Posts: 11 Location: mumbai
|
|
|
|
This is my code
Code: |
//STEP03 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//FILEIN DD DSN=DOC.TCSOFF.SAMPLE.NEW02,DISP=SHR
//SYSIN DD *
PRINT INFILE(FILEIN) -
CHARACTER COUNT(1)
IF LASTCC > 0 THEN SET MAXCC = 14
/*
|
Here I am checking whether file is cataloged & for containing data.
Now I want to set the return code to be set as 14 (not necessary 14, any return code which is distinct , other than 4,12) if file not present and for empty data set.
But even if file is present with data , the return code is set to 14.
In sysprint it is showing that the highest condition code is 0 for
PRINT INFILE(FILEIN) -
CHARACTER COUNT(1)
.
Is there any flaw in JCL?
Thanks, |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Try it the way is shows after a slight editing. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
JCL given should work, please post your SYSOUT messages. |
|
Back to top |
|
|
|