IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how to simulate testing with GSAM files in Test regions


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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: 1104
Location: The Netherlands at Hole 19

PostPosted: Fri Dec 22, 2006 4:15 pm
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
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 All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Joining files with intermittent heade... SYNCSORT 1
No new posts INPFIL FILES, FNAMES examples SYNCSORT 7
No new posts FileAid move data from two files to o... Compuware & Other Tools 5
No new posts Big Five Personality Test in COBOL - ... COBOL Programming 0
No new posts JCL to merge two files side by side DFSORT/ICETOOL 3
Search our Forums:


Back to Top