IBM System i

3K

Solutions

2K

Contributors

IBM i, formerly known as AS/400, is a proprietary, midrange, object-based operating and application system. It includes a relational database, a menu-driven interface, support for multiple users, block-oriented terminal support and printers, and supports security, communications, and web-based application servers including Websphere, Apache and Tomcat.

Share tech news, updates, or what's on your mind.

Sign up to Post

What do you find is the best solution to mask data for both SQL server and iseries DB2?
0
Free Tool: ZipGrep
LVL 9
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Team,  I need to convert End of line Hex Character in a IFS file from  x0A to x0D0A . Please help me

Thank you In advance.
0
How can i save restore  an  stored procedure  type external from system V6R1 to another with V7R1 .
this object is looked from iseries navigator >database>schema>procedure.
0
Have a pc attempting to log on to a AS400 but gets no response after entering userid & password.  Makes connection to AS400 and gets log on screen with no problem.  I even entered a wrong password to see if I received an error message but I did not.  Any suggestions?
0
I am attempting to receive data from a data quue that is attached to an outq.

From there I take some of that information and use QUSLSPL API to get the List of Spool files that meet the criteria of what was found from the RCVDTAQ API.

I then create the pointer using QUSPTRUS API  to a user space that I created previous and attempt to run the spool list.  when I do this is not working as expected.  Basically the follow IF fails on NUMBER-LIST-ENTRIES being equal to 0.

           IF (INFORMATION-STATUS OF QUS-GENERIC-HEADER-0100 = "C"  (14)
              OR INFORMATION-STATUS OF QUS-GENERIC-HEADER-0100 = "P")
              AND NUMBER-LIST-ENTRIES OF QUS-GENERIC-HEADER-0100 > 0  (16)
      *
      * address current list entry
      *

              SET ADDRESS OF STRING-SPACE TO SPCPTR,

              SET ADDRESS OF QUS-SPLF0200 TO
                  ADDRESS OF STRING-SPACE((OFFSET-LIST-DATA
                  OF QUS-GENERIC-HEADER-0100 + 1):1),     (18)
      *
      * and process all of the entries
      *
              PERFORM PROCES
                 NUMBER-LIST-ENTRIES OF QUS-GENERIC-HEADER-0100 TIMES,  (20)

           ELSE
              DISPLAY "List data not valid.  **** THIS IS WHAT EXECUTES!!!!" 

Open in new window


I have referenced this link with a COBOL example.
https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_73/apiref/cmnKeysCOBOL.htmhttps://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_73/apiref/cmnKeysCOBOL.htm

I can provide more code if necessary.
0
Workstation program version 6.0 for windows
Iseries access for windows

User profiles are getting disabled for no aparenr reason. for example, user is enterning correct password while logging on however the user gets i ' =@@@ and his user account got diabled on iseries app. I tried to replciate the issue, by hitting connect/disconnect button - my profile got disabled. any advise should be helpful for me.

day 5 at the job :)
0
I have a SQL Server 2012 DTS package that receives data from AS400. Before these three days, everything was going well.

But suddenly when I tried to run these error messages appeared:
1. SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on AS400 returned error code 0xC02090F5.  The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.
2. The AS400 was unable to process the data. CWBCO1054 - A user-specified time-out occurred while sending or receiving data.

Sometimes when I run it manually, it ran perfectly, but sometimes the error messages appeared. I need to run it several times till the error didn't show up. Different when I ran through batch file (task scheduler/sql job agent), I always got fail.

I already checked the connection by test the credentials, ping and telnet to the server. It's okay.

Any idea why this error is coming up? I appreciate any assistance from everyone :)

Thanks a lot
0
**************************************************************
        *                                                            *
        *            Licensed Materials - Property of IBM            *
        *                                                            *
        *     IBM(R) Sterling Connect:Direct(R) for UNIX 4.1.0.3     *
        *                   Build date: 20Jun2012                    *
        *                                                            *
        *  (C) Copyright IBM Corp. 1992, 2011 All Rights Reserved.   *
        *                                                            *
        **************************************************************

