mainframe

How to submit JCL on IBM zOS through Java web app?

一笑奈何 提交于 2019-12-12 11:20:38
问题 Can someone tell me the best way to run a piece of JCL on IBM zOS from a Java web app on a different server (Windows). I also need get a response code back from the job. The 2 options at the moment are: 1) Using JES - But its hard to get the response back 2) Make a call through a DB2 procedure. Is there another (better) way 回答1: I"m not sure if this will help, but while I was looking for information about how to use FTP on z/OS to transfer files I saw the following article from IBM. http:/

Abend Causing Line

余生长醉 提交于 2019-12-12 10:01:37
问题 Is there any way that we can find the exact line number that causes an abend ( like SO4C) from the Offset(like offset +00007D0A at address 1515CD0A ) given in the spool with the error message.? 回答1: If your program is compiled with options OFFSET,NOLIST, you will have a list of verbs/line numbers in the output listing which contain the "offset" from the start of the program. The line number on the the listing which has the closest offset, but less than or equal to, the "offset" reported in

Mainframe COBOL db2 delete program

喜夏-厌秋 提交于 2019-12-12 06:58:02
问题 Detail question is my next question -- please check below link DB2/Cursor program working in cobol 回答1: This should be a 2 step process. First identify the records that are to be deleted and then delete those records in the 2nd step. I think, you'll Not be able to delete the records from the same table you are fetching, that's why 2 steps. Step 1: Select Concat(A.ClientId, A.PhoneNumber, A.Timestamp) from MyTable A Where Concat(A.ClientId, A.PhoneNumber, A.Timestamp) Not IN (Select Concat(B

JZOS Batch launcher - Run JCL job with java source code within SYSIN DD *

丶灬走出姿态 提交于 2019-12-12 04:17:28
问题 JOB Description: JVMLDM76 library is in the dataset WLM.ABC.DEF.LINKLIB.PDSE. JVMLDM76(load module) comes with jzos batch launcher tool kit installation. Here is my job: //JHELLO JOB MSGLEVEL=(1,1),REGION=0M,CLASS=Q,MSGCLASS=A /* NOTIFY=&SYSUID */ //JOMVS EXEC PGM=JVMLDM76,REGION=0M,TIME=NOLIMIT //STEPLIB DD DSN=WLM.ABC.DEF.LINKLIB.PDSE,DISP=SHR //SYSIN DD * /* program starts here */ public class JHelloWorld { public static void main(String args[]) { System.out.println("Hello :)"); } } //* /

VSAM file locking when writing to it using Java JDBC

十年热恋 提交于 2019-12-12 03:54:54
问题 This is my first time trying to read and write to a VSAM file. What I did was: Created a Map for the File using VSE Navigator Added the Java beans VSE Connector library to my eclipse Java project Use the code show below to Write and Read to the KSDS file. Reading the file is not a problem but when I tried to write to the file it only works if I go on the mainframe and close the File before running my java program but it locks the file for like an hour. You cannot open the file on the

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

Errors in if Statement

霸气de小男生 提交于 2019-12-12 01:55:32
问题 I'm getting the following errors in one, but not both, of my if statements. 165 IGYPS2000-S Expected a data-name, but found "TO". The "ADD" statement was discarded. 169 IGYPS2096-S An incomplete condition was found in a conditional expression. The operand(s) was(were) discarded. 169 IGYPS2079-S Expected a verb or "NEXT SENTENCE", but found ""F"". The statement was discarded. IF MARITAL-STATUS-IN = "S" ADD 1 TO SINGLE-COUNT ADD 1 TO OVERALL-COUNT ADD SALARY-IN TO SINGLE-TOTAL ADD SALARY-IN TO

What's an elegant way to retrieve all times of the day (1 hour resolution) in DB2 without a backing table?

℡╲_俬逩灬. 提交于 2019-12-12 01:36:52
问题 I'm querying some data from a table in DB2/z which holds hourly data but occasionally skips some hours (if the clients don't send up details for that hour). Since I'm feeding the data straight into a charting tool which needs a query to get the axis data, it sometimes has missing values from the time axis and looks ugly: 23.00 |=== 22.00 |===== 14.00 |============ 01.00 |== 00.00 |= +-------------------- We've been verboten from adding any helper tables like a 24-row table holding all the

Unable to access PDS in z/OS unix shell

左心房为你撑大大i 提交于 2019-12-11 23:52:11
问题 I'm trying to copy a text file from within the z/OS unix shell to a PDS titled P2.OUTPUT($010), but whenever i run the command cp file.txt "//P2.OUTPUT($010)" i get an error stating that P2.OUTPUT(-sh10) is an invalid location. For whatever reason, whenever I run the command $010 becomes -sh10. I've tried putting $010 in '' and a few other things but no matter what I do it doesn't seem to work. I believe it's an issue with accessing the file and not with the cp command because I can't view