Search found 45 matches

by bbunney
Tue Aug 29, 2023 3:31 am
Forum: RPG IV
Topic: Extract and Array from a Free Form External Ds
Replies: 5
Views: 9188

Re: Extract and Array from a Free Form External Ds

My apologies for not formatting it well. I should have also stated that I'm on 7.2. We have 7.4 on the dev box but can't use it until all prod LPAR's have been upgraded. RDI flagged samepos as a keyword that is not allowed on a DS definition. So given being on 7.2, I'm not sure what to do. Thanks Sc...
by bbunney
Tue Aug 29, 2023 12:59 am
Forum: RPG IV
Topic: Extract and Array from a Free Form External Ds
Replies: 5
Views: 9188

Extract and Array from a Free Form External Ds

I have an external character data structure that is 1910 characters. I want to group the last several contiguous fields in the structure into one field so I can store the information in an array and then build a JSON string including it. The field would cover the last 1215 characters of the external...
by bbunney
Fri May 12, 2023 12:57 am
Forum: RPG IV
Topic: IFS Path Validation
Replies: 7
Views: 12043

Re: IFS Path Validation

msddcb, that worked. Thank you so much!!
by bbunney
Thu May 11, 2023 4:18 pm
Forum: RPG IV
Topic: IFS Path Validation
Replies: 7
Views: 12043

Re: IFS Path Validation

The code I put in my post isn't my code. It was code I googled before I wrote my code. I'm developing a program that will be passed an IFS Path, document type (JSON, XML, TXT or PDF), file name prefix and a data string. I want to validate the path first, the file name will be unique as a sequence nu...
by bbunney
Tue May 09, 2023 6:04 pm
Forum: RPG IV
Topic: IFS Path Validation
Replies: 7
Views: 12043

Re: IFS Path Validation

Thank you! I will do that. I'm assuming that if the path is found that I would need to execute a closedir then. My program uses the open, write, close and unlink API's to write a file to the IFS if the path is valid.
by bbunney
Tue May 09, 2023 6:49 am
Forum: RPG IV
Topic: IFS Path Validation
Replies: 7
Views: 12043

IFS Path Validation

Can I use the access API to verify that an IFS Path exists as opposed to verifying a path and file exists? If not should I use the CHDIR command instead or maybe use the open source CHKLNK command? Thanks. Dcl-Pr access Int(10:0) ExtProc('access'); pathptr Pointer Value; mode Int(10:0) Value; End-Pr...
by bbunney
Thu Apr 13, 2023 8:54 pm
Forum: General
Topic: Printing from IBM i with Images
Replies: 3
Views: 8119

Re: Printing from IBM i with Images

Thank you for the information. I will definitely look into it.
by bbunney
Thu Apr 13, 2023 5:00 pm
Forum: General
Topic: Printing from IBM i with Images
Replies: 3
Views: 8119

Printing from IBM i with Images

I need to be able to print a page of information from IBM i that includes an image of a customer's signature. Do I need third party software to do that? How do IBM i shops do that? We are currently on the 7.2 OS but we are slowly upgrading to 7.4. Thanks.
by bbunney
Sat Mar 25, 2023 4:10 am
Forum: General
Topic: Sending images between Wintel and IBM i with JSON
Replies: 4
Views: 8269

Re: Sending images between Wintel and IBM i with JSON

Okay thank you. I will try it. I appreciate it.
by bbunney
Fri Mar 24, 2023 9:26 pm
Forum: General
Topic: Sending images between Wintel and IBM i with JSON
Replies: 4
Views: 8269

Re: Sending images between Wintel and IBM i with JSON

Thank you so much for your response. I'm very interested in the "web service" mapping to the image files options you provided. So I will look into it and see if I can find some documentation and/or examples.