Copy from Librarian dataset to sequential



All other tools like QACenter, Strobe, Endevor, Telon, APAS, Scheduler, Auditor, DATA-XPERT, CoolGen, Intertest, AdvantageGen, COBTEST etc.

Copy from Librarian dataset to sequential

Postby hpawar2 » Fri Oct 23, 2015 6:41 pm

Hi all,

I am trying to copy a single COBOL member from librarian to a PS file using JCL. It is copied to PS file with expansion of -INC members. That is, my PS file contains all the -INC members in expanded form. I want to copy it without expansion. Here is the code I used :

1) Tired to use IEBGENER but it gives expanded -INC :

//LIBMEM EXEC PGM=IEBGENER
//SYSUT1 DD DISP=SHR,DSN=&MASTER(XXXXXX),SUBSYS=LAM
//SYSUT2 DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSIN DD *


2) Tried to use AFOLIBR but this also gives expanded -INC :
//EXTRACT EXEC PGM=AFOLIBR,PARM='NRJS,NJTA'
//OSJOB DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//MASTER DD DSN=&&MASTER,DISP=SHR
//SYSIN DD *
-OPT UTILITY
-EXTRACT XXXXXXX
-EDIT /-INC/=INC/
/*

3) Tried to use AFOLIBR with INCASIS but this also gives expanded -INC :

//EXTRACT EXEC PGM=AFOLIBR,PARM='NRJS,NJTA'
//OSJOB DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//MASTER DD DSN=&&MASTER,DISP=SHR
//SYSIN DD *
-OPT UTILITY
-EXTRACT XXXXXXX INCASIS
/*

Searched it in many places and got that there is some restriction on -INC with AFOLIBR and the way is to edit and make it =INC instead of -INC but that is also not working. I am not sure what I am missing.

Thanks!
hpawar2
 
Posts: 2
Joined: Thu Apr 30, 2015 3:27 pm
Has thanked: 0 time
Been thanked: 0 time

Re: CA LIBRARIAN QUERY

Postby Robert Sample » Fri Oct 23, 2015 7:48 pm

From the CA-LIBRARIAN batch reference manual:
The -EXTRACT Utility control statement copies all the data records of a specific level
of the named member into the jobstream file (OSJOB for MVS or JOBSTR for
VSE). -EXTRACT copies the data records to the jobstream file without
opening the master file for update. -INC commands embedded among the data
records are expanded during the copy process.
Instead of EXTRACT, why not try PUNCH or PRINT?
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Copy from Librarian dataset to sequential

Postby NicC » Sat Oct 24, 2015 3:16 am

Please have the good manners to not tag your problem onto someone elses. Did you read the forum rules? Topic split.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Copy from Librarian dataset to sequential

Postby hpawar2 » Tue Oct 27, 2015 12:03 pm

Sorry I should have opened a new topic.

Thanks a lot Robert I use PRINT and it worked.
hpawar2
 
Posts: 2
Joined: Thu Apr 30, 2015 3:27 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Copy from Librarian dataset to sequential

Postby Robert Sample » Tue Oct 27, 2015 6:04 pm

Glad to hear you found a solution!
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times


Return to All Other Tools

 


  • Related topics
    Replies
    Views
    Last post