I am getting the file from Unix to Mainframes for every 15
minutes. The mainframe job get abended with bad records
coming from unix. I recovered that by deleting the bad data.
I need permenant solution how to fix the issue? The record
is getting characters in in first 9 positions which it
should not.
Please provide me the solution how to skip the records if
it finds the charcters in the first 9 positions.
K

Answers were Sorted based on User's Feedback



I am getting the file from Unix to Mainframes for every 15 minutes. The mainframe job get abended ..

Answer / krish

Its having bad data in first 9 positions..
use sort omit condition to reject those records

OMIT COND = (STRATPOS,LENGTH,TYPE,REL OPERT,VALUE)

Is This Answer Correct ?    4 Yes 0 No

I am getting the file from Unix to Mainframes for every 15 minutes. The mainframe job get abended ..

Answer / amy

TRY OUT SORT UTILITY---
//STEP1 EXEC PGM=SORT
//SORTIN DD DSN=INPUT.FROM.UNIX
//SORTOUT DD DSN=OUTPUT.AT.MAINFRM.
//SORTWRK DD ------
//SYSIN DD *
SORT FIELDS=COPY
INREC FIELDS=(1:10,71)
/*
//* ASSUMING LRECL=80.OTHERWISE CHANGE 71 TO (LRECL-9)

Is This Answer Correct ?    0 Yes 2 No

I am getting the file from Unix to Mainframes for every 15 minutes. The mainframe job get abended ..

Answer / aiswarya

Sort the file Using syncsort and skip the first 9
characeters using SKIPREC
//SYSIN DD *
SORT FILEDS=COPY
SKIPREC=N

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More JCL Interview Questions

How many days does a job remain in spool

7 Answers   Syntel,


I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.

0 Answers  


What are hierarchy levels in jcl?

0 Answers  


What is the function of the steplib dd statement?

0 Answers  


which utility is used to run a cobol-db2 program?

0 Answers   IBM,






How to create delta file using JCL

1 Answers   CTC,


What is jcl in mainframe?

0 Answers  


what do you mean By spooling? Expand SPOOL?

4 Answers  


How to print data of sequential file to Spool..?

2 Answers  


If job is submitted with typerun = hold then how can we submit the same job?

3 Answers   Wipro,


I have 5 steps in my jcl ,I need to execute first three steps and then 2nd step again ,4th and 5th steps if rc of 2nd step is zero

1 Answers   ABC,


What are the jcl procedures?

0 Answers  


Categories