Dynamic sql with cobol(-313 error)



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Re: Dynamic sql with cobol(-313 error)

Postby NicC » Sun Aug 15, 2010 3:39 pm

Edit your input file in hex or, as suggested twice, change your program to accept into a pic 9 field and move that to your binary field.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Dynamic sql with cobol(-313 error)

Postby dick scherrer » Sun Aug 15, 2010 9:59 pm

Hello,

who to change INPUT to BINARY INTEGER
(i.e for 4 to 0100) like this or any other way.
There is a very big difference between being persistent and merely being stubborn.

You have already been told (multiple times) how to do what you ask - even though this is NOT a good solution. . .

Suggest you begin to read what is suggested and try those approaches. Also as i mentioned earlier, a well-managed system will not permit the use of ACCEPT in "real" code. . .

Possibly there is some reason you will not change the code to use the "input" you already have. . . :?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Dynamic sql with cobol(-313 error)

Postby ballaravi » Tue Aug 17, 2010 11:42 am

why no replys :(
ballaravi
 
Posts: 18
Joined: Wed Jul 14, 2010 6:19 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Dynamic sql with cobol(-313 error)

Postby NicC » Tue Aug 17, 2010 2:55 pm

why no replys


I am sorry but there have been several replies. I suggest you read them and act on them first and then come back with any problems that you cannot solve by reading help screens and manuals.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Dynamic sql with cobol(-313 error)

Postby dick scherrer » Wed Aug 18, 2010 12:09 am

Hello,

There have been several replies - just because you didn't get an answer you liked does not mean there were no replies. The replies you have been given are completely workable. It does require that you stop wasting time and actually implement a solution.

What you want to do is incredibly common/sinple and you have made an entire project of it :x

If you would follow any of the replies, you would already have this running.

If you are looking for someone to write the code for you, suggest you try some other forum. We will help, but not do your work for you.

Should the code be posted by anyone other than you, it will be deleted. If you want help with some code, post that and we can advise. . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Dynamic sql with cobol(-313 error)

Postby ballaravi » Fri Aug 27, 2010 1:58 pm

sorry, i didnt check the second page,the problem is sloved thanku, and sorry
ballaravi
 
Posts: 18
Joined: Wed Jul 14, 2010 6:19 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Dynamic sql with cobol(-313 error)

Postby dick scherrer » Fri Aug 27, 2010 11:14 pm

Good to hear it is working - thank you for letting us know :)

d
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Previous

Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post