I’m running multiple jobs one by one. each job is writing data into one particular(A) file. Next doing coping the data into B from A And data is cleared from A file One job Again same is repeating couple of times each job. Finally I want to copy the data from B to A all...
| December 4, 2013 11:09 PM
, AS/400 commands
Sort process in COBOL/400
Hi Group, I am trying to understand the significance of sorting in COBOL/400.Sorting is used for arranging records into a specific sequence so that sequential processing can be performed. But, for arranging records in a particular order I can as well create a logical file and process it; Why should I go for Sorting? Regards,MVRK
| November 26, 2013 8:51 AM
PDF send through the mail, cannot be open
I have created a PDF file in IFS folder from PF, using the command CPYTOIMPF FROMFILE(QTEMP/PRT01) TOSTMF(&STMF) + MBROPT(*REPLACE) STMFCODPAG(*PCASCII) + RCDDLM(*CRLF) STRDLM(*NONE) FLDDLM(‘ ‘) ******************** SNDDST TYPE(*DOC) TOINTNET((&EMAIL)) DSTD(&DSTD) + MSG(*NONE) DOC(&DOC) FLR(YSPLF) ********************** PDF send to mail, but I cannot open the file. If I open with the MS...
| October 31, 2013 5:05 AM
, IFS Folder
, PDF Files
Getting I/O error CPF5004
Hi, I am trying to write 10000 records from pf to printer file but after writing 200 or 300 records into the printer file, I’m getting the I/O error CPF5004. I know I’m getting this error because the page overflow indicator is not set it. But I’m doing programming in RPGLE. I don’t know how...
| October 25, 2013 5:15 AM
, I/O errors
Hi Team, I have scenario with me. For that I need to create a query. The scenario is as follows: When My Location And Department is equal in the file I want to Multiply Quantity Column with Cost Column and Add it. Loc Dept Quantity Cost 1 10 10 2 1 10 10 3 1...
| September 12, 2013 7:11 AM
, AS/400 Query
I was used Data structure in my program. I have declared all the possible values but it shows an error. 1. In or out operations not valid for DS 2. Define is not valid So please give some sample code:
| September 4, 2013 7:39 AM
, Data structure
copy file from ifs to network share drive
Hi, I have a clle program that copies a disk file to the ifs. What I would rather do, is copy the disk file to a shared drive that is on the network. This way, the person who is requesting the report, could go directly to their folder on the network, and open up their requested csv file Can anyone help me out with...
| August 29, 2013 2:08 PM
Use CVTDAT to convert date formats
I have taken 2 parameters(like date and date types). A. If suppose date type is j, now i want to convert date to *MDY format B. If date type is M,now i want to convert date to *JUL format C, sending a Program message with the value of converted date. (With use of CVTDAT in...
| August 26, 2013 11:40 AM
CPYFRMIMPF command not copying all records
I need to copy records from work link to our database file, so I am using CPYFRMIMPF command in the following way: CPYFRMIMPF FROMSTMF(&LINK) TOFILE(SRINSOFT/EDI850WK) + MBROPT(*REPLACE) RCDDLM(*CRLF) + DTAFMT(*DLM) STRDLM('"') FLDDLM(',') + FROMRCD(2 *END) My worklink has 5 records but it copies only the 2nd and 4th records to my database file. What is...
| August 26, 2013 12:00 PM
How to use CPYTOPCD on large files
I have a file of over 3 gig. CPYTOPCD gives me an error message “Receiver value too small to hold result”. Smaller files do work, any way to use CPYTOPCD on large files? Example: CPYTOPCD FROMFILE(BILLINGLIB/BILLN5) TOFLR(BILLS) + TODOC(&EXPDAT) REPLACE(*YES)
| August 26, 2013 12:53 PM