DB2 Universal Database Questions and Answers

Recent IT Questions

81 - 100 of 174

Year in Date or Timestamp value is not in the correct range (C G D F).

Hi All, I am getting the above error when trying to write the control format of a subfile. The DDS is coded as follows: A O_ESD L O 9 70DATFMT(*MDY) A MAPVAL(('01/01/40' *BLANK)) Not too sure what the MAPVAL will do as I dont think it can ever...

View Answer   |  May 26 2006  3:20 PM GMT
AS/400, RPG, Application development
asked by RaydenR

  0 pts.

Performance issue

Hi I am using an OPNQRYF in a program which is used quite frequently. Now, the program takes about 20 secs when called once. I tried to create some logicals which can expedite the access to files but there has not been any appreciable change in the performance. Can anyone suggest any other method...

View Answer   |  May 15 2006  10:47 AM GMT
AS/400, Security, PC/Windows Connectivity
asked by pgsdeb

  5 pts.

compile commands in RPG

hey all! i am working on a project where i have to use compile commands for various member types, such as CRTRPGPGM for RPG, CRTPF for PF and so on.. but these commands have to run in the background, and the user should know nothing of it, i.e. it should be program oriented. how can i achieve...

View Answer   |  May 15 2006  2:40 AM GMT
AS/400, Security, PC/Windows Connectivity
asked by sairolla

  0 pts.

souce file listing

hi all! i wanna know how can i retrieve the names of the components of a Source Physical File i.e. the names of the souce code (members) within a particular Source Physical File...i want ot retrieve the names and store in a database file and later use them for subfile operations. kindly help me...

View Answer   |  May 11 2006  8:15 AM GMT
AS/400, RPG, Application development
asked by sairolla

  0 pts.

SQL Function to return triggered update columns?

We need to retrieve the code that defines a trigger. Not just the code of the trigger(systriggers.action_statement) but the full create statement. I think we have all the elements except for the list of columns in the UPDATE OF clause. This information can be retrieved as follows: SELECT...

View Answer   |  May 8 2006  3:01 PM GMT
DB2 Universal Database
asked by faddydaddy1951

  0 pts.

function not found - 2 questions

I wrote a function to change a date in character *USA format to *ISO character format. There is a lot of data to insert and all the dates are in *USA format rather than ISO format. The function is created but running the statement, I am told the function does not exist. Why isn't the function...

View Answer   |  May 4 2006  8:52 PM GMT
SQL, DB2 Universal Database
asked by TimRaz

  0 pts.

Prompting for and passing partial search criteria to queries

I?ve built a query, based on table containing public school student demographic data, using query utilities (i5/os, V5R3) which prompts for a value when run. The criteria in the ?select records? panel is FIELDLASTNAME EQ :FIELDLASTNAME. When I run STRQMQRY QMQRY(LIBRARY/QUERYNAME)...

View Answer   |  May 3 2006  3:29 PM GMT
AS/400, DB2 Universal Database
asked by jimmer

  0 pts.

AS400 Console

What effects are caused if you vary off your console session on the AS400 and you do not have any other consoles to take over? I want to move my console to another location in my DataCenter, but I have to disconnect it from the AS400 and reconnect it. Will varying the device off to disconnect it...

View Answer   |  May 3 2006  10:55 AM GMT
AS/400, Security, PC/Windows Connectivity
asked by bkr0963c

  0 pts.

Number of records in the Flat file

I have a huge Flat file in the Mainframe. What is the quickest way (utility, TSO command or TSO function) to find the exact number of records in the file? Thank you for your help!

View Answer   |  Apr 21 2006  10:26 AM GMT
Career development, Mainframe, 390
asked by yuriymusheyev

  0 pts.

Physical / Logical file definitions

Can a logical file have fields that differ in definition of type than the physical? I've got a physical file with fields defined as: FLD1 A 20 1 20 FLD2 S 8 0 21 28 FLD3 S 11 2 29 39 and the logical defined as: FLD1 A 20 1 20 FLD2 P 8 0 21 25 FLD3 P 11 2 26 31 Will...

