Re: newer opcodes

2011-10-14 Thread Walt Farrell
On Fri, 14 Oct 2011 08:09:08 +0200, Martin Truebner wrote: >Jim, > >>> That's not quite true. << > >I do understand what you said. Would Peters stmt be "full*" true >if a "problem state instructions..." is inserted? > > >* I used "full" to remove/nullify/void/falsify your use of the word >"qu

storage for vsam ext

2011-10-14 Thread Capon, Diego
Hi guys I know this is a well known problem but I don't find the right answer to fix it so may be you can give me a new idea. A very large program (cobol) with internal sort and using so many vsam files randomly fails when attempts to open a file because resource not available (status 93) or IE

Need simple example - Calling c subroutine like printf from HLASM program

2011-10-14 Thread McKown, John
I know that I've seen somebody do this before. But I cannot remember how they did it. Does anybody have a code snippet that shows how to call a C subroutine like sprintf() or strncmp() from HLASM? Also the compile & link JCL would be appreciated. I've tried reading the LE manuals and the C manua

Re: storage for vsam ext

2011-10-14 Thread Walt Farrell
On Fri, 14 Oct 2011 10:14:30 -0300, Capon, Diego wrote: >Hi guys >I know this is a well known problem but I don't find the right answer to fix it so may be you can give me a new idea. > >A very large program (cobol) My suggestion would be to ask on the ibm-main list, rather than here, as this li

Re: storage for vsam ext

2011-10-14 Thread David de Jongh
Are you opening all files before you issue the SORT statement? Have you tried changing the sort storage parameters? The SORT-CORE-SIZE special register is the name of a binary data item that you can use to specify the number of bytes of storage available to the sortutility. It has t

Re: storage for vsam ext

2011-10-14 Thread Capon, Diego
Thks David, I'll try that -Mensaje original- De: IBM Mainframe Assembler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] En nombre de David de Jongh Enviado el: Viernes, 14 de Octubre de 2011 10:51 Para: ASSEMBLER-LIST@LISTSERV.UGA.EDU Asunto: Re: storage for vsam ext Are you opening all

Re: Need simple example - Calling c subroutine like printf from HLASM program

2011-10-14 Thread Gord Tomlin
You want to make sure you are not creating and destroying a LE environment for every call, or it will get expensive. If your calling Assembler program is Language Environment-conforming, have a look in "z/OS V1R12.0 Language Environment Writing ILC Applications", section "14.5 Assembler Main Call

Re: Need simple example - Calling c subroutine like printf from HLASM program

2011-10-14 Thread Lloyd Fuller
You also want to be careful about the parameters. Some C routines expect values on the stack (i.e., in-line in the parameter list) and others expect pointers to the values with most using a mix. That is typically my problem calling or getting called from C: getting that sequence straight. Lloyd

Re: Need simple example - Calling c subroutine like printf from HLASM program

2011-10-14 Thread Paul Gilmartin
On Oct 14, 2011, at 09:37, Lloyd Fuller wrote: > You also want to be careful about the parameters. Some C routines expect > values > on the stack (i.e., in-line in the parameter list) and others expect pointers > to > the values with most using a mix. That is typically my problem calling or >

Re: Need simple example - Calling c subroutine like printf from HLASM program

2011-10-14 Thread Farley, Peter x23353
John, if you are playing with C subroutines and you don't need anything fancy from the C library, try out the METALC option of the C compiler. It generates HLASM code that you then assemble into a load module, so you get to see real assembler calling the METALC equivalents of the C library func

Re: Need simple example - Calling c subroutine like printf from HLASM program

2011-10-14 Thread McKown, John
Can't - the C compiler isn't licensed. John McKown Systems Engineer IV IT Administrative Services Group HealthMarkets(r) 9151 Boulevard 26 * N. Richland Hills * TX 76010 (817) 255-3225 phone * john.mck...@healthmarkets.com * www.HealthMarkets.com Confidentiality Notice: This e-mail

z/XDC z1.13 is now Generally Available

2011-10-14 Thread David Cole
z/XDC release z1.13 has finally been published! It supports z/OS R1.13 and the debugging of code located above the bar. More information can be found at our Facebook page. When on Facebook, just search for "Colesoft Marketing", and then "like" us. A press release can be found at

Re: Need simple example - Calling c subroutine like printf from HLASM program

2011-10-14 Thread Lloyd Fuller
Maybe it is just our C cross-platform code, but I have found that some parameters are by value and some by pointer in most routines. I have not tried to call printf, etc, as John asked about. For example, passing a input buffer with its length is typically pointer, value. Passing an output buffe

calling convention

2011-10-14 Thread glen herrmannsfeldt
(someone wrote) > My understanding is that the C standard calls for all parameters > to be passed by value. My experience is that IBM's C usually > passes parameters by reference except that if a parameter is a > pointer it gets passed by value. Go figger. That is most consistent with the way it

HLASM enhancement thought

2011-10-14 Thread McKown, John
This is just a thought that I had. I'd appreciate feedback about its utility. HLASM currently can do some tests on symbols, such at "type" (T'SYMBOL) or "length" (L'SYMBOL) and others. I thought it might be useful to have another test to see if the symbol can be resolved via as "relative" operan

Re: HLASM enhancement thought

2011-10-14 Thread John Ehrman
An interesting idea, but there are a couple of potential problems: (1) Addresses and offsets aren't known until the end of the first pass over the source, when the values of all symbols are known. This means it's difficult to capture the needed information in time for use by conditional assembly.

Re: HLASM enhancement thought

2011-10-14 Thread Paul Gilmartin
On Oct 14, 2011, at 14:15, McKown, John wrote: > This is just a thought that I had. I'd appreciate feedback about its utility. > HLASM currently can do some tests on symbols, such at "type" (T'SYMBOL) or > "length" (L'SYMBOL) and others. I thought it might be useful to have another > test to se

Re: HLASM enhancement thought

2011-10-14 Thread Paul Gilmartin
On Oct 14, 2011, at 15:27, John Ehrman wrote: > > (1) Addresses and offsets aren't known until the end of the first pass over > the source, when the values of all symbols are known. This means it's > difficult to capture the needed information in time for use by conditional > assembly. > How many p

Re: Need simple example - Calling c subroutine like printf from HLASM program

2011-10-14 Thread Steve Comstock
On 10/14/2011 7:33 AM, McKown, John wrote: I know that I've seen somebody do this before. But I cannot remember how they did it. Does anybody have a code snippet that shows how to call a C subroutine like sprintf() or strncmp() from HLASM? Also the compile& link JCL would be appreciated. I've