mvs

How do I go about making this work with a #include? It works fine when dropped straight into the code

纵然是瞬间 提交于 2020-01-06 02:27:26
问题 I have a block of code that I want to #include in my z/OS Metal C program, it works fine when it's just part of the program, but when I put it into a .h file and #include it, the code won't compile. I have successfully gotten this code to work without #include. I'm sure I'm overlooking something having to do with #include... This code works: #pragma margins(2,72) *#if 0!=0 Test DSECT Test@ DS A TestINT DS F TestChar DS C .ago end *#endif *struct Test { * void *Test1; * int TestInt; * char

Cobol v6.2 NUMCHECK option compatibility

北城余情 提交于 2020-01-03 03:18:08
问题 We can't turn off the NUMCHECK option for our new COBOL V6.2 compiler because we can't trust the content of our numeric variables. The problem is, that when we turn it on, it's not fully compatible with the COBOL 4 we had previously at our organization. Specifically - when an unsigned packed variable contains X'123C' , COBOL 4 would have accepted it and let us continue, but COBOL 6.2 with NUMCHECK(PAC,ABD) abends, and only willing to accept X'123F'. This is a real issue for us regarding

Get File Listing ending with A or B using Jscape FTP

喜夏-厌秋 提交于 2019-12-23 04:54:26
问题 I am using FTP (com.jscape.inet.ftp.Ftp) in my java code to get file listing. I am using the following piece of code to get list of files. Enumeration<String> files= ftp.getNameListing("test*"); The above code lists all the files with test* name. However, I am facing issue while listing all the test files ending with A or B. I tried the below pattern to get the listing. Enumeration<String> files= ftp.getNameListing("test*[A-B]"); Enumeration<String> files= ftp.getNameListing("test*[AB]");

fwrite() failed : EDC5024i:An attempt was made to close a file that had been open in another thread

我与影子孤独终老i 提交于 2019-12-12 02:26:01
问题 I am submitting a JCL job to allocate a VB dataset in Mainframe. After submitting the job, the dataset gets created successfully. Then I am running a java program in omvs region of mainframe, to open the file and write some contents into it. When I try to write the data into the file I am getting the below error. //DD:SYS00011 : fwrite() failed. EDC5024I An attempt was made to close a file that had been opened by another thread.; errno=24 errno2=0xc0640021 last_op=0 errorCode=0x0. JCL

Cobol v6.2 NUMCHECK option compatibility

試著忘記壹切 提交于 2019-12-06 21:10:34
We can't turn off the NUMCHECK option for our new COBOL V6.2 compiler because we can't trust the content of our numeric variables. The problem is, that when we turn it on, it's not fully compatible with the COBOL 4 we had previously at our organization. Specifically - when an unsigned packed variable contains X'123C' , COBOL 4 would have accepted it and let us continue, but COBOL 6.2 with NUMCHECK(PAC,ABD) abends, and only willing to accept X'123F'. This is a real issue for us regarding assembler invoking COBOL, or reading from files and etc. Is there another option or maybe even a PTF that