mainframe

COBOL DB2 program

Hi, If I have 1 COBOL DB2 program which is calling 2 other COBOL DB2 sub programs, then how many DBRMs,Packages,Plans it will create? If I am changing any one of the sub program then do I need to recompile and bind all the programs?I am really confused with DBRMs,Plans and Packages. Regards, Manasi ...

Can CLIST access PDS member and GDG file?

I need to check a string in a GDG file, for example, to check 'ABCDEFG' in file : AAA.BBB.CCC.DDD(0). IF YES, append this string 'ABCDEFG' to the bottom of a PDS member: ABD.EFG.HIG(NAMES). IF BOTH FILES ARE PSD FILES, there is no problem, while I changed to GDG and PDS member, it didn't work. My Clist program can not allocate a ...

copy a member from one pds to another? using the jcl statement

Hello, How can i use the IEBGENER utilty to copy a member from one pds to another. something similar to this: //myjob job1 // exec pg=eibgener ?? don't know the the rest. ...

uploading text file from C# to IBM MVS

Hi All, I'm trying to upload a text file (converted to ebcdic) into a library in MVS using C#. For uploading a file, I used the following string: filename = @"ftp://xx.xx.xx.xx//'myFile'"; It is not possible without the apostrophes. Now, I used @"ftp://xx.xx.xx.xx//'libary_name(myFile)'" for upload into a library but I get incorrect sy...

Controlling appearance of new lines in IBM mainframe

All, So I'm uploading a text file from C# to an IBM MVS mainframe. The file is converted to ebcdic using C# libraries and it works well as I can read the data on the mainframe. The problem is the new lines. The text file has 10 rows of data and while viewing it in the mainframe environment, all data is present. But there are no new l...

MVS login using network credential in c#

So I am trying to login to MVS via c# to upload a file. Everything worked fine when the server required the user to enter password once. Now, on another server with the same OS, it asks the user to enter password 2x. Once, then once more if the first one worked. I'm not sure why, but the networkCredentials property is not working i...

using c# to create a data set on IBM MVS

is there a way to create a data set via C# and pass in parameters like block length and specify fixed or variable block? I can currently ftp a file into a library that has the defined parameters but ideally, I want to be able to create a set on the fly as the file is uploaded from my machine or another server. ...

Set default tablespace in JDBC URL for db2 on Z/OS?

Is it possible to force all create table statements to use a specific database.tablespace by passing a parameter to the JDBC URL? For example instead of manually specifying it as follows CREATE TABLE Message (id INTEGER NOT NULL, created TIMESTAMP, message VARCHAR(255),PRIMARY KEY (id)) in DATABASE.TABLESPACE I'd like to specify "...

I need to find out the name of a DDS Screen that a given telnet session is on? (I Series)

I am looking for a program or API call that will give me, with absolute accuracy, the name of the Workstation Display File (and Its Record Type) that is being used by a given Job. I have the Job information (such as Job Name, Job User, and Job Number. This will allow me to quickly identify the Display File that a given job to assist in p...

JCL for copying certain members from one PDS to another

Hi, I am trying to copy some members from one PDS to another.e.g. Suppose I have 500 members in one PDS.I am trying to move first 100 to 2nd PDS ,next 100 to 3rd PDS and so on.And the members that are copied to another PDS should get deleted from the source PDS.Is it possible to do so using JCL? I am looking at IEBGENER but there I foun...

can we compare time fields in SORT card of JCL

Suppose I have 12 position of a record holding time field of 8 bytes. Can I compare it with current timestamp? Can I do arithmetic operations on that filed like adding an hour or subtracting few minutes etc. Your responses will be highly appreciated. Thanks! Addendum.. for better understanding: I need your help in getting time fields c...

Extending RUMBA/3270 client using COM interface or EHLLAPI

Hi All In my application i want to listen for any RUMBA/3270 (It is a 3270 emulator) screen update/event which i can capture and get the text/byte stream coming from mainframe. Once there i can use that stream for data mining. In the RUMBA data-sheet they have mentioned that RUMBA 3270 emulator could be extended either by using EHLLAPI...

How can I use SYNCSORT to format a Packed Decimal field with a specifc sign value?

I want to use SYNCSORT to force all Packed Decimal fields to a negative sign value. The critical requirement is the 2nd nibble must be Hex 'D'. I have a method that works but it seems much too complex. In keeping with the KISS principle, I'm hoping someone has a better method. Perhaps using a bit mask on the last 4 bits? Here is the ...

How to read text file from mainframe through .net application?

Some plain text file is stored in mainframe server, i have to read the file and populate the data to SQL database. Any ideas please suggest. ...

VSAM to PDS member

Hi, Can we copy VSAM file to a PDS member? eg. I have a VSAM file A.VSAM I have a PDS. B.PDS which has members A,B I want to copy my A.VSAM file to B.PDS(C) ... C is the new member in PDS. Can I do this? Thanks and Regards, Manasi :) ...

How to execute ISPF commands through rexx(MF)

Suppose I want to call the ispf commands(like sar,fild in command lines which displays the respective screens) through my tool. Can anyone provide me a basic code to access sar screen through my tool ...

How can I auto Indent for Cobol and JCl using Notepad ++

Any one Please tell me how to autoindent my cobol and JCL codes. It will be easy for me to write programs if i use those intendationi n notepad++. Please reply me. ...