IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

dfhresp(12) is coming


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ankit saxena

New User


Joined: 06 Oct 2010
Posts: 55
Location: india

PostPosted: Tue Oct 12, 2010 9:37 pm
Reply with quote

HEY NEED HELP im trying to send a fct entry name from cics region and using this fct i m performing t command to set this fct to close and disabled,
but its not working and giving response code = 12
EXEC CICS
SET
FILE(FCT1I)
CLOSED
DISABLED
RESP(RESPONSE-CODE)
END-EXEC
DISPLAY ' RESP ' RESPONSE-CODE
here FCT1I is the field declared in map when i m displaying FCT1I it is showing correct value ,
If m directly writing the FCT1I value then its working.
but my req is to get t value from screen..

so anybody have can help me with this problem ...
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Tue Oct 12, 2010 9:59 pm
Reply with quote

An EIBRESP of 12 is a FILENOTFOUND, formerly known as a DSIDERR.

SET FILE commands are LOCAL to the region where the file is defined.

It can't be used for REMOTE files.

What's the value in the FCT1I field, just prior to issuing the SET.

You can see this with CEDF....

Bill
Back to top
View user's profile Send private message
ankit saxena

New User


Joined: 06 Oct 2010
Posts: 55
Location: india

PostPosted: Tue Oct 12, 2010 10:16 pm
Reply with quote

THE VALUE IS SAME AS I WANT, BUT ITS STILL SHOWING EIBRSP = 12

AND ITS WORKING WEN I M WRITING THE NAME OF FILE INSTEAD OF THE VARIABLE NAME..
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Tue Oct 12, 2010 10:32 pm
Reply with quote

Apparently, the value you want and the value being used are different.

There's not much more anyone can do.

Is the file-name UPPER case, a mixture of both or lower case.

Have you tried testing this with CECI.

Did you issue a CEMT to ensure the file is defined locally to your region?

Bill
Back to top
View user's profile Send private message
ankit saxena

New User


Joined: 06 Oct 2010
Posts: 55
Location: india

PostPosted: Tue Oct 12, 2010 10:38 pm
Reply with quote

EVERY THING IS WORKING FINE IF I M HARDCODING THE VALUE OF FCT ENTRY , PROBLEM IS COMING ONLY WHEN I M TRYING TO PUT THAT VALUE IN A VARIABLE ,AND I M USING THAT VARIABLE....
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Tue Oct 12, 2010 10:50 pm
Reply with quote

The variable used for ALL file-names must be 8-Bytes, padded with low-order spaces (when applicable).

Is this what you're using?

Try using mixed-case in your postings. All UPPER-CASE implies YELLING!

Bill
Back to top
View user's profile Send private message
ankit saxena

New User


Joined: 06 Oct 2010
Posts: 55
Location: india

PostPosted: Tue Oct 12, 2010 10:58 pm
Reply with quote

sorry for the upper case actually currently also m working on mainframe so i put t caps lock on ....

can u pls give me an example of t picture clause of variable to be used,,

i was using
01 var pic x(5).

so do u mean this is t problem ??..
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Oct 12, 2010 11:04 pm
Reply with quote

The SET FILE command in the CICS Systems Programming Reference says
Quote:
FILE(data-value)
specifies the 8-character file name defined in the file control table (FCT).
When the manual says 8 bytes, the manual generally means 8 bytes!
Back to top
View user's profile Send private message
ankit saxena

New User


Joined: 06 Oct 2010
Posts: 55
Location: india

PostPosted: Tue Oct 12, 2010 11:09 pm
Reply with quote

but my file name is 'NG36f'
i should use 8 byte for this also ???
can u pls tell me the picture clause , which i should use...
as initially i was using pic X(5).
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Tue Oct 12, 2010 11:14 pm
Reply with quote

Check Robert's posting. It's self-explanatory....

Bill
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Oct 12, 2010 11:16 pm
Reply with quote

If you specify 5 bytes, the last three bytes of the FCT entry will be taken from whatever the next three bytes in your program are. They might be okay, but they might cause a response code 12. Change the variable to 8 bytes and move on to a REAL problem, not one you caused yourself.
Back to top
View user's profile Send private message
ankit saxena

New User


Joined: 06 Oct 2010
Posts: 55
Location: india

PostPosted: Tue Oct 12, 2010 11:17 pm
Reply with quote

i mean which usage class should i use...
Back to top
View user's profile Send private message
ankit saxena

New User


Joined: 06 Oct 2010
Posts: 55
Location: india

PostPosted: Tue Oct 12, 2010 11:17 pm
Reply with quote

thanx...
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts No sysout coming in spool JCL & VSAM 4
No new posts Expected data is not coming up on Fir... CICS 2
No new posts need help on SAS, new line is coming ... IBM Tools 2
No new posts REXX Function: Output coming out when... CLIST & REXX 9
No new posts STRING - To space out a word if comin... COBOL Programming 11
Search our Forums:

Back to Top