• Optional arguments on subprocedures

    The prototype for an API to retrieve the contents of a data area is defined like this: d apirtvdta_ pr 2559 varying d name 10 const d lib 10 const d opt_start 4b 0 const options(*nopass) d opt_length 4b 0 const options(*nopass) The execution is coded as: c eval apirtvdta = apirtvdta_(name:lib) The...

    mygoodname0 pointsBadges:
  • Load All – Using Position To

    Can I use a Position To field in a Load all subfile. I don't want to clear the subfile every time as we do in a single Page subfile. How will the Page up and Page down features be affected if I use a Position to in a Load All subfile? Any help would be appreciated.

    A1b2c3330 pointsBadges:
  • FTP Problem using Zmod

    I have a problem running Zmod GETDBFFTP to retrieve files from a Unix box. Intermittently a character is being dropped from files retrieved. There seems to be no consistency to this. A file/data that has this discrepancy can be retrieved half a dozen times without problem. It is not particular to a...

    Helga520 pointsBadges:
  • Help needed for connect statement using sqlrpg

    Hi All, I need to do some checking in 2 different AS400 servers. I will read the data from one server(say local) then using connect type 2, connect to the other server(say remote), check the data and then returns back to my local server. I'm using sqlrpg for this and created 2 pgms for this. One...

    160780 pointsBadges:
  • IFS Record Count

    How can I retrieve the record count of a .csv file in the IFS? We're at V5R2. I would like a way to do it in either RPGLE or CL, but am open to other suggestions as well.

    Stepheno0 pointsBadges:
  • RPG with Embedded SQL needs journaling

    When I try updating data in a PF via embedded SQL I get a message saying I need to turn journaling on..   *  change dates on a set of records   C/EXEC SQL                             C+ UPDATE ACC02602P                    C+   SET   CSSTR8 =...

    SJSooze15 pointsBadges:
  • Array processing In RPG IV LIE

    Is the aways to dynamicly increase an array before it would overflow. defined as 100 and while processing you need to increas it to say 110 or more. I think that there is aways to do this but I can't remember.

    RPGWIZ130 pointsBadges:
  • Any Python use?

    I know of a port to iSeries from way back. Wondering if there much use? I find that for some tasks, it can be more expressive than RPG. Especially useful if you have an ORM to help with table / SQL generation. Or if you want object orientation.

    Jorjun110 pointsBadges:
  • Passing a Binary Field to an RPGLE Program using CALL

    I need to pass a 9 digit Binary field (4 bytes in length) to an RPGLE program from a non-RPG program. Following shows how I coded in RPGLE. * Parameter Fields d pmbid ds d mbid 9b 0 .. .. c *entry plist c parm pmbid .. .. When the Binary value is passed as the above parameter, the program doesn't...

    Ananda0 pointsBadges:
  • Convert an iso date to julian date

    I'm writing an rpgle pgm and I need to convert an iso date to a julian date. They don't have taatool here. Was wondering if anyone has an example on how to do this? Thanks in advance for any help

    pjshere0 pointsBadges:
  • How can I allow a user to sign off from an AS/400 web application from the browser?

    I have built a simple web application that uses a web front end to an RPG program.  Upon entering the URL the user is forced to enter a valid AS/400 user ID and password - in a similar manner to a password protected directory on a Linux server using Apache - utilizing a pop up window to collect...

    Slypknot5 pointsBadges:
  • Float type parameter containing incorrect value after a callp

    I'm calling a procedure from an rpg pgm(V5R4). It has several parameters with different types. Before calling, they are set to 0 or blanks. After calling, all is coming back with correct value except for 1 float(8f) field. We don't have the source for the procedure however, it's been tested in C...

    kglen0145 pointsBadges:
  • Data sent to device DSP01 not valid. Negative response code is 10050122.

    Hello. My display file crashes as it can not display the hexadecimal values in my character field. Is there an easy way to replace these values (like scan) in my 79 character long field that has valid characters mixed with hexadecimal values? (Please no APIs) Thank you in advance. Regards Steven

    Cabero15 pointsBadges:
  • Command to track how many spool files users have

    I have certain users who never clean out their spool files. Is there any command I can run which will tell me how many spool files a user has out there? I am currently on version V5R4 of the operating system

    GHENDER190 pointsBadges:
  • Reorganization of V5R4 while active

    We are currently on operating system V5R4. We are a 24/7 shop and as a result, I have not had the opportunity to do a lot of reorgs. I just discovered there is a reorg while active command. Can someone tell me how to use this? Does this come with the operating system or is it a separate module we...

    GHENDER190 pointsBadges:
  • Reading (EVAL) a file in RPG

    Hi, I'm a newbie when it comes to RPG and I couldn't find anything when searching. So this is what I need.  I'm adding a record to a file but don't want any duplicates so I guess I need s simple RPG proogram that takes in one parm, reads a file (with one field) and if it comes across an exact...

    Bggas400160 pointsBadges:
  • Data Extract

    What is the easiest way to extract data from a pipe-delimited text file?

    farmgirl165 pointsBadges:
  • tutorials

    hi all. i wanted to ask if anyone knows any sites where i can download free ebooks or free tutorials. thx.

    Mmm5550 pointsBadges:
  • Subtracting Date/Time AS400 V5R4

    I am familiar with the subdur command. I have used it to get the # of days between 2 dates and the number of minutes between 2 times. How do I get the difference in minutes when the times fall on separate days. I guess I need to know how to calculate the interval between 2 times when the dates are...

    GHENDER190 pointsBadges:
  • Can RPG call a VB script

    I know very little about anything on a PC. Is there some kind of interface that could be used to execute a VB script which performs a function which returns a parm and get that parm returned back to the RPG pgm.

    CoderHal360 pointsBadges:

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following