Welcome to Yusuf's Blog

Hello Friends,

I tried to consolidate some of the interesting stuff which I have come across in my experience. I hope it helps and saves some time for you..!!!


Latest Articles:



AWS Certification Notes:


Others:

  1. Brick Game using JavaScript - Tutorial*new
  2. Coding basic calculator using Python Tkinter*new
  3. Basic Excel Tricks for ALL
  4. How to handle PF Triggers using RPGLE


IBM i (AS400) Web Options:


Here I have discussed some of the Web options available w.r.t AS400 (IBM i). We shall discuss more offering an AS400 RPGLE program as a web service, how to invoke CGI which enables you to communicate your RPGLE with web browser etc step by step.

I will be adding the link to my posts here for easy access. Alternatively, you can also check it out in my blog archive.

Topics:

  1. AS400/HTML Intro
  2. Introducing CGI Programming in AS/400 IBM i
  3. How to create Dynamic HTML with CGI Programming
  4. Handling external HTML, CSS & Forms with CGI
  5. Introducing CGIDEV2 for easy CGI handling
  6. Combining AJAX, JavaScript & JSON with CGI
  7. Creating REST based Web service using Node JS in IBM i (AS400)

AS400 Tips:



Execute CL command from Windows




Time Zone conversion in AS400



Await for more...!!! Have Fun..!!! Happy coding...!!!

