Search found 10 matches
- Wed May 30, 2012 5:21 pm
- Forum: EASYTRIEVE
- Topic: Copying a VB record when certain conditions are met
- Replies: 23
- Views: 39444
Success !!! In the code, changing to VB ( 1039 0 ) and getting rid of the assignment statement was the solution. No JCL changes were needed. Here is the code: FILE FILEA FA-ARG 01 06 N FILE FILEB VB (1039 0) REC-TYP 71 1 A FB-ARG 325 06 N FILE MTCHOUT VB (1039 0) JOB INPUT (FILEA KEY(FA-ARG) + FILEB...
- Tue May 29, 2012 11:41 pm
- Forum: EASYTRIEVE
- Topic: Copying a VB record when certain conditions are met
- Replies: 23
- Views: 39444
- Tue May 29, 2012 10:59 pm
- Forum: EASYTRIEVE
- Topic: Copying a VB record when certain conditions are met
- Replies: 23
- Views: 39444
Changed lrecl and removed blksize in code: FILE FILEA FA-ARG 01 06 N FILE FILEB VB 1035 IN-REC 01 1035 A REC-TYP 71 1 A FB-ARG 325 06 N FILE MTCHOUT VB 1035 OUT-REC 01 1035 A JOB INPUT (FILEA KEY(FA-ARG) + FILEB KEY(FB-ARG)) IF MATCHED AND REC-TYP = 'L' OUT-REC = IN-REC PUT MTCHOUT END-IF Received a...
- Tue May 29, 2012 10:41 pm
- Forum: EASYTRIEVE
- Topic: Copying a VB record when certain conditions are met
- Replies: 23
- Views: 39444
JCL: //FILEA DD DSN=&PREFDATE.URS.TRF016.IMAGE.DATECARD(0),DISP=SHR //FILEB DD DSN=&PREFIN.URS.V600.TRF250.&INPUT(0),DISP=SHR //* //MTCHOUT DD DSN=&&CURBKDT, // DISP=(,PASS), // UNIT=SYSDA, // SPACE=(27998,(1800,180),RLSE), // DCB=(SYS2.DSCB,RECFM=VB,LRECL=1039,BLKSIZE=27998) Easytrieve code: FILE F...
- Tue May 29, 2012 6:36 pm
- Forum: EASYTRIEVE
- Topic: Copying a VB record when certain conditions are met
- Replies: 23
- Views: 39444
- Tue May 29, 2012 6:15 pm
- Forum: EASYTRIEVE
- Topic: Copying a VB record when certain conditions are met
- Replies: 23
- Views: 39444
- Tue May 29, 2012 5:16 pm
- Forum: EASYTRIEVE
- Topic: Copying a VB record when certain conditions are met
- Replies: 23
- Views: 39444
- Tue May 29, 2012 4:46 pm
- Forum: EASYTRIEVE
- Topic: Copying a VB record when certain conditions are met
- Replies: 23
- Views: 39444
I have not tried the SORT program since it looked more complicated. With File Aid I am trying to read 1 file (FILE A) which has only 1 record and use the 1st 6 bytes to select records from FILE B. This part is working. My only problem is when the selected records are copied from the FILE B to the FI...
- Fri May 25, 2012 5:54 pm
- Forum: EASYTRIEVE
- Topic: Copying a VB record when certain conditions are met
- Replies: 23
- Views: 39444
- Fri May 25, 2012 5:01 pm
- Forum: EASYTRIEVE
- Topic: Copying a VB record when certain conditions are met
- Replies: 23
- Views: 39444
Copying a VB record when certain conditions are met
I am trying to copy an entire VB record when certain conditions are met. It seems that I am only copy the data portion and not the 1st 4 bytes of the VB record. I am missing a small detail probably. Statements below: FILE FILEA FA-ARG 01 06 N FILE FILEB VB (1035 1039) IN-REC 01 1035 A REC-TYP 71 1 A...