Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
30 views

flask url not showing in command line on importing zowe modules

I'm working on a Flask application which uses Zowe SDK to submit mainframe batch job & download o/p dataset. I'm importing below modules. from zowe.zos_jobs_for_zowe_sdk import Jobs from zowe....
Nupur's user avatar
  • 89
1 vote
1 answer
61 views

SHA256 Checksum of a File transmitted from Mainframe to Azure

I have SFTPed a file from Mainframe to Azure in ASCII Mode. I want to comapte the checksum of the Mainframe file against the file in Azure.How can I do that? I can calcualte the SHA256 of a File in ...
newbie's user avatar
  • 55
-1 votes
3 answers
922 views

Use MVS Dsname conventions. Mainframe name convention while downloading ftp using python

I used the following codes but the error message is as follows. I dont know how to fix it. THis is the error. '501 Invalid data set name "Qxxx.Pxxx.xxxxxx.xxxx.xxx.xxxxx". Use MVS Dsname ...
hll's user avatar
  • 3
1 vote
1 answer
190 views

How to connect to the active session of mainframe from Python

How to connect to the active session in mainframe from Python - import win32com.client passport = win32com.client.Dispatch("PASSPORT.Session") session = passport.ActiveSession if session....
Sabbha's user avatar
  • 501
1 vote
1 answer
403 views

Save EBCDIC string to a file - Python

I am trying to write this EBCDIC string(ÑkÀ*) to a file. I want to save the exact string in the file but whenever i try saving it, it adds extra characters to the file and the byte count is 6 bytes(2 ...
bil mason's user avatar
0 votes
0 answers
124 views

python FTP to mainframe is working in windows but not in docker container

I am trying to pull a file from mainframe using python ftplib. I am able to login and pull file from mainframe in my local machine, but i am able to connect to host but i am getting error (SSLError: ...
Lakki's user avatar
  • 1
0 votes
1 answer
151 views

Using zosftplib copied a sas dataset with downoad binary and tried to open in pandas read sas for reading

import zosftplib import pandas as pd import ebcdic Myzftp = zosftplib.Zftp(mvshost,mvsuser, passwd, timeout=500.0, sbdataconn='(ibm-1147,iso8859-1)') Myzftp.download_binary('DATASET....
Harish's user avatar
  • 157
0 votes
0 answers
395 views

Read bytes file using pyspark

I have a file contains bytes information like below with delimiter : '#*' b'\x00\x00V\x97'#*b'2%'#*b'\x00\x00'#*b'\xc5'#*b'\t'#*b'\xc0' I want to read this data using Pyspark and each column has ...
phani437's user avatar
0 votes
0 answers
862 views

How to access 5250 session via Python which is opened via Host on Demand?

How to use py3270 for setting up a connection to 5250 emulator? I installed the library and used this code https://pypi.org/project/py3270/. But it gives error "Windows cannot find wc3270. Make ...
Techie's user avatar
  • 11
1 vote
0 answers
148 views

similar command to get the functionality of quote in OS400/AS400 while using ftplib

We have an OS400 server trying to run below command to convert ascii file to normal readable file command : quote rcmd cpytoimpf fromfile(abc/hhgghh) tostmf('/temp/test1002') mbropt(*add) stmfcodpag(*...
Ravi's user avatar
  • 863
1 vote
4 answers
5k views

Convert EBCDIC file to ASCII using Python 2

I need to convert the EBCDIC files to ASCII using python 2. The sample extract from the sample file looks like the below (in notepad++) I have tried to decode it with 'cp500' and then encode it in '...
Ramandeep Mehmi's user avatar
1 vote
1 answer
237 views

Converting mainframe byte zip code to varchar or string

I have a DB2 database consuming a byte encoded zip code. I'm told that the mainframe reads in the standardize US zip/postal code and encodes it to byte format (using COBOL) due to space constraints. ...
Andrew Bourret's user avatar
1 vote
1 answer
1k views

BlueZone Object Method "SendKeys"

I am using BlueZone Script Host to automate repetitive mainframe tasks and I am trying to use Sendkeys method to pass in Shift F6. The documentation on IBM's website says . Not sure why only my PF6 ...
btava001's user avatar
  • 131
0 votes
0 answers
629 views

py3270 - error: The target principal name is incorrect

I am trying to connect mainframe server using below snippet; Objective: Automating mainframe flow using python, using py3270 and wc3270 emulator import time, sys from py3270 import Emulator delayt = ...
Dheeraj Bhatt's user avatar
1 vote
1 answer
1k views

Trying to FTP file using python script to Mainframe server, but getting special characters at mainframe dataset end

Trying to FTP file using python script to Mainframe server, but getting special characters at mainframe dataset end from ftplib import FTP host = "hostname" user = "username" ...
manish reddy's user avatar

15 30 50 per page