View previous topic :: View next topic
|
Author |
Message |
ankit saxena
New User
Joined: 06 Oct 2010 Posts: 55 Location: india
|
|
|
|
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 |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
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 |
|
|
ankit saxena
New User
Joined: 06 Oct 2010 Posts: 55 Location: india
|
|
|
|
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 |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
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 |
|
|
ankit saxena
New User
Joined: 06 Oct 2010 Posts: 55 Location: india
|
|
|
|
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 |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
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 |
|
|
ankit saxena
New User
Joined: 06 Oct 2010 Posts: 55 Location: india
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
ankit saxena
New User
Joined: 06 Oct 2010 Posts: 55 Location: india
|
|
|
|
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 |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Check Robert's posting. It's self-explanatory....
Bill |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
ankit saxena
New User
Joined: 06 Oct 2010 Posts: 55 Location: india
|
|
|
|
i mean which usage class should i use... |
|
Back to top |
|
|
ankit saxena
New User
Joined: 06 Oct 2010 Posts: 55 Location: india
|
|
|
|
thanx... |
|
Back to top |
|
|
|