GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Mainframe
Go To First  |  Previous Question  |  Next Question 
 Mainframe  |  Question 24 of 55    Print  
What is code of copy from ps file to gdg file and copy from gdg file to ps file in jcl.how i can do?

  
Total Answers and Comments: 5 Last Update: January 10, 2007     Asked by: Ajay Kumar Tiwari 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
August 25, 2006 15:07:08   #1  
srilkrishy Member Since: May 2006   Contribution: 5    

RE: what is code of copy from ps file to gdg file and ...

The GDG is nothing but a sequential kind of file.You can just use the SORT to copy the GDG from a PS file.

Here is the SORT solution for the copy.

//SORT1 EXEC PGM SORT

//SYSOUT DD SYSOUT A 4

//SORTIN DD DSN INPUT DISP SHR

//SORTOUT DD DSN AAA.BBB.OUTPUT(+1)

// UNIT SYSDA DISP (NEW KEEP)

// DCB (LRECL 100 RECFM FB

// BLKSIZE 0)

//SYSIN DD *

SORT FIELDS COPY

Thank you

Krishy


 
Is this answer useful? Yes | No
September 11, 2006 17:09:03   #2  
techieheart Member Since: September 2006   Contribution: 4    

RE: what is code of copy from ps file to gdg file and ...
You can also make use of :1. the IDCAMS utility://step01 exec pgm IDCAMS//sysprint dd sysout *//inpds dd dsn ps file name disp shr//outgdg dd dsn gdg filename(+1) disp (new catlg delete)...//sysin dd *repro - infile (inpds)- outfile (outgdg)/*2. IEBGENER utility//step01 exec pgm IEBGENER//sysprint dd sysout *//sysut1 dd dsn ps file name disp shr//sysut2 dd dsn gdg filename(+1) disp (new catlg delete)...//sysin dd DUMMY/*
 
Is this answer useful? Yes | No
October 18, 2006 02:11:34   #3  
ofcourseman Member Since: October 2006   Contribution: 10    

RE: what is code of copy from ps file to gdg file and ...
Where can I find information about IEBGENDER?
 
Is this answer useful? Yes | No
January 10, 2007 01:15:09   #4  
P_KARTHIKKUMAR Member Since: January 2007   Contribution: 3    

RE: What is code of copy from ps file to gdg file and ...

Both are nothing but flat files. You can use PGM SORT in EXEC statement and in sysin you can use sort fields copy. For example.

//JOBNAME ....

//STEP1 EXEC PGM SORT

//SYSPRINT DD SYSOUT *

//SORTIN DD DSN A.B.C(0) DISP SHR ---> GDG FILE

//SORTOUT DD DSN A1.B1.C1 DISP SHR ---> FLAT FILE(PS FILE)

//SYSIN DD *

SORT FIELDS COPY

/*

//


 
Is this answer useful? Yes | No
January 10, 2007 01:28:59   #5  
P_KARTHIKKUMAR Member Since: January 2007   Contribution: 3    

RE: What is code of copy from ps file to gdg file and ...

Sorry in the above post i have mentioned DISP SHR for SORTOUT. But it should be DISP (NEW CATLG DELETE) instead of DISP SHR

Thanks & RegardS

Karthikkumar.P


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape