Questions tagged [ibm-ifs]

IBM IFS (Integrated files system) is a storage component in OS/400.

IBM Integrated file system is a storage component in OS/400 with an interface that is similar to common filesystems.

30 questions
4
votes
1 answer

Recursively search a directory for each file in the directory on IBMi IFS

I'm trying to write two (edit: shell) scripts and am having some difficulty. I'll explain the purpose and then provide the script and current output. 1: get a list of every file name in a directory recursively. Then search the contents of all…
d.lanza38
  • 2,525
  • 7
  • 30
  • 52
4
votes
4 answers

Calling write() C API from CL on iSeries

I'm trying to write a program in Control Language which creates and populates a configuration file in the IFS prior to calling a Java utility which uses it. I've succeeded in calling the open() and close() APIs to (re)create the file but for the…
zkarj
  • 657
  • 9
  • 23
3
votes
2 answers

IFS file copy using JT400 in code

I have this piece of code that would copy files from IFS to a local drive. And I would like to ask some suggestions on how to make it better. public void CopyFile(AS400 system, String source, String destination){ File destFile = new…
aEtherv0id
  • 31
  • 1
  • 2
2
votes
1 answer

Enumerating objects in all libraries inside QSYS.LIB

There is pretty much exhaustive info about tables (PF including PF-SRC,LF etc) resides in QSYS2.SYSTABLES. However when it comes to enumerating all objects (e.g. including PGM, SRVPGM,DTAQ,DTAARA and so on) in certain library do the single source of…
im_infamous
  • 972
  • 1
  • 17
  • 29
2
votes
2 answers

Punctuation in Java source changed to accented letters when copied to IFS

I am trying to run a RPGLE program which use java methods. I am transfering the java code (xxxx.java file) from my system(Windows XP) to the AS/400 IFS directory through FTP. After transfering it to IFS, the file CCSID is shown as 819. I am…
Nirmal
  • 115
  • 1
  • 1
  • 6
2
votes
1 answer

IntrospectionException: Method not found: setLastModified

Our server was updated to java 8 and the code below no longer works. I am using the latest version of jtopen and can not get it to work in java 7 or 8. The code uses the jtopen (java toolkit) to access the integrated file system on the IBM i. AS400…
Kevin Kruse
  • 33
  • 1
  • 5
2
votes
3 answers

How do I programmatically determine the CCSID of a file in the IFS?

I have many files in the IFS with a wide variety of CCSIDs (0, 37, 819, 1200, 1252, etc.) and I've been tasked with writing a simple RPGLE [1] program that will allow a user to view the contents of any of these files. Our system (V6R1) CCSID…
Benny Hill
  • 6,191
  • 4
  • 39
  • 59
1
vote
0 answers

How to I capture Echo outcome into a variable in BASH script?

We are trying to run a BASH script in IBMi system , one of our use case is to execute a CL program from Bash script that will copy sources from IFS to Library. We need a way to capture copy outcome and then perform some additional business logic in…
Digvijay
  • 41
  • 2
1
vote
3 answers

IBMi STRSEU - Possible to edit stream files (IFS) directly?

On an IBMi system, STRSEU can only work with source members, right? No ability to interact with stream files directly. Just thinking in the context of tracking RPG/CL/DDS source behind Git as stream files. Assuming one wanted to use STRSEU, I can…
d.lanza38
  • 2,525
  • 7
  • 30
  • 52
1
vote
0 answers

Accessing a remote filesystem with powershell - Issues with PSDrive

I'm trying to automate a process of editing a text file on a remote system every morning. My script: $User = "USER" $File = "C:\secureString.txt" $c = New-Object -TypeName System.Management.Automation.PSCredential ` -ArgumentList $User,…
Dominick
  • 23
  • 3
1
vote
1 answer

Refer library via IFS when program running on iASP in IBM i

I have a CL program which is referring to a library via IFS like /QSYS.LIB/.LIB/.FILE Currently this program is running on *SYSBAS, where everything runs fine. I want to know when this program will be executing on iASP, then will…
Abhishek Tiwari
  • 332
  • 2
  • 16
1
vote
1 answer

How to fetch the User's Email Id in AS400?

I need to send a mail to the user that the job which is submitted has ended in error, for this how should i retrieve/fetch the email id of the user?
Nicolas
  • 45
  • 1
  • 5
1
vote
1 answer

Issues writing text file to IFS though jt400

All I'm trying to do is to drop a log on IFS Here is my code: def write(target_filename, data) stream = com.ibm.as400.access.IFSFileOutputStream.new(AS400.sys, target_filename) stream.write(data.to_java_bytes) stream.flush …
Ruslan
  • 1,919
  • 21
  • 42
1
vote
2 answers

How do you retrieve the IFS file name from within a RPGLE program?

In the CL program, I am overriding my print file to a folder on the IFS; however, I am not specifying the file name, just that it will be a PDF file. Thus when the PDF is created the system will assign it a unique file name. In the RPGLE program, I…
Tom
  • 11
  • 3
1
vote
2 answers

AS/400 IFS authorities issue

I got some headache managing AS/400 IFS authorities. The IFS files were created using CLE or ILE-COBOL via call to CPYTOIMPF. By default, permission setting under IFS will be 700. Problem is the ID (A) I used to create the file and the one who use…
1
2