Hi all,
I have a following requirement to write the cobol program.
I have to load the 129 variables from input sequential file
which are in excel sheet to the cobol inernal table. and
after loading into table i have to compare this data with
the business file. here compare means controlling the data
whether the format(numeric,alpha) is same in the business
file and in the table??? i have the same data in input and
business file.
could anyone please give me any idea of the logic?//
i have all the 129 different variables(129rows,1 column)is
there .
Answers were Sorted based on User's Feedback
Answer / ng
There is an FTP Utility, where u can load excel sheet into mainframe flat and then u can copy that file into VSAM,GDG whtever u want by using IDCAMS.for FTP ucan use 'GET' command of JCLand there are various methods to do START-RUN-utility.
Below example is by doing thru JCL , have a look!
http://www.google.co.in/#hl=en&sugexp=les%3B&gs_nf=3&cp=26&gs_id=3o&xhr=t&q=how+to+do+ftp+in+mainframes&pf=p&sclient=psy-ab&oq=how+to+do+ftp+in+mainframe&gs_l=&pbx=1&bav=on.2,or.r_gc.r_pw.r_qf.&fp=124c53738206d2fc&bpcl=37189454&biw=1366&bih=667
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / madhan
plz anybody knows forward it to my mail id:-
kpalli_ms001@yahoo.co.in
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ravi
Hi,
Step 1.. convert all the data into to ASCII data with the rows
step 2.. Read this input file
Step 3.. Load all the data in the internal table
Step 4.. Read your business data with the internal table
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the default value of DISP parameter?
A s9(4). B v9(4) value 0.21 can i move this?
I have PS flat file with 14 records. I want to read from 4th to 9th record and want to write those 6 records (4th record to 9th record) to another PS file (output file). there is no key defined in the input file. I just want read a certain Consecutive records. can any one please give me the procedure division Coding for this. I have coded the below coding but the READ-PARA is performing only 1 time even though I have 14 records in my input file (i.e FILE-1): PROCEDURE DIVISION. A000-SECTION. MOVE 0 TO I. OPEN INPUT FILE-1. IF CHECK-KEY1 > 0 DISPLAY "OPEN ERROR FOR FILE-1, CODE IS:" CHECK-KEY1 END-IF. OPEN EXTEND NEWFILE-1 IF CHECK-KEY3 > 0 DISPLAY "OPEN ERROR FOR NEWFILE-1 COD IS" CHECK-KEY3 END-IF. PERFORM READ-PARA THRU EXIT-PARA UNTIL EOF-REC = 'YES'. DISPLAY " FINALLY OUT OF LOOP" CLOSE FILE-1 CLOSE NEWFILE-1 STOP RUN. READ-PARA. ADD 1 TO I READ FILE-1 AT END MOVE 'YES' TO EOF-REC IF I > 3 AND < 10 PERFORM WRITE-PARA ELSE DISPLAY "NOT IN RANGE" END-IF. EXIT-PARA. EXIT. WRITE-PARA. WRITE NEW-REC FROM FILE1-REC.
What divisions, sections and paragraphs are mandatory for a COBOL program?
Please let me know at which Scenarios we will go for STATIC call or DYNAMIC
Difference between array and sub-script ?
When search all is used in cobol program without sorted input data?
6 Answers CGI, Principal Finance,
What do you feel makes a good program?
how to know that the file has 300 records how to acess it?
consider the following FD FILE-1 01 REC-1 PIC X(80) ...... WORKING-STORAGE SECTION 01 W-REC PIC X(90) ........ PROCEDURE DIVISION FIRST-PARA ....... READ FILE-1 INTO W-REC AT END MOVE 1 TO EOF-FLAG which of the following is true with respect to the above? a.REC-1 will contain nothing and W-REC will contain the contains of the record read b.REC-1 and W-REC contain the same data c.syntex is invalid and error will occur d.REC-1 and W-REC must be of same size
What is the difference between index and subscript?
how can u find out just by seeing wheater it is main program or sub program ? any two ways to identify reply soon ?