View Answer   |  Apr 13 2006  3:08 PM GMT
RPG, RPGLE, DB2 Universal Database
asked by houstonpgmr

  0 pts.

Can not figure out this error message

I am creating a table and tring to insert headings into it but I keep getting this one error and I just can not figure it out. Please help if you can. The first statement is: "create table qtemp/rrlib (hdgs char (3000 ) not null with default" Then my insert statement: "insert into qtemp/rrlib...

View Answer   |  Mar 31 2006  5:44 PM GMT
DB2 Universal Database
asked by RREXPST

  0 pts.

Passing variables in SQL

I am writting a CL program that will create and update a table. I am using the command 'runsqlstm'. I am able to build the table but when I try to populate it I am having a problem. I am using the following statement 'insert into qtemp/rrtemp values (&rec). SQL will not process a CL variable. It...

View Answer   |  Mar 30 2006  11:08 AM GMT
Application development, DB2 Universal Database
asked by RREXPST

  0 pts.

Sql

When I execute this Sql command. I get an error "Column BASEDATA1 not in specified tables." I have a field in IN$FPS00 that I want to include in 'where' condition and update the rest of the fields in this file. Field Basedata1 is in the table. UPDATE IN$FPS00 SET I@R01 = Sum(BaseData1) WHERE...

View Answer   |  Mar 28 2006  2:56 PM GMT
DB2 Universal Database
asked by msabsh

  0 pts.

Locate DB2 files on the iSeries

Henry wrote in with this question recently: "I work with Window-based platforms and know nothing about the iSeries. I need to locate DB2 files on the iSeries and copy or export them to a Windows XP machine where the data will be used with another application. Also, somewhere in the process, I...

View Answer   |  Mar 26 2006  5:45 PM GMT
DB2 Universal Database
asked by DebraTart

  0 pts.

Issuance of CREATE ALIAS

Inna wrote in with this question recently: "Will the issuance of CREATE ALIAS statement lock the actual file member?" Do you know? -- Deb Tart, associate editor

View Answer   |  Mar 26 2006  5:41 PM GMT
DB2 Universal Database
asked by DebraTart

  0 pts.

System Setting For Created Libraries

Hi Everyone. An odd question, when we create new libraries on the 400 they are automatically flagged in the SETUPBCKUP screens for Daily/Weekly and Monthly backup. Where can I change this attribute for new libraries created on the system? Thanks, Rayden.

View Answer   |  Mar 22 2006  2:29 PM GMT
AS/400, RPG, Application development
asked by RaydenR

  0 pts.

using QDBRTVFD to find SQL view create statement

Hello all. Just wanted to know if anyone out there knows how to use QDBRTVFD to retrieve the SQL view create statement. For our update process, I am scanning the customer's libraries to find buisiness views. When I find them, I want to extract the SQL view create statement (like in DSPFD) and...

View Answer   |  Mar 21 2006  12:20 AM GMT
Tech support, AS/400, DB2
asked by jley618

  0 pts.

Mainframe to SAP

Hi, I'm a cobol programmer working on Mainframes with a work exp. of 2 yrs. I've worked in technologies like JCL, COBOL, VSAM, DB2, IMS DB/DC, IDMS, FOCUS etc. I have an opportunity to get into SAP technical(ABAP/4) as a programmer in my organisation. Looking at the future prospects of the...

View Answer   |  Mar 19 2006  6:40 AM GMT
Windows, AS/400, SAP
asked by ABAPer92

  0 pts.

FTP

When I transfer a file (FTP) from one system to another using Get command numeric data comes as junk. Does anyone know how I can retrieve numeric data ? Thanks

View Answer   |  Mar 15 2006  11:25 AM GMT
DB2 Universal Database
asked by msabsh

  0 pts.

Retrieving Job Info

I have a CL submitted from the Job Scheduler. In this job I need to kill an active job before processing, then strat it up again when processing is complete. For the active job I know the User ID and the Job Name and this is it, in addition there will always be more than one job out there (1...

View Answer   |  Mar 3 2006  5:19 PM GMT
AS/400, RPG, Application development
asked by RaydenR

  0 pts.

81 - 100 of 174