Append the records using JCL
Select messages from
# through # FAQ
[/[Print]\]

MVSFORUMS.com -> Job Control Language(JCL)

#1: Append the records using JCL Author: venkataLocation: India PostPosted: Mon Apr 28, 2003 8:20 am
    —
Hi friends,

I have 2 PDSs and each one has a member that contains 20000 lines. I tried to append the records using cut and paste. But I was getting some ABEND code and I couldn't the paste the lines.

Can anybody provide the solution to accomplish my task?

Thanks in Advance,
Venkata

#2:  Author: DibakarLocation: USA PostPosted: Mon Apr 28, 2003 8:50 am
    —
venkata,

You can open one dataset1 in edit mode and use "COPY 'DATASET2'" edit command with an (A)fter or (B)efore line command as you do with cut and paste.

Diba.

#3:  Author: semigeezerLocation: Atlantis PostPosted: Mon Apr 28, 2003 9:18 am
    —
The error was probably an out of storage error. I suppose there are many ways to do this, but an easy JCL solition is just a bunch of ICEGENER steps.
1) Copy the contents to a temp sequential file because you can't append to a PDS member
2) append the new data (DISP=MOD)
3) copy back to the original PDS.
Depending on your data source, 1 & 2 can be combined by concatenation on SYSUT1.

#4:  Author: venkataLocation: India PostPosted: Mon Apr 28, 2003 11:06 pm
    —
Dibakar

I tried with ur suggestion, But again same ABEND CODE I got.

Semigeezer,

Can you elaborate ur explanation, b'caz I am poor at JCL?



Thanks,
Venkata

#5:  Author: DibakarLocation: USA PostPosted: Tue Apr 29, 2003 2:26 am
    —
Venkata, Try this ...

Code:
//MERGEJCL  JOB (09002T),'MERGING FILES',MSGCLASS=X,CLASS=B,
//             NOTIFY=&SYSUID
//MERGE     EXEC PGM=IEBGENER
//SYSUT1    DD DSN=BOTTOM.DATASET.NAME,DISP=SHR
//SYSUT2    DD DSN=TOP.DATASET.NAME,DISP=MOD
//SYSIN     DD *
//SYSPRINT  DD SYSOUT=*
//AMSDUMP   DD SYSOUT=*


SYSUT2 will contain combined output.
Diba.

#6:  Author: CaptBillLocation: Pasadena, California, USA PostPosted: Tue Apr 29, 2003 11:39 am
    —
Venkata,

What is the exact abend you are getting? Knowing that would go a long way in resolving your problem.

Please tell us what it is.



MVSFORUMS.com -> Job Control Language(JCL)


output generated using printer-friendly topic mod. All times are GMT - 5 Hours

Page 1 of 1

Powered by phpBB © 2001, 2005 phpBB Group