48 comments:

  1. Hi Yusuf,

    How to access web service (which is written in .net) from as400.

    Thanks,
    Shameem

    ReplyDelete
  2. Hi Shameem,
    As of now, I haven't started working on IBM i(AS400) as client server. I will keep you posted in future if I did that.

    Thanks

    ReplyDelete
  3. Do you plan on creating some PHP web pages accessing DB2 data....or more modern might be a Javafx front end accessing DB2 data service programs?

    ReplyDelete
  4. Hello Yosuf,
    I am looking for AS400 Rplge training.

    ReplyDelete
  5. Good starting point to understand As/400

    ReplyDelete
  6. sir you videos in you tube is very good, why u not create paid course in udemy.?

    ReplyDelete
  7. Sir
    Kindly provide me the free as400 server ?
    Since pub400 was stopped from Dec 2017.

    Please help

    ReplyDelete
  8. Here are some paid resources.
    http://www.books-software.com/ibm-as400-timesharing-services/

    ReplyDelete
  9. I can understand why you have used the name AS/400, but perhaps you need to switch to using :- IBM i(AS/400)

    ReplyDelete
  10. Hi Yusuf,
    Please help me.
    My project doesn't work microsoft internet expolorer 10 or higher or other web browsers. It doesn't click anything on menu screen. what can I do? have you any Idea?

    ReplyDelete
  11. Hi Yusuf,
    Your YouTube videos are precise & good.
    Can you please share how can I use my PHP code with IBMi(AS400).

    Thanks in advance,
    Praveen

    ReplyDelete
  12. Hi Praveen, Thanks for your feedback.
    Regarding PHP, we can execute it using ZEND server. I personally haven't worked on this. Buy you can find more info from below link.
    https://www.ibm.com/developerworks/systems/library/es-path2php/index.html

    ReplyDelete
    Replies
    1. Thanks for your quick reply, Yusuf. If there are any updates please keep me posted for PHP.

      Delete
    2. Hi...
      Currently it always reads page 1, we need this to read page 1 of 1 as soon as possible. I want display
      (page number of number of pages).
      Count total pages .
      Display accordingly on the left hand corner . Eg : Pg 1of 2 , Pg 2 of 2 in case of 2 pages. Can you please explain it?

      Delete
  13. Yusuf..Plz create a whatsapp or FB group so ppl can help in resolving each other queries regarding AS400

    ReplyDelete
  14. hi Yusuf , please do videos on cobol as400...

    ReplyDelete
  15. Hello ,

    What is the best way to submit a job A only when Job B completes .

    ReplyDelete
  16. Hi Yusuf,

    Your YouTube videos are very help full to beginners like me..thank you!!!

    ReplyDelete
  17. Yusuf,
    AoA,
    Your videos are exellent. Your teaching way is awsome.
    Please share your email or Phone to my email jamilsatti@gmail.com ASAP.
    Please

    ReplyDelete
  18. YUSUF UR DOING VERY GOOD JOB. KEEP IT UP

    ReplyDelete
  19. Hello Yusuf,

    Your Videos are very good, you are covering all small small thing.
    Nice to see that videos.
    Please can you help me - How to reset my PUB400 account password?
    Let me know ASAP.

    ReplyDelete
  20. Hi Guys,
    anyone done page numbering in load all subfile. is anyone have idea how to do it.

    ReplyDelete
  21. Hi Yusuf,
    You have quite a collection of information. I really appreciate your work. I am working recently with display files. Is there a way to have F1 (help) key to show help information based on the cursor position? I do not want to use sda.

    ReplyDelete
  22. Hi Yousuf, Amazing knowledge sharing and I thank you a lot for that.
    Can you make a video on the MSGW and different options/replies user can take on them. when the CL is failed, it gives different options and when RPG is failed, it gives different options. Can you please explain the?

    ReplyDelete
    Replies
    1. Hi Maruthi, Here is the video https://www.youtube.com/watch?v=MeoKQSJAODQ&list=PL-cQM7QhBjZTdriASppXQHNMCsZPMe-QF&index=17

      Delete
  23. Thank you Mohammmed for your help.!! Very important

    Regards, Jhon Alexander

    ReplyDelete
  24. Hi Yusuf,

    I am looking for Rpgle training.

    ReplyDelete
  25. Hi Yusuf,

    I am looking for Rpgle training.

    Tell me how to contact u regarding to Rpgle training.

    ReplyDelete
  26. Hi,Yusuf,
    i need some help on as400, please let me know the contact

    ReplyDelete
  27. This comment has been removed by a blog administrator.

    ReplyDelete
  28. Good Job, this is the only one place for IBM I tutorial videos. Thank you for your efforts to share the knowledge .

    ReplyDelete
  29. Hello Yusuf, I'm using IBM iseries web services and using REST POST method. I want to pass array data structures and one parameter as Header. Any idea how this can be achieved in RPGLE?

    ReplyDelete
    Replies
    1. Please check my YouTube playlist for more details. https://www.youtube.com/playlist?list=PL-cQM7QhBjZQRjoWA_IM4NAc5799nKfP0

      Delete
  30. Hey, I have few questions in python - how do i reach you?

    ReplyDelete
  31. Hello Yusuf, please I need your Help.
    I have to get a file located in the IFS and convert it into a BLOB type, then insert this in a file.
    Did you do something like that before? Can you help me please?

    ReplyDelete
  32. Hello Yusuf,
    Could you help me to solve the folowing issue.
    I call web api using the folowoing code
    /free
    http_debug(*on);
    http_setOption( 'local-ccsid' : '420');
    fromData = ' ';
    Url='http://swagger.drober.co/distributor/pharmacies';
    http_xproc( HTTP_POINT_ADDL_HEADER
    : %paddr(Req_Headers) );
    rc = http_req( 'GET'
    rc = http_req( 'GET'
    : %Trim(Url)
    : 'home/testpost.html' // File to receive
    : *omit // String to receive
    : *omit // File to send
    : fromData );
    if rc <> 1;
    msg = http_error();
    else;
    Var = %SUBST(ResultStr:100:50);
    DSPLY VAR;
    endif;
    /end-free
    C SETON LR
    ***********************************************************************
    P Req_Headers b
    D Req_Headers pi
    D Header 1024A varying
    /free
    Header = 'Content-Type: application/jsonx'
    + x'0d25'
    + 'accessToken: b678c4ea-d519-47d9-9276-08f97916069f'
    + x'0d25';
    /end-free
    P E
    The problem is the response file contains English parts and Arabic parts
    The arabic parts not corect as shown in attachments
    Please help me to parse the arabic parts from response correctly

    ReplyDelete
  33. Hi yusuf,

    I got a requirement that
    One company want to send New year and Christmas Greeting message in PDF format to all of their clients on email. So i should write a RPG program to generate that PDF which will have Logo and Name of the company and client’s company.

    For this the Client name and designation can be taken from master table and the PDF should have the company and client’s Logo and address (which should pick logo from IFS).

    Can you please suggest me the approach which i should follow also how and where should i create the ifs folder in pub400 machine? I tried the CRTFLR command but i received some authority error.

    ReplyDelete
  34. Hi Yusuf,

    I'm trying to create a table q1 in qtemp from the existing table using RUNSQL. While giving commit(*none), command failed with message "uncommitted changes pending for file q1 in library qtemp." Hence, I changed commit(*all) in my runsql command and executed it. Now, I'm receiving "Buffer Length longer than record for member q1". Could u please help me to resolve this.

    Thanks!

    ReplyDelete
    Replies
    1. DDS which I was using is not correct. It worked after changing dds

      Delete
  35. Hi Yusuf,

    I have a debug requirement in RPGLE where I have 2 variables say a and b. I need to break when a = (2 * b). But, debug won't allow arithmetic operation in "break when". Wanted to cross check with you whether there any option in debug. I'm not sure of the replication steps and don't have the option to modify the program as it happens only in live environment.

    ReplyDelete
  36. Hi Yusuf kind request for plz upload tamil video for AS400 tutorial

    ReplyDelete
  37. Hi Yusuf, I’m doing a DSPF and trying to select users from a list. If I use 1 on the user at the top then delete the 1 and try to select the second user it doesn’t select the second user as it’s reading 0 in the first user field. How to be able to select second user?

    ReplyDelete
  38. Hi bro i am a fresher and I was taken in to a project AS400 i need your help i am completely confused with object library object type parameters member like all such things please solve my problem

    ReplyDelete
  39. Hi yusuf,

    Pls help me to replace failed drive in As400

    ReplyDelete
  40. Hi Yusuf, I wanted to download HTTPLIB. But could not find it anywhere. Can you give me the download link

    ReplyDelete