Direct>
XPAE003I  Return Code: 8  Feedback: 0
          :&KEYWD==:

XPAM001I  Return Code: 8  Feedback: 0
          Errors Parsing

Direct> Enter a ';' at the end of a command to submit it. Type 'quit;' to exit CLI.

       submit CAPM2AMS process SNODE=PQS1S
 step01 copy from (
                   file=/tmp/2017173.j4.01701.cctpepay
                   pnode
                   )
               to (
                   file=TEST.2017173.j4.01701.cctpepay
                   disp=new
                   snode
                   )
 step02 if (step01 == 0) then
           run task snode
           sysopts="TEST.PQS 2017173.j4.01701.cctpepay "
           run task (PGM=UNIX)
           sysopts="rm /tmp/2017173.j4.01701.cctpepay"
        else
 step03 run task …
0
I am trying to execute below command through RUNSQL in CLLE but its failing everytime with error "Column list required."
Have given name for all the output fields with AS clause but still throwing same error.
Can someone please help ?

********Query **********

RUNSQL     SQL('CREATE TABLE QGPL/P25FILE9 AS +                      
             (SELECT A.BRANCH as BRANCH,   +                        
             (SELECT LONGDESC FROM DESCPF B  +                      
             WHERE B.DESCITEM = A.BRANCH           +                
             AND B.DESCTABL=''T3589'')      +                        
             as BRANCH_NAME, A.FREQUENCY as FRQ,(SELECT LONGDESC +  
             FROM DESCPF C WHERE C.DESCITEM = A.FREQUENCY AND  +    
             C.DESCTABL =''T3590'') as BILL_FREQUENCY, +            
             A.MODE_00001   as COLLCTMTD,      +                    
             (SELECT LONGDESC FROM DESCPF D  +                      
             WHERE D.DESCITEM = A.MODE_00001  AND D.DESCTABL +      
             =''T3620'') as COLLECTION_METHOD, +                    
             A.PRODU00001 as ProdType, +                            
             (SELECT LONGDESC FROM DESCPF E WHERE E.DESCITEM = +    
             A.PRODU00001 AND E.DESCTABL=''T5673'') as  +            
             PRODUCT_NAME, A.SOB as SOB,  +                          
             (SELECT LONGDESC FROM DESCPF F     +                    
             WHERE …
0
Can someone help with below requirement.....

I have a physical file with one of the field with variable length and it has contents as given below. My requirement is to substring the the IFS links just before the *OMIT for all occurrence .

For example, the i should get  /QSYS.LIB , /QDLS, /TMP/BRMS , /QIBM/ProdData ....from first record.

From second record, nothing, as the *OMIT is not present

From third record, i should get /QIBM/UserData/OS400/TCPIP/QTOCHOSTS

From fourth record, i should get /QSYS.LIB, /QDLS

Once i get these substrings, i will right it them to another file in one column field.

Sample records in the file are ....

OBJ(('/*' *INCLUDE) ('/QSYS.LIB' *OMIT) ('/QDLS' *OMIT) ('/TMP/BRMS' *OMIT) ('/QIBM/ProdData' *OMIT))
OBJ(('/home/cdimage'))
OBJ(('/QIBM/UserData/OS400/TCPIP/QTOCHOSTS' *OMIT))
OBJ(('/*' *INCLUDE) ('/QSYS.LIB' *OMIT) ('/QDLS' *OMIT))
OBJ(('/fixes'))

Thanks in advance !!
0
On Demand Webinar: Networking for the Cloud Era
LVL 9
On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Is it possible to generate AS400 spool file with 2 different overlay objects. 2nd Overlay is applicable only to last page of the spool file?
0
I have an IBM iSeries AS400 V5R4 that NFS was setup on and can see the folders/files on the Windows 2012 STD server, I'm able to transfer a PDF to the Windows location \\aacfile01\as400\actpdf and I see the file but when I go to open the file it give me an Access Denied. It gives me the First Window SecuritySecond Windows SecurityThird Windows Security, as you can see it adds Domain Users twice and one of them shows up as Deny. Until I manually go in and change the Deny to Allow is when I am able to open the file. Hopefully this makes sense. Any help would be appreciated......
0
I'm totally confused, nowhere I'm getting proper information about how to start programming in AS/400.
What are the software & hardware requirements of AS/400? What should I know about AS/400 to become a programmer in that?
How can I do JAVA, C, C++, C#, .net programs using AS/400, or is there any other way?

I will be pleased, if anyone could provide a detailed information.
0
I have tried to stop it, recreate it, but it will not let me end journal or change journal.  I keep reading but cannot find anything.  Any idea's out there?
0
i wish to know how to check a list of programs linked to file.
if i use hawkeye then need to put library otherwise in (*all) it runs in batch ( dumps out )which is quite longer time .pls tell me.
0
Hi ,

I have some question regarding ICF file and its uses in AS400 RPGLE . It would be great help if someone explain me as I am beginner in this area.

1) How can I write source code of ICF File ( Please share file structure, if possible).

2) Is there any way to check , insert or delete data in ICF file as SQL and runqry does not work on ICF File.

3) How can I unit test my program or how to prepare dummy data in ICF file.

