Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

how to simulate testing with GSAM files in Test regions

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Sasi Kiran Patha
Warnings : 2

New User


Joined: 19 Nov 2006
Posts: 73
Location: Hyederabad

PostPosted: Fri Dec 22, 2006 11:24 am    Post subject: how to simulate testing with GSAM files in Test regions
Reply with quote

hi ,
i have a batch program which has GSAM file as output.

Syntax in JCL for the file with production parameters:

OUTFILE DD DSN=&LIB2..CBFILE(+1),
DCB= (SYS1.DSCB,LRECL=101,BLKSIZE=8989,RECFM=FB),
UNIT=TAPE,LABEL=RETPD=05,
DISP=(,CATLG,DELETE),VOL=(,RETAIN)

The program inserts data in to the file using the following call:
CALL 'CBLTDLI' USING FUNC-ISRT
HFCSGS-PCB-1
WS-GS-RECORD1.

I have to test the program in test region. Does it require a GSAM defined in the test region. Any other alternative way to test.
Please Clarify if the GSAM file is actually getting created in the above JCL.

thanking you.
sasi patha
Back to top
View user's profile Send private message

IQofaGerbil

Active User


Joined: 05 May 2006
Posts: 183
Location: Scotland

PostPosted: Fri Dec 22, 2006 3:55 pm    Post subject: Re: how to simulate testing with GSAM files in Test regions
Reply with quote

&LIB2..CBFILE(+1)
Will be created by this JCL

only if
when expanded, the GDG base exists based on the value of &LIB2

eg
if &LIB2 = 'TEST.GDGBASE'
then TEST.GDGBASE.CBFILE must exist as a GDG base, otherwise you will have to create it before you try to run the job

alternative?
overwrite the File name with a test one of your own
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1105
Location: The Netherlands at Hole 19

PostPosted: Fri Dec 22, 2006 4:15 pm    Post subject:
Reply with quote

Here you may find information about GSAM.
Back to top
View user's profile Send private message
Sasi Kiran Patha
Warnings : 2

New User


Joined: 19 Nov 2006
Posts: 73
Location: Hyederabad

PostPosted: Fri Dec 22, 2006 4:21 pm    Post subject: Re: how to simulate testing with GSAM files in Test regions
Reply with quote

Thank you... it worked the way u mentioned.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Testing rerad cursor for status with ... John F Dutcher DB2 8 Fri May 19, 2017 9:35 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm
No new posts Compare two files and subtract values ameetmund DFSORT/ICETOOL 7 Fri Mar 31, 2017 3:35 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us