It would be great help.


Thanks
0
i'm trying to run net use from as400 through clp or command line to map drive on user pc but not working, anybody can advise.
here some example i tried not working but from command dos no problem

STRPCCMD PCCMD('start net use V:  //AS400system/sharename +
             /USER:xxxxxx xxxxxxxxxx /PERSISTENT:no')

STRPCCMD PCCMD('net use' V:  //AS400system/sharename +
             /USER:xxxxxx xxxxxxxxxx /PERSISTENT:no')

STRPCCMD PCCMD('net use' V:  //AS400system/sharename')
0
There's concerns that trojanized USB sticks are shipped with the following 2 servers below.
What are the best practices if the USB ports can't be disabled?    Physically block the ports,
use specific encrypted USB thumbdrives that doesn't require drivers (saw one such EE link)
or ??  Kindly provide risk assessments & any other mitigations.

Below is the response from the vendor:

For HMC Servers :
For HMC server (7042-CR6), it's likely that the HMC server's BIOS does not have the option to disable the USB ports.

For P750 Servers :
With reference to the P750 model server (8408-E8D), there are a total of 4 x USB ports, which are integrated with the different hardware components (cards & control panel) of the server.   Below are the details:


1. Control Panel                        
-- 1 x USB port integrated. No option to disable as it's build in together with the control panel.

2. Service Processor Card        
-- 1 x USB port integrated. This USB port is used for server firmware upgrade purpose for server that are not managed by any HMC. Thus it's build in together with service processor and no option to disable.

3. Integrated Multifunction Card (an integrated card that is install in the System CEC that provides two USB ports, one serial port, and four ethernet connectors)
-- 2 x USB ports integrated. This card is not assigned to any of the partition's profile, thus it's not recognized as part of the partition's hardware config. As such, it is not …
0
I'm used strpccmd to het the pcname and pcuser used for login to as/400
Everything is okay Except one thing
For each time I runs the cl login windows for as/400 requested to enter the username and password for as/400
The question
How i can avoid the login screen?
There is Any chance to use the user name with strpccmd
0
Get HTML5 Certified
LVL 9
Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Hi,

I have problem to create a loop,
I need a loop which a check of corectly of insertion label, if not back to start a loop and again show inputbox.

Can i detect in AS400  for specific row, col, presence of any sign?

my script:

[PCOMM SCRIPT HEADER]
LANGUAGE=VBSCRIPT
DESCRIPTION=
[PCOMM SCRIPT SOURCE]
OPTION EXPLICIT
autECLSession.SetConnectionByName(ThisSessionName)

REM This line calls the macro subroutine
subSub1_

sub subSub1_()

' etap 2 - deklaracja 21-10-9

   WaitInputApp
   autECLSession.autECLPS.SendKeys "[pf3]"
   WaitInputApp
   autECLSession.autECLPS.SendKeys "[pf3]"
   WaitInputApp
   autECLSession.autECLPS.SendKeys "[pf3]"
   WaitInputApp
   autECLSession.autECLPS.SendKeys "21"
   WaitInputApp
   autECLSession.autECLPS.SendKeys "[enter]"  
   WaitInputApp
   autECLSession.autECLPS.SendKeys "10"
   WaitInputApp
   autECLSession.autECLPS.SendKeys "[enter]"
   WaitInputApp
   autECLSession.autECLPS.SendKeys "9"
   WaitInputApp
   autECLSession.autECLPS.SendKeys "[enter]"
   WaitInputApp
   autECLSession.autECLPS.SendKeys "whhb777"
   WaitInputApp
   autECLSession.autECLPS.SendKeys "[enter]"
   WaitInputApp
   autECLSession.autECLPS.SendKeys "1"
   WaitInputApp
   autECLSession.autECLPS.SendKeys "[field+]"
   WaitInputApp
   autECLSession.autECLPS.SendKeys "40"
   WaitInputApp
   autECLSession.autECLPS.SendKeys "[field+]"

   Dim copy
   copy = gety (5,32,3)
   WaitInputApp
   puttext 11,29,copy
0
We have our server connected to our I-series (5.4) the other day it dropped our server information.  QNTC/AACFILE01/AS400  Where the AS400 is our folder/share.  The AS400 dropped and when we try and put it back we get an error stating the system failed due to an unknown error.  I cannot find why it dropped or why I cannot reconnect it.  PS. they dropped IBM support several years ago.  Yea....

CPE3474 "Unknown System State"

Also, when I place a 5 on AACFILE01(our server name) the next screen is blank.  Via WRKLNK /
0
I have set up QNTC on my IBM i (AS400) and am able to see our network document server ("SERVER-A").  We have set up a second server ("SERVER-B").  

I can see SERVER-A and SERVER-B from QNTC (WRKLNK), but when i try to drill down, i can't see any folders on SERVER-B. I get a message "Error exchanging security information".  My userid and password are the same on both machines, all uppercase on both.  I can see everything on SERVER-A just fine, i can write to it, copy files, delete files, etc.

In Windows explorer i can create a mapped driver to SERVER-A and see everything below it, and I can create a mapped drive to SERVER-B and see everything, move, copy, delete, etc.
0
I have an iSeries PF file containing several records.  In order for the individual records to be imported into an imaging system, I need to be able to output each individual record to a file and then download the file either to a pdf or Excel format.  The file name for each record needs to contain it's key structure.  Is there a way to do this?
0
Hi,

Can we have CDC data mirroring between 2 different version servers.
Example a table is in V5R3 and we create the same table in V7R2 and we would like to have the data replicated from V5R3 to V7R2.

Is this possible. Do you see any issues.

Thanks
Chaitu
0
how can i make a ledger in data report?

i have a problem with this sir/mam

i want to display all the data in the three table in one data report

for example:
          this is i want to display

         name of item example: paracetamol
                   
                           balance                  received                           issue                            return

date       balance beginning         Quantity RECEIVED          Quantity Issue         Quantity return
0

IBM System i

3K

Solutions

2K

Contributors

IBM i, formerly known as AS/400, is a proprietary, midrange, object-based operating and application system. It includes a relational database, a menu-driven interface, support for multiple users, block-oriented terminal support and printers, and supports security, communications, and web-based application servers including Websphere, Apache and Tomcat.

Top Experts In
IBM System i
<
Monthly
>